@politiet/sheriff-web-components 2.9.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/custom-elements.json +1127 -189
  2. package/dist/frameworks/preact.d.ts +7 -1
  3. package/dist/frameworks/preact.d.ts.map +1 -1
  4. package/dist/frameworks/react.d.ts +7 -1
  5. package/dist/frameworks/react.d.ts.map +1 -1
  6. package/dist/frameworks/solidjs.d.ts +2 -0
  7. package/dist/frameworks/solidjs.d.ts.map +1 -1
  8. package/dist/frameworks/svelte.d.ts +2 -0
  9. package/dist/frameworks/svelte.d.ts.map +1 -1
  10. package/dist/frameworks/vue.d.ts +2 -0
  11. package/dist/frameworks/vue.d.ts.map +1 -1
  12. package/dist/index.d.ts +5 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +2 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/react-wrappers/SDSEnvironmentBannerWrapper.d.ts +3 -0
  17. package/dist/react-wrappers/SDSEnvironmentBannerWrapper.d.ts.map +1 -0
  18. package/dist/react-wrappers/SDSEnvironmentBannerWrapper.js +10 -0
  19. package/dist/react-wrappers/SDSEnvironmentBannerWrapper.js.map +1 -0
  20. package/dist/react-wrappers/SDSInternalHeaderWrapper.d.ts +3 -0
  21. package/dist/react-wrappers/SDSInternalHeaderWrapper.d.ts.map +1 -0
  22. package/dist/react-wrappers/SDSInternalHeaderWrapper.js +10 -0
  23. package/dist/react-wrappers/SDSInternalHeaderWrapper.js.map +1 -0
  24. package/dist/react-wrappers/index.d.ts +2 -0
  25. package/dist/react-wrappers/index.d.ts.map +1 -1
  26. package/dist/react-wrappers/index.js +2 -0
  27. package/dist/react-wrappers/index.js.map +1 -1
  28. package/dist/sds-alert/sds-alert.component.d.ts +2 -2
  29. package/dist/sds-alert/sds-alert.component.d.ts.map +1 -1
  30. package/dist/sds-alert/sds-alert.component.js +3 -2
  31. package/dist/sds-alert/sds-alert.component.js.map +1 -1
  32. package/dist/sds-button/sds-button.component.d.ts +3 -2
  33. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  34. package/dist/sds-button/sds-button.component.js +4 -3
  35. package/dist/sds-button/sds-button.component.js.map +1 -1
  36. package/dist/sds-card/sds-card.d.ts +2 -2
  37. package/dist/sds-card/sds-card.d.ts.map +1 -1
  38. package/dist/sds-card/sds-card.js +3 -2
  39. package/dist/sds-card/sds-card.js.map +1 -1
  40. package/dist/sds-checkbox/sds-checkbox.d.ts +3 -2
  41. package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
  42. package/dist/sds-checkbox/sds-checkbox.js +3 -2
  43. package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
  44. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts +2 -2
  45. package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
  46. package/dist/sds-checkbox-group/sds-checkbox-group.js +3 -2
  47. package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
  48. package/dist/sds-chip/sds-chip.d.ts +2 -2
  49. package/dist/sds-chip/sds-chip.d.ts.map +1 -1
  50. package/dist/sds-chip/sds-chip.js +3 -2
  51. package/dist/sds-chip/sds-chip.js.map +1 -1
  52. package/dist/sds-details/sds-details.d.ts +2 -2
  53. package/dist/sds-details/sds-details.d.ts.map +1 -1
  54. package/dist/sds-details/sds-details.js +3 -2
  55. package/dist/sds-details/sds-details.js.map +1 -1
  56. package/dist/sds-details-group/sds-details-group.d.ts +2 -2
  57. package/dist/sds-details-group/sds-details-group.d.ts.map +1 -1
  58. package/dist/sds-details-group/sds-details-group.js +3 -2
  59. package/dist/sds-details-group/sds-details-group.js.map +1 -1
  60. package/dist/sds-dialog/sds-dialog.component.d.ts +3 -2
  61. package/dist/sds-dialog/sds-dialog.component.d.ts.map +1 -1
  62. package/dist/sds-dialog/sds-dialog.component.js +3 -2
  63. package/dist/sds-dialog/sds-dialog.component.js.map +1 -1
  64. package/dist/sds-environment-banner/sds-environment-banner.component.d.ts +13 -0
  65. package/dist/sds-environment-banner/sds-environment-banner.component.d.ts.map +1 -0
  66. package/dist/sds-environment-banner/sds-environment-banner.component.js +36 -0
  67. package/dist/sds-environment-banner/sds-environment-banner.component.js.map +1 -0
  68. package/dist/sds-environment-banner/sds-environment-banner.d.ts +9 -0
  69. package/dist/sds-environment-banner/sds-environment-banner.d.ts.map +1 -0
  70. package/dist/sds-environment-banner/sds-environment-banner.js +15 -0
  71. package/dist/sds-environment-banner/sds-environment-banner.js.map +1 -0
  72. package/dist/sds-environment-banner/sds-environment-banner.styles.d.ts +2 -0
  73. package/dist/sds-environment-banner/sds-environment-banner.styles.d.ts.map +1 -0
  74. package/dist/sds-environment-banner/sds-environment-banner.styles.js +98 -0
  75. package/dist/sds-environment-banner/sds-environment-banner.styles.js.map +1 -0
  76. package/dist/sds-heading/sds-heading.component.d.ts +2 -2
  77. package/dist/sds-heading/sds-heading.component.d.ts.map +1 -1
  78. package/dist/sds-heading/sds-heading.component.js +3 -2
  79. package/dist/sds-heading/sds-heading.component.js.map +1 -1
  80. package/dist/sds-icon/sds-icon-names.d.ts +1 -1
  81. package/dist/sds-icon/sds-icon-names.d.ts.map +1 -1
  82. package/dist/sds-icon/sds-icon-names.js +484 -0
  83. package/dist/sds-icon/sds-icon-names.js.map +1 -1
  84. package/dist/sds-icon/sds-icon.component.d.ts +2 -2
  85. package/dist/sds-icon/sds-icon.component.d.ts.map +1 -1
  86. package/dist/sds-icon/sds-icon.component.js +3 -2
  87. package/dist/sds-icon/sds-icon.component.js.map +1 -1
  88. package/dist/sds-internal-header/sds-internal-header.component.d.ts +14 -0
  89. package/dist/sds-internal-header/sds-internal-header.component.d.ts.map +1 -0
  90. package/dist/sds-internal-header/sds-internal-header.component.js +54 -0
  91. package/dist/sds-internal-header/sds-internal-header.component.js.map +1 -0
  92. package/dist/sds-internal-header/sds-internal-header.d.ts +10 -0
  93. package/dist/sds-internal-header/sds-internal-header.d.ts.map +1 -0
  94. package/dist/sds-internal-header/sds-internal-header.js +15 -0
  95. package/dist/sds-internal-header/sds-internal-header.js.map +1 -0
  96. package/dist/sds-internal-header/sds-internal-header.styles.d.ts +2 -0
  97. package/dist/sds-internal-header/sds-internal-header.styles.d.ts.map +1 -0
  98. package/dist/sds-internal-header/sds-internal-header.styles.js +122 -0
  99. package/dist/sds-internal-header/sds-internal-header.styles.js.map +1 -0
  100. package/dist/sds-loader/sds-loader.d.ts +2 -2
  101. package/dist/sds-loader/sds-loader.d.ts.map +1 -1
  102. package/dist/sds-loader/sds-loader.js +3 -2
  103. package/dist/sds-loader/sds-loader.js.map +1 -1
  104. package/dist/sds-notification/sds-notification.d.ts +3 -2
  105. package/dist/sds-notification/sds-notification.d.ts.map +1 -1
  106. package/dist/sds-notification/sds-notification.js +3 -2
  107. package/dist/sds-notification/sds-notification.js.map +1 -1
  108. package/dist/sds-popover/sds-popover.d.ts +4 -3
  109. package/dist/sds-popover/sds-popover.d.ts.map +1 -1
  110. package/dist/sds-popover/sds-popover.js +3 -2
  111. package/dist/sds-popover/sds-popover.js.map +1 -1
  112. package/dist/sds-process/sds-process.d.ts +2 -2
  113. package/dist/sds-process/sds-process.d.ts.map +1 -1
  114. package/dist/sds-process/sds-process.js +3 -2
  115. package/dist/sds-process/sds-process.js.map +1 -1
  116. package/dist/sds-process-step/sds-process-step.d.ts +2 -2
  117. package/dist/sds-process-step/sds-process-step.d.ts.map +1 -1
  118. package/dist/sds-process-step/sds-process-step.js +3 -2
  119. package/dist/sds-process-step/sds-process-step.js.map +1 -1
  120. package/dist/sds-radio/sds-radio.d.ts +3 -2
  121. package/dist/sds-radio/sds-radio.d.ts.map +1 -1
  122. package/dist/sds-radio/sds-radio.js +7 -2
  123. package/dist/sds-radio/sds-radio.js.map +1 -1
  124. package/dist/sds-radio-group/sds-radio-group.d.ts +2 -2
  125. package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
  126. package/dist/sds-radio-group/sds-radio-group.js +3 -2
  127. package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
  128. package/dist/sds-select/sds-select.component.d.ts +2 -2
  129. package/dist/sds-select/sds-select.component.d.ts.map +1 -1
  130. package/dist/sds-select/sds-select.component.js +7 -2
  131. package/dist/sds-select/sds-select.component.js.map +1 -1
  132. package/dist/sds-select/sds-select.styles.d.ts.map +1 -1
  133. package/dist/sds-select/sds-select.styles.js +12 -18
  134. package/dist/sds-select/sds-select.styles.js.map +1 -1
  135. package/dist/sds-stepper/sds-stepper.d.ts +2 -2
  136. package/dist/sds-stepper/sds-stepper.d.ts.map +1 -1
  137. package/dist/sds-stepper/sds-stepper.js +3 -2
  138. package/dist/sds-stepper/sds-stepper.js.map +1 -1
  139. package/dist/sds-stepper-step/sds-stepper-step.d.ts +2 -2
  140. package/dist/sds-stepper-step/sds-stepper-step.d.ts.map +1 -1
  141. package/dist/sds-stepper-step/sds-stepper-step.js +4 -3
  142. package/dist/sds-stepper-step/sds-stepper-step.js.map +1 -1
  143. package/dist/sds-switch/sds-switch.d.ts +2 -2
  144. package/dist/sds-switch/sds-switch.d.ts.map +1 -1
  145. package/dist/sds-switch/sds-switch.js +3 -2
  146. package/dist/sds-switch/sds-switch.js.map +1 -1
  147. package/dist/sds-tag/sds-tag.d.ts +2 -2
  148. package/dist/sds-tag/sds-tag.d.ts.map +1 -1
  149. package/dist/sds-tag/sds-tag.js +3 -2
  150. package/dist/sds-tag/sds-tag.js.map +1 -1
  151. package/dist/sds-text/sds-text.component.d.ts +2 -2
  152. package/dist/sds-text/sds-text.component.d.ts.map +1 -1
  153. package/dist/sds-text/sds-text.component.js +3 -2
  154. package/dist/sds-text/sds-text.component.js.map +1 -1
  155. package/dist/sds-textarea/sds-textarea.d.ts +2 -2
  156. package/dist/sds-textarea/sds-textarea.d.ts.map +1 -1
  157. package/dist/sds-textarea/sds-textarea.js +3 -2
  158. package/dist/sds-textarea/sds-textarea.js.map +1 -1
  159. package/dist/sds-textfield/sds-textfield.component.d.ts +68 -0
  160. package/dist/sds-textfield/sds-textfield.component.d.ts.map +1 -0
  161. package/dist/sds-textfield/sds-textfield.component.js +250 -0
  162. package/dist/sds-textfield/sds-textfield.component.js.map +1 -0
  163. package/dist/sds-textfield/sds-textfield.d.ts +3 -66
  164. package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
  165. package/dist/sds-textfield/sds-textfield.js +2 -241
  166. package/dist/sds-textfield/sds-textfield.js.map +1 -1
  167. package/dist/sds-tooltip/sds-tooltip.d.ts +4 -3
  168. package/dist/sds-tooltip/sds-tooltip.d.ts.map +1 -1
  169. package/dist/sds-tooltip/sds-tooltip.js +3 -2
  170. package/dist/sds-tooltip/sds-tooltip.js.map +1 -1
  171. package/dist/sds-tooltip/sds-tooltip.styles.js +8 -8
  172. package/dist/sds-tooltip/sds-tooltip.styles.js.map +1 -1
  173. package/dist/sheriff-web-components.js +389 -159
  174. package/dist/utils/sds-element.d.ts +5 -0
  175. package/dist/utils/sds-element.d.ts.map +1 -0
  176. package/dist/utils/sds-element.js +9 -0
  177. package/dist/utils/sds-element.js.map +1 -0
  178. package/dist/version.d.ts +2 -0
  179. package/dist/version.d.ts.map +1 -0
  180. package/dist/version.js +3 -0
  181. package/dist/version.js.map +1 -0
  182. package/package.json +18 -4
  183. package/web-types.json +584 -3
@@ -1,4 +1,4 @@
1
- var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o)(t,"symbol"!=typeof s?s+"":s,o);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=/* @__PURE__ */Symbol(),i=/* @__PURE__ */new WeakMap;let d=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&i.set(e,t))}return t}toString(){return this.cssText}};const n=t=>new d("string"==typeof t?t:t+"",void 0,a),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new d(s,t,a)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return n(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:g,getOwnPropertyNames:u,getOwnPropertySymbols:v,getPrototypeOf:f}=Object,b=globalThis,m=b.trustedTypes,_=m?m.emptyScript:"",x=b.reactiveElementPolyfillSupport,y=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},k=(t,e)=>!h(t,e),z={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),b.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&p(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??z}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...u(t),...v(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(r)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??k)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[y("elementProperties")]=/* @__PURE__ */new Map,$[y("finalized")]=/* @__PURE__ */new Map,x?.({ReactiveElement:$}),(b.reactiveElementVersions??=[]).push("2.1.2");const S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},C=(t=S,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function E(t){return(e,s)=>"object"==typeof s?C(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function A(t){return E({...t,state:!0,attribute:!1})}const L=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function O(t,e){return(e,s,o)=>L(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function T(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return L(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const D=globalThis,M=t=>t,q=D.trustedTypes,R=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+B,j=`<${H}>`,F=document,I=()=>F.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,Y=/>/g,X=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,Q=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=(at=1,(t,...e)=>({_$litType$:at,strings:t,values:e})),et=/* @__PURE__ */Symbol.for("lit-noChange"),st=/* @__PURE__ */Symbol.for("lit-nothing"),ot=/* @__PURE__ */new WeakMap,rt=F.createTreeWalker(F,129);var at;function it(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(e):e}let dt=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=K;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===K?"!--"===n[1]?i=G:void 0!==n[1]?i=Y:void 0!==n[2]?(J.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=X):void 0!==n[3]&&(i=X):i===X?">"===n[0]?(i=r??K,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?X:'"'===n[3]?Q:Z):i===Q||i===Z?i=X:i===G||i===Y?i=K:(i=X,r=void 0);const h=i===X&&t[d+1].startsWith("/>")?" ":"";a+=i===K?e+j:l>=0?(o.push(s),e.slice(0,l)+V+e.slice(l)+B+h):e+B+(-2===l?d:h)}return[it(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),rt.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=rt.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(V)){const e=c[i++],s=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?pt:"?"===o[1]?gt:"@"===o[1]?ut:ht}),r.removeAttribute(t)}else t.startsWith(B)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],I()),rt.nextNode(),n.push({type:2,index:++a});r.append(t[e],I())}}}else if(8===r.nodeType)if(r.data===H)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)n.push({type:7,index:a}),t+=B.length-1}a++}}static createElement(t,e){const s=F.createElement("template");return s.innerHTML=t,s}};function nt(t,e,s=t,o){if(e===et)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=N(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=nt(t,r._$AS(t,e.values),r,o)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??F).importNode(e,!0);rt.currentNode=o;let r=rt.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new ct(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new vt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=rt.nextNode(),a++)}return rt.currentNode=F,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},ct=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=nt(this,t,e),N(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==st&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=dt.createElement(it(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new lt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=ot.get(t.strings);return void 0===e&&ot.set(t.strings,e=new dt(t)),e}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(I()),this.O(I()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=M(t).nextSibling;M(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=st}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=nt(this,t,e,0),a=!N(t)||t!==this._$AH&&t!==et,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=nt(this,o[s+i],e,i),d===et&&(d=this._$AH[i]),a||=!N(d)||d!==this._$AH[i],d===st?t=st:t!==st&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===st?void 0:t}},gt=class extends ht{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}},ut=class extends ht{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=nt(this,t,e,0)??st)===et)return;const s=this._$AH,o=t===st&&s!==st||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==st&&(s===st||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}};const ft=D.litHtmlPolyfillSupport;ft?.(dt,ct),(D.litHtmlVersions??=[]).push("3.3.3");const bt=globalThis;let mt=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new ct(e.insertBefore(I(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return et}};mt._$litElement$=!0,mt.finalized=!0,bt.litElementHydrateSupport?.({LitElement:mt});const _t=bt.litElementPolyfillSupport;_t?.({LitElement:mt}),(bt.litElementVersions??=[]).push("4.2.2");const xt=/* @__PURE__ */Symbol.for(""),yt=t=>{if(t?.r===xt)return t?._$litStatic$},wt=t=>({_$litStatic$:t,r:xt}),kt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:xt}),zt=/* @__PURE__ */new Map,$t=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=yt(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=zt.get(t))&&(i.raw=i,zt.set(t,e=i)),s=d}return t(e,...s)})(tt),St=l`
1
+ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[s]=o)(t,"symbol"!=typeof s?s+"":s,o);const o=globalThis,r=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=/* @__PURE__ */Symbol(),i=/* @__PURE__ */new WeakMap;let d=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=i.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&i.set(e,t))}return t}toString(){return this.cssText}};const n=t=>new d("string"==typeof t?t:t+"",void 0,a),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new d(s,t,a)},c=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return n(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:g,getOwnPropertyNames:v,getOwnPropertySymbols:u,getPrototypeOf:f}=Object,b=globalThis,m=b.trustedTypes,_=m?m.emptyScript:"",x=b.reactiveElementPolyfillSupport,y=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},k=(t,e)=>!h(t,e),z={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:k};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),b.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=z){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&p(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=g(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??z}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...v(t),...u(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(r)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=s.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??k)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[y("elementProperties")]=/* @__PURE__ */new Map,$[y("finalized")]=/* @__PURE__ */new Map,x?.({ReactiveElement:$}),(b.reactiveElementVersions??=[]).push("2.1.2");const S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:k},C=(t=S,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function E(t){return(e,s)=>"object"==typeof s?C(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function L(t){return E({...t,state:!0,attribute:!1})}const A=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function O(t,e){return(e,s,o)=>A(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function T(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return A(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function P(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const D=globalThis,M=t=>t,q=D.trustedTypes,R=q?q.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,H="?"+B,j=`<${H}>`,N=document,F=()=>N.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,W="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,Y=/>/g,Z=RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,J=/^(?:script|style|textarea|title)$/i,tt=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),et=tt(1),st=tt(2),ot=/* @__PURE__ */Symbol.for("lit-noChange"),rt=/* @__PURE__ */Symbol.for("lit-nothing"),at=/* @__PURE__ */new WeakMap,it=N.createTreeWalker(N,129);function dt(t,e){if(!U(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(e):e}let nt=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=K;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===K?"!--"===n[1]?i=G:void 0!==n[1]?i=Y:void 0!==n[2]?(J.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=Z):void 0!==n[3]&&(i=Z):i===Z?">"===n[0]?(i=r??K,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?Z:'"'===n[3]?Q:X):i===Q||i===X?i=Z:i===G||i===Y?i=K:(i=Z,r=void 0);const h=i===Z&&t[d+1].startsWith("/>")?" ":"";a+=i===K?e+j:l>=0?(o.push(s),e.slice(0,l)+V+e.slice(l)+B+h):e+B+(-2===l?d:h)}return[dt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),it.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=it.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(V)){const e=c[i++],s=r.getAttribute(t).split(B),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?gt:"?"===o[1]?vt:"@"===o[1]?ut:pt}),r.removeAttribute(t)}else t.startsWith(B)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(J.test(r.tagName)){const t=r.textContent.split(B),e=t.length-1;if(e>0){r.textContent=q?q.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),it.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===H)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(B,t+1));)n.push({type:7,index:a}),t+=B.length-1}a++}}static createElement(t,e){const s=N.createElement("template");return s.innerHTML=t,s}};function lt(t,e,s=t,o){if(e===ot)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=I(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=lt(t,r._$AS(t,e.values),r,o)),e}let ct=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??N).importNode(e,!0);it.currentNode=o;let r=it.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new ht(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new ft(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=it.nextNode(),a++)}return it.currentNode=N,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},ht=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),I(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>U(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==rt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=nt.createElement(dt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new ct(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new nt(t)),e}k(e){U(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(F()),this.O(F()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=M(t).nextSibling;M(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=rt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=lt(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==ot,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=lt(this,o[s+i],e,i),d===ot&&(d=this._$AH[i]),a||=!I(d)||d!==this._$AH[i],d===rt?t=rt:t!==rt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gt=class extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}},vt=class extends pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},ut=class extends pt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const s=this._$AH,o=t===rt&&s!==rt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==rt&&(s===rt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ft=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){lt(this,t)}};const bt=D.litHtmlPolyfillSupport;bt?.(nt,ht),(D.litHtmlVersions??=[]).push("3.3.3");const mt=globalThis;let _t=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new ht(e.insertBefore(F(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ot}};_t._$litElement$=!0,_t.finalized=!0,mt.litElementHydrateSupport?.({LitElement:_t});const xt=mt.litElementPolyfillSupport;xt?.({LitElement:_t}),(mt.litElementVersions??=[]).push("4.2.2");class yt extends _t{constructor(){super(...arguments),this.sheriffVersion="2.11.0"}}const wt=/* @__PURE__ */Symbol.for(""),kt=t=>{if(t?.r===wt)return t?._$litStatic$},zt=t=>({_$litStatic$:t,r:wt}),$t=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:wt}),St=/* @__PURE__ */new Map,Ct=(Et=et,(t,...e)=>{const s=e.length;let o,r;const a=[],i=[];let d,n=0,l=!1;for(;n<s;){for(d=t[n];n<s&&void 0!==(r=e[n],o=kt(r));)d+=o+t[++n],l=!0;n!==s&&i.push(r),a.push(d),n++}if(n===s&&a.push(t[s]),l){const s=a.join("$$lit$$");void 0===(t=St.get(s))&&(a.raw=a,St.set(s,t=a)),e=i}return Et(t,...e)});var Et;const Lt=l`
2
2
  :host {
3
3
  --_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
4
4
 
@@ -180,7 +180,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
180
180
  margin: 0 !important;
181
181
  max-width: var(--_sds-alert-max-line-width) !important;
182
182
  }
183
- `,Ct=/* @__PURE__ */new Set(["focus","blur","focusin","focusout","input","change","play","pause","ended","volumechange","timeupdate","durationchange","loadeddata","loadedmetadata","loadstart","canplay","canplaythrough","playing","seeked","stalled","suspend","waiting","ratechange","close","load","unload","abort","error","resize","scroll","keyup","select"]);function Et(t){return class extends t{dispatchSheriffEvent(t,e,s=!Ct.has(t)){return this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0,cancelable:s}))}dispatchKeyboardEvent(t,e){return this.dispatchEvent(new KeyboardEvent(t,{key:e.key,code:e.code,bubbles:!0,composed:!0,cancelable:!Ct.has(t),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat,isComposing:e.isComposing,location:e.location}))}}}var At=Object.defineProperty,Lt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&At(e,s,a),a};const Ot={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Tt=class extends(Et(mt)){constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=kt`sds-icon`,this.buttonTag=kt`sds-button`,this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},this._renderIcon=(t,e,s)=>$t`<${this.iconTag} ${s?`class=${s}`:""} name="${t}" size=${e}></${this.iconTag}>`,this._renderRemoveButton=t=>$t`<${this.buttonTag}
183
+ `,At=/* @__PURE__ */new Set(["focus","blur","focusin","focusout","input","change","play","pause","ended","volumechange","timeupdate","durationchange","loadeddata","loadedmetadata","loadstart","canplay","canplaythrough","playing","seeked","stalled","suspend","waiting","ratechange","close","load","unload","abort","error","resize","scroll","keyup","select"]);function Ot(t){return class extends t{dispatchSheriffEvent(t,e,s=!At.has(t)){return this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0,cancelable:s}))}dispatchKeyboardEvent(t,e){return this.dispatchEvent(new KeyboardEvent(t,{key:e.key,code:e.code,bubbles:!0,composed:!0,cancelable:!At.has(t),ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,repeat:e.repeat,isComposing:e.isComposing,location:e.location}))}}}var Tt=Object.defineProperty,Pt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Tt(e,s,a),a};const Dt={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",danger:"dangerous-material-filled"},Mt=class extends(Ot(yt)){constructor(){super(...arguments),this.variant="primary",this.size="md",this.palette="info",this.iconTag=$t`sds-icon`,this.buttonTag=$t`sds-button`,this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},this._renderIcon=(t,e,s)=>Ct`<${this.iconTag} ${s?`class=${s}`:""} name="${t}" size=${e}></${this.iconTag}>`,this._renderRemoveButton=t=>Ct`<${this.buttonTag}
184
184
  class="sds-alert__remove-btn"
185
185
  variant="tertiary"
186
186
  size="sm"
@@ -189,14 +189,14 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
189
189
  @click=${this._remove}
190
190
  >
191
191
  ${this._renderIcon("close-material-outlined","sm")}
192
- </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",e=Ot[this.palette]??Ot.info;return tt`<div class="sds-alert">
192
+ </${this.buttonTag}>`}render(){const t="primary"===this.variant?"md":this.size??"md",e=Dt[this.palette]??Dt.info;return et`<div class="sds-alert">
193
193
  <div class="sds-alert__type">${this._renderIcon(e,t,"sds-alert__icon")}</div>
194
194
  <div class="sds-alert__content">
195
195
  <slot name="title"></slot>
196
196
  <slot name="message"></slot>
197
197
  </div>
198
- ${this.removableLabel&&"primary"===this.variant?tt`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:st}
199
- </div>`}};Tt.styles=[St];let Pt=Tt;Lt([E({type:String,reflect:!0})],Pt.prototype,"variant"),Lt([E({type:String,reflect:!0})],Pt.prototype,"size"),Lt([E({type:String,attribute:"removable-label",reflect:!0})],Pt.prototype,"removableLabel"),Lt([E({type:String,attribute:"data-palette",reflect:!0})],Pt.prototype,"palette");const Dt=t=>t??st,Mt=1,qt=2,Rt=t=>(...e)=>({_$litDirective$:t,values:e});let Vt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},Bt=class extends Vt{constructor(t){if(super(t),this.it=st,t.type!==qt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===st||null==t)return this._t=void 0,this.it=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Bt.directiveName="unsafeHTML",Bt.resultType=1;let Ht=class extends Bt{};Ht.directiveName="unsafeSVG",Ht.resultType=2;const jt=Rt(Ht),Ft=["arrow_forward-material-outlined","check_circle-material-filled","close-material-outlined","dangerous-material-filled","InformationSquareFill-aksel-filled","lock-material-filled","search-material-filled","warning-material-filled","chevron_up-material-filled"],It={"arrow_forward-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M662.82-440.39H145.87v-79.22h516.95L423.87-758.57 480-814.7 814.7-480 480-145.87l-56.13-55.56z"/></svg>',"check_circle-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="m419.87-289.52 289.22-289.22-57.31-56.87L419.87-403.7 304.96-518.61l-56.31 56.87zm60.21 223.65q-85.47 0-161.01-32.39-75.53-32.4-131.97-88.84T98.26-318.99q-32.39-75.46-32.39-160.93 0-86.47 32.39-162.01 32.4-75.53 88.75-131.5t131.85-88.62 161.01-32.65q86.52 0 162.12 32.61 75.61 32.6 131.53 88.5 55.93 55.89 88.55 131.45Q894.7-566.58 894.7-480q0 85.55-32.65 161.07-32.65 75.53-88.62 131.9T642.01-98.26q-75.46 32.39-161.93 32.39"/></svg>',"close-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M249-193.43 193.43-249l231-231-231-231L249-766.57l231 231 231-231L766.57-711l-231 231 231 231L711-193.43l-231-231z"/></svg>',"dangerous-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M324.35-105.87 105.87-324.35v-311.87L324.35-854.7h311.87L854.7-636.22v311.87L636.22-105.87zm34.91-206.87L480-433.48l120.74 120.74 47.09-46.52L526.52-480l121.31-120.74-47.09-47.09L480-526.52 359.26-647.83l-46.52 47.09L433.48-480 312.74-359.26z"/></svg>',"InformationSquareFill-aksel-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75" clip-rule="evenodd"/></svg>',"lock-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M225.09-67q-32.68 0-55.95-23.27t-23.27-55.95v-423.82q0-32.91 23.27-56.35t55.95-23.44h58.69v-83.56q0-82.44 57.17-140.18 57.16-57.73 139.02-57.73t139.05 57.73q57.2 57.74 57.2 140.18v83.56h58.69q32.91 0 56.35 23.44t23.44 56.35v423.82q0 32.68-23.44 55.95T734.91-67zm255.08-214.13q31.83 0 54.33-22.03t22.5-52.97q0-30-22.67-54.5t-54.5-24.5-54.33 24.5-22.5 55 22.67 52.5 54.5 22M363-649.83h234v-83.43q0-49.96-33.79-84.11-33.8-34.15-82.96-34.15t-83.21 34.15Q363-783.22 363-733.26z"/></svg>',"search-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M795.43-105.17 529.04-371q-29.43 24.26-69.11 37.94-39.67 13.67-85.32 13.67-112.12 0-189.87-77.83Q107-475.04 107-585t77.83-187.78q77.82-77.83 188.28-77.83t187.78 77.83q77.33 77.82 77.33 187.93 0 43.98-13.15 83.13-13.16 39.15-39.46 73.59L853-162.74zM373.81-398.61q77.66 0 131.42-54.53Q559-507.67 559-585t-53.85-131.86-131.34-54.53q-78.33 0-132.96 54.53T186.22-585t54.55 131.86 133.04 54.53"/></svg>',"warning-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M27.56-112.65 480-894.7l452.44 782.05zm456.62-125.48q13.15 0 22.61-9.64 9.47-9.65 9.47-22.8t-9.64-22.33q-9.65-9.19-22.8-9.19t-22.61 9.36q-9.47 9.36-9.47 22.51t9.64 22.62q9.65 9.47 22.8 9.47M454-348h60v-219.48h-60z"/></svg>',"chevron_up-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 32 32"><path d="m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z"/></svg>'},Nt=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Ut=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(e=>{if(!e.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return e.text()});const Wt=l`
198
+ ${this.removableLabel&&"primary"===this.variant?et`<div class="sds-alert__actions">${this._renderRemoveButton(this.removableLabel)}</div>`:rt}
199
+ </div>`}};Mt.styles=[Lt];let qt=Mt;Pt([E({type:String,reflect:!0})],qt.prototype,"variant"),Pt([E({type:String,reflect:!0})],qt.prototype,"size"),Pt([E({type:String,attribute:"removable-label",reflect:!0})],qt.prototype,"removableLabel"),Pt([E({type:String,attribute:"data-palette",reflect:!0})],qt.prototype,"palette");const Rt=t=>t??rt,Vt=1,Bt=2,Ht=t=>(...e)=>({_$litDirective$:t,values:e});let jt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}},Nt=class extends jt{constructor(t){if(super(t),this.it=rt,t.type!==Bt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this._t=void 0,this.it=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Nt.directiveName="unsafeHTML",Nt.resultType=1;let Ft=class extends Nt{};Ft.directiveName="unsafeSVG",Ft.resultType=2;const It=Ht(Ft),Ut=["arrow_forward-material-outlined","check_circle-material-filled","close-material-outlined","dangerous-material-filled","InformationSquareFill-aksel-filled","lock-material-filled","search-material-filled","warning-material-filled","chevron_up-material-filled"],Wt={"arrow_forward-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M662.82-440.39H145.87v-79.22h516.95L423.87-758.57 480-814.7 814.7-480 480-145.87l-56.13-55.56z"/></svg>',"check_circle-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="m419.87-289.52 289.22-289.22-57.31-56.87L419.87-403.7 304.96-518.61l-56.31 56.87zm60.21 223.65q-85.47 0-161.01-32.39-75.53-32.4-131.97-88.84T98.26-318.99q-32.39-75.46-32.39-160.93 0-86.47 32.39-162.01 32.4-75.53 88.75-131.5t131.85-88.62 161.01-32.65q86.52 0 162.12 32.61 75.61 32.6 131.53 88.5 55.93 55.89 88.55 131.45Q894.7-566.58 894.7-480q0 85.55-32.65 161.07-32.65 75.53-88.62 131.9T642.01-98.26q-75.46 32.39-161.93 32.39"/></svg>',"close-material-outlined":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M249-193.43 193.43-249l231-231-231-231L249-766.57l231 231 231-231L766.57-711l-231 231 231 231L711-193.43l-231-231z"/></svg>',"dangerous-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M324.35-105.87 105.87-324.35v-311.87L324.35-854.7h311.87L854.7-636.22v311.87L636.22-105.87zm34.91-206.87L480-433.48l120.74 120.74 47.09-46.52L526.52-480l121.31-120.74-47.09-47.09L480-526.52 359.26-647.83l-46.52 47.09L433.48-480 312.74-359.26z"/></svg>',"InformationSquareFill-aksel-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75" clip-rule="evenodd"/></svg>',"lock-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M225.09-67q-32.68 0-55.95-23.27t-23.27-55.95v-423.82q0-32.91 23.27-56.35t55.95-23.44h58.69v-83.56q0-82.44 57.17-140.18 57.16-57.73 139.02-57.73t139.05 57.73q57.2 57.74 57.2 140.18v83.56h58.69q32.91 0 56.35 23.44t23.44 56.35v423.82q0 32.68-23.44 55.95T734.91-67zm255.08-214.13q31.83 0 54.33-22.03t22.5-52.97q0-30-22.67-54.5t-54.5-24.5-54.33 24.5-22.5 55 22.67 52.5 54.5 22M363-649.83h234v-83.43q0-49.96-33.79-84.11-33.8-34.15-82.96-34.15t-83.21 34.15Q363-783.22 363-733.26z"/></svg>',"search-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M795.43-105.17 529.04-371q-29.43 24.26-69.11 37.94-39.67 13.67-85.32 13.67-112.12 0-189.87-77.83Q107-475.04 107-585t77.83-187.78q77.82-77.83 188.28-77.83t187.78 77.83q77.33 77.82 77.33 187.93 0 43.98-13.15 83.13-13.16 39.15-39.46 73.59L853-162.74zM373.81-398.61q77.66 0 131.42-54.53Q559-507.67 559-585t-53.85-131.86-131.34-54.53q-78.33 0-132.96 54.53T186.22-585t54.55 131.86 133.04 54.53"/></svg>',"warning-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 -960 960 960"><path d="M27.56-112.65 480-894.7l452.44 782.05zm456.62-125.48q13.15 0 22.61-9.64 9.47-9.65 9.47-22.8t-9.64-22.33q-9.65-9.19-22.8-9.19t-22.61 9.36q-9.47 9.36-9.47 22.51t9.64 22.62q9.65 9.47 22.8 9.47M454-348h60v-219.48h-60z"/></svg>',"chevron_up-material-filled":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 32 32"><path d="m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z"/></svg>'},Kt=t=>import(`@politiet/sheriff-icons/dist/assets/${t}.js`).then(({default:t})=>t).catch(t=>{console.log(t)}),Gt=t=>fetch(`https://cdn.jsdelivr.net/npm/@politiet/sheriff-icons/dist/assets/${t}.svg`).then(e=>{if(!e.ok)throw new TypeError(`Sheriff: unknown icon: '${t}'`);return e.text()});const Yt=l`
200
200
  :host {
201
201
  --_sds-icon-size: var(--sds-icon-size, var(--sds-components-icon-md));
202
202
  --_sds-icon-color: var(--sds-icon-color, var(--sds-color-text-subtle, var(--sds-color-neutral-text-subtle)));
@@ -229,11 +229,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
229
229
  height: 100%;
230
230
  overflow: hidden;
231
231
  }
232
- `;var Kt=Object.defineProperty,Gt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Kt(e,s,a),a};const Yt=((t=class extends mt{constructor(){super(...arguments),this.name="",this.color="",this.label="",this.svg=""}static setLoadLocal(t){this.iconLoader.loadLocal=t}static registerResolver(t){this.iconLoader.resolver=t}render(){return tt`
233
- <div class="sds-icon" role="${Dt(this.label?"img":void 0)}" style="${Dt(this.color?`color:${this.color}`:void 0)}" aria-label="${Dt(this.label)}">
234
- ${this.name?tt`<slot aria-hidden="true">${jt(this.svg)}</slot>`:tt`<slot aria-hidden="true"></slot>`}
232
+ `;var Zt=Object.defineProperty,Xt=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Zt(e,s,a),a};const Qt=((t=class extends yt{constructor(){super(...arguments),this.name="",this.color="",this.label="",this.svg=""}static setLoadLocal(t){this.iconLoader.loadLocal=t}static registerResolver(t){this.iconLoader.resolver=t}render(){return et`
233
+ <div class="sds-icon" role="${Rt(this.label?"img":void 0)}" style="${Rt(this.color?`color:${this.color}`:void 0)}" aria-label="${Rt(this.label)}">
234
+ ${this.name?et`<slot aria-hidden="true">${It(this.svg)}</slot>`:et`<slot aria-hidden="true"></slot>`}
235
235
  </div>
236
- `}async fetchIcon(){if(!this.name)return void(this.svg="");const e=await new Promise(e=>{t.iconLoader.resolve(this.name,e)});this.svg=e}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Wt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Nt:Ut}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Nt:Ut}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>Ft.includes(t))(t))return void e(It[t]);let s=this.cache.get(t);"string"!=typeof s?(s||(s=this.resolver(t).catch(()=>"").then(e=>(this.cache.set(t,e),e)),this.cache.set(t,s)),s.then(e)):e(s)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Gt([E({type:String,reflect:!0})],Yt.prototype,"name"),Gt([E({type:String,reflect:!0})],Yt.prototype,"size"),Gt([E({type:String,reflect:!0})],Yt.prototype,"color"),Gt([E({type:String,reflect:!0})],Yt.prototype,"label"),Gt([A()],Yt.prototype,"svg");let Xt=Yt;var Zt=Object.getOwnPropertyDescriptor;let Qt=class extends Xt{};Qt=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Zt(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-icon")],Qt);const Jt=Rt(class extends Vt{constructor(t){if(super(t),t.type!==Mt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=/* @__PURE__ */new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const o of this.st)o in e||(s.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return et}}),te=l`
236
+ `}async fetchIcon(){if(!this.name)return void(this.svg="");const e=await new Promise(e=>{t.iconLoader.resolve(this.name,e)});this.svg=e}updated(t){super.updated(t),t.has("name")&&this.name&&this.fetchIcon()}}).styles=[Yt],t.iconLoader=new class{constructor(){this.cache=/* @__PURE__ */new Map,this._loadLocal=!1,this._disableSystemIcons=!1,this.resolver=this._loadLocal?Kt:Gt}get loadLocal(){return this._loadLocal}set loadLocal(t){this._loadLocal=t,this.resolver=t?Kt:Gt}set disableSystemIcons(t){this._disableSystemIcons=t}resolve(t,e){if(!this._disableSystemIcons&&(t=>Ut.includes(t))(t))return void e(Wt[t]);let s=this.cache.get(t);"string"!=typeof s?(s||(s=this.resolver(t).catch(()=>"").then(e=>(this.cache.set(t,e),e)),this.cache.set(t,s)),s.then(e)):e(s)}clear(){this.cache.clear()}get currentLoader(){return this.resolver}},t);Xt([E({type:String,reflect:!0})],Qt.prototype,"name"),Xt([E({type:String,reflect:!0})],Qt.prototype,"size"),Xt([E({type:String,reflect:!0})],Qt.prototype,"color"),Xt([E({type:String,reflect:!0})],Qt.prototype,"label"),Xt([L()],Qt.prototype,"svg");let Jt=Qt;var te=Object.getOwnPropertyDescriptor;let ee=class extends Jt{};ee=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?te(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-icon")],ee);const se=Ht(class extends jt{constructor(t){if(super(t),t.type!==Vt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=/* @__PURE__ */new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const o of this.st)o in e||(s.remove(o),this.st.delete(o));for(const o in e){const t=!!e[o];t===this.st.has(o)||this.nt?.has(o)||(t?(s.add(o),this.st.add(o)):(s.remove(o),this.st.delete(o)))}return ot}}),oe=l`
237
237
  :host {
238
238
  --_sds-button-background-color: var(--sds-button-background-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
239
239
  --_sds-button-border-color: var(--sds-button-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -489,27 +489,27 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
489
489
  --_sds-button-text-color: var(--sds-button-text-color, var(--sds-color-action-contrast-default, var(--sds-color-neutral-action-contrast-default)));
490
490
  }
491
491
  }
492
- `;function ee(t){return class extends t{focus(){this.disabled||this.control?.focus()}blur(){this.disabled||this.control?.blur()}click(){this.disabled||this.readOnly||this.control?.click()}}}var se=Object.defineProperty,oe=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&se(e,s,a),a};function re(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}firstUpdated(t){super.firstUpdated(t),this.updateValidity()}updateValidity(){}};e.formAssociated=!0,e.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let s=e;return oe([E({type:String,reflect:!0})],s.prototype,"name"),oe([E({type:Boolean,reflect:!0})],s.prototype,"disabled"),oe([E({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}var ae=Object.defineProperty,ie=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ae(e,s,a),a};var de=Object.defineProperty,ne=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&de(e,s,a),a};var le=Object.defineProperty,ce=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&le(e,s,a),a};const he=class extends(function(t){class e extends t{get effectiveCommand(){return this.command??this.dataCommand}get effectiveCommandFor(){return this.commandFor??this.dataCommandFor}updated(t){super.updated(t),(t.has("command")||t.has("commandFor")||t.has("dataCommand")||t.has("dataCommandFor"))&&this._updateCommandTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDialogObserver()}_cleanupDialogObserver(){this._dialogOpenObserver&&(this._dialogOpenObserver.disconnect(),this._dialogOpenObserver=void 0),this._dialogElement=void 0}_observeDialog(t,e){this._dialogOpenObserver=new MutationObserver(s=>{for(const o of s)if("open"===o.attributeName){const s=e.hasAttribute("open");t.setAttribute("aria-expanded",String(s))}}),this._dialogOpenObserver.observe(e,{attributes:!0,attributeFilter:["open"]})}_clearAriaFields(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}_updateCommandTarget(){this._cleanupDialogObserver();const t=this.shadowRoot?.querySelector("#control");if(!t)return;const e=this.effectiveCommand,s=this.effectiveCommandFor;if(!s||!e)return void this._clearAriaFields(t);const o=this.getRootNode(),r=o.getElementById?.(s)??document.getElementById(s);var a;null!=(a=r)&&"showModal"in a&&"requestClose"in a&&"close"in a&&"open"in a?(this._dialogElement=r,"show-modal"===e?(t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(r.open)),t.setAttribute("aria-controls",s),this._observeDialog(t,r)):this._clearAriaFields(t)):this._clearAriaFields(t)}runDialogCommand(){if(this._dialogElement)switch(this.effectiveCommand){case"show-modal":this._dialogElement.showModal();break;case"close":this._dialogElement.close();break;case"request-close":this._dialogElement.requestClose()}}}return ie([E({type:String,attribute:"command",reflect:!0})],e.prototype,"command"),ie([E({type:String,attribute:"commandfor",reflect:!0})],e.prototype,"commandFor"),ie([E({type:String,attribute:"data-command"})],e.prototype,"dataCommand"),ie([E({type:String,attribute:"data-commandfor"})],e.prototype,"dataCommandFor"),e}(function(t){class e extends t{updated(t){super.updated(t),(t.has("popoverTarget")||t.has("popoverTargetAction"))&&this._updatePopoverTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupPopoverListener()}_cleanupPopoverListener(){this._popoverToggleHandler&&this._popoverElement&&(this._popoverElement.removeEventListener("toggle",this._popoverToggleHandler),this._popoverToggleHandler=void 0,this._popoverElement=void 0)}_updatePopoverTarget(){const t=this.shadowRoot?.querySelector("#control");if(t)if(this._cleanupPopoverListener(),this.popoverTarget){const e=this.getRootNode(),s=e.getElementById?.(this.popoverTarget)??document.getElementById(this.popoverTarget);if(s){t.popoverTargetElement=s,this._popoverElement=s;const e=s.getAttribute("role");"tooltip"===e?t.setAttribute("aria-describedby",this.popoverTarget):(this._popoverToggleHandler=e=>{const s="open"===e.newState;t.setAttribute("aria-expanded",String(s))},s.addEventListener("toggle",this._popoverToggleHandler),t.setAttribute("aria-haspopup",e||"dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.popoverTarget))}this.popoverTargetAction&&(t.popoverTargetAction=this.popoverTargetAction)}else t.popoverTargetElement=null,t.popoverTargetAction="",t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-describedby")}}return ne([E({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),ne([E({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(ee(Et(mt))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.inverted=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{this.popoverTarget?this._handlePopoverClick(t):(t.preventDefault(),t.stopImmediatePropagation(),this.disabled||(this.effectiveCommandFor&&this.effectiveCommand?this._handleDialogCommandClick():"submit"===this.type?this._handleSubmitClick():"reset"===this.type?this._handleResetClick():this.dispatchSheriffEvent("click")))},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}_resolveForm(){if(this.form){return this.getRootNode().querySelector(`form#${this.form}`)}return this.internals.form}_handlePopoverClick(t){t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("click")}_handleDialogCommandClick(){this.runDialogCommand(),this.dispatchSheriffEvent("click")}_handleSubmitClick(){this.dispatchSheriffEvent("submit")&&this._resolveForm()?.requestSubmit()}_handleResetClick(){this.dispatchSheriffEvent("reset")&&this._resolveForm()?.reset()}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?tt` <a id="link" class="${Jt(t)}" href="${this.href}" target="${Dt(this.target)}">
492
+ `;function re(t){return class extends t{focus(){this.disabled||this.control?.focus()}blur(){this.disabled||this.control?.blur()}click(){this.disabled||this.readOnly||this.control?.click()}}}var ae=Object.defineProperty,ie=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ae(e,s,a),a};function de(t){const e=class extends t{constructor(...t){super(...t),this.disabled=!1,this.readOnly=!1,this.internals=this.attachInternals()}get form(){return this.internals.form}formDisabledCallback(t){this.disabled=t}firstUpdated(t){super.firstUpdated(t),this.updateValidity()}updateValidity(){}};e.formAssociated=!0,e.shadowRootOptions={..._t.shadowRootOptions,delegatesFocus:!0};let s=e;return ie([E({type:String,reflect:!0})],s.prototype,"name"),ie([E({type:Boolean,reflect:!0})],s.prototype,"disabled"),ie([E({type:Boolean,attribute:"readonly",reflect:!0})],s.prototype,"readOnly"),s}var ne=Object.defineProperty,le=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ne(e,s,a),a};var ce=Object.defineProperty,he=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ce(e,s,a),a};var pe=Object.defineProperty,ge=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&pe(e,s,a),a};const ve=class extends(function(t){class e extends t{get effectiveCommand(){return this.command??this.dataCommand}get effectiveCommandFor(){return this.commandFor??this.dataCommandFor}updated(t){super.updated(t),(t.has("command")||t.has("commandFor")||t.has("dataCommand")||t.has("dataCommandFor"))&&this._updateCommandTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDialogObserver()}_cleanupDialogObserver(){this._dialogOpenObserver&&(this._dialogOpenObserver.disconnect(),this._dialogOpenObserver=void 0),this._dialogElement=void 0}_observeDialog(t,e){this._dialogOpenObserver=new MutationObserver(s=>{for(const o of s)if("open"===o.attributeName){const s=e.hasAttribute("open");t.setAttribute("aria-expanded",String(s))}}),this._dialogOpenObserver.observe(e,{attributes:!0,attributeFilter:["open"]})}_clearAriaFields(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls")}_updateCommandTarget(){this._cleanupDialogObserver();const t=this.shadowRoot?.querySelector("#control");if(!t)return;const e=this.effectiveCommand,s=this.effectiveCommandFor;if(!s||!e)return void this._clearAriaFields(t);const o=this.getRootNode(),r=o.getElementById?.(s)??document.getElementById(s);var a;null!=(a=r)&&"showModal"in a&&"requestClose"in a&&"close"in a&&"open"in a?(this._dialogElement=r,"show-modal"===e?(t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",String(r.open)),t.setAttribute("aria-controls",s),this._observeDialog(t,r)):this._clearAriaFields(t)):this._clearAriaFields(t)}runDialogCommand(){if(this._dialogElement)switch(this.effectiveCommand){case"show-modal":this._dialogElement.showModal();break;case"close":this._dialogElement.close();break;case"request-close":this._dialogElement.requestClose()}}}return le([E({type:String,attribute:"command",reflect:!0})],e.prototype,"command"),le([E({type:String,attribute:"commandfor",reflect:!0})],e.prototype,"commandFor"),le([E({type:String,attribute:"data-command"})],e.prototype,"dataCommand"),le([E({type:String,attribute:"data-commandfor"})],e.prototype,"dataCommandFor"),e}(function(t){class e extends t{updated(t){super.updated(t),(t.has("popoverTarget")||t.has("popoverTargetAction"))&&this._updatePopoverTarget()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupPopoverListener()}_cleanupPopoverListener(){this._popoverToggleHandler&&this._popoverElement&&(this._popoverElement.removeEventListener("toggle",this._popoverToggleHandler),this._popoverToggleHandler=void 0,this._popoverElement=void 0)}_updatePopoverTarget(){const t=this.shadowRoot?.querySelector("#control");if(t)if(this._cleanupPopoverListener(),this.popoverTarget){const e=this.getRootNode(),s=e.getElementById?.(this.popoverTarget)??document.getElementById(this.popoverTarget);if(s){t.popoverTargetElement=s,this._popoverElement=s;const e=s.getAttribute("role");"tooltip"===e?t.setAttribute("aria-describedby",this.popoverTarget):(this._popoverToggleHandler=e=>{const s="open"===e.newState;t.setAttribute("aria-expanded",String(s))},s.addEventListener("toggle",this._popoverToggleHandler),t.setAttribute("aria-haspopup",e||"dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.popoverTarget))}this.popoverTargetAction&&(t.popoverTargetAction=this.popoverTargetAction)}else t.popoverTargetElement=null,t.popoverTargetAction="",t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-describedby")}}return he([E({type:String,attribute:"popovertarget"})],e.prototype,"popoverTarget"),he([E({type:String,attribute:"popovertargetaction"})],e.prototype,"popoverTargetAction"),e}(re(Ot(yt))))){constructor(){super(),this.disabled=!1,this.icon=!1,this.inverted=!1,this.loading=!1,this.size="lg",this.type="button",this.value="",this.variant="primary",this.label=void 0,this._handleClick=t=>{this.popoverTarget?this._handlePopoverClick(t):(t.preventDefault(),t.stopImmediatePropagation(),this.disabled||(this.effectiveCommandFor&&this.effectiveCommand?this._handleDialogCommandClick():"submit"===this.type?this._handleSubmitClick():"reset"===this.type?this._handleResetClick():this.dispatchSheriffEvent("click")))},this.internals=this.attachInternals()}updated(t){super.updated(t),t.has("variant")&&"critical"===this.variant&&this.setAttribute("data-palette","danger")}_resolveForm(){if(this.form){return this.getRootNode().querySelector(`form#${this.form}`)}return this.internals.form}_handlePopoverClick(t){t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("click")}_handleDialogCommandClick(){this.runDialogCommand(),this.dispatchSheriffEvent("click")}_handleSubmitClick(){this.dispatchSheriffEvent("submit")&&this._resolveForm()?.requestSubmit()}_handleResetClick(){this.dispatchSheriffEvent("reset")&&this._resolveForm()?.reset()}render(){const t={"sds-button":!0,"sds-button--as-link":!!this.href};return this.href?et` <a id="link" class="${se(t)}" href="${this.href}" target="${Rt(this.target)}">
493
493
  <slot name="before"></slot>
494
494
  <slot></slot>
495
495
  <slot name="after"></slot>
496
- </a>`:tt`
496
+ </a>`:et`
497
497
  <button
498
498
  id="control"
499
- form="${Dt(this.form)}"
500
- class="${Jt(t)}"
499
+ form="${Rt(this.form)}"
500
+ class="${se(t)}"
501
501
  type="${this.type}"
502
- name="${Dt(this.name)}"
503
- value="${Dt(this.value)}"
502
+ name="${Rt(this.name)}"
503
+ value="${Rt(this.value)}"
504
504
  ?disabled="${this.disabled}"
505
505
  @click="${this._handleClick}"
506
- aria-label="${Dt(this.label)}"
506
+ aria-label="${Rt(this.label)}"
507
507
  >
508
- ${this.loading?tt`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:st} ${this.loading?st:tt`<slot name="before"></slot>`}
508
+ ${this.loading?et`<sds-loader slot="before" ?contrast="${this.inverted||"primary"!==this.variant}"></sds-loader>`:rt} ${this.loading?rt:et`<slot name="before"></slot>`}
509
509
  <slot></slot>
510
- ${this.loading?st:tt`<slot name="after"></slot>`}
510
+ ${this.loading?rt:et`<slot name="after"></slot>`}
511
511
  </button>
512
- `}};he.styles=[te],he.formAssociated=!0,he.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0};let pe=he;ce([E({type:Boolean,reflect:!0})],pe.prototype,"disabled"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"icon"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"inverted"),ce([E({type:Boolean,reflect:!0})],pe.prototype,"loading"),ce([E({type:String,reflect:!0})],pe.prototype,"form"),ce([E({type:String,reflect:!0})],pe.prototype,"href"),ce([E({type:String,reflect:!0})],pe.prototype,"name"),ce([E({type:String,reflect:!0})],pe.prototype,"size"),ce([E({type:String,reflect:!0})],pe.prototype,"target"),ce([E({type:String,reflect:!0})],pe.prototype,"type"),ce([E({type:String,reflect:!0})],pe.prototype,"value"),ce([E({type:String,reflect:!0})],pe.prototype,"variant"),ce([E({type:String,reflect:!0})],pe.prototype,"label"),ce([O("#control")],pe.prototype,"control");var ge=Object.getOwnPropertyDescriptor;let ue=class extends pe{};ue=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ge(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-button")],ue);var ve=Object.getOwnPropertyDescriptor;let fe=class extends Pt{};function be(t,e,s,o){const r=t?.assignedNodes({flatten:!0}).filter(t=>{if(t.nodeType===Node.TEXT_NODE){return(t.textContent?.trim()??"").length>0}if(t.nodeType===Node.ELEMENT_NODE){const s=t,o=s.tagName.toUpperCase();if(!e.includes(o))return!0;return Array.from(s.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}fe=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ve(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-alert")],fe);const me=l`
512
+ `}};ve.styles=[oe],ve.formAssociated=!0,ve.shadowRootOptions={...yt.shadowRootOptions,delegatesFocus:!0};let ue=ve;ge([E({type:Boolean,reflect:!0})],ue.prototype,"disabled"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"icon"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"inverted"),ge([E({type:Boolean,reflect:!0})],ue.prototype,"loading"),ge([E({type:String,reflect:!0})],ue.prototype,"form"),ge([E({type:String,reflect:!0})],ue.prototype,"href"),ge([E({type:String,reflect:!0})],ue.prototype,"name"),ge([E({type:String,reflect:!0})],ue.prototype,"size"),ge([E({type:String,reflect:!0})],ue.prototype,"target"),ge([E({type:String,reflect:!0})],ue.prototype,"type"),ge([E({type:String,reflect:!0})],ue.prototype,"value"),ge([E({type:String,reflect:!0})],ue.prototype,"variant"),ge([E({type:String,reflect:!0})],ue.prototype,"label"),ge([O("#control")],ue.prototype,"control");var fe=Object.getOwnPropertyDescriptor;let be=class extends ue{};be=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?fe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-button")],be);var me=Object.getOwnPropertyDescriptor;let _e=class extends qt{};function xe(t,e,s,o){const r=t?.assignedNodes({flatten:!0}).filter(t=>{if(t.nodeType===Node.TEXT_NODE){return(t.textContent?.trim()??"").length>0}if(t.nodeType===Node.ELEMENT_NODE){const s=t,o=s.tagName.toUpperCase();if(!e.includes(o))return!0;return Array.from(s.childNodes).some(t=>t.nodeType===Node.ELEMENT_NODE)}return!1});r?.length>0&&console.warn(o,...r)}_e=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?me(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-alert")],_e);const ye=l`
513
513
  :host {
514
514
  --_sds-card-background-color: var(--sds-card-background-color, var(--sds-color-surface-tinted, var(--sds-color-main-surface-tinted)));
515
515
  --_sds-card-border-radius: var(--sds-card-border-radius, var(--sds-radius-md));
@@ -644,11 +644,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
644
644
  --_sds-card-text-line-height: var(--sds-card-text-line-height, var(--sds-typography-body-md-desktop-line-height));
645
645
  }
646
646
  }
647
- `;var _e=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,ye=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?xe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&_e(e,s,a),a};let we=class extends mt{constructor(){super(...arguments),this._textSlotEmpty=!1,this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&be(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{be(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length}}firstUpdated(){be(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length;this.headingSlot.assignedNodes({flatten:!0}).length>0&&be(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=tt`
647
+ `;var we=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,ze=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ke(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&we(e,s,a),a};let $e=class extends yt{constructor(){super(...arguments),this._textSlotEmpty=!1,this._contentWarning="[sds-card] text slot should only contain top-level <p> elements with no nested elements:",this._headerWarning="[sds-card] header slot should only contain one of <h2>–<h6> elements:",this._handleHeadingSlotChange=()=>{this.headingSlot.assignedNodes({flatten:!0}).length>0&&xe(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)},this._handleTextSlotChange=()=>{xe(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length}}firstUpdated(){xe(this.textSlot,["P"],0,this._contentWarning),this._textSlotEmpty=0===this.textSlot.assignedElements({flatten:!0}).length;this.headingSlot.assignedNodes({flatten:!0}).length>0&&xe(this.headingSlot,["H2","H3","H4","H5","H6"],0,this._headerWarning)}render(){const t=et`
648
648
  <slot name="heading" id="heading" @slotchange=${this._handleHeadingSlotChange}></slot>
649
649
  <slot name="text" id="content" @slotchange=${this._handleTextSlotChange}></slot>
650
650
  <sds-icon name="arrow_forward-material-outlined" size="md" class="sds-card__icon" role="presentation"></sds-icon>
651
- `,e={"sds-card__content":!0,"sds-card__content--no-text":this._textSlotEmpty};return tt`<article class="sds-card">${this.link?tt`<a href="${this.link}" class=${Jt(e)}>${t}</a>`:tt`<div class=${Jt(e)}>${t}</div>`}</article>`}};we.styles=[me],ye([E({type:String,reflect:!0})],we.prototype,"link",2),ye([O("slot#heading")],we.prototype,"headingSlot",2),ye([O("slot#content")],we.prototype,"textSlot",2),ye([A()],we.prototype,"_textSlotEmpty",2),we=ye([P("sds-card")],we);const ke=l`
651
+ `,e={"sds-card__content":!0,"sds-card__content--no-text":this._textSlotEmpty};return et`<article class="sds-card">${this.link?et`<a href="${this.link}" class=${se(e)}>${t}</a>`:et`<div class=${se(e)}>${t}</div>`}</article>`}};$e.styles=[ye],ze([E({type:String,reflect:!0})],$e.prototype,"link",2),ze([O("slot#heading")],$e.prototype,"headingSlot",2),ze([O("slot#content")],$e.prototype,"textSlot",2),ze([L()],$e.prototype,"_textSlotEmpty",2),$e=ze([P("sds-card")],$e);const Se=l`
652
652
  :host {
653
653
  --_sds-checkbox-block-gap: var(--sds-checkbox-block-gap, var(--sds-spacing-4xs));
654
654
  --_sds-checkbox-inline-gap: var(--sds-checkbox-inline-gap, var(--sds-spacing-3xs));
@@ -873,31 +873,31 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
873
873
  margin-block-start: -1px;
874
874
  }
875
875
  }
876
- `;var ze=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Se=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?$e(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ze(e,s,a),a};let Ce=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(e.checked?e.value:null),this._validate(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??"on")}firstUpdated(t){super.firstUpdated(t),this.control&&(this.control.required=this.required),this._validate()}formResetCallback(){this.checked=this._initialChecked,this.control&&(this.control.checked=this._initialChecked);const t=this.checked?this.value??"on":null;this.internals.setFormValue(t),this._validate()}_validate(){this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},this.control.validationMessage,this.control):this.internals.setValidity({})}updated(t){super.updated(t),t.has("required")&&this.control&&(this.control.required=this.required),t.has("checked")&&this._validate(),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}get type(){return"checkbox"}render(){const t={"sds-checkbox":!0,"sds-checkbox--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return tt`
877
- <div class="${Jt(t)}">
876
+ `;var Ce=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Le=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ee(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ce(e,s,a),a};let Ae=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.checked=!1,this.error=!1,this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(e.checked?e.value:null),this._validate(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??"on")}firstUpdated(t){super.firstUpdated(t),this.control&&(this.control.required=this.required),this._validate()}formResetCallback(){this.checked=this._initialChecked,this.control&&(this.control.checked=this._initialChecked);const t=this.checked?this.value??"on":null;this.internals.setFormValue(t),this._validate()}_validate(){this.required&&!this.checked?this.internals.setValidity({valueMissing:!0},this.control.validationMessage,this.control):this.internals.setValidity({})}updated(t){super.updated(t),t.has("required")&&this.control&&(this.control.required=this.required),t.has("checked")&&this._validate(),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}get type(){return"checkbox"}render(){const t={"sds-checkbox":!0,"sds-checkbox--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-checkbox__input":!0,"sds-checkbox__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return et`
877
+ <div class="${se(t)}">
878
878
  <input
879
879
  id="control"
880
880
  type="checkbox"
881
- name="${Dt(this.name)}"
882
- value="${Dt(this.value)}"
881
+ name="${Rt(this.name)}"
882
+ value="${Rt(this.value)}"
883
883
  .checked="${this.checked}"
884
884
  ?checked="${this.checked}"
885
885
  ?disabled="${this.disabled}"
886
886
  ?required="${this.required}"
887
887
  ?readonly="${this.readOnly}"
888
- aria-describedby="${Dt(o)}"
888
+ aria-describedby="${Rt(o)}"
889
889
  aria-invalid="${this.error?"true":"false"}"
890
890
  @change="${this._handleChange}"
891
891
  @focus="${this._handleFocus}"
892
892
  @blur="${this._handleBlur}"
893
- class="${Jt(s)}"
893
+ class="${se(s)}"
894
894
  />
895
895
  <label for="control" class="sds-checkbox__label" ?hidden="${!e}">
896
896
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
897
897
  </label>
898
- ${this.helpText?tt`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:st}
898
+ ${this.helpText?et`<span id="help-text" class="sds-checkbox__help-text">${this.helpText}</span>`:rt}
899
899
  </div>
900
- `}};Ce.styles=[ke],Se([E({type:String,reflect:!0})],Ce.prototype,"label",2),Se([E({type:String})],Ce.prototype,"value",2),Se([E({type:Boolean,reflect:!0})],Ce.prototype,"checked",2),Se([E({type:Boolean,reflect:!0})],Ce.prototype,"error",2),Se([E({type:Boolean,reflect:!0})],Ce.prototype,"required",2),Se([E({type:String,reflect:!0})],Ce.prototype,"size",2),Se([E({type:String,attribute:"help-text"})],Ce.prototype,"helpText",2),Se([E({type:Boolean,reflect:!0})],Ce.prototype,"disabled",1),Se([E({type:Boolean,attribute:!1})],Ce.prototype,"parentRequestDisabled",1),Se([O("#control")],Ce.prototype,"control",2),Se([A()],Ce.prototype,"_hasSlottedLabel",2),Ce=Se([P("sds-checkbox")],Ce);const Ee=l`
900
+ `}};Ae.styles=[Se],Le([E({type:String,reflect:!0})],Ae.prototype,"label",2),Le([E({type:String})],Ae.prototype,"value",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"checked",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"error",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"required",2),Le([E({type:String,reflect:!0})],Ae.prototype,"size",2),Le([E({type:String,attribute:"help-text"})],Ae.prototype,"helpText",2),Le([E({type:Boolean,reflect:!0})],Ae.prototype,"disabled",1),Le([E({type:Boolean,attribute:!1})],Ae.prototype,"parentRequestDisabled",1),Le([O("#control")],Ae.prototype,"control",2),Le([L()],Ae.prototype,"_hasSlottedLabel",2),Ae=Le([P("sds-checkbox")],Ae);const Oe=l`
901
901
  :host {
902
902
  --_sds-checkbox-group-gap: var(--sds-checkbox-group-gap, var(--sds-spacing-xs));
903
903
  --_sds-checkbox-group-font-family: var(--sds-checkbox-group-font-family, var(--sds-typography-font-family-roboto));
@@ -989,16 +989,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
989
989
  --_sds-checkbox-group-help-text-font-size: var(--sds-checkbox-group-help-text-font-size, var(--sds-components-font-size-content-lg));
990
990
  --_sds-checkbox-group-help-text-line-height: var(--sds-checkbox-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
991
991
  }
992
- `;var Ae=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Oe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Le(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ae(e,s,a),a};const Te=["disabled","errorMessage","readOnly","size"];let Pe=class extends(Et(mt)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const e=t.target,s=e.value,o=e.checked;this._selectedValues=o?[...this._selectedValues,s]:this._selectedValues.filter(t=>t!==s),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...Te])}}_getChildCheckboxes(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-CHECKBOX"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildCheckboxes();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;Te.includes(o)&&this._updateChildProps([o])}get value(){return{selectedValues:this._selectedValues}}render(){const t={"sds-checkbox-group":!0,"sds-checkbox-group--disabled":this.disabled,"sds-checkbox-group--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return tt`
993
- <fieldset class="${Jt(t)}" aria-describedby="${Dt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
994
- ${this.legend?tt`<legend class="sds-checkbox-group__legend">${this.readOnly?tt`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:st}</sds-icon>${this.legend}</legend>`:st}
995
- ${this.helpText?tt`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:st}
992
+ `;var Te=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,De=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Pe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Te(e,s,a),a};const Me=["disabled","errorMessage","readOnly","size"];let qe=class extends(Ot(yt)){constructor(){super(...arguments),this.readOnly=!1,this.disabled=!1,this.size="md",this._selectedValues=[],this._handleCheckboxChange=t=>{const e=t.target,s=e.value,o=e.checked;this._selectedValues=o?[...this._selectedValues,s]:this._selectedValues.filter(t=>t!==s),this.dispatchSheriffEvent("sds-update")},this._handleSlotChange=()=>{this._updateChildProps([...Me])}}_getChildCheckboxes(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-CHECKBOX"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildCheckboxes();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;Me.includes(o)&&this._updateChildProps([o])}get value(){return{selectedValues:this._selectedValues}}render(){const t={"sds-checkbox-group":!0,"sds-checkbox-group--disabled":this.disabled,"sds-checkbox-group--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return et`
993
+ <fieldset class="${se(t)}" aria-describedby="${Rt(e)}" aria-invalid="${this.errorMessage?"true":"false"}">
994
+ ${this.legend?et`<legend class="sds-checkbox-group__legend">${this.readOnly?et`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:rt}</sds-icon>${this.legend}</legend>`:rt}
995
+ ${this.helpText?et`<p id="help-text" class="sds-checkbox-group__help-text">${this.helpText}</p>`:rt}
996
996
  <div class="sds-checkbox-group__checkboxes" @change=${this._handleCheckboxChange}>
997
997
  <slot @slotchange=${this._handleSlotChange}></slot>
998
998
  </div>
999
- ${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
999
+ ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
1000
1000
  </fieldset>
1001
- `}};Pe.styles=[Ee],Oe([E({type:String,reflect:!0})],Pe.prototype,"legend",2),Oe([E({type:String,attribute:"help-text",reflect:!0})],Pe.prototype,"helpText",2),Oe([E({type:String,attribute:"error-message",reflect:!0})],Pe.prototype,"errorMessage",2),Oe([E({type:Boolean,attribute:"readonly",reflect:!0})],Pe.prototype,"readOnly",2),Oe([E({type:Boolean,reflect:!0})],Pe.prototype,"disabled",2),Oe([E({type:String,reflect:!0})],Pe.prototype,"size",2),Oe([A()],Pe.prototype,"_selectedValues",2),Oe([O("slot")],Pe.prototype,"_slotElement",2),Pe=Oe([P("sds-checkbox-group")],Pe);const De=l`
1001
+ `}};qe.styles=[Oe],De([E({type:String,reflect:!0})],qe.prototype,"legend",2),De([E({type:String,attribute:"help-text",reflect:!0})],qe.prototype,"helpText",2),De([E({type:String,attribute:"error-message",reflect:!0})],qe.prototype,"errorMessage",2),De([E({type:Boolean,attribute:"readonly",reflect:!0})],qe.prototype,"readOnly",2),De([E({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),De([E({type:String,reflect:!0})],qe.prototype,"size",2),De([L()],qe.prototype,"_selectedValues",2),De([O("slot")],qe.prototype,"_slotElement",2),qe=De([P("sds-checkbox-group")],qe);const Re=l`
1002
1002
  :host {
1003
1003
  --_sds-chip-font-family: var(--sds-chip-font-family, var(--sds-typography-font-family-roboto));
1004
1004
  --_sds-chip-font-weight: var(--sds-chip-font-weight, var(--sds-typography-font-weight-regular));
@@ -1143,16 +1143,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1143
1143
  white-space: nowrap;
1144
1144
  }
1145
1145
  }
1146
- `;var Me=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Re=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?qe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Me(e,s,a),a};let Ve=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this._initialChecked=!1,this._readOnly=!1,this._slotLabel="",this.variant="selectable",this.size="md",this.checked=!1,this._handleSlotChange=t=>{const e=t.target;this._slotLabel=e.assignedNodes().map(t=>t.textContent).join("").trim()},this._handleChange=t=>{if(t.stopImmediatePropagation(),!(t.target instanceof HTMLInputElement))return;if(this.disabled||this.readOnly)return void(t.target.checked=this.checked??!1);const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?this.value??"on":null),this.dispatchSheriffEvent("change")},this._remove=()=>{this.disabled||this.readOnly||this.dispatchSheriffEvent("sds-remove")},this._keypress=t=>{" "!==t.key&&"Enter"!==t.key||this._remove()}}get readOnly(){return this._readOnly}set readOnly(t){const e=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",e)}set readonly(t){this.readOnly=t}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked??!1,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}get type(){return"checkbox"}render(){const t="removable"===this.variant&&!this.readOnly&&!this.disabled,e={"sds-chip":!0,"sds-chip--small":"small"===this.size||"sm"===this.size,"sds-chip--large":"large"===this.size||"lg"===this.size,"sds-chip--removable":t};return t?tt`<button class="${Jt(e)}" @click=${this._remove} @keyup="${this._keypress}">
1146
+ `;var Ve=Object.defineProperty,Be=Object.getOwnPropertyDescriptor,He=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Be(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ve(e,s,a),a};let je=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this._initialChecked=!1,this._readOnly=!1,this._slotLabel="",this.variant="selectable",this.size="md",this.checked=!1,this._handleSlotChange=t=>{const e=t.target;this._slotLabel=e.assignedNodes().map(t=>t.textContent).join("").trim()},this._handleChange=t=>{if(t.stopImmediatePropagation(),!(t.target instanceof HTMLInputElement))return;if(this.disabled||this.readOnly)return void(t.target.checked=this.checked??!1);const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?this.value??"on":null),this.dispatchSheriffEvent("change")},this._remove=()=>{this.disabled||this.readOnly||this.dispatchSheriffEvent("sds-remove")},this._keypress=t=>{" "!==t.key&&"Enter"!==t.key||this._remove()}}get readOnly(){return this._readOnly}set readOnly(t){const e=this._readOnly;this._readOnly=t??!1,this.requestUpdate("readOnly",e)}set readonly(t){this.readOnly=t}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked??!1,this.internals.role="none",this.checked&&this.internals.setFormValue(this.value??null)}formResetCallback(){this.checked=this._initialChecked,this.internals.setFormValue(this.value??null)}get type(){return"checkbox"}render(){const t="removable"===this.variant&&!this.readOnly&&!this.disabled,e={"sds-chip":!0,"sds-chip--small":"small"===this.size||"sm"===this.size,"sds-chip--large":"large"===this.size||"lg"===this.size,"sds-chip--removable":t};return t?et`<button class="${se(e)}" @click=${this._remove} @keyup="${this._keypress}">
1147
1147
  <slot></slot>
1148
1148
  <sds-icon name="close-material-outlined" size="s"></sds-icon>
1149
- </button>`:tt`<label class="${Jt(e)}">
1149
+ </button>`:et`<label class="${se(e)}">
1150
1150
  <input
1151
1151
  id="control"
1152
1152
  type="checkbox"
1153
1153
  aria-label="${this._slotLabel}"
1154
- name="${Dt(this.name)}"
1155
- value="${Dt(this.value)}"
1154
+ name="${Rt(this.name)}"
1155
+ value="${Rt(this.value)}"
1156
1156
  .checked="${this.checked??!1}"
1157
1157
  ?checked="${this.checked}"
1158
1158
  ?disabled="${this.disabled}"
@@ -1160,7 +1160,107 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1160
1160
  @change="${this._handleChange}"
1161
1161
  />
1162
1162
  <span aria-hidden="true"><slot @slotchange="${this._handleSlotChange}"></slot></span>
1163
- </label>`}};Ve.styles=[De],Re([O("#control")],Ve.prototype,"control",2),Re([A()],Ve.prototype,"_slotLabel",2),Re([E({type:String,reflect:!0})],Ve.prototype,"variant",2),Re([E({type:String,reflect:!0})],Ve.prototype,"size",2),Re([E({type:Boolean,reflect:!0})],Ve.prototype,"checked",2),Re([E({type:String})],Ve.prototype,"value",2),Re([E({type:Boolean,attribute:"readonly",reflect:!0})],Ve.prototype,"readOnly",1),Ve=Re([P("sds-chip")],Ve);const Be=l`
1163
+ </label>`}};je.styles=[Re],He([O("#control")],je.prototype,"control",2),He([L()],je.prototype,"_slotLabel",2),He([E({type:String,reflect:!0})],je.prototype,"variant",2),He([E({type:String,reflect:!0})],je.prototype,"size",2),He([E({type:Boolean,reflect:!0})],je.prototype,"checked",2),He([E({type:String})],je.prototype,"value",2),He([E({type:Boolean,attribute:"readonly",reflect:!0})],je.prototype,"readOnly",1),je=He([P("sds-chip")],je);const Ne=l`
1164
+ :host {
1165
+ --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-info-surface-active));
1166
+ --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-info-text-default));
1167
+ --_sds-env-banner-display: var(--sds-env-banner-display, grid);
1168
+ --_sds-env-banner-grid-template-columns: var(--sds-env-banner-grid-template-columns, auto 1fr);
1169
+ --_sds-env-banner-font-family: var(--sds-env-banner-font-family, var(--sds-typography-font-family));
1170
+ --_sds-env-banner-font-size: var(--sds-env-banner-font-size, var(--sds-typography-body-md-mobile-font-size));
1171
+ --_sds-env-banner-font-weight: var(--sds-env-banner-font-weight, var(--sds-typography-body-md-mobile-font-weight));
1172
+ --_sds-env-banner-line-height: var(--sds-env-banner-line-height, var(--sds-typography-body-md-mobile-line-height));
1173
+ --_sds-env-banner-text-transform: var(--sds-env-banner-text-transform, uppercase);
1174
+ --_sds-env-banner-padding: var(--sds-env-banner-padding, var(--sds-spacing-4xs) var(--sds-spacing-sm));
1175
+
1176
+ --_sds-env-banner-build-font-size: var(--sds-env-banner-build-font-size, var(--sds-typography-detail-xs-mobile-font-size));
1177
+ --_sds-env-banner-build-font-weight: var(--sds-env-banner-build-font-weight, var(--sds-typography-detail-xs-mobile-font-weight));
1178
+ --_sds-env-banner-build-line-height: var(--sds-env-banner-build-line-height, var(--sds-typography-detail-xs-mobile-line-height));
1179
+ --_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 2 / 3);
1180
+
1181
+ --_sds-env-banner-env-label: var(--sds-env-banner-env-label, 'ENV – ');
1182
+ --_sds-env-banner-env-grid-column: var(--sds-env-banner-env-grid-column, 1 / 2);
1183
+
1184
+ display: block;
1185
+ }
1186
+
1187
+ :host([hidden]) {
1188
+ display: none;
1189
+ }
1190
+
1191
+ :host([env='dev']) {
1192
+ --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-success-surface-active));
1193
+ --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-success-text-default));
1194
+ }
1195
+
1196
+ :host([env='test']) {
1197
+ --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-warning-surface-active));
1198
+ --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-warning-text-default));
1199
+ }
1200
+
1201
+ :host([env='opplaering']) {
1202
+ --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-attention-surface-active));
1203
+ --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-attention-text-default));
1204
+ }
1205
+
1206
+ :host([env='stage']) {
1207
+ --_sds-env-banner-background-color: var(--sds-env-banner-background-color, var(--sds-color-alert-danger-surface-active));
1208
+ --_sds-env-banner-text-color: var(--sds-env-banner-text-color, var(--sds-color-alert-danger-text-default));
1209
+ }
1210
+
1211
+ :host([env='prod']) {
1212
+ display: none;
1213
+ }
1214
+
1215
+ .sds-env-banner {
1216
+ display: var(--_sds-env-banner-display);
1217
+ grid-template-columns: var(--_sds-env-banner-grid-template-columns);
1218
+ gap: var(--sds-spacing-2xs);
1219
+ padding: var(--_sds-env-banner-padding);
1220
+ background-color: var(--_sds-env-banner-background-color);
1221
+ color: var(--_sds-env-banner-text-color);
1222
+ font-family: var(--_sds-env-banner-font-family);
1223
+ font-size: var(--_sds-env-banner-font-size);
1224
+ font-weight: var(--_sds-env-banner-font-weight);
1225
+ line-height: var(--_sds-env-banner-line-height);
1226
+ text-transform: var(--_sds-env-banner-text-transform);
1227
+ box-sizing: border-box;
1228
+
1229
+ @media (width >= 640px) {
1230
+ --_sds-env-banner-grid-template-columns: var(--sds-env-banner-grid-template-columns, 1fr auto 1fr);
1231
+ }
1232
+ }
1233
+
1234
+ .sds-env-banner__env {
1235
+ grid-column: var(--_sds-env-banner-env-grid-column);
1236
+
1237
+ @media (width >= 640px) {
1238
+ --_sds-env-banner-env-grid-column: var(--sds-env-banner-env-grid-column, 2 / 3);
1239
+ }
1240
+
1241
+ &::before {
1242
+ content: var(--_sds-env-banner-env-label);
1243
+ }
1244
+ }
1245
+
1246
+ .sds-env-banner__build {
1247
+ font-size: var(--_sds-env-banner-build-font-size);
1248
+ font-weight: var(--_sds-env-banner-build-font-weight);
1249
+ line-height: var(--_sds-env-banner-build-line-height);
1250
+ grid-column: var(--_sds-env-banner-build-grid-column);
1251
+ text-align: right;
1252
+ align-self: center;
1253
+
1254
+ @media (width >= 640px) {
1255
+ --_sds-env-banner-build-grid-column: var(--sds-env-banner-build-grid-column, 3 / 4);
1256
+ }
1257
+ }
1258
+ `;var Fe=Object.defineProperty,Ie=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Fe(e,s,a),a};const Ue={opplaering:"Opplæring",local:"Local",dev:"Dev",test:"Test",stage:"Stage",prod:"Prod"},We=class extends _t{render(){const t=this.env?Ue[this.env]:rt;return et`
1259
+ <div class="sds-env-banner">
1260
+ ${t?et`<span class="sds-env-banner__env">${t}</span>`:rt}
1261
+ ${this.build?et`<span class="sds-env-banner__build">${this.build}</span>`:rt}
1262
+ </div>
1263
+ `}};We.styles=[Ne];let Ke=We;Ie([E({type:String,reflect:!0})],Ke.prototype,"env"),Ie([E({type:String,reflect:!0})],Ke.prototype,"build");var Ge=Object.getOwnPropertyDescriptor;let Ye=class extends Ke{};Ye=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ge(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-environment-banner")],Ye);const Ze=l`
1164
1264
  :host {
1165
1265
  --_sds-details-text-color: var(--sds-details-text-color, var(--sds-color-text-default, var(--sds-color-main-text-default)));
1166
1266
 
@@ -1296,7 +1396,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1296
1396
  display: inline;
1297
1397
  margin: 0;
1298
1398
  }
1299
- `;var He=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?je(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&He(e,s,a),a};let Ie=class extends(Et(mt)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return tt`
1399
+ `;var Xe=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Je=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Qe(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Xe(e,s,a),a};let ts=class extends(Ot(yt)){constructor(){super(...arguments),this.open=!1,this.standalone=!1,this.name=void 0,this._initialized=!1,this._handleToggle=t=>{const e=t.currentTarget;this.open!==e.open&&(this.open=e.open)}}updated(t){this._initialized?t.has("open")&&this.dispatchSheriffEvent("toggle",{open:!!this.open}):this._initialized=!0}render(){return et`
1300
1400
  <details class="sds-details" .name="${this.name??""}" ?data-standalone="${this.standalone}" ?open="${this.open}" @toggle="${this._handleToggle}">
1301
1401
  <summary class="sds-details__summary">
1302
1402
  <sds-icon name="chevron_up-material-filled" role="presentation"></sds-icon>
@@ -1308,7 +1408,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1308
1408
  <slot></slot>
1309
1409
  </div>
1310
1410
  </details>
1311
- `}};Ie.styles=[Be],Fe([E({type:Boolean,reflect:!0})],Ie.prototype,"open",2),Fe([E({type:Boolean,reflect:!0})],Ie.prototype,"standalone",2),Fe([E({type:String,reflect:!0})],Ie.prototype,"name",2),Ie=Fe([P("sds-details")],Ie);const Ne=l`
1411
+ `}};ts.styles=[Ze],Je([E({type:Boolean,reflect:!0})],ts.prototype,"open",2),Je([E({type:Boolean,reflect:!0})],ts.prototype,"standalone",2),Je([E({type:String,reflect:!0})],ts.prototype,"name",2),ts=Je([P("sds-details")],ts);const es=l`
1312
1412
  :host {
1313
1413
  display: block;
1314
1414
  }
@@ -1335,7 +1435,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1335
1435
  :host([outlined]) div ::slotted(sds-details:last-child[open]) {
1336
1436
  --sds-details-summary-border-radius: 0;
1337
1437
  }
1338
- `;var Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ke=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?We(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ue(e,s,a),a};let Ge=class extends mt{constructor(){super(...arguments),this.outlined=!1,this._toggleListeners=/* @__PURE__ */new Map}updated(t){t.has("name")&&this._syncChildren()}disconnectedCallback(){super.disconnectedCallback(),this._removeListeners()}_handleSlotChange(){this._syncChildren()}_syncChildren(){this._removeListeners();const t=this._detailsChildren;t.forEach(e=>{if(e.name=this.name,this.name){const s=s=>{const{open:o}=s.detail;o&&t.forEach(t=>{t!==e&&t.open&&(t.open=!1)})};e.addEventListener("toggle",s),this._toggleListeners.set(e,s)}})}_removeListeners(){this._toggleListeners.forEach((t,e)=>{e.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return tt`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};Ge.styles=[Ne],Ke([E({type:Boolean,reflect:!0})],Ge.prototype,"outlined",2),Ke([E({type:String,reflect:!0})],Ge.prototype,"name",2),Ke([T({selector:"sds-details"})],Ge.prototype,"_detailsChildren",2),Ge=Ke([P("sds-details-group")],Ge);const Ye=l`
1438
+ `;var ss=Object.defineProperty,os=Object.getOwnPropertyDescriptor,rs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?os(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ss(e,s,a),a};let as=class extends yt{constructor(){super(...arguments),this.outlined=!1,this._toggleListeners=/* @__PURE__ */new Map}updated(t){t.has("name")&&this._syncChildren()}disconnectedCallback(){super.disconnectedCallback(),this._removeListeners()}_handleSlotChange(){this._syncChildren()}_syncChildren(){this._removeListeners();const t=this._detailsChildren;t.forEach(e=>{if(e.name=this.name,this.name){const s=s=>{const{open:o}=s.detail;o&&t.forEach(t=>{t!==e&&t.open&&(t.open=!1)})};e.addEventListener("toggle",s),this._toggleListeners.set(e,s)}})}_removeListeners(){this._toggleListeners.forEach((t,e)=>{e.removeEventListener("toggle",t)}),this._toggleListeners.clear()}render(){return et`<div><slot @slotchange="${this._handleSlotChange}"></slot></div>`}};as.styles=[es],rs([E({type:Boolean,reflect:!0})],as.prototype,"outlined",2),rs([E({type:String,reflect:!0})],as.prototype,"name",2),rs([T({selector:"sds-details"})],as.prototype,"_detailsChildren",2),as=rs([P("sds-details-group")],as);const is=l`
1339
1439
  :host {
1340
1440
  --_sds-dialog-background-color: var(--sds-dialog-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
1341
1441
  --_sds-dialog-backdrop-color: var(--sds-dialog-backdrop-color, rgba(0, 0, 0, 0.5));
@@ -1453,20 +1553,20 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1453
1553
  --_sds-dialog-animation-duration: 0ms;
1454
1554
  }
1455
1555
  }
1456
- `;var Xe=Object.defineProperty,Ze=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Xe(e,s,a),a};let Qe=!1;const Je=class extends(Et(mt)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._isHeaderSlotEmpty=!0,this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("close"),this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const e=this._dialog.getBoundingClientRect(),{clientX:s,clientY:o}=t;this._pointerDownInside=e.top<=o&&o<=e.bottom&&e.left<=s&&s<=e.right},this._handlePointerUp=t=>{const e=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||e||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const e=t.target;this._isHeaderSlotEmpty=0===e.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}addEventListener(t,e,s){"sds-close"!==t||Qe||(Qe=!0,console.warn("[Sheriff] The 'sds-close' event on sds-dialog is deprecated and will be removed in the next major release. Listen for the 'close' event instead.")),super.addEventListener(t,e,s)}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}requestClose(){this._dialog&&this._dialog.requestClose()}render(){return tt`
1556
+ `;var ds=Object.defineProperty,ns=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ds(e,s,a),a};let ls=!1;const cs=class extends(Ot(yt)){constructor(){super(...arguments),this.open=!1,this.modal=!1,this.closedby="closerequest",this.closeButtonLabel="Lukk dialogvindu",this._isHeaderSlotEmpty=!0,this._pointerDownInside=!1,this._handleClose=()=>{this.open=!1,this.dispatchSheriffEvent("close"),this.dispatchSheriffEvent("sds-close")},this._handleClick=t=>{const e=t.target;e?.closest('[data-command="close"],[command="close"]')&&this._closeDialog()},this._handlePointerDown=t=>{const e=this._dialog.getBoundingClientRect(),{clientX:s,clientY:o}=t;this._pointerDownInside=e.top<=o&&o<=e.bottom&&e.left<=s&&s<=e.right},this._handlePointerUp=t=>{const e=this._pointerDownInside;this._pointerDownInside=!1,"any"!==this.closedby||e||t.target===this._dialog&&requestAnimationFrame(()=>{this._dialog&&this._dialog.open&&this._closeDialog()})},this._handleCancel=t=>{"none"===this.closedby&&t.preventDefault()},this._handleHeaderSlotChange=t=>{const e=t.target;this._isHeaderSlotEmpty=0===e.assignedElements().length},this._handleAutoFocus=()=>{const t=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0});if(!t||0===t.length)return;const e=t.find(t=>null!=t.getAttribute("autofocus"));e instanceof HTMLElement&&document.activeElement!==e&&e.focus()}}addEventListener(t,e,s){"sds-close"!==t||ls||(ls=!0,console.warn("[Sheriff] The 'sds-close' event on sds-dialog is deprecated and will be removed in the next major release. Listen for the 'close' event instead.")),super.addEventListener(t,e,s)}firstUpdated(){this._setupEventListeners(),this.open&&this._openDialog()}updated(t){t.has("open")&&(this.open?this._openDialog():this._closeDialog())}_setupEventListeners(){this._dialog.addEventListener("close",this._handleClose),this._dialog.addEventListener("cancel",this._handleCancel),this._dialog.addEventListener("click",this._handleClick),this._dialog.addEventListener("pointerdown",this._handlePointerDown),this._dialog.addEventListener("pointerup",this._handlePointerUp),this._dialog.addEventListener("animationend",this._handleAutoFocus)}_openDialog(){this._dialog&&(this.modal?this._dialog.showModal():this._dialog.show())}_closeDialog(){this._dialog&&this._dialog.close()}show(){this.open=!0}showModal(){this.modal=!0,this.open=!0}close(){this.open=!1}requestClose(){this._dialog&&this._dialog.requestClose()}render(){return et`
1457
1557
  <dialog .closedBy="${this.closedby}" class=${this._isHeaderSlotEmpty?"sds-dialog__empty-header":""}>
1458
1558
  <div class="sds-dialog__header">
1459
1559
  <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot>
1460
- ${this.closeButtonLabel?tt`
1560
+ ${this.closeButtonLabel?et`
1461
1561
  <sds-button class="sds-dialog__close-button" icon variant="tertiary" size="md" command="close" label="${this.closeButtonLabel}">
1462
1562
  <sds-icon name="close-material-outlined" size="md"></sds-icon>
1463
1563
  </sds-button>
1464
- `:st}
1564
+ `:rt}
1465
1565
  </div>
1466
1566
  <slot></slot>
1467
1567
  <slot name="footer"></slot>
1468
1568
  </dialog>
1469
- `}};Je.styles=[Ye];let ts=Je;Ze([E({type:Boolean,reflect:!0})],ts.prototype,"open"),Ze([E({type:Boolean,reflect:!0})],ts.prototype,"modal"),Ze([E({type:String,reflect:!0})],ts.prototype,"closedby"),Ze([E({type:String,attribute:"close-button-label"})],ts.prototype,"closeButtonLabel"),Ze([O("dialog")],ts.prototype,"_dialog"),Ze([A()],ts.prototype,"_isHeaderSlotEmpty");var es=Object.getOwnPropertyDescriptor;let ss=class extends ts{};ss=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?es(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-dialog")],ss);const os=l`
1569
+ `}};cs.styles=[is];let hs=cs;ns([E({type:Boolean,reflect:!0})],hs.prototype,"open"),ns([E({type:Boolean,reflect:!0})],hs.prototype,"modal"),ns([E({type:String,reflect:!0})],hs.prototype,"closedby"),ns([E({type:String,attribute:"close-button-label"})],hs.prototype,"closeButtonLabel"),ns([O("dialog")],hs.prototype,"_dialog"),ns([L()],hs.prototype,"_isHeaderSlotEmpty");var ps=Object.getOwnPropertyDescriptor;let gs=class extends hs{};gs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ps(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-dialog")],gs);const vs=l`
1470
1570
  :host {
1471
1571
  --_sds-heading-font-family: var(--sds-heading-font-family, var(--sds-typography-font-family-roboto));
1472
1572
  --_sds-heading-text-color: var(--sds-heading-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -1625,7 +1725,143 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1625
1725
  --_sds-heading-line-height: var(--sds-heading-line-height, var(--sds-typography-heading-xs-desktop-line-height));
1626
1726
  }
1627
1727
  }
1628
- `;var rs=Object.defineProperty,as=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&rs(e,s,a),a};const is=class extends mt{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return tt`<h1 class=${Jt(t)}><slot></slot></h1>`;case"h2":return tt`<h2 class=${Jt(t)}><slot></slot></h2>`;case"h3":return tt`<h3 class=${Jt(t)}><slot></slot></h3>`;case"h4":return tt`<h4 class=${Jt(t)}><slot></slot></h4>`;case"h5":return tt`<h5 class=${Jt(t)}><slot></slot></h5>`;case"h6":return tt`<h6 class=${Jt(t)}><slot></slot></h6>`}}};is.styles=[os];let ds=is;as([E({type:String,reflect:!0})],ds.prototype,"level"),as([E({type:String,reflect:!0})],ds.prototype,"size");var ns=Object.getOwnPropertyDescriptor;let ls=class extends ds{};ls=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ns(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-heading")],ls);const cs=l`
1728
+ `;var us=Object.defineProperty,fs=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&us(e,s,a),a};const bs=class extends yt{constructor(){super(...arguments),this.level="h1"}render(){const t={"sds-heading":!0,"sds-heading--xl":"xl"===this.size,"sds-heading--lg":"l"===this.size||"lg"===this.size,"sds-heading--md":"m"===this.size||"md"===this.size,"sds-heading--sm":"s"===this.size||"sm"===this.size,"sds-heading--xs":"xs"===this.size};switch(this.level?.toLowerCase()){case"h1":default:return et`<h1 class=${se(t)}><slot></slot></h1>`;case"h2":return et`<h2 class=${se(t)}><slot></slot></h2>`;case"h3":return et`<h3 class=${se(t)}><slot></slot></h3>`;case"h4":return et`<h4 class=${se(t)}><slot></slot></h4>`;case"h5":return et`<h5 class=${se(t)}><slot></slot></h5>`;case"h6":return et`<h6 class=${se(t)}><slot></slot></h6>`}}};bs.styles=[vs];let ms=bs;fs([E({type:String,reflect:!0})],ms.prototype,"level"),fs([E({type:String,reflect:!0})],ms.prototype,"size");var _s=Object.getOwnPropertyDescriptor;let xs=class extends ms{};xs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?_s(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-heading")],xs);const ys=l`
1729
+ :host {
1730
+ --_sds-internal-header-background-color: var(--sds-internal-header-background-color, var(--sds-color-action-default, var(--sds-color-accent-action-default)));
1731
+ --_sds-internal-header-text-color: var(--sds-internal-header-text-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1732
+ --_sds-internal-header-border-color: var(--sds-internal-header-border-color, var(--sds-color-border-default, var(--sds-color-accent-border-default)));
1733
+ --_sds-internal-header-border-width: var(--sds-internal-header-border-width, 0px);
1734
+
1735
+ --_sds-internal-header-min-height: var(--sds-internal-header-min-height, 4.5rem);
1736
+ --_sds-internal-header-padding-block: var(--sds-internal-header-padding-block, var(--sds-spacing-2xs));
1737
+ --_sds-internal-header-padding-inline: var(--sds-internal-header-padding-inline, var(--sds-spacing-xs));
1738
+ --_sds-internal-header-gap: var(--sds-internal-header-gap, var(--sds-spacing-xs));
1739
+ --_sds-internal-header-section-gap: var(--sds-internal-header-section-gap, var(--sds-spacing-xs));
1740
+
1741
+ --_sds-internal-header-wrap: var(--sds-internal-header-wrap, wrap);
1742
+ --_sds-internal-header-brand-flex: var(--sds-internal-header-brand-flex, 0 0 auto);
1743
+ --_sds-internal-header-slots-flex: var(--sds-internal-header-slots-flex, 1 1 auto);
1744
+ --_sds-internal-header-slots-justify: var(--sds-internal-header-slots-justify, space-between);
1745
+
1746
+ --_sds-internal-header-internal-color: var(--sds-internal-header-internal-color, var(--sds-color-support-3-action-default));
1747
+ --_sds-internal-header-internal-width: var(--sds-internal-header-internal-width, 1.625rem);
1748
+
1749
+ --_sds-internal-header-title-font-family: var(--sds-internal-header-title-font-family, var(--sds-typography-font-family-roboto));
1750
+ --_sds-internal-header-title-font-size: var(--sds-internal-header-title-font-size, var(--sds-typography-heading-sm-mobile-font-size));
1751
+ --_sds-internal-header-title-font-weight: var(--sds-internal-header-title-font-weight, var(--sds-typography-heading-sm-desktop-font-weight, var(--sds-typography-font-weight-semibold)));
1752
+ --_sds-internal-header-title-line-height: var(--sds-internal-header-title-line-height, var(--sds-typography-heading-sm-mobile-line-height));
1753
+
1754
+ display: block;
1755
+ width: 100%;
1756
+ box-sizing: border-box;
1757
+ color: var(--_sds-internal-header-text-color);
1758
+ background-color: var(--_sds-internal-header-background-color);
1759
+ border-block-end: var(--_sds-internal-header-border-width) solid var(--_sds-internal-header-border-color);
1760
+ }
1761
+
1762
+ *,
1763
+ *::before,
1764
+ *::after {
1765
+ box-sizing: border-box;
1766
+ }
1767
+
1768
+ .sds-internal-header {
1769
+ display: flex;
1770
+ flex-direction: row;
1771
+ flex-wrap: var(--_sds-internal-header-wrap);
1772
+ align-items: center;
1773
+ gap: var(--_sds-internal-header-gap);
1774
+ min-height: var(--_sds-internal-header-min-height);
1775
+ padding-block: var(--_sds-internal-header-padding-block);
1776
+ padding-inline: var(--_sds-internal-header-padding-inline);
1777
+ font-family: var(--_sds-internal-header-title-font-family);
1778
+ }
1779
+
1780
+ .sds-internal-header__brand {
1781
+ display: flex;
1782
+ flex-direction: row;
1783
+ align-items: center;
1784
+ gap: var(--_sds-internal-header-section-gap);
1785
+ flex: var(--_sds-internal-header-brand-flex);
1786
+ }
1787
+
1788
+ .sds-internal-header__home {
1789
+ color: inherit;
1790
+ text-decoration: none;
1791
+ border-radius: var(--sds-radius-sm, 0.25rem);
1792
+
1793
+ &:focus-visible {
1794
+ box-shadow: 0 0 0 var(--sds-color-states-focus-spacing) var(--sds-color-states-focus-inner);
1795
+ outline: var(--sds-color-states-focus-outline-size) solid var(--sds-color-states-focus-outer);
1796
+ outline-offset: var(--sds-color-states-focus-spacing);
1797
+ }
1798
+ }
1799
+
1800
+ .sds-internal-header__slots {
1801
+ display: flex;
1802
+ flex-direction: row;
1803
+ flex-wrap: var(--_sds-internal-header-wrap);
1804
+ align-items: center;
1805
+ justify-content: var(--_sds-internal-header-slots-justify);
1806
+ gap: var(--_sds-internal-header-section-gap);
1807
+ flex: var(--_sds-internal-header-slots-flex);
1808
+ }
1809
+
1810
+ .sds-internal-header__slot {
1811
+ display: flex;
1812
+ flex-direction: row;
1813
+ align-items: center;
1814
+ gap: var(--_sds-internal-header-section-gap);
1815
+ }
1816
+
1817
+ .sds-internal-header__slot--end {
1818
+ flex: 0 0 auto;
1819
+ justify-content: flex-end;
1820
+ }
1821
+
1822
+ .sds-internal-header__internal-logo {
1823
+ display: block;
1824
+ height: auto;
1825
+ width: var(--_sds-internal-header-internal-width);
1826
+ flex-shrink: 0;
1827
+ color: var(--_sds-internal-header-internal-color);
1828
+ margin-inline-end: calc(var(--sds-spacing-3xs) * -1);
1829
+ }
1830
+
1831
+ .sds-internal-header__title {
1832
+ font-family: var(--_sds-internal-header-title-font-family);
1833
+ font-size: var(--_sds-internal-header-title-font-size);
1834
+ font-weight: var(--_sds-internal-header-title-font-weight);
1835
+ line-height: var(--_sds-internal-header-title-line-height);
1836
+ color: currentColor;
1837
+ white-space: nowrap;
1838
+ }
1839
+
1840
+ @media (min-width: 640px) {
1841
+ :host {
1842
+ --_sds-internal-header-padding-inline: var(--sds-internal-header-padding-inline, var(--sds-spacing-md));
1843
+ --_sds-internal-header-title-font-size: var(--sds-internal-header-title-font-size, var(--sds-typography-heading-sm-desktop-font-size));
1844
+ --_sds-internal-header-title-line-height: var(--sds-internal-header-title-line-height, var(--sds-typography-heading-sm-desktop-line-height));
1845
+ }
1846
+ }
1847
+ `;var ws=Object.defineProperty,ks=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ws(e,s,a),a};const zs=class extends _t{constructor(){super(...arguments),this.appName="",this.homeHref=""}get internalLogo(){return st`
1848
+ <svg class="sds-internal-header__internal-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 32" fill="currentColor" aria-hidden="true">
1849
+ <path d="M6.5 24.3333H0L13.6667 0H20L6.5 24.3333Z" fill="var(--sds-color-support-3-action-default)" />
1850
+ <path d="M12.5 32H6L19.6667 7.66663H26L12.5 32Z" fill="var(--sds-color-neutral-border-default)" />
1851
+ </svg>
1852
+ `}get appNameElement(){if(!this.appName)return rt;const t=et`<span class="sds-internal-header__title">${this.appName}</span>`;return this.homeHref?et`<a class="sds-internal-header__home" href=${this.homeHref}>${t}</a>`:t}render(){return et`
1853
+ <header class="sds-internal-header">
1854
+ <div class="sds-internal-header__brand">${this.internalLogo} ${this.appNameElement}</div>
1855
+ <div class="sds-internal-header__slots">
1856
+ <div class="sds-internal-header__slot">
1857
+ <slot name="start"></slot>
1858
+ </div>
1859
+ <div class="sds-internal-header__slot sds-internal-header__slot--end">
1860
+ <slot name="end"></slot>
1861
+ </div>
1862
+ </div>
1863
+ </header>
1864
+ `}};zs.styles=[ys];let $s=zs;ks([E({type:String,attribute:"app-name",reflect:!0})],$s.prototype,"appName"),ks([E({type:String,attribute:"home-href",reflect:!0})],$s.prototype,"homeHref");var Ss=Object.getOwnPropertyDescriptor;let Cs=class extends $s{};Cs=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ss(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-internal-header")],Cs);const Es=l`
1629
1865
  :host {
1630
1866
  --_sds-loader-main-color: var(--sds-loader-main-color, var(--sds-color-action-contrast-default, var(--sds-color-main-action-contrast-default)));
1631
1867
  --_sds-loader-secondary-color: var(--sds-loader-secondary-color, var(--sds-color-border-subtle, var(--sds-color-main-border-subtle)));
@@ -1701,10 +1937,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1701
1937
  stroke-dashoffset: -120px;
1702
1938
  }
1703
1939
  }
1704
- `;var hs=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,gs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ps(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&hs(e,s,a),a};let us=class extends mt{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return tt`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1940
+ `;var Ls=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Os=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?As(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ls(e,s,a),a};let Ts=class extends yt{constructor(){super(...arguments),this.size="md",this.contrast=!1}render(){return et`<svg aria-label="Laster" class="sds-loader" role="img" viewBox="0 0 50 50">
1705
1941
  <circle class="sds-loader__background" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1706
1942
  <circle class="sds-loader__circle" cx="25" cy="25" r="20" fill="none" stroke-width="7"></circle>
1707
- </svg>`}};us.styles=[cs],gs([E({type:String,reflect:!0})],us.prototype,"size",2),gs([E({type:Boolean,reflect:!0})],us.prototype,"contrast",2),us=gs([P("sds-loader")],us);const vs=l`
1943
+ </svg>`}};Ts.styles=[Es],Os([E({type:String,reflect:!0})],Ts.prototype,"size",2),Os([E({type:Boolean,reflect:!0})],Ts.prototype,"contrast",2),Ts=Os([P("sds-loader")],Ts);const Ps=l`
1708
1944
  :host {
1709
1945
  --_sds-notification-background-color: var(--sds-notification-background-color, var(--sds-color-alert-info-surface-tinted));
1710
1946
 
@@ -1841,25 +2077,25 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
1841
2077
  margin: 0 !important;
1842
2078
  max-width: var(--_sds-notification-max-line-width) !important;
1843
2079
  }
1844
- `;var fs=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,ms=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?bs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&fs(e,s,a),a};const _s={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let xs=!1,ys=class extends(Et(mt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},xs||(xs=!0,console.warn("[Sheriff] The Notification component is deprecated and will be removed in the next major release. Please migrate to the Alert component."))}updated(t){t.has("variant")&&"critical"===this.variant?this.variant="danger":t.has("variant")&&"warning"===this.variant&&(this.variant="attention")}render(){const t="danger"===this.variant||"critical"===this.variant?"danger":"accent";return tt`<div class="${Jt({"sds-notification":!0})}">
2080
+ `;var Ds=Object.defineProperty,Ms=Object.getOwnPropertyDescriptor,qs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ms(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ds(e,s,a),a};const Rs={info:"InformationSquareFill-aksel-filled",success:"check_circle-material-filled",attention:"warning-material-filled",warning:"warning-material-filled",danger:"dangerous-material-filled",critical:"dangerous-material-filled"};let Vs=!1,Bs=class extends(Ot(yt)){constructor(){super(),this.variant="info",this._remove=()=>{this.dispatchSheriffEvent("sds-remove")},Vs||(Vs=!0,console.warn("[Sheriff] The Notification component is deprecated and will be removed in the next major release. Please migrate to the Alert component."))}updated(t){t.has("variant")&&"critical"===this.variant?this.variant="danger":t.has("variant")&&"warning"===this.variant&&(this.variant="attention")}render(){const t="danger"===this.variant||"critical"===this.variant?"danger":"accent";return et`<div class="${se({"sds-notification":!0})}">
1845
2081
  <div class="sds-notification__type">
1846
- <sds-icon class="sds-notification__icon" name="${_s[this.variant]}" size="md"></sds-icon>
2082
+ <sds-icon class="sds-notification__icon" name="${Rs[this.variant]}" size="md"></sds-icon>
1847
2083
  </div>
1848
2084
  <div class="sds-notification__content">
1849
2085
  <slot name="title"></slot>
1850
2086
  <slot name="message"></slot>
1851
2087
  </div>
1852
- ${this.removableLabel?tt`<div class="sds-notification__actions">
2088
+ ${this.removableLabel?et`<div class="sds-notification__actions">
1853
2089
  <sds-button icon variant="tertiary" color="${t}" size="sm" @click=${this._remove} aria-label="${this.removableLabel}">
1854
2090
  <sds-icon name="close-material-outlined" size="sm"></sds-icon>
1855
2091
  </sds-button>
1856
- </div>`:st}
1857
- </div>`}};ys.styles=[vs],ms([E({type:String,reflect:!0})],ys.prototype,"variant",2),ms([E({type:String,attribute:"removable-label",reflect:!0})],ys.prototype,"removableLabel",2),ys=ms([P("sds-notification")],ys);const ws=l`
2092
+ </div>`:rt}
2093
+ </div>`}};Bs.styles=[Ps],qs([E({type:String,reflect:!0})],Bs.prototype,"variant",2),qs([E({type:String,attribute:"removable-label",reflect:!0})],Bs.prototype,"removableLabel",2),Bs=qs([P("sds-notification")],Bs);const Hs=l`
1858
2094
  :host {
1859
2095
  display: flex;
1860
2096
  flex-direction: column;
1861
2097
  }
1862
- `;var ks=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,$s=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?zs(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ks(e,s,a),a};let Ss=class extends mt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return tt`<slot></slot>`}};Ss.styles=[ws],$s([E({type:String,reflect:!0,attribute:"heading-level"})],Ss.prototype,"headingLevel",2),Ss=$s([P("sds-process")],Ss);const Cs=l`
2098
+ `;var js=Object.defineProperty,Ns=Object.getOwnPropertyDescriptor,Fs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ns(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&js(e,s,a),a};let Is=class extends yt{constructor(){super(),this.internals=this.attachInternals(),this.internals.role="list"}render(){return et`<slot></slot>`}};Is.styles=[Hs],Fs([E({type:String,reflect:!0,attribute:"heading-level"})],Is.prototype,"headingLevel",2),Is=Fs([P("sds-process")],Is);const Us=l`
1863
2099
  :host {
1864
2100
  --_sds-process-step-border-width: var(--sds-process-step-border-width, 2px);
1865
2101
  --_sds-process-step-border-color: var(--sds-process-step-border-color, var(--sds-color-action-default, var(--sds-color-main-action-default)));
@@ -2003,21 +2239,21 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2003
2239
  :host(:last-of-type) {
2004
2240
  --_sds-process-step-line-display: none;
2005
2241
  }
2006
- `;var Es=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Ls=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?As(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Es(e,s,a),a};let Os=class extends mt{constructor(){super(),this._headingLevel="h2",this._handleMarkerSlotChange=()=>{if(!this.markerSlot||!this.step)return;const t=0===this.markerSlot.assignedNodes({flatten:!0}).length;this.step.classList.toggle("sds-process-step--sub-step",t)},this.internals=this.attachInternals(),this.internals.role="listitem"}connectedCallback(){super.connectedCallback();const t=this.closest("sds-process");t&&t.headingLevel&&(this._headingLevel=t.headingLevel)}firstUpdated(){this._handleMarkerSlotChange()}get safeHeadingLevel(){return["h2","h3","h4","h5","h6"].includes(this._headingLevel)?this._headingLevel:"h2"}render(){return $t`
2242
+ `;var Ws=Object.defineProperty,Ks=Object.getOwnPropertyDescriptor,Gs=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ks(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ws(e,s,a),a};let Ys=class extends yt{constructor(){super(),this._headingLevel="h2",this._handleMarkerSlotChange=()=>{if(!this.markerSlot||!this.step)return;const t=0===this.markerSlot.assignedNodes({flatten:!0}).length;this.step.classList.toggle("sds-process-step--sub-step",t)},this.internals=this.attachInternals(),this.internals.role="listitem"}connectedCallback(){super.connectedCallback();const t=this.closest("sds-process");t&&t.headingLevel&&(this._headingLevel=t.headingLevel)}firstUpdated(){this._handleMarkerSlotChange()}get safeHeadingLevel(){return["h2","h3","h4","h5","h6"].includes(this._headingLevel)?this._headingLevel:"h2"}render(){return Ct`
2007
2243
  <div class="sds-process-step">
2008
2244
  <div class="sds-process-step__item">
2009
2245
  <div class="sds-process-step__marker" aria-hidden="true">
2010
2246
  <slot name="marker" @slotchange=${this._handleMarkerSlotChange}></slot>
2011
2247
  </div>
2012
2248
  <div class="sds-process-step__content">
2013
- ${this.heading?$t`<${wt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${wt(this.safeHeadingLevel)}>`:st}
2014
- ${this.timestamp?$t`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:st}
2249
+ ${this.heading?Ct`<${zt(this.safeHeadingLevel)} class="sds-process-step__heading">${this.heading}</${zt(this.safeHeadingLevel)}>`:rt}
2250
+ ${this.timestamp?Ct`<div class="sds-process-step__timestamp">${this.timestamp}</div>`:rt}
2015
2251
  <div class="sds-process-step__slot-content"><slot></slot></div>
2016
2252
  </div>
2017
2253
  </div>
2018
2254
  <span class="sds-process-step__line"></span>
2019
2255
  </div>
2020
- `}};Os.styles=[Cs],Ls([E({type:String,reflect:!0})],Os.prototype,"heading",2),Ls([E({type:String,reflect:!0})],Os.prototype,"timestamp",2),Ls([O('slot[name="marker"]')],Os.prototype,"markerSlot",2),Ls([O(".sds-process-step")],Os.prototype,"step",2),Os=Ls([P("sds-process-step")],Os);const Ts=l`
2256
+ `}};Ys.styles=[Us],Gs([E({type:String,reflect:!0})],Ys.prototype,"heading",2),Gs([E({type:String,reflect:!0})],Ys.prototype,"timestamp",2),Gs([O('slot[name="marker"]')],Ys.prototype,"markerSlot",2),Gs([O(".sds-process-step")],Ys.prototype,"step",2),Ys=Gs([P("sds-process-step")],Ys);const Zs=l`
2021
2257
  ${n(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-radius:var(--dsc-popover-border-radius);border-width:var(--dsc-popover-border-width);border-style:var(--dsc-popover-border-style);border-color:var(--dsc-popover-border-color);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding)}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;text-decoration:underline dotted;text-underline-offset:.27em;font-size:inherit}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
2022
2258
 
2023
2259
  :host {
@@ -2065,7 +2301,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2065
2301
  animation: none;
2066
2302
  }
2067
2303
  }
2068
- `,Ps={passive:!0,capture:!0},Ds=()=>typeof window<"u"&&typeof document<"u",Ms=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),qs=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Rs=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Vs(t,...e)},Vs=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},Bs=(t,e)=>{Ds()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let Hs;const js=()=>{"complete"===document.readyState&&(Hs||(Hs=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Ms(s,o,r);return s})(0,{"aria-live":"assertive"}),Hs.style.overflow="hidden",Hs.style.position="fixed",Hs.style.whiteSpace="nowrap",Hs.style.width="1px"),Hs.isConnected||document.body.appendChild(Hs))};Bs("announce",()=>[Rs(document,"focus mouseover",js,Ps)]);var Fs=class extends Event{constructor(t,{oldState:e="",newState:o="",...r}={}){super(t,r),s(this,"oldState"),s(this,"newState"),this.oldState=String(e||""),this.newState=String(o||"")}},Is=/* @__PURE__ */new WeakMap;function Ns(t,e,s){Is.set(t,setTimeout(()=>{Is.has(t)&&t.dispatchEvent(new Fs("toggle",{cancelable:!1,oldState:e,newState:s}))},0))}var Us=globalThis.ShadowRoot||function(){},Ws=globalThis.HTMLDialogElement||function(){},Ks=/* @__PURE__ */new WeakMap,Gs=/* @__PURE__ */new WeakMap,Ys=/* @__PURE__ */new WeakMap,Xs=/* @__PURE__ */new WeakMap;function Zs(t){return Xs.get(t)||"hidden"}var Qs=/* @__PURE__ */new WeakMap;function Js(t){return[...t].pop()}function to(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==Zs(t)||!e&&"hidden"!==Zs(t)||t instanceof Ws&&t.hasAttribute("open")||document.fullscreenElement===t)}function eo(t){if(!t)return 0;let e=Gs.get(document)||/* @__PURE__ */new Set,s=Ys.get(document)||/* @__PURE__ */new Set;return s.has(t)?[...s].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function so(t){let e,s=Ys.get(t)||/* @__PURE__ */new Set,o=Gs.get(t)||/* @__PURE__ */new Set,r=s.size>0?s:o.size>0?o:null;return r?(e=Js(r),e.isConnected?e:(r.delete(e),so(t))):null}function oo(t){for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function ro(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?ro(t.parentNode):t}function ao(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===Xs.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||ro(t))instanceof Us&&(t=t.host),t instanceof Document)return}}function io(t,e){let s=/* @__PURE__ */new Map,o=0;for(let a of e||[])s.set(a,o),o+=1;s.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,a=null,i=null;for(;!o;){if(a=ao(e)||null,null===a||!s.has(a))return;("hint"===t.popover||"auto"===a.popover)&&(o=!0),o||(e=a.parentElement)}i=s.get(a),(null===r||s.get(r)<i)&&(r=a)}(t.parentElement||ro(t)),r}function no(t){return!(t.hidden||t instanceof Us||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var lo=/* @__PURE__ */new WeakMap;function co(t){if(!to(t,!1))return;let e=t.ownerDocument;if(!t.dispatchEvent(new Fs("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!to(t,!1))return;let s=!1,o=t.popover,r=null,a=io(t,Gs.get(e)||/* @__PURE__ */new Set),i=io(t,Ys.get(e)||/* @__PURE__ */new Set);if("auto"===o&&(po(Ys.get(e)||/* @__PURE__ */new Set,s,!0),uo(a||e,s,!0),r="auto"),"hint"===o&&(i?(uo(i,s,!0),r="hint"):(po(Ys.get(e)||/* @__PURE__ */new Set,s,!0),a?(uo(a,s,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!to(t,!1))return;so(e)||(s=!0),"auto"===r?(Gs.has(e)||Gs.set(e,/* @__PURE__ */new Set),Gs.get(e).add(t)):"hint"===r&&(Ys.has(e)||Ys.set(e,/* @__PURE__ */new Set),Ys.get(e).add(t))}lo.delete(t);let d=e.activeElement;t.classList.add(":popover-open"),Xs.set(t,"showing"),Ks.has(e)||Ks.set(e,/* @__PURE__ */new Set),Ks.get(e).add(t),mo(Qs.get(t),!0),function(t){var e;null==(e=function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let s=e.querySelector("[autofocus]");if(s)return s;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(s=e.querySelector("[autofocus]"),s)return s}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(no(r))return r;r=o.nextNode()}}(t))||e.focus()}(t),s&&d&&"auto"===t.popover&&lo.set(t,d),Ns(t,"closed","open")}function ho(t,e=!1,s=!1){var o,r;if(!to(t,!0))return;let a=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(uo(t,e,s),!to(t,!0)))return;let i=Gs.get(a)||/* @__PURE__ */new Set,d=i.has(t)&&Js(i)===t;if(mo(Qs.get(t),!1),Qs.delete(t),s&&(t.dispatchEvent(new Fs("beforetoggle",{oldState:"open",newState:"closed"})),d&&Js(i)!==t&&uo(t,e,s),!to(t,!0)))return;null==(o=Ks.get(a))||o.delete(t),i.delete(t),null==(r=Ys.get(a))||r.delete(t),t.classList.remove(":popover-open"),Xs.set(t,"hidden"),s&&Ns(t,"open","closed");let n=lo.get(t);n&&(lo.delete(t),e&&n.focus())}function po(t,e=!1,s=!1){let o=oo(t);for(;o;)ho(o,e,s),o=oo(t)}function go(t,e,s,o){let r=!1,a=!1;for(;r||!a;){a=!0;let i=null,d=!1;for(let s of e)if(s===t)d=!0;else if(d){i=s;break}if(!i)return;for(;"showing"===Zs(i)&&e.size;)ho(Js(e),s,o);e.has(t)&&Js(e)!==t&&(r=!0),r&&(o=!1)}}function uo(t,e,s){let o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,s=!1){let o=so(t);for(;o;)ho(o,e,s),o=so(t)}(o,e,s);Ys.get(o)?.has(t)?go(t,Ys.get(o),e,s):(po(Ys.get(o)||/* @__PURE__ */new Set,e,s),Gs.get(o)?.has(t)&&go(t,Gs.get(o),e,s))}var vo=/* @__PURE__ */new WeakMap;function fo(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let s=e.ownerDocument;if(!so(s))return;let o=function(t){let e=ao(t),s=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||ro(t))instanceof Us&&(t=t.host),t instanceof Document)return}}(t);return eo(e)>eo(s)?e:s}(e);if(o&&"pointerdown"===t.type)vo.set(s,o);else if("pointerup"===t.type){let t=vo.get(s)===o;vo.delete(s),t&&uo(o||s,!1,!0)}}var bo=/* @__PURE__ */new WeakMap;function mo(t,e=!1){if(!t)return;bo.has(t)||bo.set(t,t.getAttribute("aria-expanded"));let s=t.popoverTargetElement;if(s instanceof HTMLElement&&"auto"===s.popover)t.setAttribute("aria-expanded",String(e));else{let e=bo.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var _o=globalThis.ShadowRoot||function(){};function xo(t,e,s){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,s(t))}})}var yo=/(^|[^\\]):popover-open\b/g;var wo=null;function ko(t){let e=function(){let t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===wo)try{(wo=new CSSStyleSheet).replaceSync(e)}catch{wo=!1}if(!1===wo){let s=document.createElement("style");s.textContent=e,t instanceof Document?t.head.prepend(s):t.prepend(s)}else t.adoptedStyleSheets=[wo,...t.adoptedStyleSheets]}const zo=Math.min,$o=Math.max,So=Math.round,Co=Math.floor,Eo=t=>({x:t,y:t}),Ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Lo(t,e,s){return $o(t,zo(e,s))}function Oo(t,e){return"function"==typeof t?t(e):t}function To(t){return t.split("-")[0]}function Po(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Mo(t){return"y"===t?"height":"width"}function qo(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function Ro(t){return Do(qo(t))}function Vo(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Bo=["left","right"],Ho=["right","left"],jo=["top","bottom"],Fo=["bottom","top"];function Io(t){const e=To(t);return Ao[e]+t.slice(e.length)}function No(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function Uo(t,e,s){let{reference:o,floating:r}=t;const a=qo(e),i=Ro(e),d=Mo(i),n=To(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Po(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function Wo(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Oo(e,t),u="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},v=d[p?"floating"===h?"reference":"floating":h],f=No(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(v)))||s?v:v.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=No(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+u.top)/_.y,bottom:(x.bottom-f.bottom+u.bottom)/_.y,left:(f.left-x.left+u.left)/_.x,right:(x.right-f.right+u.right)/_.x}}const Ko=/* @__PURE__ */new Set(["left","top"]);function Go(){return"undefined"!=typeof window}function Yo(t){return Qo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zo(t){var e;return null==(e=(Qo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Qo(t){return!!Go()&&(t instanceof Node||t instanceof Xo(t).Node)}function Jo(t){return!!Go()&&(t instanceof Element||t instanceof Xo(t).Element)}function tr(t){return!!Go()&&(t instanceof HTMLElement||t instanceof Xo(t).HTMLElement)}function er(t){return!(!Go()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function sr(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=pr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function or(t){return/^(table|td|th)$/.test(Yo(t))}function rr(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const ar=/transform|translate|scale|rotate|perspective|filter/,ir=/paint|layout|strict|content/,dr=t=>!!t&&"none"!==t;let nr;function lr(t){const e=Jo(t)?pr(t):t;return dr(e.transform)||dr(e.translate)||dr(e.scale)||dr(e.rotate)||dr(e.perspective)||!cr()&&(dr(e.backdropFilter)||dr(e.filter))||ar.test(e.willChange||"")||ir.test(e.contain||"")}function cr(){return null==nr&&(nr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nr}function hr(t){return/^(html|body|#document)$/.test(Yo(t))}function pr(t){return Xo(t).getComputedStyle(t)}function gr(t){return Jo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ur(t){if("html"===Yo(t))return t;const e=t.assignedSlot||t.parentNode||er(t)&&t.host||Zo(t);return er(e)?e.host:e}function vr(t){const e=ur(t);return hr(e)?t.ownerDocument?t.ownerDocument.body:t.body:tr(e)&&sr(e)?e:vr(e)}function fr(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=vr(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=Xo(r);if(a){const t=br(i);return e.concat(i,i.visualViewport||[],sr(r)?r:[],t&&s?fr(t):[])}return e.concat(r,fr(r,[],s))}function br(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mr(t){const e=pr(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=tr(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=So(s)!==a||So(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function _r(t){return Jo(t)?t:t.contextElement}function xr(t){const e=_r(t);if(!tr(e))return Eo(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=mr(e);let i=(a?So(s.width):s.width)/o,d=(a?So(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const yr=Eo(0);function wr(t){const e=Xo(t);return cr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:yr}function kr(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=_r(t);let i=Eo(1);e&&(o?Jo(o)&&(i=xr(o)):i=xr(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==Xo(n)||!l?Eo(0):wr(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,u=r.height/i.y;if(a){const t=Xo(a),e=o&&Jo(o)?Xo(o):o;let s=t,r=br(s);for(;r&&o&&e!==s;){const t=xr(r),e=r.getBoundingClientRect(),o=pr(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,u*=t.y,h+=a,p+=i,s=Xo(r),r=br(s)}}return No({width:g,height:u,x:h,y:p})}function zr(t,e){const s=gr(t).scrollLeft;return e?e.left+s:kr(Zo(t)).left+s}function $r(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-zr(t,s),y:s.top+e.scrollTop}}function Sr(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=Xo(t),o=Zo(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=cr();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=zr(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=Zo(t),s=gr(t),o=t.ownerDocument.body,r=$o(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=$o(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+zr(t);const d=-s.scrollTop;return"rtl"===pr(o).direction&&(i+=$o(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(Zo(t));else if(Jo(e))o=function(t,e){const s=kr(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=tr(t)?xr(t):Eo(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=wr(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return No(o)}function Cr(t,e){const s=ur(t);return!(s===e||!Jo(s)||hr(s))&&("fixed"===pr(s).position||Cr(s,e))}function Er(t,e,s){const o=tr(e),r=Zo(e),a="fixed"===s,i=kr(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Eo(0);function l(){n.x=zr(r)}if(o||!o&&!a)if(("body"!==Yo(e)||sr(r))&&(d=gr(e)),o){const t=kr(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Eo(0):$r(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Ar(t){return"static"===pr(t).position}function Lr(t,e){if(!tr(t)||"fixed"===pr(t).position)return null;if(e)return e(t);let s=t.offsetParent;return Zo(t)===s&&(s=s.ownerDocument.body),s}function Or(t,e){const s=Xo(t);if(rr(t))return s;if(!tr(t)){let e=ur(t);for(;e&&!hr(e);){if(Jo(e)&&!Ar(e))return e;e=ur(e)}return s}let o=Lr(t,e);for(;o&&or(o)&&Ar(o);)o=Lr(o,e);return o&&hr(o)&&Ar(o)&&!lr(o)?s:o||function(t){let e=ur(t);for(;tr(e)&&!hr(e);){if(lr(e))return e;if(rr(e))return null;e=ur(e)}return null}(t)||s}const Tr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=Zo(o),d=!!e&&rr(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Eo(1);const c=Eo(0),h=tr(o);if((h||!h&&!a)&&(("body"!==Yo(o)||sr(i))&&(n=gr(o)),h)){const t=kr(o);l=xr(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Eo(0):$r(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:Zo,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?rr(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=fr(t,[],!1).filter(t=>Jo(t)&&"body"!==Yo(t)),r=null;const a="fixed"===pr(t).position;let i=a?ur(t):t;for(;Jo(i)&&!hr(i);){const e=pr(i),s=lr(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||sr(i)&&!s&&Cr(t,i))?o=o.filter(t=>t!==i):r=e,i=ur(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Sr(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Sr(e,a[h],r);d=$o(t.top,d),n=zo(t.right,n),l=zo(t.bottom,l),c=$o(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Or,getElementRects:async function(t){const e=this.getOffsetParent||Or,s=this.getDimensions,o=await s(t.floating);return{reference:Er(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=mr(t);return{width:e,height:s}},getScale:xr,isElement:Jo,isRTL:function(t){return"rtl"===pr(t).direction}};function Pr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Dr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=To(s),d=Po(s),n="y"===qo(s),l=Ko.has(i)?-1:1,c=a&&n?-1:1,h=Oo(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:u}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof u&&(g="end"===d?-1*u:u),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Mr=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Oo(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=qo(To(r)),g=Do(p);let u=c[g],v=c[p];if(i){const t="y"===g?"bottom":"right";u=Lo(u+h["y"===g?"top":"left"],u,u-h[t])}if(d){const t="y"===p?"bottom":"right";v=Lo(v+h["y"===p?"top":"left"],v,v-h[t])}const f=n.fn({...e,[g]:u,[p]:v});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},qr=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:v=!0,...f}=Oo(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=To(r),m=qo(d),_=To(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!v?[Io(d)]:function(t){const e=Io(t);return[Vo(t),e,Vo(e)]}(d)),w="none"!==u;!p&&w&&y.push(...function(t,e,s,o){const r=Po(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Ho:Bo:e?Bo:Ho;case"left":case"right":return e?jo:Fo;default:return[]}}(To(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Vo)))),a}(d,v,u,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Po(t),r=Ro(t),a=Mo(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=Io(i)),[i,Io(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===qo(e)||S.every(t=>qo(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=qo(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},Rr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Oo(t,e),c=await i.detectOverflow(e,l),h=To(r),p=Po(r),g="y"===qo(r),{width:u,height:v}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=v-c.top-c.bottom,_=u-c.left-c.right,x=zo(v-c[f],m),y=zo(u-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=$o(c.left,0),e=$o(c.right,0),s=$o(c.top,0),o=$o(c.bottom,0);g?z=u-2*(0!==t||0!==e?t+e:$o(c.left,c.right)):k=v-2*(0!==s||0!==o?s+o:$o(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return u!==$.width||v!==$.height?{reset:{rects:!0}}:{}}}},Vr=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Oo(t,e),c={x:s,y:o},h=qo(r),p=Do(h);let g=c[p],u=c[h];const v=Oo(d,e),f="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=Ko.has(To(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);u<s?u=s:u>o&&(u=o)}return{[p]:g,[h]:u}}}};Ds()&&!(typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype)&&function(){if(typeof window>"u")return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(yo,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||Fs,xo(Document.prototype,"querySelector",t),xo(Document.prototype,"querySelectorAll",t),xo(Element.prototype,"querySelector",t),xo(Element.prototype,"querySelectorAll",t),xo(Element.prototype,"matches",t),xo(Element.prototype,"closest",t),xo(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){co(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){ho(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===Xs.get(this)&&void 0===t.force||!1===t.force?ho(this,!0,!0):(void 0===t.force||!0===t.force)&&co(this),"showing"===Xs.get(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let s=e.call(this,t);return ko(s),s}}});let s=HTMLElement.prototype.attachInternals;s&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=s.call(this);return t.shadowRoot&&ko(t.shadowRoot),t}}});let o=/* @__PURE__ */new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;let e=ro(this),s=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof _o)&&s&&e.getElementById(s)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let a=t=>{if(t.defaultPrevented)return;let e=t.composedPath(),s=e[0];if(!(s instanceof Element)||s?.shadowRoot)return;let o=ro(s);if(!(o instanceof _o||o instanceof Document))return;let r=e.find(t=>t.matches?.call(t,"[popovertargetaction],[popovertarget]"));return r?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let s=Zs(e);"show"===t.popoverTargetAction&&"showing"===s||"hide"===t.popoverTargetAction&&"hidden"===s||("showing"===s?ho(e,!0,!0):to(e,!1)&&(Qs.set(e,t),co(e)))}(r),void t.preventDefault()):void 0},i=t=>{let e=t.key,s=t.target;!t.defaultPrevented&&s&&("Escape"===e||"Esc"===e)&&uo(s.ownerDocument,!0,!0)};var d;(d=document).addEventListener("click",a),d.addEventListener("keydown",i),d.addEventListener("pointerdown",fo),d.addEventListener("pointerup",fo),ko(document)}();const Br="data-placement",Hr="data-autoplacement",jr=/* @__PURE__ */new Map;function Fr(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Ms(o,"popover")&&qs(o,"--_ds-floating");if(!a)return;if("closed"===e)return jr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;o.style.scrollMarginBottom="var(--_ds-floating-arrow-size)";let i=qs(o,"--_ds-floating-overscroll"),d=Ms(o,Br)||Ms(r,Br)||a,n=Ms(o,Hr)||Ms(r,Hr),l=parseFloat(qs(o,"scroll-margin-bottom"))||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Dr(l),Mr({padding:10,limiter:Vr({offset:{mainAxis:h}})}),Ur(),..."false"===n?[]:[qr({padding:10,crossAxis:!1})],...i?[Rr({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.offsetWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=_r(t),c=r||a?[...l?fr(l):[],...e?fr(e):[]]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=Zo(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const u={rootMargin:-Co(h)+"px "+-Co(r.clientWidth-(c+p))+"px "+-Co(r.clientHeight-(h+g))+"px "+-Co(c)+"px",threshold:$o(0,zo(1,n))||1};let v=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!v)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Pr(l,t.getBoundingClientRect())||i(),v=!1}try{o=new IntersectionObserver(f,{...u,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,u)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,u=null;i&&(u=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&u&&e&&(u.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=u)||t.observe(e)})),s()}),l&&!n&&u.observe(l),e&&u.observe(e));let v=n?kr(t):null;return n&&function e(){const o=kr(t);v&&!Pr(v,o)&&s(),v=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=u)||t.disconnect(),u=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return jr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Tr,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:Wo},n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=Uo(l,o,n),p=o,g=0;const u={};for(let v=0;v<a.length;v++){const s=a[v];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:u,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,u[f]={...u[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=Uo(l,p,n))),v=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});jr.set(o,()=>jr.delete(o)&&g())}let Ir;const Nr=({type:t})=>{if("mousedown"===t&&(Ir=!1),"scroll"===t&&!1===Ir&&(Ir=!0),"mouseup"===t&&Ir)for(let[e]of jr)e.showPopover()};Bs("popover",()=>[Rs(document,"mousedown scroll mouseup",Nr,!0),Rs(document,"toggle ds-toggle-source",Fr,Ps)]);const Ur=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ms(e,"data-floating",t.placement),t}});var Wr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,Gr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Kr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Wr(e,s,a),a};let Yr=class extends mt{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return tt`<slot></slot>`}};Yr.styles=[Ts],Gr([E({type:String,reflect:!0})],Yr.prototype,"placement",2),Gr([E({type:String,reflect:!0})],Yr.prototype,"autoPlacement",2),Gr([E({type:String,reflect:!0})],Yr.prototype,"overscroll",2),Yr=Gr([P("sds-popover")],Yr);const Xr=l`
2304
+ `,Xs={passive:!0,capture:!0},Qs=()=>typeof window<"u"&&typeof document<"u",Js=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),to=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),eo=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>so(t,...e)},so=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},oo=(t,e)=>{Qs()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let ro;const ao=()=>{"complete"===document.readyState&&(ro||(ro=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Js(s,o,r);return s})(0,{"aria-live":"assertive"}),ro.style.overflow="hidden",ro.style.position="fixed",ro.style.whiteSpace="nowrap",ro.style.width="1px"),ro.isConnected||document.body.appendChild(ro))};oo("announce",()=>[eo(document,"focus mouseover",ao,Xs)]);var io=class extends Event{constructor(t,{oldState:e="",newState:o="",...r}={}){super(t,r),s(this,"oldState"),s(this,"newState"),this.oldState=String(e||""),this.newState=String(o||"")}},no=/* @__PURE__ */new WeakMap;function lo(t,e,s){no.set(t,setTimeout(()=>{no.has(t)&&t.dispatchEvent(new io("toggle",{cancelable:!1,oldState:e,newState:s}))},0))}var co=globalThis.ShadowRoot||function(){},ho=globalThis.HTMLDialogElement||function(){},po=/* @__PURE__ */new WeakMap,go=/* @__PURE__ */new WeakMap,vo=/* @__PURE__ */new WeakMap,uo=/* @__PURE__ */new WeakMap;function fo(t){return uo.get(t)||"hidden"}var bo=/* @__PURE__ */new WeakMap;function mo(t){return[...t].pop()}function _o(t,e){return!("auto"!==t.popover&&"manual"!==t.popover&&"hint"!==t.popover||!t.isConnected||e&&"showing"!==fo(t)||!e&&"hidden"!==fo(t)||t instanceof ho&&t.hasAttribute("open")||document.fullscreenElement===t)}function xo(t){if(!t)return 0;let e=go.get(document)||/* @__PURE__ */new Set,s=vo.get(document)||/* @__PURE__ */new Set;return s.has(t)?[...s].indexOf(t)+e.size+1:e.has(t)?[...e].indexOf(t)+1:0}function yo(t){let e,s=vo.get(t)||/* @__PURE__ */new Set,o=go.get(t)||/* @__PURE__ */new Set,r=s.size>0?s:o.size>0?o:null;return r?(e=mo(r),e.isConnected?e:(r.delete(e),yo(t))):null}function wo(t){for(let e of t||[]){if(e.isConnected)return e;t.delete(e)}return null}function ko(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?ko(t.parentNode):t}function zo(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===uo.get(t))return t;if((t=t instanceof Element&&t.assignedSlot||t.parentElement||ko(t))instanceof co&&(t=t.host),t instanceof Document)return}}function $o(t,e){let s=/* @__PURE__ */new Map,o=0;for(let a of e||[])s.set(a,o),o+=1;s.set(t,o),o+=1;let r=null;return function(e){if(!e)return;let o=!1,a=null,i=null;for(;!o;){if(a=zo(e)||null,null===a||!s.has(a))return;("hint"===t.popover||"auto"===a.popover)&&(o=!0),o||(e=a.parentElement)}i=s.get(a),(null===r||s.get(r)<i)&&(r=a)}(t.parentElement||ko(t)),r}function So(t){return!(t.hidden||t instanceof co||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var Co=/* @__PURE__ */new WeakMap;function Eo(t){if(!_o(t,!1))return;let e=t.ownerDocument;if(!t.dispatchEvent(new io("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!_o(t,!1))return;let s=!1,o=t.popover,r=null,a=$o(t,go.get(e)||/* @__PURE__ */new Set),i=$o(t,vo.get(e)||/* @__PURE__ */new Set);if("auto"===o&&(Ao(vo.get(e)||/* @__PURE__ */new Set,s,!0),To(a||e,s,!0),r="auto"),"hint"===o&&(i?(To(i,s,!0),r="hint"):(Ao(vo.get(e)||/* @__PURE__ */new Set,s,!0),a?(To(a,s,!0),r="auto"):r="hint")),"auto"===o||"hint"===o){if(o!==t.popover||!_o(t,!1))return;yo(e)||(s=!0),"auto"===r?(go.has(e)||go.set(e,/* @__PURE__ */new Set),go.get(e).add(t)):"hint"===r&&(vo.has(e)||vo.set(e,/* @__PURE__ */new Set),vo.get(e).add(t))}Co.delete(t);let d=e.activeElement;t.classList.add(":popover-open"),uo.set(t,"showing"),po.has(e)||po.set(e,/* @__PURE__ */new Set),po.get(e).add(t),qo(bo.get(t),!0),function(t){var e;null==(e=function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let s=e.querySelector("[autofocus]");if(s)return s;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(s=e.querySelector("[autofocus]"),s)return s}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(So(r))return r;r=o.nextNode()}}(t))||e.focus()}(t),s&&d&&"auto"===t.popover&&Co.set(t,d),lo(t,"closed","open")}function Lo(t,e=!1,s=!1){var o,r;if(!_o(t,!0))return;let a=t.ownerDocument;if(["auto","hint"].includes(t.popover)&&(To(t,e,s),!_o(t,!0)))return;let i=go.get(a)||/* @__PURE__ */new Set,d=i.has(t)&&mo(i)===t;if(qo(bo.get(t),!1),bo.delete(t),s&&(t.dispatchEvent(new io("beforetoggle",{oldState:"open",newState:"closed"})),d&&mo(i)!==t&&To(t,e,s),!_o(t,!0)))return;null==(o=po.get(a))||o.delete(t),i.delete(t),null==(r=vo.get(a))||r.delete(t),t.classList.remove(":popover-open"),uo.set(t,"hidden"),s&&lo(t,"open","closed");let n=Co.get(t);n&&(Co.delete(t),e&&n.focus())}function Ao(t,e=!1,s=!1){let o=wo(t);for(;o;)Lo(o,e,s),o=wo(t)}function Oo(t,e,s,o){let r=!1,a=!1;for(;r||!a;){a=!0;let i=null,d=!1;for(let s of e)if(s===t)d=!0;else if(d){i=s;break}if(!i)return;for(;"showing"===fo(i)&&e.size;)Lo(mo(e),s,o);e.has(t)&&mo(e)!==t&&(r=!0),r&&(o=!1)}}function To(t,e,s){let o=t.ownerDocument||t;if(t instanceof Document)return function(t,e=!1,s=!1){let o=yo(t);for(;o;)Lo(o,e,s),o=yo(t)}(o,e,s);vo.get(o)?.has(t)?Oo(t,vo.get(o),e,s):(Ao(vo.get(o)||/* @__PURE__ */new Set,e,s),go.get(o)?.has(t)&&Oo(t,go.get(o),e,s))}var Po=/* @__PURE__ */new WeakMap;function Do(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let s=e.ownerDocument;if(!yo(s))return;let o=function(t){let e=zo(t),s=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||ko(t))instanceof co&&(t=t.host),t instanceof Document)return}}(t);return xo(e)>xo(s)?e:s}(e);if(o&&"pointerdown"===t.type)Po.set(s,o);else if("pointerup"===t.type){let t=Po.get(s)===o;Po.delete(s),t&&To(o||s,!1,!0)}}var Mo=/* @__PURE__ */new WeakMap;function qo(t,e=!1){if(!t)return;Mo.has(t)||Mo.set(t,t.getAttribute("aria-expanded"));let s=t.popoverTargetElement;if(s instanceof HTMLElement&&"auto"===s.popover)t.setAttribute("aria-expanded",String(e));else{let e=Mo.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var Ro=globalThis.ShadowRoot||function(){};function Vo(t,e,s){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,s(t))}})}var Bo=/(^|[^\\]):popover-open\b/g;var Ho=null;function jo(t){let e=function(){let t="function"==typeof globalThis.CSSLayerBlockRule;return`\n${t?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${t?"}":""}\n`}();if(null===Ho)try{(Ho=new CSSStyleSheet).replaceSync(e)}catch{Ho=!1}if(!1===Ho){let s=document.createElement("style");s.textContent=e,t instanceof Document?t.head.prepend(s):t.prepend(s)}else t.adoptedStyleSheets=[Ho,...t.adoptedStyleSheets]}const No=Math.min,Fo=Math.max,Io=Math.round,Uo=Math.floor,Wo=t=>({x:t,y:t}),Ko={left:"right",right:"left",bottom:"top",top:"bottom"};function Go(t,e,s){return Fo(t,No(e,s))}function Yo(t,e){return"function"==typeof t?t(e):t}function Zo(t){return t.split("-")[0]}function Xo(t){return t.split("-")[1]}function Qo(t){return"x"===t?"y":"x"}function Jo(t){return"y"===t?"height":"width"}function tr(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function er(t){return Qo(tr(t))}function sr(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const or=["left","right"],rr=["right","left"],ar=["top","bottom"],ir=["bottom","top"];function dr(t){const e=Zo(t);return Ko[e]+t.slice(e.length)}function nr(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function lr(t,e,s){let{reference:o,floating:r}=t;const a=tr(e),i=er(e),d=Jo(i),n=Zo(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Xo(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function cr(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Yo(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=nr(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const hr=/* @__PURE__ */new Set(["left","top"]);function pr(){return"undefined"!=typeof window}function gr(t){return fr(t)?(t.nodeName||"").toLowerCase():"#document"}function vr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function ur(t){var e;return null==(e=(fr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function fr(t){return!!pr()&&(t instanceof Node||t instanceof vr(t).Node)}function br(t){return!!pr()&&(t instanceof Element||t instanceof vr(t).Element)}function mr(t){return!!pr()&&(t instanceof HTMLElement||t instanceof vr(t).HTMLElement)}function _r(t){return!(!pr()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof vr(t).ShadowRoot)}function xr(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Ar(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function yr(t){return/^(table|td|th)$/.test(gr(t))}function wr(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const kr=/transform|translate|scale|rotate|perspective|filter/,zr=/paint|layout|strict|content/,$r=t=>!!t&&"none"!==t;let Sr;function Cr(t){const e=br(t)?Ar(t):t;return $r(e.transform)||$r(e.translate)||$r(e.scale)||$r(e.rotate)||$r(e.perspective)||!Er()&&($r(e.backdropFilter)||$r(e.filter))||kr.test(e.willChange||"")||zr.test(e.contain||"")}function Er(){return null==Sr&&(Sr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sr}function Lr(t){return/^(html|body|#document)$/.test(gr(t))}function Ar(t){return vr(t).getComputedStyle(t)}function Or(t){return br(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tr(t){if("html"===gr(t))return t;const e=t.assignedSlot||t.parentNode||_r(t)&&t.host||ur(t);return _r(e)?e.host:e}function Pr(t){const e=Tr(t);return Lr(e)?t.ownerDocument?t.ownerDocument.body:t.body:mr(e)&&xr(e)?e:Pr(e)}function Dr(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Pr(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=vr(r);if(a){const t=Mr(i);return e.concat(i,i.visualViewport||[],xr(r)?r:[],t&&s?Dr(t):[])}return e.concat(r,Dr(r,[],s))}function Mr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qr(t){const e=Ar(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=mr(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Io(s)!==a||Io(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function Rr(t){return br(t)?t:t.contextElement}function Vr(t){const e=Rr(t);if(!mr(e))return Wo(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=qr(e);let i=(a?Io(s.width):s.width)/o,d=(a?Io(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Br=Wo(0);function Hr(t){const e=vr(t);return Er()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Br}function jr(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=Rr(t);let i=Wo(1);e&&(o?br(o)&&(i=Vr(o)):i=Vr(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==vr(n)||!l?Wo(0):Hr(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=vr(a),e=o&&br(o)?vr(o):o;let s=t,r=Mr(s);for(;r&&o&&e!==s;){const t=Vr(r),e=r.getBoundingClientRect(),o=Ar(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=vr(r),r=Mr(s)}}return nr({width:g,height:v,x:h,y:p})}function Nr(t,e){const s=Or(t).scrollLeft;return e?e.left+s:jr(ur(t)).left+s}function Fr(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-Nr(t,s),y:s.top+e.scrollTop}}function Ir(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=vr(t),o=ur(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=Er();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=Nr(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=ur(t),s=Or(t),o=t.ownerDocument.body,r=Fo(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Fo(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+Nr(t);const d=-s.scrollTop;return"rtl"===Ar(o).direction&&(i+=Fo(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(ur(t));else if(br(e))o=function(t,e){const s=jr(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=mr(t)?Vr(t):Wo(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Hr(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return nr(o)}function Ur(t,e){const s=Tr(t);return!(s===e||!br(s)||Lr(s))&&("fixed"===Ar(s).position||Ur(s,e))}function Wr(t,e,s){const o=mr(e),r=ur(e),a="fixed"===s,i=jr(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Wo(0);function l(){n.x=Nr(r)}if(o||!o&&!a)if(("body"!==gr(e)||xr(r))&&(d=Or(e)),o){const t=jr(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Wo(0):Fr(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Kr(t){return"static"===Ar(t).position}function Gr(t,e){if(!mr(t)||"fixed"===Ar(t).position)return null;if(e)return e(t);let s=t.offsetParent;return ur(t)===s&&(s=s.ownerDocument.body),s}function Yr(t,e){const s=vr(t);if(wr(t))return s;if(!mr(t)){let e=Tr(t);for(;e&&!Lr(e);){if(br(e)&&!Kr(e))return e;e=Tr(e)}return s}let o=Gr(t,e);for(;o&&yr(o)&&Kr(o);)o=Gr(o,e);return o&&Lr(o)&&Kr(o)&&!Cr(o)?s:o||function(t){let e=Tr(t);for(;mr(e)&&!Lr(e);){if(Cr(e))return e;if(wr(e))return null;e=Tr(e)}return null}(t)||s}const Zr={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=ur(o),d=!!e&&wr(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0),h=mr(o);if((h||!h&&!a)&&(("body"!==gr(o)||xr(i))&&(n=Or(o)),h)){const t=jr(o);l=Vr(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Wo(0):Fr(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:ur,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?wr(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Dr(t,[],!1).filter(t=>br(t)&&"body"!==gr(t)),r=null;const a="fixed"===Ar(t).position;let i=a?Tr(t):t;for(;br(i)&&!Lr(i);){const e=Ar(i),s=Cr(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||xr(i)&&!s&&Ur(t,i))?o=o.filter(t=>t!==i):r=e,i=Tr(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Ir(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Ir(e,a[h],r);d=Fo(t.top,d),n=No(t.right,n),l=No(t.bottom,l),c=Fo(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Yr,getElementRects:async function(t){const e=this.getOffsetParent||Yr,s=this.getDimensions,o=await s(t.floating);return{reference:Wr(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=qr(t);return{width:e,height:s}},getScale:Vr,isElement:br,isRTL:function(t){return"rtl"===Ar(t).direction}};function Xr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Qr=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Zo(s),d=Xo(s),n="y"===tr(s),l=hr.has(i)?-1:1,c=a&&n?-1:1,h=Yo(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Jr=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Yo(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=tr(Zo(r)),g=Qo(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Go(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Go(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},ta=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Yo(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Zo(r),m=tr(d),_=Zo(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[dr(d)]:function(t){const e=dr(t);return[sr(t),e,sr(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Xo(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?rr:or:e?or:rr;case"left":case"right":return e?ar:ir;default:return[]}}(Zo(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(sr)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Xo(t),r=er(t),a=Jo(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=dr(i)),[i,dr(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===tr(e)||S.every(t=>tr(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var L;const t=null==(L=S.filter(t=>{if(w){const e=tr(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:L[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},ea=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Yo(t,e),c=await i.detectOverflow(e,l),h=Zo(r),p=Xo(r),g="y"===tr(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=No(u-c[f],m),y=No(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=Fo(c.left,0),e=Fo(c.right,0),s=Fo(c.top,0),o=Fo(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:Fo(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:Fo(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},sa=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Yo(t,e),c={x:s,y:o},h=tr(r),p=Qo(h);let g=c[p],v=c[h];const u=Yo(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=hr.has(Zo(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}};Qs()&&!(typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype)&&function(){if(typeof window>"u")return;function t(t){return t?.includes(":popover-open")&&(t=t.replace(Bo,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||io,Vo(Document.prototype,"querySelector",t),Vo(Document.prototype,"querySelectorAll",t),Vo(Element.prototype,"querySelector",t),Vo(Element.prototype,"querySelectorAll",t),Vo(Element.prototype,"matches",t),Vo(Element.prototype,"closest",t),Vo(DocumentFragment.prototype,"querySelectorAll",t),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"hint"==t?"hint":"manual"},set(t){null===t?this.removeAttribute("popover"):this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(t={}){Eo(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){Lo(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t={}){return"boolean"==typeof t&&(t={force:t}),"showing"===uo.get(this)&&void 0===t.force||!1===t.force?Lo(this,!0,!0):(void 0===t.force||!0===t.force)&&Eo(this),"showing"===uo.get(this)}}});let e=Element.prototype.attachShadow;e&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let s=e.call(this,t);return jo(s),s}}});let s=HTMLElement.prototype.attachInternals;s&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=s.call(this);return t.shadowRoot&&jo(t.shadowRoot),t}}});let o=/* @__PURE__ */new WeakMap;function r(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),o.delete(this);else{if(!(t instanceof Element))throw TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),o.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=o.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return o.delete(this),null;let e=ko(this),s=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof Ro)&&s&&e.getElementById(s)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}r(HTMLButtonElement),r(HTMLInputElement);let a=t=>{if(t.defaultPrevented)return;let e=t.composedPath(),s=e[0];if(!(s instanceof Element)||s?.shadowRoot)return;let o=ko(s);if(!(o instanceof Ro||o instanceof Document))return;let r=e.find(t=>t.matches?.call(t,"[popovertargetaction],[popovertarget]"));return r?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let s=fo(e);"show"===t.popoverTargetAction&&"showing"===s||"hide"===t.popoverTargetAction&&"hidden"===s||("showing"===s?Lo(e,!0,!0):_o(e,!1)&&(bo.set(e,t),Eo(e)))}(r),void t.preventDefault()):void 0},i=t=>{let e=t.key,s=t.target;!t.defaultPrevented&&s&&("Escape"===e||"Esc"===e)&&To(s.ownerDocument,!0,!0)};var d;(d=document).addEventListener("click",a),d.addEventListener("keydown",i),d.addEventListener("pointerdown",Do),d.addEventListener("pointerup",Do),jo(document)}();const oa="data-placement",ra="data-autoplacement",aa=/* @__PURE__ */new Map;function ia(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Js(o,"popover")&&to(o,"--_ds-floating");if(!a)return;if("closed"===e)return aa.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;o.style.scrollMarginBottom="var(--_ds-floating-arrow-size)";let i=to(o,"--_ds-floating-overscroll"),d=Js(o,oa)||Js(r,oa)||a,n=Js(o,ra)||Js(r,ra),l=parseFloat(to(o,"scroll-margin-bottom"))||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Qr(l),Jr({padding:10,limiter:sa({offset:{mainAxis:h}})}),la(),..."false"===n?[]:[ta({padding:10,crossAxis:!1})],...i?[ea({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.offsetWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=Rr(t),c=r||a?[...l?Dr(l):[],...e?Dr(e):[]]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=ur(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Uo(h)+"px "+-Uo(r.clientWidth-(c+p))+"px "+-Uo(r.clientHeight-(h+g))+"px "+-Uo(c)+"px",threshold:Fo(0,No(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Xr(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&e&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),e&&v.observe(e));let u=n?jr(t):null;return n&&function e(){const o=jr(t);u&&!Xr(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return aa.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Zr,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:cr},n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=lr(l,o,n),p=o,g=0;const v={};for(let u=0;u<a.length;u++){const s=a[u];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:v,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,v[f]={...v[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=lr(l,p,n))),u=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:v}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});aa.set(o,()=>aa.delete(o)&&g())}let da;const na=({type:t})=>{if("mousedown"===t&&(da=!1),"scroll"===t&&!1===da&&(da=!0),"mouseup"===t&&da)for(let[e]of aa)e.showPopover()};oo("popover",()=>[eo(document,"mousedown scroll mouseup",na,!0),eo(document,"toggle ds-toggle-source",ia,Xs)]);const la=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Js(e,"data-floating",t.placement),t}});var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,pa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ha(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ca(e,s,a),a};let ga=class extends yt{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return et`<slot></slot>`}};ga.styles=[Zs],pa([E({type:String,reflect:!0})],ga.prototype,"placement",2),pa([E({type:String,reflect:!0})],ga.prototype,"autoPlacement",2),pa([E({type:String,reflect:!0})],ga.prototype,"overscroll",2),ga=pa([P("sds-popover")],ga);const va=l`
2069
2305
  :host {
2070
2306
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
2071
2307
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -2274,32 +2510,32 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2274
2510
  margin-block-start: -1px;
2275
2511
  }
2276
2512
  }
2277
- `;var Zr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,Jr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Qr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Zr(e,s,a),a};let ta=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return tt`
2278
- <div class="${Jt(t)}">
2513
+ `;var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ba=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?fa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ua(e,s,a),a};let ma=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._hasSlottedLabel=!1,this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e=this._hasSlottedLabel||Boolean(this.label),s={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},o=this.helpText?"help-text":void 0;return et`
2514
+ <div class="${se(t)}">
2279
2515
  <input
2280
2516
  id="control"
2281
2517
  type="radio"
2282
- name="${Dt(this.name)}"
2283
- value="${Dt(this.value)}"
2518
+ name="${Rt(this.name)}"
2519
+ value="${Rt(this.value)}"
2284
2520
  ?checked="${this.checked??!1}"
2285
2521
  .checked="${this.checked??!1}"
2286
2522
  ?disabled="${this.disabled??!1}"
2287
2523
  .disabled="${this.disabled??!1}"
2288
2524
  ?required="${this.required}"
2289
2525
  ?readonly="${this.readOnly}"
2290
- aria-describedby="${Dt(o)}"
2526
+ aria-describedby="${Rt(o)}"
2291
2527
  aria-invalid="${this.error?"true":"false"}"
2292
2528
  @change="${this._handleChange}"
2293
2529
  @focus="${this._handleFocus}"
2294
2530
  @blur="${this._handleBlur}"
2295
- class="${Jt(s)}"
2531
+ class="${se(s)}"
2296
2532
  />
2297
2533
  <label class="sds-radio__label" for="control" ?hidden="${!e}">
2298
2534
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
2299
2535
  </label>
2300
- ${this.helpText?tt`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:st}
2536
+ ${this.helpText?et`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:rt}
2301
2537
  </div>
2302
- `}};ta.styles=[Xr],Jr([E({type:Boolean,reflect:!0})],ta.prototype,"required",2),Jr([E({type:String,reflect:!0})],ta.prototype,"label",2),Jr([E({type:Boolean,reflect:!0,attribute:"hide-label"})],ta.prototype,"hideLabel",2),Jr([E({type:String})],ta.prototype,"value",2),Jr([E({type:Boolean,reflect:!0})],ta.prototype,"checked",2),Jr([E({type:Boolean,reflect:!0})],ta.prototype,"error",2),Jr([E({type:String,reflect:!0})],ta.prototype,"size",2),Jr([E({type:String,attribute:"help-text"})],ta.prototype,"helpText",2),Jr([E({type:Boolean,reflect:!0})],ta.prototype,"disabled",1),Jr([E({type:Boolean,attribute:!1})],ta.prototype,"parentRequestDisabled",1),Jr([O("#control")],ta.prototype,"control",2),Jr([A()],ta.prototype,"_hasSlottedLabel",2),ta=Jr([P("sds-radio")],ta);const ea=l`
2538
+ `}};ma.styles=[va],ba([E({type:Boolean,reflect:!0})],ma.prototype,"required",2),ba([E({type:String,reflect:!0})],ma.prototype,"label",2),ba([E({type:Boolean,reflect:!0,attribute:"hide-label"})],ma.prototype,"hideLabel",2),ba([E({type:String})],ma.prototype,"value",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"checked",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"error",2),ba([E({type:String,reflect:!0})],ma.prototype,"size",2),ba([E({type:String,attribute:"help-text"})],ma.prototype,"helpText",2),ba([E({type:Boolean,reflect:!0})],ma.prototype,"disabled",1),ba([E({type:Boolean,attribute:!1})],ma.prototype,"parentRequestDisabled",1),ba([O("#control")],ma.prototype,"control",2),ba([L()],ma.prototype,"_hasSlottedLabel",2),ma=ba([P("sds-radio")],ma);const _a=l`
2303
2539
  :host {
2304
2540
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
2305
2541
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2397,18 +2633,18 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2397
2633
  --_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
2398
2634
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2399
2635
  }
2400
- `;var sa=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,ra=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?oa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&sa(e,s,a),a};const aa=["disabled","errorMessage","readOnly","required","size"];let ia=class extends(Et(mt)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...aa])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;aa.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return tt`
2401
- <fieldset class="${Jt(t)}" aria-describedby="${Dt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2402
- ${this.legend?tt`<legend class="sds-radio-group__legend">${this.readOnly?tt`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:st}${this.legend}</legend>`:st}
2403
- ${this.helpText?tt`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:st}
2404
- <div class="${Jt(e)}" @change=${this._handleRadioChange}>
2636
+ `;var xa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,wa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ya(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xa(e,s,a),a};const ka=["disabled","errorMessage","readOnly","required","size"];let za=class extends(Ot(yt)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...ka])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;ka.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return et`
2637
+ <fieldset class="${se(t)}" aria-describedby="${Rt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2638
+ ${this.legend?et`<legend class="sds-radio-group__legend">${this.readOnly?et`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:rt}${this.legend}</legend>`:rt}
2639
+ ${this.helpText?et`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:rt}
2640
+ <div class="${se(e)}" @change=${this._handleRadioChange}>
2405
2641
  <slot @slotchange=${this._handleSlotChange}></slot>
2406
2642
  </div>
2407
- ${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2643
+ ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger">
2408
2644
  <p slot="message">${this.errorMessage}</p>
2409
- </sds-alert>`:st}
2645
+ </sds-alert>`:rt}
2410
2646
  </fieldset>
2411
- `}get value(){return{selectedValue:this._selectedValue}}};ia.styles=[ea],ra([E({type:String})],ia.prototype,"legend",2),ra([E({type:String,attribute:"help-text"})],ia.prototype,"helpText",2),ra([E({type:String,attribute:"error-message"})],ia.prototype,"errorMessage",2),ra([E({type:Boolean,attribute:"readonly",reflect:!0})],ia.prototype,"readOnly",2),ra([E({type:String})],ia.prototype,"direction",2),ra([E({type:Boolean,reflect:!0})],ia.prototype,"disabled",2),ra([E({type:Boolean,reflect:!0})],ia.prototype,"required",2),ra([E({type:String,reflect:!0})],ia.prototype,"size",2),ra([A()],ia.prototype,"_selectedValue",2),ra([O("slot")],ia.prototype,"_slotElement",2),ia=ra([P("sds-radio-group")],ia);const da=l`
2647
+ `}get value(){return{selectedValue:this._selectedValue}}};za.styles=[_a],wa([E({type:String})],za.prototype,"legend",2),wa([E({type:String,attribute:"help-text"})],za.prototype,"helpText",2),wa([E({type:String,attribute:"error-message"})],za.prototype,"errorMessage",2),wa([E({type:Boolean,attribute:"readonly",reflect:!0})],za.prototype,"readOnly",2),wa([E({type:String})],za.prototype,"direction",2),wa([E({type:Boolean,reflect:!0})],za.prototype,"disabled",2),wa([E({type:Boolean,reflect:!0})],za.prototype,"required",2),wa([E({type:String,reflect:!0})],za.prototype,"size",2),wa([L()],za.prototype,"_selectedValue",2),wa([O("slot")],za.prototype,"_slotElement",2),za=wa([P("sds-radio-group")],za);const $a=l`
2412
2648
  :host {
2413
2649
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2414
2650
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2450,6 +2686,11 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2450
2686
  --_sds-select-error-border-color: var(--sds-select-error-border-color, var(--sds-color-alert-danger-border-default, var(--sds-color-neutral-border-strong)));
2451
2687
  --_sds-select-error-text-color: var(--sds-select-error-text-color, var(--sds-color-alert-danger-text-default, var(--sds-color-neutral-text-default)));
2452
2688
 
2689
+ --_sds-select-icon-background-image: var(--sds-select-icon-background-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='M16 20.5 8 12.5 9.867 10.633 16 16.767 22.133 10.633 24 12.5Z'/%3E%3C/svg%3E"));
2690
+ --_sds-select-icon-background-repeat: var(--sds-select-icon-background-repeat, no-repeat);
2691
+ --_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-md));
2692
+ --_sds-select-icon-background-position: var(--sds-select-icon-background-position, top 50% right var(--sds-spacing-3xs));
2693
+
2453
2694
  all: unset;
2454
2695
  display: block;
2455
2696
  text-align: start;
@@ -2506,10 +2747,10 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2506
2747
  border: var(--_sds-select-border-width) solid var(--_sds-select-border-color);
2507
2748
  appearance: none;
2508
2749
 
2509
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='M16 20.5 8 12.5 9.867 10.633 16 16.767 22.133 10.633 24 12.5Z'/%3E%3C/svg%3E");
2510
- background-repeat: no-repeat;
2511
- background-size: 2rem;
2512
- background-position: top 50% right var(--sds-spacing-3xs);
2750
+ background-image: var(--_sds-select-icon-background-image);
2751
+ background-repeat: var(--_sds-select-icon-background-repeat);
2752
+ background-size: var(--_sds-select-icon-background-size);
2753
+ background-position: var(--_sds-select-icon-background-position);
2513
2754
 
2514
2755
  &:hover {
2515
2756
  --_sds-select-border-color: var(--sds-select-border-color, var(--sds-color-border-strong, var(--sds-color-neutral-border-strong)));
@@ -2522,7 +2763,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2522
2763
  }
2523
2764
 
2524
2765
  &:open {
2525
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z'/%3E%3C/svg%3E");
2766
+ --_sds-select-icon-background-image: var(--sds-select-icon-background-image, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' viewBox='0 0 32 32'%3E%3Cpath d='m16 11.5 8 8-1.867 1.867L16 15.233l-6.133 6.134L8 19.5z'/%3E%3C/svg%3E"));
2526
2767
  }
2527
2768
  }
2528
2769
 
@@ -2545,19 +2786,6 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2545
2786
  cursor: not-allowed;
2546
2787
  }
2547
2788
 
2548
- .sds-select__icon {
2549
- position: absolute;
2550
- top: 50%;
2551
- inset-inline-end: var(--_sds-select-padding-inline);
2552
- transform: translateY(-50%);
2553
- width: var(--sds-components-icon-md, 1rem);
2554
- height: var(--sds-components-icon-md, 1rem);
2555
- pointer-events: none;
2556
- background-color: currentColor;
2557
- mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.47 6.47a.75.75 0 0 1 1.06 0L8 8.94l2.47-2.47a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 0-1.06z' fill='black'/%3E%3C/svg%3E")
2558
- no-repeat center / contain;
2559
- }
2560
-
2561
2789
  :host([readonly]) {
2562
2790
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
2563
2791
 
@@ -2574,6 +2802,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2574
2802
  --_sds-select-label-line-height: var(--sds-select-label-line-height, var(--sds-components-line-height-squeezed-sm));
2575
2803
  --_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-sm));
2576
2804
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-sm));
2805
+ --_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-sm));
2577
2806
  }
2578
2807
 
2579
2808
  :host([size='lg']) {
@@ -2584,13 +2813,14 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2584
2813
  --_sds-select-label-line-height: var(--sds-select-label-line-height, var(--sds-components-line-height-squeezed-lg));
2585
2814
  --_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-lg));
2586
2815
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2816
+ --_sds-select-icon-background-size: var(--sds-select-icon-background-size, var(--sds-components-icon-lg));
2587
2817
  }
2588
- `;var na=Object.defineProperty,la=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&na(e,s,a),a};const ca=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return tt`<hr />`;default:return st}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return tt` <option value=${Dt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return tt` <optgroup label=${Dt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return tt`
2589
- <div class="${Jt(t)}">
2818
+ `;var Sa=Object.defineProperty,Ca=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Sa(e,s,a),a};const Ea=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return et`<hr />`;default:return rt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return et` <option value=${Rt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return et` <optgroup label=${Rt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return et`
2819
+ <div class="${se(t)}">
2590
2820
  <label for="control" class="sds-select__label" ?hidden="${!s}">
2591
- ${this.readOnly?tt`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2821
+ ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}<slot name="label" @slotchange=${this._handleLabelSlotChange}>${this.label}</slot>
2592
2822
  </label>
2593
- ${this.helpText?tt`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:st}
2823
+ ${this.helpText?et`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:rt}
2594
2824
 
2595
2825
  <div hidden>
2596
2826
  <slot @slotchange=${this._handleSlotChange}></slot>
@@ -2599,12 +2829,12 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2599
2829
  <select
2600
2830
  id="control"
2601
2831
  class="sds-select__control"
2602
- name=${Dt(this.name)}
2832
+ name=${Rt(this.name)}
2603
2833
  ?disabled=${this.disabled}
2604
2834
  ?required=${this.required}
2605
- aria-readonly=${Dt(this.readOnly)}
2835
+ aria-readonly=${Rt(this.readOnly)}
2606
2836
  aria-invalid=${this.errorMessage?"true":"false"}
2607
- aria-describedby=${Dt(e)}
2837
+ aria-describedby=${Rt(e)}
2608
2838
  @keydown=${this._handleKeyDown}
2609
2839
  @change=${this._handleChange}
2610
2840
  @focus=${this._handleFocus}
@@ -2613,13 +2843,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2613
2843
  ${this.renderFromLightDom()}
2614
2844
  </select>
2615
2845
 
2616
- ${this.errorMessage?tt`
2846
+ ${this.errorMessage?et`
2617
2847
  <sds-alert id="error-message" variant="secondary" data-palette="danger">
2618
2848
  <p slot="message">${this.errorMessage}</p>
2619
2849
  </sds-alert>
2620
- `:st}
2850
+ `:rt}
2621
2851
  </div>
2622
- `}};ca.styles=[da];let ha=ca;la([E({type:String,reflect:!0})],ha.prototype,"label"),la([E({type:String,attribute:!1})],ha.prototype,"value"),la([E({type:String,attribute:"default-value"})],ha.prototype,"defaultValue"),la([E({type:String,attribute:"help-text",reflect:!0})],ha.prototype,"helpText"),la([E({type:String,attribute:"error-message",reflect:!0})],ha.prototype,"errorMessage"),la([E({type:Boolean,reflect:!0})],ha.prototype,"required"),la([E({type:String,reflect:!0})],ha.prototype,"size"),la([O("#control")],ha.prototype,"control"),la([A()],ha.prototype,"_hasSlottedLabel");var pa=Object.getOwnPropertyDescriptor;let ga=class extends ha{};ga=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?pa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-select")],ga);const ua=l`
2852
+ `}};Ea.styles=[$a];let La=Ea;Ca([E({type:String,reflect:!0})],La.prototype,"label"),Ca([E({type:String,attribute:!1})],La.prototype,"value"),Ca([E({type:String,attribute:"default-value"})],La.prototype,"defaultValue"),Ca([E({type:String,attribute:"help-text",reflect:!0})],La.prototype,"helpText"),Ca([E({type:String,attribute:"error-message",reflect:!0})],La.prototype,"errorMessage"),Ca([E({type:Boolean,reflect:!0})],La.prototype,"required"),Ca([E({type:String,reflect:!0})],La.prototype,"size"),Ca([O("#control")],La.prototype,"control"),Ca([L()],La.prototype,"_hasSlottedLabel");var Aa=Object.getOwnPropertyDescriptor;let Oa=class extends La{};Oa=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Aa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-select")],Oa);const Ta=l`
2623
2853
  :host {
2624
2854
  display: flex;
2625
2855
  flex-direction: row;
@@ -2654,7 +2884,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2654
2884
 
2655
2885
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2656
2886
  }
2657
- `;var va=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ba=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?fa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&va(e,s,a),a};let ma=class extends(Et(mt)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return tt`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};ma.styles=[ua],ba([E({type:String,reflect:!0})],ma.prototype,"orientation",2),ba([T({selector:"sds-stepper-step",flatten:!0})],ma.prototype,"steps",2),ma=ba([P("sds-stepper")],ma);const _a=l`
2887
+ `;var Pa=Object.defineProperty,Da=Object.getOwnPropertyDescriptor,Ma=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Da(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Pa(e,s,a),a};let qa=class extends(Ot(yt)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return et`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};qa.styles=[Ta],Ma([E({type:String,reflect:!0})],qa.prototype,"orientation",2),Ma([T({selector:"sds-stepper-step",flatten:!0})],qa.prototype,"steps",2),qa=Ma([P("sds-stepper")],qa);const Ra=l`
2658
2888
  :host {
2659
2889
  /* Sizing */
2660
2890
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
@@ -2915,21 +3145,21 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
2915
3145
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
2916
3146
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
2917
3147
  }
2918
- `;var xa=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,wa=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ya(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xa(e,s,a),a};let ka=class extends(Et(mt)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>tt`<div class="sds-stepper-step__step--static">
3148
+ `;var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Ha=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ba(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Va(e,s,a),a};let ja=class extends(Ot(yt)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>et`<div class="sds-stepper-step__step--static">
2919
3149
  <span class="sds-stepper-step__counter"></span>
2920
3150
  <div class="sds-stepper-step__label"><slot></slot></div>
2921
- </div>`,this._renderInteractiveStep=()=>tt`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
3151
+ </div>`,this._renderInteractiveStep=()=>et`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
2922
3152
  <span class="sds-stepper-step__counter"></span>
2923
3153
  <div class="sds-stepper-step__label"><slot></slot></div>
2924
- </button>`,this.internals=this.attachInternals()}render(){return this.interactive?tt`<div class="sds-stepper-step">
3154
+ </button>`,this.internals=this.attachInternals()}render(){return this.interactive?et`<div class="sds-stepper-step">
2925
3155
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
2926
3156
  ${this._renderInteractiveStep()}
2927
3157
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
2928
- </div>`:tt`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
3158
+ </div>`:et`<div class="sds-stepper-step" role="tab" aria-disabled="true" tabindex="-1" aria-selected="false">
2929
3159
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
2930
3160
  ${this._renderNonInteractiveStep()}
2931
3161
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
2932
- </div>`}};ka.styles=[_a],ka.shadowRootOptions={...mt.shadowRootOptions,delegatesFocus:!0},wa([E({type:Boolean,reflect:!0})],ka.prototype,"complete",2),wa([E({type:Boolean,reflect:!0})],ka.prototype,"interactive",2),wa([E({type:Boolean,reflect:!0})],ka.prototype,"active",2),ka=wa([P("sds-stepper-step")],ka);const za=l`
3162
+ </div>`}};ja.styles=[Ra],ja.shadowRootOptions={...yt.shadowRootOptions,delegatesFocus:!0},Ha([E({type:Boolean,reflect:!0})],ja.prototype,"complete",2),Ha([E({type:Boolean,reflect:!0})],ja.prototype,"interactive",2),Ha([E({type:Boolean,reflect:!0})],ja.prototype,"active",2),ja=Ha([P("sds-stepper-step")],ja);const Na=l`
2933
3163
  :host {
2934
3164
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2935
3165
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3079,7 +3309,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3079
3309
  .sds-switch__input:checked::before {
3080
3310
  --_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
3081
3311
  }
3082
- `;var $a=Object.defineProperty,Sa=Object.getOwnPropertyDescriptor,Ca=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Sa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&$a(e,s,a),a};let Ea=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._hasSlottedLabel=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}get type(){return"checkbox"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=tt`<input
3312
+ `;var Fa=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,Ua=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ia(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Fa(e,s,a),a};let Wa=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._hasSlottedLabel=!1,this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}get type(){return"checkbox"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=et`<input
3083
3313
  class="sds-switch__input"
3084
3314
  id="control"
3085
3315
  type="checkbox"
@@ -3088,13 +3318,13 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3088
3318
  ?disabled="${this.disabled}"
3089
3319
  .checked="${this.checked}"
3090
3320
  ?checked="${this.checked}"
3091
- name="${Dt(this.name)}"
3321
+ name="${Rt(this.name)}"
3092
3322
  @change="${this._handleChange}"
3093
3323
  @focus="${this._handleFocus}"
3094
3324
  @blur="${this._handleBlur}"
3095
- />`,s=this.readOnly?tt`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:st,o=this._hasSlottedLabel||Boolean(this.label),r=tt`<label class="${Jt(t)}" for="control" ?hidden="${!o}">
3325
+ />`,s=this.readOnly?et`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:rt,o=this._hasSlottedLabel||Boolean(this.label),r=et`<label class="${se(t)}" for="control" ?hidden="${!o}">
3096
3326
  ${s}<slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
3097
- </label>`;return tt`<div class="${Jt({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};Ea.styles=[za],Ca([E({type:String,reflect:!0})],Ea.prototype,"label",2),Ca([E({type:Boolean,reflect:!0,attribute:"hide-label"})],Ea.prototype,"hideLabel",2),Ca([E({type:Boolean,reflect:!0})],Ea.prototype,"reverse",2),Ca([E({type:Boolean,reflect:!0})],Ea.prototype,"checked",2),Ca([E({type:String,reflect:!0})],Ea.prototype,"size",2),Ca([O("#control")],Ea.prototype,"control",2),Ca([A()],Ea.prototype,"_hasSlottedLabel",2),Ea=Ca([P("sds-switch")],Ea);const Aa=l`
3327
+ </label>`;return et`<div class="${se({"sds-switch":!0})}">${this.reverse?[r,e]:[e,r]}</div>`}};Wa.styles=[Na],Ua([E({type:String,reflect:!0})],Wa.prototype,"label",2),Ua([E({type:Boolean,reflect:!0,attribute:"hide-label"})],Wa.prototype,"hideLabel",2),Ua([E({type:Boolean,reflect:!0})],Wa.prototype,"reverse",2),Ua([E({type:Boolean,reflect:!0})],Wa.prototype,"checked",2),Ua([E({type:String,reflect:!0})],Wa.prototype,"size",2),Ua([O("#control")],Wa.prototype,"control",2),Ua([L()],Wa.prototype,"_hasSlottedLabel",2),Wa=Ua([P("sds-switch")],Wa);const Ka=l`
3098
3328
  :host {
3099
3329
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
3100
3330
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3155,9 +3385,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3155
3385
  --_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
3156
3386
  --_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
3157
3387
  }
3158
- `;var La=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ta=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Oa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&La(e,s,a),a};let Pa=class extends mt{constructor(){super(...arguments),this.size="md"}render(){return tt`<span class="${Jt({"sds-tag":!0})}">
3388
+ `;var Ga=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,Za=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ya(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ga(e,s,a),a};let Xa=class extends yt{constructor(){super(...arguments),this.size="md"}render(){return et`<span class="${se({"sds-tag":!0})}">
3159
3389
  <slot></slot>
3160
- </span>`}};Pa.styles=[Aa],Ta([E({type:String,reflect:!0})],Pa.prototype,"size",2),Pa=Ta([P("sds-tag")],Pa);const Da=l`
3390
+ </span>`}};Xa.styles=[Ka],Za([E({type:String,reflect:!0})],Xa.prototype,"size",2),Xa=Za([P("sds-tag")],Xa);const Qa=l`
3161
3391
  ${n('[data-tooltip]{--ds-tooltip:"";--_ds-data-tooltip:var(--ds-tooltip)}:host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overscroll-behavior:contain;overflow:auto}:host{&[data-floating|=top]:before{top:100%;rotate:45deg}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{top:0;rotate:-135deg}&[data-floating|=left]:before{left:100%;rotate:-45deg}--_ds-floating:var(--dsc-tooltip-placement);--_ds-floating-arrow-size:var(--dsc-tooltip-arrow-size);--dsc-tooltip-background:var(--ds-color-neutral-text-default);--dsc-tooltip-color:var(--ds-color-neutral-background-default);--dsc-tooltip-border-radius:var(--ds-border-radius-default);--dsc-tooltip-padding:var(--ds-size-1) var(--ds-size-2);--dsc-tooltip-arrow-size:var(--ds-size-2);--dsc-tooltip-transition-duration:0.2s;--dsc-tooltip-transition-delay:150ms;--dsc-tooltip-placement:top;background:var(--dsc-tooltip-background);border-radius:var(--dsc-tooltip-border-radius);border:0;box-sizing:border-box;color:var(--dsc-tooltip-color);line-height:var(--ds-line-height-sm);padding:var(--dsc-tooltip-padding);view-transition-name:ds-tooltip}:host:after{content:"";box-sizing:border-box;height:var(--_dsc-tooltip-safearea-height,0);width:var(--_dsc-tooltip-safearea-width,0);translate:var(--_dsc-tooltip-safearea-translate);position:absolute;left:var(--_ds-floating-arrow-x,50%);top:var(--_ds-floating-arrow-y,100%)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{top:100%;left:0;width:100%;height:var(--dsc-tooltip-arrow-size)}:host[data-floating=left]:after,:host[data-floating=right]:after{top:0;left:100%;width:var(--dsc-tooltip-arrow-size);height:100%}:host[data-floating=bottom]:after{top:calc(var(--dsc-tooltip-arrow-size)*-1)}:host[data-floating=right]:after{left:calc(var(--dsc-tooltip-arrow-size)*-1)}:host:not([popover]){display:none}@media (forced-colors:active){:host{background:CanvasText}}')}
3162
3392
 
3163
3393
  :host {
@@ -3198,28 +3428,28 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3198
3428
  rotate: -45deg;
3199
3429
  }
3200
3430
 
3201
- :host([data-floating='top'])::after,
3202
- :host([data-floating='bottom'])::after {
3431
+ :host([data-floating|='top'])::after,
3432
+ :host([data-floating|='bottom'])::after {
3203
3433
  height: var(--dsc-tooltip-arrow-size);
3204
3434
  left: 0;
3205
3435
  width: 100%;
3206
3436
  }
3207
- :host([data-floating='top'])::after {
3437
+ :host([data-floating|='top'])::after {
3208
3438
  top: 100%;
3209
3439
  }
3210
- :host([data-floating='bottom'])::after {
3440
+ :host([data-floating|='bottom'])::after {
3211
3441
  top: calc(var(--dsc-tooltip-arrow-size) * -1);
3212
3442
  }
3213
- :host([data-floating='left'])::after,
3214
- :host([data-floating='right'])::after {
3443
+ :host([data-floating|='left'])::after,
3444
+ :host([data-floating|='right'])::after {
3215
3445
  height: 100%;
3216
3446
  top: 0;
3217
3447
  width: var(--dsc-tooltip-arrow-size);
3218
3448
  }
3219
- :host([data-floating='right'])::after {
3449
+ :host([data-floating|='right'])::after {
3220
3450
  left: calc(var(--dsc-tooltip-arrow-size) * -1);
3221
3451
  }
3222
- :host([data-floating='left'])::after {
3452
+ :host([data-floating|='left'])::after {
3223
3453
  left: 100%;
3224
3454
  }
3225
3455
 
@@ -3240,7 +3470,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3240
3470
  border: 1px solid CanvasText;
3241
3471
  }
3242
3472
  }
3243
- `;var Ma=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Ra=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?qa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ma(e,s,a),a};let Va=class extends(Et(mt)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return tt`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};Va.styles=[Da],Ra([E({type:String,reflect:!0})],Va.prototype,"placement",2),Va=Ra([P("sds-tooltip")],Va);const Ba=l`
3473
+ `;var Ja=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ei=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ti(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ja(e,s,a),a};let si=class extends(Ot(yt)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return et`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};si.styles=[Qa],ei([E({type:String,reflect:!0})],si.prototype,"placement",2),si=ei([P("sds-tooltip")],si);const oi=l`
3244
3474
  :host {
3245
3475
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
3246
3476
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3655,7 +3885,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3655
3885
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
3656
3886
  }
3657
3887
  }
3658
- `;var Ha=Object.defineProperty,ja=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Ha(e,s,a),a};const Fa=class extends mt{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return tt`<p><slot></slot></p>`}};Fa.styles=[Ba];let Ia=Fa;ja([E({type:String,reflect:!0})],Ia.prototype,"size"),ja([E({type:Boolean,reflect:!0})],Ia.prototype,"strong"),ja([E({type:Boolean,reflect:!0})],Ia.prototype,"tall");var Na=Object.getOwnPropertyDescriptor;let Ua=class extends Ia{};Ua=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Na(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],Ua);const Wa=l`
3888
+ `;var ri=Object.defineProperty,ai=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ri(e,s,a),a};const ii=class extends yt{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return et`<p><slot></slot></p>`}};ii.styles=[oi];let di=ii;ai([E({type:String,reflect:!0})],di.prototype,"size"),ai([E({type:Boolean,reflect:!0})],di.prototype,"strong"),ai([E({type:Boolean,reflect:!0})],di.prototype,"tall");var ni=Object.getOwnPropertyDescriptor;let li=class extends di{};li=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ni(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-text")],li);const ci=l`
3659
3889
  :host {
3660
3890
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3661
3891
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3827,32 +4057,32 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3827
4057
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
3828
4058
  }
3829
4059
  }
3830
- `;var Ka=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor,Ya=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ga(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ka(e,s,a),a};let Xa=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._hasSlottedLabel=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){for(const t of Array.from(this.form?.elements??[]))if(t instanceof HTMLButtonElement||t instanceof HTMLInputElement){if("submit"!==t.type)continue;if(t.disabled)return;return void t.click()}this.form?.requestSubmit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return tt`
3831
- <div class="${Jt(t)}">
4060
+ `;var hi=Object.defineProperty,pi=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&hi(e,s,a),a};const gi=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._hasSlottedLabel=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){for(const t of Array.from(this.form?.elements??[]))if(t instanceof HTMLButtonElement||t instanceof HTMLInputElement){if("submit"!==t.type)continue;if(t.disabled)return;return void t.click()}this.form?.requestSubmit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0,s=this._hasSlottedLabel||Boolean(this.label);return et`
4061
+ <div class="${se(t)}">
3832
4062
  <label for="sds-textfield" class="sds-textfield__label" ?hidden="${!s}">
3833
- ${this.readOnly?tt`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}
4063
+ ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
3834
4064
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
3835
4065
  </label>
3836
- ${this.helpText?tt`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:st}
4066
+ ${this.helpText?et`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:rt}
3837
4067
  <div class="sds-textfield__input-container">
3838
4068
  <input
3839
4069
  part="input"
3840
4070
  class="sds-textfield__input"
3841
- type="${Dt(this.type)}"
4071
+ type="${Rt(this.type)}"
3842
4072
  id="sds-textfield"
3843
4073
  ?disabled="${this.disabled}"
3844
4074
  ?readonly="${this.readOnly}"
3845
- placeholder="${Dt(this.placeholder)}"
4075
+ placeholder="${Rt(this.placeholder)}"
3846
4076
  .value="${this.value??""}"
3847
- name="${Dt(this.name)}"
3848
- autocomplete="${Dt(this.autocomplete)}"
4077
+ name="${Rt(this.name)}"
4078
+ autocomplete="${Rt(this.autocomplete)}"
3849
4079
  ?required="${this.required}"
3850
- pattern="${Dt(this.pattern)}"
3851
- min="${Dt(this.min)}"
3852
- minlength="${Dt(this.minlength)}"
3853
- max="${Dt(this.max)}"
3854
- maxlength="${Dt(this.maxlength)}"
3855
- aria-describedby="${Dt(e)}"
4080
+ pattern="${Rt(this.pattern)}"
4081
+ min="${Rt(this.min)}"
4082
+ minlength="${Rt(this.minlength)}"
4083
+ max="${Rt(this.max)}"
4084
+ maxlength="${Rt(this.maxlength)}"
4085
+ aria-describedby="${Rt(e)}"
3856
4086
  aria-invalid="${this.errorMessage?"true":"false"}"
3857
4087
  @input="${this._handleInputChange}"
3858
4088
  @change="${this._handleInputChange}"
@@ -3863,9 +4093,9 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
3863
4093
  />
3864
4094
  <slot name="after" @slotchange="${this.handleSlotChange}" aria-hidden="true"></slot>
3865
4095
  </div>
3866
- ${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
4096
+ ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
3867
4097
  </div>
3868
- `}};Xa.styles=[Wa],Ya([E({type:String,reflect:!0})],Xa.prototype,"type",2),Ya([E({type:String})],Xa.prototype,"value",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"label",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"placeholder",2),Ya([E({type:String,attribute:"help-text",reflect:!0})],Xa.prototype,"helpText",2),Ya([E({type:String,attribute:"error-message",reflect:!0})],Xa.prototype,"errorMessage",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"autocomplete",2),Ya([E({type:Boolean,reflect:!0})],Xa.prototype,"required",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"pattern",2),Ya([E({type:Number,reflect:!0})],Xa.prototype,"minlength",2),Ya([E({type:Number,reflect:!0})],Xa.prototype,"maxlength",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"min",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"max",2),Ya([E({type:String,reflect:!0})],Xa.prototype,"size",2),Ya([A()],Xa.prototype,"hasIcon",2),Ya([A()],Xa.prototype,"_hasSlottedLabel",2),Ya([O("#sds-textfield")],Xa.prototype,"control",2),Xa=Ya([P("sds-textfield")],Xa);const Za=l`
4098
+ `}};gi.styles=[ci];let vi=gi;pi([E({type:String,reflect:!0})],vi.prototype,"type"),pi([E({type:String})],vi.prototype,"value"),pi([E({type:String,reflect:!0})],vi.prototype,"label"),pi([E({type:String,reflect:!0})],vi.prototype,"placeholder"),pi([E({type:String,attribute:"help-text",reflect:!0})],vi.prototype,"helpText"),pi([E({type:String,attribute:"error-message",reflect:!0})],vi.prototype,"errorMessage"),pi([E({type:String,reflect:!0})],vi.prototype,"autocomplete"),pi([E({type:Boolean,reflect:!0})],vi.prototype,"required"),pi([E({type:String,reflect:!0})],vi.prototype,"pattern"),pi([E({type:Number,reflect:!0})],vi.prototype,"minlength"),pi([E({type:Number,reflect:!0})],vi.prototype,"maxlength"),pi([E({type:String,reflect:!0})],vi.prototype,"min"),pi([E({type:String,reflect:!0})],vi.prototype,"max"),pi([E({type:String,reflect:!0})],vi.prototype,"size"),pi([L()],vi.prototype,"hasIcon"),pi([L()],vi.prototype,"_hasSlottedLabel"),pi([O("#sds-textfield")],vi.prototype,"control");var ui=Object.getOwnPropertyDescriptor;let fi=class extends vi{};fi=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?ui(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([P("sds-textfield")],fi);const bi=l`
3869
4099
  :host {
3870
4100
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3871
4101
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -4061,16 +4291,16 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4061
4291
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
4062
4292
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
4063
4293
  }
4064
- `;var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,ti=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Ja(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Qa(e,s,a),a};let ei=class extends(ee(Et(re(mt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return st;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?tt`<sds-alert variant="secondary" data-palette="danger"
4294
+ `;var mi=Object.defineProperty,_i=Object.getOwnPropertyDescriptor,xi=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?_i(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&mi(e,s,a),a};let yi=class extends(re(Ot(de(yt)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._hasSlottedLabel=!1,this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleLabelSlotChange=t=>{this._hasSlottedLabel=t.target.assignedNodes().length>0}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return rt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?et`<sds-alert variant="secondary" data-palette="danger"
4065
4295
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
4066
- >`:tt`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t=Boolean(this.errorMessage||this.hasTypedTooManyCharacters()),e=this._hasSlottedLabel||Boolean(this.label),s={"sds-textarea":!0,"sds-textarea--error":t},o=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return tt`
4067
- <div class="${Jt(s)}">
4068
- <div style="${e||this.helpText?st:"display: none"}">
4296
+ >`:et`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t=Boolean(this.errorMessage||this.hasTypedTooManyCharacters()),e=this._hasSlottedLabel||Boolean(this.label),s={"sds-textarea":!0,"sds-textarea--error":t},o=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return et`
4297
+ <div class="${se(s)}">
4298
+ <div style="${e||this.helpText?rt:"display: none"}">
4069
4299
  <label for="sds-textarea" class="sds-textarea__label" ?hidden="${!e}">
4070
- ${this.readOnly?tt`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:st}
4300
+ ${this.readOnly?et`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:rt}
4071
4301
  <slot name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>
4072
4302
  </label>
4073
- ${this.helpText?tt`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:st}
4303
+ ${this.helpText?et`<p id="help-text" class="sds-textarea__help-text">${this.helpText}</p>`:rt}
4074
4304
  </div>
4075
4305
  <div class="sds-textarea__input-container">
4076
4306
  <textarea
@@ -4078,17 +4308,17 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4078
4308
  id="sds-textarea"
4079
4309
  ?disabled="${this.disabled}"
4080
4310
  ?readonly="${this.readOnly}"
4081
- placeholder="${Dt(this.placeholder)}"
4311
+ placeholder="${Rt(this.placeholder)}"
4082
4312
  .value="${this.value??""}"
4083
4313
  .autocomplete="${this.autocomplete}"
4084
- name="${Dt(this.name)}"
4314
+ name="${Rt(this.name)}"
4085
4315
  ?required="${this.required}"
4086
- rows="${Dt(this.rows)}"
4087
- cols="${Dt(this.cols)}"
4088
- wrap="${Dt(this.wrap)}"
4089
- minlength="${Dt(this.minlength)}"
4090
- maxlength="${Dt(this.maxlength)}"
4091
- aria-describedby="${Dt(o)}"
4316
+ rows="${Rt(this.rows)}"
4317
+ cols="${Rt(this.cols)}"
4318
+ wrap="${Rt(this.wrap)}"
4319
+ minlength="${Rt(this.minlength)}"
4320
+ maxlength="${Rt(this.maxlength)}"
4321
+ aria-describedby="${Rt(o)}"
4092
4322
  aria-invalid="${t?"true":"false"}"
4093
4323
  @input="${this._handleInputChange}"
4094
4324
  @change="${this._handleInputChange}"
@@ -4097,7 +4327,7 @@ var t,e=Object.defineProperty,s=(t,s,o)=>((t,s,o)=>s in t?e(t,s,{enumerable:!0,c
4097
4327
  @blur="${this._handleBlur}"
4098
4328
  ></textarea>
4099
4329
  </div>
4100
- ${this.errorMessage?tt`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:st}
4330
+ ${this.errorMessage?et`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:rt}
4101
4331
  ${this.renderCharacterCounter()}
4102
4332
  </div>
4103
- `}};ei.styles=[Za],ti([E({type:String})],ei.prototype,"value",2),ti([E({type:String,reflect:!0})],ei.prototype,"label",2),ti([E({type:String,reflect:!0})],ei.prototype,"placeholder",2),ti([E({type:String,attribute:"help-text",reflect:!0})],ei.prototype,"helpText",2),ti([E({type:String,attribute:"error-message",reflect:!0})],ei.prototype,"errorMessage",2),ti([E({type:String,reflect:!0})],ei.prototype,"autocomplete",2),ti([E({type:Boolean,reflect:!0})],ei.prototype,"required",2),ti([E({type:Number,reflect:!0})],ei.prototype,"rows",2),ti([E({type:Number,reflect:!0})],ei.prototype,"cols",2),ti([E({type:String,reflect:!0})],ei.prototype,"wrap",2),ti([E({type:Number,reflect:!0})],ei.prototype,"minlength",2),ti([E({type:Number,reflect:!0})],ei.prototype,"maxlength",2),ti([E({type:Number,reflect:!0})],ei.prototype,"counter",2),ti([E({type:String,reflect:!0})],ei.prototype,"size",2),ti([O("#sds-textarea")],ei.prototype,"control",2),ti([A()],ei.prototype,"_hasSlottedLabel",2),ei=ti([P("sds-textarea")],ei);export{fe as SDSAlert,ue as SDSButton,we as SDSCard,Ce as SDSCheckbox,Pe as SDSCheckboxGroup,Ve as SDSChip,Ie as SDSDetails,Ge as SDSDetailsGroup,ss as SDSDialog,ls as SDSHeading,Qt as SDSIcon,us as SDSLoader,ys as SDSNotification,Yr as SDSPopover,Ss as SDSProcess,Os as SDSProcessStep,ta as SDSRadio,ia as SDSRadioGroup,ga as SDSSelect,ma as SDSStepper,ka as SDSStepperStep,Ea as SDSSwitch,Pa as SDSTag,Ua as SDSText,ei as SDSTextArea,Xa as SDSTextField,Va as SDSTooltip};
4333
+ `}};yi.styles=[bi],xi([E({type:String})],yi.prototype,"value",2),xi([E({type:String,reflect:!0})],yi.prototype,"label",2),xi([E({type:String,reflect:!0})],yi.prototype,"placeholder",2),xi([E({type:String,attribute:"help-text",reflect:!0})],yi.prototype,"helpText",2),xi([E({type:String,attribute:"error-message",reflect:!0})],yi.prototype,"errorMessage",2),xi([E({type:String,reflect:!0})],yi.prototype,"autocomplete",2),xi([E({type:Boolean,reflect:!0})],yi.prototype,"required",2),xi([E({type:Number,reflect:!0})],yi.prototype,"rows",2),xi([E({type:Number,reflect:!0})],yi.prototype,"cols",2),xi([E({type:String,reflect:!0})],yi.prototype,"wrap",2),xi([E({type:Number,reflect:!0})],yi.prototype,"minlength",2),xi([E({type:Number,reflect:!0})],yi.prototype,"maxlength",2),xi([E({type:Number,reflect:!0})],yi.prototype,"counter",2),xi([E({type:String,reflect:!0})],yi.prototype,"size",2),xi([O("#sds-textarea")],yi.prototype,"control",2),xi([L()],yi.prototype,"_hasSlottedLabel",2),yi=xi([P("sds-textarea")],yi);export{_e as SDSAlert,be as SDSButton,$e as SDSCard,Ae as SDSCheckbox,qe as SDSCheckboxGroup,je as SDSChip,ts as SDSDetails,as as SDSDetailsGroup,gs as SDSDialog,Ye as SDSEnvironmentBanner,xs as SDSHeading,ee as SDSIcon,Cs as SDSInternalHeader,Ts as SDSLoader,Bs as SDSNotification,ga as SDSPopover,Is as SDSProcess,Ys as SDSProcessStep,ma as SDSRadio,za as SDSRadioGroup,Oa as SDSSelect,qa as SDSStepper,ja as SDSStepperStep,Wa as SDSSwitch,Xa as SDSTag,li as SDSText,yi as SDSTextArea,fi as SDSTextField,si as SDSTooltip};