@solid-design-system/components 4.0.0-next.4 → 4.0.0-next.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/cdn/chunks/chunk.2IZXJHH7.js +1 -0
  2. package/cdn/chunks/chunk.5FM4F3Y4.js +1 -0
  3. package/cdn/components/flipcard/flipcard.d.ts +1 -0
  4. package/cdn/components/flipcard/flipcard.js +1 -1
  5. package/cdn/components/tab-group/tab-group.js +1 -1
  6. package/cdn/custom-elements.json +9 -1
  7. package/cdn/solid-components.bundle.js +10 -10
  8. package/cdn/solid-components.iife.js +11 -11
  9. package/cdn/solid-components.js +1 -1
  10. package/cdn/vscode.html-custom-data.json +47 -47
  11. package/cdn/web-types.json +144 -143
  12. package/cdn-versioned/_components/menu/menu.js +1 -1
  13. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  14. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  15. package/cdn-versioned/chunks/chunk.24SF73MY.js +1 -1
  16. package/cdn-versioned/chunks/chunk.2IZXJHH7.js +1 -0
  17. package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
  18. package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
  19. package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
  20. package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
  21. package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -0
  22. package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
  23. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  24. package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
  25. package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
  26. package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
  27. package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
  28. package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
  29. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  30. package/cdn-versioned/chunks/chunk.DEX5VJGX.js +4 -4
  31. package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
  32. package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
  33. package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
  34. package/cdn-versioned/chunks/chunk.F7J6HN76.js +1 -1
  35. package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
  36. package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
  37. package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
  38. package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
  39. package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
  40. package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
  41. package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
  42. package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
  43. package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
  44. package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
  45. package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
  46. package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
  47. package/cdn-versioned/chunks/chunk.MX22EZXK.js +1 -1
  48. package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
  50. package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
  51. package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
  52. package/cdn-versioned/chunks/chunk.PBPFKJKV.js +1 -1
  53. package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
  54. package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
  55. package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
  56. package/cdn-versioned/chunks/chunk.ROBLMI7Q.js +4 -4
  57. package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
  58. package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
  59. package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
  60. package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
  61. package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
  62. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  63. package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
  65. package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
  66. package/cdn-versioned/chunks/chunk.ZFA2VPUT.js +1 -1
  67. package/cdn-versioned/chunks/chunk.ZRIABVVM.js +1 -1
  68. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  69. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  70. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  71. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  72. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  73. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  74. package/cdn-versioned/components/button/button.d.ts +1 -1
  75. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  76. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  77. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  78. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  79. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  80. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  81. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  82. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  83. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  84. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  85. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  86. package/cdn-versioned/components/flipcard/flipcard.d.ts +2 -1
  87. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  88. package/cdn-versioned/components/header/header.d.ts +1 -1
  89. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  90. package/cdn-versioned/components/include/include.d.ts +1 -1
  91. package/cdn-versioned/components/input/input.d.ts +1 -1
  92. package/cdn-versioned/components/link/link.d.ts +1 -1
  93. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  94. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  95. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  96. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  97. package/cdn-versioned/components/option/option.d.ts +1 -1
  98. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  99. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  100. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  101. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  102. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  103. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  104. package/cdn-versioned/components/select/select.d.ts +4 -4
  105. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  106. package/cdn-versioned/components/step/step.d.ts +1 -1
  107. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  108. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  109. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  110. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  111. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  112. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  113. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  114. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  115. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  116. package/cdn-versioned/components/video/video.d.ts +1 -1
  117. package/cdn-versioned/custom-elements.json +210 -202
  118. package/cdn-versioned/internal/form.js +3 -3
  119. package/cdn-versioned/solid-components.bundle.js +18 -18
  120. package/cdn-versioned/solid-components.css +2 -2
  121. package/cdn-versioned/solid-components.iife.js +18 -18
  122. package/cdn-versioned/solid-components.js +1 -1
  123. package/cdn-versioned/vscode.html-custom-data.json +125 -125
  124. package/cdn-versioned/web-types.json +275 -274
  125. package/dist/chunks/{chunk.56SNEGI4.js → chunk.BG3M5FUP.js} +4 -1
  126. package/dist/chunks/{chunk.WWS3CQ2Z.js → chunk.KTJRTRDJ.js} +16 -5
  127. package/dist/components/flipcard/flipcard.d.ts +1 -0
  128. package/dist/components/flipcard/flipcard.js +1 -1
  129. package/dist/components/tab-group/tab-group.js +1 -1
  130. package/dist/custom-elements.json +9 -1
  131. package/dist/solid-components.js +2 -2
  132. package/dist/vscode.html-custom-data.json +47 -47
  133. package/dist/web-types.json +144 -143
  134. package/dist-versioned/_components/menu/menu.js +1 -1
  135. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  136. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  137. package/dist-versioned/chunks/chunk.2IBVAXOX.js +1 -1
  138. package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
  139. package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
  140. package/dist-versioned/chunks/chunk.4JZQQD4L.js +3 -3
  141. package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
  142. package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
  143. package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
  144. package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
  145. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  146. package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
  147. package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
  148. package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
  149. package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
  150. package/dist-versioned/chunks/{chunk.56SNEGI4.js → chunk.BG3M5FUP.js} +17 -14
  151. package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
  152. package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
  153. package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
  154. package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
  155. package/dist-versioned/chunks/chunk.EFEBQQHC.js +26 -26
  156. package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
  157. package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
  158. package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
  159. package/dist-versioned/chunks/chunk.I3PY3VYP.js +29 -29
  160. package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
  161. package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
  162. package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
  163. package/dist-versioned/chunks/{chunk.WWS3CQ2Z.js → chunk.KTJRTRDJ.js} +20 -9
  164. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  165. package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
  166. package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
  167. package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
  168. package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
  169. package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
  170. package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
  171. package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
  172. package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
  173. package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
  174. package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
  175. package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
  176. package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
  177. package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
  178. package/dist-versioned/chunks/chunk.TWXYFPBS.js +2 -2
  179. package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
  180. package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
  181. package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
  182. package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
  183. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  184. package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
  185. package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
  186. package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
  187. package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
  188. package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
  189. package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
  190. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  191. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  192. package/dist-versioned/components/animation/animation.d.ts +1 -1
  193. package/dist-versioned/components/audio/audio.d.ts +1 -1
  194. package/dist-versioned/components/badge/badge.d.ts +1 -1
  195. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  196. package/dist-versioned/components/button/button.d.ts +1 -1
  197. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  198. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  199. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  200. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  201. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  202. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  203. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  204. package/dist-versioned/components/divider/divider.d.ts +1 -1
  205. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  206. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  207. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  208. package/dist-versioned/components/flipcard/flipcard.d.ts +2 -1
  209. package/dist-versioned/components/flipcard/flipcard.js +1 -1
  210. package/dist-versioned/components/header/header.d.ts +1 -1
  211. package/dist-versioned/components/icon/icon.d.ts +1 -1
  212. package/dist-versioned/components/include/include.d.ts +1 -1
  213. package/dist-versioned/components/input/input.d.ts +1 -1
  214. package/dist-versioned/components/link/link.d.ts +1 -1
  215. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  216. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  217. package/dist-versioned/components/notification/notification.d.ts +1 -1
  218. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  219. package/dist-versioned/components/option/option.d.ts +1 -1
  220. package/dist-versioned/components/popup/popup.d.ts +1 -1
  221. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  222. package/dist-versioned/components/radio/radio.d.ts +1 -1
  223. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  224. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  225. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  226. package/dist-versioned/components/select/select.d.ts +4 -4
  227. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  228. package/dist-versioned/components/step/step.d.ts +1 -1
  229. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  230. package/dist-versioned/components/switch/switch.d.ts +1 -1
  231. package/dist-versioned/components/tab/tab.d.ts +1 -1
  232. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  233. package/dist-versioned/components/tab-group/tab-group.js +1 -1
  234. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  235. package/dist-versioned/components/tag/tag.d.ts +1 -1
  236. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  237. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  238. package/dist-versioned/components/video/video.d.ts +1 -1
  239. package/dist-versioned/custom-elements.json +210 -202
  240. package/dist-versioned/internal/form.js +3 -3
  241. package/dist-versioned/solid-components.css +2 -2
  242. package/dist-versioned/solid-components.js +2 -2
  243. package/dist-versioned/vscode.html-custom-data.json +125 -125
  244. package/dist-versioned/web-types.json +275 -274
  245. package/package.json +1 -1
  246. package/cdn/chunks/chunk.SNUMAAEG.js +0 -1
  247. package/cdn/chunks/chunk.WGNXYONB.js +0 -1
  248. package/cdn-versioned/chunks/chunk.SNUMAAEG.js +0 -1
  249. package/cdn-versioned/chunks/chunk.WGNXYONB.js +0 -1
@@ -1,4 +1,4 @@
1
- var tr=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnPropertyDescriptor,mo=Object.getOwnPropertyDescriptors;var yi=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable;var Sr=(s,i,t)=>i in s?tr(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,O=(s,i)=>{for(var t in i||(i={}))Pr.call(i,t)&&Sr(s,t,i[t]);if(yi)for(var t of yi(i))Ir.call(i,t)&&Sr(s,t,i[t]);return s},et=(s,i)=>po(s,mo(i));var wi=(s,i)=>{var t={};for(var e in s)Pr.call(s,e)&&i.indexOf(e)<0&&(t[e]=s[e]);if(s!=null&&yi)for(var e of yi(s))i.indexOf(e)<0&&Ir.call(s,e)&&(t[e]=s[e]);return t};var fo=(s,i)=>{for(var t in i)tr(s,t,{get:i[t],enumerable:!0})};var o=(s,i,t,e)=>{for(var r=e>1?void 0:e?uo(i,t):i,a=s.length-1,n;a>=0;a--)(n=s[a])&&(r=(e?n(i,t,r):n(r))||r);return e&&r&&tr(i,t,r),r};var xi=globalThis,ki=xi.ShadowRoot&&(xi.ShadyCSS===void 0||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,er=Symbol(),Dr=new WeakMap,Qe=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==er)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(ki&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Dr.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Dr.set(t,i))}return i}toString(){return this.cssText}},Ci=s=>new Qe(typeof s=="string"?s:s+"",void 0,er),v=(s,...i)=>{let t=s.length===1?s[0]:i.reduce((e,r,a)=>e+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[a+1],s[0]);return new Qe(t,s,er)},ir=(s,i)=>{if(ki)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),r=xi.litNonce;r!==void 0&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)}},Ei=ki?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Ci(t)})(s):s;var{is:go,defineProperty:bo,getOwnPropertyDescriptor:vo,getOwnPropertyNames:yo,getOwnPropertySymbols:wo,getPrototypeOf:xo}=Object,be=globalThis,Fr=be.trustedTypes,ko=Fr?Fr.emptyScript:"",rr=be.reactiveElementPolyfillSupport,Je=(s,i)=>s,ve={toAttribute(s,i){switch(i){case Boolean:s=s?ko:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let t=s;switch(i){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(e){t=null}}return t}},$i=(s,i)=>!go(s,i),Vr={attribute:!0,type:String,converter:ve,reflect:!1,hasChanged:$i},Rr,Br;(Rr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Br=be.litPropertyMetadata)!=null||(be.litPropertyMetadata=new WeakMap);var re=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Vr){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),r=this.getPropertyDescriptor(i,e,t);r!==void 0&&bo(this.prototype,i,r)}}static getPropertyDescriptor(i,t,e){var n;let{get:r,set:a}=(n=vo(this.prototype,i))!=null?n:{get(){return this[t]},set(d){this[t]=d}};return{get(){return r==null?void 0:r.call(this)},set(d){let h=r==null?void 0:r.call(this);a.call(this,d),this.requestUpdate(i,h,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Vr}static _$Ei(){if(this.hasOwnProperty(Je("elementProperties")))return;let i=xo(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Je("properties"))){let t=this.properties,e=[...yo(t),...wo(t)];for(let r of e)this.createProperty(r,t[r])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let r=this._$Eu(t,e);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let r of e)t.unshift(Ei(r))}else i!==void 0&&t.push(Ei(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return ir(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var a;let e=this.constructor.elementProperties.get(i),r=this.constructor._$Eu(i,e);if(r!==void 0&&e.reflect===!0){let n=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:ve).toAttribute(t,e.type);this._$Em=i,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(i,t){var a;let e=this.constructor,r=e._$Eh.get(i);if(r!==void 0&&this._$Em!==r){let n=e.getPropertyOptions(r),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:ve;this._$Em=r,this[r]=d.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(i,t,e){var r;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((r=e.hasChanged)!=null?r:$i)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var r;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[n,d]of a)d.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],d)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(a=>{var n;return(n=a.hostUpdate)==null?void 0:n.call(a)}),this.update(t)):this._$EU()}catch(a){throw i=!1,this._$EU(),a}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostUpdated)==null?void 0:r.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Ur;re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[Je("elementProperties")]=new Map,re[Je("finalized")]=new Map,rr==null||rr({ReactiveElement:re}),((Ur=be.reactiveElementVersions)!=null?Ur:be.reactiveElementVersions=[]).push("2.0.4");var ti=globalThis,Ti=ti.trustedTypes,Nr=Ti?Ti.createPolicy("lit-html",{createHTML:s=>s}):void 0,ar="$lit$",se=`lit$${Math.random().toFixed(9).slice(2)}$`,nr="?"+se,Co=`<${nr}>`,Le=document,ei=()=>Le.createComment(""),ii=s=>s===null||typeof s!="object"&&typeof s!="function",lr=Array.isArray,Zr=s=>lr(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",sr=`[
1
+ var tr=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnPropertyDescriptor,mo=Object.getOwnPropertyDescriptors;var yi=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable;var Hr=(s,i,t)=>i in s?tr(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,O=(s,i)=>{for(var t in i||(i={}))Pr.call(i,t)&&Hr(s,t,i[t]);if(yi)for(var t of yi(i))Ir.call(i,t)&&Hr(s,t,i[t]);return s},et=(s,i)=>po(s,mo(i));var wi=(s,i)=>{var t={};for(var e in s)Pr.call(s,e)&&i.indexOf(e)<0&&(t[e]=s[e]);if(s!=null&&yi)for(var e of yi(s))i.indexOf(e)<0&&Ir.call(s,e)&&(t[e]=s[e]);return t};var fo=(s,i)=>{for(var t in i)tr(s,t,{get:i[t],enumerable:!0})};var o=(s,i,t,e)=>{for(var r=e>1?void 0:e?uo(i,t):i,a=s.length-1,n;a>=0;a--)(n=s[a])&&(r=(e?n(i,t,r):n(r))||r);return e&&r&&tr(i,t,r),r};var xi=globalThis,ki=xi.ShadowRoot&&(xi.ShadyCSS===void 0||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,er=Symbol(),Dr=new WeakMap,Qe=class{constructor(i,t,e){if(this._$cssResult$=!0,e!==er)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(ki&&i===void 0){let e=t!==void 0&&t.length===1;e&&(i=Dr.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),e&&Dr.set(t,i))}return i}toString(){return this.cssText}},Ci=s=>new Qe(typeof s=="string"?s:s+"",void 0,er),v=(s,...i)=>{let t=s.length===1?s[0]:i.reduce((e,r,a)=>e+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[a+1],s[0]);return new Qe(t,s,er)},ir=(s,i)=>{if(ki)s.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let e=document.createElement("style"),r=xi.litNonce;r!==void 0&&e.setAttribute("nonce",r),e.textContent=t.cssText,s.appendChild(e)}},Ei=ki?s=>s:s=>s instanceof CSSStyleSheet?(i=>{let t="";for(let e of i.cssRules)t+=e.cssText;return Ci(t)})(s):s;var{is:go,defineProperty:bo,getOwnPropertyDescriptor:vo,getOwnPropertyNames:yo,getOwnPropertySymbols:wo,getPrototypeOf:xo}=Object,be=globalThis,Fr=be.trustedTypes,ko=Fr?Fr.emptyScript:"",rr=be.reactiveElementPolyfillSupport,Je=(s,i)=>s,ve={toAttribute(s,i){switch(i){case Boolean:s=s?ko:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,i){let t=s;switch(i){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(e){t=null}}return t}},$i=(s,i)=>!go(s,i),Vr={attribute:!0,type:String,converter:ve,reflect:!1,hasChanged:$i},Rr,Br;(Rr=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Br=be.litPropertyMetadata)!=null||(be.litPropertyMetadata=new WeakMap);var re=class extends HTMLElement{static addInitializer(i){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Vr){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){let e=Symbol(),r=this.getPropertyDescriptor(i,e,t);r!==void 0&&bo(this.prototype,i,r)}}static getPropertyDescriptor(i,t,e){var n;let{get:r,set:a}=(n=vo(this.prototype,i))!=null?n:{get(){return this[t]},set(d){this[t]=d}};return{get(){return r==null?void 0:r.call(this)},set(d){let h=r==null?void 0:r.call(this);a.call(this,d),this.requestUpdate(i,h,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var t;return(t=this.elementProperties.get(i))!=null?t:Vr}static _$Ei(){if(this.hasOwnProperty(Je("elementProperties")))return;let i=xo(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Je("properties"))){let t=this.properties,e=[...yo(t),...wo(t)];for(let r of e)this.createProperty(r,t[r])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let r=this._$Eu(t,e);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let e=new Set(i.flat(1/0).reverse());for(let r of e)t.unshift(Ei(r))}else i!==void 0&&t.push(Ei(i));return t}static _$Eu(i,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t,e;((t=this._$EO)!=null?t:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((e=i.hostConnected)==null||e.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(i.set(e,this[e]),delete this[e]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var t;let i=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return ir(i,this.constructor.elementStyles),i}connectedCallback(){var i,t;(i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var e;return(e=t.hostDisconnected)==null?void 0:e.call(t)})}attributeChangedCallback(i,t,e){this._$AK(i,e)}_$EC(i,t){var a;let e=this.constructor.elementProperties.get(i),r=this.constructor._$Eu(i,e);if(r!==void 0&&e.reflect===!0){let n=(((a=e.converter)==null?void 0:a.toAttribute)!==void 0?e.converter:ve).toAttribute(t,e.type);this._$Em=i,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(i,t){var a;let e=this.constructor,r=e._$Eh.get(i);if(r!==void 0&&this._$Em!==r){let n=e.getPropertyOptions(r),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:ve;this._$Em=r,this[r]=d.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(i,t,e){var r;if(i!==void 0){if(e!=null||(e=this.constructor.getPropertyOptions(i)),!((r=e.hasChanged)!=null?r:$i)(this[i],t))return;this.P(i,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,e){var r;this._$AL.has(i)||this._$AL.set(i,t),e.reflect===!0&&this._$Em!==i&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,d]of this._$Ep)this[n]=d;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[n,d]of a)d.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],d)}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(r=this._$EO)==null||r.forEach(a=>{var n;return(n=a.hostUpdate)==null?void 0:n.call(a)}),this.update(t)):this._$EU()}catch(a){throw i=!1,this._$EU(),a}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostUpdated)==null?void 0:r.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}},Ur;re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[Je("elementProperties")]=new Map,re[Je("finalized")]=new Map,rr==null||rr({ReactiveElement:re}),((Ur=be.reactiveElementVersions)!=null?Ur:be.reactiveElementVersions=[]).push("2.0.4");var ti=globalThis,Ti=ti.trustedTypes,Nr=Ti?Ti.createPolicy("lit-html",{createHTML:s=>s}):void 0,ar="$lit$",se=`lit$${Math.random().toFixed(9).slice(2)}$`,nr="?"+se,Co=`<${nr}>`,Le=document,ei=()=>Le.createComment(""),ii=s=>s===null||typeof s!="object"&&typeof s!="function",lr=Array.isArray,Zr=s=>lr(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",sr=`[
2
2
  \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qr=/-->/g,Kr=/>/g,$e=RegExp(`>|${sr}(?:([^\\s"'>=/]+)(${sr}*=${sr}*(?:[^
3
3
  \f\r"'\`<>=]|("|')|))|$)`,"g"),jr=/'/g,Yr=/"/g,Qr=/^(?:script|style|textarea|title)$/i,dr=s=>(i,...t)=>({_$litType$:s,strings:i,values:t}),u=dr(1),qe=dr(2),Jr=dr(3),mt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Wr=new WeakMap,Te=Le.createTreeWalker(Le,129);function Gr(s,i){if(!lr(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nr!==void 0?Nr.createHTML(i):i}var ts=(s,i)=>{let t=s.length-1,e=[],r,a=i===2?"<svg>":i===3?"<math>":"",n=Ge;for(let d=0;d<t;d++){let h=s[d],p,f,g=-1,E=0;for(;E<h.length&&(n.lastIndex=E,f=n.exec(h),f!==null);)E=n.lastIndex,n===Ge?f[1]==="!--"?n=qr:f[1]!==void 0?n=Kr:f[2]!==void 0?(Qr.test(f[2])&&(r=RegExp("</"+f[2],"g")),n=$e):f[3]!==void 0&&(n=$e):n===$e?f[0]===">"?(n=r!=null?r:Ge,g=-1):f[1]===void 0?g=-2:(g=n.lastIndex-f[2].length,p=f[1],n=f[3]===void 0?$e:f[3]==='"'?Yr:jr):n===Yr||n===jr?n=$e:n===qr||n===Kr?n=Ge:(n=$e,r=void 0);let x=n===$e&&s[d+1].startsWith("/>")?" ":"";a+=n===Ge?h+Co:g>=0?(e.push(p),h.slice(0,g)+ar+h.slice(g)+se+x):h+se+(g===-2?d:x)}return[Gr(s,a+(s[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),e]},ri=class s{constructor({strings:i,_$litType$:t},e){let r;this.parts=[];let a=0,n=0,d=i.length-1,h=this.parts,[p,f]=ts(i,t);if(this.el=s.createElement(p,e),Te.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(r=Te.nextNode())!==null&&h.length<d;){if(r.nodeType===1){if(r.hasAttributes())for(let g of r.getAttributeNames())if(g.endsWith(ar)){let E=f[n++],x=r.getAttribute(g).split(se),$=/([.?@])?(.*)/.exec(E);h.push({type:1,index:a,name:$[2],strings:x,ctor:$[1]==="."?zi:$[1]==="?"?Ai:$[1]==="@"?Oi:Ae}),r.removeAttribute(g)}else g.startsWith(se)&&(h.push({type:6,index:a}),r.removeAttribute(g));if(Qr.test(r.tagName)){let g=r.textContent.split(se),E=g.length-1;if(E>0){r.textContent=Ti?Ti.emptyScript:"";for(let x=0;x<E;x++)r.append(g[x],ei()),Te.nextNode(),h.push({type:2,index:++a});r.append(g[E],ei())}}}else if(r.nodeType===8)if(r.data===nr)h.push({type:2,index:a});else{let g=-1;for(;(g=r.data.indexOf(se,g+1))!==-1;)h.push({type:7,index:a}),g+=se.length-1}a++}}static createElement(i,t){let e=Le.createElement("template");return e.innerHTML=i,e}};function ze(s,i,t=s,e){var n,d,h;if(i===mt)return i;let r=e!==void 0?(n=t._$Co)==null?void 0:n[e]:t._$Cl,a=ii(i)?void 0:i._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((d=r==null?void 0:r._$AO)==null||d.call(r,!1),a===void 0?r=void 0:(r=new a(s),r._$AT(s,t,e)),e!==void 0?((h=t._$Co)!=null?h:t._$Co=[])[e]=r:t._$Cl=r),r!==void 0&&(i=ze(s,r._$AS(s,i.values),r,e)),i}var Li=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){var p;let{el:{content:t},parts:e}=this._$AD,r=((p=i==null?void 0:i.creationScope)!=null?p:Le).importNode(t,!0);Te.currentNode=r;let a=Te.nextNode(),n=0,d=0,h=e[0];for(;h!==void 0;){if(n===h.index){let f;h.type===2?f=new Ne(a,a.nextSibling,this,i):h.type===1?f=new h.ctor(a,h.name,h.strings,this,i):h.type===6&&(f=new Mi(a,this,i)),this._$AV.push(f),h=e[++d]}n!==(h==null?void 0:h.index)&&(a=Te.nextNode(),n++)}return Te.currentNode=Le,r}p(i){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(i,e,t),t+=e.strings.length-2):e._$AI(i[t])),t++}},Ne=class s{get _$AU(){var i,t;return(t=(i=this._$AM)==null?void 0:i._$AU)!=null?t:this._$Cv}constructor(i,t,e,r){var a;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=e,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(i==null?void 0:i.nodeType)===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ze(this,i,t),ii(i)?i===Y||i==null||i===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):i!==this._$AH&&i!==mt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Zr(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==Y&&ii(this._$AH)?this._$AA.nextSibling.data=i:this.T(Le.createTextNode(i)),this._$AH=i}$(i){var a;let{values:t,_$litType$:e}=i,r=typeof e=="number"?this._$AC(i):(e.el===void 0&&(e.el=ri.createElement(Gr(e.h,e.h[0]),this.options)),e);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(t);else{let n=new Li(r,this),d=n.u(this.options);n.p(t),this.T(d),this._$AH=n}}_$AC(i){let t=Wr.get(i.strings);return t===void 0&&Wr.set(i.strings,t=new ri(i)),t}k(i){lr(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,r=0;for(let a of i)r===t.length?t.push(e=new s(this.O(ei()),this.O(ei()),this,this.options)):e=t[r],e._$AI(a),r++;r<t.length&&(this._$AR(e&&e._$AB.nextSibling,r),t.length=r)}_$AR(i=this._$AA.nextSibling,t){var e;for((e=this._$AP)==null?void 0:e.call(this,!1,!0,t);i&&i!==this._$AB;){let r=i.nextSibling;i.remove(),i=r}}setConnected(i){var t;this._$AM===void 0&&(this._$Cv=i,(t=this._$AP)==null||t.call(this,i))}},Ae=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,e,r,a){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=i,this.name=t,this._$AM=r,this.options=a,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}_$AI(i,t=this,e,r){let a=this.strings,n=!1;if(a===void 0)i=ze(this,i,t,0),n=!ii(i)||i!==this._$AH&&i!==mt,n&&(this._$AH=i);else{let d=i,h,p;for(i=a[0],h=0;h<a.length-1;h++)p=ze(this,d[e+h],t,h),p===mt&&(p=this._$AH[h]),n||(n=!ii(p)||p!==this._$AH[h]),p===Y?i=Y:i!==Y&&(i+=(p!=null?p:"")+a[h+1]),this._$AH[h]=p}n&&!r&&this.j(i)}j(i){i===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i!=null?i:"")}},zi=class extends Ae{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===Y?void 0:i}},Ai=class extends Ae{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==Y)}},Oi=class extends Ae{constructor(i,t,e,r,a){super(i,t,e,r,a),this.type=5}_$AI(i,t=this){var n;if((i=(n=ze(this,i,t,0))!=null?n:Y)===mt)return;let e=this._$AH,r=i===Y&&e!==Y||i.capture!==e.capture||i.once!==e.once||i.passive!==e.passive,a=i!==Y&&(e===Y||r);r&&this.element.removeEventListener(this.name,this,e),a&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){var t,e;typeof this._$AH=="function"?this._$AH.call((e=(t=this.options)==null?void 0:t.host)!=null?e:this.element,i):this._$AH.handleEvent(i)}},Mi=class{constructor(i,t,e){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(i){ze(this,i)}},es={M:ar,P:se,A:nr,C:1,L:ts,R:Li,D:Zr,V:ze,I:Ne,H:Ae,N:Ai,U:Oi,B:zi,F:Mi},or=ti.litHtmlPolyfillSupport,Xr;or==null||or(ri,Ne),((Xr=ti.litHtmlVersions)!=null?Xr:ti.litHtmlVersions=[]).push("3.2.1");var is=(s,i,t)=>{var a,n;let e=(a=t==null?void 0:t.renderBefore)!=null?a:i,r=e._$litPart$;if(r===void 0){let d=(n=t==null?void 0:t.renderBefore)!=null?n:null;e._$litPart$=r=new Ne(i.insertBefore(ei(),d),d,void 0,t!=null?t:{})}return r._$AI(s),r};var ye=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;let i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=is(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return mt}},rs;ye._$litElement$=!0,ye.finalized=!0,(rs=globalThis.litElementHydrateSupport)==null||rs.call(globalThis,{LitElement:ye});var cr=globalThis.litElementPolyfillSupport;cr==null||cr({LitElement:ye});var ss;((ss=globalThis.litElementVersions)!=null?ss:globalThis.litElementVersions=[]).push("4.1.1");var Eo=(s,i)=>window.customElements.get(s)?(console.warn(`Custom element ${s} already defined. Registration skipped.`),i):(window.customElements.define(s,i),i),$o=(s,i)=>{let{kind:t,elements:e}=i;return{kind:t,elements:e,finisher(r){if(window.customElements.get(s)){console.warn(`Custom element ${s} already defined. Registration skipped.`);return}window.customElements.define(s,r)}}},y=s=>i=>typeof i=="function"?Eo(s,i):$o(s,i);var To={name:"default",resolver:s=>{let i=s.split("/");return(i[0]==="content"||i[0]==="system")&&(s="union-investment/"+s),`https://celum-icons.fe.union-investment.de/${s}.svg`},mutator:s=>{let i={currentColorFills:[],currentColorStrokes:[],greenFills:[],greenStrokes:[]};return i.currentColorFills=s.querySelectorAll('[fill="#00358e" i]'),i.currentColorStrokes=s.querySelectorAll('[stroke="#00358e" i]'),i.greenFills=s.querySelectorAll('[fill="#2d9d00" i]'),i.greenStrokes=s.querySelectorAll('[stroke="#2d9d00" i]'),i.currentColorFills.forEach(t=>{t.setAttribute("fill","currentColor")}),i.currentColorStrokes.forEach(t=>{t.setAttribute("stroke","currentColor")}),i.greenFills.forEach(t=>{t.setAttribute("fill","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")}),i.greenStrokes.forEach(t=>{t.setAttribute("stroke","rgb(var(--sd-color-accent, 45 157 0) / var(--tw-bg-opacity, 1))")}),s}},os=To;var as={calendar:`
4
4
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
@@ -64,11 +64,11 @@ var tr=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnProperty
64
64
  <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":`
65
65
  <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>`,transcript:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> <path d="M19 22H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h9a1 1 0 0 1 .707.293l5 5c.186.187.293.444.293.707v13a1 1 0 0 1-1 1ZM6 20h12V8.413L13.587 4H6v16Z"/> <path d="M19 10h-6a1 1 0 0 1-1-1V3a1 1 0 1 1 2 0v5h5a1 1 0 1 1 0 2Zm-3 4H8a1 1 0 1 1 0-2h8a1 1 0 1 1 0 2Zm-2 4H8a1 1 0 1 1 0-2h6a1 1 0 1 1 0 2Z"/></svg>',mute:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
66
66
  <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm12.374-8.96a1 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.414L18.747 12l2.96-2.96a1 1 0 0 0 0-1.414v.001Z"/></svg>`,volume:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
67
- <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm9.217-13.48a1 1 0 0 0-.44 1.339l-.003-.006c1.177 2.191 1.876 4.792 1.893 7.555V12a16.365 16.365 0 0 1-1.936 7.638l.043-.088a1.002 1.002 0 0 0 .438 1.331l.006.003c.13.071.285.114.449.117h.001a.999.999 0 0 0 .89-.544l.003-.006c1.312-2.45 2.09-5.357 2.107-8.445v-.005c-.017-3.093-.794-6-2.155-8.549l.048.099a1.001 1.001 0 0 0-1.349-.44l.006-.003-.001-.001Z"/><path d="M14.447 5.167a1 1 0 0 0-.278 1.39l-.002-.004C15.35 8.333 16 10.266 16 12s-.667 3.667-1.833 5.447a1 1 0 0 0 1.664 1.11l.002-.004C17.23 16.45 18 14.12 18 12s-.77-4.45-2.167-6.553a1 1 0 0 0-1.39-.278l.004-.002Z"/></svg>`,reload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M3.697 10.447 5.03 11.78c.1-4.76 3.717-8.447 8.303-8.447a8.667 8.667 0 0 1 0 17.334 1 1 0 0 1 0-2 6.667 6.667 0 0 0 0-13.334C9.8 5.333 7.126 8.076 7 11.753l1.333-1.307a1 1 0 0 1 1.414 1.417l-3.023 3.023a.996.996 0 0 1-1.416 0l-3.023-3.023a1.002 1.002 0 0 1 1.417-1.417l-.005.001Z"/></svg>'},Lo={name:"system",resolver:s=>s in as?`data:image/svg+xml,${encodeURIComponent(as[s])}`:"",mutator:s=>s.setAttribute("fill","currentColor")},ns=Lo;var _i=[ns,os],Hi=[];function ls(s){Hi.push(s)}function ds(s){Hi=Hi.filter(i=>i!==s)}function hr(s){return _i.find(i=>i.name===s)}function zo(s,i){cs(s),_i.push({name:s,resolver:i.resolver,mutator:i.mutator}),Hi.forEach(t=>{t.library===s&&t.setIcon()})}function cs(s){_i=_i.filter(i=>i.name!==s)}var Ao={attribute:!0,type:String,converter:ve,reflect:!1,hasChanged:$i},Oo=(s=Ao,i,t)=>{let{kind:e,metadata:r}=t,a=globalThis.litPropertyMetadata.get(r);if(a===void 0&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(t.name,s),e==="accessor"){let{name:n}=t;return{set(d){let h=i.get.call(this);i.set.call(this,d),this.requestUpdate(n,h,s)},init(d){return d!==void 0&&this.P(n,void 0,s),d}}}if(e==="setter"){let{name:n}=t;return function(d){let h=this[n];i.call(this,d),this.requestUpdate(n,h,s)}}throw Error("Unsupported decorator location: "+e)};function l(s){return(i,t)=>typeof t=="object"?Oo(s,i,t):((e,r,a)=>{let n=r.hasOwnProperty(a);return r.constructor.createProperty(a,n?et(O({},e),{wrapped:!0}):e),n?Object.getOwnPropertyDescriptor(r,a):void 0})(s,i,t)}function C(s){return l(et(O({},s),{state:!0,attribute:!1}))}var Qt=(s,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(s,i,t),t);function b(s,i){return(t,e,r)=>{let a=n=>{var d,h;return(h=(d=n.renderRoot)==null?void 0:d.querySelector(s))!=null?h:null};if(i){let{get:n,set:d}=typeof e=="object"?t:r!=null?r:(()=>{let h=Symbol();return{get(){return this[h]},set(p){this[h]=p}}})();return Qt(t,e,{get(){let h=n.call(this);return h===void 0&&(h=a(this),(h!==null||this.hasUpdated)&&d.call(this,h)),h}})}return Qt(t,e,{get(){return a(this)}})}}var pr;function hs(s){return(i,t)=>Qt(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:pr!=null?pr:pr=document.createDocumentFragment()).querySelectorAll(s)}})}function ps(s){return(i,t)=>Qt(i,t,{async get(){var e,r;return await this.updateComplete,(r=(e=this.renderRoot)==null?void 0:e.querySelector(s))!=null?r:null}})}function Ke(s){return(i,t)=>{let{slot:e,selector:r}=s!=null?s:{},a="slot"+(e?`[name=${e}]`:":not([name])");return Qt(i,t,{get(){var h,p;let n=(h=this.renderRoot)==null?void 0:h.querySelector(a),d=(p=n==null?void 0:n.assignedElements(s))!=null?p:[];return r===void 0?d:d.filter(f=>f.matches(r))}})}}var ur=new Map;function Si(s,i="cors"){if(ur.has(s))return ur.get(s);let t=fetch(s,{mode:i}).then(async e=>({ok:e.ok,status:e.status,html:await e.text()}));return ur.set(s,t),t}var mr=new Map;async function us(s){if(mr.has(s))return mr.get(s);let i=await Si(s),t={ok:i.ok,status:i.status,svg:null};if(i.ok){let e=document.createElement("div");e.innerHTML=i.html;let r=e.firstElementChild;t.svg=(r==null?void 0:r.tagName.toLowerCase())==="svg"?r.outerHTML:""}return mr.set(s,t),t}var $t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},oe=s=>(...i)=>({_$litDirective$:s,values:i}),we=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Oe=class extends we{constructor(i){if(super(i),this.it=Y,i.type!==$t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===Y||i==null)return this._t=void 0,this.it=i;if(i===mt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Oe.directiveName="unsafeHTML",Oe.resultType=1;var si=oe(Oe);var oi=class extends Oe{};oi.directiveName="unsafeSVG",oi.resultType=2;var ms=oe(oi);function w(s,i){let t=O({waitUntilFirstUpdate:!1},i);return(e,r)=>{let{update:a}=e,n=Array.isArray(s)?s:[s];e.update=function(d){n.forEach(h=>{let p=h;if(d.has(p)){let f=d.get(p),g=this[p];f!==g&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[r](f,g)}}),a.call(this,d)}}}var Mo=Ci,m=class extends ye{emit(i,t){let e=new CustomEvent(i,O({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(e),e}};m.styles=[Mo`.sd-interactive--reset,.sd-prose a--reset{all:unset;outline:revert}.sd-interactive,.sd-prose a{cursor:pointer;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1));text-decoration-line:underline;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.sd-interactive:hover:not([disabled]),.sd-prose a:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.sd-interactive:active:not([disabled]),.sd-prose a:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity,1))}.sd-interactive:is(.sd-interactive),.sd-prose a:is(.sd-interactive){text-decoration-line:none}.sd-interactive:focus-visible,.sd-prose a:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--disabled,.sd-interactive[disabled],.sd-interactive[href=""],.sd-prose a--disabled,.sd-prose a[disabled],.sd-prose a[href=""]{cursor:not-allowed;--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.sd-interactive--disabled:active:not([disabled]),.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]),.sd-interactive[href=""]:active:not([disabled]),.sd-interactive[href=""]:hover:not([disabled]),.sd-prose a--disabled:active:not([disabled]),.sd-prose a--disabled:hover:not([disabled]),.sd-prose a[disabled]:active:not([disabled]),.sd-prose a[disabled]:hover:not([disabled]),.sd-prose a[href=""]:active:not([disabled]),.sd-prose a[href=""]:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.sd-interactive--inverted,.sd-prose--inverted a{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.sd-interactive--inverted:hover:not([disabled]),.sd-prose--inverted a:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.sd-interactive--inverted:active:not([disabled]),.sd-prose--inverted a:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.sd-interactive--inverted:focus-visible,.sd-prose--inverted a:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.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,1))}.sd-headline sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-4-0-0-next-4-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}@media (min-width:640px){.sd-headline sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-4-0-0-next-4-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-4-0-0-next-4-icon,.sd-headline:is(h1):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-4-0-0-next-4-icon{margin-top:calc(var(--sd-spacing-1,.25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-4-0-0-next-4-icon,.sd-headline:is(h1):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-4-0-0-next-4-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-4-0-0-next-4-icon,.sd-headline:is(h2):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-4-0-0-next-4-icon{margin-top:calc(var(--sd-spacing-1,.25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-4-0-0-next-4-icon,.sd-headline:is(h2):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-4-0-0-next-4-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,1))}.sd-headline.sd-headline--size-base sd-4-0-0-next-4-icon,.sd-headline.sd-headline--size-lg sd-4-0-0-next-4-icon,.sd-headline.sd-headline--size-xl sd-4-0-0-next-4-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-4-0-0-next-4-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-4-0-0-next-4-icon,.sd-headline:is(h3):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-4-0-0-next-4-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-4-0-0-next-4-icon,.sd-headline:is(h3):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-4-0-0-next-4-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-4-0-0-next-4-icon,.sd-headline:is(h4) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-4-0-0-next-4-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-4-0-0-next-4-icon,.sd-headline:is(h4) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-4-0-0-next-4-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-4-0-0-next-4-icon,.sd-headline:is(h5):not(.sd-headline) sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-4-0-0-next-4-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-4-0-0-next-4-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-4-0-0-next-4-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-4-0-0-next-4-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#_),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.sd-headline--inverted:not(#_) sd-4-0-0-next-4-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_) sd-4-0-0-next-4-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:var(--sd-spacing-0,0)}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-0\\.25{top:calc(var(--sd-spacing-0-25,1px)*-1)}.-top-4{top:calc(var(--sd-spacing-4,1rem)*-1)}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.left-auto{left:var(--sd-spacing-auto,auto)}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.right-4{right:var(--sd-spacing-4,1rem)}.right-auto{right:var(--sd-spacing-auto,auto)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.\\!m-0{margin:var(--sd-spacing-0,0)!important}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-\\[-1px\\]{margin-left:-1px;margin-right:-1px}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.my-auto{margin-bottom:var(--sd-spacing-auto,auto);margin-top:var(--sd-spacing-auto,auto)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.mb-auto{margin-bottom:var(--sd-spacing-auto,auto)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-3{margin-left:var(--sd-spacing-3,.75rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-4{margin-right:var(--sd-spacing-4,1rem)}.mr-6{margin-right:var(--sd-spacing-6,1.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-0\\.25{margin-top:var(--sd-spacing-0-25,1px)}.mt-1{margin-top:var(--sd-spacing-1,.25rem)}.mt-2{margin-top:var(--sd-spacing-2,.5rem)}.mt-3{margin-top:var(--sd-spacing-3,.75rem)}.mt-4{margin-top:var(--sd-spacing-4,1rem)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-auto{margin-top:var(--sd-spacing-auto,auto)}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-full{height:100%!important}.h-0\\.25{height:var(--sd-spacing-0-25,1px)}.h-1{height:var(--sd-spacing-1,.25rem)}.h-10{height:var(--sd-spacing-10,2.5rem)}.h-12{height:var(--sd-spacing-12,3rem)}.h-16{height:var(--sd-spacing-16,4rem)}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[6px\\]{height:6px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.\\!w-full{width:100%!important}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-12{width:var(--sd-spacing-12,3rem)}.w-16{width:var(--sd-spacing-16,4rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-3{width:var(--sd-spacing-3,.75rem)}.w-3\\/4{width:75%}.w-4{width:var(--sd-spacing-4,1rem)}.w-40{width:var(--sd-spacing-40,10rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[1px\\]{width:1px}.w-\\[48px\\]{width:48px}.w-\\[6px\\]{width:6px}.w-\\[72px\\]{width:72px}.w-\\[96px\\]{width:96px}.w-auto{width:var(--sd-spacing-auto,auto)}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:var(--sd-spacing-0,0)}.min-w-2{min-width:var(--sd-spacing-2,.5rem)}.min-w-4{min-width:var(--sd-spacing-4,1rem)}.min-w-5{min-width:var(--sd-spacing-5,1.25rem)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-auto{flex-basis:var(--sd-spacing-auto,auto)}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:-50%!important}.\\!-translate-x-1\\/2,.\\!-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\\!-translate-y-1\\/2{--tw-translate-y:-50%!important}.\\!translate-x-1\\/2{--tw-translate-x:50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, 0.5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,0.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[-90deg\\]{--tw-rotate:-90deg}.rotate-\\[-90deg\\],.rotate-\\[270deg\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\\[270deg\\]{--tw-rotate:270deg}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}.scale-110,.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce-once{0%{transform:translateY(0)}15%{transform:translateY(-9px)}25%{transform:translateY(-12px)}40%{transform:translateY(-4px)}50%{transform:translateY(0)}65%{transform:translateY(-4px)}75%{transform:translateY(-6px)}90%{transform:translateY(-2px)}to{transform:translateY(0)}}.animate-bounce-once{animation:bounce-once .6s ease-in-out}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.\\!items-center{align-items:center!important}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.\\!justify-center{justify-content:center!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-3{gap:var(--sd-spacing-3,.75rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-6{gap:var(--sd-spacing-6,1.5rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-b-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-b-none{border-bottom-left-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[0\\.25px\\]{border-width:.25px}.border-\\[1px\\]{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity,1))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity,1))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity,1))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity,1))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity,1))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity,1))}.bg-\\[black\\]{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity,1))}.bg-accent-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-500,37 136 14)/var(--tw-bg-opacity,1))}.bg-error{background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity,1))}.bg-error,.bg-info{--tw-bg-opacity:1}.bg-info{background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity,1))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}.bg-neutral-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/.8)}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity,1))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity,1))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity,1))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.bg-primary-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary-100,236 240 249)/.8)}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity,1))}.bg-primary-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity,1))}.bg-primary\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary,0 53 142)/.8)}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity,1))}.bg-warning,.bg-white{--tw-bg-opacity:1}.bg-white{background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1))}.bg-white\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-white,255 255 255)/.8)}.bg-opacity-60{--tw-bg-opacity:var(--sd-opacity-60,0.6)}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,0.75)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,0.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/75{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-75,0.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/\\[\\.6\\]{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/60{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,0.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/75{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-75,0.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/90{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,0.9)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-primary-800\\/60{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,0.6)) var(--tw-gradient-to-position)}.to-primary-800\\/\\[\\.6\\]{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-to-position)}.to-white\\/60{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,0.6)) var(--tw-gradient-to-position)}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-to-position)}.to-40\\%{--tw-gradient-to-position:40%}.to-60\\%{--tw-gradient-to-position:60%}.fill-accent{fill:rgb(var(--sd-color-accent,45 157 0)/1)}.fill-accent-550{fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.fill-accent-700{fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-primary-100{fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.fill-primary-200{fill:rgb(var(--sd-color-primary-200,224 233 243)/1)}.fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.fill-transparent{fill:transparent}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-2{padding:var(--sd-spacing-2,.5rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-1{padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-12{padding-left:var(--sd-spacing-12,3rem);padding-right:var(--sd-spacing-12,3rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.py-0{padding-bottom:var(--sd-spacing-0,0);padding-top:var(--sd-spacing-0,0)}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pb-4{padding-bottom:var(--sd-spacing-4,1rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-0{padding-top:var(--sd-spacing-0,0)}.pt-1{padding-top:var(--sd-spacing-1,.25rem)}.pt-2{padding-top:var(--sd-spacing-2,.5rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.\\!text-base{font-size:var(--sd-font-size-base,1rem)!important}.text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.\\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-\\[0\\]{line-height:0}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.leading-tight{line-height:var(--sd-line-height-tight,120%)}.\\!text-neutral-700{--tw-text-opacity:1!important;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))!important}.\\!text-primary{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))!important}.text-black{color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}.text-black,.text-error{--tw-text-opacity:1}.text-error{color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}.text-primary-400{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,37 136 14)/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.\\!underline{text-decoration-line:underline!important}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.\\!underline-offset-2{text-underline-offset:2px!important}.underline-offset-2{text-underline-offset:2px}.placeholder-black::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity,1))}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity,1))}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity,1))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity,1))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-100{opacity:var(--sd-opacity-100,1)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.opacity-50{opacity:var(--sd-opacity-50,.5)}.opacity-90{opacity:var(--sd-opacity-90,.9)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-dotted{outline-style:dotted}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.\\!-outline-offset-2{outline-offset:-2px!important}.\\!outline-offset-0{outline-offset:0!important}.outline-offset-2{outline-offset:2px}.outline-error{outline-color:rgb(var(--sd-color-error,204 25 55)/1)}.outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}:host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit}[hidden]{display:none!important}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:outline-offset-2:focus{outline-offset:2px}.focus\\:outline-primary:focus{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity,1))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity,1))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity,1))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity,1))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:w-full{width:100%}.group:hover .group-hover\\:cursor-pointer{cursor:pointer}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:border-primary-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-neutral-100\\/90{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-primary-100\\/90{background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-primary\\/90{background-color:rgb(var(--sd-color-primary,0 53 142)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-white\\/90{background-color:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.group:hover .group-hover\\:\\!text-primary-500{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-primary-500{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.group:focus-visible .group-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity,1))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity,1))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity,1))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity,1))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity,1))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity,1))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity,1))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity,1))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:fill-accent-550:hover:not([disabled]){fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.hover\\:fill-primary-100:hover:not([disabled]){fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity,1))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity,1))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity,1))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity,1))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity,1))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity,1))}.active\\:fill-accent-700:active:not([disabled]){fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:mt-2{margin-top:var(--sd-spacing-2,.5rem)}.sm\\:flex-col{flex-direction:column}.sm\\:gap-4{gap:var(--sd-spacing-4,1rem)}.sm\\:self-center{align-self:center}.sm\\:p-6{padding:var(--sd-spacing-6,1.5rem)}.sm\\:px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.sm\\:py-8{padding-top:var(--sd-spacing-8,2rem)}.sm\\:pb-8,.sm\\:py-8{padding-bottom:var(--sd-spacing-8,2rem)}.sm\\:text-center{text-align:center}.sm\\:text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.sm\\:text-4xl{font-size:var(--sd-font-size-4xl,2.5rem)}.sm\\:leading-tight{line-height:var(--sd-line-height-tight,120%)}}@media (min-width:768px){.md\\:block{display:block}.md\\:\\[transition\\:_height_0\\.2s_linear\\2c opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}.group:hover .md\\:group-hover\\:visible{visibility:visible}.group:hover .md\\:group-hover\\:my-4{margin-bottom:var(--sd-spacing-4,1rem);margin-top:var(--sd-spacing-4,1rem)}.group:hover .md\\:group-hover\\:h-auto{height:var(--sd-spacing-auto,auto)}.group:hover .md\\:group-hover\\:opacity-\\[100\\%\\]{opacity:100%}}`],o([l()],m.prototype,"dir",2),o([l()],m.prototype,"lang",2);var fr,lt=class extends m{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),ls(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),ds(this)}getUrl(){let t=hr(this.library);return this.name&&t?t.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var r;let t=hr(this.library),e=this.getUrl();if(fr||(fr=new DOMParser),e)try{let a=await us(e);if(e===this.getUrl())if(a.ok){let d=fr.parseFromString(a.svg,"text/html").body.querySelector("svg");d!==null?((r=t==null?void 0:t.mutator)==null||r.call(t,d),this.svg=d.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(a){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return u`${ms(this.svg)}`}};lt.styles=[...m.styles,v`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],o([C()],lt.prototype,"svg",2),o([l({reflect:!0})],lt.prototype,"name",2),o([l()],lt.prototype,"src",2),o([l()],lt.prototype,"label",2),o([l({reflect:!0})],lt.prototype,"library",2),o([l({reflect:!0})],lt.prototype,"color",2),o([w("label")],lt.prototype,"handleLabelChange",1),o([w(["name","src","library"])],lt.prototype,"setIcon",1),lt=o([y("sd-4-0-0-next-4-icon")],lt);function R(s,i,t){return new Promise(e=>{if((t==null?void 0:t.duration)===1/0)throw new Error("Promise-based animations must be finite.");let r=s.animate(i,et(O({},t),{duration:ai()?0:t.duration}));r.addEventListener("cancel",e,{once:!0}),r.addEventListener("finish",e,{once:!0})})}function gr(s){return s=s.toString().toLowerCase(),s.indexOf("ms")>-1?parseFloat(s):s.indexOf("s")>-1?parseFloat(s)*1e3:parseFloat(s)}function ai(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function K(s){return Promise.all(s.getAnimations().map(i=>new Promise(t=>{let e=requestAnimationFrame(t);i.addEventListener("cancel",()=>e,{once:!0}),i.addEventListener("finish",()=>e,{once:!0}),i.cancel()})))}function br(s,i){return s.map(t=>et(O({},t),{height:t.height==="auto"?`${i}px`:t.height}))}var gs=new Map,_o=new WeakMap;function Ho(s){return s!=null?s:{keyframes:[],options:{duration:0}}}function fs(s,i){return i.toLowerCase()==="rtl"?{keyframes:s.rtlKeyframes||s.keyframes,options:s.options}:s}function S(s,i){gs.set(s,Ho(i))}function B(s,i,t){let e=_o.get(s);if(e!=null&&e[i])return fs(e[i],t.dir);let r=gs.get(i);return r?fs(r,t.dir):{keyframes:[],options:{duration:0}}}var vs=Symbol.for(""),So=s=>{if((s==null?void 0:s.r)===vs)return s==null?void 0:s._$litStatic$};var X=(s,...i)=>({_$litStatic$:i.reduce((t,e,r)=>t+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
68
- take care to ensure page security.`)})(e)+s[r+1],s[0]),r:vs}),bs=new Map,vr=s=>(i,...t)=>{let e=t.length,r,a,n=[],d=[],h,p=0,f=!1;for(;p<e;){for(h=i[p];p<e&&(a=t[p],(r=So(a))!==void 0);)h+=r+i[++p],f=!0;p!==e&&d.push(a),n.push(h),p++}if(p===e&&n.push(i[e]),f){let g=n.join("$$lit$$");(i=bs.get(g))===void 0&&(n.raw=n,bs.set(g,i=n)),t=d}return s(i,...t)},D=vr(u),Fd=vr(qe),Vd=vr(Jr);var yr=new Set,je=new Map,Me,wr="ltr",xr="en",ys=typeof MutationObserver!="undefined"&&typeof document!="undefined"&&typeof document.documentElement!="undefined";if(ys){let s=new MutationObserver(ws);wr=document.documentElement.dir||"ltr",xr=document.documentElement.lang||navigator.language,s.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Ii(...s){s.map(i=>{let t=i.$code.toLowerCase();je.has(t)?je.set(t,Object.assign(Object.assign({},je.get(t)),i)):je.set(t,i),Me||(Me=i)}),ws()}function ws(){ys&&(wr=document.documentElement.dir||"ltr",xr=document.documentElement.lang||navigator.language),[...yr.keys()].map(s=>{typeof s.requestUpdate=="function"&&s.requestUpdate()})}var Pi=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){yr.add(this.host)}hostDisconnected(){yr.delete(this.host)}dir(){return`${this.host.dir||wr}`.toLowerCase()}lang(){return`${this.host.lang||xr}`.toLowerCase()}getTranslationData(i){var t,e;let r=new Intl.Locale(i.replace(/_/g,"-")),a=r==null?void 0:r.language.toLowerCase(),n=(e=(t=r==null?void 0:r.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&e!==void 0?e:"",d=je.get(`${a}-${n}`),h=je.get(a);return{locale:r,language:a,region:n,primary:d,secondary:h}}exists(i,t){var e;let{primary:r,secondary:a}=this.getTranslationData((e=t.lang)!==null&&e!==void 0?e:this.lang());return t=Object.assign({includeFallback:!1},t),!!(r&&r[i]||a&&a[i]||t.includeFallback&&Me&&Me[i])}term(i,...t){let{primary:e,secondary:r}=this.getTranslationData(this.lang()),a;if(e&&e[i])a=e[i];else if(r&&r[i])a=r[i];else if(Me&&Me[i])a=Me[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,e){return new Intl.RelativeTimeFormat(this.lang(),e).format(i,t)}};var Po={$code:"de",$name:"Deutsch",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio-Player",carousel:"Karussell",clearEntry:"Eingabe l\xF6schen",close:"Schlie\xDFen",comboboxDefaultPlaceholder:"Bitte suchen und ausw\xE4hlen",copy:"Kopieren",currentValue:"Aktueller Wert",goToSlide:(s,i)=>`Zu Folie ${s} von ${i} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",mute:"Stummschalten",nextSlide:"N\xE4chste Folie",noResults:"Keine Ergebnisse gefunden",numOptionsSelected:s=>s===0?"":`Optionen ausgew\xE4hlt (${s})`,pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",previousSlide:"Vorherige Folie",progress:"Fortschritt",remove:"Entfernen",removed:s=>`${s} entfernt`,resize:"Gr\xF6\xDFe \xE4ndern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm ausw\xE4hlen",selectDefaultPlaceholder:"Bitte ausw\xE4hlen",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(s,i)=>`Folie ${s} von ${i}`,tagsSelected:"Optionen ausgew\xE4hlt",toggleColorFormat:"Farbformat umschalten",unmute:"Unmute"};Ii(Po);var Io={$code:"en",$name:"English",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio Player",clearEntry:"Clear entry",close:"Close",comboboxDefaultPlaceholder:"Please search and select",copy:"Copy",carousel:"Carousel",currentValue:"Current value",goToSlide:(s,i)=>`Go to slide ${s} of ${i}`,hidePassword:"Hide password",loading:"Loading",mute:"Mute",nextSlide:"Next slide",noResults:"No results found",numOptionsSelected:s=>s===0?"":`Options Selected (${s})`,pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",removed:s=>`${s} removed`,resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:s=>`Slide ${s}`,tagsSelected:"Options selected",toggleColorFormat:"Toggle color format",unmute:"Unmute"};Ii(Io);var F=class extends Pi{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(){let t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(e){console.error("Error parsing custom-localization attribute:",e)}}term(t,...e){let r=this.instanceTranslations&&this.instanceTranslations[t];return r?typeof r=="function"?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations=O(O({},this.instanceTranslations),t)}};function U(s,i){return new Promise(t=>{function e(r){r.target===s&&(s.removeEventListener(i,e),t())}s.addEventListener(i,e)})}function c(){let s,i="",t=0;for(;t<arguments.length;)(s=arguments[t++])&&typeof s=="string"&&(i&&(i+=" "),i+=s);return i}var ft=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(t=>{for(let e of t)e.type==="attributes"&&e.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.accordionObserver)==null||t.disconnect()}handleSummaryClick(t){t.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await K(this.body),this.body.hidden=!1;let{keyframes:e,options:r}=B(this,"accordion.show",{dir:this.localize.dir()});await R(this.body,br(e,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await K(this.body);let{keyframes:e,options:r}=B(this,"accordion.hide",{dir:this.localize.dir()});await R(this.body,br(e,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return D`<details part="base" class="border-y border-neutral-400"><summary part="header" id="header" class="${c("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus-visible:focus-outline text-primary hover:bg-neutral-200 relative group")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${c(!this.open&&"opacity-0","w-1 bg-accent absolute left-0 transition-all h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-4-0-0-next-4-icon library="system" name="chevron-down"></sd-4-0-0-next-4-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-4-0-0-next-4-icon library="system" name="chevron-down"></sd-4-0-0-next-4-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};ft.styles=[...m.styles,v`:host{display:block}`],o([b('[part="base"]')],ft.prototype,"accordion",2),o([b('[part="header"]')],ft.prototype,"header",2),o([b('[part="content"]')],ft.prototype,"body",2),o([l({type:Boolean,reflect:!0})],ft.prototype,"open",2),o([l()],ft.prototype,"summary",2),o([w("open",{waitUntilFirstUpdate:!0})],ft.prototype,"handleOpenChange",1),ft=o([y("sd-4-0-0-next-4-accordion")],ft);S("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var ae=class extends m{constructor(){super(...arguments);this.closeOthers=!1;this.handleAccordionShow=t=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach(e=>{e!==t.target&&e.parentNode===t.target.parentNode&&e.removeAttribute("open")})}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return u`<div part="base"><slot></slot></div>`}};ae.styles=[...m.styles,v`:host{display:block}::slotted(sd-4-0-0-next-4-accordion:not(:first-of-type)){margin-top:-1px}`],o([Ke({selector:"sd-4-0-0-next-4-accordion"})],ae.prototype,"_accordionsInDefaultSlot",2),o([l({attribute:"close-others",type:Boolean})],ae.prototype,"closeOthers",2),ae=o([y("sd-4-0-0-next-4-accordion-group")],ae);var _=class{constructor(i,...t){this.slotNames=[];(this.host=i).addController(this),this.slotNames=t,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="sd-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(i){let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()}};var xe=class{constructor(i){this.fixedEnd=!0;this.fixedStart=!0;this.gradient=!1;this.outline=!1;this.map=(i,t,e,r,a)=>(i-t)*(a-r)/(e-t)+r;this.damp=(i,t,e)=>2*(1-t/i)*(t/i)*e;this.canvas=i.canvas,this.frequency=i.frequency,this.phase=i.phase,this.amplitude=i.amplitude,this.color=i.color,this.shift=i.shift,this.lineWidth=2,this.damping=i.damping,this.context=this.canvas.getContext("2d"),this.paused=!0,this.playbackSpeed=1,this.origin={x:0,y:this.canvas.height}}drawPoint(i,t,e){if(!this.context)return;let r=this.lineWidth/2;if(this.context.beginPath(),this.outline&&(this.context.fillStyle=e,this.context.lineWidth=2,this.context.arc(i,t,r,0,2*Math.PI),this.context.fill()),this.gradient){let a=this.context.createLinearGradient(0,0,0,this.canvas.height);a.addColorStop(.1,e),a.addColorStop(1,"transparent"),this.context.fillStyle=a}else this.context.fillStyle=e;this.context.fillRect(i-r,t-r,r,this.canvas.height-t+r)}buildSine(i,t,e,r,a){for(let n=this.origin.x,d=this.origin.x+i;n<d;n+=1){let h=r*Math.sin(a*(n+t));this.fixedStart&&this.fixedEnd?this.drawPoint(n,this.origin.y+this.damp(d,n,this.damping)*h,e):this.fixedStart?this.drawPoint(n,this.origin.y+this.map(n,this.origin.x,d,0,this.damping)*h,e):this.fixedEnd?this.drawPoint(n,this.origin.y+(this.damping-this.map(n,this.origin.x,d,0,this.damping))*h,e):this.drawPoint(n,this.origin.y+h,e)}}redraw(){this.phase+=this.shift*(this.paused?1:2*this.playbackSpeed),this.buildSine(this.canvas.width,this.phase,this.color,this.amplitude,this.frequency)}setPlay(){this.paused=!1}setPause(){this.paused=!0}setPlaybackSpeed(i){this.playbackSpeed=i}};var it=class extends m{constructor(){super();this.localize=new F(this);this.hasSlotController=new _(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.progress=0;this.setAudioProgress=()=>{this.progressSlider.max=Math.floor(this.audioElement.duration).toString()};this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),this.audioElement.playbackRate=this.speed,this.animated&&this.initAnimation())}updated(t){if(t.has("animated")){let e=t.get("animated");!e&&this.animated?this.initAnimation():e&&!this.animated&&this.clear()}}get audioElement(){let t=this.shadowRoot.querySelector("slot");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let t=this.audioElement.currentTime;this.currentTime=this.formatTime(t),this.progress=Math.floor(t),this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.setAudioProgress()}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.togglePlaybackSpeed())}formatTime(t){let e=Math.floor(t/60),r=Math.floor(t%60);return`${e}:${r<10?"0":""}${r}`}handleAudioProgress(){if(!this.audioElement)return;let t=Number(this.progressSlider.value);this.audioElement.currentTime=t,this.progress=t,this.currentTime=this.formatTime(t)}handleAudioProgressKeydown(t){t.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),t.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0}showTranscriptKeydown(t){(t.key==="Enter"||t.key===" ")&&this.showTranscript()}rgbToHex(t){let e=t.match(/\d+/g);if(e&&e.length===3){let r=parseInt(e[0]),a=parseInt(e[1]),n=parseInt(e[2]),d=p=>p.toString(16).padStart(2,"0");return`#${d(r)}${d(a)}${d(n)}`.toUpperCase()}return null}initAnimation(){this.context=this.canvas.getContext("2d");let t=this.audioPlayerContainer.querySelector(".playback-speed"),r=window.getComputedStyle(t).color,a;this.inverted?a="#FFFFFF33":a=this.rgbToHex(r)+"33",this.waveList=[new xe({canvas:this.canvas,color:a,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(t=>{t.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(t=>{t.redraw()}),await new Promise(t=>{setTimeout(t,1e3/30)}),await this.draw())}render(){let t=this.audioElement?this.progress/this.audioElement.duration*100:0,e=u`<div class="${c("controls grid grid-cols-3 justify-items-center items-center",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full",this.reversedLayout?"mt-2":"mb-2")}" part="audio-controls"><button class="${c("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-4-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying?u`<slot name="pause-icon"><sd-4-0-0-next-4-icon class="text-3xl" name="pause" library="system"></sd-4-0-0-next-4-icon></slot>`:u`<slot name="play-icon"><sd-4-0-0-next-4-icon class="text-3xl" name="start" library="system"></sd-4-0-0-next-4-icon></slot>`}</sd-4-0-0-next-4-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript")?u`<button class="${c("mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-4-icon class="w-6 h-6" name="transcript" library="system" label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}"></sd-4-0-0-next-4-icon></button>`:null} <button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.localize.term("mute")}" tabindex="0" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-0-0-next-4-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="system"></sd-4-0-0-next-4-icon></button></div></div>`,r=u`<div class="${c("w-full flex justify-between",this.reversedLayout?"mb-2":"mt-2",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 mb-2",this.animated&&!this.reversedLayout&&"mt-2")}" part="timestamps"><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.currentTime}</div><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.duration}</div></div>`;return u`<div class="${c("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?u`${e}`:null} ${this.animated?u`<canvas class="w-full h-16"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?r:null} <input class="${c("progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",this.inverted&&"sd-interactive--inverted")}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted?"rgb(var(--sd-color-white, 255 255 255) / 1)":"rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${t}%,${this.animated?"transparent":this.inverted?"rgb(var(--sd-color-primary-400, 153 171 208) / 1)":"rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${t}%)"></div>${this.hasSlotController.test("transcript")?u`<sd-4-0-0-next-4-drawer><slot name="transcript"></slot></sd-4-0-0-next-4-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?r:null}</div>`}};it.styles=[...m.styles,v`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-4-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-4-0-0-next-4-button::part(label){align-items:center;display:flex;flex-grow:0}`],o([l({type:Boolean,reflect:!0,attribute:"reversed-layout"})],it.prototype,"reversedLayout",2),o([l({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],it.prototype,"hideTimestamps",2),o([l({type:Boolean,reflect:!0})],it.prototype,"animated",2),o([l({type:Boolean,reflect:!0})],it.prototype,"inverted",2),o([l({type:Number})],it.prototype,"speed",2),o([C()],it.prototype,"currentTime",2),o([C()],it.prototype,"duration",2),o([C()],it.prototype,"isPlaying",2),o([C()],it.prototype,"isMuted",2),o([C()],it.prototype,"progress",2),o([b('[part="progress-slider"]')],it.prototype,"progressSlider",2),o([b('[part="audio-player"]')],it.prototype,"audioPlayerContainer",2),o([b("sd-4-0-0-next-4-drawer")],it.prototype,"drawer",2),o([b("canvas")],it.prototype,"canvas",2),it=o([y("sd-4-0-0-next-4-audio")],it);var ni={};fo(ni,{backInDown:()=>Zo,backInLeft:()=>Qo,backInRight:()=>Jo,backInUp:()=>Go,backOutDown:()=>ta,backOutLeft:()=>ea,backOutRight:()=>ia,backOutUp:()=>ra,bounce:()=>Do,bounceIn:()=>sa,bounceInDown:()=>oa,bounceInLeft:()=>aa,bounceInRight:()=>na,bounceInUp:()=>la,bounceOut:()=>da,bounceOutDown:()=>ca,bounceOutLeft:()=>ha,bounceOutRight:()=>pa,bounceOutUp:()=>ua,easings:()=>kr,fadeIn:()=>ma,fadeInBottomLeft:()=>fa,fadeInBottomRight:()=>ga,fadeInDown:()=>ba,fadeInDownBig:()=>va,fadeInLeft:()=>ya,fadeInLeftBig:()=>wa,fadeInRight:()=>xa,fadeInRightBig:()=>ka,fadeInTopLeft:()=>Ca,fadeInTopRight:()=>Ea,fadeInUp:()=>$a,fadeInUpBig:()=>Ta,fadeOut:()=>La,fadeOutBottomLeft:()=>za,fadeOutBottomRight:()=>Aa,fadeOutDown:()=>Oa,fadeOutDownBig:()=>Ma,fadeOutLeft:()=>_a,fadeOutLeftBig:()=>Ha,fadeOutRight:()=>Sa,fadeOutRightBig:()=>Pa,fadeOutTopLeft:()=>Ia,fadeOutTopRight:()=>Da,fadeOutUp:()=>Fa,fadeOutUpBig:()=>Va,flash:()=>Fo,flip:()=>Ra,flipInX:()=>Ba,flipInY:()=>Ua,flipOutX:()=>Na,flipOutY:()=>qa,headShake:()=>Vo,heartBeat:()=>Ro,hinge:()=>mn,jackInTheBox:()=>fn,jello:()=>Bo,lightSpeedInLeft:()=>Ka,lightSpeedInRight:()=>ja,lightSpeedOutLeft:()=>Ya,lightSpeedOutRight:()=>Wa,pulse:()=>Uo,rollIn:()=>gn,rollOut:()=>bn,rotateIn:()=>Xa,rotateInDownLeft:()=>Za,rotateInDownRight:()=>Qa,rotateInUpLeft:()=>Ja,rotateInUpRight:()=>Ga,rotateOut:()=>tn,rotateOutDownLeft:()=>en,rotateOutDownRight:()=>rn,rotateOutUpLeft:()=>sn,rotateOutUpRight:()=>on,rubberBand:()=>No,shake:()=>qo,shakeX:()=>Ko,shakeY:()=>jo,slideInDown:()=>an,slideInLeft:()=>nn,slideInRight:()=>ln,slideInUp:()=>dn,slideOutDown:()=>cn,slideOutLeft:()=>hn,slideOutRight:()=>pn,slideOutUp:()=>un,swing:()=>Yo,tada:()=>Wo,wobble:()=>Xo,zoomIn:()=>vn,zoomInDown:()=>yn,zoomInLeft:()=>wn,zoomInRight:()=>xn,zoomInUp:()=>kn,zoomOut:()=>Cn,zoomOutDown:()=>En,zoomOutLeft:()=>$n,zoomOutRight:()=>Tn,zoomOutUp:()=>Ln});var Do=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}];var Fo=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}];var Vo=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}];var Ro=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}];var Bo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Uo=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var No=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var qo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Ko=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var jo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Yo=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}];var Wo=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var Xo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Zo=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Qo=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Jo=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Go=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var ta=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}];var ea=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}];var ia=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}];var ra=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}];var sa=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var oa=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var aa=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var na=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var la=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var da=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}];var ca=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}];var ha=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}];var pa=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}];var ua=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}];var ma=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}];var fa=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ga=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ba=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var va=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ya=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var wa=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var xa=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ka=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ca=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ea=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var $a=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ta=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var La=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}];var za=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}];var Aa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}];var Oa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}];var Ma=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}];var _a=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}];var Ha=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}];var Sa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}];var Pa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}];var Ia=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}];var Da=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}];var Fa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}];var Va=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}];var Ra=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
67
+ <path d="M10.717 4.077a.997.997 0 0 0-1.09.217L5.92 8.001H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.92l3.707 3.707a.997.997 0 0 0 .707.293h.007a.953.953 0 0 0 .382-.079l-.006.002c.365-.154.617-.509.617-.923v-14a1 1 0 0 0-.61-.921l-.007-.002v-.001ZM4 10h1.333v4H4v-4Zm5.333 6.587-2-2V9.414l2-2v9.173Zm9.217-13.48a1 1 0 0 0-.44 1.339l-.003-.006c1.177 2.191 1.876 4.792 1.893 7.555V12a16.365 16.365 0 0 1-1.936 7.638l.043-.088a1.002 1.002 0 0 0 .438 1.331l.006.003c.13.071.285.114.449.117h.001a.999.999 0 0 0 .89-.544l.003-.006c1.312-2.45 2.09-5.357 2.107-8.445v-.005c-.017-3.093-.794-6-2.155-8.549l.048.099a1.001 1.001 0 0 0-1.349-.44l.006-.003-.001-.001Z"/><path d="M14.447 5.167a1 1 0 0 0-.278 1.39l-.002-.004C15.35 8.333 16 10.266 16 12s-.667 3.667-1.833 5.447a1 1 0 0 0 1.664 1.11l.002-.004C17.23 16.45 18 14.12 18 12s-.77-4.45-2.167-6.553a1 1 0 0 0-1.39-.278l.004-.002Z"/></svg>`,reload:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M3.697 10.447 5.03 11.78c.1-4.76 3.717-8.447 8.303-8.447a8.667 8.667 0 0 1 0 17.334 1 1 0 0 1 0-2 6.667 6.667 0 0 0 0-13.334C9.8 5.333 7.126 8.076 7 11.753l1.333-1.307a1 1 0 0 1 1.414 1.417l-3.023 3.023a.996.996 0 0 1-1.416 0l-3.023-3.023a1.002 1.002 0 0 1 1.417-1.417l-.005.001Z"/></svg>'},Lo={name:"system",resolver:s=>s in as?`data:image/svg+xml,${encodeURIComponent(as[s])}`:"",mutator:s=>s.setAttribute("fill","currentColor")},ns=Lo;var _i=[ns,os],Si=[];function ls(s){Si.push(s)}function ds(s){Si=Si.filter(i=>i!==s)}function hr(s){return _i.find(i=>i.name===s)}function zo(s,i){cs(s),_i.push({name:s,resolver:i.resolver,mutator:i.mutator}),Si.forEach(t=>{t.library===s&&t.setIcon()})}function cs(s){_i=_i.filter(i=>i.name!==s)}var Ao={attribute:!0,type:String,converter:ve,reflect:!1,hasChanged:$i},Oo=(s=Ao,i,t)=>{let{kind:e,metadata:r}=t,a=globalThis.litPropertyMetadata.get(r);if(a===void 0&&globalThis.litPropertyMetadata.set(r,a=new Map),a.set(t.name,s),e==="accessor"){let{name:n}=t;return{set(d){let h=i.get.call(this);i.set.call(this,d),this.requestUpdate(n,h,s)},init(d){return d!==void 0&&this.P(n,void 0,s),d}}}if(e==="setter"){let{name:n}=t;return function(d){let h=this[n];i.call(this,d),this.requestUpdate(n,h,s)}}throw Error("Unsupported decorator location: "+e)};function l(s){return(i,t)=>typeof t=="object"?Oo(s,i,t):((e,r,a)=>{let n=r.hasOwnProperty(a);return r.constructor.createProperty(a,n?et(O({},e),{wrapped:!0}):e),n?Object.getOwnPropertyDescriptor(r,a):void 0})(s,i,t)}function C(s){return l(et(O({},s),{state:!0,attribute:!1}))}var Qt=(s,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(s,i,t),t);function b(s,i){return(t,e,r)=>{let a=n=>{var d,h;return(h=(d=n.renderRoot)==null?void 0:d.querySelector(s))!=null?h:null};if(i){let{get:n,set:d}=typeof e=="object"?t:r!=null?r:(()=>{let h=Symbol();return{get(){return this[h]},set(p){this[h]=p}}})();return Qt(t,e,{get(){let h=n.call(this);return h===void 0&&(h=a(this),(h!==null||this.hasUpdated)&&d.call(this,h)),h}})}return Qt(t,e,{get(){return a(this)}})}}var pr;function hs(s){return(i,t)=>Qt(i,t,{get(){var e;return((e=this.renderRoot)!=null?e:pr!=null?pr:pr=document.createDocumentFragment()).querySelectorAll(s)}})}function ps(s){return(i,t)=>Qt(i,t,{async get(){var e,r;return await this.updateComplete,(r=(e=this.renderRoot)==null?void 0:e.querySelector(s))!=null?r:null}})}function Ke(s){return(i,t)=>{let{slot:e,selector:r}=s!=null?s:{},a="slot"+(e?`[name=${e}]`:":not([name])");return Qt(i,t,{get(){var h,p;let n=(h=this.renderRoot)==null?void 0:h.querySelector(a),d=(p=n==null?void 0:n.assignedElements(s))!=null?p:[];return r===void 0?d:d.filter(f=>f.matches(r))}})}}var ur=new Map;function Hi(s,i="cors"){if(ur.has(s))return ur.get(s);let t=fetch(s,{mode:i}).then(async e=>({ok:e.ok,status:e.status,html:await e.text()}));return ur.set(s,t),t}var mr=new Map;async function us(s){if(mr.has(s))return mr.get(s);let i=await Hi(s),t={ok:i.ok,status:i.status,svg:null};if(i.ok){let e=document.createElement("div");e.innerHTML=i.html;let r=e.firstElementChild;t.svg=(r==null?void 0:r.tagName.toLowerCase())==="svg"?r.outerHTML:""}return mr.set(s,t),t}var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},oe=s=>(...i)=>({_$litDirective$:s,values:i}),we=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Oe=class extends we{constructor(i){if(super(i),this.it=Y,i.type!==Tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===Y||i==null)return this._t=void 0,this.it=i;if(i===mt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Oe.directiveName="unsafeHTML",Oe.resultType=1;var si=oe(Oe);var oi=class extends Oe{};oi.directiveName="unsafeSVG",oi.resultType=2;var ms=oe(oi);function w(s,i){let t=O({waitUntilFirstUpdate:!1},i);return(e,r)=>{let{update:a}=e,n=Array.isArray(s)?s:[s];e.update=function(d){n.forEach(h=>{let p=h;if(d.has(p)){let f=d.get(p),g=this[p];f!==g&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[r](f,g)}}),a.call(this,d)}}}var Mo=Ci,m=class extends ye{emit(i,t){let e=new CustomEvent(i,O({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(e),e}};m.styles=[Mo`.sd-interactive--reset,.sd-prose a--reset{all:unset;outline:revert}.sd-interactive,.sd-prose a{cursor:pointer;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1));text-decoration-line:underline;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.sd-interactive:hover:not([disabled]),.sd-prose a:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.sd-interactive:active:not([disabled]),.sd-prose a:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity,1))}.sd-interactive:is(.sd-interactive),.sd-prose a:is(.sd-interactive){text-decoration-line:none}.sd-interactive:focus-visible,.sd-prose a:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-interactive--disabled,.sd-interactive[disabled],.sd-interactive[href=""],.sd-prose a--disabled,.sd-prose a[disabled],.sd-prose a[href=""]{cursor:not-allowed;--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.sd-interactive--disabled:active:not([disabled]),.sd-interactive--disabled:hover:not([disabled]),.sd-interactive[disabled]:active:not([disabled]),.sd-interactive[disabled]:hover:not([disabled]),.sd-interactive[href=""]:active:not([disabled]),.sd-interactive[href=""]:hover:not([disabled]),.sd-prose a--disabled:active:not([disabled]),.sd-prose a--disabled:hover:not([disabled]),.sd-prose a[disabled]:active:not([disabled]),.sd-prose a[disabled]:hover:not([disabled]),.sd-prose a[href=""]:active:not([disabled]),.sd-prose a[href=""]:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.sd-interactive--inverted,.sd-prose--inverted a{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.sd-interactive--inverted:hover:not([disabled]),.sd-prose--inverted a:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.sd-interactive--inverted:active:not([disabled]),.sd-prose--inverted a:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.sd-interactive--inverted:focus-visible,.sd-prose--inverted a:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.sd-paragraph,.sd-prose p{font-size:var(--sd-font-size-base,1rem)}.sd-paragraph,.sd-paragraph--size-sm,.sd-prose p,.sd-prose p--size-sm{font-weight:400;line-height:var(--sd-line-height-normal,150%);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}.sd-paragraph--size-sm,.sd-prose p--size-sm{font-size:var(--sd-font-size-sm,.875rem)}.sd-paragraph--inverted,.sd-prose--inverted p{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.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,1))}.sd-headline sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-4-0-0-next-6-icon{flex-shrink:0;font-size:3rem;--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}@media (min-width:640px){.sd-headline sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5) sd-4-0-0-next-6-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-4-0-0-next-6-icon,.sd-headline:is(h1):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-4-0-0-next-6-icon{margin-top:calc(var(--sd-spacing-1,.25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline sd-4-0-0-next-6-icon,.sd-headline:is(h1):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h1):not(.sd-headline) sd-4-0-0-next-6-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-4-0-0-next-6-icon,.sd-headline:is(h2):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-4-0-0-next-6-icon{margin-top:calc(var(--sd-spacing-1,.25rem)*-1)}@media (min-width:640px){.sd-headline.sd-headline--size-3xl sd-4-0-0-next-6-icon,.sd-headline:is(h2):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-3xl sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h2):not(.sd-headline) sd-4-0-0-next-6-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,1))}.sd-headline.sd-headline--size-base sd-4-0-0-next-6-icon,.sd-headline.sd-headline--size-lg sd-4-0-0-next-6-icon,.sd-headline.sd-headline--size-xl sd-4-0-0-next-6-icon,.sd-headline:is(h3,h4,h5):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3,h4,h5):not(.sd-headline) sd-4-0-0-next-6-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-4-0-0-next-6-icon,.sd-headline:is(h3):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-4-0-0-next-6-icon{margin-top:var(--sd-spacing-0-5,.125rem)}@media (min-width:640px){.sd-headline.sd-headline--size-xl sd-4-0-0-next-6-icon,.sd-headline:is(h3):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-xl sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h3):not(.sd-headline) sd-4-0-0-next-6-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-4-0-0-next-6-icon,.sd-headline:is(h4) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-4-0-0-next-6-icon{margin-top:var(--sd-spacing-0,0)}@media (min-width:640px){.sd-headline.sd-headline--size-lg sd-4-0-0-next-6-icon,.sd-headline:is(h4) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-lg sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h4) sd-4-0-0-next-6-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-4-0-0-next-6-icon,.sd-headline:is(h5):not(.sd-headline) sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5).sd-headline--size-base sd-4-0-0-next-6-icon,.sd-prose :is(h1,h2,h3,h4,h5):is(h5):not(.sd-headline) sd-4-0-0-next-6-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-4-0-0-next-6-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-4-0-0-next-6-icon{margin-right:var(--sd-spacing-0-5,.125rem)}.sd-headline--inverted:not(#_),.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_){--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.sd-headline--inverted:not(#_) sd-4-0-0-next-6-icon,.sd-prose--inverted :is(h1,h2,h3,h4,h5):not(.sd-headline):not(#_) sd-4-0-0-next-6-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}/*! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:var(--sd-spacing-0,0)}.\\!right-0{right:var(--sd-spacing-0,0)!important}.-top-0\\.25{top:calc(var(--sd-spacing-0-25,1px)*-1)}.-top-4{top:calc(var(--sd-spacing-4,1rem)*-1)}.bottom-0{bottom:var(--sd-spacing-0,0)}.bottom-auto{bottom:var(--sd-spacing-auto,auto)}.end-0{inset-inline-end:var(--sd-spacing-0,0)}.end-auto{inset-inline-end:var(--sd-spacing-auto,auto)}.left-0{left:var(--sd-spacing-0,0)}.left-1\\/2{left:50%}.left-auto{left:var(--sd-spacing-auto,auto)}.right-0{right:var(--sd-spacing-0,0)}.right-2{right:var(--sd-spacing-2,.5rem)}.right-4{right:var(--sd-spacing-4,1rem)}.right-auto{right:var(--sd-spacing-auto,auto)}.start-0{inset-inline-start:var(--sd-spacing-0,0)}.start-auto{inset-inline-start:var(--sd-spacing-auto,auto)}.top-0{top:var(--sd-spacing-0,0)}.top-1{top:var(--sd-spacing-1,.25rem)}.top-1\\/2{top:50%}.top-2{top:var(--sd-spacing-2,.5rem)}.top-full{top:100%}.isolate{isolation:isolate}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-dialog{z-index:var(--sd-z-index-dialog,800)}.z-dropdown{z-index:var(--sd-z-index-dropdown,900)}.\\!m-0{margin:var(--sd-spacing-0,0)!important}.m-0{margin:var(--sd-spacing-0,0)}.m-2{margin:var(--sd-spacing-2,.5rem)}.m-4{margin:var(--sd-spacing-4,1rem)}.mx-\\[-1px\\]{margin-left:-1px;margin-right:-1px}.mx-auto{margin-left:var(--sd-spacing-auto,auto);margin-right:var(--sd-spacing-auto,auto)}.my-0{margin-bottom:var(--sd-spacing-0,0);margin-top:var(--sd-spacing-0,0)}.my-auto{margin-bottom:var(--sd-spacing-auto,auto);margin-top:var(--sd-spacing-auto,auto)}.\\!ml-6{margin-left:var(--sd-spacing-6,1.5rem)!important}.\\!mr-6{margin-right:var(--sd-spacing-6,1.5rem)!important}.mb-2{margin-bottom:var(--sd-spacing-2,.5rem)}.mb-4{margin-bottom:var(--sd-spacing-4,1rem)}.mb-6{margin-bottom:var(--sd-spacing-6,1.5rem)}.mb-auto{margin-bottom:var(--sd-spacing-auto,auto)}.ml-1{margin-left:var(--sd-spacing-1,.25rem)}.ml-2{margin-left:var(--sd-spacing-2,.5rem)}.ml-3{margin-left:var(--sd-spacing-3,.75rem)}.ml-4{margin-left:var(--sd-spacing-4,1rem)}.ml-6{margin-left:var(--sd-spacing-6,1.5rem)}.ml-\\[0\\.25em\\]{margin-left:.25em}.ml-\\[0\\.5em\\]{margin-left:.5em}.ml-auto{margin-left:var(--sd-spacing-auto,auto)}.mr-1{margin-right:var(--sd-spacing-1,.25rem)}.mr-2{margin-right:var(--sd-spacing-2,.5rem)}.mr-4{margin-right:var(--sd-spacing-4,1rem)}.mr-6{margin-right:var(--sd-spacing-6,1.5rem)}.mr-\\[0\\.25em\\]{margin-right:.25em}.mr-\\[0\\.5em\\]{margin-right:.5em}.mt-0\\.25{margin-top:var(--sd-spacing-0-25,1px)}.mt-1{margin-top:var(--sd-spacing-1,.25rem)}.mt-2{margin-top:var(--sd-spacing-2,.5rem)}.mt-3{margin-top:var(--sd-spacing-3,.75rem)}.mt-4{margin-top:var(--sd-spacing-4,1rem)}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[2px\\]{margin-top:2px}.mt-\\[3px\\]{margin-top:3px}.mt-auto{margin-top:var(--sd-spacing-auto,auto)}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.\\!flex{display:flex!important}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.\\!hidden{display:none!important}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.\\!h-full{height:100%!important}.h-0\\.25{height:var(--sd-spacing-0-25,1px)}.h-1{height:var(--sd-spacing-1,.25rem)}.h-10{height:var(--sd-spacing-10,2.5rem)}.h-12{height:var(--sd-spacing-12,3rem)}.h-16{height:var(--sd-spacing-16,4rem)}.h-2{height:var(--sd-spacing-2,.5rem)}.h-2\\.5{height:var(--sd-spacing-2-5,.625rem)}.h-3{height:var(--sd-spacing-3,.75rem)}.h-4{height:var(--sd-spacing-4,1rem)}.h-5{height:var(--sd-spacing-5,1.25rem)}.h-6{height:var(--sd-spacing-6,1.5rem)}.h-8{height:var(--sd-spacing-8,2rem)}.h-\\[0px\\]{height:0}.h-\\[1px\\]{height:1px}.h-\\[2px\\]{height:2px}.h-\\[48px\\]{height:48px}.h-\\[6px\\]{height:6px}.h-\\[96px\\]{height:96px}.h-\\[calc\\(100\\%-16px\\)\\]{height:calc(100% - 16px)}.h-\\[calc\\(100\\%-8px\\)\\]{height:calc(100% - 8px)}.h-full{height:100%}.h-varspacing{height:var(--tw-varspacing)}.max-h-full{max-height:100%}.min-h-\\[32px\\]{min-height:32px}.min-h-\\[40px\\]{min-height:40px}.min-h-\\[48px\\]{min-height:48px}.\\!w-full{width:100%!important}.w-0{width:var(--sd-spacing-0,0)}.w-1{width:var(--sd-spacing-1,.25rem)}.w-12{width:var(--sd-spacing-12,3rem)}.w-16{width:var(--sd-spacing-16,4rem)}.w-2\\.5{width:var(--sd-spacing-2-5,.625rem)}.w-3{width:var(--sd-spacing-3,.75rem)}.w-3\\/4{width:75%}.w-4{width:var(--sd-spacing-4,1rem)}.w-40{width:var(--sd-spacing-40,10rem)}.w-5{width:var(--sd-spacing-5,1.25rem)}.w-6{width:var(--sd-spacing-6,1.5rem)}.w-8{width:var(--sd-spacing-8,2rem)}.w-\\[--width\\]{width:var(--width)}.w-\\[1px\\]{width:1px}.w-\\[48px\\]{width:48px}.w-\\[6px\\]{width:6px}.w-\\[72px\\]{width:72px}.w-\\[96px\\]{width:96px}.w-auto{width:var(--sd-spacing-auto,auto)}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-varspacing{width:var(--tw-varspacing)}.min-w-0{min-width:var(--sd-spacing-0,0)}.min-w-2{min-width:var(--sd-spacing-2,.5rem)}.min-w-4{min-width:var(--sd-spacing-4,1rem)}.min-w-5{min-width:var(--sd-spacing-5,1.25rem)}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-\\[0_0_auto\\]{flex:0 0 auto}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.grow{flex-grow:1}.basis-auto{flex-basis:var(--sd-spacing-auto,auto)}.origin-bottom{transform-origin:bottom}.origin-top{transform-origin:top}.\\!-translate-x-1\\/2{--tw-translate-x:-50%!important}.\\!-translate-x-1\\/2,.\\!-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.\\!-translate-y-1\\/2{--tw-translate-y:-50%!important}.\\!translate-x-1\\/2{--tw-translate-x:50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-2{--tw-translate-x:calc(var(--sd-spacing-2, 0.5rem)*-1)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-x-2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-2{--tw-translate-x:var(--sd-spacing-2,0.5rem)}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.rotate-45{--tw-rotate:45deg}.rotate-45,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.rotate-\\[-90deg\\]{--tw-rotate:-90deg}.rotate-\\[-90deg\\],.rotate-\\[270deg\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\\[270deg\\]{--tw-rotate:270deg}.scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}.scale-110,.scale-y-\\[1\\.5\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-y-\\[1\\.5\\]{--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce-once{0%{transform:translateY(0)}15%{transform:translateY(-9px)}25%{transform:translateY(-12px)}40%{transform:translateY(-4px)}50%{transform:translateY(0)}65%{transform:translateY(-4px)}75%{transform:translateY(-6px)}90%{transform:translateY(-2px)}to{transform:translateY(0)}}.animate-bounce-once{animation:bounce-once .6s ease-in-out}@keyframes grow{0%{width:0}to{width:100%}}.animate-grow{animation:grow linear}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.\\!cursor-not-allowed{cursor:not-allowed!important}.cursor-\\[inherit\\]{cursor:inherit}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-col{grid-auto-flow:column}.auto-rows-\\[100\\%\\]{grid-auto-rows:100%}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.\\!items-center{align-items:center!important}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.\\!justify-center{justify-content:center!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.justify-items-center{justify-items:center}.gap-0\\.5{gap:var(--sd-spacing-0-5,.125rem)}.gap-1{gap:var(--sd-spacing-1,.25rem)}.gap-2{gap:var(--sd-spacing-2,.5rem)}.gap-3{gap:var(--sd-spacing-3,.75rem)}.gap-4{gap:var(--sd-spacing-4,1rem)}.gap-6{gap:var(--sd-spacing-6,1.5rem)}.gap-8{gap:var(--sd-spacing-8,2rem)}.gap-x-\\[1px\\]{-moz-column-gap:1px;column-gap:1px}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.overscroll-x-contain{overscroll-behavior-x:contain}.scroll-auto{scroll-behavior:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\\!rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)!important}.rounded-\\[4px_4px_0_0\\]{border-radius:4px 4px 0 0}.rounded-default{border-radius:var(--sd-border-radius-default,.25rem)}.rounded-full{border-radius:var(--sd-border-radius-full,9999px)}.rounded-md{border-radius:var(--sd-border-radius-md,.375rem)}.rounded-none{border-radius:var(--sd-border-radius-none,0)}.rounded-sm{border-radius:var(--sd-border-radius-sm,.125rem)}.rounded-b-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-b-none{border-bottom-left-radius:var(--sd-border-radius-none,0);border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-bl-default{border-bottom-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-bl-none{border-bottom-left-radius:var(--sd-border-radius-none,0)}.rounded-br-default{border-bottom-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-br-none{border-bottom-right-radius:var(--sd-border-radius-none,0)}.rounded-tl-default{border-top-left-radius:var(--sd-border-radius-default,.25rem)}.rounded-tl-none{border-top-left-radius:var(--sd-border-radius-none,0)}.rounded-tr-default{border-top-right-radius:var(--sd-border-radius-default,.25rem)}.rounded-tr-none{border-top-right-radius:var(--sd-border-radius-none,0)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-\\[0\\.25px\\]{border-width:.25px}.border-\\[1px\\]{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-none{border-style:none}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-border-opacity,1))}.border-error{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-border-opacity,1))}.border-neutral-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1))}.border-neutral-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity,1))}.border-neutral-800{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-border-opacity,1))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-border-opacity,1))}.border-success{--tw-border-opacity:1;border-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-border-opacity,1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-border-opacity,1))}.bg-\\[black\\]{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent,45 157 0)/var(--tw-bg-opacity,1))}.bg-accent-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-500,37 136 14)/var(--tw-bg-opacity,1))}.bg-error{background-color:rgb(var(--sd-color-error,204 25 55)/var(--tw-bg-opacity,1))}.bg-error,.bg-info{--tw-bg-opacity:1}.bg-info{background-color:rgb(var(--sd-color-info,21 130 213)/var(--tw-bg-opacity,1))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}.bg-neutral-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/.8)}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.bg-neutral-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity,1))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--tw-bg-opacity,1))}.bg-neutral-800\\/75{background-color:rgb(var(--sd-color-neutral-800,81 81 81)/var(--sd-opacity-75,.75))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-bg-opacity,1))}.bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.bg-primary-100\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary-100,236 240 249)/.8)}.bg-primary-500{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity,1))}.bg-primary-800{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity,1))}.bg-primary\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-primary,0 53 142)/.8)}.bg-success{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-success,37 136 14)/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--sd-color-warning,187 141 32)/var(--tw-bg-opacity,1))}.bg-warning,.bg-white{--tw-bg-opacity:1}.bg-white{background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1))}.bg-white\\/\\[\\.8\\]{background-color:rgb(var(--sd-color-white,255 255 255)/.8)}.bg-opacity-60{--tw-bg-opacity:var(--sd-opacity-60,0.6)}.bg-opacity-75{--tw-bg-opacity:var(--sd-opacity-75,0.75)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.bg-none{background-image:none}.from-primary-800\\/60{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,0.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/75{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-75,0.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-800\\/\\[\\.6\\]{--tw-gradient-from:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/60{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,0.6)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/75{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-75,0.75)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/90{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,0.9)) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-white\\/\\[\\.8\\]{--tw-gradient-from:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-primary-800\\/60{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/var(--sd-opacity-60,0.6)) var(--tw-gradient-to-position)}.to-primary-800\\/\\[\\.6\\]{--tw-gradient-to:rgb(var(--sd-color-primary-800,5 21 48)/.6) var(--tw-gradient-to-position)}.to-white\\/60{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-60,0.6)) var(--tw-gradient-to-position)}.to-white\\/\\[\\.8\\]{--tw-gradient-to:rgb(var(--sd-color-white,255 255 255)/.8) var(--tw-gradient-to-position)}.to-40\\%{--tw-gradient-to-position:40%}.to-60\\%{--tw-gradient-to-position:60%}.fill-accent{fill:rgb(var(--sd-color-accent,45 157 0)/1)}.fill-accent-550{fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.fill-accent-700{fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.fill-neutral-100{fill:rgb(var(--sd-color-neutral-100,246 246 246)/1)}.fill-primary{fill:rgb(var(--sd-color-primary,0 53 142)/1)}.fill-primary-100{fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.fill-primary-200{fill:rgb(var(--sd-color-primary-200,224 233 243)/1)}.fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.fill-transparent{fill:transparent}.fill-white{fill:rgb(var(--sd-color-white,255 255 255)/1)}.p-0{padding:var(--sd-spacing-0,0)}.p-1{padding:var(--sd-spacing-1,.25rem)}.p-2{padding:var(--sd-spacing-2,.5rem)}.p-4{padding:var(--sd-spacing-4,1rem)}.px-0{padding-left:var(--sd-spacing-0,0);padding-right:var(--sd-spacing-0,0)}.px-1{padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}.px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.px-12{padding-left:var(--sd-spacing-12,3rem);padding-right:var(--sd-spacing-12,3rem)}.px-2{padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}.px-3{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}.px-4{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.px-6{padding-left:var(--sd-spacing-6,1.5rem);padding-right:var(--sd-spacing-6,1.5rem)}.py-0{padding-bottom:var(--sd-spacing-0,0);padding-top:var(--sd-spacing-0,0)}.py-1{padding-bottom:var(--sd-spacing-1,.25rem);padding-top:var(--sd-spacing-1,.25rem)}.py-2{padding-bottom:var(--sd-spacing-2,.5rem);padding-top:var(--sd-spacing-2,.5rem)}.py-3{padding-bottom:var(--sd-spacing-3,.75rem);padding-top:var(--sd-spacing-3,.75rem)}.py-4{padding-bottom:var(--sd-spacing-4,1rem);padding-top:var(--sd-spacing-4,1rem)}.py-6{padding-bottom:var(--sd-spacing-6,1.5rem);padding-top:var(--sd-spacing-6,1.5rem)}.py-8{padding-bottom:var(--sd-spacing-8,2rem);padding-top:var(--sd-spacing-8,2rem)}.py-\\[5px\\]{padding-bottom:5px;padding-top:5px}.pb-1{padding-bottom:var(--sd-spacing-1,.25rem)}.pb-2{padding-bottom:var(--sd-spacing-2,.5rem)}.pb-3{padding-bottom:var(--sd-spacing-3,.75rem)}.pb-4{padding-bottom:var(--sd-spacing-4,1rem)}.pl-3{padding-left:var(--sd-spacing-3,.75rem)}.pl-4{padding-left:var(--sd-spacing-4,1rem)}.pl-8{padding-left:var(--sd-spacing-8,2rem)}.pr-2{padding-right:var(--sd-spacing-2,.5rem)}.pr-3{padding-right:var(--sd-spacing-3,.75rem)}.pr-4{padding-right:var(--sd-spacing-4,1rem)}.pt-0{padding-top:var(--sd-spacing-0,0)}.pt-1{padding-top:var(--sd-spacing-1,.25rem)}.pt-2{padding-top:var(--sd-spacing-2,.5rem)}.pt-3{padding-top:var(--sd-spacing-3,.75rem)}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.\\!text-base{font-size:var(--sd-font-size-base,1rem)!important}.text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[2rem\\]{font-size:2rem}.text-\\[4rem\\]{font-size:4rem}.text-base{font-size:var(--sd-font-size-base,1rem)}.text-lg{font-size:var(--sd-font-size-lg,1.25rem)}.text-sm{font-size:var(--sd-font-size-sm,.875rem)}.text-xl{font-size:var(--sd-font-size-xl,1.5rem)}.\\!font-bold{font-weight:700!important}.font-bold{font-weight:700}.font-normal{font-weight:400}.lowercase{text-transform:lowercase}.leading-\\[0\\]{line-height:0}.leading-\\[calc\\(var\\(--tw-varspacing\\)-2px\\)\\]{line-height:calc(var(--tw-varspacing) - 2px)}.leading-none{line-height:var(--sd-line-height-none,100%)}.leading-normal{line-height:var(--sd-line-height-normal,150%)}.leading-tight{line-height:var(--sd-line-height-tight,120%)}.\\!text-neutral-700{--tw-text-opacity:1!important;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))!important}.\\!text-primary{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))!important}.text-black{color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}.text-black,.text-error{--tw-text-opacity:1}.text-error{color:rgb(var(--sd-color-error,204 25 55)/var(--tw-text-opacity,1))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}.text-neutral-600{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.text-neutral-700{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-text-opacity,1))}.text-primary{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}.text-primary-400{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(var(--sd-color-success,37 136 14)/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.\\!underline{text-decoration-line:underline!important}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.\\!underline-offset-2{text-underline-offset:2px!important}.underline-offset-2{text-underline-offset:2px}.placeholder-black::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity,1))}.placeholder-black::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-placeholder-opacity,1))}.placeholder-neutral-700::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity,1))}.placeholder-neutral-700::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--sd-color-neutral-700,104 104 104)/var(--tw-placeholder-opacity,1))}.opacity-0{opacity:var(--sd-opacity-0,0)}.opacity-100{opacity:var(--sd-opacity-100,1)}.opacity-20{opacity:var(--sd-opacity-20,.2)}.opacity-50{opacity:var(--sd-opacity-50,.5)}.opacity-90{opacity:var(--sd-opacity-90,.9)}.shadow{--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-dotted{outline-style:dotted}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.\\!-outline-offset-2{outline-offset:-2px!important}.\\!outline-offset-0{outline-offset:0!important}.outline-offset-2{outline-offset:2px}.outline-error{outline-color:rgb(var(--sd-color-error,204 25 55)/1)}.outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.varspacing-10{--tw-varspacing:var(--sd-spacing-10,2.5rem)}.varspacing-12{--tw-varspacing:var(--sd-spacing-12,3rem)}.varspacing-8{--tw-varspacing:var(--sd-spacing-8,2rem)}:host{box-sizing:border-box}:host *,:host :after,:host :before{box-sizing:inherit}[hidden]{display:none!important}.focus-within\\:focus-outline:focus-within{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-within\\:focus-outline-inverted:focus-within{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline:focus-visible{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus-visible\\:focus-outline-inverted:focus-visible{outline-color:rgb(var(--sd-color-white,255 255 255)/1);outline-offset:2px;outline-style:solid;outline-width:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:outline-offset-2:focus{outline-offset:2px}.focus\\:outline-primary:focus{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:border-neutral-500:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-border-opacity,1))}.disabled\\:border-neutral-600:disabled{--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-border-opacity,1))}.disabled\\:bg-neutral-500:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-bg-opacity,1))}.disabled\\:bg-neutral-600:disabled{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-bg-opacity,1))}.disabled\\:text-neutral-500:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}.disabled\\:text-neutral-600:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-600,136 136 136)/var(--tw-text-opacity,1))}.disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:top-0{top:var(--sd-spacing-0,0)}.group:hover .group-hover\\:h-full{height:100%}.group:hover .group-hover\\:w-full{width:100%}.group:hover .group-hover\\:cursor-pointer{cursor:pointer}.group:hover .group-hover\\:border-accent-550{--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:border-error-400{--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:border-primary-500{--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity,1))}.group:hover .group-hover\\:bg-accent-550{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-error-400{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-neutral-100\\/90{background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-primary-100{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.group:hover .group-hover\\:bg-primary-100\\/90{background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-primary\\/90{background-color:rgb(var(--sd-color-primary,0 53 142)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:bg-white\\/90{background-color:rgb(var(--sd-color-white,255 255 255)/var(--sd-opacity-90,.9))}.group:hover .group-hover\\:fill-primary-500{fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.group:hover .group-hover\\:\\!text-primary-500{--tw-text-opacity:1!important;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-primary-500{--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.group:focus-visible .group-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline{outline-style:solid}.peer:focus-visible~.peer-focus-visible\\:outline-2{outline-width:2px}.peer:focus-visible~.peer-focus-visible\\:outline-offset-2{outline-offset:2px}.peer:focus-visible~.peer-focus-visible\\:outline-primary{outline-color:rgb(var(--sd-color-primary,0 53 142)/1)}.hover\\:scale-110:hover:not([disabled]){--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:cursor-not-allowed:hover:not([disabled]){cursor:not-allowed}.hover\\:cursor-pointer:hover:not([disabled]){cursor:pointer}.hover\\:border-accent-550:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-border-opacity,1))}.hover\\:border-error-400:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-border-opacity,1))}.hover\\:border-primary-100:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-border-opacity,1))}.hover\\:border-primary-500:hover:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-border-opacity,1))}.hover\\:bg-accent-300:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-300,108 194 84)/var(--tw-bg-opacity,1))}.hover\\:bg-accent-550:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-550,54 123 40)/var(--tw-bg-opacity,1))}.hover\\:bg-error-400:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-error-400,172 25 56)/var(--tw-bg-opacity,1))}.hover\\:bg-neutral-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}.hover\\:bg-neutral-200:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}.hover\\:bg-primary-100:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}.hover\\:bg-primary-500:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-bg-opacity,1))}.hover\\:bg-transparent:hover:not([disabled]){background-color:transparent}.hover\\:fill-accent-550:hover:not([disabled]){fill:rgb(var(--sd-color-accent-550,54 123 40)/1)}.hover\\:fill-primary-100:hover:not([disabled]){fill:rgb(var(--sd-color-primary-100,236 240 249)/1)}.hover\\:fill-primary-500:hover:not([disabled]){fill:rgb(var(--sd-color-primary-500,70 109 175)/1)}.hover\\:text-primary-100:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-text-opacity,1))}.hover\\:text-primary-200:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.hover\\:text-primary-500:hover:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-500,70 109 175)/var(--tw-text-opacity,1))}.active\\:border-primary-200:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-border-opacity,1))}.active\\:border-primary-800:active:not([disabled]){--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-border-opacity,1))}.active\\:bg-accent-700:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-accent-700,33 87 37)/var(--tw-bg-opacity,1))}.active\\:bg-primary-200:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-bg-opacity,1))}.active\\:bg-primary-800:active:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-bg-opacity,1))}.active\\:fill-accent-700:active:not([disabled]){fill:rgb(var(--sd-color-accent-700,33 87 37)/1)}.active\\:text-primary-200:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-200,224 233 243)/var(--tw-text-opacity,1))}.active\\:text-primary-400:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-400,153 171 208)/var(--tw-text-opacity,1))}.active\\:text-primary-800:active:not([disabled]){--tw-text-opacity:1;color:rgb(var(--sd-color-primary-800,5 21 48)/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\\:mt-2{margin-top:var(--sd-spacing-2,.5rem)}.sm\\:flex-col{flex-direction:column}.sm\\:gap-4{gap:var(--sd-spacing-4,1rem)}.sm\\:self-center{align-self:center}.sm\\:p-6{padding:var(--sd-spacing-6,1.5rem)}.sm\\:px-10{padding-left:var(--sd-spacing-10,2.5rem);padding-right:var(--sd-spacing-10,2.5rem)}.sm\\:py-8{padding-top:var(--sd-spacing-8,2rem)}.sm\\:pb-8,.sm\\:py-8{padding-bottom:var(--sd-spacing-8,2rem)}.sm\\:text-center{text-align:center}.sm\\:text-3xl{font-size:var(--sd-font-size-3xl,2rem)}.sm\\:text-4xl{font-size:var(--sd-font-size-4xl,2.5rem)}.sm\\:leading-tight{line-height:var(--sd-line-height-tight,120%)}}@media (min-width:768px){.md\\:block{display:block}.md\\:\\[transition\\:_height_0\\.2s_linear\\2c opacity_0\\.1s_linear_0\\.1s\\]{transition:height .2s linear,opacity .1s linear .1s}.group:hover .md\\:group-hover\\:visible{visibility:visible}.group:hover .md\\:group-hover\\:my-4{margin-bottom:var(--sd-spacing-4,1rem);margin-top:var(--sd-spacing-4,1rem)}.group:hover .md\\:group-hover\\:h-auto{height:var(--sd-spacing-auto,auto)}.group:hover .md\\:group-hover\\:opacity-\\[100\\%\\]{opacity:100%}}`],o([l()],m.prototype,"dir",2),o([l()],m.prototype,"lang",2);var fr,lt=class extends m{constructor(){super(...arguments);this.svg="";this.label="";this.library="default";this.color="currentColor"}connectedCallback(){super.connectedCallback(),ls(this)}firstUpdated(){this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),ds(this)}getUrl(){let t=hr(this.library);return this.name&&t?t.resolver(this.name):this.src}handleLabelChange(){typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var r;let t=hr(this.library),e=this.getUrl();if(fr||(fr=new DOMParser),e)try{let a=await us(e);if(e===this.getUrl())if(a.ok){let d=fr.parseFromString(a.svg,"text/html").body.querySelector("svg");d!==null?((r=t==null?void 0:t.mutator)==null||r.call(t,d),this.svg=d.outerHTML,this.emit("sd-load")):(this.svg="",this.emit("sd-error"))}else this.svg="",this.emit("sd-error")}catch(a){this.emit("sd-error")}else this.svg.length>0&&(this.svg="")}render(){return u`${ms(this.svg)}`}};lt.styles=[...m.styles,v`:host{box-sizing:content-box!important;display:inline-block;height:1em;width:1em}svg{display:block;height:100%;width:100%}:host([color=primary]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-text-opacity,1))}:host([color=white]) svg{--tw-text-opacity:1;color:rgb(var(--sd-color-white,255 255 255)/var(--tw-text-opacity,1))}`],o([C()],lt.prototype,"svg",2),o([l({reflect:!0})],lt.prototype,"name",2),o([l()],lt.prototype,"src",2),o([l()],lt.prototype,"label",2),o([l({reflect:!0})],lt.prototype,"library",2),o([l({reflect:!0})],lt.prototype,"color",2),o([w("label")],lt.prototype,"handleLabelChange",1),o([w(["name","src","library"])],lt.prototype,"setIcon",1),lt=o([y("sd-4-0-0-next-6-icon")],lt);function R(s,i,t){return new Promise(e=>{if((t==null?void 0:t.duration)===1/0)throw new Error("Promise-based animations must be finite.");let r=s.animate(i,et(O({},t),{duration:ai()?0:t.duration}));r.addEventListener("cancel",e,{once:!0}),r.addEventListener("finish",e,{once:!0})})}function gr(s){return s=s.toString().toLowerCase(),s.indexOf("ms")>-1?parseFloat(s):s.indexOf("s")>-1?parseFloat(s)*1e3:parseFloat(s)}function ai(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function K(s){return Promise.all(s.getAnimations().map(i=>new Promise(t=>{let e=requestAnimationFrame(t);i.addEventListener("cancel",()=>e,{once:!0}),i.addEventListener("finish",()=>e,{once:!0}),i.cancel()})))}function br(s,i){return s.map(t=>et(O({},t),{height:t.height==="auto"?`${i}px`:t.height}))}var gs=new Map,_o=new WeakMap;function So(s){return s!=null?s:{keyframes:[],options:{duration:0}}}function fs(s,i){return i.toLowerCase()==="rtl"?{keyframes:s.rtlKeyframes||s.keyframes,options:s.options}:s}function H(s,i){gs.set(s,So(i))}function B(s,i,t){let e=_o.get(s);if(e!=null&&e[i])return fs(e[i],t.dir);let r=gs.get(i);return r?fs(r,t.dir):{keyframes:[],options:{duration:0}}}var vs=Symbol.for(""),Ho=s=>{if((s==null?void 0:s.r)===vs)return s==null?void 0:s._$litStatic$};var X=(s,...i)=>({_$litStatic$:i.reduce((t,e,r)=>t+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
68
+ take care to ensure page security.`)})(e)+s[r+1],s[0]),r:vs}),bs=new Map,vr=s=>(i,...t)=>{let e=t.length,r,a,n=[],d=[],h,p=0,f=!1;for(;p<e;){for(h=i[p];p<e&&(a=t[p],(r=Ho(a))!==void 0);)h+=r+i[++p],f=!0;p!==e&&d.push(a),n.push(h),p++}if(p===e&&n.push(i[e]),f){let g=n.join("$$lit$$");(i=bs.get(g))===void 0&&(n.raw=n,bs.set(g,i=n)),t=d}return s(i,...t)},D=vr(u),Fd=vr(qe),Vd=vr(Jr);var yr=new Set,je=new Map,Me,wr="ltr",xr="en",ys=typeof MutationObserver!="undefined"&&typeof document!="undefined"&&typeof document.documentElement!="undefined";if(ys){let s=new MutationObserver(ws);wr=document.documentElement.dir||"ltr",xr=document.documentElement.lang||navigator.language,s.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Ii(...s){s.map(i=>{let t=i.$code.toLowerCase();je.has(t)?je.set(t,Object.assign(Object.assign({},je.get(t)),i)):je.set(t,i),Me||(Me=i)}),ws()}function ws(){ys&&(wr=document.documentElement.dir||"ltr",xr=document.documentElement.lang||navigator.language),[...yr.keys()].map(s=>{typeof s.requestUpdate=="function"&&s.requestUpdate()})}var Pi=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){yr.add(this.host)}hostDisconnected(){yr.delete(this.host)}dir(){return`${this.host.dir||wr}`.toLowerCase()}lang(){return`${this.host.lang||xr}`.toLowerCase()}getTranslationData(i){var t,e;let r=new Intl.Locale(i.replace(/_/g,"-")),a=r==null?void 0:r.language.toLowerCase(),n=(e=(t=r==null?void 0:r.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&e!==void 0?e:"",d=je.get(`${a}-${n}`),h=je.get(a);return{locale:r,language:a,region:n,primary:d,secondary:h}}exists(i,t){var e;let{primary:r,secondary:a}=this.getTranslationData((e=t.lang)!==null&&e!==void 0?e:this.lang());return t=Object.assign({includeFallback:!1},t),!!(r&&r[i]||a&&a[i]||t.includeFallback&&Me&&Me[i])}term(i,...t){let{primary:e,secondary:r}=this.getTranslationData(this.lang()),a;if(e&&e[i])a=e[i];else if(r&&r[i])a=r[i];else if(Me&&Me[i])a=Me[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,e){return new Intl.RelativeTimeFormat(this.lang(),e).format(i,t)}};var Po={$code:"de",$name:"Deutsch",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio-Player",carousel:"Karussell",clearEntry:"Eingabe l\xF6schen",close:"Schlie\xDFen",comboboxDefaultPlaceholder:"Bitte suchen und ausw\xE4hlen",copy:"Kopieren",currentValue:"Aktueller Wert",goToSlide:(s,i)=>`Zu Folie ${s} von ${i} gehen`,hidePassword:"Passwort verbergen",loading:"Wird geladen",mute:"Stummschalten",nextSlide:"N\xE4chste Folie",noResults:"Keine Ergebnisse gefunden",numOptionsSelected:s=>s===0?"":`Optionen ausgew\xE4hlt (${s})`,pauseAudio:"Audio pausieren",playAudio:"Audio abspielen",playbackSpeed:"Wiedergabe Geschwindigkeit",previousSlide:"Vorherige Folie",progress:"Fortschritt",remove:"Entfernen",removed:s=>`${s} entfernt`,resize:"Gr\xF6\xDFe \xE4ndern",scrollToEnd:"Zum Ende scrollen",scrollToStart:"Zum Anfang scrollen",selectAColorFromTheScreen:"Farbe vom Bildschirm ausw\xE4hlen",selectDefaultPlaceholder:"Bitte ausw\xE4hlen",showLess:"Weniger anzeigen",showMore:"Mehr anzeigen",showPassword:"Passwort anzeigen",slideNum:(s,i)=>`Folie ${s} von ${i}`,tagsSelected:"Optionen ausgew\xE4hlt",toggleColorFormat:"Farbformat umschalten",unmute:"Unmute"};Ii(Po);var Io={$code:"en",$name:"English",$dir:"ltr",autoplay:"Autoplay",audioPlayer:"Audio Player",clearEntry:"Clear entry",close:"Close",comboboxDefaultPlaceholder:"Please search and select",copy:"Copy",carousel:"Carousel",currentValue:"Current value",goToSlide:(s,i)=>`Go to slide ${s} of ${i}`,hidePassword:"Hide password",loading:"Loading",mute:"Mute",nextSlide:"Next slide",noResults:"No results found",numOptionsSelected:s=>s===0?"":`Options Selected (${s})`,pauseAudio:"Pause Audio",playAudio:"Play Audio",playbackSpeed:"Playback Speed",previousSlide:"Previous slide",progress:"Progress",remove:"Remove",removed:s=>`${s} removed`,resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",selectDefaultPlaceholder:"Please select",showLess:"Show less",showMore:"Show more",showPassword:"Show password",slideNum:s=>`Slide ${s}`,tagsSelected:"Options selected",toggleColorFormat:"Toggle color format",unmute:"Unmute"};Ii(Io);var F=class extends Pi{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(){let t=this.host.dataset.customLocalization;if(t)try{this.setCustomLocalization(JSON.parse(t))}catch(e){console.error("Error parsing custom-localization attribute:",e)}}term(t,...e){let r=this.instanceTranslations&&this.instanceTranslations[t];return r?typeof r=="function"?r(...e):r:super.term(t,...e)}setCustomLocalization(t){this.instanceTranslations=O(O({},this.instanceTranslations),t)}};function U(s,i){return new Promise(t=>{function e(r){r.target===s&&(s.removeEventListener(i,e),t())}s.addEventListener(i,e)})}function c(){let s,i="",t=0;for(;t<arguments.length;)(s=arguments[t++])&&typeof s=="string"&&(i&&(i+=" "),i+=s);return i}var ft=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.open=!1}firstUpdated(){this.body.hidden=!this.open,this.body.style.height=this.open?"auto":"0",this.open&&(this.accordion.open=!0),this.accordionObserver=new MutationObserver(t=>{for(let e of t)e.type==="attributes"&&e.attributeName==="open"&&(this.accordion.open?this.show():this.hide())}),this.accordionObserver.observe(this.accordion,{attributes:!0})}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.accordionObserver)==null||t.disconnect()}handleSummaryClick(t){t.preventDefault(),this.open?this.hide():this.show()}handleSummaryKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.open?this.hide():this.show()),(t.key==="ArrowUp"||t.key==="ArrowLeft")&&(t.preventDefault(),this.hide()),(t.key==="ArrowDown"||t.key==="ArrowRight")&&(t.preventDefault(),this.show())}async handleOpenChange(){if(this.open){if(this.accordion.open=!0,this.emit("sd-show",{cancelable:!0}).defaultPrevented){this.open=!1,this.accordion.open=!1;return}await K(this.body),this.body.hidden=!1;let{keyframes:e,options:r}=B(this,"accordion.show",{dir:this.localize.dir()});await R(this.body,br(e,this.body.scrollHeight),r),this.body.style.height="auto",this.emit("sd-after-show")}else{if(this.emit("sd-hide",{cancelable:!0}).defaultPrevented){this.accordion.open=!0,this.open=!0;return}await K(this.body);let{keyframes:e,options:r}=B(this,"accordion.hide",{dir:this.localize.dir()});await R(this.body,br(e,this.body.scrollHeight),r),this.body.hidden=!0,this.body.style.height="auto",this.accordion.open=!1,this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return D`<details part="base" class="border-y border-neutral-400"><summary part="header" id="header" class="${c("flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 py-3 focus-visible:focus-outline text-primary hover:bg-neutral-200 relative group")}" aria-expanded="${this.open?"true":"false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${c(!this.open&&"opacity-0","w-1 bg-accent absolute left-0 transition-all h-[calc(100%-16px)] group-hover:h-full")}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${c("flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",this.open&&"rotate-180")}"><slot name="expand-icon" class="${c(this.open&&"hidden")}"><sd-4-0-0-next-6-icon library="system" name="chevron-down"></sd-4-0-0-next-6-icon></slot><slot name="collapse-icon" class="${c(!this.open&&"hidden")}"><sd-4-0-0-next-6-icon library="system" name="chevron-down"></sd-4-0-0-next-6-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`}};ft.styles=[...m.styles,v`:host{display:block}`],o([b('[part="base"]')],ft.prototype,"accordion",2),o([b('[part="header"]')],ft.prototype,"header",2),o([b('[part="content"]')],ft.prototype,"body",2),o([l({type:Boolean,reflect:!0})],ft.prototype,"open",2),o([l()],ft.prototype,"summary",2),o([w("open",{waitUntilFirstUpdate:!0})],ft.prototype,"handleOpenChange",1),ft=o([y("sd-4-0-0-next-6-accordion")],ft);H("accordion.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});H("accordion.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var ae=class extends m{constructor(){super(...arguments);this.closeOthers=!1;this.handleAccordionShow=t=>{this.closeOthers&&this._accordionsInDefaultSlot.forEach(e=>{e!==t.target&&e.parentNode===t.target.parentNode&&e.removeAttribute("open")})}}connectedCallback(){super.connectedCallback(),this.addEventListener("sd-show",this.handleAccordionShow)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sd-show",this.handleAccordionShow)}render(){return u`<div part="base"><slot></slot></div>`}};ae.styles=[...m.styles,v`:host{display:block}::slotted(sd-4-0-0-next-6-accordion:not(:first-of-type)){margin-top:-1px}`],o([Ke({selector:"sd-4-0-0-next-6-accordion"})],ae.prototype,"_accordionsInDefaultSlot",2),o([l({attribute:"close-others",type:Boolean})],ae.prototype,"closeOthers",2),ae=o([y("sd-4-0-0-next-6-accordion-group")],ae);var _=class{constructor(i,...t){this.slotNames=[];(this.host=i).addController(this),this.slotNames=t,this.handleSlotChange=this.handleSlotChange.bind(this)}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="sd-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}handleSlotChange(i){let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()}};var xe=class{constructor(i){this.fixedEnd=!0;this.fixedStart=!0;this.gradient=!1;this.outline=!1;this.map=(i,t,e,r,a)=>(i-t)*(a-r)/(e-t)+r;this.damp=(i,t,e)=>2*(1-t/i)*(t/i)*e;this.canvas=i.canvas,this.frequency=i.frequency,this.phase=i.phase,this.amplitude=i.amplitude,this.color=i.color,this.shift=i.shift,this.lineWidth=2,this.damping=i.damping,this.context=this.canvas.getContext("2d"),this.paused=!0,this.playbackSpeed=1,this.origin={x:0,y:this.canvas.height}}drawPoint(i,t,e){if(!this.context)return;let r=this.lineWidth/2;if(this.context.beginPath(),this.outline&&(this.context.fillStyle=e,this.context.lineWidth=2,this.context.arc(i,t,r,0,2*Math.PI),this.context.fill()),this.gradient){let a=this.context.createLinearGradient(0,0,0,this.canvas.height);a.addColorStop(.1,e),a.addColorStop(1,"transparent"),this.context.fillStyle=a}else this.context.fillStyle=e;this.context.fillRect(i-r,t-r,r,this.canvas.height-t+r)}buildSine(i,t,e,r,a){for(let n=this.origin.x,d=this.origin.x+i;n<d;n+=1){let h=r*Math.sin(a*(n+t));this.fixedStart&&this.fixedEnd?this.drawPoint(n,this.origin.y+this.damp(d,n,this.damping)*h,e):this.fixedStart?this.drawPoint(n,this.origin.y+this.map(n,this.origin.x,d,0,this.damping)*h,e):this.fixedEnd?this.drawPoint(n,this.origin.y+(this.damping-this.map(n,this.origin.x,d,0,this.damping))*h,e):this.drawPoint(n,this.origin.y+h,e)}}redraw(){this.phase+=this.shift*(this.paused?1:2*this.playbackSpeed),this.buildSine(this.canvas.width,this.phase,this.color,this.amplitude,this.frequency)}setPlay(){this.paused=!1}setPause(){this.paused=!0}setPlaybackSpeed(i){this.playbackSpeed=i}};var it=class extends m{constructor(){super();this.localize=new F(this);this.hasSlotController=new _(this,"transcript");this.reversedLayout=!1;this.hideTimestamps=!1;this.animated=!1;this.inverted=!1;this.speed=1;this.currentTime=this.formatTime(0);this.duration="";this.isPlaying=!1;this.isMuted=!1;this.progress=0;this.setAudioProgress=()=>{this.progressSlider.max=Math.floor(this.audioElement.duration).toString()};this.updateCurrentTime=this.updateCurrentTime.bind(this),this.handleAudioEnd=this.handleAudioEnd.bind(this),this.handleAudioProgress=this.handleAudioProgress.bind(this),this.handleAudioProgressKeydown=this.handleAudioProgressKeydown.bind(this)}firstUpdated(){this.audioElement&&(this.audioElement.addEventListener("timeupdate",this.updateCurrentTime),this.audioElement.addEventListener("ended",this.handleAudioEnd),this.audioElement.setAttribute("controlsList","nodownload"),this.audioElement.playbackRate=this.speed,this.animated&&this.initAnimation())}updated(t){if(t.has("animated")){let e=t.get("animated");!e&&this.animated?this.initAnimation():e&&!this.animated&&this.clear()}}get audioElement(){let t=this.shadowRoot.querySelector("slot");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}updateCurrentTime(){if(!this.audioElement)return;let t=this.audioElement.currentTime;this.currentTime=this.formatTime(t),this.progress=Math.floor(t),this.progressSlider&&(this.progressSlider.value=this.progress.toString())}updateAudioDuration(){if(this.audioElement){if(isNaN(this.audioElement.duration)){setTimeout(()=>{this.updateAudioDuration()},100);return}this.duration=this.formatTime(this.audioElement.duration),this.setAudioProgress()}}playAudio(){this.audioElement&&(this.isPlaying=!0,this.audioElement.play(),this.emit("sd-playback-start"),this.animated&&this.draw())}pauseAudio(){this.audioElement&&(this.isPlaying=!1,this.audioElement.pause(),this.emit("sd-playback-pause"),this.animated&&this.stopAnimation())}handleAudioEnd(){this.emit("sd-playback-end"),this.isPlaying=!1,this.progress=0,this.progressSlider.value="0",this.currentTime=this.formatTime(0),this.animated&&this.stopAnimation()}toggleMute(){this.audioElement&&(this.isMuted=!this.isMuted,this.isMuted?(this.emit("sd-playback-mute"),this.audioElement.muted=!0):(this.emit("sd-playback-unmute"),this.audioElement.muted=!1))}toggleMuteKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.toggleMute())}togglePlaybackSpeed(){this.audioElement&&(this.emit("sd-playback-speed"),this.speed=this.speed===1.5?1:this.speed+.25,this.audioElement.playbackRate=this.speed)}togglePlaybackSpeedKeydown(t){t.key==="Enter"&&(t.preventDefault(),this.togglePlaybackSpeed())}formatTime(t){let e=Math.floor(t/60),r=Math.floor(t%60);return`${e}:${r<10?"0":""}${r}`}handleAudioProgress(){if(!this.audioElement)return;let t=Number(this.progressSlider.value);this.audioElement.currentTime=t,this.progress=t,this.currentTime=this.formatTime(t)}handleAudioProgressKeydown(t){t.key==="ArrowRight"&&(this.progressSlider.value=(Number(this.progressSlider.value)+1).toString(),this.handleAudioProgress()),t.key==="ArrowLeft"&&(this.progressSlider.value=(Number(this.progressSlider.value)-1).toString(),this.handleAudioProgress())}showTranscript(){this.emit("sd-transcript-click"),this.drawer.open=!0}showTranscriptKeydown(t){(t.key==="Enter"||t.key===" ")&&this.showTranscript()}rgbToHex(t){let e=t.match(/\d+/g);if(e&&e.length===3){let r=parseInt(e[0]),a=parseInt(e[1]),n=parseInt(e[2]),d=p=>p.toString(16).padStart(2,"0");return`#${d(r)}${d(a)}${d(n)}`.toUpperCase()}return null}initAnimation(){this.context=this.canvas.getContext("2d");let t=this.audioPlayerContainer.querySelector(".playback-speed"),r=window.getComputedStyle(t).color,a;this.inverted?a="#FFFFFF33":a=this.rgbToHex(r)+"33",this.waveList=[new xe({canvas:this.canvas,color:a,phase:240,shift:1.5,amplitude:230,frequency:.012,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:2.5,amplitude:250,frequency:.005,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:-2.5,amplitude:250,frequency:.005,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:-1,amplitude:200,frequency:.018,damping:1}),new xe({canvas:this.canvas,color:a,phase:180,shift:1.5,amplitude:150,frequency:.01,damping:1})],this.animated&&this.drawStillWaves()}drawStillWaves(){this.waveList.forEach(t=>{t.redraw()})}stopAnimation(){this.isPlaying=!1}clear(){!this.context||!this.canvas||this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}async draw(){!this.isPlaying||!this.animated||(this.clear(),this.waveList.forEach(t=>{t.redraw()}),await new Promise(t=>{setTimeout(t,1e3/30)}),await this.draw())}render(){let t=this.audioElement?this.progress/this.audioElement.duration*100:0,e=u`<div class="${c("controls grid grid-cols-3 justify-items-center items-center",!this.animated&&"relative",this.animated&&!this.reversedLayout&&"absolute -top-4 left-0 w-full",this.reversedLayout?"mt-2":"mb-2")}" part="audio-controls"><button class="${c("playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-6-button ?inverted="${!!this.inverted}" part="play-button" size="lg" @click="${this.isPlaying?this.pauseAudio:this.playAudio}" aria-label="${this.isPlaying?this.localize.term("pauseAudio"):this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying?u`<slot name="pause-icon"><sd-4-0-0-next-6-icon class="text-3xl" name="pause" library="system"></sd-4-0-0-next-6-icon></slot>`:u`<slot name="play-icon"><sd-4-0-0-next-6-icon class="text-3xl" name="start" library="system"></sd-4-0-0-next-6-icon></slot>`}</sd-4-0-0-next-6-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript")?u`<button class="${c("mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-6-icon class="w-6 h-6" name="transcript" library="system" label="${this.isMuted?this.localize.term("unmute"):this.localize.term("mute")}"></sd-4-0-0-next-6-icon></button>`:null} <button class="${c("w-6 h-6 hover:cursor-pointer sd-interactive",this.inverted&&"sd-interactive--inverted")}" part="volume" aria-label="${this.localize.term("mute")}" tabindex="0" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-0-0-next-6-icon class="w-6 h-6" name="${this.isMuted?"mute":"volume"}" library="system"></sd-4-0-0-next-6-icon></button></div></div>`,r=u`<div class="${c("w-full flex justify-between",this.reversedLayout?"mb-2":"mt-2",this.animated&&this.reversedLayout&&"absolute bottom-0 left-0 mb-2",this.animated&&!this.reversedLayout&&"mt-2")}" part="timestamps"><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.currentTime}</div><div class="${c("current-time text-sm",this.inverted?"text-primary-400":"text-neutral-700")}">${this.duration}</div></div>`;return u`<div class="${c("w-full flex relative",this.reversedLayout?"flex-col-reverse":"flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated||this.animated&&this.reversedLayout?e:null}<div class="relative">${this.animated&&!this.reversedLayout?u`${e}`:null} ${this.animated?u`<canvas class="w-full h-16"></canvas>`:null} ${!this.hideTimestamps&&this.animated&&this.reversedLayout?r:null} <input class="${c("progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",this.inverted&&"sd-interactive--inverted")}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted?"rgb(var(--sd-color-white, 255 255 255) / 1)":"rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${t}%,${this.animated?"transparent":this.inverted?"rgb(var(--sd-color-primary-400, 153 171 208) / 1)":"rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${t}%)"></div>${this.hasSlotController.test("transcript")?u`<sd-4-0-0-next-6-drawer><slot name="transcript"></slot></sd-4-0-0-next-6-drawer>`:null} ${!this.hideTimestamps&&(!this.animated||!this.reversedLayout)?r:null}</div>`}};it.styles=[...m.styles,v`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-6-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-4-0-0-next-6-button::part(label){align-items:center;display:flex;flex-grow:0}`],o([l({type:Boolean,reflect:!0,attribute:"reversed-layout"})],it.prototype,"reversedLayout",2),o([l({type:Boolean,reflect:!0,attribute:"hide-timestamps"})],it.prototype,"hideTimestamps",2),o([l({type:Boolean,reflect:!0})],it.prototype,"animated",2),o([l({type:Boolean,reflect:!0})],it.prototype,"inverted",2),o([l({type:Number})],it.prototype,"speed",2),o([C()],it.prototype,"currentTime",2),o([C()],it.prototype,"duration",2),o([C()],it.prototype,"isPlaying",2),o([C()],it.prototype,"isMuted",2),o([C()],it.prototype,"progress",2),o([b('[part="progress-slider"]')],it.prototype,"progressSlider",2),o([b('[part="audio-player"]')],it.prototype,"audioPlayerContainer",2),o([b("sd-4-0-0-next-6-drawer")],it.prototype,"drawer",2),o([b("canvas")],it.prototype,"canvas",2),it=o([y("sd-4-0-0-next-6-audio")],it);var ni={};fo(ni,{backInDown:()=>Zo,backInLeft:()=>Qo,backInRight:()=>Jo,backInUp:()=>Go,backOutDown:()=>ta,backOutLeft:()=>ea,backOutRight:()=>ia,backOutUp:()=>ra,bounce:()=>Do,bounceIn:()=>sa,bounceInDown:()=>oa,bounceInLeft:()=>aa,bounceInRight:()=>na,bounceInUp:()=>la,bounceOut:()=>da,bounceOutDown:()=>ca,bounceOutLeft:()=>ha,bounceOutRight:()=>pa,bounceOutUp:()=>ua,easings:()=>kr,fadeIn:()=>ma,fadeInBottomLeft:()=>fa,fadeInBottomRight:()=>ga,fadeInDown:()=>ba,fadeInDownBig:()=>va,fadeInLeft:()=>ya,fadeInLeftBig:()=>wa,fadeInRight:()=>xa,fadeInRightBig:()=>ka,fadeInTopLeft:()=>Ca,fadeInTopRight:()=>Ea,fadeInUp:()=>$a,fadeInUpBig:()=>Ta,fadeOut:()=>La,fadeOutBottomLeft:()=>za,fadeOutBottomRight:()=>Aa,fadeOutDown:()=>Oa,fadeOutDownBig:()=>Ma,fadeOutLeft:()=>_a,fadeOutLeftBig:()=>Sa,fadeOutRight:()=>Ha,fadeOutRightBig:()=>Pa,fadeOutTopLeft:()=>Ia,fadeOutTopRight:()=>Da,fadeOutUp:()=>Fa,fadeOutUpBig:()=>Va,flash:()=>Fo,flip:()=>Ra,flipInX:()=>Ba,flipInY:()=>Ua,flipOutX:()=>Na,flipOutY:()=>qa,headShake:()=>Vo,heartBeat:()=>Ro,hinge:()=>mn,jackInTheBox:()=>fn,jello:()=>Bo,lightSpeedInLeft:()=>Ka,lightSpeedInRight:()=>ja,lightSpeedOutLeft:()=>Ya,lightSpeedOutRight:()=>Wa,pulse:()=>Uo,rollIn:()=>gn,rollOut:()=>bn,rotateIn:()=>Xa,rotateInDownLeft:()=>Za,rotateInDownRight:()=>Qa,rotateInUpLeft:()=>Ja,rotateInUpRight:()=>Ga,rotateOut:()=>tn,rotateOutDownLeft:()=>en,rotateOutDownRight:()=>rn,rotateOutUpLeft:()=>sn,rotateOutUpRight:()=>on,rubberBand:()=>No,shake:()=>qo,shakeX:()=>Ko,shakeY:()=>jo,slideInDown:()=>an,slideInLeft:()=>nn,slideInRight:()=>ln,slideInUp:()=>dn,slideOutDown:()=>cn,slideOutLeft:()=>hn,slideOutRight:()=>pn,slideOutUp:()=>un,swing:()=>Yo,tada:()=>Wo,wobble:()=>Xo,zoomIn:()=>vn,zoomInDown:()=>yn,zoomInLeft:()=>wn,zoomInRight:()=>xn,zoomInUp:()=>kn,zoomOut:()=>Cn,zoomOutDown:()=>En,zoomOutLeft:()=>$n,zoomOutRight:()=>Tn,zoomOutUp:()=>Ln});var Do=[{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.4,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.43,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -30px, 0) scaleY(1.1)"},{offset:.53,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"},{offset:.7,easing:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",transform:"translate3d(0, -15px, 0) scaleY(1.05)"},{offset:.8,"transition-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0) scaleY(0.95)"},{offset:.9,transform:"translate3d(0, -4px, 0) scaleY(1.02)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)"}];var Fo=[{offset:0,opacity:"1"},{offset:.25,opacity:"0"},{offset:.5,opacity:"1"},{offset:.75,opacity:"0"},{offset:1,opacity:"1"}];var Vo=[{offset:0,transform:"translateX(0)"},{offset:.065,transform:"translateX(-6px) rotateY(-9deg)"},{offset:.185,transform:"translateX(5px) rotateY(7deg)"},{offset:.315,transform:"translateX(-3px) rotateY(-5deg)"},{offset:.435,transform:"translateX(2px) rotateY(3deg)"},{offset:.5,transform:"translateX(0)"}];var Ro=[{offset:0,transform:"scale(1)"},{offset:.14,transform:"scale(1.3)"},{offset:.28,transform:"scale(1)"},{offset:.42,transform:"scale(1.3)"},{offset:.7,transform:"scale(1)"}];var Bo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.111,transform:"translate3d(0, 0, 0)"},{offset:.222,transform:"skewX(-12.5deg) skewY(-12.5deg)"},{offset:.33299999999999996,transform:"skewX(6.25deg) skewY(6.25deg)"},{offset:.444,transform:"skewX(-3.125deg) skewY(-3.125deg)"},{offset:.555,transform:"skewX(1.5625deg) skewY(1.5625deg)"},{offset:.6659999999999999,transform:"skewX(-0.78125deg) skewY(-0.78125deg)"},{offset:.777,transform:"skewX(0.390625deg) skewY(0.390625deg)"},{offset:.888,transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Uo=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.5,transform:"scale3d(1.05, 1.05, 1.05)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var No=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.3,transform:"scale3d(1.25, 0.75, 1)"},{offset:.4,transform:"scale3d(0.75, 1.25, 1)"},{offset:.5,transform:"scale3d(1.15, 0.85, 1)"},{offset:.65,transform:"scale3d(0.95, 1.05, 1)"},{offset:.75,transform:"scale3d(1.05, 0.95, 1)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var qo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Ko=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(-10px, 0, 0)"},{offset:.2,transform:"translate3d(10px, 0, 0)"},{offset:.3,transform:"translate3d(-10px, 0, 0)"},{offset:.4,transform:"translate3d(10px, 0, 0)"},{offset:.5,transform:"translate3d(-10px, 0, 0)"},{offset:.6,transform:"translate3d(10px, 0, 0)"},{offset:.7,transform:"translate3d(-10px, 0, 0)"},{offset:.8,transform:"translate3d(10px, 0, 0)"},{offset:.9,transform:"translate3d(-10px, 0, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var jo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.1,transform:"translate3d(0, -10px, 0)"},{offset:.2,transform:"translate3d(0, 10px, 0)"},{offset:.3,transform:"translate3d(0, -10px, 0)"},{offset:.4,transform:"translate3d(0, 10px, 0)"},{offset:.5,transform:"translate3d(0, -10px, 0)"},{offset:.6,transform:"translate3d(0, 10px, 0)"},{offset:.7,transform:"translate3d(0, -10px, 0)"},{offset:.8,transform:"translate3d(0, 10px, 0)"},{offset:.9,transform:"translate3d(0, -10px, 0)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Yo=[{offset:.2,transform:"rotate3d(0, 0, 1, 15deg)"},{offset:.4,transform:"rotate3d(0, 0, 1, -10deg)"},{offset:.6,transform:"rotate3d(0, 0, 1, 5deg)"},{offset:.8,transform:"rotate3d(0, 0, 1, -5deg)"},{offset:1,transform:"rotate3d(0, 0, 1, 0deg)"}];var Wo=[{offset:0,transform:"scale3d(1, 1, 1)"},{offset:.1,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.2,transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{offset:.3,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.4,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.5,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.6,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.7,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:.8,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{offset:.9,transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{offset:1,transform:"scale3d(1, 1, 1)"}];var Xo=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:.15,transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{offset:.3,transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{offset:.45,transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{offset:.6,transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{offset:.75,transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Zo=[{offset:0,transform:"translateY(-1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Qo=[{offset:0,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Jo=[{offset:0,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var Go=[{offset:0,transform:"translateY(1200px) scale(0.7)",opacity:"0.7"},{offset:.8,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"scale(1)",opacity:"1"}];var ta=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(700px) scale(0.7)",opacity:"0.7"}];var ea=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(-2000px) scale(0.7)",opacity:"0.7"}];var ia=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateX(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateX(2000px) scale(0.7)",opacity:"0.7"}];var ra=[{offset:0,transform:"scale(1)",opacity:"1"},{offset:.2,transform:"translateY(0px) scale(0.7)",opacity:"0.7"},{offset:1,transform:"translateY(-700px) scale(0.7)",opacity:"0.7"}];var sa=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.2,transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.2,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.4,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.4,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.8,transform:"scale3d(0.97, 0.97, 0.97)"},{offset:.8,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,opacity:"1",transform:"scale3d(1, 1, 1)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var oa=[{offset:0,opacity:"0",transform:"translate3d(0, -3000px, 0) scaleY(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, 25px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, -10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, 5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var aa=[{offset:0,opacity:"0",transform:"translate3d(-3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(-10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var na=[{offset:0,opacity:"0",transform:"translate3d(3000px, 0, 0) scaleX(3)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(-25px, 0, 0) scaleX(1)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(10px, 0, 0) scaleX(0.98)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(-5px, 0, 0) scaleX(0.995)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var la=[{offset:0,opacity:"0",transform:"translate3d(0, 3000px, 0) scaleY(5)"},{offset:0,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.6,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.6,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.75,transform:"translate3d(0, 10px, 0) scaleY(0.95)"},{offset:.75,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:.9,transform:"translate3d(0, -5px, 0) scaleY(0.985)"},{offset:.9,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"},{offset:1,transform:"translate3d(0, 0, 0)"},{offset:1,easing:"cubic-bezier(0.215, 0.61, 0.355, 1)"}];var da=[{offset:.2,transform:"scale3d(0.9, 0.9, 0.9)"},{offset:.5,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:.55,opacity:"1",transform:"scale3d(1.1, 1.1, 1.1)"},{offset:1,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"}];var ca=[{offset:.2,transform:"translate3d(0, 10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, -20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0) scaleY(3)"}];var ha=[{offset:.2,opacity:"1",transform:"translate3d(20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0) scaleX(2)"}];var pa=[{offset:.2,opacity:"1",transform:"translate3d(-20px, 0, 0) scaleX(0.9)"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0) scaleX(2)"}];var ua=[{offset:.2,transform:"translate3d(0, -10px, 0) scaleY(0.985)"},{offset:.4,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:.45,opacity:"1",transform:"translate3d(0, 20px, 0) scaleY(0.9)"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0) scaleY(3)"}];var ma=[{offset:0,opacity:"0"},{offset:1,opacity:"1"}];var fa=[{offset:0,opacity:"0",transform:"translate3d(-100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ga=[{offset:0,opacity:"0",transform:"translate3d(100%, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ba=[{offset:0,opacity:"0",transform:"translate3d(0, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var va=[{offset:0,opacity:"0",transform:"translate3d(0, -2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ya=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var wa=[{offset:0,opacity:"0",transform:"translate3d(-2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var xa=[{offset:0,opacity:"0",transform:"translate3d(100%, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var ka=[{offset:0,opacity:"0",transform:"translate3d(2000px, 0, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ca=[{offset:0,opacity:"0",transform:"translate3d(-100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ea=[{offset:0,opacity:"0",transform:"translate3d(100%, -100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var $a=[{offset:0,opacity:"0",transform:"translate3d(0, 100%, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var Ta=[{offset:0,opacity:"0",transform:"translate3d(0, 2000px, 0)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var La=[{offset:0,opacity:"1"},{offset:1,opacity:"0"}];var za=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, 100%, 0)"}];var Aa=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, 100%, 0)"}];var Oa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 100%, 0)"}];var Ma=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, 2000px, 0)"}];var _a=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-100%, 0, 0)"}];var Sa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(-2000px, 0, 0)"}];var Ha=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0)"}];var Pa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(2000px, 0, 0)"}];var Ia=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(-100%, -100%, 0)"}];var Da=[{offset:0,opacity:"1",transform:"translate3d(0, 0, 0)"},{offset:1,opacity:"0",transform:"translate3d(100%, -100%, 0)"}];var Fa=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -100%, 0)"}];var Va=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(0, -2000px, 0)"}];var Ra=[{offset:0,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)",easing:"ease-out"},{offset:.4,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
69
69
  rotate3d(0, 1, 0, -190deg)`,easing:"ease-out"},{offset:.5,transform:`perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px)
70
70
  rotate3d(0, 1, 0, -170deg)`,easing:"ease-in"},{offset:.8,transform:`perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0)
71
- rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}];var Ba=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var Ua=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var Na=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}];var qa=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}];var Ka=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var ja=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Ya=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}];var Wa=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}];var Xa=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Za=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Qa=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Ja=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Ga=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var tn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}];var en=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}];var rn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var sn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var on=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}];var an=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var nn=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var ln=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var dn=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var cn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}];var hn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}];var pn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}];var un=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}];var mn=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}];var fn=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}];var gn=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var bn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}];var vn=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}];var yn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var wn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var xn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var kn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Cn=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}];var En=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var $n=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}];var Tn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}];var Ln=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var kr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};var Z=class extends m{constructor(){super(...arguments);this.hasStarted=!1;this.name="none";this.play=!1;this.delay=0;this.direction="normal";this.duration=1e3;this.easing="linear";this.endDelay=0;this.fill="auto";this.iterations=1/0;this.iterationStart=0;this.playbackRate=1}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation(),this.handleAnimationCancel=this.handleAnimationCancel.bind(this),this.handleAnimationFinish=this.handleAnimationFinish.bind(this)}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleAnimationFinish(){this.play=!1,this.hasStarted=!1,this.emit("sd-finish")}handleAnimationCancel(){this.play=!1,this.hasStarted=!1,this.emit("sd-cancel")}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var n,d;let t=(n=ni.easings[this.easing])!=null?n:this.easing,e=(d=this.keyframes)!=null?d:ni[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!e?!1:(this.destroyAnimation(),this.animation=a.animate(e,{delay:this.delay,direction:this.direction,duration:this.duration,easing:t,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sd-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sd-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return u`<slot @slotchange="${this.handleSlotChange}"></slot>`}};Z.styles=[...m.styles,v`:host{display:contents}`],o([ps("slot")],Z.prototype,"defaultSlot",2),o([l()],Z.prototype,"name",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"play",2),o([l({type:Number})],Z.prototype,"delay",2),o([l()],Z.prototype,"direction",2),o([l({type:Number})],Z.prototype,"duration",2),o([l()],Z.prototype,"easing",2),o([l({attribute:"end-delay",type:Number})],Z.prototype,"endDelay",2),o([l()],Z.prototype,"fill",2),o([l({type:Number})],Z.prototype,"iterations",2),o([l({attribute:"iteration-start",type:Number})],Z.prototype,"iterationStart",2),o([l({attribute:!1})],Z.prototype,"keyframes",2),o([l({attribute:"playback-rate",type:Number})],Z.prototype,"playbackRate",2),o([w(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],Z.prototype,"handleAnimationChange",1),o([w("play")],Z.prototype,"handlePlayChange",1),o([w("playbackRate")],Z.prototype,"handlePlaybackRateChange",1),Z=o([y("sd-4-0-0-next-4-animation")],Z);var Jt=class extends m{constructor(){super(...arguments);this.size="lg";this.variant="default";this.inverted=!1}render(){return u`<span role="status" part="base" aria-labelledby="content" class="${c("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{default:this.inverted?"text-primary bg-primary-100 border-primary":"text-white bg-primary-500 border-white",success:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",error:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant],{sm:"h-2 min-w-2",md:"h-4 px-1 min-w-4",lg:"h-5 min-w-5"}[this.size])}"><span id="content" part="content" class="${c(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};Jt.styles=[...m.styles,v`:host{align-items:center;display:inline-flex;justify-content:center}:host([size=md]){font-size:.625rem}:host([size=lg]){font-size:.75rem}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],o([l({reflect:!0})],Jt.prototype,"size",2),o([l({reflect:!0})],Jt.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],Jt.prototype,"inverted",2),Jt=o([y("sd-4-0-0-next-4-badge")],Jt);var Rt=class extends m{constructor(){super(...arguments);this.variant="primary";this.shapes=["top","middle","bottom"];this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setBreakpoint()),this.updateComplete.then(()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return u`<div class="relative" part="shape-top">${this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return u`<div class="${c({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="${c("z-10 relative",this.variant==="image"&&"invisible opacity-0")}" part="content"><slot>${this.variant==="image"?"":u`<div class="h-8"></div>`}</slot></div></div>`}renderBottomBrandshape(){return u`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return u`<div class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}renderStylizedVariant(){return u`<div part="stylized-container" class="w-full overflow-hidden"><slot class="${c(this.variant!=="image"&&"hidden")}" name="image"></slot></div>`}renderShapes(){return u`${this.shapes.includes("top")?this.renderTopBrandshape():""} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():""} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():""}`}render(){let t=this.variant.startsWith("border-")||this.variant==="image";return u`<div class="${c({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white","border-white":"fill-transparent","border-primary":"fill-transparent",image:"fill-transparent"}[this.variant],"relative")}" part="base">${t?this.renderStylizedVariant():""} ${this.renderShapes()}</div>`}};Rt.styles=[...m.styles,v`:host{container-type:inline-size;display:block;--angle:11deg;--radius:60px;--tan:tan(var(--angle));--adjacent:100cqw;--opposite:calc(var(--tan)*var(--adjacent));--curve:calc((var(--opposite) - (var(--radius)/3))*0.5)}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]:before{border-radius:0 var(--radius);height:calc(100% - var(--curve)*2);left:var(--sd-spacing-0,0);margin-top:calc(var(--curve));position:absolute;top:var(--sd-spacing-0,0);transform:skewY(calc(var(--angle)*-1))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){height:calc(100% + var(--curve)*2)!important;-o-object-fit:cover;object-fit:cover;position:absolute!important;transform:translateY(calc(var(--curve)*-1)) skewY(var(--angle));width:100%}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]:before{height:100%;margin-top:0;transform:unset}slot[name=image]::slotted(img),slot[name=image]::slotted(video){height:100%!important;transform:unset}}:host([variant=border-primary]){--internal-border-color:rgb(var(--sd-color-primary,0 53 142))}:host([variant=border-white]){--internal-border-color:var(--sd-color-white,#fff)}:host([variant^=border-]) [part=stylized-container]:before{border-color:var(--internal-border-color,#000);border-style:solid;border-width:2px;content:"";right:var(--sd-spacing-0,0)}`],o([b("[part=base]")],Rt.prototype,"containerElem",2),o([l({type:String})],Rt.prototype,"variant",2),o([l({type:Array})],Rt.prototype,"shapes",2),o([C()],Rt.prototype,"componentBreakpoint",2),Rt=o([y("sd-4-0-0-next-4-brandshape")],Rt);var ke=class extends m{constructor(){super(...arguments);this.color="currentColor";this.localize=new F(this)}render(){return u`<svg role="progressbar" viewBox="0 0 24 24" class="${c("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};ke.styles=[...m.styles,v`:host{display:inline-block;height:1em;width:1em}`],o([l({reflect:!0})],ke.prototype,"color",2),ke=o([y("sd-4-0-0-next-4-spinner")],ke);var li=new WeakMap,di=new WeakMap,xs=new WeakMap,Di=new WeakMap,dt=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),e=this.options.name(this.host),r=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="sd-4-0-0-next-4-button";!t&&!a&&typeof e=="string"&&e.length>0&&typeof r!="undefined"&&(Array.isArray(r)?r.forEach(n=>{i.formData.append(e,n.toString())}):i.formData.append(e,r.toString()))};this.handleFormSubmit=i=>{var r,a;let t=this.options.disabled(this.host),e=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((r=li.get(this.form))==null||r.forEach(n=>{this.setUserInteracted(n,!0)})),this.form&&!this.form.noValidate&&!t&&!e(this.host)){i.preventDefault(),i.stopImmediatePropagation();let n=(a=this.form)==null?void 0:a.querySelectorAll("[data-invalid]");Array.from(n).filter(h=>h.tagName.toLowerCase()==="sd-4-0-0-next-4-radio-group").forEach(h=>{var p,f;(f=(p=h.shadowRoot)==null?void 0:p.querySelector("input"))==null||f.dispatchEvent(new Event("invalid"))}),n!=null&&n.length&&n[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Di.set(this.host,[])};this.handleInteraction=i=>{let t=Di.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=i).addController(this),this.options=O({form:e=>{if(e.hasAttribute("form")&&e.getAttribute("form")!==""){let r=e.getRootNode(),a=e.getAttribute("form");if(a)return r.getElementById(a)}return e.closest("form")},name:e=>e.name,value:e=>e.value,defaultValue:e=>e.defaultValue,disabled:e=>{var r;return(r=e.disabled)!=null?r:!1},reportValidity:e=>typeof e.reportValidity=="function"?e.reportValidity():!0,setValue:(e,r)=>e.value=r,assumeInteractionOn:["sd-4-0-0-next-4-input"]},t)}hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),Di.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Di.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){var t;let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&(this.setValidity((t=this.host)==null?void 0:t.validity.valid),this.updateValidityStyle())}attachForm(i){i?(this.form=i,li.has(this.form)?li.get(this.form).add(this.host):li.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),di.has(this.form)||(di.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var i;this.form&&((i=li.get(this.form))==null||i.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),di.has(this.form)&&(this.form.reportValidity=di.get(this.form),di.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0}setUserInteracted(i,t){xs.set(i,t),i.requestUpdate()}doAction(i,t){if(this.form){let e=document.createElement("button");e.type=i,e.style.position="absolute",e.style.width="0",e.style.height="0",e.style.clipPath="inset(50%)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",t&&(e.name=t.name,e.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{t.hasAttribute(r)&&e.setAttribute(r,t.getAttribute(r))})),this.form.append(e),e.click(),e.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var i;return(i=this.form)!=null?i:null}renderInvalidMessage(){return u`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){var a;let t=this.host,e=!!xs.get(t),r=!!t.required;(a=this.form)!=null&&a.noValidate?(t.removeAttribute("data-required"),t.removeAttribute("data-optional"),t.removeAttribute("data-invalid"),t.removeAttribute("data-valid"),t.removeAttribute("data-user-invalid"),t.removeAttribute("data-user-valid"),t.removeAttribute("aria-invalid")):(t.toggleAttribute("data-required",r),t.toggleAttribute("data-optional",!r),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&e),t.toggleAttribute("data-user-valid",i&&e),t.setAttribute("aria-invalid",(!i).toString()))}updateValidity(){let i=this.host;this.setValidity(i==null?void 0:i.validity.valid)}emitInvalidEvent(i){i==null||i.preventDefault();let t=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault()}},Ye=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),ks=Object.freeze(et(O({},Ye),{valid:!1,valueMissing:!0})),Cs=Object.freeze(et(O({},Ye),{valid:!1,customError:!0}));var k=s=>s!=null?s:Y;var N=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{form:t=>{if(t.hasAttribute("form")){let e=t.getRootNode(),r=t.getAttribute("form");return e.getElementById(r)}return t.closest("form")}});this.hasSlotController=new _(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:Ye}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading){t.preventDefault(),t.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){let t=this.isLink(),e=t?X`a`:X`button`,r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return D`<${e} part="base" class="${c(`font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline
71
+ rotate3d(0, 1, 0, 0deg)`,easing:"ease-in"},{offset:1,transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)",easing:"ease-in"}];var Ba=[{offset:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var Ua=[{offset:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",easing:"ease-in",opacity:"0"},{offset:.4,transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)",easing:"ease-in"},{offset:.6,transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)",opacity:"1"},{offset:.8,transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{offset:1,transform:"perspective(400px)"}];var Na=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)",opacity:"0"}];var qa=[{offset:0,transform:"perspective(400px)"},{offset:.3,transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)",opacity:"1"},{offset:1,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)",opacity:"0"}];var Ka=[{offset:0,transform:"translate3d(-100%, 0, 0) skewX(30deg)",opacity:"0"},{offset:.6,transform:"skewX(-20deg)",opacity:"1"},{offset:.8,transform:"skewX(5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var ja=[{offset:0,transform:"translate3d(100%, 0, 0) skewX(-30deg)",opacity:"0"},{offset:.6,transform:"skewX(20deg)",opacity:"1"},{offset:.8,transform:"skewX(-5deg)"},{offset:1,transform:"translate3d(0, 0, 0)"}];var Ya=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(-100%, 0, 0) skewX(-30deg)",opacity:"0"}];var Wa=[{offset:0,opacity:"1"},{offset:1,transform:"translate3d(100%, 0, 0) skewX(30deg)",opacity:"0"}];var Xa=[{offset:0,transform:"rotate3d(0, 0, 1, -200deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Za=[{offset:0,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Qa=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Ja=[{offset:0,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var Ga=[{offset:0,transform:"rotate3d(0, 0, 1, -90deg)",opacity:"0"},{offset:1,transform:"translate3d(0, 0, 0)",opacity:"1"}];var tn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 200deg)",opacity:"0"}];var en=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 45deg)",opacity:"0"}];var rn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var sn=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, -45deg)",opacity:"0"}];var on=[{offset:0,opacity:"1"},{offset:1,transform:"rotate3d(0, 0, 1, 90deg)",opacity:"0"}];var an=[{offset:0,transform:"translate3d(0, -100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var nn=[{offset:0,transform:"translate3d(-100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var ln=[{offset:0,transform:"translate3d(100%, 0, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var dn=[{offset:0,transform:"translate3d(0, 100%, 0)",visibility:"visible"},{offset:1,transform:"translate3d(0, 0, 0)"}];var cn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, 100%, 0)"}];var hn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(-100%, 0, 0)"}];var pn=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(100%, 0, 0)"}];var un=[{offset:0,transform:"translate3d(0, 0, 0)"},{offset:1,visibility:"hidden",transform:"translate3d(0, -100%, 0)"}];var mn=[{offset:0,easing:"ease-in-out"},{offset:.2,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.4,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:.6,transform:"rotate3d(0, 0, 1, 80deg)",easing:"ease-in-out"},{offset:.8,transform:"rotate3d(0, 0, 1, 60deg)",easing:"ease-in-out",opacity:"1"},{offset:1,transform:"translate3d(0, 700px, 0)",opacity:"0"}];var fn=[{offset:0,opacity:"0",transform:"scale(0.1) rotate(30deg)","transform-origin":"center bottom"},{offset:.5,transform:"rotate(-10deg)"},{offset:.7,transform:"rotate(3deg)"},{offset:1,opacity:"1",transform:"scale(1)"}];var gn=[{offset:0,opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},{offset:1,opacity:"1",transform:"translate3d(0, 0, 0)"}];var bn=[{offset:0,opacity:"1"},{offset:1,opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}];var vn=[{offset:0,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:.5,opacity:"1"}];var yn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var wn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var xn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var kn=[{offset:0,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:.6,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var Cn=[{offset:0,opacity:"1"},{offset:.5,opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},{offset:1,opacity:"0"}];var En=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var $n=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}];var Tn=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)"},{offset:1,opacity:"0",transform:"scale(0.1) translate3d(2000px, 0, 0)"}];var Ln=[{offset:.4,opacity:"1",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)",easing:"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},{offset:1,opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)",easing:"cubic-bezier(0.175, 0.885, 0.32, 1)"}];var kr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",easeInSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",easeOutSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",easeInOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeInQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",easeOutQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",easeInOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",easeInCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",easeOutCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",easeInQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",easeOutQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",easeInOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",easeInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",easeInExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",easeOutExpo:"cubic-bezier(0.19, 1, 0.22, 1)",easeInOutExpo:"cubic-bezier(1, 0, 0, 1)",easeInCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",easeOutCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",easeInBack:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",easeInOutBack:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"};var Z=class extends m{constructor(){super(...arguments);this.hasStarted=!1;this.name="none";this.play=!1;this.delay=0;this.direction="normal";this.duration=1e3;this.easing="linear";this.endDelay=0;this.fill="auto";this.iterations=1/0;this.iterationStart=0;this.playbackRate=1}get currentTime(){var t,e;return(e=(t=this.animation)==null?void 0:t.currentTime)!=null?e:0}set currentTime(t){this.animation&&(this.animation.currentTime=t)}connectedCallback(){super.connectedCallback(),this.createAnimation(),this.handleAnimationCancel=this.handleAnimationCancel.bind(this),this.handleAnimationFinish=this.handleAnimationFinish.bind(this)}disconnectedCallback(){super.disconnectedCallback(),this.destroyAnimation()}handleAnimationFinish(){this.play=!1,this.hasStarted=!1,this.emit("sd-finish")}handleAnimationCancel(){this.play=!1,this.hasStarted=!1,this.emit("sd-cancel")}handleSlotChange(){this.destroyAnimation(),this.createAnimation()}async createAnimation(){var n,d;let t=(n=ni.easings[this.easing])!=null?n:this.easing,e=(d=this.keyframes)!=null?d:ni[this.name],a=(await this.defaultSlot).assignedElements()[0];return!a||!e?!1:(this.destroyAnimation(),this.animation=a.animate(e,{delay:this.delay,direction:this.direction,duration:this.duration,easing:t,endDelay:this.endDelay,fill:this.fill,iterationStart:this.iterationStart,iterations:this.iterations}),this.animation.playbackRate=this.playbackRate,this.animation.addEventListener("cancel",this.handleAnimationCancel),this.animation.addEventListener("finish",this.handleAnimationFinish),this.play?(this.hasStarted=!0,this.emit("sd-start")):this.animation.pause(),!0)}destroyAnimation(){this.animation&&(this.animation.cancel(),this.animation.removeEventListener("cancel",this.handleAnimationCancel),this.animation.removeEventListener("finish",this.handleAnimationFinish),this.hasStarted=!1)}handleAnimationChange(){this.hasUpdated&&this.createAnimation()}handlePlayChange(){return this.animation?(this.play&&!this.hasStarted&&(this.hasStarted=!0,this.emit("sd-start")),this.play?this.animation.play():this.animation.pause(),!0):!1}handlePlaybackRateChange(){this.animation&&(this.animation.playbackRate=this.playbackRate)}cancel(){var t;(t=this.animation)==null||t.cancel()}finish(){var t;(t=this.animation)==null||t.finish()}render(){return u`<slot @slotchange="${this.handleSlotChange}"></slot>`}};Z.styles=[...m.styles,v`:host{display:contents}`],o([ps("slot")],Z.prototype,"defaultSlot",2),o([l()],Z.prototype,"name",2),o([l({type:Boolean,reflect:!0})],Z.prototype,"play",2),o([l({type:Number})],Z.prototype,"delay",2),o([l()],Z.prototype,"direction",2),o([l({type:Number})],Z.prototype,"duration",2),o([l()],Z.prototype,"easing",2),o([l({attribute:"end-delay",type:Number})],Z.prototype,"endDelay",2),o([l()],Z.prototype,"fill",2),o([l({type:Number})],Z.prototype,"iterations",2),o([l({attribute:"iteration-start",type:Number})],Z.prototype,"iterationStart",2),o([l({attribute:!1})],Z.prototype,"keyframes",2),o([l({attribute:"playback-rate",type:Number})],Z.prototype,"playbackRate",2),o([w(["name","delay","direction","duration","easing","endDelay","fill","iterations","iterationsStart","keyframes"])],Z.prototype,"handleAnimationChange",1),o([w("play")],Z.prototype,"handlePlayChange",1),o([w("playbackRate")],Z.prototype,"handlePlaybackRateChange",1),Z=o([y("sd-4-0-0-next-6-animation")],Z);var Jt=class extends m{constructor(){super(...arguments);this.size="lg";this.variant="default";this.inverted=!1}render(){return u`<span role="status" part="base" aria-labelledby="content" class="${c("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{default:this.inverted?"text-primary bg-primary-100 border-primary":"text-white bg-primary-500 border-white",success:this.inverted?"text-white bg-success border-primary":"text-white bg-success border-white",error:this.inverted?"text-white bg-error border-primary":"text-white bg-error border-white"}[this.variant],{sm:"h-2 min-w-2",md:"h-4 px-1 min-w-4",lg:"h-5 min-w-5"}[this.size])}"><span id="content" part="content" class="${c(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};Jt.styles=[...m.styles,v`:host{align-items:center;display:inline-flex;justify-content:center}:host([size=md]){font-size:.625rem}:host([size=lg]){font-size:.75rem}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],o([l({reflect:!0})],Jt.prototype,"size",2),o([l({reflect:!0})],Jt.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],Jt.prototype,"inverted",2),Jt=o([y("sd-4-0-0-next-6-badge")],Jt);var Rt=class extends m{constructor(){super(...arguments);this.variant="primary";this.shapes=["top","middle","bottom"];this.componentBreakpoint=0}getSvg(t,e){return{0:this.smallSvg(e),414:this.mediumSvg(e),640:this.largeSvg(e)}[t]}largeSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M610.777 1.393.001 120.146 0 123h700.001V74.79c0-4.797-.462-9.585-1.381-14.294-7.909-40.537-47.237-66.998-87.843-59.103Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 123"><path d="M89.224 121.607 700 2.854 700.001 0h-700L0 48.21c0 4.797.463 9.584 1.381 14.294 7.909 40.537 47.237 66.998 87.843 59.103Z"/></svg>`}mediumSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 119"><path d="M597.75 1.6 0 118.046V121h700V85.872c0-5.509-.53-11.006-1.583-16.413-9.063-46.543-54.133-76.924-100.667-67.86Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 121"><path d="M102.25 119.4 700 2.954V0H0v35.128c0 5.509.53 11.006 1.583 16.413 9.063 46.543 54.134 76.924 100.667 67.859Z"/></svg>`}smallSvg(t){return t==="top"?u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 113"><path d="M566.951 2.08 0 112.466v2.934h700v-3.672c0-7.166-.689-14.314-2.059-21.348-11.789-60.557-70.436-100.09-130.99-88.3Z"/></svg>`:u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 116"><path d="M133.049 113.32 700 2.934V0H0v3.672c0 7.165.69 14.314 2.059 21.348 11.79 60.557 70.436 100.09 130.99 88.3Z"/></svg>`}setBreakpoint(){switch(!0){case this.containerElem.clientWidth<=414:this.componentBreakpoint=0;break;case this.containerElem.clientWidth<640:this.componentBreakpoint=414;break;default:this.componentBreakpoint=640}}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>this.setBreakpoint()),this.updateComplete.then(()=>{this.setBreakpoint(),this.resizeObserver.observe(this.containerElem)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.containerElem)}renderTopBrandshape(){return u`<div class="relative" part="shape-top">${this.getSvg(this.componentBreakpoint,"top")} ${this.renderWhitespaceFix("top")}</div>`}renderMiddleBrandshape(){return u`<div class="${c({0:"px-6 py-4",414:"px-10 py-8",640:"px-10 py-8"}[this.componentBreakpoint],"w-full block relative")}"><div part="shape-middle" class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],"w-full block absolute h-full top-0 left-0 z-0")}"></div><div class="${c("z-10 relative",this.variant==="image"&&"invisible opacity-0")}" part="content"><slot>${this.variant==="image"?"":u`<div class="h-8"></div>`}</slot></div></div>`}renderBottomBrandshape(){return u`<div class="relative" part="shape-bottom">${this.getSvg(this.componentBreakpoint,"bottom")}${this.renderWhitespaceFix("bottom")}</div>`}renderWhitespaceFix(t){return u`<div class="${c({"neutral-100":"bg-neutral-100",primary:"bg-primary",white:"bg-white","border-white":"bg-transparent","border-primary":"bg-transparent",image:"bg-transparent"}[this.variant],{top:"bottom-0",bottom:"top-0"}[t],"block absolute left-0 w-full h-[1px]")}"></div>`}renderStylizedVariant(){return u`<div part="stylized-container" class="w-full overflow-hidden"><slot class="${c(this.variant!=="image"&&"hidden")}" name="image"></slot></div>`}renderShapes(){return u`${this.shapes.includes("top")?this.renderTopBrandshape():""} ${this.shapes.includes("middle")?this.renderMiddleBrandshape():""} ${this.shapes.includes("bottom")?this.renderBottomBrandshape():""}`}render(){let t=this.variant.startsWith("border-")||this.variant==="image";return u`<div class="${c({"neutral-100":"fill-neutral-100",primary:"fill-primary",white:"fill-white","border-white":"fill-transparent","border-primary":"fill-transparent",image:"fill-transparent"}[this.variant],"relative")}" part="base">${t?this.renderStylizedVariant():""} ${this.renderShapes()}</div>`}};Rt.styles=[...m.styles,v`:host{container-type:inline-size;display:block;--angle:11deg;--radius:60px;--tan:tan(var(--angle));--adjacent:100cqw;--opposite:calc(var(--tan)*var(--adjacent));--curve:calc((var(--opposite) - (var(--radius)/3))*0.5)}@supports not (transform:skewY(11deg)){:host{--tan:0.1943803091}}@media (min-width:415px){:host{--radius:72px}}@media (min-width:640px){:host{--radius:84px}}:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]:before{border-radius:0 var(--radius);height:calc(100% - var(--curve)*2);left:var(--sd-spacing-0,0);margin-top:calc(var(--curve));position:absolute;top:var(--sd-spacing-0,0);transform:skewY(calc(var(--angle)*-1))}slot[name=image]::slotted(img),slot[name=image]::slotted(video){height:calc(100% + var(--curve)*2)!important;-o-object-fit:cover;object-fit:cover;position:absolute!important;transform:translateY(calc(var(--curve)*-1)) skewY(var(--angle));width:100%}@supports not (height:100cqw){:host([variant=image]) [part=stylized-container],:host([variant^=border-]) [part=stylized-container]:before{height:100%;margin-top:0;transform:unset}slot[name=image]::slotted(img),slot[name=image]::slotted(video){height:100%!important;transform:unset}}:host([variant=border-primary]){--internal-border-color:rgb(var(--sd-color-primary,0 53 142))}:host([variant=border-white]){--internal-border-color:var(--sd-color-white,#fff)}:host([variant^=border-]) [part=stylized-container]:before{border-color:var(--internal-border-color,#000);border-style:solid;border-width:2px;content:"";right:var(--sd-spacing-0,0)}`],o([b("[part=base]")],Rt.prototype,"containerElem",2),o([l({type:String})],Rt.prototype,"variant",2),o([l({type:Array})],Rt.prototype,"shapes",2),o([C()],Rt.prototype,"componentBreakpoint",2),Rt=o([y("sd-4-0-0-next-6-brandshape")],Rt);var ke=class extends m{constructor(){super(...arguments);this.color="currentColor";this.localize=new F(this)}render(){return u`<svg role="progressbar" viewBox="0 0 24 24" class="${c("animate-spin",{primary:"text-primary",white:"text-white",currentColor:""}[this.color])}" aria-label="${this.localize.term("loading")}"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" class="opacity-20" fill="currentColor"/><mask id="mask0_5273_25391" style="mask-type:alpha" maskUnits="userSpaceOnUse"><path d="M24 12C24 5.37258 18.6274 0 12 0V12H24Z" fill="currentColor"/></mask><g mask="url(#mask0_5273_25391)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12Z" fill="currentColor"/></g></svg>`}};ke.styles=[...m.styles,v`:host{display:inline-block;height:1em;width:1em}`],o([l({reflect:!0})],ke.prototype,"color",2),ke=o([y("sd-4-0-0-next-6-spinner")],ke);var li=new WeakMap,di=new WeakMap,xs=new WeakMap,Di=new WeakMap,dt=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),e=this.options.name(this.host),r=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="sd-4-0-0-next-6-button";!t&&!a&&typeof e=="string"&&e.length>0&&typeof r!="undefined"&&(Array.isArray(r)?r.forEach(n=>{i.formData.append(e,n.toString())}):i.formData.append(e,r.toString()))};this.handleFormSubmit=i=>{var r,a;let t=this.options.disabled(this.host),e=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((r=li.get(this.form))==null||r.forEach(n=>{this.setUserInteracted(n,!0)})),this.form&&!this.form.noValidate&&!t&&!e(this.host)){i.preventDefault(),i.stopImmediatePropagation();let n=(a=this.form)==null?void 0:a.querySelectorAll("[data-invalid]");Array.from(n).filter(h=>h.tagName.toLowerCase()==="sd-4-0-0-next-6-radio-group").forEach(h=>{var p,f;(f=(p=h.shadowRoot)==null?void 0:p.querySelector("input"))==null||f.dispatchEvent(new Event("invalid"))}),n!=null&&n.length&&n[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Di.set(this.host,[])};this.handleInteraction=i=>{let t=Di.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=i).addController(this),this.options=O({form:e=>{if(e.hasAttribute("form")&&e.getAttribute("form")!==""){let r=e.getRootNode(),a=e.getAttribute("form");if(a)return r.getElementById(a)}return e.closest("form")},name:e=>e.name,value:e=>e.value,defaultValue:e=>e.defaultValue,disabled:e=>{var r;return(r=e.disabled)!=null?r:!1},reportValidity:e=>typeof e.reportValidity=="function"?e.reportValidity():!0,setValue:(e,r)=>e.value=r,assumeInteractionOn:["sd-4-0-0-next-6-input"]},t)}hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),Di.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)})}hostDisconnected(){this.detachForm(),Di.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){var t;let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&(this.setValidity((t=this.host)==null?void 0:t.validity.valid),this.updateValidityStyle())}attachForm(i){i?(this.form=i,li.has(this.form)?li.get(this.form).add(this.host):li.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),di.has(this.form)||(di.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var i;this.form&&((i=li.get(this.form))==null||i.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),di.has(this.form)&&(this.form.reportValidity=di.get(this.form),di.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0}setUserInteracted(i,t){xs.set(i,t),i.requestUpdate()}doAction(i,t){if(this.form){let e=document.createElement("button");e.type=i,e.style.position="absolute",e.style.width="0",e.style.height="0",e.style.clipPath="inset(50%)",e.style.overflow="hidden",e.style.whiteSpace="nowrap",t&&(e.name=t.name,e.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{t.hasAttribute(r)&&e.setAttribute(r,t.getAttribute(r))})),this.form.append(e),e.click(),e.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var i;return(i=this.form)!=null?i:null}renderInvalidMessage(){return u`<div id="invalid-message" class="text-error text-sm mt-2 text-left" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){var a;let t=this.host,e=!!xs.get(t),r=!!t.required;(a=this.form)!=null&&a.noValidate?(t.removeAttribute("data-required"),t.removeAttribute("data-optional"),t.removeAttribute("data-invalid"),t.removeAttribute("data-valid"),t.removeAttribute("data-user-invalid"),t.removeAttribute("data-user-valid"),t.removeAttribute("aria-invalid")):(t.toggleAttribute("data-required",r),t.toggleAttribute("data-optional",!r),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&e),t.toggleAttribute("data-user-valid",i&&e),t.setAttribute("aria-invalid",(!i).toString()))}updateValidity(){let i=this.host;this.setValidity(i==null?void 0:i.validity.valid)}emitInvalidEvent(i){i==null||i.preventDefault();let t=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault()}},Ye=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),ks=Object.freeze(et(O({},Ye),{valid:!1,valueMissing:!0})),Cs=Object.freeze(et(O({},Ye),{valid:!1,customError:!0}));var k=s=>s!=null?s:Y;var N=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{form:t=>{if(t.hasAttribute("form")){let e=t.getRootNode(),r=t.getAttribute("form");return e.getElementById(r)}return t.closest("form")}});this.hasSlotController=new _(this,"[default]","icon-left","icon-right");this.invalid=!1;this.title="";this.variant="primary";this.inverted=!1;this.size="lg";this.disabled=!1;this.loading=!1;this.type="button";this.name="";this.value="";this.href=""}get validity(){return this.isButton()?this.button.validity:Ye}get validationMessage(){return this.isButton()?this.button.validationMessage:""}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(t){if(this.disabled||this.loading){t.preventDefault(),t.stopPropagation();return}this.type==="submit"&&this.formControlController.submit(this),this.type==="reset"&&this.formControlController.reset(this)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}checkValidity(){return this.isButton()?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.isButton()?this.button.reportValidity():!0}setCustomValidity(t){this.isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}render(){let t=this.isLink(),e=t?X`a`:X`button`,r={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right"),"icon-only":this._iconsInDefaultSlot.length>0};return D`<${e} part="base" class="${c(`font-md leading-[calc(var(--tw-varspacing)-2px)] no-underline
72
72
  w-full h-varspacing whitespace-nowrap align-middle inline-flex items-stretch justify-center
73
73
  border transition-colors duration-200 ease-in-out rounded-default
74
74
  select-none cursor-[inherit]`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",this.loading&&"relative cursor-wait",this.disabled&&"cursor-not-allowed",r["icon-only"]&&"px-0 w-varspacing",{sm:"text-sm varspacing-8 px-4",md:"text-base varspacing-10 px-4",lg:"text-base varspacing-12 px-4"}[this.size],{primary:this.inverted?`text-primary bg-white border-transparent
@@ -92,21 +92,21 @@ var tr=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnProperty
92
92
  disabled:text-neutral-500`,cta:`text-white bg-accent-500 border-transparent
93
93
  hover:bg-accent-550
94
94
  active:bg-accent-700
95
- ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${k(t?void 0:this.disabled)}" type="${k(t?void 0:this.type)}" title="${this.title}" name="${k(t?void 0:this.name)}" value="${k(t?void 0:this.value)}" href="${k(t?this.href:void 0)}" target="${k(t?this.target:void 0)}" download="${k(t?this.download:void 0)}" rel="${k(t&&this.target?"noreferrer noopener":void 0)}" role="${k(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("flex flex-auto items-center pointer-events-none",r["icon-only"]&&"hidden",this.loading&&"invisible",r["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${c(r["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${c("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",r["icon-only"]&&"hidden",r["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?D`<sd-4-0-0-next-4-spinner class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-0-0-next-4-spinner>`:""}</${e}>`}};N.styles=[...m.styles,v`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-4-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-0-0-next-4-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-0-0-next-4-icon),sd-4-0-0-next-4-spinner{font-size:calc(var(--tw-varspacing)/2)}`],o([b("a, button")],N.prototype,"button",2),o([Ke({selector:"sd-4-0-0-next-4-icon"})],N.prototype,"_iconsInDefaultSlot",2),o([C()],N.prototype,"invalid",2),o([l()],N.prototype,"title",2),o([l({reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({reflect:!0})],N.prototype,"size",2),o([l({type:Boolean,reflect:!0})],N.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loading",2),o([l()],N.prototype,"type",2),o([l()],N.prototype,"name",2),o([l()],N.prototype,"value",2),o([l()],N.prototype,"href",2),o([l()],N.prototype,"target",2),o([l()],N.prototype,"download",2),o([l()],N.prototype,"form",2),o([l({attribute:"formaction"})],N.prototype,"formAction",2),o([l({attribute:"formenctype"})],N.prototype,"formEnctype",2),o([l({attribute:"formmethod"})],N.prototype,"formMethod",2),o([l({attribute:"formnovalidate",type:Boolean})],N.prototype,"formNoValidate",2),o([l({attribute:"formtarget"})],N.prototype,"formTarget",2),o([w("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),N=o([y("sd-4-0-0-next-4-button")],N);var Fi=class{constructor(i,t){this.timerId=0;this.activeInteractions=0;this.paused=!1;this.stopped=!0;this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())};this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())};i.addController(this),this.host=i,this.tickCallback=t}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(i){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},i)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};function Es(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}function*$s(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*Ts(s,i,t=1){let e=i===void 0?0:s;i!=null||(i=s);for(let r=e;t>0?r<i:i<r;r+=t)yield r}var Ls=Symbol(),Vi=s=>(i,t,e)=>{let r=e.value;e.value=function(...a){clearTimeout(this[Ls]),this[Ls]=window.setTimeout(()=>{r.apply(this,a)},s)}};var ci=class{constructor(i){this.pointers=new Set;this.dragging=!1;this.scrolling=!1;this.mouseDragging=!1;this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()};this.handlePointerDown=i=>{if(i.pointerType==="touch")return;this.pointers.add(i.pointerId),this.mouseDragging&&!this.dragging&&i.button===0&&(i.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))};this.handlePointerMove=i=>{let t=this.host.scrollContainer,e=!!i.movementX||!!i.movementY;!this.dragging&&e?(t.setPointerCapture(i.pointerId),this.handleDragStart()):t.hasPointerCapture(i.pointerId)&&this.handleDrag(i)};this.handlePointerUp=i=>{this.pointers.delete(i.pointerId),this.host.scrollContainer.releasePointerCapture(i.pointerId),this.pointers.size===0&&this.handleDragEnd()};this.handleTouchEnd=i=>{for(let t of i.changedTouches)this.pointers.delete(t.identifier)};this.handleTouchStart=i=>{for(let t of i.touches)this.pointers.add(t.identifier)};this.host=i,i.addController(this)}async hostConnected(){let i=this.host;await i.updateComplete;let t=i.scrollContainer;t.addEventListener("scroll",this.handleScroll,{passive:!0}),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointerup",this.handlePointerUp),t.addEventListener("pointercancel",this.handlePointerUp),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){let t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){let i=this.host;this.dragging=!0,i.scrollContainer.style.setProperty("scroll-snap-type","unset"),i.requestUpdate()}handleDrag(i){this.host.scrollContainer.scrollBy({left:-i.movementX,top:-i.movementY})}async handleDragEnd(){let i=this.host,t=i.scrollContainer;t.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;let e=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("scroll-snap-type");let a=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:a,top:n,behavior:ai()?"auto":"smooth"}),this.scrolling&&await U(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};o([Vi(100)],ci.prototype,"handleScrollEnd",1);var ne=class extends m{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return u`<slot></slot>`}};ne.styles=[...m.styles,v`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`],ne=o([y("sd-4-0-0-next-4-carousel-item")],ne);var j=class extends m{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Fi(this,()=>this.next());this.scrollController=new ci(this);this.slides=this.getElementsByTagName("sd-4-0-0-next-4-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new F(this);this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(a=>ne.isCarouselItem(a)&&!a.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let a=r.target;a.toggleAttribute("inert",!r.isIntersecting),a.classList.toggle("--in-view",r.isIntersecting),a.setAttribute("aria-hidden",r.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,a){return Math.ceil((t-r)/a)-Math.ceil((t-r-e)/a)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",a=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",d=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),d&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then(()=>{var p;let h=(p=this.shadowRoot)==null?void 0:p.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(a=>a.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let a=Number(r.target.getAttribute("data-clone"));this.goToSlide(a,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),(t=this.autoplayControls)==null||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","true"))}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,a)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",a+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop){let r=this.slidesPerPage,a=t.slice(-r),n=t.slice(0,r);a.reverse().forEach((d,h)=>{let p=d.cloneNode(!0);p.setAttribute("data-clone",String(t.length-h-1)),this.prepend(p)}),n.forEach((d,h)=>{let p=d.cloneNode(!0);p.setAttribute("data-clone",String(h)),this.append(p)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((a,n)=>{a.classList.toggle("--is-active",n===this.activeSlide)});let e=this.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});let r=this.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>r&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,a)=>{Math.abs(a-e)%e===0?r.style.removeProperty("scroll-snap-align"):r.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,r=!1;for(;!r&&e>0;)e-=1,r=Math.abs(e-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,t);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){let{slidesPerPage:r,loop:a,scrollContainer:n}=this,d=this.getSlides(),h=this.getSlides({excludeClones:!1}),p=(t+d.length)%d.length;this.activeSlide=p;let f=Es(t+(a?r:0),0,h.length+1),g=h[f],E=n.getBoundingClientRect(),x=g.getBoundingClientRect();n.scrollTo({left:x.left-E.left+n.scrollLeft,top:x.top-E.top+n.scrollTop,behavior:ai()?"auto":e}),this.activeSlide===d.length-1&&!this.loop?this.previousButton.focus({preventScroll:!0}):this.activeSlide===0&&!this.loop&&this.nextButton.focus({preventScroll:!0})}render(){let{scrollController:t,slidesPerMove:e}=this,r=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),a=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||a>1,d=this.loop||a<r,h=this.localize.dir()==="ltr";return u`<div part="base" class="${c("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${c(`carousel__slides mb-6
95
+ ${this.inverted?"disabled:bg-neutral-600":"disabled:bg-neutral-500"} disabled:text-white`}[this.variant])}" ?disabled="${k(t?void 0:this.disabled)}" type="${k(t?void 0:this.type)}" title="${this.title}" name="${k(t?void 0:this.name)}" value="${k(t?void 0:this.value)}" href="${k(t?this.href:void 0)}" target="${k(t?this.target:void 0)}" download="${k(t?this.download:void 0)}" rel="${k(t&&this.target?"noreferrer noopener":void 0)}" role="${k(t?void 0:"button")}" aria-disabled="${this.disabled?"true":"false"}" aria-labelledby="content" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton()?this.handleInvalid:null}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${c("flex flex-auto items-center pointer-events-none",r["icon-only"]&&"hidden",this.loading&&"invisible",r["icon-left"]&&{sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size])}"></slot><slot part="label" id="content" class="${c(r["icon-only"]?"flex flex-auto items-center pointer-events-none":"inline-block",this.loading&&"invisible")}"></slot><slot name="icon-right" part="icon-right" class="${c("flex flex-auto items-center pointer-events-none",this.loading&&"invisible",r["icon-only"]&&"hidden",r["icon-right"]&&{sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size])}"></slot>${this.loading?D`<sd-4-0-0-next-6-spinner class="${c("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-0-0-next-6-spinner>`:""}</${e}>`}};N.styles=[...m.styles,v`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-6-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-0-0-next-6-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-0-0-next-6-icon),sd-4-0-0-next-6-spinner{font-size:calc(var(--tw-varspacing)/2)}`],o([b("a, button")],N.prototype,"button",2),o([Ke({selector:"sd-4-0-0-next-6-icon"})],N.prototype,"_iconsInDefaultSlot",2),o([C()],N.prototype,"invalid",2),o([l()],N.prototype,"title",2),o([l({reflect:!0})],N.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],N.prototype,"inverted",2),o([l({reflect:!0})],N.prototype,"size",2),o([l({type:Boolean,reflect:!0})],N.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],N.prototype,"loading",2),o([l()],N.prototype,"type",2),o([l()],N.prototype,"name",2),o([l()],N.prototype,"value",2),o([l()],N.prototype,"href",2),o([l()],N.prototype,"target",2),o([l()],N.prototype,"download",2),o([l()],N.prototype,"form",2),o([l({attribute:"formaction"})],N.prototype,"formAction",2),o([l({attribute:"formenctype"})],N.prototype,"formEnctype",2),o([l({attribute:"formmethod"})],N.prototype,"formMethod",2),o([l({attribute:"formnovalidate",type:Boolean})],N.prototype,"formNoValidate",2),o([l({attribute:"formtarget"})],N.prototype,"formTarget",2),o([w("disabled",{waitUntilFirstUpdate:!0})],N.prototype,"handleDisabledChange",1),N=o([y("sd-4-0-0-next-6-button")],N);var Fi=class{constructor(i,t){this.timerId=0;this.activeInteractions=0;this.paused=!1;this.stopped=!0;this.pause=()=>{this.activeInteractions++||(this.paused=!0,this.host.requestUpdate())};this.resume=()=>{--this.activeInteractions||(this.paused=!1,this.host.requestUpdate())};i.addController(this),this.host=i,this.tickCallback=t}hostConnected(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}hostDisconnected(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}start(i){this.stop(),this.stopped=!1,this.timerId=window.setInterval(()=>{this.paused||this.tickCallback()},i)}stop(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}};function Es(s,i,t){let e=r=>Object.is(r,-0)?0:r;return s<i?e(i):s>t?e(t):e(s)}function*$s(s,i){if(s!==void 0){let t=0;for(let e of s)yield i(e,t++)}}function*Ts(s,i,t=1){let e=i===void 0?0:s;i!=null||(i=s);for(let r=e;t>0?r<i:i<r;r+=t)yield r}var Ls=Symbol(),Vi=s=>(i,t,e)=>{let r=e.value;e.value=function(...a){clearTimeout(this[Ls]),this[Ls]=window.setTimeout(()=>{r.apply(this,a)},s)}};var ci=class{constructor(i){this.pointers=new Set;this.dragging=!1;this.scrolling=!1;this.mouseDragging=!1;this.handleScroll=()=>{this.scrolling||(this.scrolling=!0,this.host.requestUpdate()),this.handleScrollEnd()};this.handlePointerDown=i=>{if(i.pointerType==="touch")return;this.pointers.add(i.pointerId),this.mouseDragging&&!this.dragging&&i.button===0&&(i.preventDefault(),this.host.scrollContainer.addEventListener("pointermove",this.handlePointerMove))};this.handlePointerMove=i=>{let t=this.host.scrollContainer,e=!!i.movementX||!!i.movementY;!this.dragging&&e?(t.setPointerCapture(i.pointerId),this.handleDragStart()):t.hasPointerCapture(i.pointerId)&&this.handleDrag(i)};this.handlePointerUp=i=>{this.pointers.delete(i.pointerId),this.host.scrollContainer.releasePointerCapture(i.pointerId),this.pointers.size===0&&this.handleDragEnd()};this.handleTouchEnd=i=>{for(let t of i.changedTouches)this.pointers.delete(t.identifier)};this.handleTouchStart=i=>{for(let t of i.touches)this.pointers.add(t.identifier)};this.host=i,i.addController(this)}async hostConnected(){let i=this.host;await i.updateComplete;let t=i.scrollContainer;t.addEventListener("scroll",this.handleScroll,{passive:!0}),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointerup",this.handlePointerUp),t.addEventListener("pointercancel",this.handlePointerUp),t.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),t.addEventListener("touchend",this.handleTouchEnd)}hostDisconnected(){let t=this.host.scrollContainer;t.removeEventListener("scroll",this.handleScroll),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointerup",this.handlePointerUp),t.removeEventListener("pointercancel",this.handlePointerUp),t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd)}handleScrollEnd(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}handleDragStart(){let i=this.host;this.dragging=!0,i.scrollContainer.style.setProperty("scroll-snap-type","unset"),i.requestUpdate()}handleDrag(i){this.host.scrollContainer.scrollBy({left:-i.movementX,top:-i.movementY})}async handleDragEnd(){let i=this.host,t=i.scrollContainer;t.removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1;let e=t.scrollLeft,r=t.scrollTop;t.style.removeProperty("scroll-snap-type");let a=t.scrollLeft,n=t.scrollTop;t.style.setProperty("scroll-snap-type","unset"),t.scrollTo({left:e,top:r,behavior:"auto"}),t.scrollTo({left:a,top:n,behavior:ai()?"auto":"smooth"}),this.scrolling&&await U(t,"scrollend"),t.style.removeProperty("scroll-snap-type"),i.requestUpdate()}};o([Vi(100)],ci.prototype,"handleScrollEnd",1);var ne=class extends m{static isCarouselItem(i){return i instanceof Element&&i.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return u`<slot></slot>`}};ne.styles=[...m.styles,v`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`],ne=o([y("sd-4-0-0-next-6-carousel-item")],ne);var j=class extends m{constructor(){super(...arguments);this.variant="number";this.inverted=!1;this.loop=!1;this.autoplay=!1;this.slidesPerPage=1;this.slidesPerMove=1;this.activeSlide=0;this.currentPage=1;this.pausedAutoplay=!1;this.autoplayController=new Fi(this,()=>this.next());this.scrollController=new ci(this);this.slides=this.getElementsByTagName("sd-4-0-0-next-6-carousel-item");this.intersectionObserverEntries=new Map;this.localize=new F(this);this.handleSlotChange=t=>{t.some(r=>[...r.addedNodes,...r.removedNodes].some(a=>ne.isCarouselItem(a)&&!a.hasAttribute("data-clone")))&&this.initializeSlides(),this.requestUpdate()};this.unblockAutoplay=(t,e)=>{t.detail&&e.blur()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));let t=new IntersectionObserver(e=>{e.forEach(r=>{this.intersectionObserverEntries.set(r.target,r);let a=r.target;a.toggleAttribute("inert",!r.isIntersecting),a.classList.toggle("--in-view",r.isIntersecting),a.setAttribute("aria-hidden",r.isIntersecting?"false":"true")})},{root:this,threshold:.6});this.intersectionObserver=t,t.takeRecords().forEach(e=>{this.intersectionObserverEntries.set(e.target,e)})}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}getPageCount(t,e,r){return Math.ceil((t-e)/r)+1>0?Math.ceil((t-e)/r)+1:1}getCurrentPage(t,e,r,a){return Math.ceil((t-r)/a)-Math.ceil((t-r-e)/a)+1}getSlides({excludeClones:t=!0}={}){return[...this.slides].filter(e=>!t||!e.hasAttribute("data-clone"))}handleKeyDown(t){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=t.target,r=this.localize.dir()==="rtl",a=e.closest('[part~="pagination-item"]')!==null,n=t.key==="ArrowDown"||!r&&t.key==="ArrowRight"||r&&t.key==="ArrowLeft",d=t.key==="ArrowUp"||!r&&t.key==="ArrowLeft"||r&&t.key==="ArrowRight";t.preventDefault(),d&&this.previous(),n&&this.next(),t.key==="Home"&&this.goToSlide(0),t.key==="End"&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then(()=>{var p;let h=(p=this.shadowRoot)==null?void 0:p.querySelector('[part~="pagination-item--active"]');h&&h.focus()})}}handleScrollEnd(){let t=this.getSlides(),r=[...this.intersectionObserverEntries.values()].find(a=>a.isIntersecting);if(this.loop&&(r!=null&&r.target.hasAttribute("data-clone"))){let a=Number(r.target.getAttribute("data-clone"));this.goToSlide(a,"auto");return}r&&(this.activeSlide=t.indexOf(r.target))}pause(){this.pausedAutoplay=!0}resume(){this.pausedAutoplay=!1}handlePausedAutoplay(){var t,e;this.pausedAutoplay?(this.autoplayController.stop(),(t=this.autoplayControls)==null||t.setAttribute("aria-pressed","false")):this.autoplay&&(this.autoplayController.start(3e3),(e=this.autoplayControls)==null||e.setAttribute("aria-pressed","true"))}initializeSlides(){let t=this.getSlides(),e=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((r,a)=>{e.unobserve(r),r.classList.remove("--in-view"),r.classList.remove("--is-active"),r.setAttribute("aria-label",this.localize.term("slideNum",a+1,t.length)),r.hasAttribute("data-clone")&&r.remove()}),this.loop){let r=this.slidesPerPage,a=t.slice(-r),n=t.slice(0,r);a.reverse().forEach((d,h)=>{let p=d.cloneNode(!0);p.setAttribute("data-clone",String(t.length-h-1)),this.prepend(p)}),n.forEach((d,h)=>{let p=d.cloneNode(!0);p.setAttribute("data-clone",String(h)),this.append(p)})}this.getSlides({excludeClones:!1}).forEach(r=>{e.observe(r)}),this.goToSlide(this.activeSlide,"auto")}handleSlideChange(){let t=this.getSlides();t.forEach((a,n)=>{a.classList.toggle("--is-active",n===this.activeSlide)});let e=this.getCurrentPage(t.length,this.activeSlide,this.slidesPerPage,this.slidesPerMove);this.currentPage!==e&&(this.currentPage=e),this.hasUpdated&&this.emit("sd-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}});let r=this.getPageCount(t.length,this.slidesPerPage,this.slidesPerMove);this.currentPage>r&&requestAnimationFrame(()=>{this.nextTillFirst()})}handleSlidesPerMoveChange(){let t=this.getSlides({excludeClones:!1}),e=this.slidesPerMove;t.forEach((r,a)=>{Math.abs(a-e)%e===0?r.style.removeProperty("scroll-snap-align"):r.style.setProperty("scroll-snap-align","none")})}handleAutoplayChange(){this.autoplayController.stop(),this.autoplay&&!this.pausedAutoplay&&this.autoplayController.start(3e3)}previous(t="smooth"){let e=this.activeSlide||this.activeSlide-this.slidesPerMove,r=!1;for(;!r&&e>0;)e-=1,r=Math.abs(e-this.slidesPerMove)%this.slidesPerMove===0;this.currentPage-1===0&&this.loop?this.goToSlide(this.activeSlide-this.slidesPerPage,t):this.goToSlide(e,t)}next(t="smooth"){this.currentPage+1<=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove)?this.goToSlide(this.activeSlide+this.slidesPerMove,t):this.loop&&this.nextTillFirst(t)}nextTillFirst(t="smooth"){for(;this.activeSlide!==0;)this.goToSlide(this.activeSlide+1,t);this.currentPage=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove)}goToSlide(t,e="smooth"){let{slidesPerPage:r,loop:a,scrollContainer:n}=this,d=this.getSlides(),h=this.getSlides({excludeClones:!1}),p=(t+d.length)%d.length;this.activeSlide=p;let f=Es(t+(a?r:0),0,h.length+1),g=h[f],E=n.getBoundingClientRect(),x=g.getBoundingClientRect();n.scrollTo({left:x.left-E.left+n.scrollLeft,top:x.top-E.top+n.scrollTop,behavior:ai()?"auto":e}),this.activeSlide===d.length-1&&!this.loop?this.previousButton.focus({preventScroll:!0}):this.activeSlide===0&&!this.loop&&this.nextButton.focus({preventScroll:!0})}render(){let{scrollController:t,slidesPerMove:e}=this,r=this.getPageCount(this.getSlides().length,this.slidesPerPage,this.slidesPerMove),a=this.getCurrentPage(this.getSlides().length,this.activeSlide,this.slidesPerPage,this.slidesPerMove),n=this.loop||a>1,d=this.loop||a<r,h=this.localize.dir()==="ltr";return u`<div part="base" class="${c("carousel h-full w-full")}"><div id="scroll-container" part="scroll-container" class="${c(`carousel__slides mb-6
96
96
  grid max-h-full w-full items-center justify-items-center overflow-auto`,this.inverted?"focus-visible:focus-outline-inverted":"focus-visible:focus-outline",`overscroll-x-contain grid-flow-col auto-rows-[100%]
97
- snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?p=>{this.previous(),this.unblockAutoplay(p,this.previousButton)}:null}"><slot name="previous-icon"><sd-4-0-0-next-4-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-4-0-0-next-4-icon></slot></button> ${this.variant==="dot"?u`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${$s(Ts(r),p=>{let f=p+1===a;return u`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",p+1,r)}" @click="${g=>{this.goToSlide(p*e),this.unblockAutoplay(g,this.paginationItems[p])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:u`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?p=>{this.next(),this.unblockAutoplay(p,this.nextButton)}:null}"><slot name="next-icon"><sd-4-0-0-next-4-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-4-0-0-next-4-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${p=>{this.pausedAutoplay=!this.pausedAutoplay,p.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-4-0-0-next-4-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-0-0-next-4-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-4-0-0-next-4-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-0-0-next-4-icon></slot></button></div></div>`}};j.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-4-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([b('[part~="autoplay-controls"]')],j.prototype,"autoplayControls",2),o([b('[part~="navigation-button--previous"]')],j.prototype,"previousButton",2),o([b('[part~="navigation-button--next"]')],j.prototype,"nextButton",2),o([hs('[part~="pagination-item"]')],j.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],j.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],j.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],j.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],j.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],j.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],j.prototype,"slidesPerMove",2),o([b("slot:not([name])")],j.prototype,"defaultSlot",2),o([b(".carousel__slides")],j.prototype,"scrollContainer",2),o([b(".carousel__pagination")],j.prototype,"paginationContainer",2),o([C()],j.prototype,"activeSlide",2),o([C()],j.prototype,"currentPage",2),o([C()],j.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],j.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],j.prototype,"initializeSlides",1),o([w("activeSlide")],j.prototype,"handleSlideChange",1),o([w("slidesPerMove")],j.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],j.prototype,"handleAutoplayChange",1),j=o([y("sd-4-0-0-next-4-carousel")],j);var Ot=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),p=typeof h.attribute=="string"?h.attribute:s;if(a===p){let g=h.converter||ve,x=(typeof g=="function"?g:(f=g==null?void 0:g.fromAttribute)!=null?f:ve.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:Gf}=es;var Ri=s=>s.strings===void 0;var zn={},zs=(s,i=zn)=>s._$AH=i;var le=oe(class extends we{constructor(s){if(super(s),s.type!==$t.PROPERTY&&s.type!==$t.ATTRIBUTE&&s.type!==$t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===mt||i===Y)return i;let t=s.element,e=s.name;if(s.type===$t.PROPERTY){if(i===t[e])return mt}else if(s.type===$t.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return mt}else if(s.type===$t.ATTRIBUTE&&t.getAttribute(e)===i+"")return mt;return zs(s),i}});var G=class extends m{constructor(){super(...arguments);this.formControlController=new dt(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(){let 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 u`<label part="base" class="${c("sd-4-0-0-next-4-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",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="${k(this.value)}" .indeterminate="${le(this.indeterminate)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" @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="${c(`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4
97
+ snap-x snap-mandatory overflow-y-hidden`)}" style="--slides-per-page:${this.slidesPerPage}" aria-busy="${t.scrolling?"true":"false"}" role="status" tabindex="0" @keydown="${this.handleKeyDown}" @scrollend="${this.handleScrollEnd}"><slot></slot></div><div part="controls" class="${c("w-full flex items-center justify-center relative")}"><div part="navigation" class="${c("carousel__navigation flex items-center justify-center")}"><button part="navigation-button navigation-button--previous" id="carousel__navigation-button--previous" ?disabled="${!n}" class="${c("!mr-6 !rounded-sm sd-interactive",!n&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${n?"false":"true"}" @click="${n?p=>{this.previous(),this.unblockAutoplay(p,this.previousButton)}:null}"><slot name="previous-icon"><sd-4-0-0-next-6-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-down":"chevron-up"}"></sd-4-0-0-next-6-icon></slot></button> ${this.variant==="dot"?u`<div part="pagination-dot" role="tablist" class="${c("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${$s(Ts(r),p=>{let f=p+1===a;return u`<button part="pagination-item ${f?"pagination-item--active":""}" class="${c("carousel__pagination-item","block cursor-pointer bg-none border-0 rounded-full",f?"bg-accent":"",this.inverted?"focus-within:focus-outline-inverted":"focus-within:focus-outline")}" role="tab" tabindex="0" aria-selected="${f?"true":"false"}" aria-label="${this.localize.term("goToSlide",p+1,r)}" @click="${g=>{this.goToSlide(p*e),this.unblockAutoplay(g,this.paginationItems[p])}}" @keydown="${this.handleKeyDown}"><span class="${c("h-4 w-4 block border hover:border-primary-500 rounded-full",this.inverted?"border-white hover:border-primary-500":"border-primary",f&&"bg-accent border-none",f?this.inverted?"hover:bg-accent-300":"hover:bg-accent-550":"")}"></span></button>`})}</div>`:u`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${c("w-5 text-center border-b-2 border-accent",this.inverted?"text-white":"text-black")}">${a}</span> <span part="pagination-divider" class="${c("scale-y-[1.5]","text-center",this.inverted?"text-white":"text-black")}">/</span> <span part="pagination-item" class="${c("w-5 text-center",this.inverted?"text-white":"text-black")}">${r}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!d}" class="${c("!ml-6 !rounded-sm sd-interactive ",!d&&"sd-interactive--disabled",this.inverted?"sd-interactive--inverted":"sd-interactive--reset")}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${d?"false":"true"}" @click="${d?p=>{this.next(),this.unblockAutoplay(p,this.nextButton)}:null}"><slot name="next-icon"><sd-4-0-0-next-6-icon class="${c("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${h?"chevron-up":"chevron-down"}"></sd-4-0-0-next-6-icon></slot></button></div><button class="${c("ml-6 !rounded-sm","!absolute !right-0 sd-interactive",this.inverted?"sd-interactive--inverted":"sd-interactive--reset",!this.autoplay&&"!hidden")}" part="autoplay-controls" aria-label="${this.localize.term("autoplay")}" aria-pressed="true" @click="${p=>{this.pausedAutoplay=!this.pausedAutoplay,p.detail&&this.autoplayControls.blur()}}"><slot name="autoplay-start" class="${c(this.pausedAutoplay?"":"hidden")}"><sd-4-0-0-next-6-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-0-0-next-6-icon></slot><slot name="autoplay-pause" class="${c(this.pausedAutoplay?"hidden":"")}"><sd-4-0-0-next-6-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-0-0-next-6-icon></slot></button></div></div>`}};j.styles=[...m.styles,v`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-6-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`],o([b('[part~="autoplay-controls"]')],j.prototype,"autoplayControls",2),o([b('[part~="navigation-button--previous"]')],j.prototype,"previousButton",2),o([b('[part~="navigation-button--next"]')],j.prototype,"nextButton",2),o([hs('[part~="pagination-item"]')],j.prototype,"paginationItems",2),o([l({type:String,reflect:!0})],j.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],j.prototype,"inverted",2),o([l({type:Boolean,reflect:!0})],j.prototype,"loop",2),o([l({type:Boolean,reflect:!0})],j.prototype,"autoplay",2),o([l({type:Number,attribute:"slides-per-page"})],j.prototype,"slidesPerPage",2),o([l({type:Number,attribute:"slides-per-move"})],j.prototype,"slidesPerMove",2),o([b("slot:not([name])")],j.prototype,"defaultSlot",2),o([b(".carousel__slides")],j.prototype,"scrollContainer",2),o([b(".carousel__pagination")],j.prototype,"paginationContainer",2),o([C()],j.prototype,"activeSlide",2),o([C()],j.prototype,"currentPage",2),o([C()],j.prototype,"pausedAutoplay",2),o([w("pausedAutoplay")],j.prototype,"handlePausedAutoplay",1),o([w("loop",{waitUntilFirstUpdate:!0}),w("slidesPerPage",{waitUntilFirstUpdate:!0})],j.prototype,"initializeSlides",1),o([w("activeSlide")],j.prototype,"handleSlideChange",1),o([w("slidesPerMove")],j.prototype,"handleSlidesPerMoveChange",1),o([w("autoplay")],j.prototype,"handleAutoplayChange",1),j=o([y("sd-4-0-0-next-6-carousel")],j);var Ot=(s="value")=>(i,t)=>{let e=i.constructor,r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(a,n,d){var f;let h=e.getPropertyOptions(s),p=typeof h.attribute=="string"?h.attribute:s;if(a===p){let g=h.converter||ve,x=(typeof g=="function"?g:(f=g==null?void 0:g.fromAttribute)!=null?f:ve.fromAttribute)(d,h.type);this[s]!==x&&(this[t]=x)}r.call(this,a,n,d)}};var{I:Gf}=es;var Ri=s=>s.strings===void 0;var zn={},zs=(s,i=zn)=>s._$AH=i;var le=oe(class extends we{constructor(s){if(super(s),s.type!==Tt.PROPERTY&&s.type!==Tt.ATTRIBUTE&&s.type!==Tt.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ri(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[i]){if(i===mt||i===Y)return i;let t=s.element,e=s.name;if(s.type===Tt.PROPERTY){if(i===t[e])return mt}else if(s.type===Tt.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(e))return mt}else if(s.type===Tt.ATTRIBUTE&&t.getAttribute(e)===i+"")return mt;return zs(s),i}});var G=class extends m{constructor(){super(...arguments);this.formControlController=new dt(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(){let 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 u`<label part="base" class="${c("sd-4-0-0-next-6-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",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="${k(this.value)}" .indeterminate="${le(this.indeterminate)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" @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="${c(`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4
98
98
  peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
99
- peer-focus-visible:outline-primary`,{sm:"mt-[2px]",md:"mt-[3px]",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?u`<sd-4-0-0-next-4-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-4-icon>`:""} ${!this.checked&&this.indeterminate?u`<sd-4-0-0-next-4-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-0-0-next-4-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};G.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([b('input[type="checkbox"]')],G.prototype,"input",2),o([b("#invalid-message")],G.prototype,"invalidMessage",2),o([l()],G.prototype,"title",2),o([l()],G.prototype,"name",2),o([l()],G.prototype,"value",2),o([l({reflect:!0})],G.prototype,"size",2),o([l({type:Boolean,reflect:!0})],G.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],G.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],G.prototype,"indeterminate",2),o([Ot("checked")],G.prototype,"defaultChecked",2),o([l({reflect:!0})],G.prototype,"form",2),o([l({type:Boolean,reflect:!0})],G.prototype,"required",2),o([C()],G.prototype,"showInvalidStyle",2),o([w("disabled",{waitUntilFirstUpdate:!0})],G.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],G.prototype,"handleStateChange",1),G=o([y("sd-4-0-0-next-4-checkbox")],G);var Mt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"label");this.size="lg";this.orientation="vertical";this.label=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-4-0-0-next-4-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-4-0-0-next-4-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-4-0-0-next-4-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=u`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return u`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${r}</div></fieldset>`}};Mt.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-4-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-4-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-4-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-4-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-4-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-4-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],Mt.prototype,"size",2),o([l({reflect:!0})],Mt.prototype,"orientation",2),o([l()],Mt.prototype,"label",2),o([w("size",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleInvalid",1),Mt=o([y("sd-4-0-0-next-4-checkbox-group")],Mt);var As=s=>s;var Cr=s=>Array.from(s.assignedElements({flatten:!0})),An=s=>s.tagName.toLocaleLowerCase()==="sd-4-0-0-next-4-option"?s:Array.from(s.querySelectorAll(":scope > sd-4-0-0-next-4-option")),On=s=>s.tagName.toLocaleLowerCase()==="sd-4-0-0-next-4-optgroup",Os=s=>s.map(An),Ms=s=>s.filter(On),Bi=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function _s(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Er=new Set;function Mn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function _e(s){if(Er.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Mn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function He(s){Er.delete(s),Er.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Bt(s,i,t="vertical",e="smooth"){let r=_s(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,p=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<p?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var Gt=Math.min,bt=Math.max,pi=Math.round,ui=Math.floor,Ut=s=>({x:s,y:s}),_n={left:"right",right:"left",bottom:"top",top:"bottom"},Hn={start:"end",end:"start"};function Ni(s,i,t){return bt(s,Gt(i,t))}function Se(s,i){return typeof s=="function"?s(i):s}function de(s){return s.split("-")[0]}function Pe(s){return s.split("-")[1]}function $r(s){return s==="x"?"y":"x"}function qi(s){return s==="y"?"height":"width"}function Ce(s){return["top","bottom"].includes(de(s))?"y":"x"}function Ki(s){return $r(Ce(s))}function Hs(s,i,t){t===void 0&&(t=!1);let e=Pe(s),r=Ki(s),a=qi(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=hi(n)),[n,hi(n)]}function Ss(s){let i=hi(s);return[Ui(s),i,Ui(i)]}function Ui(s){return s.replace(/start|end/g,i=>Hn[i])}function Sn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Ps(s,i,t,e){let r=Pe(s),a=Sn(de(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ui)))),a}function hi(s){return s.replace(/left|right|bottom|top/g,i=>_n[i])}function Pn(s){return O({top:0,right:0,bottom:0,left:0},s)}function Tr(s){return typeof s!="number"?Pn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Is(s,i,t){let{reference:e,floating:r}=s,a=Ce(i),n=Ki(i),d=qi(n),h=de(i),p=a==="y",f=e.x+e.width/2-r.width/2,g=e.y+e.height/2-r.height/2,E=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:g};break;case"left":x={x:e.x-r.width,y:g};break;default:x={x:e.x,y:e.y}}switch(Pe(i)){case"start":x[n]-=E*(t&&p?-1:1);break;case"end":x[n]+=E*(t&&p?-1:1);break}return x}var Ds=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),p=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:g}=Is(p,e,h),E=e,x={},$=0;for(let L=0;L<d.length;L++){let{name:P,fn:M}=d[L],{x:V,y:q,data:Q,reset:J}=await M({x:f,y:g,initialPlacement:e,placement:E,strategy:r,middlewareData:x,rects:p,platform:n,elements:{reference:s,floating:i}});f=V!=null?V:f,g=q!=null?q:g,x=et(O({},x),{[P]:O(O({},x[P]),Q)}),J&&$<=50&&($++,typeof J=="object"&&(J.placement&&(E=J.placement),J.rects&&(p=J.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):J.rects),{x:f,y:g}=Is(p,E,h)),L=-1)}return{x:f,y:g,placement:E,strategy:r,middlewareData:x}};async function ji(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:E=!1,padding:x=0}=Se(i,s),$=Tr(x),P=d[E?g==="floating"?"reference":"floating":g],M=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(P)))==null||t?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:p,rootBoundary:f,strategy:h})),V=g==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,q=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),Q=await(a.isElement==null?void 0:a.isElement(q))?await(a.getScale==null?void 0:a.getScale(q))||{x:1,y:1}:{x:1,y:1},J=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:V,offsetParent:q,strategy:h}):V);return{top:(M.top-J.top+$.top)/Q.y,bottom:(J.bottom-M.bottom+$.bottom)/Q.y,left:(M.left-J.left+$.left)/Q.x,right:(J.right-M.right+$.right)/Q.x}}var Fs=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:p,padding:f=0}=Se(s,i)||{};if(p==null)return{};let g=Tr(f),E={x:t,y:e},x=Ki(r),$=qi(x),L=await n.getDimensions(p),P=x==="y",M=P?"top":"left",V=P?"bottom":"right",q=P?"clientHeight":"clientWidth",Q=a.reference[$]+a.reference[x]-E[x]-a.floating[$],J=E[x]-a.reference[x],At=await(n.getOffsetParent==null?void 0:n.getOffsetParent(p)),Dt=At?At[q]:0;(!Dt||!await(n.isElement==null?void 0:n.isElement(At)))&&(Dt=d.floating[q]||a.floating[$]);let ee=Q/2-J/2,Xt=Dt/2-L[$]/2-1,Ft=Gt(g[M],Xt),ue=Gt(g[V],Xt),Zt=Ft,me=Dt-L[$]-ue,Et=Dt/2-L[$]/2+ee,Vt=Ni(Zt,Et,me),Be=!h.arrow&&Pe(r)!=null&&Et!==Vt&&a.reference[$]/2-(Et<Zt?Ft:ue)-L[$]/2<0,ie=Be?Et<Zt?Et-Zt:Et-me:0;return{[x]:E[x]+ie,data:O({[x]:Vt,centerOffset:Et-Vt-ie},Be&&{alignmentOffset:ie}),reset:Be}}});var Vs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:p}=i,Et=Se(s,i),{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:L=!0}=Et,P=wi(Et,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let M=de(r),V=Ce(d),q=de(d)===d,Q=await(h.isRTL==null?void 0:h.isRTL(p.floating)),J=E||(q||!L?[hi(d)]:Ss(d)),At=$!=="none";!E&&At&&J.push(...Ps(d,L,$,Q));let Dt=[d,...J],ee=await ji(i,P),Xt=[],Ft=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Xt.push(ee[M]),g){let Vt=Hs(r,n,Q);Xt.push(ee[Vt[0]],ee[Vt[1]])}if(Ft=[...Ft,{placement:r,overflows:Xt}],!Xt.every(Vt=>Vt<=0)){var ue,Zt;let Vt=(((ue=a.flip)==null?void 0:ue.index)||0)+1,Be=Dt[Vt];if(Be)return{data:{index:Vt,overflows:Ft},reset:{placement:Be}};let ie=(Zt=Ft.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,fe)=>Ue.overflows[1]-fe.overflows[1])[0])==null?void 0:Zt.placement;if(!ie)switch(x){case"bestFit":{var me;let Ue=(me=Ft.filter(fe=>{if(At){let ge=Ce(fe.placement);return ge===V||ge==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(ge=>ge>0).reduce((ge,ho)=>ge+ho,0)]).sort((fe,ge)=>fe[1]-ge[1])[0])==null?void 0:me[0];Ue&&(ie=Ue);break}case"initialPlacement":ie=d;break}if(r!==ie)return{reset:{placement:ie}}}return{}}}};async function In(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=de(t),d=Pe(t),h=Ce(t)==="y",p=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,g=Se(i,s),{mainAxis:E,crossAxis:x,alignmentAxis:$}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:E*p}:{x:E*p,y:x*f}}var Rs=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await In(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:et(O({},h),{placement:n})}}}},Bs=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,P=Se(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:M=>{let{x:V,y:q}=M;return{x:V,y:q}}}}=P,h=wi(P,["mainAxis","crossAxis","limiter"]),p={x:t,y:e},f=await ji(i,h),g=Ce(de(r)),E=$r(g),x=p[E],$=p[g];if(a){let M=E==="y"?"top":"left",V=E==="y"?"bottom":"right",q=x+f[M],Q=x-f[V];x=Ni(q,x,Q)}if(n){let M=g==="y"?"top":"left",V=g==="y"?"bottom":"right",q=$+f[M],Q=$-f[V];$=Ni(q,$,Q)}let L=d.fn(et(O({},i),{[E]:x,[g]:$}));return et(O({},L),{data:{x:L.x-t,y:L.y-e,enabled:{[E]:a,[g]:n}}})}}};var Us=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Ft=Se(s,i),{apply:h=()=>{}}=Ft,p=wi(Ft,["apply"]),f=await ji(i,p),g=de(r),E=Pe(r),x=Ce(r)==="y",{width:$,height:L}=a.floating,P,M;g==="top"||g==="bottom"?(P=g,M=E===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(M=g,P=E==="end"?"top":"bottom");let V=L-f.top-f.bottom,q=$-f.left-f.right,Q=Gt(L-f[P],V),J=Gt($-f[M],q),At=!i.middlewareData.shift,Dt=Q,ee=J;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ee=q),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Dt=V),At&&!E){let ue=bt(f.left,0),Zt=bt(f.right,0),me=bt(f.top,0),Et=bt(f.bottom,0);x?ee=$-2*(ue!==0||Zt!==0?ue+Zt:bt(f.left,f.right)):Dt=L-2*(me!==0||Et!==0?me+Et:bt(f.top,f.bottom))}await h(et(O({},i),{availableWidth:ee,availableHeight:Dt}));let Xt=await n.getDimensions(d.floating);return $!==Xt.width||L!==Xt.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window!="undefined"}function De(s){return qs(s)?(s.nodeName||"").toLowerCase():"#document"}function wt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function Nt(s){var i;return(i=(qs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function qs(s){return Yi()?s instanceof Node||s instanceof wt(s).Node:!1}function _t(s){return Yi()?s instanceof Element||s instanceof wt(s).Element:!1}function qt(s){return Yi()?s instanceof HTMLElement||s instanceof wt(s).HTMLElement:!1}function Ns(s){return!Yi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof wt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=Ht(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ks(s){return["table","td","th"].includes(De(s))}function mi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Wi(s){let i=Xi(),t=_t(s)?Ht(s):s;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function js(s){let i=ce(s);for(;qt(i)&&!Fe(i);){if(Wi(i))return i;if(mi(i))return null;i=ce(i)}return null}function Xi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(De(s))}function Ht(s){return wt(s).getComputedStyle(s)}function fi(s){return _t(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ce(s){if(De(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ns(s)&&s.host||Nt(s);return Ns(i)?i.host:i}function Ys(s){let i=ce(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:qt(i)&&Xe(i)?i:Ys(i)}function We(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Ys(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=wt(r);if(a){let d=Zi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?We(d):[])}return i.concat(r,We(r,[],t))}function Zi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Zs(s){let i=Ht(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=qt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=pi(t)!==a||pi(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function zr(s){return _t(s)?s:s.contextElement}function Ze(s){let i=zr(s);if(!qt(i))return Ut(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=Zs(i),n=(a?pi(t.width):t.width)/e,d=(a?pi(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var Dn=Ut(0);function Qs(s){let i=wt(s);return!Xi()||!i.visualViewport?Dn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Fn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==wt(s)?!1:i}function Ve(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=zr(s),n=Ut(1);i&&(e?_t(e)&&(n=Ze(e)):n=Ze(s));let d=Fn(a,t,e)?Qs(a):Ut(0),h=(r.left+d.x)/n.x,p=(r.top+d.y)/n.y,f=r.width/n.x,g=r.height/n.y;if(a){let E=wt(a),x=e&&_t(e)?wt(e):e,$=E,L=Zi($);for(;L&&e&&x!==$;){let P=Ze(L),M=L.getBoundingClientRect(),V=Ht(L),q=M.left+(L.clientLeft+parseFloat(V.paddingLeft))*P.x,Q=M.top+(L.clientTop+parseFloat(V.paddingTop))*P.y;h*=P.x,p*=P.y,f*=P.x,g*=P.y,h+=q,p+=Q,$=wt(L),L=Zi($)}}return Ie({width:f,height:g,x:h,y:p})}function Ar(s,i){let t=fi(s).scrollLeft;return i?i.left+t:Ve(Nt(s)).left+t}function Js(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Ar(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Vn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=Nt(e),d=i?mi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},p=Ut(1),f=Ut(0),g=qt(e);if((g||!g&&!a)&&((De(e)!=="body"||Xe(n))&&(h=fi(e)),qt(e))){let x=Ve(e);p=Ze(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let E=n&&!g&&!a?Js(n,h,!0):Ut(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-h.scrollLeft*p.x+f.x+E.x,y:t.y*p.y-h.scrollTop*p.y+f.y+E.y}}function Rn(s){return Array.from(s.getClientRects())}function Bn(s){let i=Nt(s),t=fi(s),e=s.ownerDocument.body,r=bt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=bt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Ar(s),d=-t.scrollTop;return Ht(e).direction==="rtl"&&(n+=bt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Un(s,i){let t=wt(s),e=Nt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let p=Xi();(!p||p&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Nn(s,i){let t=Ve(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=qt(s)?Ze(s):Ut(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,p=e*a.y;return{width:n,height:d,x:h,y:p}}function Ws(s,i,t){let e;if(i==="viewport")e=Un(s,t);else if(i==="document")e=Bn(Nt(s));else if(_t(i))e=Nn(i,t);else{let r=Qs(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function Gs(s,i){let t=ce(s);return t===i||!_t(t)||Fe(t)?!1:Ht(t).position==="fixed"||Gs(t,i)}function qn(s,i){let t=i.get(s);if(t)return t;let e=We(s,[],!1).filter(d=>_t(d)&&De(d)!=="body"),r=null,a=Ht(s).position==="fixed",n=a?ce(s):s;for(;_t(n)&&!Fe(n);){let d=Ht(n),h=Wi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&Gs(s,n))?e=e.filter(f=>f!==n):r=d,n=ce(n)}return i.set(s,e),e}function Kn(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?mi(i)?[]:qn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((p,f)=>{let g=Ws(i,f,r);return p.top=bt(g.top,p.top),p.right=Gt(g.right,p.right),p.bottom=Gt(g.bottom,p.bottom),p.left=bt(g.left,p.left),p},Ws(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function jn(s){let{width:i,height:t}=Zs(s);return{width:i,height:t}}function Yn(s,i,t){let e=qt(i),r=Nt(i),a=t==="fixed",n=Ve(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Ut(0);if(e||!e&&!a)if((De(i)!=="body"||Xe(r))&&(d=fi(i)),e){let E=Ve(i,!0,a,i);h.x=E.x+i.clientLeft,h.y=E.y+i.clientTop}else r&&(h.x=Ar(r));let p=r&&!e&&!a?Js(r,d):Ut(0),f=n.left+d.scrollLeft-h.x-p.x,g=n.top+d.scrollTop-h.y-p.y;return{x:f,y:g,width:n.width,height:n.height}}function Lr(s){return Ht(s).position==="static"}function Xs(s,i){if(!qt(s)||Ht(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return Nt(s)===t&&(t=t.ownerDocument.body),t}function to(s,i){let t=wt(s);if(mi(s))return t;if(!qt(s)){let r=ce(s);for(;r&&!Fe(r);){if(_t(r)&&!Lr(r))return r;r=ce(r)}return t}let e=Xs(s,i);for(;e&&Ks(e)&&Lr(e);)e=Xs(e,i);return e&&Fe(e)&&Lr(e)&&!Wi(e)?t:e||js(s)||t}var Wn=async function(s){let i=this.getOffsetParent||to,t=this.getDimensions,e=await t(s.floating);return{reference:Yn(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Xn(s){return Ht(s).direction==="rtl"}var Zn={convertOffsetParentRelativeRectToViewportRelativeRect:Vn,getDocumentElement:Nt,getClippingRect:Kn,getOffsetParent:to,getElementRects:Wn,getClientRects:Rn,getDimensions:jn,getScale:Ze,isElement:_t,isRTL:Xn};function Qn(s,i){let t=null,e,r=Nt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let{left:p,top:f,width:g,height:E}=s.getBoundingClientRect();if(d||i(),!g||!E)return;let x=ui(f),$=ui(r.clientWidth-(p+g)),L=ui(r.clientHeight-(f+E)),P=ui(p),V={rootMargin:-x+"px "+-$+"px "+-L+"px "+-P+"px",threshold:bt(0,Gt(1,h))||1},q=!0;function Q(J){let At=J[0].intersectionRatio;if(At!==h){if(!q)return n();At?n(!1,At):e=setTimeout(()=>{n(!1,1e-7)},1e3)}q=!1}try{t=new IntersectionObserver(Q,et(O({},V),{root:r.ownerDocument}))}catch(J){t=new IntersectionObserver(Q,V)}t.observe(s)}return n(!0),a}function eo(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,p=zr(s),f=r||a?[...p?We(p):[],...We(i)]:[];f.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),a&&M.addEventListener("resize",t)});let g=p&&d?Qn(p,t):null,E=-1,x=null;n&&(x=new ResizeObserver(M=>{let[V]=M;V&&V.target===p&&x&&(x.unobserve(i),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var q;(q=x)==null||q.observe(i)})),t()}),p&&!h&&x.observe(p),x.observe(i));let $,L=h?Ve(s):null;h&&P();function P(){let M=Ve(s);L&&(M.x!==L.x||M.y!==L.y||M.width!==L.width||M.height!==L.height)&&t(),L=M,$=requestAnimationFrame(P)}return t(),()=>{var M;f.forEach(V=>{r&&V.removeEventListener("scroll",t),a&&V.removeEventListener("resize",t)}),g==null||g(),(M=x)==null||M.disconnect(),x=null,h&&cancelAnimationFrame($)}}var io=Rs;var ro=Bs,so=Vs,Or=Us;var oo=Fs;var ao=(s,i,t)=>{let e=new Map,r=O({platform:Zn},t),a=et(O({},r.platform),{_c:e});return Ds(s,i,et(O({},r),{platform:a}))};var I=class extends m{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(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let 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=eo(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;let t=[io({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Or({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(so({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ro({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Or({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}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(oo({element:this.arrowEl,padding:this.arrowPadding})),ao(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let p=a.arrow.x,f=a.arrow.y,g="",E="",x="",$="";if(this.arrowPlacement==="start"){let L=typeof p=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",E=d?L:"",$=d?"":L}else if(this.arrowPlacement==="end"){let L=typeof p=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";E=d?"":L,$=d?L:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof p=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof p=="number"?`${p}px`:"",g=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:g,right:E,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return u`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?u`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`: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-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([b('[part="popup"]')],I.prototype,"popup",2),o([b('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-4-0-0-next-4-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!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(){let t=this.isLink(),e=t?X`a`:X`button`;return D`<${e} part="base" type="${k(t?void 0:"button")}" href="${k(t?this.href:void 0)}" rel="${k(t&&this.target?"noreferrer noopener":void 0)}" target="${k(t?this.target:void 0)}" download="${k(t?this.download:void 0)}" ?disabled="${k(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${k(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("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?D`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-4-0-0-next-4-icon library="system" name="close" label="remove"></sd-4-0-0-next-4-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([b("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-4-0-0-next-4-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-4-0-0-next-4-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder=this.localize.term("comboboxDefaultPlaceholder");this.disabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=As;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Bi(t.value),a=Bi(t.getTextLabel()),n=Bi(e);return r.includes(n)||a.includes(n)};this.getTag=t=>u`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
99
+ peer-focus-visible:outline-primary`,{sm:"mt-[2px]",md:"mt-[3px]",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?u`<sd-4-0-0-next-6-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-6-icon>`:""} ${!this.checked&&this.indeterminate?u`<sd-4-0-0-next-6-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-0-0-next-6-icon>`:""} </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};G.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label:after{content:" *"}`],o([b('input[type="checkbox"]')],G.prototype,"input",2),o([b("#invalid-message")],G.prototype,"invalidMessage",2),o([l()],G.prototype,"title",2),o([l()],G.prototype,"name",2),o([l()],G.prototype,"value",2),o([l({reflect:!0})],G.prototype,"size",2),o([l({type:Boolean,reflect:!0})],G.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],G.prototype,"checked",2),o([l({type:Boolean,reflect:!0})],G.prototype,"indeterminate",2),o([Ot("checked")],G.prototype,"defaultChecked",2),o([l({reflect:!0})],G.prototype,"form",2),o([l({type:Boolean,reflect:!0})],G.prototype,"required",2),o([C()],G.prototype,"showInvalidStyle",2),o([w("disabled",{waitUntilFirstUpdate:!0})],G.prototype,"handleDisabledChange",1),o([w(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],G.prototype,"handleStateChange",1),G=o([y("sd-4-0-0-next-6-checkbox")],G);var Mt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"label");this.size="lg";this.orientation="vertical";this.label=""}getAllCheckboxes(){return[...this.querySelectorAll("sd-4-0-0-next-6-checkbox")]}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async e=>{await e.updateComplete,e.size=this.size}))}syncCheckboxes(){customElements.get("sd-4-0-0-next-6-checkbox")?this.syncCheckboxElements():customElements.whenDefined("sd-4-0-0-next-6-checkbox").then(()=>this.syncCheckboxes())}handleSizeChange(){this.syncCheckboxes()}handleInvalid(){this.syncCheckboxes()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,r=u`<slot @slotchange="${this.syncCheckboxes}"></slot>`;return u`<fieldset part="form-control" class="${c("border-0 p-0 m-0",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="group" aria-labelledby="label"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c("p-0 font-bold leading-normal text-black",e?"flex":"hidden")}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c({vertical:"flex flex-col",horizontal:"flex flex-row"}[this.orientation])}">${r}</div></fieldset>`}};Mt.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-6-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-6-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-6-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-6-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-6-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-6-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`],o([l({reflect:!0})],Mt.prototype,"size",2),o([l({reflect:!0})],Mt.prototype,"orientation",2),o([l()],Mt.prototype,"label",2),o([w("size",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleSizeChange",1),o([w("invalid",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleInvalid",1),Mt=o([y("sd-4-0-0-next-6-checkbox-group")],Mt);var As=s=>s;var Cr=s=>Array.from(s.assignedElements({flatten:!0})),An=s=>s.tagName.toLocaleLowerCase()==="sd-4-0-0-next-6-option"?s:Array.from(s.querySelectorAll(":scope > sd-4-0-0-next-6-option")),On=s=>s.tagName.toLocaleLowerCase()==="sd-4-0-0-next-6-optgroup",Os=s=>s.map(An),Ms=s=>s.filter(On),Bi=s=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();function _s(s,i){return{top:Math.round(s.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(s.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Er=new Set;function Mn(){let s=document.documentElement.clientWidth;return Math.abs(window.innerWidth-s)}function _e(s){if(Er.add(s),!document.body.classList.contains("sd-scroll-lock")){let i=Mn();document.body.classList.add("sd-scroll-lock"),document.body.style.setProperty("--sd-scroll-lock-size",`${i}px`)}}function Se(s){Er.delete(s),Er.size===0&&(document.body.classList.remove("sd-scroll-lock"),document.body.style.removeProperty("--sd-scrollbar-width"))}function Bt(s,i,t="vertical",e="smooth"){let r=_s(s,i),a=r.top+i.scrollTop,n=r.left+i.scrollLeft,d=i.scrollLeft,h=i.scrollLeft+i.offsetWidth,p=i.scrollTop,f=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(n<d?i.scrollTo({left:n,behavior:e}):n+s.clientWidth>h&&i.scrollTo({left:n-i.offsetWidth+s.clientWidth,behavior:e})),(t==="vertical"||t==="both")&&(a<p?i.scrollTo({top:a,behavior:e}):a+s.clientHeight>f&&i.scrollTo({top:a-i.offsetHeight+s.clientHeight,behavior:e}))}var Gt=Math.min,bt=Math.max,pi=Math.round,ui=Math.floor,Ut=s=>({x:s,y:s}),_n={left:"right",right:"left",bottom:"top",top:"bottom"},Sn={start:"end",end:"start"};function Ni(s,i,t){return bt(s,Gt(i,t))}function He(s,i){return typeof s=="function"?s(i):s}function de(s){return s.split("-")[0]}function Pe(s){return s.split("-")[1]}function $r(s){return s==="x"?"y":"x"}function qi(s){return s==="y"?"height":"width"}function Ce(s){return["top","bottom"].includes(de(s))?"y":"x"}function Ki(s){return $r(Ce(s))}function Ss(s,i,t){t===void 0&&(t=!1);let e=Pe(s),r=Ki(s),a=qi(r),n=r==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(n=hi(n)),[n,hi(n)]}function Hs(s){let i=hi(s);return[Ui(s),i,Ui(i)]}function Ui(s){return s.replace(/start|end/g,i=>Sn[i])}function Hn(s,i,t){let e=["left","right"],r=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(s){case"top":case"bottom":return t?i?r:e:i?e:r;case"left":case"right":return i?a:n;default:return[]}}function Ps(s,i,t,e){let r=Pe(s),a=Hn(de(s),t==="start",e);return r&&(a=a.map(n=>n+"-"+r),i&&(a=a.concat(a.map(Ui)))),a}function hi(s){return s.replace(/left|right|bottom|top/g,i=>_n[i])}function Pn(s){return O({top:0,right:0,bottom:0,left:0},s)}function Tr(s){return typeof s!="number"?Pn(s):{top:s,right:s,bottom:s,left:s}}function Ie(s){let{x:i,y:t,width:e,height:r}=s;return{width:e,height:r,top:t,left:i,right:i+e,bottom:t+r,x:i,y:t}}function Is(s,i,t){let{reference:e,floating:r}=s,a=Ce(i),n=Ki(i),d=qi(n),h=de(i),p=a==="y",f=e.x+e.width/2-r.width/2,g=e.y+e.height/2-r.height/2,E=e[d]/2-r[d]/2,x;switch(h){case"top":x={x:f,y:e.y-r.height};break;case"bottom":x={x:f,y:e.y+e.height};break;case"right":x={x:e.x+e.width,y:g};break;case"left":x={x:e.x-r.width,y:g};break;default:x={x:e.x,y:e.y}}switch(Pe(i)){case"start":x[n]-=E*(t&&p?-1:1);break;case"end":x[n]+=E*(t&&p?-1:1);break}return x}var Ds=async(s,i,t)=>{let{placement:e="bottom",strategy:r="absolute",middleware:a=[],platform:n}=t,d=a.filter(Boolean),h=await(n.isRTL==null?void 0:n.isRTL(i)),p=await n.getElementRects({reference:s,floating:i,strategy:r}),{x:f,y:g}=Is(p,e,h),E=e,x={},$=0;for(let L=0;L<d.length;L++){let{name:P,fn:M}=d[L],{x:V,y:q,data:Q,reset:J}=await M({x:f,y:g,initialPlacement:e,placement:E,strategy:r,middlewareData:x,rects:p,platform:n,elements:{reference:s,floating:i}});f=V!=null?V:f,g=q!=null?q:g,x=et(O({},x),{[P]:O(O({},x[P]),Q)}),J&&$<=50&&($++,typeof J=="object"&&(J.placement&&(E=J.placement),J.rects&&(p=J.rects===!0?await n.getElementRects({reference:s,floating:i,strategy:r}):J.rects),{x:f,y:g}=Is(p,E,h)),L=-1)}return{x:f,y:g,placement:E,strategy:r,middlewareData:x}};async function ji(s,i){var t;i===void 0&&(i={});let{x:e,y:r,platform:a,rects:n,elements:d,strategy:h}=s,{boundary:p="clippingAncestors",rootBoundary:f="viewport",elementContext:g="floating",altBoundary:E=!1,padding:x=0}=He(i,s),$=Tr(x),P=d[E?g==="floating"?"reference":"floating":g],M=Ie(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(P)))==null||t?P:P.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(d.floating)),boundary:p,rootBoundary:f,strategy:h})),V=g==="floating"?{x:e,y:r,width:n.floating.width,height:n.floating.height}:n.reference,q=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d.floating)),Q=await(a.isElement==null?void 0:a.isElement(q))?await(a.getScale==null?void 0:a.getScale(q))||{x:1,y:1}:{x:1,y:1},J=Ie(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:V,offsetParent:q,strategy:h}):V);return{top:(M.top-J.top+$.top)/Q.y,bottom:(J.bottom-M.bottom+$.bottom)/Q.y,left:(M.left-J.left+$.left)/Q.x,right:(J.right-M.right+$.right)/Q.x}}var Fs=s=>({name:"arrow",options:s,async fn(i){let{x:t,y:e,placement:r,rects:a,platform:n,elements:d,middlewareData:h}=i,{element:p,padding:f=0}=He(s,i)||{};if(p==null)return{};let g=Tr(f),E={x:t,y:e},x=Ki(r),$=qi(x),L=await n.getDimensions(p),P=x==="y",M=P?"top":"left",V=P?"bottom":"right",q=P?"clientHeight":"clientWidth",Q=a.reference[$]+a.reference[x]-E[x]-a.floating[$],J=E[x]-a.reference[x],At=await(n.getOffsetParent==null?void 0:n.getOffsetParent(p)),Dt=At?At[q]:0;(!Dt||!await(n.isElement==null?void 0:n.isElement(At)))&&(Dt=d.floating[q]||a.floating[$]);let ee=Q/2-J/2,Xt=Dt/2-L[$]/2-1,Ft=Gt(g[M],Xt),ue=Gt(g[V],Xt),Zt=Ft,me=Dt-L[$]-ue,$t=Dt/2-L[$]/2+ee,Vt=Ni(Zt,$t,me),Be=!h.arrow&&Pe(r)!=null&&$t!==Vt&&a.reference[$]/2-($t<Zt?Ft:ue)-L[$]/2<0,ie=Be?$t<Zt?$t-Zt:$t-me:0;return{[x]:E[x]+ie,data:O({[x]:Vt,centerOffset:$t-Vt-ie},Be&&{alignmentOffset:ie}),reset:Be}}});var Vs=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(i){var t,e;let{placement:r,middlewareData:a,rects:n,initialPlacement:d,platform:h,elements:p}=i,$t=He(s,i),{mainAxis:f=!0,crossAxis:g=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:$="none",flipAlignment:L=!0}=$t,P=wi($t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let M=de(r),V=Ce(d),q=de(d)===d,Q=await(h.isRTL==null?void 0:h.isRTL(p.floating)),J=E||(q||!L?[hi(d)]:Hs(d)),At=$!=="none";!E&&At&&J.push(...Ps(d,L,$,Q));let Dt=[d,...J],ee=await ji(i,P),Xt=[],Ft=((e=a.flip)==null?void 0:e.overflows)||[];if(f&&Xt.push(ee[M]),g){let Vt=Ss(r,n,Q);Xt.push(ee[Vt[0]],ee[Vt[1]])}if(Ft=[...Ft,{placement:r,overflows:Xt}],!Xt.every(Vt=>Vt<=0)){var ue,Zt;let Vt=(((ue=a.flip)==null?void 0:ue.index)||0)+1,Be=Dt[Vt];if(Be)return{data:{index:Vt,overflows:Ft},reset:{placement:Be}};let ie=(Zt=Ft.filter(Ue=>Ue.overflows[0]<=0).sort((Ue,fe)=>Ue.overflows[1]-fe.overflows[1])[0])==null?void 0:Zt.placement;if(!ie)switch(x){case"bestFit":{var me;let Ue=(me=Ft.filter(fe=>{if(At){let ge=Ce(fe.placement);return ge===V||ge==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(ge=>ge>0).reduce((ge,ho)=>ge+ho,0)]).sort((fe,ge)=>fe[1]-ge[1])[0])==null?void 0:me[0];Ue&&(ie=Ue);break}case"initialPlacement":ie=d;break}if(r!==ie)return{reset:{placement:ie}}}return{}}}};async function In(s,i){let{placement:t,platform:e,elements:r}=s,a=await(e.isRTL==null?void 0:e.isRTL(r.floating)),n=de(t),d=Pe(t),h=Ce(t)==="y",p=["left","top"].includes(n)?-1:1,f=a&&h?-1:1,g=He(i,s),{mainAxis:E,crossAxis:x,alignmentAxis:$}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return d&&typeof $=="number"&&(x=d==="end"?$*-1:$),h?{x:x*f,y:E*p}:{x:E*p,y:x*f}}var Rs=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(i){var t,e;let{x:r,y:a,placement:n,middlewareData:d}=i,h=await In(i,s);return n===((t=d.offset)==null?void 0:t.placement)&&(e=d.arrow)!=null&&e.alignmentOffset?{}:{x:r+h.x,y:a+h.y,data:et(O({},h),{placement:n})}}}},Bs=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(i){let{x:t,y:e,placement:r}=i,P=He(s,i),{mainAxis:a=!0,crossAxis:n=!1,limiter:d={fn:M=>{let{x:V,y:q}=M;return{x:V,y:q}}}}=P,h=wi(P,["mainAxis","crossAxis","limiter"]),p={x:t,y:e},f=await ji(i,h),g=Ce(de(r)),E=$r(g),x=p[E],$=p[g];if(a){let M=E==="y"?"top":"left",V=E==="y"?"bottom":"right",q=x+f[M],Q=x-f[V];x=Ni(q,x,Q)}if(n){let M=g==="y"?"top":"left",V=g==="y"?"bottom":"right",q=$+f[M],Q=$-f[V];$=Ni(q,$,Q)}let L=d.fn(et(O({},i),{[E]:x,[g]:$}));return et(O({},L),{data:{x:L.x-t,y:L.y-e,enabled:{[E]:a,[g]:n}}})}}};var Us=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(i){var t,e;let{placement:r,rects:a,platform:n,elements:d}=i,Ft=He(s,i),{apply:h=()=>{}}=Ft,p=wi(Ft,["apply"]),f=await ji(i,p),g=de(r),E=Pe(r),x=Ce(r)==="y",{width:$,height:L}=a.floating,P,M;g==="top"||g==="bottom"?(P=g,M=E===(await(n.isRTL==null?void 0:n.isRTL(d.floating))?"start":"end")?"left":"right"):(M=g,P=E==="end"?"top":"bottom");let V=L-f.top-f.bottom,q=$-f.left-f.right,Q=Gt(L-f[P],V),J=Gt($-f[M],q),At=!i.middlewareData.shift,Dt=Q,ee=J;if((t=i.middlewareData.shift)!=null&&t.enabled.x&&(ee=q),(e=i.middlewareData.shift)!=null&&e.enabled.y&&(Dt=V),At&&!E){let ue=bt(f.left,0),Zt=bt(f.right,0),me=bt(f.top,0),$t=bt(f.bottom,0);x?ee=$-2*(ue!==0||Zt!==0?ue+Zt:bt(f.left,f.right)):Dt=L-2*(me!==0||$t!==0?me+$t:bt(f.top,f.bottom))}await h(et(O({},i),{availableWidth:ee,availableHeight:Dt}));let Xt=await n.getDimensions(d.floating);return $!==Xt.width||L!==Xt.height?{reset:{rects:!0}}:{}}}};function Yi(){return typeof window!="undefined"}function De(s){return qs(s)?(s.nodeName||"").toLowerCase():"#document"}function wt(s){var i;return(s==null||(i=s.ownerDocument)==null?void 0:i.defaultView)||window}function Nt(s){var i;return(i=(qs(s)?s.ownerDocument:s.document)||window.document)==null?void 0:i.documentElement}function qs(s){return Yi()?s instanceof Node||s instanceof wt(s).Node:!1}function _t(s){return Yi()?s instanceof Element||s instanceof wt(s).Element:!1}function qt(s){return Yi()?s instanceof HTMLElement||s instanceof wt(s).HTMLElement:!1}function Ns(s){return!Yi()||typeof ShadowRoot=="undefined"?!1:s instanceof ShadowRoot||s instanceof wt(s).ShadowRoot}function Xe(s){let{overflow:i,overflowX:t,overflowY:e,display:r}=St(s);return/auto|scroll|overlay|hidden|clip/.test(i+e+t)&&!["inline","contents"].includes(r)}function Ks(s){return["table","td","th"].includes(De(s))}function mi(s){return[":popover-open",":modal"].some(i=>{try{return s.matches(i)}catch(t){return!1}})}function Wi(s){let i=Xi(),t=_t(s)?St(s):s;return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!i&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!i&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(e=>(t.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(t.contain||"").includes(e))}function js(s){let i=ce(s);for(;qt(i)&&!Fe(i);){if(Wi(i))return i;if(mi(i))return null;i=ce(i)}return null}function Xi(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Fe(s){return["html","body","#document"].includes(De(s))}function St(s){return wt(s).getComputedStyle(s)}function fi(s){return _t(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function ce(s){if(De(s)==="html")return s;let i=s.assignedSlot||s.parentNode||Ns(s)&&s.host||Nt(s);return Ns(i)?i.host:i}function Ys(s){let i=ce(s);return Fe(i)?s.ownerDocument?s.ownerDocument.body:s.body:qt(i)&&Xe(i)?i:Ys(i)}function We(s,i,t){var e;i===void 0&&(i=[]),t===void 0&&(t=!0);let r=Ys(s),a=r===((e=s.ownerDocument)==null?void 0:e.body),n=wt(r);if(a){let d=Zi(n);return i.concat(n,n.visualViewport||[],Xe(r)?r:[],d&&t?We(d):[])}return i.concat(r,We(r,[],t))}function Zi(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Zs(s){let i=St(s),t=parseFloat(i.width)||0,e=parseFloat(i.height)||0,r=qt(s),a=r?s.offsetWidth:t,n=r?s.offsetHeight:e,d=pi(t)!==a||pi(e)!==n;return d&&(t=a,e=n),{width:t,height:e,$:d}}function zr(s){return _t(s)?s:s.contextElement}function Ze(s){let i=zr(s);if(!qt(i))return Ut(1);let t=i.getBoundingClientRect(),{width:e,height:r,$:a}=Zs(i),n=(a?pi(t.width):t.width)/e,d=(a?pi(t.height):t.height)/r;return(!n||!Number.isFinite(n))&&(n=1),(!d||!Number.isFinite(d))&&(d=1),{x:n,y:d}}var Dn=Ut(0);function Qs(s){let i=wt(s);return!Xi()||!i.visualViewport?Dn:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function Fn(s,i,t){return i===void 0&&(i=!1),!t||i&&t!==wt(s)?!1:i}function Ve(s,i,t,e){i===void 0&&(i=!1),t===void 0&&(t=!1);let r=s.getBoundingClientRect(),a=zr(s),n=Ut(1);i&&(e?_t(e)&&(n=Ze(e)):n=Ze(s));let d=Fn(a,t,e)?Qs(a):Ut(0),h=(r.left+d.x)/n.x,p=(r.top+d.y)/n.y,f=r.width/n.x,g=r.height/n.y;if(a){let E=wt(a),x=e&&_t(e)?wt(e):e,$=E,L=Zi($);for(;L&&e&&x!==$;){let P=Ze(L),M=L.getBoundingClientRect(),V=St(L),q=M.left+(L.clientLeft+parseFloat(V.paddingLeft))*P.x,Q=M.top+(L.clientTop+parseFloat(V.paddingTop))*P.y;h*=P.x,p*=P.y,f*=P.x,g*=P.y,h+=q,p+=Q,$=wt(L),L=Zi($)}}return Ie({width:f,height:g,x:h,y:p})}function Ar(s,i){let t=fi(s).scrollLeft;return i?i.left+t:Ve(Nt(s)).left+t}function Js(s,i,t){t===void 0&&(t=!1);let e=s.getBoundingClientRect(),r=e.left+i.scrollLeft-(t?0:Ar(s,e)),a=e.top+i.scrollTop;return{x:r,y:a}}function Vn(s){let{elements:i,rect:t,offsetParent:e,strategy:r}=s,a=r==="fixed",n=Nt(e),d=i?mi(i.floating):!1;if(e===n||d&&a)return t;let h={scrollLeft:0,scrollTop:0},p=Ut(1),f=Ut(0),g=qt(e);if((g||!g&&!a)&&((De(e)!=="body"||Xe(n))&&(h=fi(e)),qt(e))){let x=Ve(e);p=Ze(e),f.x=x.x+e.clientLeft,f.y=x.y+e.clientTop}let E=n&&!g&&!a?Js(n,h,!0):Ut(0);return{width:t.width*p.x,height:t.height*p.y,x:t.x*p.x-h.scrollLeft*p.x+f.x+E.x,y:t.y*p.y-h.scrollTop*p.y+f.y+E.y}}function Rn(s){return Array.from(s.getClientRects())}function Bn(s){let i=Nt(s),t=fi(s),e=s.ownerDocument.body,r=bt(i.scrollWidth,i.clientWidth,e.scrollWidth,e.clientWidth),a=bt(i.scrollHeight,i.clientHeight,e.scrollHeight,e.clientHeight),n=-t.scrollLeft+Ar(s),d=-t.scrollTop;return St(e).direction==="rtl"&&(n+=bt(i.clientWidth,e.clientWidth)-r),{width:r,height:a,x:n,y:d}}function Un(s,i){let t=wt(s),e=Nt(s),r=t.visualViewport,a=e.clientWidth,n=e.clientHeight,d=0,h=0;if(r){a=r.width,n=r.height;let p=Xi();(!p||p&&i==="fixed")&&(d=r.offsetLeft,h=r.offsetTop)}return{width:a,height:n,x:d,y:h}}function Nn(s,i){let t=Ve(s,!0,i==="fixed"),e=t.top+s.clientTop,r=t.left+s.clientLeft,a=qt(s)?Ze(s):Ut(1),n=s.clientWidth*a.x,d=s.clientHeight*a.y,h=r*a.x,p=e*a.y;return{width:n,height:d,x:h,y:p}}function Ws(s,i,t){let e;if(i==="viewport")e=Un(s,t);else if(i==="document")e=Bn(Nt(s));else if(_t(i))e=Nn(i,t);else{let r=Qs(s);e={x:i.x-r.x,y:i.y-r.y,width:i.width,height:i.height}}return Ie(e)}function Gs(s,i){let t=ce(s);return t===i||!_t(t)||Fe(t)?!1:St(t).position==="fixed"||Gs(t,i)}function qn(s,i){let t=i.get(s);if(t)return t;let e=We(s,[],!1).filter(d=>_t(d)&&De(d)!=="body"),r=null,a=St(s).position==="fixed",n=a?ce(s):s;for(;_t(n)&&!Fe(n);){let d=St(n),h=Wi(n);!h&&d.position==="fixed"&&(r=null),(a?!h&&!r:!h&&d.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Xe(n)&&!h&&Gs(s,n))?e=e.filter(f=>f!==n):r=d,n=ce(n)}return i.set(s,e),e}function Kn(s){let{element:i,boundary:t,rootBoundary:e,strategy:r}=s,n=[...t==="clippingAncestors"?mi(i)?[]:qn(i,this._c):[].concat(t),e],d=n[0],h=n.reduce((p,f)=>{let g=Ws(i,f,r);return p.top=bt(g.top,p.top),p.right=Gt(g.right,p.right),p.bottom=Gt(g.bottom,p.bottom),p.left=bt(g.left,p.left),p},Ws(i,d,r));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function jn(s){let{width:i,height:t}=Zs(s);return{width:i,height:t}}function Yn(s,i,t){let e=qt(i),r=Nt(i),a=t==="fixed",n=Ve(s,!0,a,i),d={scrollLeft:0,scrollTop:0},h=Ut(0);if(e||!e&&!a)if((De(i)!=="body"||Xe(r))&&(d=fi(i)),e){let E=Ve(i,!0,a,i);h.x=E.x+i.clientLeft,h.y=E.y+i.clientTop}else r&&(h.x=Ar(r));let p=r&&!e&&!a?Js(r,d):Ut(0),f=n.left+d.scrollLeft-h.x-p.x,g=n.top+d.scrollTop-h.y-p.y;return{x:f,y:g,width:n.width,height:n.height}}function Lr(s){return St(s).position==="static"}function Xs(s,i){if(!qt(s)||St(s).position==="fixed")return null;if(i)return i(s);let t=s.offsetParent;return Nt(s)===t&&(t=t.ownerDocument.body),t}function to(s,i){let t=wt(s);if(mi(s))return t;if(!qt(s)){let r=ce(s);for(;r&&!Fe(r);){if(_t(r)&&!Lr(r))return r;r=ce(r)}return t}let e=Xs(s,i);for(;e&&Ks(e)&&Lr(e);)e=Xs(e,i);return e&&Fe(e)&&Lr(e)&&!Wi(e)?t:e||js(s)||t}var Wn=async function(s){let i=this.getOffsetParent||to,t=this.getDimensions,e=await t(s.floating);return{reference:Yn(s.reference,await i(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function Xn(s){return St(s).direction==="rtl"}var Zn={convertOffsetParentRelativeRectToViewportRelativeRect:Vn,getDocumentElement:Nt,getClippingRect:Kn,getOffsetParent:to,getElementRects:Wn,getClientRects:Rn,getDimensions:jn,getScale:Ze,isElement:_t,isRTL:Xn};function Qn(s,i){let t=null,e,r=Nt(s);function a(){var d;clearTimeout(e),(d=t)==null||d.disconnect(),t=null}function n(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),a();let{left:p,top:f,width:g,height:E}=s.getBoundingClientRect();if(d||i(),!g||!E)return;let x=ui(f),$=ui(r.clientWidth-(p+g)),L=ui(r.clientHeight-(f+E)),P=ui(p),V={rootMargin:-x+"px "+-$+"px "+-L+"px "+-P+"px",threshold:bt(0,Gt(1,h))||1},q=!0;function Q(J){let At=J[0].intersectionRatio;if(At!==h){if(!q)return n();At?n(!1,At):e=setTimeout(()=>{n(!1,1e-7)},1e3)}q=!1}try{t=new IntersectionObserver(Q,et(O({},V),{root:r.ownerDocument}))}catch(J){t=new IntersectionObserver(Q,V)}t.observe(s)}return n(!0),a}function eo(s,i,t,e){e===void 0&&(e={});let{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=e,p=zr(s),f=r||a?[...p?We(p):[],...We(i)]:[];f.forEach(M=>{r&&M.addEventListener("scroll",t,{passive:!0}),a&&M.addEventListener("resize",t)});let g=p&&d?Qn(p,t):null,E=-1,x=null;n&&(x=new ResizeObserver(M=>{let[V]=M;V&&V.target===p&&x&&(x.unobserve(i),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var q;(q=x)==null||q.observe(i)})),t()}),p&&!h&&x.observe(p),x.observe(i));let $,L=h?Ve(s):null;h&&P();function P(){let M=Ve(s);L&&(M.x!==L.x||M.y!==L.y||M.width!==L.width||M.height!==L.height)&&t(),L=M,$=requestAnimationFrame(P)}return t(),()=>{var M;f.forEach(V=>{r&&V.removeEventListener("scroll",t),a&&V.removeEventListener("resize",t)}),g==null||g(),(M=x)==null||M.disconnect(),x=null,h&&cancelAnimationFrame($)}}var io=Rs;var ro=Bs,so=Vs,Or=Us;var oo=Fs;var ao=(s,i,t)=>{let e=new Map,r=O({platform:Zn},t),a=et(O({},r.platform),{_c:e});return Ds(s,i,et(O({},r),{platform:a}))};var I=class extends m{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(e=>this.handleCurrentPlacementChange(e));let t={attributes:!0};this.mutationObserver.observe(this,t)}handleCurrentPlacementChange(t){return t.forEach(e=>{if(e.attributeName==="data-current-placement"){let r=this.getAttribute("data-current-placement");this.emit("sd-current-placement",{detail:r})}})}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let 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=eo(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;let t=[io({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Or({apply:({rects:e})=>{let r=this.sync==="width"||this.sync==="both",a=this.sync==="height"||this.sync==="both";this.popup.style.width=r?`${e.reference.width}px`:"",this.popup.style.height=a?`${e.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(so({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ro({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Or({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:e,availableHeight:r})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${r}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${e}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(oo({element:this.arrowEl,padding:this.arrowPadding})),ao(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy}).then(({x:e,y:r,middlewareData:a,placement:n})=>{let d=getComputedStyle(this).direction==="rtl",h={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]];if(this.setAttribute("data-current-placement",n),Object.assign(this.popup.style,{left:`${e}px`,top:`${r}px`}),this.arrow){let p=a.arrow.x,f=a.arrow.y,g="",E="",x="",$="";if(this.arrowPlacement==="start"){let L=typeof p=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";g=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",E=d?L:"",$=d?"":L}else if(this.arrowPlacement==="end"){let L=typeof p=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";E=d?"":L,$=d?L:"",x=typeof f=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else this.arrowPlacement==="center"?($=typeof p=="number"?"calc(50% - var(--arrow-size-diagonal))":"",g=typeof f=="number"?"calc(50% - var(--arrow-size-diagonal))":""):($=typeof p=="number"?`${p}px`:"",g=typeof f=="number"?`${f}px`:"");Object.assign(this.arrowEl.style,{top:g,right:E,bottom:x,left:$,[h]:"calc(var(--arrow-size-diagonal) * -1)"})}}),this.emit("sd-reposition")}render(){return u`<slot name="anchor" @slotchange="${this.handleAnchorChange}"></slot><div part="popup" class="${c("isolate",this.strategy!=="fixed"?"absolute":"fixed",!this.active&&"hidden")}"><slot></slot>${this.arrow?u`<div part="arrow" class="absolute rotate-45 -z-10" role="presentation"></div>`:""}</div>`}};I.styles=[...m.styles,v`: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-height:var(--auto-size-available-height,none);max-width:var(--auto-size-available-width,none)}[part=arrow]{background:var(--arrow-color);height:calc(var(--arrow-size-diagonal)*2);width:calc(var(--arrow-size-diagonal)*2)}`],o([b('[part="popup"]')],I.prototype,"popup",2),o([b('[part="arrow"]')],I.prototype,"arrowEl",2),o([l()],I.prototype,"anchor",2),o([l({type:Boolean,reflect:!0})],I.prototype,"active",2),o([l({reflect:!0})],I.prototype,"placement",2),o([l({reflect:!0})],I.prototype,"strategy",2),o([l({type:Number})],I.prototype,"distance",2),o([l({type:Number})],I.prototype,"skidding",2),o([l({type:Boolean})],I.prototype,"arrow",2),o([l({attribute:"arrow-placement"})],I.prototype,"arrowPlacement",2),o([l({attribute:"arrow-padding",type:Number})],I.prototype,"arrowPadding",2),o([l({type:Boolean})],I.prototype,"flip",2),o([l({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(e=>e.trim()).filter(e=>e!==""),toAttribute:t=>t.join(" ")}})],I.prototype,"flipFallbackPlacements",2),o([l({attribute:"flip-fallback-strategy"})],I.prototype,"flipFallbackStrategy",2),o([l({type:Object})],I.prototype,"flipBoundary",2),o([l({attribute:"flip-padding",type:Number})],I.prototype,"flipPadding",2),o([l({type:Boolean})],I.prototype,"shift",2),o([l({type:Object})],I.prototype,"shiftBoundary",2),o([l({attribute:"shift-padding",type:Number})],I.prototype,"shiftPadding",2),o([l({attribute:"auto-size"})],I.prototype,"autoSize",2),o([l()],I.prototype,"sync",2),o([l({type:Object})],I.prototype,"autoSizeBoundary",2),o([l({attribute:"auto-size-padding",type:Number})],I.prototype,"autoSizePadding",2),I=o([y("sd-4-0-0-next-6-popup")],I);var st=class extends m{constructor(){super(...arguments);this.size="lg";this.selected=!1;this.toggleable=!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(){let t=this.isLink(),e=t?X`a`:X`button`;return D`<${e} part="base" type="${k(t?void 0:"button")}" href="${k(t?this.href:void 0)}" rel="${k(t&&this.target?"noreferrer noopener":void 0)}" target="${k(t?this.target:void 0)}" download="${k(t?this.download:void 0)}" ?disabled="${k(t?void 0:this.disabled)}" aria-disabled="${this.disabled?"true":"false"}" aria-pressed="${k(this.toggleable?this.selected:void 0)}" tabindex="${this.disabled?"-1":"0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${c("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?D`<slot part="removable-indicator" name="removable-indicator" @click="${this.handleRemoveClick}" class="${c({lg:"text-base",sm:"text-[12px]"}[this.size])}"><sd-4-0-0-next-6-icon library="system" name="close" label="remove"></sd-4-0-0-next-6-icon></slot>`:""}</${e}>`}};st.styles=[...m.styles,v`:host{display:inline-block}`],o([b("a, button")],st.prototype,"tag",2),o([l({reflect:!0})],st.prototype,"size",2),o([l({type:Boolean,reflect:!0})],st.prototype,"selected",2),o([l({type:Boolean,reflect:!0})],st.prototype,"toggleable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"removable",2),o([l({type:Boolean,reflect:!0})],st.prototype,"disabled",2),o([l()],st.prototype,"href",2),o([l()],st.prototype,"target",2),o([l()],st.prototype,"download",2),st=o([y("sd-4-0-0-next-6-tag")],st);var T=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-4-0-0-next-6-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new F(this);this.hasHover=!1;this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder=this.localize.term("comboboxDefaultPlaceholder");this.disabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.currentPlacement=this.placement;this.getOption=As;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let r=Bi(t.value),a=Bi(t.getTextLabel()),n=Bi(e);return r.includes(n)||a.includes(n)};this.getTag=t=>u`<sd-4-0-0-next-6-tag ?disabled="${this.disabled}" part="tag" exportparts="
100
100
  base:tag__base,
101
101
  content:tag__content,
102
102
  removable-indicator:tag__removable-indicator,
103
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-0-0-next-4-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{if(t.target.closest(".combobox__clear")===null){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let a=this.getCurrentOption(),n=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!n){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||a!=null&&a.disabled)return;if(a&&!a.disabled){let d=this.value;this.multiple?(this.toggleOptionSelection(a),this.lastOption=a,this.setOrderedSelectedOptions(a),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(a),this.setSelectedOptions(a)),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==d&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity(),this.applySizeToOptions()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let r=this.displayInput.value,a=this.getOption(e,r);return u`${typeof a=="string"?si(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-4-0-0-next-4-optgroup"?(Array.from(e.children).forEach(r=>{r.tagName.toLowerCase()==="sd-4-0-0-next-4-option"&&t(r)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return u`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof r=="string"?si(r):r}</div>`}return[u``]}):[u`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
103
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-0-0-next-6-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{if(t.target.closest(".combobox__clear")===null){if(t.key==="Escape"&&(this.open?(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})):this.displayInputValue=""),t.key==="Backspace"&&this.multiple&&this.displayInput.value===""){this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0}));return}if(t.key==="Enter"){let a=this.getCurrentOption(),n=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;if(!this.open&&!n){setTimeout(()=>{t.defaultPrevented||this.formControlController.submit()});return}if(!this.open||a!=null&&a.disabled)return;if(a&&!a.disabled){let d=this.value;this.multiple?(this.toggleOptionSelection(a),this.lastOption=a,this.setOrderedSelectedOptions(a),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(a),this.setSelectedOptions(a)),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==d&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")})}this.displayInput.focus({preventScroll:!0}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0}));return}["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.open||this.show(),this.selectNextOption(t.key==="ArrowDown")),["Home","End"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key==="Home"?this.displayInput.setSelectionRange(0,0):t.key==="End"&&this.displayInput.setSelectionRange(this.displayInput.value.length,this.displayInput.value.length))}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){if(!this.multiple){let t=this.findOptionByValue(this.getSlottedOptions(),this.value);this.selectedTextLabel=(t==null?void 0:t.getTextLabel())||""}this.formControlController.updateValidity(),this.applySizeToOptions()}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}get options(){let t=e=>{let r=this.displayInput.value,a=this.getOption(e,r);return u`${typeof a=="string"?si(a):a}`};return this.filteredOptions.map(e=>e.tagName.toLowerCase()==="sd-4-0-0-next-6-optgroup"?(Array.from(e.children).forEach(r=>{r.tagName.toLowerCase()==="sd-4-0-0-next-6-option"&&t(r)}),e):t(e))}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return u`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof r=="string"?si(r):r}</div>`}return[u``]}):[u`<sd-4-0-0-next-6-tag ?disabled="${this.disabled}" part="tag" exportparts="
104
104
  base:tag__base,
105
105
  content:tag__content,
106
106
  removable-indicator:tag__removable-indicator,
107
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-4-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){let r=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||r)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-4-0-0-next-4-option"),a=this.value;r&&!r.disabled&&(this.multiple?(this.toggleOptionSelection(r),this.lastOption=r,this.setOrderedSelectedOptions(r),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(r),this.setSelectedOptions(r)),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let r=this.getCurrentOption(),a=e.indexOf(r),n=Math.max(0,a);if(t){let d=a+1;n=d>e.length-1?0:d}else{let d=a-1;n=d<0?e.length-1:d}this.setCurrentOption(e[n]),Bt(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-4-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(r=>{r.current=!1,r.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(r=>e.includes(r.value)):t.find(r=>r.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(r=>{r.selected=this.compareOptions(r,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(r=>this.compareOptions(r,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(r=>this.compareOptions(r,e))?this.selectedOptions=this.selectedOptions.filter(r=>!this.compareOptions(r,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,r,a;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((r=this.selectedOptions[0])==null?void 0:r.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(r=>this.filter(r,t)||t==="").map(r=>{var g,E,x;let a=r.cloneNode(!0);if(a.current=a.value===((g=this.lastOption)==null?void 0:g.value),a.selected=r.selected,!(((E=r.parentElement)==null?void 0:E.tagName.toLowerCase())==="sd-4-0-0-next-4-optgroup"))return a;let d=r.parentElement,h=(x=d.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),p=e.find($=>$.id===d.id);if(p){p==null||p.appendChild(a),h&&(p==null||p.appendChild(h));return}let f=d.cloneNode();return f.appendChild(a),h&&f.appendChild(h),e.push(f),f}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-4-0-0-next-4-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&!this.disabled){this.emit("sd-show"),this.addOpenListeners(),await K(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:r,options:a}=B(this,"combobox.show",{dir:this.localize.dir()});await R(this.popup.popup,r,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"combobox.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,Promise.race([U(this,"sd-after-show"),U(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,U(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return Os(Cr(this.defaultSlot)).flat()}getSlottedOptGroups(){return Ms(Cr(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-4-0-0-next-4-option")){customElements.whenDefined("sd-4-0-0-next-4-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();t.forEach((r,a)=>{this.multiple&&(r.checkbox=!0),r.id=r.id||`sd-4-0-0-next-4-combobox-option-${a}`}),e.forEach((r,a)=>{r.id=r.id||`sd-4-0-0-next-4-combobox-optgroup-${a}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery(""),this.hasFocus&&this.value.length>0&&!this.open&&await this.show()}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),r=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,n=this.helpText?!0:!!r,d=this.clearable&&!this.disabled&&this.value.length>0,h=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",p=this.disabled?"cursor-not-allowed":"cursor-pointer",f=this.disabled?"text-neutral-500":"text-primary",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],x={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c("relative text-left",p,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${a&&"inline-block mb-2"}" aria-hidden="${!a}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{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"}[h],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-0-0-next-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
107
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-6-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){let r=t.composedPath().some(n=>n instanceof HTMLSlotElement&&n.name==="removable-indicator");if(this.disabled||r)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}handleComboboxKeyDown(t){t.key!=="Tab"&&this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-4-0-0-next-6-option"),a=this.value;r&&!r.disabled&&(this.multiple?(this.toggleOptionSelection(r),this.lastOption=r,this.setOrderedSelectedOptions(r),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(r),this.setSelectedOptions(r)),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let r=this.getCurrentOption(),a=e.indexOf(r),n=Math.max(0,a);if(t){let d=a+1;n=d>e.length-1?0:d}else{let d=a-1;n=d<0?e.length-1:d}this.setCurrentOption(e[n]),Bt(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-6-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t){let e=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),e.forEach(r=>{r.current=!1,r.setAttribute("aria-selected","false")}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id))}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(n=>n.value&&t.value?n.value===t.value:n.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(r=>e.includes(r.value)):t.find(r=>r.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(r=>{r.selected=this.compareOptions(r,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(r=>this.compareOptions(r,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(r=>this.compareOptions(r,e))?this.selectedOptions=this.selectedOptions.filter(r=>!this.compareOptions(r,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,r,a;let t=this.selectedOptions.some(n=>n?this.isOptionSelected(n):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(n=>n.value||n.getTextLabel())]:this.value=this.selectedOptions.map(n=>(n==null?void 0:n.value)||(n==null?void 0:n.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((r=this.selectedOptions[0])==null?void 0:r.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(r=>this.filter(r,t)||t==="").map(r=>{var g,E,x;let a=r.cloneNode(!0);if(a.current=a.value===((g=this.lastOption)==null?void 0:g.value),a.selected=r.selected,!(((E=r.parentElement)==null?void 0:E.tagName.toLowerCase())==="sd-4-0-0-next-6-optgroup"))return a;let d=r.parentElement,h=(x=d.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),p=e.find($=>$.id===d.id);if(p){p==null||p.appendChild(a),h&&(p==null||p.appendChild(h));return}let f=d.cloneNode();return f.appendChild(a),h&&f.appendChild(h),e.push(f),f}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-4-0-0-next-6-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),this.disabled&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&!this.disabled){this.emit("sd-show"),this.addOpenListeners(),await K(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:r,options:a}=B(this,"combobox.show",{dir:this.localize.dir()});await R(this.popup.popup,r,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"combobox.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,Promise.race([U(this,"sd-after-show"),U(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,U(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return Os(Cr(this.defaultSlot)).flat()}getSlottedOptGroups(){return Ms(Cr(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-4-0-0-next-6-option")){customElements.whenDefined("sd-4-0-0-next-6-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();t.forEach((r,a)=>{this.multiple&&(r.checkbox=!0),r.id=r.id||`sd-4-0-0-next-6-combobox-option-${a}`}),e.forEach((r,a)=>{r.id=r.id||`sd-4-0-0-next-6-combobox-optgroup-${a}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery(""),this.hasFocus&&this.value.length>0&&!this.open&&await this.show()}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),r=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,n=this.helpText?!0:!!r,d=this.clearable&&!this.disabled&&this.value.length>0,h=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",p=this.disabled?"cursor-not-allowed":"cursor-pointer",f=this.disabled?"text-neutral-500":"text-primary",g={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],E={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],x={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c("relative text-left",p,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><label id="label" part="form-control-label" class="${a&&"inline-block mb-2"}" aria-hidden="${!a}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="relative w-full bg-white text-black"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{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"}[h],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-0-0-next-6-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
108
108
  popup:popup__content,
109
- "><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}">${t.left?u`<slot part="left" name="left" class="${c("inline-flex",E,f,x)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?u`<div part="tags" class="${c("flex items-center gap-1",E)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none bg-transparent flex-auto min-w-0",p,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map($=>$==null?void 0:$.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",p)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${d?u`<button part="clear-button" class="${c("flex justify-center",g)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-4-icon class="${c("text-icon-fill-neutral-800",x)}" name="closing-round" library="system"></sd-4-0-0-next-4-icon></slot></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-4-icon part="invalid-icon" class="${c(g,x,"text-error")}" library="system" name="risk"></sd-4-0-0-next-4-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-4-icon part="valid-icon" class="${c("flex-shrink-0 text-success",g,x)}" library="system" name="status-check"></sd-4-0-0-next-4-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled?"text-neutral-500":"text-primary",x)}"><sd-4-0-0-next-4-icon class="${c("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-4-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?u`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-4-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};T.dependencies={"sd-4-0-0-next-4-icon":lt,"sd-4-0-0-next-4-popup":I,"sd-4-0-0-next-4-tag":st},T.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-4-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-4-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-4-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-4-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-4-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-0-next-4-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],o([b("sd-4-0-0-next-4-popup")],T.prototype,"popup",2),o([b('[part="combobox"]')],T.prototype,"combobox",2),o([b('[part="display-input"]')],T.prototype,"displayInput",2),o([b(".value-input")],T.prototype,"valueInput",2),o([b('[part="listbox"]')],T.prototype,"listbox",2),o([b('[part="tags"]')],T.prototype,"tagWrapper",2),o([b('[part="filtered-listbox"]')],T.prototype,"filteredWrapper",2),o([b("slot:not([name])")],T.prototype,"defaultSlot",2),o([b("#invalid-message")],T.prototype,"invalidMessage",2),o([C()],T.prototype,"hasHover",2),o([C()],T.prototype,"hasFocus",2),o([C()],T.prototype,"displayInputValue",2),o([C()],T.prototype,"selectedTextLabel",2),o([C()],T.prototype,"selectedOptions",2),o([C()],T.prototype,"filteredOptions",2),o([C()],T.prototype,"allOptions",2),o([C()],T.prototype,"lastOption",2),o([C()],T.prototype,"showValidStyle",2),o([C()],T.prototype,"showInvalidStyle",2),o([l()],T.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],T.prototype,"value",2),o([Ot()],T.prototype,"defaultValue",2),o([l({reflect:!0})],T.prototype,"size",2),o([l()],T.prototype,"placeholder",2),o([l({reflect:!0,type:Boolean})],T.prototype,"disabled",2),o([l({type:Boolean})],T.prototype,"clearable",2),o([l({reflect:!0,type:Boolean})],T.prototype,"open",2),o([l({type:Boolean})],T.prototype,"hoist",2),o([l()],T.prototype,"label",2),o([l({reflect:!0})],T.prototype,"placement",2),o([l({attribute:"help-text"})],T.prototype,"helpText",2),o([l({reflect:!0})],T.prototype,"form",2),o([l({reflect:!0,type:Boolean})],T.prototype,"required",2),o([C()],T.prototype,"currentPlacement",2),o([l()],T.prototype,"getOption",2),o([l({type:Boolean,reflect:!0})],T.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],T.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],T.prototype,"maxOptionsVisible",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],T.prototype,"styleOnValid",2),o([l()],T.prototype,"filter",2),o([l()],T.prototype,"getTag",2),o([w("filter",{waitUntilFirstUpdate:!0})],T.prototype,"handleFilterChange",1),o([w("useTags",{waitUntilFirstUpdate:!0})],T.prototype,"handleUseTagsChange",1),o([w("size",{waitUntilFirstUpdate:!0})],T.prototype,"applySizeToOptions",1),o([w("disabled",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisabledChange",1),o([w("value",{waitUntilFirstUpdate:!0})],T.prototype,"handleValueChange",1),o([w("displayInputValue",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisplayInputValueChange",1),o([w("open",{waitUntilFirstUpdate:!0})],T.prototype,"handleOpenChange",1),T=o([y("sd-4-0-0-next-4-combobox")],T);S("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});S("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});function no(s){let i=s.tagName.toLowerCase();return s.getAttribute("tabindex")==="-1"||s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")&&s.getAttribute("aria-disabled")!=="false"||i==="input"&&s.getAttribute("type")==="radio"&&!s.hasAttribute("checked")||s.offsetParent===null&&!(s.getRootNode()instanceof ShadowRoot)||window.getComputedStyle(s).visibility==="hidden"?!1:(i==="audio"||i==="video")&&s.hasAttribute("controls")||s.hasAttribute("tabindex")||s.hasAttribute("contenteditable")&&s.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function Qi(s){var a,n;let i=[];function t(d){d instanceof HTMLElement&&(i.push(d),d.shadowRoot!==null&&d.shadowRoot.mode==="open"&&t(d.shadowRoot)),[...d.children].forEach(h=>t(h))}t(s);let e=(a=i.find(d=>no(d)))!=null?a:null,r=(n=i.reverse().find(d=>no(d)))!=null?n:null;return{start:e,end:r}}var gi=[],Re=class{constructor(i){this.tabDirection="forward";this.element=i,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){gi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){gi=gi.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return gi[gi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Qi(this.element),e=this.tabDirection==="forward"?i:t;typeof(e==null?void 0:e.focus)=="function"&&e.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(i){i.key==="Tab"&&i.shiftKey&&(this.tabDirection="backward",requestAnimationFrame(()=>this.checkFocus()))}handleKeyUp(){this.tabDirection="forward"}};var xt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"footer");this.localize=new F(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Re(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),_e(this))}disconnectedCallback(){super.disconnectedCallback(),He(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=B(this,"dialog.denyClose",{dir:this.localize.dir()});R(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),_e(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([K(this.dialog),K(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","")});let e=B(this,"dialog.show",{dir:this.localize.dir()}),r=B(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([R(this.panel,e.keyframes,e.options),R(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([K(this.dialog),K(this.overlay)]);let t=B(this,"dialog.hide",{dir:this.localize.dir()}),e=B(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([R(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),R(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,He(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&setTimeout(()=>r.focus()),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return u`<div part="base" class="${c("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="${c("flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted",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?u`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:u`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":u`<sd-4-0-0-next-4-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-4-0-0-next-4-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-4-icon></sd-4-0-0-next-4-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>`}};xt.styles=[...m.styles,v`:host{--width:662px}[part=panel]{width:var(--width)}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],o([b('[part="base"]')],xt.prototype,"dialog",2),o([b('[part="panel"]')],xt.prototype,"panel",2),o([b('[part="overlay"]')],xt.prototype,"overlay",2),o([l({type:Boolean,reflect:!0})],xt.prototype,"open",2),o([l({reflect:!0})],xt.prototype,"headline",2),o([l({attribute:"no-close-button",type:Boolean,reflect:!0})],xt.prototype,"noCloseButton",2),o([w("open",{waitUntilFirstUpdate:!0})],xt.prototype,"handleOpenChange",1),xt=o([y("sd-4-0-0-next-4-dialog")],xt);S("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});S("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});S("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});S("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});S("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kt=class extends m{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return u`<hr part="main" aria-orientation="${this.orientation}" class="${c(this.inverted?"border-primary-400":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};Kt.styles=[...m.styles,v`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-4-divider[orientation=horizontal]){display:block}:host(sd-4-0-0-next-4-divider[orientation=vertical]){display:inline-block}`],o([l({reflect:!0})],Kt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],Kt.prototype,"inverted",2),Kt=o([y("sd-4-0-0-next-4-divider")],Kt);function Mr(s){return s.charAt(0).toUpperCase()+s.slice(1)}var ct=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"footer");this.localize=new F(this);this.modal=new Re(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),_e(this)))}disconnectedCallback(){super.disconnectedCallback(),He(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=B(this,"drawer.denyClose",{dir:this.localize.dir()});R(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var e;let t=(e=this.closeButton.shadowRoot)==null?void 0:e.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),_e(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([K(this.drawer),K(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(r?r.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),r&&r.setAttribute("autofocus","")});let a=B(this,`drawer.show${Mr(this.placement)}`,{dir:this.localize.dir()}),n=B(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([R(this.panel,a.keyframes,a.options),R(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),He(this)),await Promise.all([K(this.drawer),K(this.overlay)]);let r=B(this,`drawer.hide${Mr(this.placement)}`,{dir:this.localize.dir()}),a=B(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([R(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),R(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let n=this.originalTrigger;typeof(n==null?void 0:n.focus)=="function"&&setTimeout(()=>n.focus()),t==null||t.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),_e(this)),this.open&&this.contained&&(this.modal.deactivate(),He(this))}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return u`<div id="drawer" part="base" class="${c("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${c("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="${c("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="${k(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":u`<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-4-0-0-next-4-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-4-0-0-next-4-icon label="${this.localize.term("close")}" name="close" library="system"></sd-4-0-0-next-4-icon></sd-4-0-0-next-4-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${c(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};ct.styles=[...m.styles,v`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}: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)}`],o([b("[part=base]")],ct.prototype,"drawer",2),o([b("[part=panel]")],ct.prototype,"panel",2),o([b("[part=overlay]")],ct.prototype,"overlay",2),o([b("[part=close-button]")],ct.prototype,"closeButton",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"open",2),o([l({attribute:"label",reflect:!0})],ct.prototype,"label",2),o([l({reflect:!0})],ct.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"contained",2),o([l({attribute:"no-header",type:Boolean})],ct.prototype,"noHeader",2),o([w("open",{waitUntilFirstUpdate:!0})],ct.prototype,"handleOpenChange",1),o([w("contained",{waitUntilFirstUpdate:!0})],ct.prototype,"handleNoModalChange",1),ct=o([y("sd-4-0-0-next-4-drawer")],ct);S("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"}});S("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"}});S("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"}});S("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"}});S("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});S("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});S("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var tt=class extends m{constructor(){super(...arguments);this.localize=new F(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()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(a=>Qi(a).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-4-0-0-next-4-button":case"sd-4-0-0-next-4-icon-button":r=e.button;break;case"sd-4-0-0-next-4-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,n,d,h,p,f,g,E,x,$,L,P;let r=((p=(h=(d=(n=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:n.activeElement)==null?void 0:d.shadowRoot)==null?void 0:h.activeElement)==null?void 0:p.getRootNode())instanceof ShadowRoot?(x=(E=(g=(f=document.activeElement)==null?void 0:f.shadowRoot)==null?void 0:g.activeElement)==null?void 0:E.shadowRoot)==null?void 0:x.activeElement:(($=this.containingElement)==null?void 0:$.getRootNode())instanceof ShadowRoot?(P=(L=document.activeElement)==null?void 0:L.shadowRoot)==null?void 0:P.activeElement:document.activeElement;(!this.containingElement||(r==null?void 0:r.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;Bt(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),a=r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-4-0-0-next-4-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-4-0-0-next-4-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;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await K(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=B(this,"dropdown.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"dropdown.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return u`<sd-4-0-0-next-4-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="${c("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-4-0-0-next-4-popup>`}};tt.styles=[...m.styles,v`: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])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([b("#dropdown")],tt.prototype,"popup",2),o([b("[part=trigger]")],tt.prototype,"trigger",2),o([b("[part=panel]")],tt.prototype,"panel",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"rounded",2),o([l({reflect:!0})],tt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"disabled",2),o([l({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],tt.prototype,"stayOpenOnSelect",2),o([l({attribute:!1})],tt.prototype,"containingElement",2),o([l({type:Number})],tt.prototype,"distance",2),o([l({type:Number})],tt.prototype,"skidding",2),o([l({type:Boolean,reflect:!0,attribute:"no-auto-size"})],tt.prototype,"noAutoSize",2),o([l({type:Boolean,reflect:!0,attribute:"no-flip"})],tt.prototype,"noFlip",2),o([l({type:Boolean})],tt.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],tt.prototype,"handleOpenChange",1),tt=o([y("sd-4-0-0-next-4-dropdown")],tt);S("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});S("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var St=class extends m{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new F(this)}updateMaxHeight(){var e;let t=(e=this.contentPreview)==null?void 0:e.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${t}px`),this.style.setProperty("--max-height",t)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then(()=>{this.emit("sd-after-show")})):(this.emit("sd-hide"),this.updateComplete.then(()=>{this.emit("sd-after-hide")})),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),U(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),U(this,"sd-after-hide")}render(){return u`<details part="details"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details><button part="toggle" class="${c("sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}">${this.open?u`<slot name="toggle-open"><sd-4-0-0-next-4-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-0-0-next-4-icon>${this.localize.term("showLess")}</slot>`:u`<slot name="toggle-closed"><sd-4-0-0-next-4-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-0-0-next-4-icon>${this.localize.term("showMore")}</slot>`}</button>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(r=>{let a=r.cloneNode(!0);t.appendChild(a)}),this.appendChild(t)}};St.styles=[...m.styles,v`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);position:absolute;width:100%}:host([inverted]:not([open])) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],o([b(".content-preview")],St.prototype,"contentPreview",2),o([b("details")],St.prototype,"details",2),o([l({type:Boolean,reflect:!0})],St.prototype,"open",2),o([l({type:Boolean,reflect:!0})],St.prototype,"inverted",2),o([w("open",{waitUntilFirstUpdate:!0})],St.prototype,"onOpenChange",1),St=o([y("sd-4-0-0-next-4-expandable")],St);var Tt=class extends m{constructor(){super(...arguments);this.flipDirection="horizontal";this.placement="top";this.frontVariant="primary";this.backVariant="primary"}connectedCallback(){super.connectedCallback()}flipFront(){this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),this.back.focus()}flipBack(){this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),this.front.focus()}handleFrontKeydown(t){t.code==="Enter"&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){t.code==="Enter"&&this.back===t.target&&this.flipBack()}render(){return u`<div part="base" class="${c("flip-card relative h-full w-full")}"><div part="front" tabindex="0" class="${c("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.frontVariant==="primary"&&"bg-primary",this.frontVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-front" class="${c("absolute h-full w-full -z-20",(this.frontVariant==="primary"||this.frontVariant==="primary-100")&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-b from-primary-800/75 to-primary-800/60":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-40% mb-auto":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-40% mt-auto":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto"}[this.frontVariant])}"></div><sd-4-0-0-next-4-button part="front-button" size="md" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.frontVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.frontVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-0-0-next-4-icon library="system" name="reload" label="Flip to Back"></sd-4-0-0-next-4-icon></sd-4-0-0-next-4-button></div><div part="back" tabindex="0" class="${c("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.backVariant==="primary"&&"bg-primary",this.backVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-back" class="${c("absolute h-full w-full -z-20",(this.backVariant==="primary"||this.backVariant==="primary-100")&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.backVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-b from-primary-800/75 to-primary-800/60":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-40% mb-auto":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-40% mt-auto":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto"}[this.backVariant])}"></div><sd-4-0-0-next-4-button size="md" part="back-button" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.backVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.backVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-0-0-next-4-icon library="system" name="reload" label="Flip to Front"></sd-4-0-0-next-4-icon></sd-4-0-0-next-4-button></div></div>`}};Tt.styles=[...m.styles,v`:host{aspect-ratio:3/4;display:block;--name:"";--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}`],o([b('[part="front"]')],Tt.prototype,"front",2),o([b('[part="back"]')],Tt.prototype,"back",2),o([l({reflect:!0,attribute:"flip-direction"})],Tt.prototype,"flipDirection",2),o([l({reflect:!0})],Tt.prototype,"placement",2),o([l({type:String,reflect:!0,attribute:"front-variant"})],Tt.prototype,"frontVariant",2),o([l({type:String,reflect:!0,attribute:"back-variant"})],Tt.prototype,"backVariant",2),Tt=o([y("sd-4-0-0-next-4-flipcard")],Tt);var he=class extends m{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(),(t=this.resizeObserver)==null||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 u`<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())}};he.styles=[...m.styles,v`:host{display:block}:host([fixed]){left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:"";height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],o([l({reflect:!0,type:Boolean})],he.prototype,"fixed",2),o([Vi(100)],he.prototype,"onResize",1),he=o([y("sd-4-0-0-next-4-header")],he);var jt=class extends m{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(r=>e.setAttribute(r.name,r.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await Si(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(r=>this.executeScript(r)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return u`<slot></slot>`}};jt.styles=[...m.styles,v`:host{display:block}`],o([l()],jt.prototype,"src",2),o([l()],jt.prototype,"mode",2),o([l({attribute:"allow-scripts",type:Boolean})],jt.prototype,"allowScripts",2),o([w("src")],jt.prototype,"handleSrcChange",1),jt=o([y("sd-4-0-0-next-4-include")],jt);var bi=(s,i)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let r of t)(e=r._$AO)==null||e.call(r,i,!1),bi(r,i);return!0},Ji=s=>{let i,t;do{if((i=s._$AM)===void 0)break;t=i._$AN,t.delete(s),s=i}while((t==null?void 0:t.size)===0)},lo=s=>{for(let i;i=s._$AM;s=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(s))break;t.add(s),tl(i)}};function Jn(s){this._$AN!==void 0?(Ji(this),this._$AM=s,lo(this)):this._$AM=s}function Gn(s,i=!1,t=0){let e=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(e))for(let a=t;a<e.length;a++)bi(e[a],!1),Ji(e[a]);else e!=null&&(bi(e,!1),Ji(e));else bi(this,s)}var tl=s=>{var i,t;s.type==$t.CHILD&&((i=s._$AP)!=null||(s._$AP=Gn),(t=s._$AQ)!=null||(s._$AQ=Jn))},Gi=class extends we{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),lo(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?(e=this.reconnected)==null||e.call(this):(r=this.disconnected)==null||r.call(this)),t&&(bi(this,i),Ji(this))}setValue(i){if(Ri(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var _r=class extends Gi{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==$t.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Y}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=O({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),mt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(r=>{r.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Hr=oe(_r);var co,el=(co=navigator.userAgentData)==null?void 0:co.brands.some(s=>s.brand.includes("Chromium")),il=el?!1:navigator.userAgent.includes("Firefox"),A=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"help-text","label","left","right","message","placeholder");this.localize=new F(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.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let 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){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}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,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.input.setRangeText(t,e,r,a),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(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||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",d=this.size==="sm"?"text-sm":"text-base",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],p=this.disabled?"text-neutral-500":"text-primary",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],g={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",d)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="relative w-full"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",h)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-all",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",n==="disabled"?"text-neutral-500":"text-black")}">${t.left?u`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",p,g)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",this.size==="sm"?"h-6":"h-8",d)}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${k(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${k(this.placeholder)}" minlength="${k(this.minlength)}" maxlength="${k(this.maxlength)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" .value="${le(this.value)}" autocapitalize="${k(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${k(this.type==="password"?"off":this.autocomplete)}" autocorrect="${k(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${k(this.pattern)}" enterkeyhint="${k(this.enterkeyhint)}" inputmode="${k(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?u`<button part="clear-button" class="${c("flex justify-center ",f)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-4-icon class="${c("icon-fill-neutral-800",g)}" library="system" name="closing-round"></sd-4-0-0-next-4-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?u`<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?u`<slot name="show-password-icon"><sd-4-0-0-next-4-icon class="${c(p,f,g)}" library="system" name="eye"></sd-4-0-0-next-4-icon></slot>`:u`<slot name="hide-password-icon"><sd-4-0-0-next-4-icon class="${c(p,f,g)}" library="system" name="eye-crossed-out"></sd-4-0-0-next-4-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!il?u`<sd-4-0-0-next-4-icon class="${c(p,f,g)}" library="system" name="calendar"></sd-4-0-0-next-4-icon>`:""} ${this.type==="time"?u`<sd-4-0-0-next-4-icon class="${c(p,f,g)}" library="system" name="clock"></sd-4-0-0-next-4-icon>`:""} ${this.type==="search"?u`<button class="flex items-center" type="button" tabindex="-1"><sd-4-0-0-next-4-icon class="${c(p,f,g)}" library="system" name="magnifying-glass"></sd-4-0-0-next-4-icon></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-4-icon part="invalid-icon" class="${c("text-error",f,g)}" library="system" name="risk"></sd-4-0-0-next-4-icon>`:""} ${this.showValidStyle&&this.styleOnValid?u`<sd-4-0-0-next-4-icon class="${c("text-success flex-shrink-0",f,g)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-4-icon>`:""} ${t.right?u`<slot name="right" part="right" class="${c("inline-flex",p,f,g)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?u`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-0-0-next-4-icon name="system/minus-circle" label="Decrease value" class="${c(p,f,g)}"></sd-4-0-0-next-4-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Hr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-4-0-0-next-4-icon name="system/plus-circle" label="Decrease value" class="${c(p,f,g)}"></sd-4-0-0-next-4-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};A.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}: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}.stepper-button[disabled] sd-4-0-0-next-4-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`],o([b("#input")],A.prototype,"input",2),o([b("#invalid-message")],A.prototype,"invalidMessage",2),o([C()],A.prototype,"hasFocus",2),o([C()],A.prototype,"showValidStyle",2),o([C()],A.prototype,"showInvalidStyle",2),o([l({reflect:!0})],A.prototype,"type",2),o([l({reflect:!0})],A.prototype,"size",2),o([l()],A.prototype,"inputmode",2),o([l()],A.prototype,"value",2),o([Ot()],A.prototype,"defaultValue",2),o([l()],A.prototype,"placeholder",2),o([l()],A.prototype,"label",2),o([l({attribute:"help-text"})],A.prototype,"helpText",2),o([l({type:Boolean})],A.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],A.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],A.prototype,"readonly",2),o([l({attribute:"password-toggle",type:Boolean})],A.prototype,"passwordToggle",2),o([l({attribute:"password-visible",type:Boolean})],A.prototype,"passwordVisible",2),o([l({attribute:"spin-buttons",type:Boolean})],A.prototype,"spinButtons",2),o([l({type:Number})],A.prototype,"minlength",2),o([l({type:Number})],A.prototype,"maxlength",2),o([l()],A.prototype,"min",2),o([l()],A.prototype,"max",2),o([l({reflect:!0})],A.prototype,"form",2),o([l()],A.prototype,"name",2),o([l()],A.prototype,"title",2),o([l({type:Boolean,reflect:!0})],A.prototype,"required",2),o([l()],A.prototype,"pattern",2),o([l()],A.prototype,"step",2),o([l()],A.prototype,"autocapitalize",2),o([l()],A.prototype,"autocorrect",2),o([l()],A.prototype,"autocomplete",2),o([l({type:Boolean})],A.prototype,"autofocus",2),o([l()],A.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],A.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],A.prototype,"spellcheck",2),o([w("disabled",{waitUntilFirstUpdate:!0})],A.prototype,"handleDisabledChange",1),o([w("step",{waitUntilFirstUpdate:!0})],A.prototype,"handleStepChange",1),o([w("value",{waitUntilFirstUpdate:!0})],A.prototype,"handleValueChange",1),A=o([y("sd-4-0-0-next-4-input")],A);var kt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){let t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return u`<a part="base" class="${c("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="${k(this.href||void 0)}" target="${k(this.target||void 0)}" download="${k(this.download)}" rel="${k(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="${c("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="${c("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};kt.styles=[...m.styles,v`::slotted(sd-4-0-0-next-4-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-0-0-next-4-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-0-0-next-4-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],o([b("a")],kt.prototype,"button",2),o([l({type:Boolean,reflect:!0})],kt.prototype,"standalone",2),o([l({reflect:!0})],kt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],kt.prototype,"inverted",2),o([l()],kt.prototype,"href",2),o([l()],kt.prototype,"target",2),o([l()],kt.prototype,"download",2),kt=o([y("sd-4-0-0-next-4-link")],kt);var Lt=class extends m{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.marker={cluster:qe`<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:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:qe`<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>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return D`<${e} part="base" class="${c("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${k(t?this.href:void 0)}" target="${k(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${k(this.notInteractive||t?void 0:"button")}" aria-labelledby="${k(this.notInteractive?void 0:"content")}"><div part="marker" class="${c("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${c("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Lt.styles=[...m.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1))}`],o([l({reflect:!0})],Lt.prototype,"variant",2),o([l({reflect:!0})],Lt.prototype,"state",2),o([l({type:Boolean,reflect:!0})],Lt.prototype,"animated",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],Lt.prototype,"notInteractive",2),o([l()],Lt.prototype,"href",2),o([l()],Lt.prototype,"target",2),Lt=o([y("sd-4-0-0-next-4-map-marker")],Lt);var rt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","description","children");this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get 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})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?X`summary`:this.separated?X`div`:this.isLink?X`a`:X`button`}render(){let t=this.tag,e=this.isLink,r=this.isButton,a=this.isAccordion,n={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},d=this.vertical?"pb-3":"pb-2",h=D`<${t} part="base" class="${c("cursor-pointer relative focus-visible:focus-outline",{md:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",a?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${k(a?"navigation-item-details":void 0)}" aria-current="${k(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${k(r?this.disabled:void 0)}" href="${k(e?this.href:void 0)}" target="${k(e?this.target:void 0)}" download="${k(e?this.download:void 0)}" rel="${k(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:a?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("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="${c("relative pt-3 inline-flex justify-between items-center",a?"grow":"w-full",n.description||this.separated?"pb-1":d,this.calculatePaddingX)}">${this.divider&&this.vertical?D`<sd-4-0-0-next-4-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-4-0-0-next-4-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?D`<a class="${c("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!n.description&&"py-4")}" href="${k(e?this.href:void 0)}" target="${k(e?this.target:void 0)}" download="${k(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:D`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||n.children)&&this.vertical?this.separated?D`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("mr-4 h-6 w-6 transition-all",a||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-4-0-0-next-4-icon></button>`:D`<sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",a?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-4-0-0-next-4-icon>`:""} </span>${n.description&&this.vertical?D`<slot name="description" part="description" class="${c("inline-block text-sm text-left text-black",a||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,d)}"></slot>`:""}</${t}>`;return a?D`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${h}<slot name="children"></slot></details>`:this.separated?D`<div part="details" id="navigation-item-details" class="relative flex flex-col">${h}${this.open?D`<slot name="children"></slot>`:""}</div>`:D`${h}`}};rt.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],o([b('a[part="base"], button[part="base"]')],rt.prototype,"button",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"vertical",2),o([l({reflect:!0})],rt.prototype,"size",2),o([l({reflect:!0})],rt.prototype,"href",2),o([l()],rt.prototype,"target",2),o([l()],rt.prototype,"download",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"current",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"chevron",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"relaxed",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"divider",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"indented",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"separated",2),rt=o([y("sd-4-0-0-next-4-navigation-item")],rt);var rl=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),sl=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"}),gt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";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 K(this.base),this.base.hidden=!1;let{keyframes:t,options:e}=B(this,"notification.show",{dir:this.localize.dir()});await R(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await K(this.base);let{keyframes:t,options:e}=B(this,"notification.hide",{dir:this.localize.dir()});await R(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,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}async toast(){return new Promise(t=>{let e=this.toastStack==="bottom-center"?sl:rl;e.parentElement===null&&document.body.append(e),e.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{e.removeChild(this),t(),e.querySelector("sd-4-0-0-next-4-notification")===null&&e.remove()},{once:!0})})}render(){return u`<div part="base" class="${c("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="${c("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-4-0-0-next-4-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-4-0-0-next-4-icon></slot><div part="content" class="${c("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?u`<sd-4-0-0-next-4-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-4-0-0-next-4-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-4-icon></sd-4-0-0-next-4-button>`:""}</div>${this.durationIndicator?u`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("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 border border-neutral-400"></div>`:""}</div>`}};gt.styles=[...m.styles,v`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],o([b('[part~="base"]')],gt.prototype,"base",2),o([l({reflect:!0})],gt.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],gt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],gt.prototype,"closable",2),o([l({type:Number})],gt.prototype,"duration",2),o([l({type:Boolean,reflect:!0,attribute:"duration-indicator"})],gt.prototype,"durationIndicator",2),o([l({reflect:!0,attribute:"toast-stack"})],gt.prototype,"toastStack",2),o([w("open",{waitUntilFirstUpdate:!0})],gt.prototype,"handleOpenChange",1),o([w("duration")],gt.prototype,"handleDurationChange",1),gt=o([y("sd-4-0-0-next-4-notification")],gt);S("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});S("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});var ht=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(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(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}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(){var t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return u`<div part="base" class="${c("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="${c("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?u`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 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?u`<sd-4-0-0-next-4-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-4-icon>`:""}</span>`:""} ${t.left?u`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?u`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ht.styles=[...m.styles,v`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],o([b('[part="base"]')],ht.prototype,"defaultSlot",2),o([C()],ht.prototype,"current",2),o([C()],ht.prototype,"selected",2),o([C()],ht.prototype,"hasHover",2),o([l({reflect:!0})],ht.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"checkbox",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),o([l({reflect:!0})],ht.prototype,"value",2),o([w("disabled")],ht.prototype,"handleDisabledChange",1),o([w("selected")],ht.prototype,"handleSelectedChange",1),o([w("value")],ht.prototype,"handleValueChange",1),ht=o([y("sd-4-0-0-next-4-option")],ht);var Pt=class extends m{constructor(){super(...arguments);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-4-0-0-next-4-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return D`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-4-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-0-0-next-4-divider><div part="label-container" class="${c(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};Pt.dependencies={"sd-4-0-0-next-4-divider":Kt},Pt.styles=[...m.styles,v`:host{--display-divider:block}#divider{display:var(--display-divider)}`],o([b("slot:not([name])")],Pt.prototype,"defaultSlot",2),o([l({reflect:!0,type:Boolean})],Pt.prototype,"disabled",2),o([l()],Pt.prototype,"label",2),o([w("disabled",{waitUntilFirstUpdate:!0})],Pt.prototype,"handleDisabledChange",1),Pt=o([y("sd-4-0-0-next-4-optgroup")],Pt);var Ee=class extends ft{constructor(){super(...arguments);this.expandable=!1}render(){let t=this.expandable?X`details`:X`div`,e=this.expandable?X`summary`:X`div`;return D`
109
+ "><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}">${t.left?u`<slot part="left" name="left" class="${c("inline-flex",E,f,x)}"></slot>`:""} ${this.multiple&&this.useTags&&this.tags.length>0?u`<div part="tags" class="${c("flex items-center gap-1",E)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none bg-transparent flex-auto min-w-0",p,this.selectedTextLabel&&!this.multiple?"placeholder-black":"placeholder-neutral-700")}" type="text" placeholder="${this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map($=>$==null?void 0:$.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",p)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${d?u`<button part="clear-button" class="${c("flex justify-center",g)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-6-icon class="${c("text-icon-fill-neutral-800",x)}" name="closing-round" library="system"></sd-4-0-0-next-6-icon></slot></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-6-icon part="invalid-icon" class="${c(g,x,"text-error")}" library="system" name="risk"></sd-4-0-0-next-6-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-6-icon part="valid-icon" class="${c("flex-shrink-0 text-success",g,x)}" library="system" name="status-check"></sd-4-0-0-next-6-icon>`:""}<slot name="right" part="right" class="${c("inline-flex ml-2 leading-[0]",this.disabled?"text-neutral-500":"text-primary",x)}"><sd-4-0-0-next-6-icon class="${c("transition-all",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-6-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length===0?u`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-6-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!n}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};T.dependencies={"sd-4-0-0-next-6-icon":lt,"sd-4-0-0-next-6-popup":I,"sd-4-0-0-next-6-tag":st},T.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-6-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-6-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-6-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-6-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-6-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-0-next-6-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`],o([b("sd-4-0-0-next-6-popup")],T.prototype,"popup",2),o([b('[part="combobox"]')],T.prototype,"combobox",2),o([b('[part="display-input"]')],T.prototype,"displayInput",2),o([b(".value-input")],T.prototype,"valueInput",2),o([b('[part="listbox"]')],T.prototype,"listbox",2),o([b('[part="tags"]')],T.prototype,"tagWrapper",2),o([b('[part="filtered-listbox"]')],T.prototype,"filteredWrapper",2),o([b("slot:not([name])")],T.prototype,"defaultSlot",2),o([b("#invalid-message")],T.prototype,"invalidMessage",2),o([C()],T.prototype,"hasHover",2),o([C()],T.prototype,"hasFocus",2),o([C()],T.prototype,"displayInputValue",2),o([C()],T.prototype,"selectedTextLabel",2),o([C()],T.prototype,"selectedOptions",2),o([C()],T.prototype,"filteredOptions",2),o([C()],T.prototype,"allOptions",2),o([C()],T.prototype,"lastOption",2),o([C()],T.prototype,"showValidStyle",2),o([C()],T.prototype,"showInvalidStyle",2),o([l()],T.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],T.prototype,"value",2),o([Ot()],T.prototype,"defaultValue",2),o([l({reflect:!0})],T.prototype,"size",2),o([l()],T.prototype,"placeholder",2),o([l({reflect:!0,type:Boolean})],T.prototype,"disabled",2),o([l({type:Boolean})],T.prototype,"clearable",2),o([l({reflect:!0,type:Boolean})],T.prototype,"open",2),o([l({type:Boolean})],T.prototype,"hoist",2),o([l()],T.prototype,"label",2),o([l({reflect:!0})],T.prototype,"placement",2),o([l({attribute:"help-text"})],T.prototype,"helpText",2),o([l({reflect:!0})],T.prototype,"form",2),o([l({reflect:!0,type:Boolean})],T.prototype,"required",2),o([C()],T.prototype,"currentPlacement",2),o([l()],T.prototype,"getOption",2),o([l({type:Boolean,reflect:!0})],T.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],T.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],T.prototype,"maxOptionsVisible",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],T.prototype,"styleOnValid",2),o([l()],T.prototype,"filter",2),o([l()],T.prototype,"getTag",2),o([w("filter",{waitUntilFirstUpdate:!0})],T.prototype,"handleFilterChange",1),o([w("useTags",{waitUntilFirstUpdate:!0})],T.prototype,"handleUseTagsChange",1),o([w("size",{waitUntilFirstUpdate:!0})],T.prototype,"applySizeToOptions",1),o([w("disabled",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisabledChange",1),o([w("value",{waitUntilFirstUpdate:!0})],T.prototype,"handleValueChange",1),o([w("displayInputValue",{waitUntilFirstUpdate:!0})],T.prototype,"handleDisplayInputValueChange",1),o([w("open",{waitUntilFirstUpdate:!0})],T.prototype,"handleOpenChange",1),T=o([y("sd-4-0-0-next-6-combobox")],T);H("combobox.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("combobox.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});function no(s){let i=s.tagName.toLowerCase();return s.getAttribute("tabindex")==="-1"||s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")&&s.getAttribute("aria-disabled")!=="false"||i==="input"&&s.getAttribute("type")==="radio"&&!s.hasAttribute("checked")||s.offsetParent===null&&!(s.getRootNode()instanceof ShadowRoot)||window.getComputedStyle(s).visibility==="hidden"?!1:(i==="audio"||i==="video")&&s.hasAttribute("controls")||s.hasAttribute("tabindex")||s.hasAttribute("contenteditable")&&s.getAttribute("contenteditable")!=="false"?!0:["button","input","select","textarea","a","audio","video","summary"].includes(i)}function Qi(s){var a,n;let i=[];function t(d){d instanceof HTMLElement&&(i.push(d),d.shadowRoot!==null&&d.shadowRoot.mode==="open"&&t(d.shadowRoot)),[...d.children].forEach(h=>t(h))}t(s);let e=(a=i.find(d=>no(d)))!=null?a:null,r=(n=i.reverse().find(d=>no(d)))!=null?n:null;return{start:e,end:r}}var gi=[],Re=class{constructor(i){this.tabDirection="forward";this.element=i,this.handleFocusIn=this.handleFocusIn.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this)}activate(){gi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){gi=gi.filter(i=>i!==this.element),document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return gi[gi.length-1]===this.element}checkFocus(){if(this.isActive()&&!this.element.matches(":focus-within")){let{start:i,end:t}=Qi(this.element),e=this.tabDirection==="forward"?i:t;typeof(e==null?void 0:e.focus)=="function"&&e.focus({preventScroll:!0})}}handleFocusIn(){this.checkFocus()}handleKeyDown(i){i.key==="Tab"&&i.shiftKey&&(this.tabDirection="backward",requestAnimationFrame(()=>this.checkFocus()))}handleKeyUp(){this.tabDirection="forward"}};var xt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"footer");this.localize=new F(this);this.open=!1;this.headline="";this.noCloseButton=!1}connectedCallback(){super.connectedCallback(),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.modal=new Re(this)}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),_e(this))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=B(this,"dialog.denyClose",{dir:this.localize.dir()});R(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),_e(this);let t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([K(this.dialog),K(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","")});let e=B(this,"dialog.show",{dir:this.localize.dir()}),r=B(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([R(this.panel,e.keyframes,e.options),R(this.overlay,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([K(this.dialog),K(this.overlay)]);let t=B(this,"dialog.hide",{dir:this.localize.dir()}),e=B(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([R(this.overlay,e.keyframes,e.options).then(()=>{this.overlay.hidden=!0}),R(this.panel,t.keyframes,t.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Se(this);let r=this.originalTrigger;typeof(r==null?void 0:r.focus)=="function"&&setTimeout(()=>r.focus()),this.emit("sd-after-hide")}}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return u`<div part="base" class="${c("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="${c("flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted",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?u`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>`:u`<slot name="headline"></slot>`}</h2>${this.noCloseButton?"":u`<sd-4-0-0-next-6-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${c("absolute top-2 right-2")}" name="x-lg" @click="${()=>this.requestClose("close-button")}" type="button"><sd-4-0-0-next-6-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-6-icon></sd-4-0-0-next-6-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>`}};xt.styles=[...m.styles,v`:host{--width:662px}[part=panel]{width:var(--width)}[part=body]{-webkit-overflow-scrolling:touch}@media (max-width:414px){:host{--width:335px}[part=footer]{width:100%}}`],o([b('[part="base"]')],xt.prototype,"dialog",2),o([b('[part="panel"]')],xt.prototype,"panel",2),o([b('[part="overlay"]')],xt.prototype,"overlay",2),o([l({type:Boolean,reflect:!0})],xt.prototype,"open",2),o([l({reflect:!0})],xt.prototype,"headline",2),o([l({attribute:"no-close-button",type:Boolean,reflect:!0})],xt.prototype,"noCloseButton",2),o([w("open",{waitUntilFirstUpdate:!0})],xt.prototype,"handleOpenChange",1),xt=o([y("sd-4-0-0-next-6-dialog")],xt);H("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});H("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}});H("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kt=class extends m{constructor(){super(...arguments);this.orientation="horizontal";this.inverted=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}render(){return u`<hr part="main" aria-orientation="${this.orientation}" class="${c(this.inverted?"border-primary-400":"border-neutral-400",this.orientation==="horizontal"?"border-t w-full":" border-l h-full")}">`}};Kt.styles=[...m.styles,v`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-6-divider[orientation=horizontal]){display:block}:host(sd-4-0-0-next-6-divider[orientation=vertical]){display:inline-block}`],o([l({reflect:!0})],Kt.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],Kt.prototype,"inverted",2),Kt=o([y("sd-4-0-0-next-6-divider")],Kt);function Mr(s){return s.charAt(0).toUpperCase()+s.slice(1)}var ct=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"footer");this.localize=new F(this);this.modal=new Re(this);this.open=!1;this.label="";this.placement="end";this.contained=!1;this.noHeader=!1;this.handleDocumentKeyDown=t=>{this.open&&t.key==="Escape"&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.drawer.hidden=!this.open,this.open&&(this.addOpenListeners(),this.contained||(this.modal.activate(),_e(this)))}disconnectedCallback(){super.disconnectedCallback(),Se(this)}requestClose(t){if(this.emit("sd-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){let r=B(this,"drawer.denyClose",{dir:this.localize.dir()});R(this.panel,r.keyframes,r.options);return}this.hide()}addOpenListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){var e;let t=(e=this.closeButton.shadowRoot)==null?void 0:e.querySelector('[part="base"]');if(this.open){this.emit("sd-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.contained||(this.modal.activate(),_e(this));let r=this.querySelector("[autofocus]");r&&r.removeAttribute("autofocus"),await Promise.all([K(this.drawer),K(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{this.emit("sd-initial-focus",{cancelable:!0}).defaultPrevented||(r?r.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),r&&r.setAttribute("autofocus","")});let a=B(this,`drawer.show${Mr(this.placement)}`,{dir:this.localize.dir()}),n=B(this,"drawer.overlay.show",{dir:this.localize.dir()});await Promise.all([R(this.panel,a.keyframes,a.options),R(this.overlay,n.keyframes,n.options)]),t==null||t.setAttribute("aria-controls","drawer"),t==null||t.setAttribute("aria-expanded","true"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),this.contained||(this.modal.deactivate(),Se(this)),await Promise.all([K(this.drawer),K(this.overlay)]);let r=B(this,`drawer.hide${Mr(this.placement)}`,{dir:this.localize.dir()}),a=B(this,"drawer.overlay.hide",{dir:this.localize.dir()});await Promise.all([R(this.overlay,a.keyframes,a.options).then(()=>{this.overlay.hidden=!0}),R(this.panel,r.keyframes,r.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let n=this.originalTrigger;typeof(n==null?void 0:n.focus)=="function"&&setTimeout(()=>n.focus()),t==null||t.setAttribute("aria-expanded","false"),this.emit("sd-after-hide")}}handleNoModalChange(){this.open&&!this.contained&&(this.modal.activate(),_e(this)),this.open&&this.contained&&(this.modal.deactivate(),Se(this))}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){return u`<div id="drawer" part="base" class="${c("top-0 start-0 w-full h-full pointer-events-none overflow-hidden",this.contained?"absolute":"fixed")}"><div part="overlay" class="${c("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="${c("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="${k(this.noHeader?void 0:"title")}" tabindex="0">${this.noHeader?"":u`<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-4-0-0-next-6-button variant="tertiary" size="lg" part="close-button" @click="${()=>this.requestClose("close-button")}"><sd-4-0-0-next-6-icon label="${this.localize.term("close")}" name="close" library="system"></sd-4-0-0-next-6-icon></sd-4-0-0-next-6-button></div></header>`}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${c(this.hasSlotController.test("footer")?"text-left p-4":"hidden")}"><slot name="footer"></slot></footer></div></div>`}};ct.styles=[...m.styles,v`:host{--width:25rem;display:contents}:host([contained]){z-index:auto}: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)}`],o([b("[part=base]")],ct.prototype,"drawer",2),o([b("[part=panel]")],ct.prototype,"panel",2),o([b("[part=overlay]")],ct.prototype,"overlay",2),o([b("[part=close-button]")],ct.prototype,"closeButton",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"open",2),o([l({attribute:"label",reflect:!0})],ct.prototype,"label",2),o([l({reflect:!0})],ct.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],ct.prototype,"contained",2),o([l({attribute:"no-header",type:Boolean})],ct.prototype,"noHeader",2),o([w("open",{waitUntilFirstUpdate:!0})],ct.prototype,"handleOpenChange",1),o([w("contained",{waitUntilFirstUpdate:!0})],ct.prototype,"handleNoModalChange",1),ct=o([y("sd-4-0-0-next-6-drawer")],ct);H("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"}});H("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"}});H("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"}});H("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"}});H("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});H("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});H("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var tt=class extends m{constructor(){super(...arguments);this.localize=new F(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()}getAccessibleTrigger(){let e=this.trigger.assignedElements({flatten:!0}).find(a=>Qi(a).start),r=null;if(e)switch(e.tagName.toLowerCase()){case"sd-4-0-0-next-6-button":case"sd-4-0-0-next-6-icon-button":r=e.button;break;case"sd-4-0-0-next-6-navigation-item":r=e.button;break;default:r=e}return r}updateAccessibleTrigger(){let t=this.getAccessibleTrigger();t&&(t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let t=this.getAccessibleTrigger();typeof(t==null?void 0:t.focus)=="function"&&t.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="sd-menu")}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(t){var e;if(t.key==="Tab"){if(this.open&&((e=document.activeElement)==null?void 0:e.tagName.toLowerCase())==="sd-menu-item"){t.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,n,d,h,p,f,g,E,x,$,L,P;let r=((p=(h=(d=(n=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:n.activeElement)==null?void 0:d.shadowRoot)==null?void 0:h.activeElement)==null?void 0:p.getRootNode())instanceof ShadowRoot?(x=(E=(g=(f=document.activeElement)==null?void 0:f.shadowRoot)==null?void 0:g.activeElement)==null?void 0:E.shadowRoot)==null?void 0:x.activeElement:(($=this.containingElement)==null?void 0:$.getRootNode())instanceof ShadowRoot?(P=(L=document.activeElement)==null?void 0:L.shadowRoot)==null?void 0:P.activeElement:document.activeElement;(!this.containingElement||(r==null?void 0:r.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(t){let e=t.composedPath();this.containingElement&&!e.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(t){let e=t.target;Bt(e,this.panel)}handlePanelSelect(t){let e=t.target;!this.stayOpenOnSelect&&e.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(t){if(t.key==="Escape"&&this.open){t.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(t.key)){t.preventDefault(),this.handleTriggerClick();return}let e=this.getMenu();if(e){let r=e.defaultSlot.assignedElements({flatten:!0}),a=r[0],n=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||this.show(),r.length>0&&requestAnimationFrame(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(e.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(e.setCurrentItem(n),n.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-4-0-0-next-6-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-4-0-0-next-6-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;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await K(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=B(this,"dropdown.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"dropdown.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return u`<sd-4-0-0-next-6-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="${c("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-4-0-0-next-6-popup>`}};tt.styles=[...m.styles,v`: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])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([b("#dropdown")],tt.prototype,"popup",2),o([b("[part=trigger]")],tt.prototype,"trigger",2),o([b("[part=panel]")],tt.prototype,"panel",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"rounded",2),o([l({reflect:!0})],tt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],tt.prototype,"disabled",2),o([l({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],tt.prototype,"stayOpenOnSelect",2),o([l({attribute:!1})],tt.prototype,"containingElement",2),o([l({type:Number})],tt.prototype,"distance",2),o([l({type:Number})],tt.prototype,"skidding",2),o([l({type:Boolean,reflect:!0,attribute:"no-auto-size"})],tt.prototype,"noAutoSize",2),o([l({type:Boolean,reflect:!0,attribute:"no-flip"})],tt.prototype,"noFlip",2),o([l({type:Boolean})],tt.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],tt.prototype,"handleOpenChange",1),tt=o([y("sd-4-0-0-next-6-dropdown")],tt);H("dropdown.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("dropdown.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Ht=class extends m{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new F(this)}updateMaxHeight(){var e;let t=(e=this.contentPreview)==null?void 0:e.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${t}px`),this.style.setProperty("--max-height",t)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}onOpenChange(){this.open?(this.emit("sd-show"),this.updateComplete.then(()=>{this.emit("sd-after-show")})):(this.emit("sd-hide"),this.updateComplete.then(()=>{this.emit("sd-after-hide")})),this.details.setAttribute("open",this.open.toString())}async show(){if(!this.open)return this.onToggleClick(),U(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),U(this,"sd-after-hide")}render(){return u`<details part="details"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details><button part="toggle" class="${c("sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}">${this.open?u`<slot name="toggle-open"><sd-4-0-0-next-6-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-0-0-next-6-icon>${this.localize.term("showLess")}</slot>`:u`<slot name="toggle-closed"><sd-4-0-0-next-6-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-0-0-next-6-icon>${this.localize.term("showMore")}</slot>`}</button>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let t=document.createElement("div");t.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(r=>{let a=r.cloneNode(!0);t.appendChild(a)}),this.appendChild(t)}};Ht.styles=[...m.styles,v`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content{max-block-size:var(--max-height-pixel,1000vh)}:host(:not([open])) .content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);position:absolute;width:100%}:host([inverted]:not([open])) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}`],o([b(".content-preview")],Ht.prototype,"contentPreview",2),o([b("details")],Ht.prototype,"details",2),o([l({type:Boolean,reflect:!0})],Ht.prototype,"open",2),o([l({type:Boolean,reflect:!0})],Ht.prototype,"inverted",2),o([w("open",{waitUntilFirstUpdate:!0})],Ht.prototype,"onOpenChange",1),Ht=o([y("sd-4-0-0-next-6-expandable")],Ht);var kt=class extends m{constructor(){super(...arguments);this.flipDirection="horizontal";this.placement="top";this.frontVariant="primary";this.backVariant="primary";this.activeSide="front"}connectedCallback(){super.connectedCallback()}flipFront(){this.activeSide="back",this.front.classList.add("clicked--front"),this.back.classList.add("clicked--back"),this.emit("sd-flip-front"),setTimeout(()=>{this.back.focus()})}flipBack(){this.activeSide="front",this.front.classList.remove("clicked--front"),this.back.classList.remove("clicked--back"),this.emit("sd-flip-back"),setTimeout(()=>{this.front.focus()})}handleFrontKeydown(t){t.code==="Enter"&&this.front===t.target&&this.flipFront()}handleBackKeydown(t){t.code==="Enter"&&this.back===t.target&&this.flipBack()}render(){return u`<div part="base" class="${c("flip-card relative h-full w-full")}"><div part="front" tabindex="0" aria-hidden="${this.activeSide==="back"}" inert="${k(this.activeSide==="back"||void 0)}" class="${c("flip-card__side flip-card__side--front overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.frontVariant==="primary"&&"bg-primary",this.frontVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-front" class="${c("absolute h-full w-full -z-20",(this.frontVariant==="primary"||this.frontVariant==="primary-100")&&"hidden")}"><slot name="media-front"></slot></div><div part="front-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.frontVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-b from-primary-800/75 to-primary-800/60":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.frontVariant])}"><slot name="front"></slot></div><div part="front-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-40% mb-auto":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-40% mt-auto":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto"}[this.frontVariant])}"></div><sd-4-0-0-next-6-button part="front-button" size="md" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.frontVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.frontVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-0-0-next-6-icon library="system" name="reload" label="Flip to Back"></sd-4-0-0-next-6-icon></sd-4-0-0-next-6-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide==="front"}" inert="${k(this.activeSide==="front"||void 0)}" class="${c("flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out","flex focus-visible:focus-outline","absolute top-0 left-0 w-full h-full justify-end text-left",this.backVariant==="primary"&&"bg-primary",this.backVariant==="primary-100"&&"bg-primary-100",this.placement==="top"?"flex-col":"flex-col-reverse",this.flipDirection==="vertical"&&"vertical")}"><div part="media-back" class="${c("absolute h-full w-full -z-20",(this.backVariant==="primary"||this.backVariant==="primary-100")&&"hidden")}"><slot name="media-back"></slot></div><div part="back-slot-container" class="${c("flex",{primary:"text-white","primary-100":"text-black","gradient-light":"text-black","gradient-dark":"text-white"}[this.backVariant],{primary:"","primary-100":"","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/75 to-white/60":"bg-gradient-to-t from-white/75 to-white/60","gradient-dark":this.placement==="bottom"?"bg-gradient-to-b from-primary-800/75 to-primary-800/60":"bg-gradient-to-t from-primary-800/75 to-primary-800/60"}[this.backVariant])}"><slot name="back"></slot></div><div part="back-secondary-gradient" class="${c("flip-card__gradient",{primary:"mb-auto","primary-100":"mb-auto","gradient-light":this.placement==="top"?"bg-gradient-to-b from-white/60 to-40% mb-auto":"bg-gradient-to-t from-white/60 to-40% mt-auto","gradient-dark":this.placement==="bottom"?"bg-gradient-to-t from-primary-800/60 to-40% mt-auto":"bg-gradient-to-b from-primary-800/60 to-40% mb-auto"}[this.backVariant])}"></div><sd-4-0-0-next-6-button size="md" part="back-button" variant="${{primary:"tertiary","primary-100":"tertiary","gradient-light":"primary","gradient-dark":"primary"}[this.backVariant]}" ?inverted="${{primary:!0,"primary-100":!1,"gradient-light":!0,"gradient-dark":!0}[this.backVariant]}" class="${c("absolute right-0 p-2 flex-shrink-0",this.placement==="top"?"bottom-0":"top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-0-0-next-6-icon library="system" name="reload" label="Flip to Front"></sd-4-0-0-next-6-icon></sd-4-0-0-next-6-button></div></div>`}};kt.styles=[...m.styles,v`:host{aspect-ratio:3/4;display:block;--name:"";--height:480px;height:var(--height)}.flip-card{perspective:100rem}.flip-card__side{backface-visibility:hidden}.flip-card__side--back{transform:rotateY(180deg)}.clicked--front{transform:rotateY(-180deg)}.clicked--back{transform:rotateY(0)}.flip-card__side--back.vertical{transform:rotateX(180deg)}.clicked--front.vertical{transform:rotateX(-180deg)}.clicked--back.vertical{transform:rotateX(0)}.flip-card__gradient{flex:.4 1 0}`],o([b('[part="front"]')],kt.prototype,"front",2),o([b('[part="back"]')],kt.prototype,"back",2),o([l({reflect:!0,attribute:"flip-direction"})],kt.prototype,"flipDirection",2),o([l({reflect:!0})],kt.prototype,"placement",2),o([l({type:String,reflect:!0,attribute:"front-variant"})],kt.prototype,"frontVariant",2),o([l({type:String,reflect:!0,attribute:"back-variant"})],kt.prototype,"backVariant",2),o([C()],kt.prototype,"activeSide",2),kt=o([y("sd-4-0-0-next-6-flipcard")],kt);var he=class extends m{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(),(t=this.resizeObserver)==null||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 u`<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())}};he.styles=[...m.styles,v`:host{display:block}:host([fixed]){left:var(--sd-spacing-0,0);position:fixed;top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header:after{background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%));content:"";height:var(--sd-spacing-2,.5rem);left:var(--sd-spacing-0,0);position:absolute;right:var(--sd-spacing-0,0);top:100%}[part=main]{max-width:var(--sd-header-inner-max-width);padding:var(--sd-header-padding,12px 16px);width:var(--sd-header-inner-width)}`],o([l({reflect:!0,type:Boolean})],he.prototype,"fixed",2),o([Vi(100)],he.prototype,"onResize",1),he=o([y("sd-4-0-0-next-6-header")],he);var jt=class extends m{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(t){let e=document.createElement("script");[...t.attributes].forEach(r=>e.setAttribute(r.name,r.value)),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}async handleSrcChange(){try{let t=this.src,e=await Hi(t,this.mode);if(t!==this.src)return;if(!e.ok){this.emit("sd-error",{detail:{status:e.status}});return}this.innerHTML=e.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(r=>this.executeScript(r)),this.emit("sd-load")}catch(t){this.emit("sd-error",{detail:{status:-1}})}}render(){return u`<slot></slot>`}};jt.styles=[...m.styles,v`:host{display:block}`],o([l()],jt.prototype,"src",2),o([l()],jt.prototype,"mode",2),o([l({attribute:"allow-scripts",type:Boolean})],jt.prototype,"allowScripts",2),o([w("src")],jt.prototype,"handleSrcChange",1),jt=o([y("sd-4-0-0-next-6-include")],jt);var bi=(s,i)=>{var e;let t=s._$AN;if(t===void 0)return!1;for(let r of t)(e=r._$AO)==null||e.call(r,i,!1),bi(r,i);return!0},Ji=s=>{let i,t;do{if((i=s._$AM)===void 0)break;t=i._$AN,t.delete(s),s=i}while((t==null?void 0:t.size)===0)},lo=s=>{for(let i;i=s._$AM;s=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(s))break;t.add(s),tl(i)}};function Jn(s){this._$AN!==void 0?(Ji(this),this._$AM=s,lo(this)):this._$AM=s}function Gn(s,i=!1,t=0){let e=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(e))for(let a=t;a<e.length;a++)bi(e[a],!1),Ji(e[a]);else e!=null&&(bi(e,!1),Ji(e));else bi(this,s)}var tl=s=>{var i,t;s.type==Tt.CHILD&&((i=s._$AP)!=null||(s._$AP=Gn),(t=s._$AQ)!=null||(s._$AQ=Jn))},Gi=class extends we{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,e){super._$AT(i,t,e),lo(this),this.isConnected=i._$AU}_$AO(i,t=!0){var e,r;i!==this.isConnected&&(this.isConnected=i,i?(e=this.reconnected)==null||e.call(this):(r=this.disconnected)==null||r.call(this)),t&&(bi(this,i),Ji(this))}setValue(i){if(Ri(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var _r=class extends Gi{constructor(t){super(t);this.handlePointerDown=t=>{t.button!==0||this.host.disabled||this.spinOnLongPressCallback(t)};this.handlePointerUp=t=>{t==null||t.preventDefault(),t==null||t.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(t.type!==Tt.ELEMENT||!(t.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(t){return Y}update(t,[e]){return this.callbacks===void 0&&this.host===void 0&&(this.host=t.element,this.callbacks=O({},e),this.host.addEventListener("pointerdown",this.handlePointerDown)),mt}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(t){var e;t.preventDefault(),t.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(e=this.observer)==null||e.disconnect(),this.observer=new MutationObserver(r=>{r.forEach(a=>{a.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var t;clearInterval(this.interval),clearTimeout(this.timeout),(t=this.observer)==null||t.disconnect()}},Sr=oe(_r);var co,el=(co=navigator.userAgentData)==null?void 0:co.brands.some(s=>s.brand.includes("Chromium")),il=el?!1:navigator.userAgent.includes("Firefox"),A=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"help-text","label","left","right","message","placeholder");this.localize=new F(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.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsDate)!=null?e:null}set valueAsDate(t){let e=document.createElement("input");e.type="date",e.valueAsDate=t,this.value=e.value}get valueAsNumber(){var t,e;return(e=(t=this.input)==null?void 0:t.valueAsNumber)!=null?e:parseFloat(this.value)}set valueAsNumber(t){let 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){let e=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;t.key==="Enter"&&!e&&setTimeout(()=>{!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let t=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=t}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let t=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=t}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}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,r="none"){this.input.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.input.setRangeText(t,e,r,a),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(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.readonly&&(typeof this.value=="number"||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",d=this.size==="sm"?"text-sm":"text-base",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],p=this.disabled?"text-neutral-500":"text-primary",f={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],g={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c(this.disabled&&"pointer-events-none")}"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",d)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="relative w-full"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",h)}"></div><div part="base" class="${c("px-4 flex flex-row items-center rounded-default transition-all",this.size==="lg"?"py-2":"py-1",!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",n==="disabled"?"text-neutral-500":"text-black")}">${t.left?u`<slot name="left" part="left" class="${c("inline-flex",this.size==="sm"?"mr-1":"mr-2",p,g)}"></slot>`:""} <input part="input" id="input" class="${c("min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",this.size==="sm"?"h-6":"h-8",d)}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${k(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${k(this.placeholder)}" minlength="${k(this.minlength)}" maxlength="${k(this.maxlength)}" min="${k(this.min)}" max="${k(this.max)}" step="${k(this.step)}" .value="${le(this.value)}" autocapitalize="${k(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${k(this.type==="password"?"off":this.autocomplete)}" autocorrect="${k(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${k(this.pattern)}" enterkeyhint="${k(this.enterkeyhint)}" inputmode="${k(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${a?u`<button part="clear-button" class="${c("flex justify-center ",f)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-6-icon class="${c("icon-fill-neutral-800",g)}" library="system" name="closing-round"></sd-4-0-0-next-6-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?u`<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?u`<slot name="show-password-icon"><sd-4-0-0-next-6-icon class="${c(p,f,g)}" library="system" name="eye"></sd-4-0-0-next-6-icon></slot>`:u`<slot name="hide-password-icon"><sd-4-0-0-next-6-icon class="${c(p,f,g)}" library="system" name="eye-crossed-out"></sd-4-0-0-next-6-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!il?u`<sd-4-0-0-next-6-icon class="${c(p,f,g)}" library="system" name="calendar"></sd-4-0-0-next-6-icon>`:""} ${this.type==="time"?u`<sd-4-0-0-next-6-icon class="${c(p,f,g)}" library="system" name="clock"></sd-4-0-0-next-6-icon>`:""} ${this.type==="search"?u`<button class="flex items-center" type="button" tabindex="-1"><sd-4-0-0-next-6-icon class="${c(p,f,g)}" library="system" name="magnifying-glass"></sd-4-0-0-next-6-icon></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-6-icon part="invalid-icon" class="${c("text-error",f,g)}" library="system" name="risk"></sd-4-0-0-next-6-icon>`:""} ${this.showValidStyle&&this.styleOnValid?u`<sd-4-0-0-next-6-icon class="${c("text-success flex-shrink-0",f,g)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-6-icon>`:""} ${t.right?u`<slot name="right" part="right" class="${c("inline-flex",p,f,g)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?u`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${Sr({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-0-0-next-6-icon name="system/minus-circle" label="Decrease value" class="${c(p,f,g)}"></sd-4-0-0-next-6-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${Sr({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-4-0-0-next-6-icon name="system/plus-circle" label="Decrease value" class="${c(p,f,g)}"></sd-4-0-0-next-6-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${!r}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};A.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}: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}.stepper-button[disabled] sd-4-0-0-next-6-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`],o([b("#input")],A.prototype,"input",2),o([b("#invalid-message")],A.prototype,"invalidMessage",2),o([C()],A.prototype,"hasFocus",2),o([C()],A.prototype,"showValidStyle",2),o([C()],A.prototype,"showInvalidStyle",2),o([l({reflect:!0})],A.prototype,"type",2),o([l({reflect:!0})],A.prototype,"size",2),o([l()],A.prototype,"inputmode",2),o([l()],A.prototype,"value",2),o([Ot()],A.prototype,"defaultValue",2),o([l()],A.prototype,"placeholder",2),o([l()],A.prototype,"label",2),o([l({attribute:"help-text"})],A.prototype,"helpText",2),o([l({type:Boolean})],A.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],A.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],A.prototype,"readonly",2),o([l({attribute:"password-toggle",type:Boolean})],A.prototype,"passwordToggle",2),o([l({attribute:"password-visible",type:Boolean})],A.prototype,"passwordVisible",2),o([l({attribute:"spin-buttons",type:Boolean})],A.prototype,"spinButtons",2),o([l({type:Number})],A.prototype,"minlength",2),o([l({type:Number})],A.prototype,"maxlength",2),o([l()],A.prototype,"min",2),o([l()],A.prototype,"max",2),o([l({reflect:!0})],A.prototype,"form",2),o([l()],A.prototype,"name",2),o([l()],A.prototype,"title",2),o([l({type:Boolean,reflect:!0})],A.prototype,"required",2),o([l()],A.prototype,"pattern",2),o([l()],A.prototype,"step",2),o([l()],A.prototype,"autocapitalize",2),o([l()],A.prototype,"autocorrect",2),o([l()],A.prototype,"autocomplete",2),o([l({type:Boolean})],A.prototype,"autofocus",2),o([l()],A.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],A.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],A.prototype,"spellcheck",2),o([w("disabled",{waitUntilFirstUpdate:!0})],A.prototype,"handleDisabledChange",1),o([w("step",{waitUntilFirstUpdate:!0})],A.prototype,"handleStepChange",1),o([w("value",{waitUntilFirstUpdate:!0})],A.prototype,"handleValueChange",1),A=o([y("sd-4-0-0-next-6-input")],A);var Ct=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href=""}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){let t={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return u`<a part="base" class="${c("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="${k(this.href||void 0)}" target="${k(this.target||void 0)}" download="${k(this.download)}" rel="${k(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="${c("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="${c("inline",t["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};Ct.styles=[...m.styles,v`::slotted(sd-4-0-0-next-6-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-0-0-next-6-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-0-0-next-6-icon){font-size:var(--sd-font-size-xl,1.5rem)}`],o([b("a")],Ct.prototype,"button",2),o([l({type:Boolean,reflect:!0})],Ct.prototype,"standalone",2),o([l({reflect:!0})],Ct.prototype,"size",2),o([l({type:Boolean,reflect:!0})],Ct.prototype,"inverted",2),o([l()],Ct.prototype,"href",2),o([l()],Ct.prototype,"target",2),o([l()],Ct.prototype,"download",2),Ct=o([y("sd-4-0-0-next-6-link")],Ct);var Lt=class extends m{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.marker={cluster:qe`<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:qe`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75"><path d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z"/><circle cx="30" cy="28" r="10" fill="#fff"/></svg>`,place:qe`<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>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return D`<${e} part="base" class="${c("flex justify-center",!this.notInteractive&&"focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2")}" href="${k(t?this.href:void 0)}" target="${k(t?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${k(this.notInteractive||t?void 0:"button")}" aria-labelledby="${k(this.notInteractive?void 0:"content")}"><div part="marker" class="${c("inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110 fill-primary-500",this.variant==="cluster"&&!this.notInteractive&&"transition-all duration-200 ease-in-out hover:scale-110 hover:fill-primary-500",this.variant==="main"&&this.state==="hover"&&"fill-accent-550",this.variant==="main"&&this.state==="active"&&"fill-accent-700",this.variant==="main"&&!this.notInteractive&&"hover:fill-accent-550 active:fill-accent-700",this.variant==="place"&&this.state==="default"&&"fill-white",this.variant==="place"&&this.state==="hover"&&"fill-primary-100",this.variant==="place"&&this.state==="active"&&"fill-primary-200",this.variant==="place"&&!this.notInteractive&&"hover:fill-primary-100",{cluster:"fill-primary",main:"fill-accent *:drop-shadow-md",place:"*:drop-shadow-md"}[this.variant])}">${this.marker[this.variant]}</div><div id="content" part="content" class="${c("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold text-white")}"><slot></slot></div></${e}>`}};Lt.styles=[...m.styles,v`:host{display:block}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem)*var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem)*var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem)*var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{font-size:calc(var(--sd-font-size-3xl,2rem)*var(--map-marker-scaling,1))}`],o([l({reflect:!0})],Lt.prototype,"variant",2),o([l({reflect:!0})],Lt.prototype,"state",2),o([l({type:Boolean,reflect:!0})],Lt.prototype,"animated",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],Lt.prototype,"notInteractive",2),o([l()],Lt.prototype,"href",2),o([l()],Lt.prototype,"target",2),Lt=o([y("sd-4-0-0-next-6-map-marker")],Lt);var rt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","description","children");this.vertical=!1;this.size="md";this.current=!1;this.disabled=!1;this.chevron=!1;this.relaxed=!1;this.divider=!1;this.indented=!1;this.open=!1;this.separated=!1}get isButton(){return!this.href&&!this.hasSlotController.test("children")}get isLink(){return!!this.href}get 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})}get calculatePaddingX(){return this.relaxed&&this.indented?"pl-8 pr-4":this.relaxed?"px-4":this.indented?"pl-4":""}get tag(){return this.isAccordion&&!this.isLink?X`summary`:this.separated?X`div`:this.isLink?X`a`:X`button`}render(){let t=this.tag,e=this.isLink,r=this.isButton,a=this.isAccordion,n={label:this.hasSlotController.test("[default]"),main:this.hasSlotController.test("main"),description:this.hasSlotController.test("description"),children:this.hasSlotController.test("children")},d=this.vertical?"pb-3":"pb-2",h=D`<${t} part="base" class="${c("cursor-pointer relative focus-visible:focus-outline",{md:"text-base",lg:"text-lg",sm:"text-[14px]"}[this.size],this.disabled?"text-neutral-500 pointer-events-none":"text-primary",a?"flex flex-col":"inline-block w-full",this.divider&&this.vertical&&"mt-0.25",!this.vertical&&"inline-flex items-center",!this.separated&&"hover:bg-neutral-200 group transition-all min-h-[48px] px-4")}" aria-controls="${k(a?"navigation-item-details":void 0)}" aria-current="${k(this.current?"page":void 0)}" aria-disabled="${this.disabled}" ?disabled="${k(r?this.disabled:void 0)}" href="${k(e?this.href:void 0)}" target="${k(e?this.target:void 0)}" download="${k(e?this.download:void 0)}" rel="${k(e&&this.target?"noreferrer noopener":void 0)}" role="${e?"link":"button"}" tabindex="${this.disabled||this.separated?"-1":"0"}" @click="${this.separated?void 0:a?this.handleClickSummary:r?this.handleClickButton:void 0}"><div part="current-indicator" class="${c("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="${c("relative pt-3 inline-flex justify-between items-center",a?"grow":"w-full",n.description||this.separated?"pb-1":d,this.calculatePaddingX)}">${this.divider&&this.vertical?D`<sd-4-0-0-next-6-divider part="divider" class="${c("w-full transition-all absolute -top-0.25 left-0",this.calculatePaddingX)}"></sd-4-0-0-next-6-divider>`:""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated?D`<a class="${c("mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",!n.description&&"py-4")}" href="${k(e?this.href:void 0)}" target="${k(e?this.target:void 0)}" download="${k(e?this.download:void 0)}"><slot part="content" class="inline"></slot></a>`:D`<slot part="content" class="inline"></slot>`} </span>${(this.chevron||n.children)&&this.vertical?this.separated?D`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-6-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("mr-4 h-6 w-6 transition-all",a||this.separated?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-4-0-0-next-6-icon></button>`:D`<sd-4-0-0-next-6-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${c("h-6 w-6 ml-2 transition-all",a?this.open?"rotate-180":"rotate-0":"rotate-[270deg]")}"></sd-4-0-0-next-6-icon>`:""} </span>${n.description&&this.vertical?D`<slot name="description" part="description" class="${c("inline-block text-sm text-left text-black",a||this.separated?"grow":"w-full",this.separated?"px-4":this.calculatePaddingX,d)}"></slot>`:""}</${t}>`;return a?D`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative flex">${h}<slot name="children"></slot></details>`:this.separated?D`<div part="details" id="navigation-item-details" class="relative flex flex-col">${h}${this.open?D`<slot name="children"></slot>`:""}</div>`:D`${h}`}};rt.styles=[...m.styles,v`:host{box-sizing:border-box;display:inline-block;position:relative}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`],o([b('a[part="base"], button[part="base"]')],rt.prototype,"button",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"vertical",2),o([l({reflect:!0})],rt.prototype,"size",2),o([l({reflect:!0})],rt.prototype,"href",2),o([l()],rt.prototype,"target",2),o([l()],rt.prototype,"download",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"current",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"chevron",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"relaxed",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"divider",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"indented",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],rt.prototype,"separated",2),rt=o([y("sd-4-0-0-next-6-navigation-item")],rt);var rl=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--top-right"}),sl=Object.assign(document.createElement("div"),{className:"sd-toast-stack sd-toast-stack--bottom-center"}),gt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";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 K(this.base),this.base.hidden=!1;let{keyframes:t,options:e}=B(this,"notification.show",{dir:this.localize.dir()});await R(this.base,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await K(this.base);let{keyframes:t,options:e}=B(this,"notification.hide",{dir:this.localize.dir()});await R(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,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}async toast(){return new Promise(t=>{let e=this.toastStack==="bottom-center"?sl:rl;e.parentElement===null&&document.body.append(e),e.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{e.removeChild(this),t(),e.querySelector("sd-4-0-0-next-6-notification")===null&&e.remove()},{once:!0})})}render(){return u`<div part="base" class="${c("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="${c("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-4-0-0-next-6-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-4-0-0-next-6-icon></slot><div part="content" class="${c("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?u`<sd-4-0-0-next-6-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-4-0-0-next-6-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-6-icon></sd-4-0-0-next-6-button>`:""}</div>${this.durationIndicator?u`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${c("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 border border-neutral-400"></div>`:""}</div>`}};gt.styles=[...m.styles,v`:host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],o([b('[part~="base"]')],gt.prototype,"base",2),o([l({reflect:!0})],gt.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],gt.prototype,"open",2),o([l({type:Boolean,reflect:!0})],gt.prototype,"closable",2),o([l({type:Number})],gt.prototype,"duration",2),o([l({type:Boolean,reflect:!0,attribute:"duration-indicator"})],gt.prototype,"durationIndicator",2),o([l({reflect:!0,attribute:"toast-stack"})],gt.prototype,"toastStack",2),o([w("open",{waitUntilFirstUpdate:!0})],gt.prototype,"handleOpenChange",1),o([w("duration")],gt.prototype,"handleDurationChange",1),gt=o([y("sd-4-0-0-next-6-notification")],gt);H("notification.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}});H("notification.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}});var ht=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(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(){let t=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=t;return}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(){var t;return((t=this.textContent)!=null?t:"").trim()}render(){let t={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return u`<div part="base" class="${c("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="${c("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?u`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${c("relative flex flex-shrink-0 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?u`<sd-4-0-0-next-6-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-6-icon>`:""}</span>`:""} ${t.left?u`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${t.right?u`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};ht.styles=[...m.styles,v`:host{display:block;outline:2px solid transparent!important;outline-offset:2px!important;position:relative;width:100%}`],o([b('[part="base"]')],ht.prototype,"defaultSlot",2),o([C()],ht.prototype,"current",2),o([C()],ht.prototype,"selected",2),o([C()],ht.prototype,"hasHover",2),o([l({reflect:!0})],ht.prototype,"size",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"checkbox",2),o([l({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),o([l({reflect:!0})],ht.prototype,"value",2),o([w("disabled")],ht.prototype,"handleDisabledChange",1),o([w("selected")],ht.prototype,"handleSelectedChange",1),o([w("value")],ht.prototype,"handleValueChange",1),ht=o([y("sd-4-0-0-next-6-option")],ht);var Pt=class extends m{constructor(){super(...arguments);this.disabled=!1;this.label=""}handleDisableOptions(){let{disabled:t}=this;this.defaultSlot.assignedElements().filter(e=>e.tagName.toLowerCase()==="sd-4-0-0-next-6-option").forEach(e=>{e.disabled=t})}handleDisabledChange(){this.handleDisableOptions()}render(){let{disabled:t}=this;return D`<div role="${t?"presentation":"group"}" class="${c(this.disabled?"text-neutral-500":"")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-6-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-0-0-next-6-divider><div part="label-container" class="${c(this.disabled?"text-neutral-500":"text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`}};Pt.dependencies={"sd-4-0-0-next-6-divider":Kt},Pt.styles=[...m.styles,v`:host{--display-divider:block}#divider{display:var(--display-divider)}`],o([b("slot:not([name])")],Pt.prototype,"defaultSlot",2),o([l({reflect:!0,type:Boolean})],Pt.prototype,"disabled",2),o([l()],Pt.prototype,"label",2),o([w("disabled",{waitUntilFirstUpdate:!0})],Pt.prototype,"handleDisabledChange",1),Pt=o([y("sd-4-0-0-next-6-optgroup")],Pt);var Ee=class extends ft{constructor(){super(...arguments);this.expandable=!1}render(){let t=this.expandable?X`details`:X`div`,e=this.expandable?X`summary`:X`div`;return D`
110
110
  <${t} part="base" class="sm:p-6">
111
111
  <${e}
112
112
  part="header"
@@ -135,32 +135,32 @@ var tr=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnProperty
135
135
  part="summary-icon"
136
136
  class=${c("flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",this.open&&"rotate-180",!this.expandable&&"hidden")}
137
137
  ><slot name="expand-icon" class=${c(this.open&&"hidden")}>
138
- <sd-4-0-0-next-4-icon library="system" name="chevron-down"></sd-4-0-0-next-4-icon>
138
+ <sd-4-0-0-next-6-icon library="system" name="chevron-down"></sd-4-0-0-next-6-icon>
139
139
  </slot>
140
140
  <slot name="collapse-icon" class=${c(!this.open&&"hidden")}>
141
- <sd-4-0-0-next-4-icon library="system" name="chevron-down"></sd-4-0-0-next-4-icon> </slot
141
+ <sd-4-0-0-next-6-icon library="system" name="chevron-down"></sd-4-0-0-next-6-icon> </slot
142
142
  ></span>
143
143
  </${e}>
144
144
  <div part="content" id="content" class=${c("overflow-hidden",!this.expandable&&"hidden")}>
145
145
  <slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot>
146
146
  </div>
147
147
  </${t}>
148
- `}};Ee.styles=[...ft.styles,v`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],o([l({type:Boolean,reflect:!0})],Ee.prototype,"expandable",2),Ee=o([y("sd-4-0-0-next-4-quickfact")],Ee);S("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});S("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var pt=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.invalid=!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 u`<span part="base" class="${c("sd-4-0-0-next-4-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",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("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?u`<span part="checked" class="${c("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="${c("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pt.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],pt.prototype,"checked",2),o([C()],pt.prototype,"hasFocus",2),o([l({reflect:!0})],pt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),o([l()],pt.prototype,"value",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"invalid",2),o([w("checked")],pt.prototype,"handleCheckedChange",1),o([w("disabled",{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),pt=o([y("sd-4-0-0-next-4-radio")],pt);var vt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled){t.preventDefault(),t.stopPropagation();return}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(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return u`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"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 border-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",r)}" aria-disabled="${this.disabled}" type="button" value="${k(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?u`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};vt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-0-0-next-4-button-group__button--first:not(.sd-4-0-0-next-4-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-4-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-4-button-group__button--last:not(.sd-4-0-0-next-4-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-4-button-group__button:not(.sd-4-0-0-next-4-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-0-0-next-4-button-group__button--hover){z-index:10}:host(.sd-4-0-0-next-4-button-group__button--focus),:host(.sd-4-0-0-next-4-button-group__button[checked]){z-index:20}`],o([b(".button")],vt.prototype,"input",2),o([b(".hidden-input")],vt.prototype,"hiddenInput",2),o([C()],vt.prototype,"hasFocus",2),o([l({reflect:!0})],vt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"checked",2),o([l()],vt.prototype,"value",2),o([w("disabled",{waitUntilFirstUpdate:!0})],vt.prototype,"handleDisabledChange",1),vt=o([y("sd-4-0-0-next-4-radio-button")],vt);var Yt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=vi(t.target);e==null||e.classList.add("sd-4-0-0-next-4-button-group__button--focus")}handleBlur(t){let e=vi(t.target);e==null||e.classList.remove("sd-4-0-0-next-4-button-group__button--focus")}handleMouseOver(t){let e=vi(t.target);e==null||e.classList.add("sd-4-0-0-next-4-button-group__button--hover")}handleMouseOut(t){let e=vi(t.target);e==null||e.classList.remove("sd-4-0-0-next-4-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=vi(e);a!==null&&(a.classList.add("sd-4-0-0-next-4-button-group__button"),a.classList.toggle("sd-4-0-0-next-4-button-group__button--first",r===0),a.classList.toggle("sd-4-0-0-next-4-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-4-0-0-next-4-button-group__button--last",r===t.length-1),a.classList.toggle("sd-4-0-0-next-4-button-group__button--radio",a.tagName.toLowerCase()==="sd-4-0-0-next-4-radio-button"))})}render(){return u`<slot part="base" 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>`}};Yt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([b("slot")],Yt.prototype,"defaultSlot",2),o([C()],Yt.prototype,"disableRole",2),o([l()],Yt.prototype,"label",2),Yt=o([y("sd-4-0-0-next-4-button-group")],Yt);function vi(s){var t;let i="sd-4-0-0-next-4-button, sd-4-0-0-next-4-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var W=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?Cs:t?ks:Ye}get validationMessage(){let 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-4-0-0-next-4-radio, sd-4-0-0-next-4-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-4-0-0-next-4-radio, sd-4-0-0-next-4-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(p=>!p.disabled),r=(h=e.find(p=>p.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(p=>{p.checked=!1,this.hasButtonGroup||(p.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof pt&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-4-0-0-next-4-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-4-0-0-next-4-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-4-0-0-next-4-radio")&&customElements.get("sd-4-0-0-next-4-radio-button")){this.syncRadioElements();return}customElements.get("sd-4-0-0-next-4-radio")?this.syncRadioElements():customElements.whenDefined("sd-4-0-0-next-4-radio").then(()=>this.syncRadios()),customElements.get("sd-4-0-0-next-4-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-4-0-0-next-4-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let 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(){let t=this.hasSlotController.test("label"),e=this.label?!0:!!t,r=u`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return u`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("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></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("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?u`<sd-4-0-0-next-4-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${r}</sd-4-0-0-next-4-button-group>`:r}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};W.dependencies={"sd-4-0-0-next-4-button-group":Yt},W.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-4-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-4-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-4-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-4-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-4-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-4-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([b("slot:not([name])")],W.prototype,"defaultSlot",2),o([b("#validation-input")],W.prototype,"validationInput",2),o([b("#invalid-message")],W.prototype,"invalidMessage",2),o([C()],W.prototype,"hasButtonGroup",2),o([C()],W.prototype,"defaultValue",2),o([C()],W.prototype,"showInvalidStyle",2),o([l({reflect:!0})],W.prototype,"size",2),o([l({type:Boolean,reflect:!0})],W.prototype,"required",2),o([l({reflect:!0})],W.prototype,"orientation",2),o([l()],W.prototype,"label",2),o([l({type:Boolean,reflect:!0})],W.prototype,"boldLabel",2),o([l()],W.prototype,"name",2),o([l({reflect:!0})],W.prototype,"value",2),o([l({reflect:!0})],W.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],W.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],W.prototype,"handleInvalidChange",1),o([w("value")],W.prototype,"handleValueChange",1),W=o([y("sd-4-0-0-next-4-radio-group")],W);var ut=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!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(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let p=e||a,f=r||n;p&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!p),d&&p&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let 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 u`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?u`${this.isScrollHorizontalEnabled?u`${this.canScroll.left?u`<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="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-4-0-0-next-4-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-4-icon></slot></button></div>`:null} ${this.canScroll.right?u`<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="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-4-0-0-next-4-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-4-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?u`${this.canScroll.up?u`<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="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-4-0-0-next-4-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-4-icon></slot></button></div>`:null} ${this.canScroll.down?u`<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="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-4-0-0-next-4-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-4-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?u`${this.isScrollHorizontalEnabled?u`${this.canScroll.left?u`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?u`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?u`${this.canScroll.up?u`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?u`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};ut.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.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,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-0-next-4-icon--top{align-self:flex-start}.sd-4-0-0-next-4-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],ut.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"inset",2),o([l({type:Number,reflect:!0})],ut.prototype,"step",2),o([C()],ut.prototype,"canScroll",2),o([C()],ut.prototype,"isScrollHorizontalEnabled",2),o([C()],ut.prototype,"isScrollVerticalEnabled",2),o([C()],ut.prototype,"isKeyboardNavigation",2),ut=o([y("sd-4-0-0-next-4-scrollable")],ut);var z=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-4-0-0-next-4-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new F(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder=this.localize.term("selectDefaultPlaceholder");this.disabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!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=>u`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
148
+ `}};Ee.styles=[...ft.styles,v`:host{display:block}@media (min-width:640px){[part=summary-icon]{font-size:var(--sd-spacing-12,3rem)}}[part=icon]{font-size:var(--sd-spacing-12,3rem)}@media (min-width:640px){[part=icon]{font-size:var(--sd-spacing-24,6rem)}}`],o([l({type:Boolean,reflect:!0})],Ee.prototype,"expandable",2),Ee=o([y("sd-4-0-0-next-6-quickfact")],Ee);H("quickfact.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"ease"}});H("quickfact.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"ease"}});var pt=class extends m{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.invalid=!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 u`<span part="base" class="${c("sd-4-0-0-next-6-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",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${c("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?u`<span part="checked" class="${c("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="${c("ml-2 select-none inline-block",this.disabled?"text-neutral-500":this.invalid?"text-error":"text-black")}"></slot></span>`}};pt.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`],o([C()],pt.prototype,"checked",2),o([C()],pt.prototype,"hasFocus",2),o([l({reflect:!0})],pt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),o([l()],pt.prototype,"value",2),o([l({type:Boolean,reflect:!0})],pt.prototype,"invalid",2),o([w("checked")],pt.prototype,"handleCheckedChange",1),o([w("disabled",{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),pt=o([y("sd-4-0-0-next-6-radio")],pt);var vt=class extends m{constructor(){super(...arguments);this.hasSlotController=new _(this,"[default]","icon");this.hasFocus=!1;this.size="lg";this.disabled=!1;this.checked=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","presentation")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(t){if(this.disabled){t.preventDefault(),t.stopPropagation();return}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(){let t=this.hasSlotController.test("[default]"),e=this.hasSlotController.test("icon"),r=`${this.size}-${t?"label":"no-label"}`;return u`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked?" button--checked":""}`}" role="radio" aria-checked="${this.checked}" class="${c("relative text-center border rounded-default transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",this.size==="sm"?"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 border-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",r)}" aria-disabled="${this.disabled}" type="button" value="${k(this.value)}" tabindex="${this.checked?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon" part="icon" class="${c(e&&"inline-flex relative items-center",{sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size])}" ?hidden="${!e}"></slot>${t?u`<slot part="label" class="button__label inline-flex relative items-center whitespace-nowrap"></slot>`:null}</button></div>`}};vt.styles=[...m.styles,v`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-0-0-next-6-button-group__button--first:not(.sd-4-0-0-next-6-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-6-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-6-button-group__button--last:not(.sd-4-0-0-next-6-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-6-button-group__button:not(.sd-4-0-0-next-6-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-0-0-next-6-button-group__button--hover){z-index:10}:host(.sd-4-0-0-next-6-button-group__button--focus),:host(.sd-4-0-0-next-6-button-group__button[checked]){z-index:20}`],o([b(".button")],vt.prototype,"input",2),o([b(".hidden-input")],vt.prototype,"hiddenInput",2),o([C()],vt.prototype,"hasFocus",2),o([l({reflect:!0})],vt.prototype,"size",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],vt.prototype,"checked",2),o([l()],vt.prototype,"value",2),o([w("disabled",{waitUntilFirstUpdate:!0})],vt.prototype,"handleDisabledChange",1),vt=o([y("sd-4-0-0-next-6-radio-button")],vt);var Yt=class extends m{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(t){let e=vi(t.target);e==null||e.classList.add("sd-4-0-0-next-6-button-group__button--focus")}handleBlur(t){let e=vi(t.target);e==null||e.classList.remove("sd-4-0-0-next-6-button-group__button--focus")}handleMouseOver(t){let e=vi(t.target);e==null||e.classList.add("sd-4-0-0-next-6-button-group__button--hover")}handleMouseOut(t){let e=vi(t.target);e==null||e.classList.remove("sd-4-0-0-next-6-button-group__button--hover")}handleSlotChange(){let t=[...this.defaultSlot.assignedElements({flatten:!0})];t.forEach(e=>{let r=t.indexOf(e),a=vi(e);a!==null&&(a.classList.add("sd-4-0-0-next-6-button-group__button"),a.classList.toggle("sd-4-0-0-next-6-button-group__button--first",r===0),a.classList.toggle("sd-4-0-0-next-6-button-group__button--inner",r>0&&r<t.length-1),a.classList.toggle("sd-4-0-0-next-6-button-group__button--last",r===t.length-1),a.classList.toggle("sd-4-0-0-next-6-button-group__button--radio",a.tagName.toLowerCase()==="sd-4-0-0-next-6-radio-button"))})}render(){return u`<slot part="base" 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>`}};Yt.styles=[...m.styles,v`:host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],o([b("slot")],Yt.prototype,"defaultSlot",2),o([C()],Yt.prototype,"disableRole",2),o([l()],Yt.prototype,"label",2),Yt=o([y("sd-4-0-0-next-6-button-group")],Yt);function vi(s){var t;let i="sd-4-0-0-next-6-button, sd-4-0-0-next-6-radio-button";return(t=s.closest(i))!=null?t:s.querySelector(i)}var W=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.boldLabel=!1;this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?Cs:t?ks:Ye}get validationMessage(){let 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-4-0-0-next-6-radio, sd-4-0-0-next-6-radio-button")]}handleRadioClick(t){let e=t.target.closest("sd-4-0-0-next-6-radio, sd-4-0-0-next-6-radio-button"),r=this.getAllRadios(),a=this.value;e.disabled||(this.value=e.value,r.forEach(n=>n.checked=n===e),this.value!==a&&(this.emit("sd-change"),this.emit("sd-input")))}handleKeyDown(t){var h;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(p=>!p.disabled),r=(h=e.find(p=>p.checked))!=null?h:e[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,d=e.indexOf(r)+a;d<0&&(d=e.length-1),d>e.length-1&&(d=0),this.getAllRadios().forEach(p=>{p.checked=!1,this.hasButtonGroup||(p.tabIndex=-1)}),this.value=e[d].value,e[d].checked=!0,this.hasButtonGroup?e[d].shadowRoot.querySelector("button").focus():(e[d].tabIndex=0,e[d].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios(),r=t.find(a=>a.checked)||t[0];r&&r.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,r;let t=this.getAllRadios();if(await Promise.all(t.map(async a=>{await a.updateComplete,a.checked=a.value===this.value,a.size=this.size,a instanceof pt&&(a.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(a=>a.tagName.toLowerCase()==="sd-4-0-0-next-6-radio-button"),!t.some(a=>a.checked))if(this.hasButtonGroup){let a=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");a&&(a.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let a=(r=this.shadowRoot)==null?void 0:r.querySelector("sd-4-0-0-next-6-button-group");a&&(a.disableRole=!0)}}syncRadios(){if(customElements.get("sd-4-0-0-next-6-radio")&&customElements.get("sd-4-0-0-next-6-radio-button")){this.syncRadioElements();return}customElements.get("sd-4-0-0-next-6-radio")?this.syncRadioElements():customElements.whenDefined("sd-4-0-0-next-6-radio").then(()=>this.syncRadios()),customElements.get("sd-4-0-0-next-6-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-4-0-0-next-6-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let 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(){let t=this.hasSlotController.test("label"),e=this.label?!0:!!t,r=u`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return u`<fieldset part="form-control" class="${c("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message"><div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${c("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></legend><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("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?u`<sd-4-0-0-next-6-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${r}</sd-4-0-0-next-6-button-group>`:r}</div></fieldset>${this.formControlController.renderInvalidMessage()}`}};W.dependencies={"sd-4-0-0-next-6-button-group":Yt},W.styles=[...m.styles,v`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-6-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-6-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-6-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-6-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-6-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-6-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`],o([b("slot:not([name])")],W.prototype,"defaultSlot",2),o([b("#validation-input")],W.prototype,"validationInput",2),o([b("#invalid-message")],W.prototype,"invalidMessage",2),o([C()],W.prototype,"hasButtonGroup",2),o([C()],W.prototype,"defaultValue",2),o([C()],W.prototype,"showInvalidStyle",2),o([l({reflect:!0})],W.prototype,"size",2),o([l({type:Boolean,reflect:!0})],W.prototype,"required",2),o([l({reflect:!0})],W.prototype,"orientation",2),o([l()],W.prototype,"label",2),o([l({type:Boolean,reflect:!0})],W.prototype,"boldLabel",2),o([l()],W.prototype,"name",2),o([l({reflect:!0})],W.prototype,"value",2),o([l({reflect:!0})],W.prototype,"form",2),o([w("size",{waitUntilFirstUpdate:!0})],W.prototype,"handleSizeChange",1),o([w("showInvalidStyle",{waitUntilFirstUpdate:!0})],W.prototype,"handleInvalidChange",1),o([w("value")],W.prototype,"handleValueChange",1),W=o([y("sd-4-0-0-next-6-radio-group")],W);var ut=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.orientation="horizontal";this.scrollbars=!1;this.buttons=!1;this.shadows=!1;this.inset=!1;this.step=150;this.canScroll={left:!1,right:!1,up:!1,down:!1};this.isScrollHorizontalEnabled=!1;this.isScrollVerticalEnabled=!1;this.isKeyboardNavigation=!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(){let t=this.orientation;this.isScrollHorizontalEnabled=t==="horizontal"||t==="auto",this.isScrollVerticalEnabled=t==="vertical"||t==="auto"}get container(){return this.renderRoot.querySelector(".scroll-container")}updateScrollIndicatorVisibility(){let t=this.container;if(!t)return;let e=this.isScrollHorizontalEnabled&&t.scrollLeft>0,r=this.isScrollHorizontalEnabled&&t.scrollLeft+t.clientWidth<t.scrollWidth-1,a=this.isScrollVerticalEnabled&&t.scrollTop>0,n=this.isScrollVerticalEnabled&&t.scrollTop+t.clientHeight<t.scrollHeight-1,d=this.renderRoot.querySelector('[part="button-start"]'),h=this.renderRoot.querySelector('[part="button-end"]');this.canScroll={left:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:e,right:this.isKeyboardNavigation?this.isScrollHorizontalEnabled:r,up:this.isKeyboardNavigation?this.isScrollVerticalEnabled:a,down:this.isKeyboardNavigation?this.isScrollVerticalEnabled:n};let p=e||a,f=r||n;p&&this.dispatchEvent(new CustomEvent("start")),f&&this.dispatchEvent(new CustomEvent("end")),this.isKeyboardNavigation&&(d&&(d.hidden=!p),d&&p&&!(n||r)&&d.focus(),h&&(h.hidden=!f),h&&f&&!(a||e)&&h.focus())}handleScroll(t,e){var h;let r=t==="left"||t==="up"?-this.step:this.step,a=t==="left"||t==="right"?"left":"top";this.isKeyboardNavigation=(e==null?void 0:e.pointerType)!=="mouse";let n={behavior:"smooth"};n[a]=r,(h=this.scrollContainer)==null||h.scrollBy(n);let d=`button-${t}`;this.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0}))}render(){let 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 u`<div part="base" class="${c("scroll-container flex overflow-hidden flex-1",this.orientation==="horizontal"&&"scroll-horizontal flex-row whitespace-nowrap items-center overflow-x-scroll overflow-y-hidden",this.orientation==="vertical"&&"scroll-vertical justify-items-center overflow-y-scroll overflow-x-hidden",this.orientation==="auto"&&"scroll-auto overflow-auto",this.scrollbars?"show-scrollbars":"hide-scrollbars",this.inset?"p-4":"")}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons?u`${this.isScrollHorizontalEnabled?u`${this.canScroll.left?u`<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="${c(t)}" @click="${r=>this.handleScroll("left",r)}"><slot name="icon-start"><sd-4-0-0-next-6-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-6-icon></slot></button></div>`:null} ${this.canScroll.right?u`<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="${c(t)}" @click="${r=>this.handleScroll("right",r)}"><slot name="icon-end"><sd-4-0-0-next-6-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-6-icon></slot></button></div>`:null}`:null} ${this.isScrollVerticalEnabled?u`${this.canScroll.up?u`<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="${c(t)}" @click="${r=>this.handleScroll("up",r)}"><slot name="icon-start"><sd-4-0-0-next-6-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-0-0-next-6-icon></slot></button></div>`:null} ${this.canScroll.down?u`<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="${c(t)}" @click="${r=>this.handleScroll("down",r)}"><slot name="icon-end"><sd-4-0-0-next-6-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-0-0-next-6-icon></slot></button></div>`:null}`:null}`:null} ${this.shadows?u`${this.isScrollHorizontalEnabled?u`${this.canScroll.left?u`<div part="shadow-left" class="${e} left top-0 left-0 w-[6px] h-full"></div>`:null} ${this.canScroll.right?u`<div part="shadow-right" class="${e} right top-0 right-0 w-[6px] h-full"></div>`:null}`:null} ${this.isScrollVerticalEnabled?u`${this.canScroll.up?u`<div part="shadow-top" class="${e} top top-0 left-0 w-full h-[6px]"></div>`:null} ${this.canScroll.down?u`<div part="shadow-bottom" class="${e} bottom bottom-0 left-0 w-full h-[6px]"></div>`:null}`:null}`:null}`}};ut.styles=[...m.styles,v`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.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,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-0-0-next-6-icon--top{align-self:flex-start}.sd-4-0-0-next-6-icon--down{align-self:flex-end}`],o([l({type:String,reflect:!0})],ut.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"scrollbars",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"buttons",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"shadows",2),o([l({type:Boolean,reflect:!0})],ut.prototype,"inset",2),o([l({type:Number,reflect:!0})],ut.prototype,"step",2),o([C()],ut.prototype,"canScroll",2),o([C()],ut.prototype,"isScrollHorizontalEnabled",2),o([C()],ut.prototype,"isScrollVerticalEnabled",2),o([C()],ut.prototype,"isKeyboardNavigation",2),ut=o([y("sd-4-0-0-next-6-scrollable")],ut);var z=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{assumeInteractionOn:["sd-blur","sd-4-0-0-next-6-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new F(this);this.typeToSelectString="";this.hasHover=!1;this.displayLabel="";this.deletedTagLabel="";this.hasFocus=!1;this.selectedOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.defaultValue="";this.open=!1;this.size="lg";this.placement="bottom";this.label="";this.placeholder=this.localize.term("selectDefaultPlaceholder");this.disabled=!1;this.helpText="";this.currentPlacement=this.placement;this.clearable=!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=>u`<sd-4-0-0-next-6-tag ?disabled="${this.disabled}" part="tag" exportparts="
149
149
  base:tag__base,
150
150
  content:tag__content,
151
151
  removable-indicator:tag__removable-indicator,
152
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-0-0-next-4-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,r=e.closest(".select__clear")!==null,a=e.closest("sd-4-0-0-next-4-icon-button")!==null;if(!(r||a)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.getAllOptions(),d=n.indexOf(this.currentOption),h=Math.max(0,d);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(h=d+1,h>n.length-1&&(h=0)):t.key==="ArrowUp"?(h=d-1,h<0&&(h=n.length-1)):t.key==="Home"?h=0:t.key==="End"&&(h=n.length-1),this.setCurrentOption(n[h])}if(t.key.length===1||t.key==="Backspace"){let n=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let d of n)if(d.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(d);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var r,a,n;if(t.key==="Backspace"&&this.multiple){t.stopPropagation();let d=(r=t.currentTarget)==null?void 0:r.parentElement,h=(a=d==null?void 0:d.previousElementSibling)==null?void 0:a.querySelector("sd-4-0-0-next-4-tag"),p=(n=d==null?void 0:d.nextElementSibling)==null?void 0:n.querySelector("sd-4-0-0-next-4-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{p?p.focus():h?h.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelectorAll("sd-4-0-0-next-4-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){let r=t.composedPath().some(a=>a instanceof HTMLSlotElement&&a.name==="removable-indicator");this.disabled||r||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-4-0-0-next-4-option"),a=this.value;r&&!r.disabled&&(this.multiple?this.toggleOptionSelection(r):this.setSelectedOptions(r),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],r=[];customElements.get("sd-4-0-0-next-4-option")?(t.forEach(a=>{this.multiple&&(a.checkbox=!0),r.push(a.value)}),this.setSelectedOptions(t.filter(a=>e.includes(a.value)))):customElements.whenDefined("sd-4-0-0-next-4-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-4-0-0-next-4-option")]}getFirstOption(){return this.querySelector("sd-4-0-0-next-4-option")}setCurrentOption(t){this.getAllOptions().forEach(r=>{r.current=!1,r.tabIndex=-1}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){let e=this.getAllOptions(),r=Array.isArray(t)?t:[t];e.forEach(a=>a.selected=!1),r.length&&r.forEach(a=>a.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}selectionChanged(t){var e,r,a,n;t&&this.multiple?this.selectedOptions.find(d=>d.value===t.value)?this.selectedOptions=this.selectedOptions.filter(d=>d.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(d=>d.selected),this.multiple?(this.value=this.selectedOptions.map(d=>d.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(r=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?r:"",this.displayLabel=(n=(a=this.selectedOptions[0])==null?void 0:a.getTextLabel())!=null?n:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return u`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof r=="string"?si(r):r}</div>`}return[u``]}):[u`<sd-4-0-0-next-4-tag ?disabled="${this.disabled}" part="tag" exportparts="
152
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${e=>this.handleTagKeyDown(e,t)}" @sd-remove="${e=>this.handleTagRemove(e,t)}">${t.getTextLabel()}</sd-4-0-0-next-6-tag>`;this.handleDocumentFocusIn=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()};this.handleDocumentKeyDown=t=>{let e=t.target,r=e.closest(".select__clear")!==null,a=e.closest("sd-4-0-0-next-6-icon-button")!==null;if(!(r||a)){if(t.key==="Escape"&&this.open&&(t.preventDefault(),t.stopPropagation(),this.hide(),this.displayInput.focus({preventScroll:!0})),t.key==="Enter"||t.key===" "&&this.typeToSelectString===""){if(t.preventDefault(),t.stopImmediatePropagation(),!this.open){this.show();return}this.currentOption&&!this.currentOption.disabled&&(this.multiple?this.toggleOptionSelection(this.currentOption):this.setSelectedOptions(this.currentOption),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})));return}if(["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.getAllOptions(),d=n.indexOf(this.currentOption),h=Math.max(0,d);if(t.preventDefault(),!this.open&&(this.show(),this.currentOption))return;t.key==="ArrowDown"?(h=d+1,h>n.length-1&&(h=0)):t.key==="ArrowUp"?(h=d-1,h<0&&(h=n.length-1)):t.key==="Home"?h=0:t.key==="End"&&(h=n.length-1),this.setCurrentOption(n[h])}if(t.key.length===1||t.key==="Backspace"){let n=this.getAllOptions();if(t.metaKey||t.ctrlKey||t.altKey)return;if(!this.open){if(t.key==="Backspace")return;this.show()}t.stopPropagation(),t.preventDefault(),clearTimeout(this.typeToSelectTimeout),this.typeToSelectTimeout=window.setTimeout(()=>this.typeToSelectString="",1e3),t.key==="Backspace"?this.typeToSelectString=this.typeToSelectString.slice(0,-1):this.typeToSelectString+=t.key.toLowerCase();for(let d of n)if(d.getTextLabel().toLowerCase().startsWith(this.typeToSelectString)){this.setCurrentOption(d);break}}}};this.handleDocumentMouseDown=t=>{let e=t.composedPath();this&&!e.includes(this)&&this.hide()}}get validity(){return this.valueInput.validity}get validationMessage(){return this.valueInput.validationMessage}connectedCallback(){super.connectedCallback(),this.open=!1}firstUpdated(){this.applySizeToOptions()}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}handleFocus(){this.hasFocus=!0,this.displayInput.setSelectionRange(0,0),this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){var r,a,n;if(t.key==="Backspace"&&this.multiple){t.stopPropagation();let d=(r=t.currentTarget)==null?void 0:r.parentElement,h=(a=d==null?void 0:d.previousElementSibling)==null?void 0:a.querySelector("sd-4-0-0-next-6-tag"),p=(n=d==null?void 0:d.nextElementSibling)==null?void 0:n.querySelector("sd-4-0-0-next-6-tag");this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>{p?p.focus():h?h.focus():this.focus({preventScroll:!0})})}}handleTagMaxOptionsKeyDown(t){t.key==="Backspace"&&this.multiple&&(t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>{var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelectorAll("sd-4-0-0-next-6-tag");e&&e.length>0?e==null||e[(e==null?void 0:e.length)-1].focus():this.focus({preventScroll:!0})}))}handleLabelClick(){this.displayInput.focus()}handleComboboxMouseDown(t){let r=t.composedPath().some(a=>a instanceof HTMLSlotElement&&a.name==="removable-indicator");this.disabled||r||(t.preventDefault(),this.displayInput.focus({preventScroll:!0}),this.open=!this.open)}handleComboboxKeyDown(t){t.stopPropagation(),this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearSelect()}clearSelect(){this.setSelectedOptions([]),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")})}handleClearMouseDown(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let r=t.target.closest("sd-4-0-0-next-6-option"),a=this.value;r&&!r.disabled&&(this.multiple?this.toggleOptionSelection(r):this.setSelectedOptions(r),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})),this.value!==a&&this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}handleDefaultSlotChange(){let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value],r=[];customElements.get("sd-4-0-0-next-6-option")?(t.forEach(a=>{this.multiple&&(a.checkbox=!0),r.push(a.value)}),this.setSelectedOptions(t.filter(a=>e.includes(a.value)))):customElements.whenDefined("sd-4-0-0-next-6-option").then(()=>this.handleDefaultSlotChange())}handleTagRemove(t,e){t.stopPropagation(),e||this.clearSelect(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.emit("sd-input"),this.emit("sd-change")}))}getAllOptions(){return[...this.querySelectorAll("sd-4-0-0-next-6-option")]}getFirstOption(){return this.querySelector("sd-4-0-0-next-6-option")}setCurrentOption(t){this.getAllOptions().forEach(r=>{r.current=!1,r.tabIndex=-1}),t&&(this.currentOption=t,t.current=!0,t.tabIndex=0,t.focus())}setSelectedOptions(t){let e=this.getAllOptions(),r=Array.isArray(t)?t:[t];e.forEach(a=>a.selected=!1),r.length&&r.forEach(a=>a.selected=!0),Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}toggleOptionSelection(t,e){e===!0||e===!1?t.selected=e:t.selected=!t.selected,Array.isArray(t)?this.selectionChanged():this.selectionChanged(t)}selectionChanged(t){var e,r,a,n;t&&this.multiple?this.selectedOptions.find(d=>d.value===t.value)?this.selectedOptions=this.selectedOptions.filter(d=>d.value!==t.value):this.selectedOptions=[...this.selectedOptions,t]:this.selectedOptions=this.getAllOptions().filter(d=>d.selected),this.multiple?(this.value=this.selectedOptions.map(d=>d.value),this.useTags||this.value.length===0?this.displayLabel="":this.displayLabel=this.localize.term("numOptionsSelected",this.selectedOptions.length)):(this.value=(r=(e=this.selectedOptions[0])==null?void 0:e.value)!=null?r:"",this.displayLabel=(n=(a=this.selectedOptions[0])==null?void 0:a.getTextLabel())!=null?n:""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}get tags(){return this.selectedOptions.length<=this.maxOptionsVisible?this.selectedOptions.map((t,e)=>{if(e<this.maxOptionsVisible||this.maxOptionsVisible<=0){let r=this.getTag(t,e);return u`<div @sd-remove="${a=>this.handleTagRemove(a,t)}">${typeof r=="string"?si(r):r}</div>`}return[u``]}):[u`<sd-4-0-0-next-6-tag ?disabled="${this.disabled}" part="tag" exportparts="
153
153
  base:tag__base,
154
154
  content:tag__content,
155
155
  removable-indicator:tag__removable-indicator,
156
- " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-4-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-4-0-0-next-4-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await K(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=B(this,"select.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.currentOption&&Bt(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"select.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(r=>e.includes(r.value)))}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,U(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,U(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.disabled&&this.value.length>0,n=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d=this.disabled?"cursor-not-allowed":"cursor-pointer",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],p={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c("relative text-left",d,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("relative w-full bg-white",n==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{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],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-0-0-next-4-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
156
+ " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-6-tag>`]}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleUseTagsChange(){let t=this.getAllOptions();customElements.get("sd-4-0-0-next-6-option")&&t.forEach(e=>{e.checkbox=this.multiple})}handleDisabledChange(){this.disabled&&(this.open=!1,this.handleOpenChange())}async handleOpenChange(){if(this.open&&!this.disabled){this.multiple||this.setCurrentOption(this.selectedOptions[0]||this.getFirstOption()),this.emit("sd-show"),this.addOpenListeners(),await K(this),this.listbox.hidden=!1,this.popup.active=!0,requestAnimationFrame(()=>{this.setCurrentOption(this.currentOption)});let{keyframes:t,options:e}=B(this,"select.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.currentOption&&Bt(this.currentOption,this.listbox,"vertical","auto"),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await K(this);let{keyframes:t,options:e}=B(this,"select.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}applySizeToOptions(){this._optionsInDefaultSlot.forEach(t=>{t.size=this.size})}handleValueChange(){if(this.selectedOptions.length===(Array.isArray(this.value)?this.value.length:1))return;let t=this.getAllOptions(),e=Array.isArray(this.value)?this.value:[this.value];this.setSelectedOptions(t.filter(r=>e.includes(r.value)))}async show(){if(this.open||this.disabled){this.open=!1;return}return this.open=!0,U(this,"sd-after-show")}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.open=!1,U(this,"sd-after-hide")}checkValidity(){var t;return(t=this.valueInput)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}render(){let t={default:this.hasSlotController.test("[default]"),label:this.hasSlotController.test("label"),clearIcon:this.hasSlotController.test("clear-icon"),expandIcon:this.hasSlotController.test("expand-icon"),helpText:this.hasSlotController.test("help-text")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=this.clearable&&!this.disabled&&this.value.length>0,n=this.disabled?"disabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",d=this.disabled?"cursor-not-allowed":"cursor-pointer",h={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],p={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size];return u`<div part="form-control" class="${c("relative text-left",d,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}"><span class="sr-only" role="alert" aria-live="assertive">${this.deletedTagLabel}</span><div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${e&&"inline-block"}" aria-hidden="${e?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("relative w-full bg-white",n==="disabled"?"text-neutral-500":"text-black")}"><div part="border" class="${c("absolute top-0 w-full h-full pointer-events-none border rounded-default",this.hasHover&&"bg-neutral-200",{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],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-4-0-0-next-6-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${c("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
157
157
  popup:popup__content,
158
- "><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",d,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?u`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(f=>f==null?void 0:f.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",d)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?u`<button part="clear-button" class="${c("select__clear flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-4-icon class="${c("text-icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-4-0-0-next-4-icon></slot></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-4-icon part="invalid-icon" class="${c(h,p,"text-error")}" library="system" name="risk"></sd-4-0-0-next-4-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-4-icon part="valid-icon" class="${c("flex-shrink-0 text-success",h,p)}" library="system" name="status-check"></sd-4-0-0-next-4-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${c("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",p)}"><sd-4-0-0-next-4-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-4-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-scroll",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-4-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};z.dependencies={"sd-4-0-0-next-4-icon":lt,"sd-4-0-0-next-4-popup":I,"sd-4-0-0-next-4-tag":st},z.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-4-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-4-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-4-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-4-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],o([Ke({selector:"sd-4-0-0-next-4-option"})],z.prototype,"_optionsInDefaultSlot",2),o([b("sd-4-0-0-next-4-popup")],z.prototype,"popup",2),o([b('[part="combobox"]')],z.prototype,"combobox",2),o([b('[part="display-input"]')],z.prototype,"displayInput",2),o([b(".value-input")],z.prototype,"valueInput",2),o([b('[part="listbox"]')],z.prototype,"listbox",2),o([b("#invalid-message")],z.prototype,"invalidMessage",2),o([C()],z.prototype,"hasHover",2),o([C()],z.prototype,"displayLabel",2),o([C()],z.prototype,"deletedTagLabel",2),o([C()],z.prototype,"hasFocus",2),o([C()],z.prototype,"currentOption",2),o([C()],z.prototype,"selectedOptions",2),o([C()],z.prototype,"showValidStyle",2),o([C()],z.prototype,"showInvalidStyle",2),o([Ot()],z.prototype,"defaultValue",2),o([l({type:Boolean,reflect:!0})],z.prototype,"open",2),o([l({reflect:!0})],z.prototype,"size",2),o([l({reflect:!0})],z.prototype,"placement",2),o([l()],z.prototype,"label",2),o([l()],z.prototype,"placeholder",2),o([l({type:Boolean,reflect:!0})],z.prototype,"disabled",2),o([l({attribute:"help-text"})],z.prototype,"helpText",2),o([C()],z.prototype,"currentPlacement",2),o([l({type:Boolean})],z.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],z.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],z.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],z.prototype,"maxOptionsVisible",2),o([l({reflect:!0})],z.prototype,"form",2),o([l()],z.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],z.prototype,"value",2),o([l({type:Boolean,reflect:!0})],z.prototype,"required",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],z.prototype,"styleOnValid",2),o([l({type:Boolean})],z.prototype,"hoist",2),o([l()],z.prototype,"getTag",2),o([w("useTags",{waitUntilFirstUpdate:!0})],z.prototype,"handleUseTagsChange",1),o([w("disabled",{waitUntilFirstUpdate:!0})],z.prototype,"handleDisabledChange",1),o([w("open",{waitUntilFirstUpdate:!0})],z.prototype,"handleOpenChange",1),o([w("size",{waitUntilFirstUpdate:!0})],z.prototype,"applySizeToOptions",1),o([w("value",{waitUntilFirstUpdate:!0})],z.prototype,"handleValueChange",1),z=o([y("sd-4-0-0-next-4-select")],z);S("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});S("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var ot=class extends m{constructor(){super(...arguments);this.size="lg";this.orientation="horizontal";this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return D`<div role="listitem" part="base" class="${c("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${c("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${e} part="circle" href="${k(t?this.href:void 0)}" aria-disabled="${k(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${k("label")}" aria-describedby="${k("description")}" class="${c("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"w-[72px]":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${c(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?D`<sd-4-0-0-next-4-icon name="status-check" library="system"></sd-4-0-0-next-4-icon>`:D`${this.index}`}</slot></${e}>${this.noTail?"":D`<div part="tail" class="${c(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive?" border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${c("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${c("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${c("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||D`<slot></slot>`}</div></div></div>`}};ot.styles=[...m.styles,v`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],o([l({reflect:!0})],ot.prototype,"size",2),o([l({reflect:!0})],ot.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"current",2),o([l({reflect:!0,type:Boolean,attribute:"no-tail"})],ot.prototype,"noTail",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],ot.prototype,"notInteractive",2),o([l()],ot.prototype,"label",2),o([l()],ot.prototype,"description",2),o([l({type:Number,reflect:!0,attribute:"index"})],ot.prototype,"index",2),o([l()],ot.prototype,"href",2),o([w("current")],ot.prototype,"handleCurrentChange",1),o([w("disabled")],ot.prototype,"handleDisabledChange",1),o([w("notInteractive")],ot.prototype,"handleInteractivityChange",1),ot=o([y("sd-4-0-0-next-4-step")],ot);var yt=class extends m{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((e,r)=>{e.index=r+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=r)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-0-0-next-4-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((e,r)=>{r===t?e.current=!0:r>t?e.disabled=!0:e.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return u`<div role="${this.notInteractive?"group":"navigation"}" class="h-full"><div role="list" part="base" class="${c("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};yt.styles=[...m.styles,v`:host{width:-moz-max-content;width:max-content}`],o([b("[part=body]")],yt.prototype,"body",2),o([l({reflect:!0})],yt.prototype,"size",2),o([l({reflect:!0})],yt.prototype,"orientation",2),o([l({type:Number,reflect:!0,attribute:"active-step"})],yt.prototype,"activeStep",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],yt.prototype,"notInteractive",2),o([w("size",{waitUntilFirstUpdate:!0})],yt.prototype,"updateSize",1),o([w("orientation",{waitUntilFirstUpdate:!0})],yt.prototype,"updateOrientation",1),o([w("notInteractive")],yt.prototype,"handleInteractivityChange",1),yt=o([y("sd-4-0-0-next-4-step-group")],yt);var at=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,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.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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return u`<label part="base" class="${c("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${k(this.value)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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"}" class="${c(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
158
+ "><div part="combobox" class="${c("relative w-full px-4 flex flex-row items-center rounded-default",this.open&&"shadow",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size])}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><input name="${this.name}" form="${this.form}" part="display-input" class="${c("appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",d,this.multiple&&this.useTags&&this.value.length>0?"hidden":"")}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open?"true":"false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple&&this.useTags?u`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>`:""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(f=>f==null?void 0:f.getTextLabel()).join(", ")}</div><input class="${c("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",d)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${a?u`<button part="clear-button" class="${c("select__clear flex justify-center",h)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-6-icon class="${c("text-icon-fill-neutral-800",p)}" library="system" name="closing-round"></sd-4-0-0-next-6-icon></slot></button>`:""} ${this.showInvalidStyle?u`<sd-4-0-0-next-6-icon part="invalid-icon" class="${c(h,p,"text-error")}" library="system" name="risk"></sd-4-0-0-next-6-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-6-icon part="valid-icon" class="${c("flex-shrink-0 text-success",h,p)}" library="system" name="status-check"></sd-4-0-0-next-6-icon>`:""}<slot name="expand-icon" part="expand-icon" class="${c("inline-flex ml-2 transition-all",this.open?"rotate-180":"rotate-0",this.disabled?"text-neutral-500":"text-primary",p)}"><sd-4-0-0-next-6-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-6-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open?"true":"false"}" aria-multiselectable="${this.multiple?"true":"false"}" aria-labelledby="label" part="listbox" class="${c("bg-white px-2 py-3 relative border-primary overflow-y-scroll",this.open&&"shadow",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default":"border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default")}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-6-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${r?"false":"true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`}};z.dependencies={"sd-4-0-0-next-6-icon":lt,"sd-4-0-0-next-6-popup":I,"sd-4-0-0-next-6-tag":st},z.styles=[...m.styles,v`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-6-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-6-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-6-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-6-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`],o([Ke({selector:"sd-4-0-0-next-6-option"})],z.prototype,"_optionsInDefaultSlot",2),o([b("sd-4-0-0-next-6-popup")],z.prototype,"popup",2),o([b('[part="combobox"]')],z.prototype,"combobox",2),o([b('[part="display-input"]')],z.prototype,"displayInput",2),o([b(".value-input")],z.prototype,"valueInput",2),o([b('[part="listbox"]')],z.prototype,"listbox",2),o([b("#invalid-message")],z.prototype,"invalidMessage",2),o([C()],z.prototype,"hasHover",2),o([C()],z.prototype,"displayLabel",2),o([C()],z.prototype,"deletedTagLabel",2),o([C()],z.prototype,"hasFocus",2),o([C()],z.prototype,"currentOption",2),o([C()],z.prototype,"selectedOptions",2),o([C()],z.prototype,"showValidStyle",2),o([C()],z.prototype,"showInvalidStyle",2),o([Ot()],z.prototype,"defaultValue",2),o([l({type:Boolean,reflect:!0})],z.prototype,"open",2),o([l({reflect:!0})],z.prototype,"size",2),o([l({reflect:!0})],z.prototype,"placement",2),o([l()],z.prototype,"label",2),o([l()],z.prototype,"placeholder",2),o([l({type:Boolean,reflect:!0})],z.prototype,"disabled",2),o([l({attribute:"help-text"})],z.prototype,"helpText",2),o([C()],z.prototype,"currentPlacement",2),o([l({type:Boolean})],z.prototype,"clearable",2),o([l({type:Boolean,reflect:!0})],z.prototype,"multiple",2),o([l({type:Boolean,reflect:!0})],z.prototype,"useTags",2),o([l({attribute:"max-options-visible",type:Number})],z.prototype,"maxOptionsVisible",2),o([l({reflect:!0})],z.prototype,"form",2),o([l()],z.prototype,"name",2),o([l({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],z.prototype,"value",2),o([l({type:Boolean,reflect:!0})],z.prototype,"required",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],z.prototype,"styleOnValid",2),o([l({type:Boolean})],z.prototype,"hoist",2),o([l()],z.prototype,"getTag",2),o([w("useTags",{waitUntilFirstUpdate:!0})],z.prototype,"handleUseTagsChange",1),o([w("disabled",{waitUntilFirstUpdate:!0})],z.prototype,"handleDisabledChange",1),o([w("open",{waitUntilFirstUpdate:!0})],z.prototype,"handleOpenChange",1),o([w("size",{waitUntilFirstUpdate:!0})],z.prototype,"applySizeToOptions",1),o([w("value",{waitUntilFirstUpdate:!0})],z.prototype,"handleValueChange",1),z=o([y("sd-4-0-0-next-6-select")],z);H("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});H("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var ot=class extends m{constructor(){super(...arguments);this.size="lg";this.orientation="horizontal";this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){let t=this.isLink(),e=this.notInteractive?X`div`:t?X`a`:X`button`;return D`<div role="listitem" part="base" class="${c("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${c("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${e} part="circle" href="${k(t?this.href:void 0)}" aria-disabled="${k(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${k("label")}" aria-describedby="${k("description")}" class="${c("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"w-[72px]":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${c(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?D`<sd-4-0-0-next-6-icon name="status-check" library="system"></sd-4-0-0-next-6-icon>`:D`${this.index}`}</slot></${e}>${this.noTail?"":D`<div part="tail" class="${c(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive?" border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${c("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${c("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${c("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||D`<slot></slot>`}</div></div></div>`}};ot.styles=[...m.styles,v`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],o([l({reflect:!0})],ot.prototype,"size",2),o([l({reflect:!0})],ot.prototype,"orientation",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],ot.prototype,"current",2),o([l({reflect:!0,type:Boolean,attribute:"no-tail"})],ot.prototype,"noTail",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],ot.prototype,"notInteractive",2),o([l()],ot.prototype,"label",2),o([l()],ot.prototype,"description",2),o([l({type:Number,reflect:!0,attribute:"index"})],ot.prototype,"index",2),o([l()],ot.prototype,"href",2),o([w("current")],ot.prototype,"handleCurrentChange",1),o([w("disabled")],ot.prototype,"handleDisabledChange",1),o([w("notInteractive")],ot.prototype,"handleInteractivityChange",1),ot=o([y("sd-4-0-0-next-6-step")],ot);var yt=class extends m{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((e,r)=>{e.index=r+1,e.size=this.size,e.orientation=this.orientation,this.notInteractive?(e.current=!1,e.disabled=!1,e.notInteractive=!0):e.current&&(t=r)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-0-0-next-6-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((e,r)=>{r===t?e.current=!0:r>t?e.disabled=!0:e.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return u`<div role="${this.notInteractive?"group":"navigation"}" class="h-full"><div role="list" part="base" class="${c("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};yt.styles=[...m.styles,v`:host{width:-moz-max-content;width:max-content}`],o([b("[part=body]")],yt.prototype,"body",2),o([l({reflect:!0})],yt.prototype,"size",2),o([l({reflect:!0})],yt.prototype,"orientation",2),o([l({type:Number,reflect:!0,attribute:"active-step"})],yt.prototype,"activeStep",2),o([l({type:Boolean,reflect:!0,attribute:"not-interactive"})],yt.prototype,"notInteractive",2),o([w("size",{waitUntilFirstUpdate:!0})],yt.prototype,"updateSize",1),o([w("orientation",{waitUntilFirstUpdate:!0})],yt.prototype,"updateOrientation",1),o([w("notInteractive")],yt.prototype,"handleInteractivityChange",1),yt=o([y("sd-4-0-0-next-6-step-group")],yt);var at=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e});this.showInvalidStyle=!1;this.title="";this.name="";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,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.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.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return u`<label part="base" class="${c("group flex items-center text-base leading-normal text-black cursor-pointer",this.disabled&&"hover:cursor-not-allowed")}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${k(this.value)}" .checked="${le(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked?"true":"false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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"}" class="${c(`relative flex flex-initial items-center justify-center border rounded-full h-4 w-8 transition-colors ease duration-100
159
159
  peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
160
- peer-focus-visible:outline-primary`,this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${c("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};at.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],o([b("input")],at.prototype,"input",2),o([b("#invalid-message")],at.prototype,"invalidMessage",2),o([C()],at.prototype,"showInvalidStyle",2),o([l()],at.prototype,"title",2),o([l()],at.prototype,"name",2),o([l()],at.prototype,"value",2),o([l({type:Boolean,reflect:!0})],at.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],at.prototype,"checked",2),o([Ot("checked")],at.prototype,"defaultChecked",2),o([l({reflect:!0})],at.prototype,"form",2),o([l({type:Boolean,reflect:!0})],at.prototype,"required",2),o([w("disabled",{waitUntilFirstUpdate:!0})],at.prototype,"handleDisabledChange",1),o([w(["checked"],{waitUntilFirstUpdate:!0})],at.prototype,"handleStateChange",1),at=o([y("sd-4-0-0-next-4-switch")],at);var ol=0,Ct=class extends m{constructor(){super(...arguments);this.attrId=++ol;this.componentId=`sd-4-0-0-next-4-tab-${this.attrId}`;this.hasSlotController=new _(this,"left");this.variant="default";this.active=!1;this.disabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let t={left:this.hasSlotController.test("left")};return u`<div part="base" class="${c("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><slot name="left" class="${c(t.left&&"block pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${c(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${c((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${c(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Ct.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],o([b("[part=base]")],Ct.prototype,"tab",2),o([l({type:String,reflect:!0})],Ct.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],Ct.prototype,"active",2),o([l({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),o([l({reflect:!0})],Ct.prototype,"panel",2),o([w("active")],Ct.prototype,"handleActiveChange",1),o([w("disabled")],Ct.prototype,"handleDisabledChange",1),Ct=o([y("sd-4-0-0-next-4-tab")],Ct);var zt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-4-0-0-next-4-tab"),customElements.whenDefined("sd-4-0-0-next-4-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(r=>!["aria-labelledby","aria-controls"].includes(r.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(r=>r.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((r,a)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),a.unobserve(r[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(r=>t.includeDisabled?r.tagName.toLowerCase()==="sd-4-0-0-next-4-tab":r.tagName.toLowerCase()==="sd-4-0-0-next-4-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-0-0-next-4-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-4-0-0-next-4-tab");(r==null?void 0:r.closest("sd-4-0-0-next-4-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-4-0-0-next-4-tab");if((r==null?void 0:r.closest("sd-4-0-0-next-4-tab-group"))===this){if(["Enter"," "].includes(t.key)&&r!==null&&(this.setActiveTab(r,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&Bt(this.tabs[n+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&Bt(this.tabs[n-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),d=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-4-0-0-next-4-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(d?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(d?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&h++,h<0&&(h=this.tabs.length-1),h>this.tabs.length-1&&(h=0),this.tabs[h].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[h],{scrollBehavior:"smooth"}),Bt(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=O({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(a=>a.active=a===this.activeTab),this.panels.map(a=>{var n;return a.active=a.name===((n=this.activeTab)==null?void 0:n.panel)}),Bt(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(r&&this.emit("sd-tab-hide",{detail:{name:r.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let e=this.panels.find(r=>r.name===t.panel);e&&t.setAttribute("aria-controls",e.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){let t=this.localize.dir()==="rtl";return u`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?u`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-4-0-0-next-4-icon library="system" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-4-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${c("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?u`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-4-0-0-next-4-icon library="system" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-4-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};zt.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-4-0-0-next-4-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-4-0-0-next-4-tab-panel){--padding:1rem 0}`],o([b("[part=base]")],zt.prototype,"tabGroup",2),o([b("[part=body]")],zt.prototype,"body",2),o([b("[part=scroll-container]")],zt.prototype,"nav",2),o([C()],zt.prototype,"hasScrollControls",2),o([C()],zt.prototype,"variant",2),o([l()],zt.prototype,"activation",2),zt=o([y("sd-4-0-0-next-4-tab-group")],zt);var al=0,te=class extends m{constructor(){super(...arguments);this.attrId=++al;this.componentId=`sd-4-0-0-next-4-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return u`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};te.styles=[...m.styles,v`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],o([l({reflect:!0})],te.prototype,"name",2),o([l({type:Boolean,reflect:!0})],te.prototype,"active",2),o([w("active")],te.prototype,"handleActiveChange",1),te=o([y("sd-4-0-0-next-4-tab-panel")],te);var It=class extends m{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new _(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let t=this.variant==="white border-neutral-400"||this.inset,e={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return u`<div class="${c("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&t&&"py-8 px-10")}" part="base"><div part="media" id="media" aria-hidden="true" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${c(!t&&this._orientation==="vertical"&&"mb-4",!e["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${t?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${c("flex flex-col text-left",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&t&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${c("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${c("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${c(!e["teaser-has-default"]&&"hidden")}" aria-labelledby="media"><slot></slot></div></div></div>`}};It.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],It.prototype,"variant",2),o([l({reflect:!0,type:Number})],It.prototype,"breakpoint",2),o([l({type:Boolean,reflect:!0})],It.prototype,"inset",2),o([b('[part="base"]')],It.prototype,"teaser",2),o([C()],It.prototype,"_orientation",2),It=o([y("sd-4-0-0-next-4-teaser")],It);var pe=class extends m{constructor(){super(...arguments);this.variant="white";this.hasSlotController=new _(this,"[default]","media","meta","headline","expandable")}render(){let t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return u`<div class="relative flex flex-col group" part="base"><div class="${c("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${c("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${c({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-light":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${c("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${c("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${c(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};pe.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],pe.prototype,"variant",2),o([b('[part="base"]')],pe.prototype,"teaserMedia",2),pe=o([y("sd-4-0-0-next-4-teaser-media")],pe);var H=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.readonly=!1;this.form="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,r="none"){this.textarea.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.textarea.setRangeText(t,e,r,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=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",n=this.size==="sm"?"text-sm":"text-base",d={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return u`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",n)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",{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"}[a])}"></div><div part="base" class="${c("textarea h-full px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",a==="disabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${c("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",n)}" title="${this.title}" name="${k(this.name)}" .value="${le(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${k(this.placeholder)}" minlength="${k(this.minlength)}" maxlength="${k(this.maxlength)}" rows="${k(this.rows)}" autocapitalize="${k(this.autocapitalize)}" autocorrect="${k(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${k(this.spellcheck)}" enterkeyhint="${k(this.enterkeyhint)}" inputmode="${k(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?u`<sd-4-0-0-next-4-icon class="${c("text-error absolute right-4 bg-white group-hover:bg-neutral-200",d)}" library="system" name="risk" part="invalid-icon"></sd-4-0-0-next-4-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-4-icon class="${c("text-success absolute right-4 bg-white group-hover:bg-neutral-200",d)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-4-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};H.styles=[...m.styles,v`:host{display:block;height:100%}:host([required]) #label:after{content:" *"}.no-scrollbar::-webkit-scrollbar{display:none}`],o([b("#input")],H.prototype,"textarea",2),o([b("#invalid-message")],H.prototype,"invalidMessage",2),o([C()],H.prototype,"hasFocus",2),o([C()],H.prototype,"showValidStyle",2),o([C()],H.prototype,"showInvalidStyle",2),o([l()],H.prototype,"title",2),o([l()],H.prototype,"name",2),o([l()],H.prototype,"value",2),o([l({reflect:!0})],H.prototype,"size",2),o([l()],H.prototype,"label",2),o([l({attribute:"help-text"})],H.prototype,"helpText",2),o([l()],H.prototype,"placeholder",2),o([l({type:Number})],H.prototype,"rows",2),o([l({type:Boolean,reflect:!0})],H.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],H.prototype,"readonly",2),o([l({reflect:!0})],H.prototype,"form",2),o([l({type:Boolean,reflect:!0})],H.prototype,"required",2),o([l({type:Number})],H.prototype,"minlength",2),o([l({type:Number})],H.prototype,"maxlength",2),o([l()],H.prototype,"autocapitalize",2),o([l()],H.prototype,"autocorrect",2),o([l()],H.prototype,"autocomplete",2),o([l({type:Boolean})],H.prototype,"autofocus",2),o([l()],H.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],H.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],H.prototype,"spellcheck",2),o([l()],H.prototype,"inputmode",2),o([Ot()],H.prototype,"defaultValue",2),o([w("disabled",{waitUntilFirstUpdate:!0})],H.prototype,"handleDisabledChange",1),o([w("rows",{waitUntilFirstUpdate:!0})],H.prototype,"handleRowsChange",1),o([w("value",{waitUntilFirstUpdate:!0})],H.prototype,"handleValueChange",1),H=o([y("sd-4-0-0-next-4-textarea")],H);var nt=class extends m{constructor(){super(...arguments);this.isFocusTriggered=!1;this.localize=new F(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered){this.isFocusTriggered=!1;return}this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=gr(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasTrigger("hover")){let t=gr(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await K(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=B(this,"tooltip.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await K(this.body);let{keyframes:t,options:e}=B(this,"tooltip.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return u`<sd-4-0-0-next-4-popup part="base" exportparts="
160
+ peer-focus-visible:outline-primary`,this.disabled&&this.checked?"border-neutral-500 bg-neutral-500":this.disabled?"border-neutral-500":this.showInvalidStyle?"border-error bg-error hover:bg-error-400":this.checked?"border-accent bg-accent hover:bg-accent-550 group-hover:bg-accent-550":"border-neutral-800 bg-white hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span id="thumb" part="thumb" class="${c("w-2.5 h-2.5 rounded-full transition-transform ease-in-out duration-200",this.disabled&&this.checked?"bg-white":this.disabled?"-translate-x-2 bg-neutral-500":this.showInvalidStyle?"bg-white -translate-x-2":this.checked?"translate-x-2 bg-white":"bg-neutral-800 -translate-x-2")}"></span> </span><span part="label" id="label" class="${c("select-none inline-block ml-2",this.disabled?"text-neutral-500":this.showInvalidStyle?"text-error":"text-black")}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`}};at.styles=[...m.styles,v`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label:after{content:" *"}`],o([b("input")],at.prototype,"input",2),o([b("#invalid-message")],at.prototype,"invalidMessage",2),o([C()],at.prototype,"showInvalidStyle",2),o([l()],at.prototype,"title",2),o([l()],at.prototype,"name",2),o([l()],at.prototype,"value",2),o([l({type:Boolean,reflect:!0})],at.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],at.prototype,"checked",2),o([Ot("checked")],at.prototype,"defaultChecked",2),o([l({reflect:!0})],at.prototype,"form",2),o([l({type:Boolean,reflect:!0})],at.prototype,"required",2),o([w("disabled",{waitUntilFirstUpdate:!0})],at.prototype,"handleDisabledChange",1),o([w(["checked"],{waitUntilFirstUpdate:!0})],at.prototype,"handleStateChange",1),at=o([y("sd-4-0-0-next-6-switch")],at);var ol=0,Et=class extends m{constructor(){super(...arguments);this.attrId=++ol;this.componentId=`sd-4-0-0-next-6-tab-${this.attrId}`;this.hasSlotController=new _(this,"left");this.variant="default";this.active=!1;this.disabled=!1;this.panel=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){this.id=this.id.length>0?this.id:this.componentId;let t={left:this.hasSlotController.test("left")};return u`<div part="base" class="${c("inline-flex min-w-max h-12 px-3 leading-none items-center justify-center whitespace-nowrap select-none cursor-pointer group relative focus-visible:focus-outline outline-2 !-outline-offset-2",this.variant==="container"&&" rounded-[4px_4px_0_0]",this.variant==="container"&&this.active&&"tab--active-container-border bg-white",this.disabled?"opacity-50 !cursor-not-allowed":"hover:bg-neutral-200")}" tabindex="${!this.active||this.disabled?"-1":"0"}"><slot name="left" class="${c(t.left&&"block pr-2",this.disabled?"text-neutral-500":"text-primary")}"></slot><slot class="${c(this.disabled?"text-neutral-500":"text-primary")}"></slot><div part="active-tab-indicator" class="${c((!this.active||this.disabled)&&"hidden","absolute bottom-0 h-1 bg-accent",this.variant==="default"?"w-full":"w-3/4 group-hover:w-full transition-all duration-200 ease-in-out")}"></div><div part="hover-bottom-border" class="${c(!this.active&&!this.disabled&&"absolute w-full h-0.25 bottom-0 border-b border-neutral-400 invisible group-hover:visible")}"></div></div>`}};Et.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}.tab--active-container-border:after{border-width:1px;content:"";height:100%;position:absolute;width:100%;--tw-border-opacity:1;border-color:rgb(var(--sd-color-neutral-400,195 195 195)/var(--tw-border-opacity,1));border-bottom:none;border-radius:4px 4px 0 0}`],o([b("[part=base]")],Et.prototype,"tab",2),o([l({type:String,reflect:!0})],Et.prototype,"variant",2),o([l({type:Boolean,reflect:!0})],Et.prototype,"active",2),o([l({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),o([l({reflect:!0})],Et.prototype,"panel",2),o([w("active")],Et.prototype,"handleActiveChange",1),o([w("disabled")],Et.prototype,"handleDisabledChange",1),Et=o([y("sd-4-0-0-next-6-tab")],Et);var zt=class extends m{constructor(){super(...arguments);this.localize=new F(this);this.tabs=[];this.panels=[];this.hasScrollControls=!1;this.variant="default";this.activation="auto"}connectedCallback(){let t=Promise.all([customElements.whenDefined("sd-4-0-0-next-6-tab"),customElements.whenDefined("sd-4-0-0-next-6-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{e.some(r=>!["aria-labelledby","aria-controls"].includes(r.attributeName))&&setTimeout(()=>this.setAriaLabels()),e.some(r=>r.attributeName==="disabled")&&this.syncTabsAndPanels()}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then(()=>{new IntersectionObserver((r,a)=>{var n;r[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab((n=this.activeTab)!=null?n:this.tabs[0],{emitEvents:!1}),a.unobserve(r[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var t;this.mutationObserver.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter(r=>t.includeDisabled?r.tagName.toLowerCase()==="sd-4-0-0-next-6-tab":r.tagName.toLowerCase()==="sd-4-0-0-next-6-tab"&&!r.disabled)}getAllPanels(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-0-0-next-6-tab-panel")}getActiveTab(){return this.tabs.find(t=>t.matches(":focus"))}handleClick(t){let r=t.target.closest("sd-4-0-0-next-6-tab");(r==null?void 0:r.closest("sd-4-0-0-next-6-tab-group"))===this&&r!==null&&this.setActiveTab(r,{scrollBehavior:"smooth"})}handleKeyDown(t){let r=t.target.closest("sd-4-0-0-next-6-tab");if((r==null?void 0:r.closest("sd-4-0-0-next-6-tab-group"))===this){if(["Enter"," "].includes(t.key)&&r!==null&&(this.setActiveTab(r,{scrollBehavior:"smooth"}),t.preventDefault()),["Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&Bt(this.tabs[n+1],this.nav,"horizontal")}if(["Shift","Tab"].includes(t.key)){let n=this.tabs.indexOf(this.getActiveTab());r!==null&&Bt(this.tabs[n-1],this.nav,"horizontal")}if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key)){let n=this.tabs.find(h=>h.matches(":focus")),d=this.localize.dir()==="rtl";if((n==null?void 0:n.tagName.toLowerCase())==="sd-4-0-0-next-6-tab"){let h=this.tabs.indexOf(n);t.key==="Home"?h=0:t.key==="End"?h=this.tabs.length-1:t.key===(d?"ArrowRight":"ArrowLeft")||t.key==="ArrowUp"?h--:(t.key===(d?"ArrowLeft":"ArrowRight")||t.key==="ArrowDown")&&h++,h<0&&(h=this.tabs.length-1),h>this.tabs.length-1&&(h=0),this.tabs[h].focus({preventScroll:!0}),this.activation==="auto"&&this.setActiveTab(this.tabs[h],{scrollBehavior:"smooth"}),Bt(this.tabs[h],this.nav,"horizontal"),t.preventDefault()}}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()==="rtl"?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=O({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){let r=this.activeTab;this.activeTab=t,this.tabs.map(a=>a.active=a===this.activeTab),this.panels.map(a=>{var n;return a.active=a.name===((n=this.activeTab)==null?void 0:n.panel)}),Bt(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(r&&this.emit("sd-tab-hide",{detail:{name:r.panel}}),this.emit("sd-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(t=>{let e=this.panels.find(r=>r.name===t.panel);e&&t.setAttribute("aria-controls",e.getAttribute("id"))})}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.panels.forEach(t=>{t.tabIndex=0}),this.updateComplete.then(()=>this.updateScrollControls()),this.tabs.length!==0&&this.tabs[0].variant==="container"&&(this.variant="container")}updateScrollControls(){this.hasScrollControls=this.nav.scrollWidth>this.nav.clientWidth}show(t){let e=this.tabs.find(r=>r.panel===t);e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){let t=this.localize.dir()==="rtl";return u`<div part="base" class="${c("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${c(this.hasScrollControls&&"relative py-0 px-12")}">${this.hasScrollControls?u`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"left-auto right-0")}" @click="${this.handleScrollToStart}"><sd-4-0-0-next-6-icon library="system" name="${t?"chevron-up":"chevron-down"}" label="previous" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-6-icon></button>`:""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${c("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls?u`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${c("sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",this.localize.dir()==="rtl"&&"right-auto left-0")}" @click="${this.handleScrollToEnd}"><sd-4-0-0-next-6-icon library="system" name="${t?"chevron-down":"chevron-up"}" label="next" class="${c("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-0-0-next-6-icon></button>`:""}</div><slot part="body" class="${c("block auto py-8 px-6",this.variant==="container"&&"border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`}};zt.styles=[...m.styles,v`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-4-0-0-next-6-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-4-0-0-next-6-tab-panel){--padding:1rem 0}`],o([b("[part=base]")],zt.prototype,"tabGroup",2),o([b("[part=body]")],zt.prototype,"body",2),o([b("[part=scroll-container]")],zt.prototype,"nav",2),o([C()],zt.prototype,"hasScrollControls",2),o([C()],zt.prototype,"variant",2),o([l()],zt.prototype,"activation",2),zt=o([y("sd-4-0-0-next-6-tab-group")],zt);var al=0,te=class extends m{constructor(){super(...arguments);this.attrId=++al;this.componentId=`sd-4-0-0-next-6-tab-panel-${this.attrId}`;this.name="";this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return u`<slot part="base" class="${c("block",this.active&&"tab-panel--active")}"></slot>`}};te.styles=[...m.styles,v`:host{--padding:0;display:none}:host([active]){display:block}::part(base){padding:var(--padding)}`],o([l({reflect:!0})],te.prototype,"name",2),o([l({type:Boolean,reflect:!0})],te.prototype,"active",2),o([w("active")],te.prototype,"handleActiveChange",1),te=o([y("sd-4-0-0-next-6-tab-panel")],te);var It=class extends m{constructor(){super(...arguments);this.variant="white";this.breakpoint=448;this.inset=!1;this.hasSlotController=new _(this,"[default]","media","meta","headline")}connectedCallback(){super.connectedCallback(),this.breakpoint===0?this._orientation="horizontal":this.breakpoint===9999?this._orientation="vertical":window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.updateOrientation()),this.resizeObserver.observe(this))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&this.resizeObserver.disconnect()}updated(t){super.updated(t),t.has("breakpoint")&&this.updateOrientation()}updateOrientation(){this._orientation=this.offsetWidth>=this.breakpoint?"horizontal":"vertical"}render(){let t=this.variant==="white border-neutral-400"||this.inset,e={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline")};return u`<div class="${c("flex",{white:"bg-white","white border-neutral-400":"bg-white border border-neutral-400","neutral-100":"bg-neutral-100",primary:"bg-primary text-white","primary-100":"bg-primary-100"}[this.variant],this._orientation==="vertical"&&"flex-col",this._orientation==="horizontal"&&"flex-row gap-8",this._orientation==="horizontal"&&t&&"py-8 px-10")}" part="base"><div part="media" id="media" aria-hidden="true" style="${this._orientation==="horizontal"?"width: var(--distribution-media, 100%);":""}" class="${c(!t&&this._orientation==="vertical"&&"mb-4",!e["teaser-has-media"]&&"hidden",this.variant==="white border-neutral-400"&&this._orientation==="vertical"&&"mx-[-1px] mt-[-1px]")}"><slot name="media"></slot></div><div style="${this._orientation==="horizontal"?`width: var(--distribution-content, 100%); ${t?"width: var(--distribution-content, calc(100% - 2rem));":""}`:""}" class="${c("flex flex-col text-left",this._orientation==="horizontal"&&"flex flex-col",this._orientation==="vertical"&&t&&"m-4")}" part="content"><div class="flex flex-col-reverse"><div part="headline" class="${c("text-lg font-bold m-0",this.variant==="primary"?"text-white":"text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div part="meta" class="${c("gap-2 mb-4",!e["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div></div><div part="main" class="${c(!e["teaser-has-default"]&&"hidden")}" aria-labelledby="media"><slot></slot></div></div></div>`}};It.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],It.prototype,"variant",2),o([l({reflect:!0,type:Number})],It.prototype,"breakpoint",2),o([l({type:Boolean,reflect:!0})],It.prototype,"inset",2),o([b('[part="base"]')],It.prototype,"teaser",2),o([C()],It.prototype,"_orientation",2),It=o([y("sd-4-0-0-next-6-teaser")],It);var pe=class extends m{constructor(){super(...arguments);this.variant="white";this.hasSlotController=new _(this,"[default]","media","meta","headline","expandable")}render(){let t={"teaser-has-default":this.hasSlotController.test("[default]"),"teaser-has-media":this.hasSlotController.test("media"),"teaser-has-meta":this.hasSlotController.test("meta"),"teaser-has-headline":this.hasSlotController.test("headline"),"teaser-has-expandable":this.hasSlotController.test("expandable")};return u`<div class="relative flex flex-col group" part="base"><div class="${c("mb-4",!t["teaser-has-media"]&&"hidden")}" part="media"><slot name="media"></slot></div><div class="absolute flex flex-col justify-end h-full w-full pb-4"><div class="${c("flex-1",this.variant==="gradient-light"&&"bg-gradient-to-t from-white/[.8] to-60%",this.variant==="gradient-dark"&&"bg-gradient-to-t from-primary-800/[.6] to-60%")}"></div><div class="${c({white:"bg-white/[.8] group-hover:bg-white/90","neutral-100":"bg-neutral-100/[.8] group-hover:bg-neutral-100/90",primary:"bg-primary/[.8] text-white group-hover:bg-primary/90","primary-100":"bg-primary-100/[.8] group-hover:bg-primary-100/90","gradient-light":"bg-gradient-to-t from-white/90 to-white/[.8]","gradient-dark":"bg-gradient-to-t from-primary-800/75 to-primary-800/[.6] text-white"}[this.variant])}"><div class="flex-col text-left p-4" part="content"><div part="meta" class="${c("gap-2 mb-4",!t["teaser-has-meta"]&&"hidden")}"><slot name="meta"></slot></div><div part="headline" class="text-lg font-bold m-0"><slot name="headline">Always insert one semantically correct heading element here (e. g. &lt;h2>)</slot></div><div class="${c("hidden",t["teaser-has-expandable"]&&"h-[0px] invisible opacity-0 md:[transition:_height_0.2s_linear,opacity_0.1s_linear_0.1s] md:block md:group-hover:h-auto md:group-hover:my-4 md:group-hover:opacity-[100%] md:group-hover:visible")}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div><div part="main" class="${c(!t["teaser-has-default"]&&"hidden")}"><slot></slot></div></div></div></div></div>`}};pe.styles=[...m.styles,v`:host{display:block}::slotted(*){margin:var(--sd-spacing-0,0)}::slotted([slot=headline]){font-size:var(--sd-font-size-lg,1.25rem)!important;font-weight:700;margin:var(--sd-spacing-0,0)!important}`],o([l({reflect:!0})],pe.prototype,"variant",2),o([b('[part="base"]')],pe.prototype,"teaserMedia",2),pe=o([y("sd-4-0-0-next-6-teaser-media")],pe);var S=class extends m{constructor(){super(...arguments);this.formControlController=new dt(this);this.hasSlotController=new _(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.readonly=!1;this.form="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.textarea.focus(t)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.textarea.scrollTop=t.top),typeof t.left=="number"&&(this.textarea.scrollLeft=t.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(t,e,r="none"){this.textarea.setSelectionRange(t,e,r)}setRangeText(t,e,r,a){this.textarea.setRangeText(t,e,r,a),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var t;return(t=this.textarea)==null?void 0:t.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(t){this.textarea.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=this.label?!0:!!t.label,r=this.helpText?!0:!!t.helpText,a=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",n=this.size==="sm"?"text-sm":"text-base",d={sm:"text-base ml-1",md:"text-lg ml-2",lg:"text-xl ml-2"}[this.size];return u`<div part="form-control" class="flex flex-col h-full text-left"><div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${c(e?"inline-block":"hidden",n)}" for="input" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></label><slot name="tooltip"></slot></div><div part="form-control-input" class="${c("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${c("absolute w-full h-full pointer-events-none border rounded-default",{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"}[a])}"></div><div part="base" class="${c("textarea h-full px-4 flex items-top rounded-default group",{sm:"textarea-sm py-1",md:"textarea-md py-1",lg:"textarea-lg py-2"}[this.size],!this.disabled&&!this.readonly?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",a==="disabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${c("flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",this.disabled&&"cursor-not-allowed",n)}" title="${this.title}" name="${k(this.name)}" .value="${le(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${k(this.placeholder)}" minlength="${k(this.minlength)}" maxlength="${k(this.maxlength)}" rows="${k(this.rows)}" autocapitalize="${k(this.autocapitalize)}" autocorrect="${k(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${k(this.spellcheck)}" enterkeyhint="${k(this.enterkeyhint)}" inputmode="${k(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?u`<sd-4-0-0-next-6-icon class="${c("text-error absolute right-4 bg-white group-hover:bg-neutral-200",d)}" library="system" name="risk" part="invalid-icon"></sd-4-0-0-next-6-icon>`:""} ${this.styleOnValid&&this.showValidStyle?u`<sd-4-0-0-next-6-icon class="${c("text-success absolute right-4 bg-white group-hover:bg-neutral-200",d)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-6-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700",r?"block":"hidden")}" aria-hidden="${r?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};S.styles=[...m.styles,v`:host{display:block;height:100%}:host([required]) #label:after{content:" *"}.no-scrollbar::-webkit-scrollbar{display:none}`],o([b("#input")],S.prototype,"textarea",2),o([b("#invalid-message")],S.prototype,"invalidMessage",2),o([C()],S.prototype,"hasFocus",2),o([C()],S.prototype,"showValidStyle",2),o([C()],S.prototype,"showInvalidStyle",2),o([l()],S.prototype,"title",2),o([l()],S.prototype,"name",2),o([l()],S.prototype,"value",2),o([l({reflect:!0})],S.prototype,"size",2),o([l()],S.prototype,"label",2),o([l({attribute:"help-text"})],S.prototype,"helpText",2),o([l()],S.prototype,"placeholder",2),o([l({type:Number})],S.prototype,"rows",2),o([l({type:Boolean,reflect:!0})],S.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],S.prototype,"readonly",2),o([l({reflect:!0})],S.prototype,"form",2),o([l({type:Boolean,reflect:!0})],S.prototype,"required",2),o([l({type:Number})],S.prototype,"minlength",2),o([l({type:Number})],S.prototype,"maxlength",2),o([l()],S.prototype,"autocapitalize",2),o([l()],S.prototype,"autocorrect",2),o([l()],S.prototype,"autocomplete",2),o([l({type:Boolean})],S.prototype,"autofocus",2),o([l()],S.prototype,"enterkeyhint",2),o([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],S.prototype,"styleOnValid",2),o([l({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],S.prototype,"spellcheck",2),o([l()],S.prototype,"inputmode",2),o([Ot()],S.prototype,"defaultValue",2),o([w("disabled",{waitUntilFirstUpdate:!0})],S.prototype,"handleDisabledChange",1),o([w("rows",{waitUntilFirstUpdate:!0})],S.prototype,"handleRowsChange",1),o([w("value",{waitUntilFirstUpdate:!0})],S.prototype,"handleValueChange",1),S=o([y("sd-4-0-0-next-6-textarea")],S);var nt=class extends m{constructor(){super(...arguments);this.isFocusTriggered=!1;this.localize=new F(this);this.size="lg";this.content="";this.placement="top";this.disabled=!1;this.open=!1;this.trigger="click focus";this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.updateComplete.then(()=>{this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)})}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this.handleBlur,!0),this.removeEventListener("focus",this.handleFocus,!0),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.handleKeyDown),this.removeEventListener("mouseover",this.handleMouseOver),this.removeEventListener("mouseout",this.handleMouseOut)}handleBlur(){this.hasTrigger("focus")&&this.hide()}handleClick(){if(this.hasTrigger("click")){if(this.isFocusTriggered){this.isFocusTriggered=!1;return}this.open?this.hide():this.show()}}handleFocus(){this.hasTrigger("focus")&&(this.isFocusTriggered=!0,this.show())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide())}handleMouseOver(){if(this.hasTrigger("hover")){let t=gr(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),t)}}handleMouseOut(){if(this.hasTrigger("hover")){let t=gr(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),t)}}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){if(this.open){if(this.disabled)return;this.emit("sd-show"),await K(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:e}=B(this,"tooltip.show",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.emit("sd-after-show")}else{this.emit("sd-hide"),await K(this.body);let{keyframes:t,options:e}=B(this,"tooltip.hide",{dir:this.localize.dir()});await R(this.popup.popup,t,e),this.popup.active=!1,this.body.hidden=!0,this.emit("sd-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,U(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,U(this,"sd-after-hide")}render(){let t=this.placement.endsWith("-start"),e=this.placement.endsWith("-end");return u`<sd-4-0-0-next-6-popup part="base" exportparts="
161
161
  popup:base__popup,
162
162
  arrow:base__arrow
163
- " class="${c(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${c(this.size==="lg"?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-4-0-0-next-4-icon library="system" name="info-circle" class="${c(this.disabled&&"sd-interactive--disabled")}"></sd-4-0-0-next-4-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-4-0-0-next-4-popup>`}};nt.styles=[...m.styles,v`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-0-0-next-4-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-0-0-next-4-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-4-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-4-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-0-0-next-4-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([b("slot:not([name])")],nt.prototype,"defaultSlot",2),o([b("#tooltip")],nt.prototype,"body",2),o([b("sd-4-0-0-next-4-popup")],nt.prototype,"popup",2),o([l()],nt.prototype,"size",2),o([l()],nt.prototype,"content",2),o([l({reflect:!0})],nt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"open",2),o([l()],nt.prototype,"trigger",2),o([l({type:Boolean})],nt.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],nt.prototype,"handleOpenChange",1),o([w(["content","hoist","placement"])],nt.prototype,"handleOptionsChange",1),o([w("disabled")],nt.prototype,"handleDisabledChange",1),nt=o([y("sd-4-0-0-next-4-tooltip")],nt);S("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});S("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});var Wt=class extends m{constructor(){super(...arguments);this.playing=!1;this.overlay=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new _(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}setVideoInert(t){var e,r;t?(e=this.video)==null||e.setAttribute("inert",""):(r=this.video)==null||r.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.fadeoutPoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var e;(e=this.video)==null||e.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return u`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${c(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${c(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${c(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-4-0-0-next-4-icon id="default-play-icon" library="system" name="start"></sd-4-0-0-next-4-icon></slot></div></button> ${this.hasSlotController.test("poster")?u`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${c(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[black] bg-opacity-60 w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};Wt.styles=[...m.styles,v`:host{display:inline-block;overflow:hidden;position:relative}.play-pause-transition,::slotted([slot=poster]){transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){left:var(--sd-spacing-0,0);position:absolute;top:var(--sd-spacing-0,0);width:100%;z-index:10}#default-play-icon,::slotted([slot=play-icon]){left:50%;position:absolute;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}`],o([b("[part=base]")],Wt.prototype,"hostEl",2),o([l({type:Boolean,reflect:!0})],Wt.prototype,"playing",2),o([l({type:Boolean,reflect:!0})],Wt.prototype,"overlay",2),o([l({type:Boolean})],Wt.prototype,"isBelowBreakpoint",2),Wt=o([y("sd-4-0-0-next-4-video")],Wt);function O2(s,{setValueOnSelection:i,scrollSelectionIntoView:t}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){let e=s?typeof s=="string"?document.querySelector(s):s:document.querySelector("#autoComplete"),r=e.shadowRoot.querySelector("input"),a=n=>n[0];return r.addEventListener("init",()=>{var f,g;let n=(f=e.shadowRoot)==null?void 0:f.querySelector("ul");n==null||n.setAttribute("part","listbox");let d=document.createElement("sd-4-0-0-next-4-popup");d.appendChild(n),(g=e.shadowRoot)==null||g.appendChild(d),d==null||d.setAttribute("exportparts","popup__content"),d&&(d.active=!1,d.autoSize="vertical",d.autoSizePadding=16,d.placement="bottom-start",d.anchor=e,d.sync="width");let h=a`sd-4-0-0-next-4-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-4-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-0-0-next-4-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-0-0-next-4-popup li{list-style-type:""}sd-4-0-0-next-4-popup li mark{background-color:transparent;font-weight:700}sd-4-0-0-next-4-popup li:not(:has(sd-4-0-0-next-4-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-0-0-next-4-popup li:not(:has(sd-4-0-0-next-4-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-0-0-next-4-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`,p=new CSSStyleSheet;p.replaceSync(h),e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,p]}),i&&r.addEventListener("selection",n=>{var d;e.value=(d=n==null?void 0:n.detail)==null?void 0:d.selection.value}),r.addEventListener("open",()=>{var n,d,h,p,f,g;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-4-0-0-next-4-popup"))==null||d.setAttribute("active","true"),(p=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||p.classList.add("rounded-b-none"),(g=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||g.classList.add("z-50")}),r.addEventListener("close",()=>{var n,d,h,p,f,g;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-4-0-0-next-4-popup"))==null||d.removeAttribute("active"),(p=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||p.classList.remove("rounded-b-none"),(g=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||g.classList.remove("z-50")}),t&&r.addEventListener("navigate",()=>{let n=e.shadowRoot.querySelector('[aria-selected="true"]');n==null||n.scrollIntoView({block:"nearest"})}),{config:{selector:()=>r,resultsList:{tag:"ul"},wrapper:!1}}}export{F as LocalizeController,ft as SdAccordion,ae as SdAccordionGroup,Z as SdAnimation,it as SdAudio,Jt as SdBadge,Rt as SdBrandshape,N as SdButton,j as SdCarousel,ne as SdCarouselItem,G as SdCheckbox,Mt as SdCheckboxGroup,T as SdCombobox,xt as SdDialog,Kt as SdDivider,ct as SdDrawer,tt as SdDropdown,St as SdExpandable,Tt as SdFlipcard,he as SdHeader,lt as SdIcon,jt as SdInclude,A as SdInput,kt as SdLink,Lt as SdMapMarker,rt as SdNavigationItem,gt as SdNotification,Pt as SdOptgroup,ht as SdOption,I as SdPopup,Ee as SdQuickfact,pt as SdRadio,vt as SdRadioButton,W as SdRadioGroup,ut as SdScrollable,z as SdSelect,ke as SdSpinner,ot as SdStep,yt as SdStepGroup,at as SdSwitch,Ct as SdTab,zt as SdTabGroup,te as SdTabPanel,st as SdTag,It as SdTeaser,pe as SdTeaserMedia,H as SdTextarea,nt as SdTooltip,Wt as SdVideo,zo as registerIconLibrary,O2 as setupAutocomplete,cs as unregisterIconLibrary};
163
+ " class="${c(this.open&&"tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{start:2,end:-2,default:0}[t?"start":e?"end":"default"]*(this.size==="sm"?-1:1)}" strategy="${this.hoist?"fixed":"absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" aria-describedby="tooltip" class="${c(this.size==="lg"?"text-xl":"text-base")}"><button class="flex sd-interactive rounded-full"><sd-4-0-0-next-6-icon library="system" name="info-circle" class="${c(this.disabled&&"sd-interactive--disabled")}"></sd-4-0-0-next-6-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open?"polite":"off"}">${this.content}</slot></sd-4-0-0-next-6-popup>`}};nt.styles=[...m.styles,v`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-0-0-next-6-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-0-0-next-6-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-6-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-6-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-0-0-next-6-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],o([b("slot:not([name])")],nt.prototype,"defaultSlot",2),o([b("#tooltip")],nt.prototype,"body",2),o([b("sd-4-0-0-next-6-popup")],nt.prototype,"popup",2),o([l()],nt.prototype,"size",2),o([l()],nt.prototype,"content",2),o([l({reflect:!0})],nt.prototype,"placement",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"disabled",2),o([l({type:Boolean,reflect:!0})],nt.prototype,"open",2),o([l()],nt.prototype,"trigger",2),o([l({type:Boolean})],nt.prototype,"hoist",2),o([w("open",{waitUntilFirstUpdate:!0})],nt.prototype,"handleOpenChange",1),o([w(["content","hoist","placement"])],nt.prototype,"handleOptionsChange",1),o([w("disabled")],nt.prototype,"handleDisabledChange",1),nt=o([y("sd-4-0-0-next-6-tooltip")],nt);H("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}});H("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}});var Wt=class extends m{constructor(){super(...arguments);this.playing=!1;this.overlay=!1;this.isBelowBreakpoint=!1;this.hasSlotController=new _(this,"[default]","play-icon","poster")}get poster(){let t=this.shadowRoot.querySelector("slot[name=poster]");return(t==null?void 0:t.assignedElements().length)>0?t.assignedElements()[0]:null}get video(){return this.querySelector("video")}fadeoutPoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.opacity="0")}hidePoster(){this.poster instanceof HTMLImageElement&&(this.poster.style.display="none")}setVideoInert(t){var e,r;t?(e=this.video)==null||e.setAttribute("inert",""):(r=this.video)==null||r.removeAttribute("inert")}play(){var t;this.emit("sd-play"),this.playing=!0,(t=this.video)==null||t.play(),this.fadeoutPoster(),this.setVideoInert(!1)}handleKeydown(t){t instanceof KeyboardEvent&&(t.key==="Enter"||t.key===" ")&&(this.play(),setTimeout(()=>{var e;(e=this.video)==null||e.focus()}))}handleButtonResize(){this.hostEl.clientWidth<=414&&!this.isBelowBreakpoint&&(this.isBelowBreakpoint=!0),this.hostEl.clientWidth>414&&this.isBelowBreakpoint&&(this.isBelowBreakpoint=!1)}connectedCallback(){super.connectedCallback(),this.setVideoInert(!0),this.resizeObserver=new ResizeObserver(()=>this.handleButtonResize()),this.updateComplete.then(()=>{this.resizeObserver.observe(this.hostEl)})}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this.hostEl)}render(){return u`<div part="base" aria-label="Video Player" class="cursor-pointer"><button part="play-button" aria-label="Play video" tabindex="0" @click="${this.play}" @keydown="${this.handleKeydown}" class="${c(this.playing&&"pointer-events-none","group w-full h-full absolute top-0 left-0 z-30 text-primary hover:text-primary-500 sd-interactive sd-interactive--reset focus-visible:focus-outline")}"><div part="play-button-bg" class="${c(this.playing?"opacity-0":"opacity-100",this.isBelowBreakpoint?"w-[48px] h-[48px]":"w-[96px] h-[96px]","absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline")}"><slot name="play-icon" part="play-icon" class="${c(this.isBelowBreakpoint?"text-[2rem]":"text-[4rem]")}"><sd-4-0-0-next-6-icon id="default-play-icon" library="system" name="start"></sd-4-0-0-next-6-icon></slot></div></button> ${this.hasSlotController.test("poster")?u`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>`:null}<div part="overlay" id="overlay" role="presentation" class="${c(this.overlay&&!this.playing?"opacity-100":"opacity-0","bg-[black] bg-opacity-60 w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition")}"></div><slot></slot></div>`}};Wt.styles=[...m.styles,v`:host{display:inline-block;overflow:hidden;position:relative}.play-pause-transition,::slotted([slot=poster]){transition-duration:.3s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}::slotted([slot=poster]){left:var(--sd-spacing-0,0);position:absolute;top:var(--sd-spacing-0,0);width:100%;z-index:10}#default-play-icon,::slotted([slot=play-icon]){left:50%;position:absolute;top:50%;--tw-translate-x:-50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}`],o([b("[part=base]")],Wt.prototype,"hostEl",2),o([l({type:Boolean,reflect:!0})],Wt.prototype,"playing",2),o([l({type:Boolean,reflect:!0})],Wt.prototype,"overlay",2),o([l({type:Boolean})],Wt.prototype,"isBelowBreakpoint",2),Wt=o([y("sd-4-0-0-next-6-video")],Wt);function M2(s,{setValueOnSelection:i,scrollSelectionIntoView:t}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){let e=s?typeof s=="string"?document.querySelector(s):s:document.querySelector("#autoComplete"),r=e.shadowRoot.querySelector("input"),a=n=>n[0];return r.addEventListener("init",()=>{var f,g;let n=(f=e.shadowRoot)==null?void 0:f.querySelector("ul");n==null||n.setAttribute("part","listbox");let d=document.createElement("sd-4-0-0-next-6-popup");d.appendChild(n),(g=e.shadowRoot)==null||g.appendChild(d),d==null||d.setAttribute("exportparts","popup__content"),d&&(d.active=!1,d.autoSize="vertical",d.autoSizePadding=16,d.placement="bottom-start",d.anchor=e,d.sync="width");let h=a`sd-4-0-0-next-6-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-6-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-0-0-next-6-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-0-0-next-6-popup li{list-style-type:""}sd-4-0-0-next-6-popup li mark{background-color:transparent;font-weight:700}sd-4-0-0-next-6-popup li:not(:has(sd-4-0-0-next-6-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-0-0-next-6-popup li:not(:has(sd-4-0-0-next-6-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-0-0-next-6-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`,p=new CSSStyleSheet;p.replaceSync(h),e.shadowRoot.adoptedStyleSheets=[...e.shadowRoot.adoptedStyleSheets,p]}),i&&r.addEventListener("selection",n=>{var d;e.value=(d=n==null?void 0:n.detail)==null?void 0:d.selection.value}),r.addEventListener("open",()=>{var n,d,h,p,f,g;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-4-0-0-next-6-popup"))==null||d.setAttribute("active","true"),(p=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||p.classList.add("rounded-b-none"),(g=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||g.classList.add("z-50")}),r.addEventListener("close",()=>{var n,d,h,p,f,g;(d=(n=e.shadowRoot)==null?void 0:n.querySelector("sd-4-0-0-next-6-popup"))==null||d.removeAttribute("active"),(p=(h=e.shadowRoot)==null?void 0:h.querySelector('[part="border"]'))==null||p.classList.remove("rounded-b-none"),(g=(f=e.shadowRoot)==null?void 0:f.querySelector('[part="form-control"]'))==null||g.classList.remove("z-50")}),t&&r.addEventListener("navigate",()=>{let n=e.shadowRoot.querySelector('[aria-selected="true"]');n==null||n.scrollIntoView({block:"nearest"})}),{config:{selector:()=>r,resultsList:{tag:"ul"},wrapper:!1}}}export{F as LocalizeController,ft as SdAccordion,ae as SdAccordionGroup,Z as SdAnimation,it as SdAudio,Jt as SdBadge,Rt as SdBrandshape,N as SdButton,j as SdCarousel,ne as SdCarouselItem,G as SdCheckbox,Mt as SdCheckboxGroup,T as SdCombobox,xt as SdDialog,Kt as SdDivider,ct as SdDrawer,tt as SdDropdown,Ht as SdExpandable,kt as SdFlipcard,he as SdHeader,lt as SdIcon,jt as SdInclude,A as SdInput,Ct as SdLink,Lt as SdMapMarker,rt as SdNavigationItem,gt as SdNotification,Pt as SdOptgroup,ht as SdOption,I as SdPopup,Ee as SdQuickfact,pt as SdRadio,vt as SdRadioButton,W as SdRadioGroup,ut as SdScrollable,z as SdSelect,ke as SdSpinner,ot as SdStep,yt as SdStepGroup,at as SdSwitch,Et as SdTab,zt as SdTabGroup,te as SdTabPanel,st as SdTag,It as SdTeaser,pe as SdTeaserMedia,S as SdTextarea,nt as SdTooltip,Wt as SdVideo,zo as registerIconLibrary,M2 as setupAutocomplete,cs as unregisterIconLibrary};
164
164
  /*! Bundled license information:
165
165
 
166
166
  @lit/reactive-element/css-tag.js: