@warp-ds/elements 2.10.0-next.11 → 2.10.0-next.13
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.
- package/dist/custom-elements.json +211 -189
- package/dist/docs/badge/api.md +4 -4
- package/dist/docs/badge/badge.md +4 -4
- package/dist/docs/button/api.md +24 -24
- package/dist/docs/button/button.md +24 -24
- package/dist/docs/checkbox/api.md +2 -2
- package/dist/docs/checkbox/checkbox.md +2 -2
- package/dist/docs/checkbox-group/api.md +6 -6
- package/dist/docs/checkbox-group/checkbox-group.md +6 -6
- package/dist/docs/datepicker/api.md +8 -8
- package/dist/docs/datepicker/datepicker.md +8 -8
- package/dist/docs/expandable/api.md +6 -6
- package/dist/docs/expandable/expandable.md +6 -6
- package/dist/docs/icon/api.md +4 -4
- package/dist/docs/icon/icon.md +4 -4
- package/dist/docs/link/api.md +10 -10
- package/dist/docs/link/link.md +10 -10
- package/dist/docs/modal/api.md +2 -2
- package/dist/docs/modal/modal.md +2 -2
- package/dist/docs/pagination/api.md +4 -4
- package/dist/docs/pagination/pagination.md +4 -4
- package/dist/docs/pill/api.md +8 -8
- package/dist/docs/pill/pill.md +8 -8
- package/dist/docs/select/api.md +10 -10
- package/dist/docs/select/select.md +10 -10
- package/dist/docs/slider/api.md +22 -22
- package/dist/docs/slider/slider.md +22 -22
- package/dist/docs/slider-thumb/api.md +12 -12
- package/dist/docs/slider-thumb/slider-thumb.md +12 -12
- package/dist/docs/tabs/api.md +2 -2
- package/dist/docs/tabs/tabs.md +2 -2
- package/dist/docs/textarea/api.md +14 -14
- package/dist/docs/textarea/textarea.md +14 -14
- package/dist/docs/textfield/api.md +34 -34
- package/dist/docs/textfield/textfield.md +34 -34
- package/dist/packages/affix/affix.d.ts +1 -1
- package/dist/packages/affix/affix.js +8 -8
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/styles.js +2 -2
- package/dist/packages/alert/alert.js +7 -7
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/styles.js +2 -2
- package/dist/packages/attention/attention.js +42 -21
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.stories.js +1 -1
- package/dist/packages/attention/styles.js +2 -2
- package/dist/packages/badge/badge.d.ts +2 -2
- package/dist/packages/badge/badge.js +6 -6
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/styles.js +2 -2
- package/dist/packages/box/box.js +6 -6
- package/dist/packages/box/box.js.map +3 -3
- package/dist/packages/box/styles.js +2 -2
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +1 -2
- package/dist/packages/breadcrumbs/breadcrumbs.js +7 -7
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/styles.js +2 -2
- package/dist/packages/button/button.d.ts +11 -11
- package/dist/packages/button/button.js +37 -16
- package/dist/packages/button/button.js.map +4 -4
- package/dist/packages/button/button.react.stories.d.ts +2 -2
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/button/styles.js +18 -2
- package/dist/packages/card/card.js +8 -8
- package/dist/packages/card/card.js.map +4 -4
- package/dist/packages/card/styles.js +2 -2
- package/dist/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/packages/checkbox/checkbox.js +9 -9
- package/dist/packages/checkbox/checkbox.js.map +3 -3
- package/dist/packages/checkbox-group/checkbox-group.d.ts +4 -4
- package/dist/packages/checkbox-group/checkbox-group.js.map +2 -2
- package/dist/packages/combobox/combobox.js +14 -15
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.react.stories.d.ts +26 -10
- package/dist/packages/combobox/react.d.ts +13 -5
- package/dist/packages/combobox/styles.js +2 -3
- package/dist/packages/datepicker/datepicker.d.ts +5 -5
- package/dist/packages/datepicker/datepicker.js +29 -29
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +12 -12
- package/dist/packages/datepicker/react.d.ts +6 -6
- package/dist/packages/expandable/expandable.d.ts +3 -3
- package/dist/packages/expandable/expandable.js +10 -10
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/expandable/styles.js +2 -2
- package/dist/packages/icon/icon.d.ts +1 -1
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +1 -1
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/icon.react.stories.js +2 -0
- package/dist/packages/icon/icon.stories.d.ts +7 -30
- package/dist/packages/icon/icon.stories.js +11 -2
- package/dist/packages/link/link.d.ts +5 -5
- package/dist/packages/link/link.js +40 -19
- package/dist/packages/link/link.js.map +3 -3
- package/dist/packages/link/styles.js +5 -0
- package/dist/packages/modal/modal.d.ts +1 -1
- package/dist/packages/modal/modal.js +7 -7
- package/dist/packages/modal/modal.js.map +3 -3
- package/dist/packages/modal/modal.react.stories.d.ts +4 -4
- package/dist/packages/modal/react.d.ts +4 -4
- package/dist/packages/modal/util.js +3 -1
- package/dist/packages/modal-footer/modal-footer.js +7 -7
- package/dist/packages/modal-footer/modal-footer.js.map +3 -3
- package/dist/packages/modal-header/modal-header.js +11 -11
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/modal-header/react.d.ts +2 -2
- package/dist/packages/page-indicator/page-indicator.d.ts +0 -4
- package/dist/packages/page-indicator/page-indicator.js +6 -6
- package/dist/packages/page-indicator/page-indicator.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.stories.d.ts +8 -26
- package/dist/packages/page-indicator/page-indicator.stories.js +9 -7
- package/dist/packages/pagination/pagination.d.ts +8 -9
- package/dist/packages/pagination/pagination.js +15 -15
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.react.stories.d.ts +6 -6
- package/dist/packages/pagination/pagination.test.js +4 -7
- package/dist/packages/pagination/react.d.ts +3 -3
- package/dist/packages/pagination/styles.js +2 -2
- package/dist/packages/pill/pill.d.ts +4 -4
- package/dist/packages/pill/pill.js +9 -9
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.react.stories.d.ts +8 -8
- package/dist/packages/pill/react.d.ts +4 -4
- package/dist/packages/pill/styles.js +2 -2
- package/dist/packages/radio/form-associated-element.d.ts +1 -1
- package/dist/packages/radio/radio.d.ts +1 -1
- package/dist/packages/radio/radio.js +8 -8
- package/dist/packages/radio/radio.js.map +3 -3
- package/dist/packages/radio-group/radio-group.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.js +11 -11
- package/dist/packages/radio-group/radio-group.js.map +4 -4
- package/dist/packages/radio-group/react.d.ts +4 -4
- package/dist/packages/select/react.d.ts +3 -3
- package/dist/packages/select/select.d.ts +6 -7
- package/dist/packages/select/select.js +13 -13
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +7 -7
- package/dist/packages/select/select.react.stories.js +15 -10
- package/dist/packages/select/styles.js +2 -2
- package/dist/packages/slider/slider.d.ts +14 -14
- package/dist/packages/slider/slider.js +12 -12
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.stories.js +1 -0
- package/dist/packages/slider/styles.js +2 -2
- package/dist/packages/slider-thumb/react.d.ts +2 -2
- package/dist/packages/slider-thumb/slider-thumb.d.ts +14 -14
- package/dist/packages/slider-thumb/slider-thumb.js +11 -11
- package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
- package/dist/packages/slider-thumb/styles.d.ts +1 -0
- package/dist/packages/slider-thumb/styles.js +2 -0
- package/dist/packages/step/step.js +10 -10
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.js +6 -6
- package/dist/packages/step-indicator/step-indicator.js.map +3 -3
- package/dist/packages/step-indicator/styles.js +2 -2
- package/dist/packages/styles.js +4 -2
- package/dist/packages/switch/styles.js +2 -2
- package/dist/packages/switch/switch.d.ts +3 -3
- package/dist/packages/switch/switch.js +6 -6
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/tab/react.d.ts +4 -4
- package/dist/packages/tab/tab.d.ts +1 -1
- package/dist/packages/tab/tab.js +6 -6
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/tab-panel.js +5 -5
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/styles.js +2 -2
- package/dist/packages/tabs/tabs.d.ts +4 -3
- package/dist/packages/tabs/tabs.js +6 -6
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/textarea/react.d.ts +9 -9
- package/dist/packages/textarea/styles.js +2 -2
- package/dist/packages/textarea/textarea.a11y.test.js +1 -1
- package/dist/packages/textarea/textarea.d.ts +10 -10
- package/dist/packages/textarea/textarea.js +10 -10
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +18 -18
- package/dist/packages/textfield/react.d.ts +9 -9
- package/dist/packages/textfield/styles.js +2 -2
- package/dist/packages/textfield/textfield.d.ts +22 -22
- package/dist/packages/textfield/textfield.js +10 -10
- package/dist/packages/textfield/textfield.js.map +3 -3
- package/dist/packages/textfield/textfield.react.stories.d.ts +18 -18
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/styles.js +2 -2
- package/dist/packages/toast/toast.d.ts +1 -1
- package/dist/packages/toast/toast.js +12 -12
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/packages/toast-container/styles.d.ts +1 -0
- package/dist/packages/toast-container/styles.js +2 -0
- package/dist/packages/toast-container/toast-container.js +8 -8
- package/dist/packages/toast-container/toast-container.js.map +3 -3
- package/dist/web-types.json +170 -159
- package/eik/index.js +19 -2459
- package/package.json +3 -3
package/eik/index.js
CHANGED
|
@@ -3,2534 +3,94 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;let
|
|
6
|
+
const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;let n=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const r=this.t;if(t&&void 0===e){const t=void 0!==r&&1===r.length;t&&(e=o.get(r)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&o.set(r,e))}return e}toString(){return this.cssText}};const i=e=>new n("string"==typeof e?e:e+"",void 0,r),a=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];const a=1===e.length?e[0]:o.reduce((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new n(a,e,r)},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return i(t)})(e):e,{is:l,defineProperty:d,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:u,getPrototypeOf:p}=Object,b=globalThis,g=b.trustedTypes,m=g?g.emptyScript:"",v=b.reactiveElementPolyfillSupport,f=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>!l(e,t),x={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:y};
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/Symbol.metadata??=Symbol("metadata"),
|
|
11
|
+
*/Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t){if(void 0===t&&(t=x),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&d(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:n}=c(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const i=o?.call(this);n?.call(this,t),this.requestUpdate(e,i,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??x}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const e=p(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const e=this.properties,t=[...h(e),...u(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((r,o)=>{if(t)r.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const t of o){const o=document.createElement("style"),n=e.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}})(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const n=(void 0!==r.converter?.toAttribute?r.converter:w).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=o;const i=n.fromAttribute(t,e.type);this[o]=i??this._$Ej?.get(o)??i,this._$Em=null}}requestUpdate(e,t,r,o,n){if(void 0===o&&(o=!1),void 0!==e){const i=this.constructor;if(!1===o&&(n=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??y)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,r,o){let{useDefault:n,reflect:i,wrapped:a}=r;n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==a||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,r,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[f("elementProperties")]=new Map,k[f("finalized")]=new Map,v?.({ReactiveElement:k}),(b.reactiveElementVersions??=[]).push("2.1.2");
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2017 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
17
|
+
const _=globalThis,$=e=>e,S=_.trustedTypes,E=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+O,A=`<${z}>`,D=document,P=()=>D.createComment(""),M=e=>null===e||"object"!=typeof e&&"function"!=typeof e,T=Array.isArray,R="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,I=/>/g,V=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,L=/"/g,q=/^(?:script|style|textarea|title)$/i,B=(e=>function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return{_$litType$:e,strings:t,values:o}})(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Y=new WeakMap,X=D.createTreeWalker(D,129);function U(e,t){if(!T(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(t):t}class J{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0;const a=e.length-1,s=this.parts,[l,d]=((e,t)=>{const r=e.length-1,o=[];let n,i=2===t?"<svg>":3===t?"<math>":"",a=j;for(let t=0;t<r;t++){const r=e[t];let s,l,d=-1,c=0;for(;c<r.length&&(a.lastIndex=c,l=a.exec(r),null!==l);)c=a.lastIndex,a===j?"!--"===l[1]?a=N:void 0!==l[1]?a=I:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),a=V):void 0!==l[3]&&(a=V):a===V?">"===l[0]?(a=n??j,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?V:'"'===l[3]?L:F):a===L||a===F?a=V:a===N||a===I?a=j:(a=V,n=void 0);const h=a===V&&e[t+1].startsWith("/>")?" ":"";i+=a===j?r+A:d>=0?(o.push(s),r.slice(0,d)+C+r.slice(d)+O+h):r+O+(-2===d?t:h)}return[U(e,i+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=J.createElement(l,r),X.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=X.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(C)){const t=d[i++],r=o.getAttribute(e).split(O),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:n,name:a[2],strings:r,ctor:"."===a[1]?ee:"?"===a[1]?te:"@"===a[1]?re:G}),o.removeAttribute(e)}else e.startsWith(O)&&(s.push({type:6,index:n}),o.removeAttribute(e));if(q.test(o.tagName)){const e=o.textContent.split(O),t=e.length-1;if(t>0){o.textContent=S?S.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],P()),X.nextNode(),s.push({type:2,index:++n});o.append(e[t],P())}}}else if(8===o.nodeType)if(o.data===z)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(O,e+1));)s.push({type:7,index:n}),e+=O.length-1}n++}}static createElement(e,t){const r=D.createElement("template");return r.innerHTML=e,r}}function K(e,t,r,o){if(void 0===r&&(r=e),t===W)return t;let n=void 0!==o?r._$Co?.[o]:r._$Cl;const i=M(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(e),n._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=n:r._$Cl=n),void 0!==n&&(t=K(e,n._$AS(e,t.values),n,o)),t}class Z{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??D).importNode(t,!0);X.currentNode=o;let n=X.nextNode(),i=0,a=0,s=r[0];for(;void 0!==s;){if(i===s.index){let t;2===s.type?t=new Q(n,n.nextSibling,this,e):1===s.type?t=new s.ctor(n,s.name,s.strings,this,e):6===s.type&&(t=new oe(n,this,e)),this._$AV.push(t),s=r[++a]}i!==s?.index&&(n=X.nextNode(),i++)}return X.currentNode=D,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t){void 0===t&&(t=this),e=K(this,e,t),M(e)?e===H||null==e||""===e?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==W&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>T(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==H&&M(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=J.createElement(U(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new Z(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=Y.get(e.strings);return void 0===t&&Y.set(e.strings,t=new J(e)),t}k(e){T(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const n of e)o===t.length?t.push(r=new Q(this.O(P()),this.O(P()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e,t){for(void 0===e&&(e=this._$AA.nextSibling),this._$AP?.(!1,!0,t);e!==this._$AB;){const t=$(e).nextSibling;$(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class G{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=H}_$AI(e,t,r,o){void 0===t&&(t=this);const n=this.strings;let i=!1;if(void 0===n)e=K(this,e,t,0),i=!M(e)||e!==this._$AH&&e!==W,i&&(this._$AH=e);else{const o=e;let a,s;for(e=n[0],a=0;a<n.length-1;a++)s=K(this,o[r+a],t,a),s===W&&(s=this._$AH[a]),i||=!M(s)||s!==this._$AH[a],s===H?e=H:e!==H&&(e+=(s??"")+n[a+1]),this._$AH[a]=s}i&&!o&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ee extends G{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}}class te extends G{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}}class re extends G{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t){if(void 0===t&&(t=this),(e=K(this,e,t,0)??H)===W)return;const r=this._$AH,o=e===H&&r!==H||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==H&&(r===H||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class oe{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){K(this,e)}}const ne={I:Q},ie=_.litHtmlPolyfillSupport;ie?.(J,Q),(_.litHtmlVersions??=[]).push("3.3.3");const ae=globalThis;
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/let
|
|
22
|
+
*/let se=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=r?.renderBefore??null;o._$litPart$=n=new Q(t.insertBefore(P(),e),e,void 0,r??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return W}};se._$litElement$=!0,se.finalized=!0,ae.litElementHydrateSupport?.({LitElement:se});const le=ae.litElementPolyfillSupport;le?.({LitElement:se}),(ae.litElementVersions??=[]).push("4.2.2");
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
27
|
*/
|
|
28
|
-
const
|
|
28
|
+
const de={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:y},ce=(e,t,r)=>{void 0===e&&(e=de);const{kind:o,metadata:n}=r;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e,!0,r)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=r;return function(r){const n=this[o];t.call(this,r),this.requestUpdate(o,n,e,!0,r)}}throw Error("Unsupported decorator location: "+o)};function he(e){return(t,r)=>"object"==typeof r?ce(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/function
|
|
33
|
+
*/function ue(e){return he({...e,state:!0,attribute:!1})}
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/const
|
|
38
|
+
*/const pe=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r);
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/function
|
|
43
|
+
*/function be(e,t){return(r,o,n)=>{const i=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?r:n??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return pe(r,o,{get(){let r=e.call(this);return void 0===r&&(r=i(this),(null!==r||this.hasUpdated)&&t.call(this,r)),r}})}return pe(r,o,{get(){return i(this)}})}}
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
|
-
*/const
|
|
48
|
+
*/const ge=1,me=2,ve=3,fe=4,we=e=>function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return{_$litDirective$:e,values:r}};let ye=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2018 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/const
|
|
53
|
+
*/const xe=we(class extends ye{constructor(e){if(super(e),e.type!==ge||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,t){let[r]=t;if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in r)r[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(r)}const o=e.element.classList;for(const e of this.st)e in r||(o.remove(e),this.st.delete(e));for(const e in r){const t=!!r[e];t===this.st.has(e)||this.nt?.has(e)||(t?(o.add(e),this.st.add(e)):(o.remove(e),this.st.delete(e)))}return W}}),ke=a`:host{display:inline-block}.w-icon{--_w-icon-size:var(--w-icon-size,24px);height:var(--_w-icon-size);width:var(--_w-icon-size);display:flex}.w-icon svg{pointer-events:none;height:var(--_w-icon-size);width:var(--_w-icon-size)}.w-icon--s{--w-icon-size:16px}.w-icon--m{--w-icon-size:24px}.w-icon--l{--w-icon-size:32px}`;var _e=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const $e=new Map;class Se extends se{constructor(){super(...arguments),this.locale=document.documentElement.lang||"en",this.svg=null}static#e=this.styles=[ke];async fetchIcon(e){const t=`https://assets.finn.no/pkg/eikons/v1/${this.locale}/${e}.svg`;try{const e=await function(e,t){void 0===t&&(t={});const r=t.responseParser??(e=>e.text());return $e.has(e)||$e.set(e,fetch(e).then(r)),$e.get(e)}(t);return(new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}catch{return null}}firstUpdated(){this.loadIcon()}updated(e){(e.has("name")||e.has("locale"))&&this.loadIcon()}async loadIcon(){if(!this.name)return void(this.svg=null);let e=await this.fetchIcon(this.name);if(!e){e=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',"text/html").body.firstElementChild}this.svg=e}render(){const e=this.size||"medium",t=this.name||"",r={"w-icon":!0,"w-icon--s":"small"===e,"w-icon--m":"medium"===e,"w-icon--l":"large"===e},o="string"==typeof e&&e.endsWith("px")?`--w-icon-size: ${e};`:"";return B`<div class="${xe(r)}" style="${o}" part="w-${t.toLowerCase()}">${this.svg}</div>`}}_e([he({type:String,reflect:!0})],Se.prototype,"name",void 0),_e([he({type:String,reflect:!0})],Se.prototype,"size",void 0),_e([he({type:String,reflect:!0,useDefault:!0})],Se.prototype,"locale",void 0),_e([ue()],Se.prototype,"svg",void 0);const Ee=Se;customElements.get("w-icon")||customElements.define("w-icon",Se);var Ce=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(e,t){return e.concat("string"==typeof t?t:Array.isArray(t)?Ce.apply(void 0,t):"object"==typeof t&&t?Object.keys(t).map(function(e){return t[e]?e:""}):"")},[]).join(" ")},Oe=function(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)},ze=function(e,t,r,o,n){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?n.call(e,r):n?n.value=r:t.set(e,r),r};function Ae(e){var t,r,o,n,i,a,s,l,d,c,h,u,p,b,g,m,v,f;return r=new WeakMap,o=new WeakMap,n=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap,h=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,t=new WeakSet,g=function(){if(this.hasAttribute("disabled"))return!1;const e=Oe(this,o,"f")||Oe(this,n,"f")&&!this.validity.valid&&!Oe(this,r,"f");return e&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),e},m=function(e){const r=this.constructor,o={},n=r.validators,s=[],l=n.some(e=>e.isValid instanceof Promise);Oe(this,p,"f")||(ze(this,b,new Promise(e=>{ze(this,u,e,"f")}),"f"),ze(this,p,!0,"f")),Oe(this,i,"f")&&(Oe(this,i,"f").abort(),ze(this,a,Oe(this,i,"f"),"f"));const d=new AbortController;let c;ze(this,i,d,"f");let h=!1;n.length&&(n.forEach(r=>{const n=r.key||"customError",i=r.isValid(this,e,d.signal);i instanceof Promise?(s.push(i),i.then(i=>{null!=i&&(o[n]=!i,c=Oe(this,t,"m",f).call(this,r,e),Oe(this,t,"m",v).call(this,o,c))})):(o[n]=!i,this.validity[n]!==!i&&(h=!0),i||c||(c=Oe(this,t,"m",f).call(this,r,e)))}),Promise.allSettled(s).then(()=>{var e;(null==d?void 0:d.signal.aborted)||(ze(this,p,!1,"f"),null===(e=Oe(this,u,"f"))||void 0===e||e.call(this))}),!h&&l||Oe(this,t,"m",v).call(this,o,c))},v=function(e,t){if(this.validationTarget)this.internals.setValidity(e,t,this.validationTarget),ze(this,s,!1,"f");else{if(this.internals.setValidity(e,t),this.internals.validity.valid)return;ze(this,s,!0,"f")}},f=function(e,t){if(this.validityCallback){const t=this.validityCallback(e.key||"customError");if(t)return t}return e.message instanceof Function?e.message(this,t):e.message},class extends e{constructor(...e){var v,f,w;super(...e),t.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),n.set(this,!1),i.set(this,void 0),a.set(this,void 0),s.set(this,!0),l.set(this,""),d.set(this,()=>{ze(this,n,!0,"f"),ze(this,r,!0,"f"),Oe(this,t,"m",g).call(this)}),c.set(this,()=>{ze(this,r,!1,"f"),Oe(this,t,"m",m).call(this,this.shouldFormValueUpdate()?Oe(this,l,"f"):""),!this.validity.valid&&Oe(this,n,"f")&&ze(this,o,!0,"f");const e=Oe(this,t,"m",g).call(this);this.validationMessageCallback&&this.validationMessageCallback(e?this.internals.validationMessage:"")}),h.set(this,()=>{var e;Oe(this,s,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),ze(this,s,!1,"f")),ze(this,n,!0,"f"),ze(this,o,!0,"f"),Oe(this,t,"m",g).call(this),null===(e=null==this?void 0:this.validationMessageCallback)||void 0===e||e.call(this,this.showError?this.internals.validationMessage:"")}),u.set(this,void 0),p.set(this,!1),b.set(this,Promise.resolve()),null===(v=this.addEventListener)||void 0===v||v.call(this,"focus",Oe(this,d,"f")),null===(f=this.addEventListener)||void 0===f||f.call(this,"blur",Oe(this,c,"f")),null===(w=this.addEventListener)||void 0===w||w.call(this,"invalid",Oe(this,h,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){const e=this.validators.map(e=>e.attribute).flat(),t=super.observedAttributes||[];return[...new Set([...t,...e])]}static getValidator(e){return this.validators.find(t=>t.attribute===e)||null}static getValidators(e){return this.validators.filter(t=>{var r;if(t.attribute===e||(null===(r=t.attribute)||void 0===r?void 0:r.includes(e)))return!0})}get form(){return this.internals.form}get showError(){return Oe(this,t,"m",g).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(e,t,r){var o;null===(o=super.attributeChangedCallback)||void 0===o||o.call(this,e,t,r);const n=this.constructor.getValidators(e);(null==n?void 0:n.length)&&this.validationTarget&&this.setValue(Oe(this,l,"f"))}setValue(e){var r;ze(this,o,!1,"f"),null===(r=this.validationMessageCallback)||void 0===r||r.call(this,""),ze(this,l,e,"f");const n=this.shouldFormValueUpdate()?e:null;this.internals.setFormValue(n),Oe(this,t,"m",m).call(this,n),this.valueChangedCallback&&this.valueChangedCallback(n),Oe(this,t,"m",g).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(e=>e(Oe(this,b,"f")))}formResetCallback(){var e,r;ze(this,n,!1,"f"),ze(this,o,!1,"f"),Oe(this,t,"m",g).call(this),null===(e=this.resetFormControl)||void 0===e||e.call(this),null===(r=this.validationMessageCallback)||void 0===r||r.call(this,Oe(this,t,"m",g).call(this)?this.validationMessage:"")}}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2018 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/const Ae=e=>e??B,De=a`
|
|
59
|
-
*,
|
|
60
|
-
:before,
|
|
61
|
-
:after {
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
border-style: solid;
|
|
64
|
-
border-width: 0;
|
|
65
|
-
border-color: var(--w-s-color-border);
|
|
66
|
-
}
|
|
67
|
-
html {
|
|
68
|
-
font-size: 62.5%;
|
|
69
|
-
}
|
|
70
|
-
body {
|
|
71
|
-
background-color: var(--w-s-color-background);
|
|
72
|
-
min-height: 100%;
|
|
73
|
-
margin: 0;
|
|
74
|
-
overflow-y: scroll;
|
|
75
|
-
}
|
|
76
|
-
body,
|
|
77
|
-
:host {
|
|
78
|
-
-webkit-text-size-adjust: 100%;
|
|
79
|
-
tab-size: 4;
|
|
80
|
-
-webkit-tap-highlight-color: transparent;
|
|
81
|
-
font-family: var(--w-font-family);
|
|
82
|
-
font-size: var(--w-font-size-m);
|
|
83
|
-
line-height: var(--w-line-height-m);
|
|
84
|
-
color: var(--w-s-color-text);
|
|
85
|
-
}
|
|
86
|
-
hr {
|
|
87
|
-
color: inherit;
|
|
88
|
-
border-top-width: 1px;
|
|
89
|
-
height: 0;
|
|
90
|
-
}
|
|
91
|
-
abbr:where([title]) {
|
|
92
|
-
-webkit-text-decoration: underline dotted;
|
|
93
|
-
text-decoration: underline dotted;
|
|
94
|
-
}
|
|
95
|
-
h1,
|
|
96
|
-
h2,
|
|
97
|
-
h3,
|
|
98
|
-
h4,
|
|
99
|
-
h5,
|
|
100
|
-
h6 {
|
|
101
|
-
font-size: inherit;
|
|
102
|
-
font-weight: 700;
|
|
103
|
-
}
|
|
104
|
-
a {
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
color: var(--w-s-color-text-link);
|
|
107
|
-
text-decoration: none;
|
|
108
|
-
}
|
|
109
|
-
a:hover,
|
|
110
|
-
a:focus,
|
|
111
|
-
a:active {
|
|
112
|
-
text-decoration: underline;
|
|
113
|
-
}
|
|
114
|
-
a:focus-visible {
|
|
115
|
-
outline: 2px solid var(--w-s-color-border-focus);
|
|
116
|
-
outline-offset: 1px;
|
|
117
|
-
}
|
|
118
|
-
b,
|
|
119
|
-
strong {
|
|
120
|
-
font-weight: 700;
|
|
121
|
-
}
|
|
122
|
-
code,
|
|
123
|
-
kbd,
|
|
124
|
-
samp,
|
|
125
|
-
pre {
|
|
126
|
-
font-family:
|
|
127
|
-
ui-monospace,
|
|
128
|
-
SFMono-Regular,
|
|
129
|
-
Menlo,
|
|
130
|
-
Monaco,
|
|
131
|
-
Consolas,
|
|
132
|
-
Liberation Mono,
|
|
133
|
-
Courier New,
|
|
134
|
-
monospace;
|
|
135
|
-
font-size: 1em;
|
|
136
|
-
}
|
|
137
|
-
sub,
|
|
138
|
-
sup {
|
|
139
|
-
vertical-align: baseline;
|
|
140
|
-
font-size: 75%;
|
|
141
|
-
line-height: 0;
|
|
142
|
-
position: relative;
|
|
143
|
-
}
|
|
144
|
-
sub {
|
|
145
|
-
bottom: -0.25em;
|
|
146
|
-
}
|
|
147
|
-
sup {
|
|
148
|
-
top: -0.5em;
|
|
149
|
-
}
|
|
150
|
-
table {
|
|
151
|
-
text-indent: 0;
|
|
152
|
-
border-color: inherit;
|
|
153
|
-
border-collapse: collapse;
|
|
154
|
-
}
|
|
155
|
-
button,
|
|
156
|
-
input,
|
|
157
|
-
optgroup,
|
|
158
|
-
select,
|
|
159
|
-
textarea {
|
|
160
|
-
font-family: inherit;
|
|
161
|
-
font-size: 100%;
|
|
162
|
-
font-weight: inherit;
|
|
163
|
-
line-height: inherit;
|
|
164
|
-
color: inherit;
|
|
165
|
-
margin: 0;
|
|
166
|
-
padding: 0;
|
|
167
|
-
}
|
|
168
|
-
button,
|
|
169
|
-
select {
|
|
170
|
-
text-transform: none;
|
|
171
|
-
}
|
|
172
|
-
button,
|
|
173
|
-
[type='button'],
|
|
174
|
-
[type='reset'],
|
|
175
|
-
[type='submit'] {
|
|
176
|
-
-webkit-appearance: button;
|
|
177
|
-
}
|
|
178
|
-
:-moz-focusring {
|
|
179
|
-
outline: auto;
|
|
180
|
-
}
|
|
181
|
-
:-moz-ui-invalid {
|
|
182
|
-
box-shadow: none;
|
|
183
|
-
}
|
|
184
|
-
progress {
|
|
185
|
-
vertical-align: baseline;
|
|
186
|
-
}
|
|
187
|
-
::-webkit-inner-spin-button {
|
|
188
|
-
height: auto;
|
|
189
|
-
}
|
|
190
|
-
::-webkit-outer-spin-button {
|
|
191
|
-
height: auto;
|
|
192
|
-
}
|
|
193
|
-
[type='search'] {
|
|
194
|
-
-webkit-appearance: textfield;
|
|
195
|
-
outline-offset: -2px;
|
|
196
|
-
}
|
|
197
|
-
::-webkit-search-decoration {
|
|
198
|
-
-webkit-appearance: none;
|
|
199
|
-
}
|
|
200
|
-
::-webkit-file-upload-button {
|
|
201
|
-
-webkit-appearance: button;
|
|
202
|
-
font: inherit;
|
|
203
|
-
}
|
|
204
|
-
summary {
|
|
205
|
-
display: list-item;
|
|
206
|
-
}
|
|
207
|
-
blockquote,
|
|
208
|
-
dl,
|
|
209
|
-
dd,
|
|
210
|
-
h1,
|
|
211
|
-
h2,
|
|
212
|
-
h3,
|
|
213
|
-
h4,
|
|
214
|
-
h5,
|
|
215
|
-
h6,
|
|
216
|
-
hr,
|
|
217
|
-
figure,
|
|
218
|
-
p,
|
|
219
|
-
pre {
|
|
220
|
-
margin: 0;
|
|
221
|
-
}
|
|
222
|
-
fieldset {
|
|
223
|
-
margin: 0;
|
|
224
|
-
padding: 0;
|
|
225
|
-
}
|
|
226
|
-
legend {
|
|
227
|
-
padding: 0;
|
|
228
|
-
}
|
|
229
|
-
ol,
|
|
230
|
-
ul,
|
|
231
|
-
menu {
|
|
232
|
-
margin: 0;
|
|
233
|
-
padding: 0;
|
|
234
|
-
list-style: none;
|
|
235
|
-
}
|
|
236
|
-
textarea {
|
|
237
|
-
resize: vertical;
|
|
238
|
-
}
|
|
239
|
-
input::placeholder,
|
|
240
|
-
textarea::placeholder {
|
|
241
|
-
opacity: 1;
|
|
242
|
-
color: var(--w-s-color-text-placeholder);
|
|
243
|
-
}
|
|
244
|
-
button,
|
|
245
|
-
[role='button'] {
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
}
|
|
248
|
-
:disabled {
|
|
249
|
-
cursor: default;
|
|
250
|
-
}
|
|
251
|
-
img,
|
|
252
|
-
svg,
|
|
253
|
-
video,
|
|
254
|
-
canvas,
|
|
255
|
-
audio,
|
|
256
|
-
iframe,
|
|
257
|
-
embed,
|
|
258
|
-
object {
|
|
259
|
-
vertical-align: middle;
|
|
260
|
-
display: block;
|
|
261
|
-
}
|
|
262
|
-
img,
|
|
263
|
-
video {
|
|
264
|
-
max-width: 100%;
|
|
265
|
-
height: auto;
|
|
266
|
-
}
|
|
267
|
-
h1 {
|
|
268
|
-
font-size: var(--w-font-size-xxl);
|
|
269
|
-
line-height: var(--w-line-height-xxl);
|
|
270
|
-
}
|
|
271
|
-
h2 {
|
|
272
|
-
font-size: var(--w-font-size-xl);
|
|
273
|
-
line-height: var(--w-line-height-xl);
|
|
274
|
-
}
|
|
275
|
-
h3 {
|
|
276
|
-
font-size: var(--w-font-size-l);
|
|
277
|
-
line-height: var(--w-line-height-l);
|
|
278
|
-
}
|
|
279
|
-
h4 {
|
|
280
|
-
font-size: var(--w-font-size-m);
|
|
281
|
-
line-height: var(--w-line-height-m);
|
|
282
|
-
}
|
|
283
|
-
h5 {
|
|
284
|
-
font-size: var(--w-font-size-s);
|
|
285
|
-
line-height: var(--w-line-height-s);
|
|
286
|
-
}
|
|
287
|
-
dt,
|
|
288
|
-
dd {
|
|
289
|
-
margin: 0 16px;
|
|
290
|
-
}
|
|
291
|
-
h1,
|
|
292
|
-
h2,
|
|
293
|
-
h3,
|
|
294
|
-
h4,
|
|
295
|
-
h5,
|
|
296
|
-
ul,
|
|
297
|
-
ol,
|
|
298
|
-
dl,
|
|
299
|
-
p,
|
|
300
|
-
blockquote {
|
|
301
|
-
margin: 0 0 8px;
|
|
302
|
-
}
|
|
303
|
-
[hidden] {
|
|
304
|
-
display: none !important;
|
|
305
|
-
}
|
|
306
|
-
[tabindex='-1']:focus:not(:focus-visible) {
|
|
307
|
-
outline: none;
|
|
308
|
-
}
|
|
309
|
-
legend {
|
|
310
|
-
float: left;
|
|
311
|
-
width: 100%;
|
|
312
|
-
margin: 0;
|
|
313
|
-
padding: 0;
|
|
314
|
-
display: table;
|
|
315
|
-
}
|
|
316
|
-
legend + * {
|
|
317
|
-
clear: both;
|
|
318
|
-
}
|
|
319
|
-
fieldset {
|
|
320
|
-
border: 0;
|
|
321
|
-
min-width: 0;
|
|
322
|
-
margin: 0;
|
|
323
|
-
padding: 0.01em 0 0;
|
|
324
|
-
}
|
|
325
|
-
body:not(:-moz-handler-blocked) fieldset {
|
|
326
|
-
display: table-cell;
|
|
327
|
-
}
|
|
328
|
-
svg {
|
|
329
|
-
pointer-events: none;
|
|
330
|
-
}
|
|
331
|
-
`;a`*, :before, :after {
|
|
332
|
-
--w-rotate: 0;
|
|
333
|
-
--w-rotate-x: 0;
|
|
334
|
-
--w-rotate-y: 0;
|
|
335
|
-
--w-rotate-z: 0;
|
|
336
|
-
--w-scale-x: 1;
|
|
337
|
-
--w-scale-y: 1;
|
|
338
|
-
--w-scale-z: 1;
|
|
339
|
-
--w-skew-x: 0;
|
|
340
|
-
--w-skew-y: 0;
|
|
341
|
-
--w-translate-x: 0;
|
|
342
|
-
--w-translate-y: 0;
|
|
343
|
-
--w-translate-z: 0
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.h4, .t4 {
|
|
347
|
-
font-weight: 700;
|
|
348
|
-
font-size: var(--w-font-size-m);
|
|
349
|
-
line-height: var(--w-line-height-m)
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.t3 {
|
|
353
|
-
font-weight: 700;
|
|
354
|
-
font-size: var(--w-font-size-l);
|
|
355
|
-
line-height: var(--w-line-height-l)
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
@media (min-width: 480px) {
|
|
359
|
-
.sm\\:h3 {
|
|
360
|
-
font-weight: 700;
|
|
361
|
-
font-size: var(--w-font-size-l);
|
|
362
|
-
line-height: var(--w-line-height-l)
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.text-center {
|
|
367
|
-
text-align: center
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.before\\:text-center:before {
|
|
371
|
-
text-align: center
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.text-left {
|
|
375
|
-
text-align: left
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.text-right {
|
|
379
|
-
text-align: right
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.align-middle {
|
|
383
|
-
vertical-align: middle
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.animate-inprogress {
|
|
387
|
-
background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
|
|
388
|
-
background-size: 30px 30px;
|
|
389
|
-
animation: animate-inprogress 3s linear infinite
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
@keyframes animate-inprogress {
|
|
393
|
-
0% {
|
|
394
|
-
background-position: 0 0
|
|
395
|
-
}
|
|
396
|
-
to {
|
|
397
|
-
background-position: 60px 0
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.\\[--w-modal-max-height\\:80\\%\\] {
|
|
402
|
-
--w-modal-max-height: 80%
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.\\[--w-modal-width\\:640px\\] {
|
|
406
|
-
--w-modal-width: 640px
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
.focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
|
|
410
|
-
--w-outline-offset: -2px
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.backdrop-blur {
|
|
414
|
-
-webkit-backdrop-filter: blur(4px);
|
|
415
|
-
backdrop-filter: blur(4px)
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.peer:checked ~ .peer-checked\\:before\\:bg-center:before {
|
|
419
|
-
background-position: center
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.hover\\:bg-clip-padding:hover {
|
|
423
|
-
-webkit-background-clip: padding-box;
|
|
424
|
-
background-clip: padding-box
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
|
|
428
|
-
background-color: transparent
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.bg-\\[--w-black\\/25\\] {
|
|
432
|
-
background-color: rgba(var(--w-rgb-black), .25)
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
|
|
436
|
-
background-color: rgba(var(--w-rgb-black), .7)
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.bg-\\[--w-color-badge-info-background\\] {
|
|
440
|
-
background-color: var(--w-color-badge-info-background)
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.bg-\\[--w-color-badge-negative-background\\] {
|
|
444
|
-
background-color: var(--w-color-badge-negative-background)
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.bg-\\[--w-color-badge-neutral-background\\] {
|
|
448
|
-
background-color: var(--w-color-badge-neutral-background)
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.bg-\\[--w-color-badge-positive-background\\] {
|
|
452
|
-
background-color: var(--w-color-badge-positive-background)
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
.bg-\\[--w-color-badge-sponsored-background\\] {
|
|
456
|
-
background-color: var(--w-color-badge-sponsored-background)
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.bg-\\[--w-color-badge-warning-background\\] {
|
|
460
|
-
background-color: var(--w-color-badge-warning-background)
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.bg-\\[--w-color-button-primary-background\\] {
|
|
464
|
-
background-color: var(--w-color-button-primary-background)
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.bg-\\[--w-color-buttongroup-utility-background-selected\\] {
|
|
468
|
-
background-color: var(--w-color-buttongroup-utility-background-selected)
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.bg-\\[--w-color-callout-background\\] {
|
|
472
|
-
background-color: var(--w-color-callout-background)
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.bg-\\[--w-color-pill-suggestion-background\\] {
|
|
476
|
-
background-color: var(--w-color-pill-suggestion-background)
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.bg-\\[--w-color-switch-track-background\\] {
|
|
480
|
-
background-color: var(--w-color-switch-track-background)
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.bg-\\[--w-s-color-surface-elevated-100\\] {
|
|
484
|
-
background-color: var(--w-s-color-surface-elevated-100)
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.bg-\\[--w-s-color-surface-elevated-300\\] {
|
|
488
|
-
background-color: var(--w-s-color-surface-elevated-300)
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.bg-\\[--w-s-icon-selected\\] {
|
|
492
|
-
background-color: var(--w-s-icon-selected)
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
|
|
496
|
-
background-color: var(--w-color-switch-track-background-hover)
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
|
|
500
|
-
background-color: var(--w-color-button-pill-background-hover)
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
|
|
504
|
-
background-color: var(--w-color-button-primary-background-hover)
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
|
|
508
|
-
background-color: var(--w-color-buttongroup-utility-background-hover)
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
|
|
512
|
-
background-color: var(--w-color-pill-suggestion-background-hover)
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
|
|
516
|
-
background-color: var(--w-s-icon-subtle)
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
.hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
|
|
520
|
-
background-color: rgba(var(--w-rgb-black), .85)
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
|
|
524
|
-
background-color: var(--w-color-button-pill-background-active)
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
.active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
|
|
528
|
-
background-color: var(--w-color-button-primary-background-active)
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
|
|
532
|
-
background-color: var(--w-color-buttongroup-utility-background-selected)
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
.active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
|
|
536
|
-
background-color: var(--w-color-pill-suggestion-background-active)
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
.active\\:bg-\\[var\\(--w-black\\)\\]:active {
|
|
540
|
-
background-color: var(--w-black)
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
|
|
544
|
-
background-image: var(--w-icon-toggle-checked)
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
.appearance-none {
|
|
548
|
-
-moz-appearance: none;
|
|
549
|
-
appearance: none;
|
|
550
|
-
-webkit-appearance: none
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.will-change-height {
|
|
554
|
-
will-change: height
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.border, .border-1 {
|
|
558
|
-
border-width: 1px
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.border-b {
|
|
562
|
-
border-bottom-width: 1px
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.before\\:border:before {
|
|
566
|
-
border-width: 1px
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.border-0 {
|
|
570
|
-
border-width: 0
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.border-2 {
|
|
574
|
-
border-width: 2px
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.border-b-0 {
|
|
578
|
-
border-bottom-width: 0
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
.border-b-4 {
|
|
582
|
-
border-bottom-width: 4px
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.border-l-4 {
|
|
586
|
-
border-left-width: 4px
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
.border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
|
|
590
|
-
border-right-width: 0
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
.peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
|
|
594
|
-
border-width: .6rem
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
.border-transparent {
|
|
598
|
-
border-color: transparent
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.border-\\[--w-color-buttongroup-utility-border\\] {
|
|
602
|
-
border-color: var(--w-color-buttongroup-utility-border)
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
.border-\\[--w-color-callout-border\\] {
|
|
606
|
-
border-color: var(--w-color-callout-border)
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
.border-\\[--w-s-color-background-inverted\\] {
|
|
610
|
-
border-color: var(--w-s-color-background-inverted)
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
.border-\\[--w-s-color-surface-elevated-300\\] {
|
|
614
|
-
border-color: var(--w-s-color-surface-elevated-300)
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
|
|
618
|
-
border-color: var(--w-color-buttongroup-utility-border-selected)
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.divide-x > * + * {
|
|
622
|
-
--w-divide-x-reverse: 0;
|
|
623
|
-
border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
|
|
624
|
-
border-right-width: calc(1px * var(--w-divide-x-reverse))
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
.divide-y > * + * {
|
|
628
|
-
--w-divide-y-reverse: 0;
|
|
629
|
-
border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
|
|
630
|
-
border-bottom-width: calc(1px * var(--w-divide-y-reverse))
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.rounded-4 {
|
|
634
|
-
border-radius: 4px
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
.rounded-8 {
|
|
638
|
-
border-radius: 8px
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
.rounded-full {
|
|
642
|
-
border-radius: 9999px
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.before\\:rounded-2:before {
|
|
646
|
-
border-radius: 2px
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
.before\\:rounded-full:before {
|
|
650
|
-
border-radius: 9999px
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
.rounded-b-0 {
|
|
654
|
-
border-bottom-left-radius: 0;
|
|
655
|
-
border-bottom-right-radius: 0
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
.rounded-bl-0 {
|
|
659
|
-
border-bottom-left-radius: 0
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
.rounded-br-0 {
|
|
663
|
-
border-bottom-right-radius: 0
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
.rounded-l-0 {
|
|
667
|
-
border-top-left-radius: 0;
|
|
668
|
-
border-bottom-left-radius: 0
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
.rounded-l-full {
|
|
672
|
-
border-top-left-radius: 9999px;
|
|
673
|
-
border-bottom-left-radius: 9999px
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
.rounded-r-0 {
|
|
677
|
-
border-top-right-radius: 0;
|
|
678
|
-
border-bottom-right-radius: 0
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.rounded-r-full {
|
|
682
|
-
border-top-right-radius: 9999px;
|
|
683
|
-
border-bottom-right-radius: 9999px
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
.rounded-tl-0 {
|
|
687
|
-
border-top-left-radius: 0
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
.rounded-tl-4 {
|
|
691
|
-
border-top-left-radius: 4px
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
.rounded-tr-0 {
|
|
695
|
-
border-top-right-radius: 0
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
.group:first-of-type .group-first-of-type\\:rounded-bl-8 {
|
|
699
|
-
border-bottom-left-radius: 8px
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
.group:first-of-type .group-first-of-type\\:rounded-tl-8 {
|
|
703
|
-
border-top-left-radius: 8px
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
.first\\:rounded-lb-4:first-child {
|
|
707
|
-
border-bottom-left-radius: 4px
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
.first\\:rounded-lt-4:first-child {
|
|
711
|
-
border-top-left-radius: 4px
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.first\\:rounded-rt-4:first-child {
|
|
715
|
-
border-top-right-radius: 4px
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
.group:last-of-type .group-last-of-type\\:rounded-br-8 {
|
|
719
|
-
border-bottom-right-radius: 8px
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
.group:last-of-type .group-last-of-type\\:rounded-tr-8 {
|
|
723
|
-
border-top-right-radius: 8px
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
.last\\:rounded-lb-4:last-child {
|
|
727
|
-
border-bottom-left-radius: 4px
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
.last\\:rounded-rb-4:last-child {
|
|
731
|
-
border-bottom-right-radius: 4px
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
.last\\:rounded-rt-4:last-child {
|
|
735
|
-
border-top-right-radius: 4px
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
.caret-current {
|
|
739
|
-
caret-color: currentColor
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
.opacity-25 {
|
|
743
|
-
opacity: 25%
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.block {
|
|
747
|
-
display: block
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
.before\\:block:before {
|
|
751
|
-
display: block
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
.inline-block {
|
|
755
|
-
display: inline-block
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.inline {
|
|
759
|
-
display: inline
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
.flex, .open\\:flex[open] {
|
|
763
|
-
display: flex
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
.inline-flex {
|
|
767
|
-
display: inline-flex
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
.grid {
|
|
771
|
-
display: grid
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
.inline-grid {
|
|
775
|
-
display: inline-grid
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
|
|
779
|
-
display: none
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.before\\:hidden:before {
|
|
783
|
-
display: none
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
.hover\\:underline:hover {
|
|
787
|
-
text-decoration-line: underline
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
.focus\\:underline:focus {
|
|
791
|
-
text-decoration-line: underline
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
.focus-visible\\:underline:focus-visible {
|
|
795
|
-
text-decoration-line: underline
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
.active\\:underline:active {
|
|
799
|
-
text-decoration-line: underline
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.hover\\:no-underline:hover {
|
|
803
|
-
text-decoration: none
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
.focus\\:no-underline:focus {
|
|
807
|
-
text-decoration: none
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
.active\\:no-underline:active {
|
|
811
|
-
text-decoration: none
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
.flex-1 {
|
|
815
|
-
flex: 1 1 0%
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.shrink {
|
|
819
|
-
flex-shrink: 1
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
.shrink-0 {
|
|
823
|
-
flex-shrink: 0
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.shrink-0\\! {
|
|
827
|
-
flex-shrink: 0 !important
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
.grow, .grow-1 {
|
|
831
|
-
flex-grow: 1
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
.basis-auto {
|
|
835
|
-
flex-basis: auto
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
.flex-col {
|
|
839
|
-
flex-direction: column
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
.focus-within\\:focusable:focus-within {
|
|
843
|
-
outline: 2px solid var(--w-s-color-border-focus);
|
|
844
|
-
outline-offset: var(--w-outline-offset, 1px)
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
.focusable:focus, .focusable:focus-visible {
|
|
848
|
-
outline: 2px solid var(--w-s-color-border-focus);
|
|
849
|
-
outline-offset: var(--w-outline-offset, 1px)
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
.focusable:not(:focus-visible) {
|
|
853
|
-
outline: none
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
.peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
|
|
857
|
-
outline: 2px solid var(--w-s-color-border-focus);
|
|
858
|
-
outline-offset: var(--w-outline-offset, 1px)
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
.peer:not(:focus-visible) ~ .peer-focus\\:focusable {
|
|
862
|
-
outline: none
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
.focusable-inset {
|
|
866
|
-
--w-outline-offset: -3px
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
.gap-12 {
|
|
870
|
-
gap: 1.2rem
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
.gap-8 {
|
|
874
|
-
gap: .8rem
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
.gap-x-16 {
|
|
878
|
-
column-gap: 1.6rem
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
.gap-y-16 {
|
|
882
|
-
row-gap: 1.6rem
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
.row-span-2 {
|
|
886
|
-
grid-row: span 2/span 2
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
.col-span-2 {
|
|
890
|
-
grid-column: span 2/span 2
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
.col-span-3 {
|
|
894
|
-
grid-column: span 3/span 3
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
.row-start-1 {
|
|
898
|
-
grid-row-start: 1
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
.row-start-2 {
|
|
902
|
-
grid-row-start: 2
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
.col-start-2 {
|
|
906
|
-
grid-column-start: 2
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
.auto-rows-auto {
|
|
910
|
-
grid-auto-rows: auto
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
.grid-flow-col {
|
|
914
|
-
grid-auto-flow: column
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
.grid-rows-\\[20px_auto\\] {
|
|
918
|
-
grid-template-rows:20px auto
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
.grid-rows-\\[auto_20px\\] {
|
|
922
|
-
grid-template-rows:auto 20px
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.grid-cols-\\[1fr_20px_1fr\\] {
|
|
926
|
-
grid-template-columns:1fr 20px 1fr
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
.grid-cols-\\[1fr_20px\\] {
|
|
930
|
-
grid-template-columns:1fr 20px
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
.grid-cols-\\[20px_1fr\\] {
|
|
934
|
-
grid-template-columns:20px 1fr
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
.grid-cols-\\[auto_1fr_auto\\] {
|
|
938
|
-
grid-template-columns:auto 1fr auto
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
.grid-cols-1 {
|
|
942
|
-
grid-template-columns:repeat(1, minmax(0, 1fr))
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
.grid-cols-2 {
|
|
946
|
-
grid-template-columns:repeat(2, minmax(0, 1fr))
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
.grid-cols-3 {
|
|
950
|
-
grid-template-columns:repeat(3, minmax(0, 1fr))
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
.grid-cols-4 {
|
|
954
|
-
grid-template-columns:repeat(4, minmax(0, 1fr))
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
.grid-cols-5 {
|
|
958
|
-
grid-template-columns:repeat(5, minmax(0, 1fr))
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
.grid-cols-6 {
|
|
962
|
-
grid-template-columns:repeat(6, minmax(0, 1fr))
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
.grid-cols-7 {
|
|
966
|
-
grid-template-columns:repeat(7, minmax(0, 1fr))
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
.grid-cols-8 {
|
|
970
|
-
grid-template-columns:repeat(8, minmax(0, 1fr))
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
.grid-cols-9 {
|
|
974
|
-
grid-template-columns:repeat(9, minmax(0, 1fr))
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
.overflow-hidden {
|
|
978
|
-
overflow: hidden
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
.overflow-x-hidden {
|
|
982
|
-
overflow-x: hidden
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
.overflow-y-auto {
|
|
986
|
-
overflow-y: auto
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
.list-none {
|
|
990
|
-
list-style-type: none
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
.outline-\\[--w-s-color-border-negative\\]\\! {
|
|
994
|
-
outline-color: var(--w-s-color-border-negative) !important
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
.outline-none {
|
|
998
|
-
outline: 2px solid transparent;
|
|
999
|
-
outline-offset: 2px
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
.focus\\:outline-none:focus {
|
|
1003
|
-
outline: 2px solid transparent;
|
|
1004
|
-
outline-offset: 2px
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
.items-start {
|
|
1008
|
-
align-items: flex-start
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
.items-end {
|
|
1012
|
-
align-items: flex-end
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
.items-center {
|
|
1016
|
-
align-items: center
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
.self-center {
|
|
1020
|
-
align-self: center
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
.inset-0 {
|
|
1024
|
-
top: 0rem;
|
|
1025
|
-
right: 0rem;
|
|
1026
|
-
bottom: 0rem;
|
|
1027
|
-
left: 0rem
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
.-bottom-0 {
|
|
1031
|
-
bottom: -0rem
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
.bottom-0 {
|
|
1035
|
-
bottom: 0rem
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
.bottom-10 {
|
|
1039
|
-
bottom: 1rem
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
.bottom-16 {
|
|
1043
|
-
bottom: 1.6rem
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
.left-0 {
|
|
1047
|
-
left: 0rem
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
.left-4 {
|
|
1051
|
-
left: .4rem
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
.right-0 {
|
|
1055
|
-
right: 0rem
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
.right-8 {
|
|
1059
|
-
right: .8rem
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
.top-\\[1\\.92rem\\] {
|
|
1063
|
-
top: 1.92rem
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
.top-0 {
|
|
1067
|
-
top: 0rem
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.top-20 {
|
|
1071
|
-
top: 2rem
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
.top-4 {
|
|
1075
|
-
top: .4rem
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
.top-8 {
|
|
1079
|
-
top: .8rem
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
.before\\:bottom-0:before {
|
|
1083
|
-
bottom: 0rem
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
.before\\:left-0:before {
|
|
1087
|
-
left: 0rem
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
.before\\:right-0:before {
|
|
1091
|
-
right: 0rem
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
.before\\:top-2:before {
|
|
1095
|
-
top: .2rem
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
.-bottom-\\[8px\\] {
|
|
1099
|
-
bottom: -8px
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
.-left-\\[8px\\] {
|
|
1103
|
-
left: -8px
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
.-right-\\[8px\\] {
|
|
1107
|
-
right: -8px
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
.-top-\\[8px\\] {
|
|
1111
|
-
top: -8px
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
.top-\\[19px\\] {
|
|
1115
|
-
top: 19px
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
.top-\\[30\\%\\] {
|
|
1119
|
-
top: 30%
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
.justify-end {
|
|
1123
|
-
justify-content: flex-end
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
.justify-center {
|
|
1127
|
-
justify-content: center
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
.justify-between {
|
|
1131
|
-
justify-content: space-between
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
.justify-items-center {
|
|
1135
|
-
justify-items: center
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
.justify-self-start {
|
|
1139
|
-
justify-self: start
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
.justify-self-end {
|
|
1143
|
-
justify-self: end
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
.justify-self-center {
|
|
1147
|
-
justify-self: center
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
.absolute {
|
|
1151
|
-
position: absolute
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
.fixed {
|
|
1155
|
-
position: fixed
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
.relative {
|
|
1159
|
-
position: relative
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
.open\\:fixed[open] {
|
|
1163
|
-
position: fixed
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
.before\\:absolute:before {
|
|
1167
|
-
position: absolute
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
.z-10, .peer:checked ~ .peer-checked\\:z-10 {
|
|
1171
|
-
z-index: 10
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
.z-30 {
|
|
1175
|
-
z-index: 30
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
.z-50 {
|
|
1179
|
-
z-index: 50
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
.hover\\:z-30:hover {
|
|
1183
|
-
z-index: 30
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
.\\!s-bg-selected {
|
|
1187
|
-
background-color: var(--w-s-color-background-selected) !important
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
.s-bg {
|
|
1191
|
-
background-color: var(--w-s-color-background)
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
.s-bg-disabled {
|
|
1195
|
-
background-color: var(--w-s-color-background-disabled)
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
.s-bg-disabled-subtle {
|
|
1199
|
-
background-color: var(--w-s-color-background-disabled-subtle)
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
.s-bg-info-subtle {
|
|
1203
|
-
background-color: var(--w-s-color-background-info-subtle)
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
.s-bg-inverted {
|
|
1207
|
-
background-color: var(--w-s-color-background-inverted)
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
.s-bg-negative {
|
|
1211
|
-
background-color: var(--w-s-color-background-negative)
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
.s-bg-negative-subtle {
|
|
1215
|
-
background-color: var(--w-s-color-background-negative-subtle)
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
.s-bg-positive-subtle {
|
|
1219
|
-
background-color: var(--w-s-color-background-positive-subtle)
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
.s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
|
|
1223
|
-
background-color: var(--w-s-color-background-primary)
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
.s-bg-selected {
|
|
1227
|
-
background-color: var(--w-s-color-background-selected)
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
.s-bg-subtle {
|
|
1231
|
-
background-color: var(--w-s-color-background-subtle)
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
.s-bg-warning-subtle {
|
|
1235
|
-
background-color: var(--w-s-color-background-warning-subtle)
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
|
|
1239
|
-
background-color: var(--w-s-color-background-negative-hover)
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
|
|
1243
|
-
background-color: var(--w-s-color-background-primary-hover)
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
.peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
|
|
1247
|
-
background-color: var(--w-s-color-background-disabled)
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
.peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
|
|
1251
|
-
background-color: var(--w-s-color-background-negative)
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
.peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
|
|
1255
|
-
background-color: var(--w-s-color-background-primary)
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
|
|
1259
|
-
background-color: var(--w-s-color-background-disabled)
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
|
|
1263
|
-
background-color: var(--w-s-color-background-negative)
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
|
|
1267
|
-
background-color: var(--w-s-color-background-primary)
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
|
|
1271
|
-
background-color: var(--w-s-color-background-negative-hover)
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
|
|
1275
|
-
background-color: var(--w-s-color-background-primary-hover)
|
|
1276
|
-
}
|
|
1277
|
-
|
|
1278
|
-
.\\!hover\\:s-bg-selected-hover:hover {
|
|
1279
|
-
background-color: var(--w-s-color-background-selected-hover) !important
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
.group:hover .group-hover\\:s-bg-primary-hover {
|
|
1283
|
-
background-color: var(--w-s-color-background-primary-hover)
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
.hover\\:before\\:s-bg-hover:hover:before {
|
|
1287
|
-
background-color: var(--w-s-color-background-hover)
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
.hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
|
|
1291
|
-
background-color: var(--w-s-color-background-negative-subtle-hover)
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
.hover\\:s-bg-hover:hover {
|
|
1295
|
-
background-color: var(--w-s-color-background-hover)
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
.hover\\:s-bg-negative-hover:hover {
|
|
1299
|
-
background-color: var(--w-s-color-background-negative-hover)
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
|
-
.hover\\:s-bg-negative-subtle-hover:hover {
|
|
1303
|
-
background-color: var(--w-s-color-background-negative-subtle-hover)
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
.hover\\:s-bg-primary-hover:hover {
|
|
1307
|
-
background-color: var(--w-s-color-background-primary-hover)
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
.hover\\:s-bg-selected-hover:hover {
|
|
1311
|
-
background-color: var(--w-s-color-background-selected-hover)
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
.peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
|
|
1315
|
-
background-color: var(--w-s-color-background-hover)
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
.peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
|
|
1319
|
-
background-color: var(--w-s-color-background-hover)
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
.peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
|
|
1323
|
-
background-color: var(--w-s-color-background-negative-subtle)
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
.focus\\:s-bg-primary-hover:focus {
|
|
1327
|
-
background-color: var(--w-s-color-background-primary-hover)
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
.\\!active\\:s-bg-selected-active:active {
|
|
1331
|
-
background-color: var(--w-s-color-background-selected-active) !important
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
.active\\:s-bg-active:active {
|
|
1335
|
-
background-color: var(--w-s-color-background-active)
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
.active\\:s-bg-negative-active:active {
|
|
1339
|
-
background-color: var(--w-s-color-background-negative-active)
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
.active\\:s-bg-negative-subtle-active:active {
|
|
1343
|
-
background-color: var(--w-s-color-background-negative-subtle-active)
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
.active\\:s-bg-primary-active:active {
|
|
1347
|
-
background-color: var(--w-s-color-background-primary-active)
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
.active\\:s-bg-selected-active:active {
|
|
1351
|
-
background-color: var(--w-s-color-background-selected-active)
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
.before\\:s-bg-disabled-subtle:before {
|
|
1355
|
-
background-color: var(--w-s-color-background-disabled-subtle)
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
.before\\:s-bg:before {
|
|
1359
|
-
background-color: var(--w-s-color-background)
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
.s-text {
|
|
1363
|
-
color: var(--w-s-color-text)
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
.s-text-disabled {
|
|
1367
|
-
color: var(--w-s-color-text-disabled)
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
.s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
|
|
1371
|
-
color: var(--w-s-color-text-inverted)
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
.s-text-inverted-static {
|
|
1375
|
-
color: var(--w-s-color-text-inverted-static)
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
.s-text-link {
|
|
1379
|
-
color: var(--w-s-color-text-link)
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
.s-text-negative {
|
|
1383
|
-
color: var(--w-s-color-text-negative)
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
.s-text-subtle {
|
|
1387
|
-
color: var(--w-s-color-text-subtle)
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
.hover\\:s-text-link:hover {
|
|
1391
|
-
color: var(--w-s-color-text-link)
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
.active\\:s-text:active {
|
|
1395
|
-
color: var(--w-s-color-text)
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
.placeholder\\:s-text-placeholder::placeholder {
|
|
1399
|
-
color: var(--w-s-color-text-placeholder)
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
.s-icon {
|
|
1403
|
-
color: var(--w-s-color-icon)
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
.s-icon-info {
|
|
1407
|
-
color: var(--w-s-color-icon-info)
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
.s-icon-inverted {
|
|
1411
|
-
color: var(--w-s-color-icon-inverted)
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
.s-icon-negative {
|
|
1415
|
-
color: var(--w-s-color-icon-negative)
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
.s-icon-positive {
|
|
1419
|
-
color: var(--w-s-color-icon-positive)
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
.s-icon-warning {
|
|
1423
|
-
color: var(--w-s-color-icon-warning)
|
|
1424
|
-
}
|
|
1425
|
-
|
|
1426
|
-
.hover\\:s-icon-hover:hover {
|
|
1427
|
-
color: var(--w-s-color-icon-hover)
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
.active\\:s-icon-active:active {
|
|
1431
|
-
color: var(--w-s-color-icon-active)
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
.before\\:s-icon-inverted:before {
|
|
1435
|
-
color: var(--w-s-color-icon-inverted)
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
.s-border {
|
|
1439
|
-
border-color: var(--w-s-color-border)
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
.s-border-disabled {
|
|
1443
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
.s-border-info-subtle {
|
|
1447
|
-
border-color: var(--w-s-color-border-info-subtle)
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
.s-border-l-info {
|
|
1451
|
-
border-left-color: var(--w-s-color-border-info)
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
.s-border-l-negative {
|
|
1455
|
-
border-left-color: var(--w-s-color-border-negative)
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
.s-border-l-positive {
|
|
1459
|
-
border-left-color: var(--w-s-color-border-positive)
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
.s-border-l-warning {
|
|
1463
|
-
border-left-color: var(--w-s-color-border-warning)
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
.s-border-negative {
|
|
1467
|
-
border-color: var(--w-s-color-border-negative)
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
.s-border-negative-subtle {
|
|
1471
|
-
border-color: var(--w-s-color-border-negative-subtle)
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
.s-border-positive-subtle {
|
|
1475
|
-
border-color: var(--w-s-color-border-positive-subtle)
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
.s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
|
|
1479
|
-
border-color: var(--w-s-color-border-primary)
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
.s-border-selected {
|
|
1483
|
-
border-color: var(--w-s-color-border-selected)
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
.s-border-warning-subtle {
|
|
1487
|
-
border-color: var(--w-s-color-border-warning-subtle)
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
|
|
1491
|
-
border-color: var(--w-s-color-border-negative-hover)
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
|
|
1495
|
-
border-color: var(--w-s-color-border-primary-hover)
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
.peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
|
|
1499
|
-
border-color: var(--w-s-color-border-selected-hover)
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
.peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
|
|
1503
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
.peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
|
|
1507
|
-
border-color: var(--w-s-color-border-negative)
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
.peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
|
|
1511
|
-
border-color: var(--w-s-color-border-primary)
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
.peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
|
|
1515
|
-
border-color: var(--w-s-color-border-selected)
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
|
|
1519
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
|
|
1523
|
-
border-color: var(--w-s-color-border-negative)
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
.peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
|
|
1527
|
-
border-color: var(--w-s-color-border-primary)
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
|
|
1531
|
-
border-color: var(--w-s-color-border-negative-hover)
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
.peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
|
|
1535
|
-
border-color: var(--w-s-color-border-primary-hover)
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
.group:hover .group-hover\\:s-border-selected-hover {
|
|
1539
|
-
border-color: var(--w-s-color-border-selected-hover)
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
.hover\\:before\\:s-border-negative-hover:hover:before {
|
|
1543
|
-
border-color: var(--w-s-color-border-negative-hover)
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
.hover\\:before\\:s-border-primary:hover:before {
|
|
1547
|
-
border-color: var(--w-s-color-border-primary)
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
.hover\\:s-border-disabled:hover {
|
|
1551
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
.hover\\:s-border-hover:hover {
|
|
1555
|
-
border-color: var(--w-s-color-border-hover)
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
.hover\\:s-border-negative-hover:hover {
|
|
1559
|
-
border-color: var(--w-s-color-border-negative-hover)
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
.hover\\:s-border-primary-hover:hover {
|
|
1563
|
-
border-color: var(--w-s-color-border-primary-hover)
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
.hover\\:s-border-primary:hover {
|
|
1567
|
-
border-color: var(--w-s-color-border-primary)
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
.hover\\:s-border-selected-hover:hover {
|
|
1571
|
-
border-color: var(--w-s-color-border-selected-hover)
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
.peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
|
|
1575
|
-
border-color: var(--w-s-color-border-negative-hover)
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
|
|
1579
|
-
border-color: var(--w-s-color-border-primary)
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.focus\\:s-border-primary-hover:focus {
|
|
1583
|
-
border-color: var(--w-s-color-border-primary-hover)
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
.active\\:s-border-active:active {
|
|
1587
|
-
border-color: var(--w-s-color-border-active)
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
.active\\:s-border-disabled:active {
|
|
1591
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
.active\\:s-border-primary-active:active {
|
|
1595
|
-
border-color: var(--w-s-color-border-primary-active)
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
.active\\:s-border-selected-active:active {
|
|
1599
|
-
border-color: var(--w-s-color-border-selected-active)
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
.active\\:s-border-selected:active {
|
|
1603
|
-
border-color: var(--w-s-color-border-selected)
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
.group:active .group-active\\:s-border-active {
|
|
1607
|
-
border-color: var(--w-s-color-border-active)
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
.group:active .group-active\\:s-border-selected-active {
|
|
1611
|
-
border-color: var(--w-s-color-border-selected-active)
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
.before\\:s-border-disabled:before {
|
|
1615
|
-
border-color: var(--w-s-color-border-disabled)
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
.before\\:s-border-negative:before {
|
|
1619
|
-
border-color: var(--w-s-color-border-negative)
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
.s-surface-sunken {
|
|
1623
|
-
background-color: var(--w-s-color-surface-sunken)
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
.s-surface-elevated-200 {
|
|
1627
|
-
background-color: var(--w-s-color-surface-elevated-200);
|
|
1628
|
-
box-shadow: var(--w-s-shadow-surface-elevated-200)
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
.hover\\:s-surface-elevated-200-hover:hover {
|
|
1632
|
-
background-color: var(--w-s-color-surface-elevated-200-hover);
|
|
1633
|
-
box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
.active\\:s-surface-elevated-200-active:active {
|
|
1637
|
-
background-color: var(--w-s-color-surface-elevated-200-active);
|
|
1638
|
-
box-shadow: var(--w-s-shadow-surface-elevated-200-active)
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
.drop-shadow-m {
|
|
1642
|
-
filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
|
|
1643
|
-
}
|
|
1644
|
-
|
|
1645
|
-
.shadow-m {
|
|
1646
|
-
box-shadow: var(--w-shadow-m)
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
.shadow-s {
|
|
1650
|
-
box-shadow: var(--w-shadow-s)
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
.shadow-\\[--w-shadow-slider\\] {
|
|
1654
|
-
box-shadow: var(--w-shadow-slider)
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
.hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
|
|
1658
|
-
box-shadow: var(--w-shadow-slider-handle-hover)
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
.focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
|
|
1662
|
-
box-shadow: var(--w-shadow-slider-handle-hover)
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
.active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
|
|
1666
|
-
box-shadow: var(--w-shadow-slider-handle-active)
|
|
1667
|
-
}
|
|
1668
|
-
|
|
1669
|
-
.h-0 {
|
|
1670
|
-
height: 0rem
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
.h-16 {
|
|
1674
|
-
height: 1.6rem
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
.h-2 {
|
|
1678
|
-
height: .2rem
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
.h-20 {
|
|
1682
|
-
height: 2rem
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
.h-24 {
|
|
1686
|
-
height: 2.4rem
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
.h-4 {
|
|
1690
|
-
height: .4rem
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
.h-44 {
|
|
1694
|
-
height: 4.4rem
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
.h-6 {
|
|
1698
|
-
height: .6rem
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
.h-8 {
|
|
1702
|
-
height: .8rem
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
.h-full {
|
|
1706
|
-
height: 100%
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
.h-unset {
|
|
1710
|
-
height: unset
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
.max-h-unset {
|
|
1714
|
-
max-height: unset
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
.max-w-full {
|
|
1718
|
-
max-width: 100%
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
.max-w-max {
|
|
1722
|
-
max-width: max-content
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
.max-w-unset {
|
|
1726
|
-
max-width: unset
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
.min-h-32 {
|
|
1730
|
-
min-height: 3.2rem
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
.min-h-40 {
|
|
1734
|
-
min-height: 4rem
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
.min-w-16 {
|
|
1738
|
-
min-width: 1.6rem
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
.min-w-32 {
|
|
1742
|
-
min-width: 3.2rem
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
.w-16 {
|
|
1746
|
-
width: 1.6rem
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
.w-2 {
|
|
1750
|
-
width: .2rem
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
.w-20 {
|
|
1754
|
-
width: 2rem
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
.w-24 {
|
|
1758
|
-
width: 2.4rem
|
|
1759
|
-
}
|
|
1760
|
-
|
|
1761
|
-
.w-32 {
|
|
1762
|
-
width: 3.2rem
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
.w-40 {
|
|
1766
|
-
width: 4rem
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
.w-44 {
|
|
1770
|
-
width: 4.4rem
|
|
1771
|
-
}
|
|
1772
|
-
|
|
1773
|
-
.w-8 {
|
|
1774
|
-
width: .8rem
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
.w-full {
|
|
1778
|
-
width: 100%
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
.w-max {
|
|
1782
|
-
width: max-content
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
.w-unset {
|
|
1786
|
-
width: unset
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
.before\\:h-20:before {
|
|
1790
|
-
height: 2rem
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
.before\\:h-full:before {
|
|
1794
|
-
height: 100%
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
.before\\:w-20:before {
|
|
1798
|
-
width: 2rem
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
.before\\:w-32:before {
|
|
1802
|
-
width: 3.2rem
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
.h-\\[--w-modal-height\\] {
|
|
1806
|
-
height: var(--w-modal-height)
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
.h-\\[14px\\] {
|
|
1810
|
-
height: 14px
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
.h-\\[16px\\] {
|
|
1814
|
-
height: 16px
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
.max-h-\\[--w-modal-max-height\\] {
|
|
1818
|
-
max-height: var(--w-modal-max-height)
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
.min-h-\\[--w-modal-min-height\\] {
|
|
1822
|
-
min-height: var(--w-modal-min-height)
|
|
1823
|
-
}
|
|
1824
|
-
|
|
1825
|
-
.min-h-\\[32px\\] {
|
|
1826
|
-
min-height: 32px
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
|
-
.min-h-\\[40px\\] {
|
|
1830
|
-
min-height: 40px
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
.min-h-\\[42\\] {
|
|
1834
|
-
min-height: 4.2rem
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
.min-h-\\[44px\\] {
|
|
1838
|
-
min-height: 44px
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
.min-w-\\[32px\\] {
|
|
1842
|
-
min-width: 32px
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
.min-w-\\[40px\\] {
|
|
1846
|
-
min-width: 40px
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
.min-w-\\[44px\\] {
|
|
1850
|
-
min-width: 44px
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
.w-\\[--w-modal-width\\] {
|
|
1854
|
-
width: var(--w-modal-width)
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
.w-\\[14px\\] {
|
|
1858
|
-
width: 14px
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
.w-\\[16px\\] {
|
|
1862
|
-
width: 16px
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
|
|
1866
|
-
--w-space-x-reverse: 0;
|
|
1867
|
-
margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
|
|
1868
|
-
margin-right: calc(.8rem * var(--w-space-x-reverse))
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
.space-y-16 > :not([hidden]) ~ :not([hidden]) {
|
|
1872
|
-
--w-space-y-reverse: 0;
|
|
1873
|
-
margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
|
|
1874
|
-
margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
.m-0 {
|
|
1878
|
-
margin: 0rem
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
.m-auto {
|
|
1882
|
-
margin: auto
|
|
1883
|
-
}
|
|
1884
|
-
|
|
1885
|
-
.-mx-16 {
|
|
1886
|
-
margin-left: -1.6rem;
|
|
1887
|
-
margin-right: -1.6rem
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
.mx-0 {
|
|
1891
|
-
margin-left: 0rem;
|
|
1892
|
-
margin-right: 0rem
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
.mx-8 {
|
|
1896
|
-
margin-left: .8rem;
|
|
1897
|
-
margin-right: .8rem
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
.mx-auto {
|
|
1901
|
-
margin-left: auto;
|
|
1902
|
-
margin-right: auto
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
.-mb-1 {
|
|
1906
|
-
margin-bottom: -.1rem
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
.-ml-8 {
|
|
1910
|
-
margin-left: -.8rem
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
.-mr-1 {
|
|
1914
|
-
margin-right: -.1rem
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
.-mr-8 {
|
|
1918
|
-
margin-right: -.8rem
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
.-mt-2 {
|
|
1922
|
-
margin-top: -.2rem
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
.-mt-4 {
|
|
1926
|
-
margin-top: -.4rem
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
.last-child\\:mb-0 > :last-child, .mb-0 {
|
|
1930
|
-
margin-bottom: 0rem
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
.mb-32 {
|
|
1934
|
-
margin-bottom: 3.2rem
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
.ml-8 {
|
|
1938
|
-
margin-left: .8rem
|
|
1939
|
-
}
|
|
1940
|
-
|
|
1941
|
-
.ml-auto {
|
|
1942
|
-
margin-left: auto
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
.mr-8 {
|
|
1946
|
-
margin-right: .8rem
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
.mt-16 {
|
|
1950
|
-
margin-top: 1.6rem
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
.mt-4 {
|
|
1954
|
-
margin-top: .4rem
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
.group:not(:first-child) .group-not-first\\:-ml-2 {
|
|
1958
|
-
margin-left: -.2rem
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
.last\\:mb-0:last-child {
|
|
1962
|
-
margin-bottom: 0rem
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
.last\\:mr-0:last-child {
|
|
1966
|
-
margin-right: 0rem
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
.m-\\[8px\\] {
|
|
1970
|
-
margin: 8px
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
.p-0 {
|
|
1974
|
-
padding: 0rem
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
.p-16 {
|
|
1978
|
-
padding: 1.6rem
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
|
-
.p-4 {
|
|
1982
|
-
padding: .4rem
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
.p-8 {
|
|
1986
|
-
padding: .8rem
|
|
1987
|
-
}
|
|
1988
|
-
|
|
1989
|
-
.px-0 {
|
|
1990
|
-
padding-left: 0rem;
|
|
1991
|
-
padding-right: 0rem
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
.px-1 {
|
|
1995
|
-
padding-left: .1rem;
|
|
1996
|
-
padding-right: .1rem
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
.px-12 {
|
|
2000
|
-
padding-left: 1.2rem;
|
|
2001
|
-
padding-right: 1.2rem
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
.px-14 {
|
|
2005
|
-
padding-left: 1.4rem;
|
|
2006
|
-
padding-right: 1.4rem
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
.px-16 {
|
|
2010
|
-
padding-left: 1.6rem;
|
|
2011
|
-
padding-right: 1.6rem
|
|
2012
|
-
}
|
|
2013
|
-
|
|
2014
|
-
.px-8 {
|
|
2015
|
-
padding-left: .8rem;
|
|
2016
|
-
padding-right: .8rem
|
|
2017
|
-
}
|
|
2018
|
-
|
|
2019
|
-
.py-0 {
|
|
2020
|
-
padding-top: 0rem;
|
|
2021
|
-
padding-bottom: 0rem
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
.py-1 {
|
|
2025
|
-
padding-top: .1rem;
|
|
2026
|
-
padding-bottom: .1rem
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
.py-10 {
|
|
2030
|
-
padding-top: 1rem;
|
|
2031
|
-
padding-bottom: 1rem
|
|
2032
|
-
}
|
|
2033
|
-
|
|
2034
|
-
.py-12 {
|
|
2035
|
-
padding-top: 1.2rem;
|
|
2036
|
-
padding-bottom: 1.2rem
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
.py-2 {
|
|
2040
|
-
padding-top: .2rem;
|
|
2041
|
-
padding-bottom: .2rem
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
.py-4 {
|
|
2045
|
-
padding-top: .4rem;
|
|
2046
|
-
padding-bottom: .4rem
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
.py-6 {
|
|
2050
|
-
padding-top: .6rem;
|
|
2051
|
-
padding-bottom: .6rem
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
.py-8 {
|
|
2055
|
-
padding-top: .8rem;
|
|
2056
|
-
padding-bottom: .8rem
|
|
2057
|
-
}
|
|
2058
|
-
|
|
2059
|
-
.pb-0 {
|
|
2060
|
-
padding-bottom: 0rem
|
|
2061
|
-
}
|
|
2062
|
-
|
|
2063
|
-
.pb-32 {
|
|
2064
|
-
padding-bottom: 3.2rem
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
.pb-4 {
|
|
2068
|
-
padding-bottom: .4rem
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
.pb-8 {
|
|
2072
|
-
padding-bottom: .8rem
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
.pl-0 {
|
|
2076
|
-
padding-left: 0rem
|
|
2077
|
-
}
|
|
2078
|
-
|
|
2079
|
-
.pl-1 {
|
|
2080
|
-
padding-left: .1rem
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
.pl-12 {
|
|
2084
|
-
padding-left: 1.2rem
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
.pl-28 {
|
|
2088
|
-
padding-left: 2.8rem
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
.pl-4 {
|
|
2092
|
-
padding-left: .4rem
|
|
2093
|
-
}
|
|
2094
|
-
|
|
2095
|
-
.pl-8 {
|
|
2096
|
-
padding-left: .8rem
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
.pr-12 {
|
|
2100
|
-
padding-right: 1.2rem
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
.pr-14 {
|
|
2104
|
-
padding-right: 1.4rem
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
.pr-2 {
|
|
2108
|
-
padding-right: .2rem
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
.pr-32 {
|
|
2112
|
-
padding-right: 3.2rem
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
.pr-40 {
|
|
2116
|
-
padding-right: 4rem
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
.pt-0 {
|
|
2120
|
-
padding-top: 0rem
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
.pt-1 {
|
|
2124
|
-
padding-top: .1rem
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
.pt-16 {
|
|
2128
|
-
padding-top: 1.6rem
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
.pt-24 {
|
|
2132
|
-
padding-top: 2.4rem
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
|
-
.pt-8 {
|
|
2136
|
-
padding-top: .8rem
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
.group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
|
|
2140
|
-
padding-bottom: 0rem
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
.last\\:pb-1:last-child {
|
|
2144
|
-
padding-bottom: .1rem
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
.last\\:pr-1:last-child {
|
|
2148
|
-
padding-right: .1rem
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
.p-\\[8px\\] {
|
|
2152
|
-
padding: 8px
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
.px-\\[15px\\] {
|
|
2156
|
-
padding-left: 15px;
|
|
2157
|
-
padding-right: 15px
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
.px-\\[8px\\] {
|
|
2161
|
-
padding-left: 8px;
|
|
2162
|
-
padding-right: 8px
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
.py-\\[11px\\] {
|
|
2166
|
-
padding-top: 11px;
|
|
2167
|
-
padding-bottom: 11px
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
.py-\\[5px\\] {
|
|
2171
|
-
padding-top: 5px;
|
|
2172
|
-
padding-bottom: 5px
|
|
2173
|
-
}
|
|
2174
|
-
|
|
2175
|
-
.py-\\[7px\\] {
|
|
2176
|
-
padding-top: 7px;
|
|
2177
|
-
padding-bottom: 7px
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
|
|
2181
|
-
padding-left: var(--w-prefix-width, 40px)
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
.invisible {
|
|
2185
|
-
visibility: hidden
|
|
2186
|
-
}
|
|
2187
|
-
|
|
2188
|
-
.backface-hidden {
|
|
2189
|
-
backface-visibility: hidden
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
.break-words {
|
|
2193
|
-
overflow-wrap: break-word
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
.before\\:content-\\[\\"–\\"\\]:before {
|
|
2197
|
-
content: "–"
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
.before\\:content-\\[\\"\\"\\]:before {
|
|
2201
|
-
content: ""
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
.cursor-default {
|
|
2205
|
-
cursor: default
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
|
-
.cursor-pointer {
|
|
2209
|
-
cursor: pointer
|
|
2210
|
-
}
|
|
2211
|
-
|
|
2212
|
-
.antialiased {
|
|
2213
|
-
-webkit-font-smoothing: antialiased;
|
|
2214
|
-
-moz-osx-font-smoothing: grayscale;
|
|
2215
|
-
font-smoothing: grayscale
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
.font-bold {
|
|
2219
|
-
font-weight: 700
|
|
2220
|
-
}
|
|
2221
|
-
|
|
2222
|
-
.before\\:font-bold:before {
|
|
2223
|
-
font-weight: 700
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
.font-normal {
|
|
2227
|
-
font-weight: 400
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
.pointer-events-auto {
|
|
2231
|
-
pointer-events: auto
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
.pointer-events-none {
|
|
2235
|
-
pointer-events: none
|
|
2236
|
-
}
|
|
2237
|
-
|
|
2238
|
-
.before\\:pointer-events-none:before {
|
|
2239
|
-
pointer-events: none
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
.pb-safe-\\[32\\] {
|
|
2243
|
-
padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
.sr-only {
|
|
2247
|
-
position: absolute;
|
|
2248
|
-
width: 1px;
|
|
2249
|
-
height: 1px;
|
|
2250
|
-
padding: 0;
|
|
2251
|
-
margin: -1px;
|
|
2252
|
-
overflow: hidden;
|
|
2253
|
-
clip: rect(0, 0, 0, 0);
|
|
2254
|
-
white-space: nowrap;
|
|
2255
|
-
border-width: 0
|
|
2256
|
-
}
|
|
2257
|
-
|
|
2258
|
-
.touch-pan-y {
|
|
2259
|
-
touch-action: pan-y
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
.select-none {
|
|
2263
|
-
-webkit-user-select: none;
|
|
2264
|
-
user-select: none
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
.translate-x-20 {
|
|
2268
|
-
--w-translate-x: 2rem;
|
|
2269
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
.translate-z-0 {
|
|
2273
|
-
--w-translate-z: 0rem;
|
|
2274
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2275
|
-
}
|
|
2276
|
-
|
|
2277
|
-
.-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
|
|
2278
|
-
--w-rotate-x: 0;
|
|
2279
|
-
--w-rotate-y: 0;
|
|
2280
|
-
--w-rotate-z: 0;
|
|
2281
|
-
--w-rotate: -180deg;
|
|
2282
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
.part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
|
|
2286
|
-
--w-rotate-x: 0;
|
|
2287
|
-
--w-rotate-y: 0;
|
|
2288
|
-
--w-rotate-z: 0;
|
|
2289
|
-
--w-rotate: 180deg;
|
|
2290
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
.rotate-90 {
|
|
2294
|
-
--w-rotate-x: 0;
|
|
2295
|
-
--w-rotate-y: 0;
|
|
2296
|
-
--w-rotate-z: 0;
|
|
2297
|
-
--w-rotate: 90deg;
|
|
2298
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
.part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
|
|
2302
|
-
transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2303
|
-
}
|
|
2304
|
-
|
|
2305
|
-
.part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
|
|
2306
|
-
transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
.part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
|
|
2310
|
-
transition-property: transform;
|
|
2311
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2312
|
-
transition-duration: .15s
|
|
2313
|
-
}
|
|
2314
|
-
|
|
2315
|
-
.transition-300 {
|
|
2316
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
2317
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2318
|
-
transition-duration: .3s
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
.transition-all {
|
|
2322
|
-
transition-property: all;
|
|
2323
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2324
|
-
transition-duration: .15s
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
.transition-colors {
|
|
2328
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
2329
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2330
|
-
transition-duration: .15s
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
.transition-shadow {
|
|
2334
|
-
transition-property: box-shadow;
|
|
2335
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2336
|
-
transition-duration: .15s
|
|
2337
|
-
}
|
|
2338
|
-
|
|
2339
|
-
.before\\:transition-all:before {
|
|
2340
|
-
transition-property: all;
|
|
2341
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
2342
|
-
transition-duration: .15s
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
.duration-300 {
|
|
2346
|
-
transition-duration: .3s
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
.ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
|
|
2350
|
-
transition-timing-function: cubic-bezier(.4, 0, .2, 1)
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
.text-m {
|
|
2354
|
-
font-size: var(--w-font-size-m);
|
|
2355
|
-
line-height: var(--w-line-height-m)
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
.text-s {
|
|
2359
|
-
font-size: var(--w-font-size-s);
|
|
2360
|
-
line-height: var(--w-line-height-s)
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
.text-xs {
|
|
2364
|
-
font-size: var(--w-font-size-xs);
|
|
2365
|
-
line-height: var(--w-line-height-xs)
|
|
2366
|
-
}
|
|
2367
|
-
|
|
2368
|
-
.leading-m {
|
|
2369
|
-
line-height: var(--w-line-height-m)
|
|
2370
|
-
}
|
|
2371
|
-
|
|
2372
|
-
.before\\:leading-xs:before {
|
|
2373
|
-
line-height: var(--w-line-height-xs)
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
.leading-\\[24\\] {
|
|
2377
|
-
line-height: 2.4rem
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
@media (max-width: 479.9px) {
|
|
2381
|
-
.lt-sm\\:rounded-b-0 {
|
|
2382
|
-
border-bottom-left-radius: 0;
|
|
2383
|
-
border-bottom-right-radius: 0
|
|
2384
|
-
}
|
|
2385
|
-
}
|
|
2386
|
-
@media (min-width: 480px) {
|
|
2387
|
-
.sm\\:border-b-0 {
|
|
2388
|
-
border-bottom-width: 0
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
.sm\\:rounded-8 {
|
|
2392
|
-
border-radius: 8px
|
|
2393
|
-
}
|
|
2394
|
-
|
|
2395
|
-
.sm\\:rounded-b-8 {
|
|
2396
|
-
border-bottom-left-radius: 8px;
|
|
2397
|
-
border-bottom-right-radius: 8px
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
.sm\\:gap-16 {
|
|
2401
|
-
gap: 1.6rem
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
.sm\\:place-content-center {
|
|
2405
|
-
place-content: center
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
.sm\\:place-items-center {
|
|
2409
|
-
place-items: center
|
|
2410
|
-
}
|
|
2411
|
-
|
|
2412
|
-
.sm\\:h-24 {
|
|
2413
|
-
height: 2.4rem
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
.sm\\:min-h-48 {
|
|
2417
|
-
min-height: 4.8rem
|
|
2418
|
-
}
|
|
2419
|
-
|
|
2420
|
-
.sm\\:w-24 {
|
|
2421
|
-
width: 2.4rem
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
.sm\\:min-h-\\[32px\\] {
|
|
2425
|
-
min-height: 32px
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
.sm\\:min-h-\\[44px\\] {
|
|
2429
|
-
min-height: 44px
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
.sm\\:min-h-\\[45\\] {
|
|
2433
|
-
min-height: 4.5rem
|
|
2434
|
-
}
|
|
2435
|
-
|
|
2436
|
-
.sm\\:min-w-\\[32px\\] {
|
|
2437
|
-
min-width: 32px
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
.sm\\:min-w-\\[44px\\] {
|
|
2441
|
-
min-width: 44px
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
.sm\\:mx-0 {
|
|
2445
|
-
margin-left: 0rem;
|
|
2446
|
-
margin-right: 0rem
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
.sm\\:mx-16 {
|
|
2450
|
-
margin-left: 1.6rem;
|
|
2451
|
-
margin-right: 1.6rem
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
.sm\\:-ml-12 {
|
|
2455
|
-
margin-left: -1.2rem
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
.sm\\:-mr-12 {
|
|
2459
|
-
margin-right: -1.2rem
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
.sm\\:-mt-8 {
|
|
2463
|
-
margin-top: -.8rem
|
|
2464
|
-
}
|
|
2465
|
-
|
|
2466
|
-
.sm\\:px-32 {
|
|
2467
|
-
padding-left: 3.2rem;
|
|
2468
|
-
padding-right: 3.2rem
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
.sm\\:py-0 {
|
|
2472
|
-
padding-top: 0rem;
|
|
2473
|
-
padding-bottom: 0rem
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
.sm\\:pb-32 {
|
|
2477
|
-
padding-bottom: 3.2rem
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
.sm\\:pt-24 {
|
|
2481
|
-
padding-top: 2.4rem
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
.sm\\:pt-32 {
|
|
2485
|
-
padding-top: 3.2rem
|
|
2486
|
-
}
|
|
2487
|
-
}
|
|
2488
|
-
@media (min-width: 768px) {
|
|
2489
|
-
.md\\:block {
|
|
2490
|
-
display: block
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
.md\\:hidden {
|
|
2494
|
-
display: none
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
`;const Pe=a`.w-textfield{--_input-padding-top:12px;--_input-padding-left:8px;--_input-padding-right:8px;position:relative}.w-textfield--has-prefix{--_input-padding-left:40px}.w-textfield--has-suffix{--_input-padding-right:var(--w-prefix-width,40px)}.w-textfield__input-wrapper{position:relative;overflow:hidden}.w-textfield__input-wrapper:focus-within .w-textfield__mask{display:none}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button{display:none}input::placeholder{color:var(--w-textfield-placeholder-color-text,var(--w-s-color-text-placeholder))}.w-textfield__input-wrapper:has(.w-textfield__mask):not(:focus-within) input{color:#0000}.w-textfield__mask{top:var(--_input-padding-top);left:var(--_input-padding-left);right:var(--_input-padding-right);pointer-events:none;white-space:nowrap;text-overflow:ellipsis;z-index:1;border:1px solid #0000;display:block;position:absolute;overflow:hidden}`,Me=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}`;var Te=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const je="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",Re="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",Ne="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",Ie="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",Ve="pl-0 bg-transparent pointer-events-none",Fe="pr-40",Le="pl-[var(--w-prefix-width,_40px)]",qe="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",We="text-xs mt-4 block",Be="s-text-subtle",He="s-text-negative";class Ye extends(ze(ne)){constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.#t=null}static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};#r(e){"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}updated(e){e.has("value")&&(this.setValue(this.value),this.formatter&&(this.mask.innerText=this.formatter(this.value)))}#t;firstUpdated(e){this.#t=this.value}resetFormControl(){this.value=this.#t}static#o=this.styles=[De,Me,Pe];get _inputstyles(){return Ee([je,this._hasSuffix&&Fe,this._hasPrefix&&Le,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Re,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Ie,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&Ne,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&Ve])}get _helptextstyles(){return Ee([We,this.invalid?He:Be])}get _label(){if(this.label)return q`<label for="${this._id}" class="${qe}">${this.label}</label>`}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}handler(e){const{name:t,value:r}=e.currentTarget;this.value=r;const o=new CustomEvent(e.type,{detail:{name:t,value:r,target:e.target}});this.dispatchEvent(o)}prefixSlotChange(){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}render(){return q`${this._label}<div class="${ye({"w-textfield":!0,"w-textfield--has-prefix":this._hasPrefix,"w-textfield--has-suffix":this._hasSuffix})}"><div class="w-textfield__input-wrapper">${this.formatter?q`<div class="w-textfield__mask"></div>`:B} <input class="${this._inputstyles}" type="${this.type||"text"}" min="${Ae(this.min)}" max="${Ae(this.max)}" size="${Ae(this.size)}" minlength="${Ae(this.minLength||this.minlength)}" maxlength="${Ae(this.maxLength||this.maxlength)}" name="${Ae(this.name)}" pattern="${Ae(this.pattern)}" placeholder="${Ae(this.placeholder)}" .value="${this.value||""}" aria-describedby="${Ae(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${Ae(this._error)}" aria-invalid="${Ae(this.invalid)}" id="${this._id}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" autocomplete="${Ae(this.autocomplete)}" step="${Ae(this.step)}" @blur="${this.handler}" @change="${this.handler}" @input="${this.handler}" @focus="${this.handler}" @keydown="${this.#r}"></div><slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot><slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot></div><span class="sr-only" id="aria-description">${this.ariaDescription}</span> ${this.helpText&&q`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`}`}}Te([ce({type:Boolean,reflect:!0})],Ye.prototype,"disabled",void 0),Te([ce({type:Boolean,reflect:!0})],Ye.prototype,"invalid",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"label",void 0),Te([ce({type:String,reflect:!0,attribute:"help-text"})],Ye.prototype,"helpText",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"size",void 0),Te([ce({type:Number,reflect:!0})],Ye.prototype,"max",void 0),Te([ce({type:Number,reflect:!0})],Ye.prototype,"min",void 0),Te([ce({type:Number,reflect:!0,attribute:"min-length"})],Ye.prototype,"minLength",void 0),Te([ce({type:Number,reflect:!0})],Ye.prototype,"minlength",void 0),Te([ce({type:Number,reflect:!0,attribute:"max-length"})],Ye.prototype,"maxLength",void 0),Te([ce({type:Number,reflect:!0})],Ye.prototype,"maxlength",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"pattern",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"placeholder",void 0),Te([ce({type:Boolean,reflect:!0,attribute:"read-only"})],Ye.prototype,"readOnly",void 0),Te([ce({type:Boolean,reflect:!0})],Ye.prototype,"readonly",void 0),Te([ce({type:Boolean,reflect:!0})],Ye.prototype,"required",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"type",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"value",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"name",void 0),Te([ce({type:Number,reflect:!0})],Ye.prototype,"step",void 0),Te([ce({type:String,reflect:!0})],Ye.prototype,"autocomplete",void 0),Te([ce({attribute:!1})],Ye.prototype,"formatter",void 0),Te([pe(".w-textfield__mask")],Ye.prototype,"mask",void 0),Te([ce({type:Boolean})],Ye.prototype,"_hasPrefix",void 0),Te([ce({type:Boolean})],Ye.prototype,"_hasSuffix",void 0),customElements.get("w-textfield")||customElements.define("w-textfield",Ye);const Xe=e=>"string"==typeof e,Ue=new Map;function Je(e){return[...Array.isArray(e)?e:[e],"en"]}function Ke(e,t,r){const o=Je(e);let i;if(r||(r="default"),"string"==typeof r)switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric"}else i=r;return Ge(()=>et("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(Xe(t)?new Date(t):t)}function Ze(e,t,r){const o=Je(e);return Ge(()=>et("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Qe(e,t,r,o){let{offset:i=0,...a}=o;const n=Je(e),s=t?Ge(()=>et("plural-ordinal",n),()=>new Intl.PluralRules(n,{type:"ordinal"})):Ge(()=>et("plural-cardinal",n),()=>new Intl.PluralRules(n,{type:"cardinal"}));return a[r]??a[s.select(r-i)]??a.other}function Ge(e,t){const r=e();let o=Ue.get(r);return o||(o=t(),Ue.set(r,o)),o}function et(e,t,r){return`${e}-${t.join("-")}-${JSON.stringify(r)}`}const tt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,rt=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,r)=>{if(t){const e=parseInt(t,16);return String.fromCharCode(e)}{const e=parseInt(r,16);return String.fromCharCode(e)}}),ot="%__lingui_octothorpe__%",it=(e,t,r)=>{void 0===r&&(r={});const o=t||e,i=e=>"object"==typeof e?e:r[e],a=(e,t)=>{const a=Object.keys(r).length?i("number"):void 0,n=Ze(o,e,a);return t.replace(new RegExp(ot,"g"),n)};return{plural:(e,t)=>{const{offset:r=0}=t,i=Qe(o,!1,e,t);return a(e-r,i)},selectordinal:(e,t)=>{const{offset:r=0}=t,i=Qe(o,!0,e,t);return a(e-r,i)},select:at,number:(e,t)=>Ze(o,e,i(t)||{style:t}),date:(e,t)=>Ke(o,e,i(t)||t),time:(e,t)=>function(e,t,r){let o;if(r||(r="default"),"string"==typeof r)switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return Ke(e,t,o)}(o,e,i(t)||t)}},at=(e,t)=>t[e]??t.other;var nt=Object.defineProperty,st=(e,t,r)=>(((e,t,r)=>{t in e?nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,t+"",r),r);class lt{constructor(){st(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){const r=this._getListeners(e);if(!r)return;const o=r.indexOf(t);~o&&r.splice(o,1)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const i=this._getListeners(e);i&&i.map(e=>e.apply(this,r))}_getListeners(e){const t=this._events[e];return!!Array.isArray(t)&&t}}var dt=Object.defineProperty,ct=(e,t,r)=>(((e,t,r)=>{t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class ht extends lt{constructor(e){super(),ct(this,"_locale",""),ct(this,"_locales"),ct(this,"_localeData",{}),ct(this,"_messages",{}),ct(this,"_missing"),ct(this,"_messageCompiler"),ct(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){const r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){"string"==typeof e?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){const r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(e=>{let[t,r]=e;return this._load(t,r)}),this.emit("change")}loadAndActivate(e){let{locale:t,locales:r,messages:o}=e;this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=r?.message;e||(e=""),Xe(e)||(t=e.values||t,o=e.message,e=e.id);const i=this.messages[e],a=void 0===i,n=this._missing;if(n&&a)return(e=>"function"==typeof e)(n)?n(this._locale,e):n;a&&this.emit("missing",{id:e,locale:this._locale});let s=i||o||e;return Xe(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:\n\n> ${s}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`)),Xe(s)&&tt.test(s)?rt(s):Xe(s)?s:function(e,t,r){return(o,i)=>{void 0===o&&(o={});const a=it(t,r,i),n=(e,t)=>(void 0===t&&(t=!1),Array.isArray(e)?e.reduce((e,r)=>{if("#"===r&&t)return e+ot;if(Xe(r))return e+r;const[i,s,l]=r;let d,c={};return"plural"===s||"selectordinal"===s||"select"===s?Object.entries(l).forEach(e=>{let[t,r]=e;c[t]=n(r,"plural"===s||"selectordinal"===s)}):c=l,d=s?(0,a[s])(o[i],c):o[i],null==d?e:e+d},""):e),s=n(e);return Xe(s)&&tt.test(s)?rt(s):Xe(s)?s:s?String(s):""}}(s,this._locale,this._locales)(t,r?.formats)}date(e,t){return Ke(this._locales||this._locale,e,t)}number(e,t){return Ze(this._locales||this._locale,e,t)}}const ut=(void 0===pt&&(pt={}),new ht(pt));var pt;const bt=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`,gt=["en","nb","fi","da","sv"],mt="en",vt=e=>gt.find(t=>e===t||e.toLowerCase().includes(t))||mt;function ft(){if("undefined"==typeof window){const e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return vt(e)}try{const e=$t(document);if(e)return vt(e);const t=function(){try{return window.frameElement?.getAttribute?.("lang")??""}catch{return""}}();if(t)return vt(t);const r=$t(_t());return r?vt(r):mt}catch(e){return console.warn("could not detect locale, falling back to source locale",e),mt}}const wt=(e,t,r,o,i)=>{ut.load("en",e),ut.load("nb",t),ut.load("fi",r),ut.load("da",o),ut.load("sv",i);const a=ft();ut.activate(a),xt(),function(){if(kt)return;if("undefined"==typeof window)return;if(!document?.documentElement)return;kt=!0;const e=()=>{const e=ft();ut.locale!==e&&(ut.activate(e),xt())},t=new MutationObserver(t=>{for(const r of t)if("attributes"===r.type&&"lang"===r.attributeName){e();break}});t.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});const r=_t();r&&r.documentElement&&r!==document&&t.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});const o=function(){try{return window.frameElement??null}catch{return null}}();o&&t.observe(o,{attributes:!0,attributeFilter:["lang"]})}()},yt="warp-i18n-change";function xt(){"undefined"!=typeof window&&window.dispatchEvent(new Event(yt))}let kt=!1;function _t(){try{return window.parent?.document??null}catch{return null}}function $t(e){try{return e?.documentElement?.lang??""}catch{return""}}var St=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Et="absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ",Ct={wrapper:Et+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},Ot={wrapper:Et+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"};class zt extends(ze(ne)){constructor(){super(...arguments),this.ariaLabel=null,this.clear=!1,this.search=!1,this.label="",this.icon=null}static#e=this.styles=[De,bt];get _classBase(){return"suffix"===this.slot?Ct:Ot}get _classes(){return Ee([this._classBase.wrapper,this.label?this._classBase.wrapperWithLabel:this._classBase.wrapperWithIcon])}resetContainingTextField(e){const t=this.closest("w-textfield");t&&t.resetFormControl(),e.stopPropagation()}submitContainingForm(e){const t=this.internals.form;t&&t.submit(),e.stopPropagation()}get _searchButton(){const e=this.ariaLabel||ut._({id:"affix.aria.search",message:"Search",comment:"Aria label for the search button in affix"});return q`<button aria-label="${e}" class="${this._classes}" type="submit" @click="${this.submitContainingForm.bind(this)}"><w-icon name="Search" size="small" locale="${ft()}" class="flex"></w-icon></button>`}get _clearButton(){const e=this.ariaLabel||ut._({id:"affix.aria.clearInput",message:"Clear input",comment:"Aria label for the clear input button in affix"});return q`<button aria-label="${e}" class="${this._classes}" type="reset" @click="${this.resetContainingTextField.bind(this)}"><w-icon name="Close" size="small" locale="${ft()}" class="flex"></w-icon></button>`}get _icon(){return this.icon?q`<div class="${this._classes}"><w-icon name="${this.icon}" size="small" locale="${ft()}" class="flex"></w-icon></div>`:""}get _text(){return q`<div class="${this._classes}"><span class="${this._classBase.label}">${this.label}</span></div>`}get _markup(){return this.label?this._text:this.icon?this._icon:this.search?this._searchButton:this.clear?this._clearButton:void 0}render(){return q`${this._markup}`}}St([ce({attribute:"aria-label",reflect:!0,useDefault:!0})],zt.prototype,"ariaLabel",void 0),St([ce({type:Boolean})],zt.prototype,"clear",void 0),St([ce({type:Boolean})],zt.prototype,"search",void 0),St([ce({reflect:!0,useDefault:!0})],zt.prototype,"label",void 0),St([ce({reflect:!0,useDefault:!0})],zt.prototype,"icon",void 0),customElements.get("w-affix")||customElements.define("w-affix",zt);const At=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.will-change-height{will-change:height}.border{border-width:1px}.border-l-4{border-left-width:4px}.rounded-4{border-radius:4px}.block{display:block}.inline{display:inline}.flex{display:flex}.static{position:static}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon-info{color:var(--w-s-color-icon-info)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.s-border-info-subtle{border-color:var(--w-s-color-border-info-subtle)}.s-border-l-info{border-left-color:var(--w-s-color-border-info)}.s-border-l-negative{border-left-color:var(--w-s-color-border-negative)}.s-border-l-positive{border-left-color:var(--w-s-color-border-positive)}.s-border-l-warning{border-left-color:var(--w-s-color-border-warning)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.min-w-16{min-width:1.6rem}.w-16{width:1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.mr-8{margin-right:.8rem}.p-16{padding:1.6rem}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}`;var Dt=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Pt={wrapper:"flex p-16 border border-l-4 rounded-4 s-text",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"s-border-negative-subtle s-border-l-negative s-bg-negative-subtle",negativeIcon:"s-icon-negative",positive:"s-border-positive-subtle s-border-l-positive s-bg-positive-subtle",positiveIcon:"s-icon-positive",warning:"s-border-warning-subtle s-border-l-warning s-bg-warning-subtle",warningIcon:"s-icon-warning",info:"s-border-info-subtle s-border-l-info s-bg-info-subtle",infoIcon:"s-icon-info"},Mt={negative:"negative",positive:"positive",warning:"warning",info:"info"};class Tt extends ne{constructor(){super(),this.variant="info",this.show=!1,this.role="alert",this._internals=this.attachInternals(),this._internals.role="alert"}connectedCallback(){if(super.connectedCallback(),this.variant&&!Mt[this.variant])throw new Error("Invalid 'variant' attribute. Set its value to one of the following:\nnegative, positive, warning, info.")}get _wrapperClasses(){const e=this.variant;return Ee([Pt.wrapper,Pt[e]])}get _iconClasses(){const e=this.variant;return Ee([Pt.icon,Pt[`${e}Icon`]])}static#e=this.styles=[De,At,a`:host{display:block}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0!important}`];get _icon(){const e=ft(),t=this.variant||"info";return t===Mt.info?q`<w-icon name="Info" size="small" locale="${e}" class="flex"></w-icon>`:t===Mt.warning?q`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:t===Mt.negative?q`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:t===Mt.positive?q`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`:""}render(){return q`<w-expand-transition ?show="${this.show}"><div role="${this.role}" class="${this._wrapperClasses}"><div class="${this._iconClasses}">${this._icon}</div><div class="${Pt.textWrapper}"><slot></slot></div></div></w-expand-transition>`}}Dt([ce({reflect:!0,useDefault:!0})],Tt.prototype,"variant",void 0),Dt([ce({type:Boolean,reflect:!0,useDefault:!0})],Tt.prototype,"show",void 0),Dt([ce({reflect:!0,useDefault:!0})],Tt.prototype,"role",void 0),customElements.get("w-alert")||customElements.define("w-alert",Tt);const jt=a`:host{--_bg:var(--w-c-button-bg,var(--w-s-color-background));--_bg-hover:var(--w-c-button-bg-hover,var(--w-s-color-background-hover));--_bg-active:var(--w-c-button-bg-active,var(--w-s-color-background-active));--_color:var(--w-c-button-color,var(--w-s-color-text-link));--_color-hover:var(--w-c-button-color-hover,var(--_color));--_color-active:var(--w-c-button-color-active,var(--_color));--_border-width:var(--w-c-button-border-width,2px);--_border-color:var(--w-c-button-border-color,var(--w-s-color-border));--_border-color-hover:var(--w-c-button-border-color-hover,var(--w-s-color-border-hover));--_border-color-active:var(--w-c-button-border-color-active,var(--w-s-color-border-active));--_radius:var(--w-c-button-radius,8px);--_font-size:var(--w-c-button-font-size,var(--w-font-size-m));--_line-height:var(--w-c-button-line-height,var(--w-line-height-m));--_font-weight:var(--w-c-button-font-weight,700);--_pad-x:var(--w-c-button-padding-x,16px);--_pad-y:var(--w-c-button-padding-y,13px);--_outline-width:var(--w-c-button-outline-width,2px);--_outline-color:var(--w-c-button-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-button-outline-offset,var(--w-outline-offset,1px));--_transition:var(--w-c-button-transition,color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1));--w-c-button-icon-color:var(--w-s-color-icon);display:inline-block}:host(:focus-visible){outline:none}`,Rt=a`:host([variant=primary]){--w-c-button-bg:var(--w-s-color-background-primary);--w-c-button-bg-hover:var(--w-s-color-background-primary-hover);--w-c-button-bg-active:var(--w-s-color-background-primary-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negative]){--w-c-button-bg:var(--w-s-color-background-negative);--w-c-button-bg-hover:var(--w-s-color-background-negative-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negativeQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:4px;--w-c-button-border-width:1px}:host([variant=utilityQuiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=quiet]){--w-c-button-bg:transparent;--w-c-button-border-width:0px}:host([variant=overlay]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInverted]){--w-c-button-bg:var(--w-s-color-background-inverted);--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInvertedQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=link]){--w-c-button-bg:transparent;--w-c-button-border-width:0px;--w-c-button-padding-x:0px;--w-c-button-padding-y:0px;--w-c-button-font-weight:400;--w-c-button-bg-hover:transparent;--w-c-button-bg-active:transparent;--w-c-button-color:var(--w-s-color-text-link);--w-c-button-color-hover:var(--w-s-color-text-link-hover,var(--w-c-button-color));--w-c-button-color-active:var(--w-s-color-text-link-active,var(--w-c-button-color))}`,Nt=a`:host([small]){--w-c-button-padding-x:12px;--w-c-button-padding-y:8px;--w-c-button-font-size:var(--w-font-size-xs);--w-c-button-line-height:var(--w-line-height-xs)}`,It=a`:host([disabled]){pointer-events:none;--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}`,Vt=a`${jt}button[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;display:inline-flex}button[part=base] ::slotted(*){line-height:inherit}:host>w-link[part=base]{background:0 0;border:0;padding:0;display:inline-block}:host(:not([disabled]):not([loading])) button[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled]):not([loading])) button[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host(:focus-visible) button[part=base]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${Rt}:host([variant=negative][quiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility][quiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=pill]){--w-c-button-bg:transparent;--w-c-button-radius:50%;--w-c-button-border-width:0px;--w-c-button-padding-x:14px;--w-c-button-padding-y:14px;--w-c-button-color:var(--w-c-button-icon-color,var(--w-s-color-icon))}:host([variant=link]) button[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled]):not([loading])) button[part=base]:hover{color:var(--w-c-button-color-hover);background-color:#0000;border-color:#0000;text-decoration:underline}${Nt}:host([small][variant=pill]){--w-c-button-padding-x:8px;--w-c-button-padding-y:8px}:host([full-width]) button[part=base],:host([full-width])>w-link[part=base]{width:100%}:host([icon-only]) button[part=base]{aspect-ratio:1;padding-left:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px));padding-right:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px))}${It}:host([disabled][variant]),:host([disabled][quiet]){--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent;--w-c-button-color-hover:var(--w-s-color-text-inverted);--w-c-button-color-active:var(--w-s-color-text-inverted)}:host([loading]),:host([loading][variant]),:host([loading][quiet]){pointer-events:none;--w-c-button-bg:var(--w-s-color-background-subtle);--w-c-button-bg-hover:var(--w-s-color-background-subtle);--w-c-button-bg-active:var(--w-s-color-background-subtle);--w-c-button-color:var(--w-s-color-text);--w-c-button-color-hover:var(--w-s-color-text);--w-c-button-color-active:var(--w-s-color-text);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent}:host([loading]) button[part=base]{background-image:linear-gradient(135deg,#0000000d 25%,#0000 25% 50%,#0000000d 50% 75%,#0000 75%,#0000);background-size:30px 30px;animation:3s linear infinite animate-inprogress}@media (prefers-reduced-motion:reduce){:host([loading]) button[part=base]{animation:none}}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}`,Ft=a`${jt}a[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}:host(:not([disabled])) a[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled])) a[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host(:focus-visible) a[part=base]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${Rt}:host([variant=link]) a[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled])) a[part=base]:hover{background-color:#0000;border-color:#0000;text-decoration:underline}${Nt}:host([full-width]) a[part=base]{width:100%}${It}`;var Lt=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const qt=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class Wt extends ne{constructor(){super(...arguments),this.autofocus=!1,this.small=!1,this.disabled=!1,this.fullWidth=!1}static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[De,Ft];connectedCallback(){if(super.connectedCallback(),this.variant&&!qt.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${qt.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){return q`<a href="${this.href}" part="base" target="${this.target}" rel="${"_blank"===this.target?this.rel||"noopener":B}" tabindex="0"><slot></slot></a>`}}Lt([ce({type:Boolean,reflect:!0})],Wt.prototype,"autofocus",void 0),Lt([ce({reflect:!0})],Wt.prototype,"variant",void 0),Lt([ce({type:Boolean,reflect:!0})],Wt.prototype,"small",void 0),Lt([ce({reflect:!0})],Wt.prototype,"href",void 0),Lt([ce({type:Boolean,reflect:!0})],Wt.prototype,"disabled",void 0),Lt([ce({reflect:!0})],Wt.prototype,"target",void 0),Lt([ce({reflect:!0})],Wt.prototype,"rel",void 0),Lt([ce({attribute:"full-width",type:Boolean,reflect:!0})],Wt.prototype,"fullWidth",void 0),customElements.get("w-link")||customElements.define("w-link",Wt);const Bt=JSON.parse('{"button.aria.loading":["Indlæser..."]}'),Ht=JSON.parse('{"button.aria.loading":["Loading..."]}'),Yt=JSON.parse('{"button.aria.loading":["Ladataan..."]}'),Xt=JSON.parse('{"button.aria.loading":["Laster..."]}'),Ut=JSON.parse('{"button.aria.loading":["Laddar ..."]}');var Jt=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Kt=["primary","secondary","negative","negativeQuiet","utility","pill","link","quiet","utilityQuiet","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class Zt extends(ze(ne)){static#e=this.styles=[De,Vt];static#o=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};#t;updated(e){e.has("value")&&this.setValue(this.value)}constructor(){super(),this.autofocus=!1,this.quiet=!1,this.iconOnly=!1,this.small=!1,this.loading=!1,this.disabled=!1,this.fullWidth=!1,this.#t=null,wt(Ht,Xt,Yt,Bt,Ut),this.ariaValueTextLoading=ut.t({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}connectedCallback(){super.connectedCallback();const e=this.variant||"secondary";if(!Kt.includes(e))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${Kt.join(", ")}.`);this.#t=this.value}closestWithId(e){let t=this.shadowRoot,r=null;try{for(;t;){if(r=t.getElementById(e),r)return r;t=t.getRootNode().host?.getRootNode()}}catch{}return document.getElementById(e)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0),this.buttonEl&&this.commandfor&&(this.buttonEl.commandForElement=this.closestWithId(this.commandfor))}_handleButtonClick(){"submit"===this.type?this.internals.form.requestSubmit():"reset"===this.type&&this.internals.form.reset()}resetFormControl(){this.value=this.#t}render(){const e=this.variant||"secondary";return q`${this.href?q`<w-link href="${this.href}" target="${this.target}" variant="${this.quiet?"quiet":e}" ?small="${this.small}" ?loading="${this.loading}" ?autofocus="${this.autofocus}" ?full-width="${this.fullWidth}" class="${this.buttonClass}" rel="${"_blank"===this.target?this.rel||"noopener":void 0}"><slot></slot></w-link>`:q`<button type="${this.type||"button"}" part="base" class="${Ae(this.buttonClass)}" @click="${this._handleButtonClick}" commandfor="${Ae(this.commandfor)}" command="${Ae(this.command)}"><slot></slot></button>`} ${this.loading?q`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext="${this.ariaValueTextLoading}"></span>`:B}`}}Jt([ce({reflect:!0})],Zt.prototype,"type",void 0),Jt([ce({type:Boolean,reflect:!0})],Zt.prototype,"autofocus",void 0),Jt([ce({reflect:!0})],Zt.prototype,"variant",void 0),Jt([ce({type:Boolean,reflect:!0})],Zt.prototype,"quiet",void 0),Jt([ce({type:Boolean,reflect:!0,attribute:"icon-only"})],Zt.prototype,"iconOnly",void 0),Jt([ce({type:Boolean,reflect:!0})],Zt.prototype,"small",void 0),Jt([ce({type:Boolean,reflect:!0})],Zt.prototype,"loading",void 0),Jt([ce({reflect:!0})],Zt.prototype,"href",void 0),Jt([ce({reflect:!0})],Zt.prototype,"target",void 0),Jt([ce({type:Boolean,reflect:!0})],Zt.prototype,"disabled",void 0),Jt([ce({reflect:!0})],Zt.prototype,"rel",void 0),Jt([ce({attribute:"full-width",type:Boolean,reflect:!0})],Zt.prototype,"fullWidth",void 0),Jt([ce({attribute:"button-class",reflect:!0})],Zt.prototype,"buttonClass",void 0),Jt([ce({reflect:!0})],Zt.prototype,"name",void 0),Jt([ce({reflect:!0})],Zt.prototype,"value",void 0),Jt([ce()],Zt.prototype,"commandfor",void 0),Jt([ce()],Zt.prototype,"command",void 0),Jt([pe("button")],Zt.prototype,"buttonEl",void 0),customElements.get("w-button")||customElements.define("w-button",Zt);const Qt=["top","right","bottom","left"],Gt=Math.min,er=Math.max,tr=Math.round,rr=e=>({x:e,y:e}),or={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,r){return er(e,Gt(t,r))}function ar(e,t){return"function"==typeof e?e(t):e}function nr(e){return e.split("-")[0]}function sr(e){return e.split("-")[1]}function lr(e){return"x"===e?"y":"x"}function dr(e){return"y"===e?"height":"width"}function cr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function hr(e){return lr(cr(e))}function ur(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const pr=["left","right"],br=["right","left"],gr=["top","bottom"],mr=["bottom","top"];function vr(e,t,r,o){const i=sr(e);let a=function(e,t,r){switch(e){case"top":case"bottom":return r?t?br:pr:t?pr:br;case"left":case"right":return t?gr:mr;default:return[]}}(nr(e),"start"===r,o);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(ur)))),a}function fr(e){const t=nr(e);return or[t]+e.slice(t.length)}function wr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function yr(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function xr(e,t,r){let{reference:o,floating:i}=e;const a=cr(t),n=hr(t),s=dr(n),l=nr(t),d="y"===a,c=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,u=o[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:o.y-i.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-i.width,y:h};break;default:p={x:o.x,y:o.y}}switch(sr(t)){case"start":p[n]-=u*(r&&d?-1:1);break;case"end":p[n]+=u*(r&&d?-1:1)}return p}async function kr(e,t){var r;void 0===t&&(t={});const{x:o,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=ar(t,e),b=wr(p),g=s[u?"floating"===h?"reference":"floating":h],m=yr(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(g)))||r?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{x:o,y:i,width:n.floating.width,height:n.floating.height}:n.reference,f=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),w=await(null==a.isElement?void 0:a.isElement(f))&&await(null==a.getScale?void 0:a.getScale(f))||{x:1,y:1},y=yr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:f,strategy:l}):v);return{top:(m.top-y.top+b.top)/w.y,bottom:(y.bottom-m.bottom+b.bottom)/w.y,left:(m.left-y.left+b.left)/w.x,right:(y.right-m.right+b.right)/w.x}}function _r(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $r(e){return Qt.some(t=>e[t]>=0)}const Sr=new Set(["left","top"]);function Er(){return"undefined"!=typeof window}function Cr(e){return Ar(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function zr(e){var t;return null==(t=(Ar(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ar(e){return!!Er()&&(e instanceof Node||e instanceof Or(e).Node)}function Dr(e){return!!Er()&&(e instanceof Element||e instanceof Or(e).Element)}function Pr(e){return!!Er()&&(e instanceof HTMLElement||e instanceof Or(e).HTMLElement)}function Mr(e){return!(!Er()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot)}function Tr(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&"inline"!==i&&"contents"!==i}function jr(e){return/^(table|td|th)$/.test(Cr(e))}function Rr(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Nr=/transform|translate|scale|rotate|perspective|filter/,Ir=/paint|layout|strict|content/,Vr=e=>!!e&&"none"!==e;let Fr;function Lr(e){const t=Dr(e)?Br(e):e;return Vr(t.transform)||Vr(t.translate)||Vr(t.scale)||Vr(t.rotate)||Vr(t.perspective)||!qr()&&(Vr(t.backdropFilter)||Vr(t.filter))||Nr.test(t.willChange||"")||Ir.test(t.contain||"")}function qr(){return null==Fr&&(Fr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Fr}function Wr(e){return/^(html|body|#document)$/.test(Cr(e))}function Br(e){return Or(e).getComputedStyle(e)}function Hr(e){return Dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yr(e){if("html"===Cr(e))return e;const t=e.assignedSlot||e.parentNode||Mr(e)&&e.host||zr(e);return Mr(t)?t.host:t}function Xr(e){const t=Yr(e);return Wr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&Tr(t)?t:Xr(t)}function Ur(e,t,r){var o;void 0===t&&(t=[]);const i=Xr(e),a=i===(null==(o=e.ownerDocument)?void 0:o.body),n=Or(i);return a?(Jr(n),t.concat(n,n.visualViewport||[],Tr(i)?i:[],[])):t.concat(i,Ur(i,[]))}function Jr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kr(e){const t=Br(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=Pr(e),a=i?e.offsetWidth:r,n=i?e.offsetHeight:o,s=tr(r)!==a||tr(o)!==n;return s&&(r=a,o=n),{width:r,height:o,$:s}}function Zr(e){return Dr(e)?e:e.contextElement}function Qr(e){const t=Zr(e);if(!Pr(t))return rr(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:a}=Kr(t);let n=(a?tr(r.width):r.width)/o,s=(a?tr(r.height):r.height)/i;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}const Gr=rr(0);function eo(e){const t=Or(e);return qr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Gr}function to(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),a=Zr(e);let n=rr(1);t&&(o?Dr(o)&&(n=Qr(o)):n=Qr(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Or(e))&&t}(a,r,o)?eo(a):rr(0);let l=(i.left+s.x)/n.x,d=(i.top+s.y)/n.y,c=i.width/n.x,h=i.height/n.y;if(a){const e=Or(a),t=o&&Dr(o)?Or(o):o;let r=e,i=Jr(r);for(;i&&o&&t!==r;){const e=Qr(i),t=i.getBoundingClientRect(),o=Br(i),a=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,n=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=a,d+=n,r=Or(i),i=Jr(r)}}return yr({width:c,height:h,x:l,y:d})}function ro(e,t){const r=Hr(e).scrollLeft;return t?t.left+r:to(zr(e)).left+r}function oo(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-ro(e,r),y:r.top+t.scrollTop}}function io(e,t,r){let o;if("viewport"===t)o=function(e,t){const r=Or(e),o=zr(e),i=r.visualViewport;let a=o.clientWidth,n=o.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;const e=qr();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const d=ro(o);if(d<=0){const e=o.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,n=Math.abs(o.clientWidth-t.clientWidth-i);n<=25&&(a-=n)}else d<=25&&(a+=d);return{width:a,height:n,x:s,y:l}}(e,r);else if("document"===t)o=function(e){const t=zr(e),r=Hr(e),o=e.ownerDocument.body,i=er(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=er(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let n=-r.scrollLeft+ro(e);const s=-r.scrollTop;return"rtl"===Br(o).direction&&(n+=er(t.clientWidth,o.clientWidth)-i),{width:i,height:a,x:n,y:s}}(zr(e));else if(Dr(t))o=function(e,t){const r=to(e,!0,"fixed"===t),o=r.top+e.clientTop,i=r.left+e.clientLeft,a=Pr(e)?Qr(e):rr(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:o*a.y}}(t,r);else{const r=eo(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return yr(o)}function ao(e,t){const r=Yr(e);return!(r===t||!Dr(r)||Wr(r))&&("fixed"===Br(r).position||ao(r,t))}function no(e,t,r){const o=Pr(t),i=zr(t),a="fixed"===r,n=to(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=rr(0);function d(){l.x=ro(i)}if(o||!o&&!a)if(("body"!==Cr(t)||Tr(i))&&(s=Hr(t)),o){const e=to(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&d();a&&!o&&i&&d();const c=!i||o||a?rr(0):oo(i,s);return{x:n.left+s.scrollLeft-l.x-c.x,y:n.top+s.scrollTop-l.y-c.y,width:n.width,height:n.height}}function so(e){return"static"===Br(e).position}function lo(e,t){if(!Pr(e)||"fixed"===Br(e).position)return null;if(t)return t(e);let r=e.offsetParent;return zr(e)===r&&(r=r.ownerDocument.body),r}function co(e,t){const r=Or(e);if(Rr(e))return r;if(!Pr(e)){let t=Yr(e);for(;t&&!Wr(t);){if(Dr(t)&&!so(t))return t;t=Yr(t)}return r}let o=lo(e,t);for(;o&&jr(o)&&so(o);)o=lo(o,t);return o&&Wr(o)&&so(o)&&!Lr(o)?r:o||function(e){let t=Yr(e);for(;Pr(t)&&!Wr(t);){if(Lr(t))return t;if(Rr(t))return null;t=Yr(t)}return null}(e)||r}const ho={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const a="fixed"===i,n=zr(o),s=!!t&&Rr(t.floating);if(o===n||s&&a)return r;let l={scrollLeft:0,scrollTop:0},d=rr(1);const c=rr(0),h=Pr(o);if((h||!h&&!a)&&(("body"!==Cr(o)||Tr(n))&&(l=Hr(o)),h)){const e=to(o);d=Qr(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}const u=!n||h||a?rr(0):oo(n,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:r.y*d.y-l.scrollTop*d.y+c.y+u.y}},getDocumentElement:zr,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const a="clippingAncestors"===r?Rr(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=Ur(e,[]).filter(e=>Dr(e)&&"body"!==Cr(e)),i=null;const a="fixed"===Br(e).position;let n=a?Yr(e):e;for(;Dr(n)&&!Wr(n);){const t=Br(n),r=Lr(n);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||Tr(n)&&!r&&ao(e,n))?o=o.filter(e=>e!==n):i=t,n=Yr(n)}return t.set(e,o),o}(t,this._c):[].concat(r),n=[...a,o],s=io(t,n[0],i);let l=s.top,d=s.right,c=s.bottom,h=s.left;for(let e=1;e<n.length;e++){const r=io(t,n[e],i);l=er(r.top,l),d=Gt(r.right,d),c=Gt(r.bottom,c),h=er(r.left,h)}return{width:d-h,height:c-l,x:h,y:l}},getOffsetParent:co,getElementRects:async function(e){const t=this.getOffsetParent||co,r=this.getDimensions,o=await r(e.floating);return{reference:no(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Kr(e);return{width:t,height:r}},getScale:Qr,isElement:Dr,isRTL:function(e){return"rtl"===Br(e).direction}},uo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:a,placement:n,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:o,elements:i}=e,a=await(null==o.isRTL?void 0:o.isRTL(i.floating)),n=nr(r),s=sr(r),l="y"===cr(r),d=Sr.has(n)?-1:1,c=a&&l?-1:1,h=ar(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof b&&(p="end"===s?-1*b:b),l?{x:p*c,y:u*d}:{x:u*d,y:p*c}}(t,e);return n===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:n}}}}},po=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i,platform:a}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=ar(e,t),c={x:r,y:o},h=await a.detectOverflow(t,d),u=cr(nr(i)),p=lr(u);let b=c[p],g=c[u];if(n){const e="y"===p?"bottom":"right";b=ir(b+h["y"===p?"top":"left"],b,b-h[e])}if(s){const e="y"===u?"bottom":"right";g=ir(g+h["y"===u?"top":"left"],g,g-h[e])}const m=l.fn({...t,[p]:b,[u]:g});return{...m,data:{x:m.x-r,y:m.y-o,enabled:{[p]:n,[u]:s}}}}}},bo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:a,rects:n,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=ar(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const v=nr(i),f=cr(s),w=nr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),x=u||(w||!g?[fr(s)]:function(e){const t=fr(e);return[ur(e),t,ur(t)]}(s)),k="none"!==b;!u&&k&&x.push(...vr(s,g,b,y));const _=[s,...x],$=await l.detectOverflow(t,m),S=[];let E=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&S.push($[v]),h){const e=function(e,t,r){void 0===r&&(r=!1);const o=sr(e),i=hr(e),a=dr(i);let n="x"===i?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=fr(n)),[n,fr(n)]}(i,n,y);S.push($[e[0]],$[e[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every(e=>e<=0)){var C,O;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=_[e];if(t){if(!("alignment"===h&&f!==cr(t))||E.every(e=>cr(e.placement)!==f||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let r=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!r)switch(p){case"bestFit":{var z;const e=null==(z=E.filter(e=>{if(k){const t=cr(e.placement);return t===f||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},go=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:i,rects:a,platform:n,elements:s}=t,{apply:l=()=>{},...d}=ar(e,t),c=await n.detectOverflow(t,d),h=nr(i),u=sr(i),p="y"===cr(i),{width:b,height:g}=a.floating;let m,v;"top"===h||"bottom"===h?(m=h,v=u===(await(null==n.isRTL?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m="end"===u?"top":"bottom");const f=g-c.top-c.bottom,w=b-c.left-c.right,y=Gt(g-c[m],f),x=Gt(b-c[v],w),k=!t.middlewareData.shift;let _=y,$=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&($=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(_=f),k&&!u){const e=er(c.left,0),t=er(c.right,0),r=er(c.top,0),o=er(c.bottom,0);p?$=b-2*(0!==e||0!==t?e+t:er(c.left,c.right)):_=g-2*(0!==r||0!==o?r+o:er(c.top,c.bottom))}await l({...t,availableWidth:$,availableHeight:_});const S=await n.getDimensions(s.floating);return b!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}},mo=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:i="referenceHidden",...a}=ar(e,t);switch(i){case"referenceHidden":{const e=_r(await o.detectOverflow(t,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:$r(e)}}}case"escaped":{const e=_r(await o.detectOverflow(t,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:$r(e)}}}default:return{}}}}},vo=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:a,platform:n,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ar(e,t)||{};if(null==d)return{};const h=wr(c),u={x:r,y:o},p=hr(i),b=dr(p),g=await n.getDimensions(d),m="y"===p,v=m?"top":"left",f=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=a.reference[b]+a.reference[p]-u[p]-a.floating[b],x=u[p]-a.reference[p],k=await(null==n.getOffsetParent?void 0:n.getOffsetParent(d));let _=k?k[w]:0;_&&await(null==n.isElement?void 0:n.isElement(k))||(_=s.floating[w]||a.floating[b]);const $=y/2-x/2,S=_/2-g[b]/2-1,E=Gt(h[v],S),C=Gt(h[f],S),O=E,z=_-g[b]-C,A=_/2-g[b]/2+$,D=ir(O,A,z),P=!l.arrow&&null!=sr(i)&&A!==D&&a.reference[b]/2-(A<O?E:C)-g[b]/2<0,M=P?A<O?A-O:A-z:0;return{[p]:u[p]+M,data:{[p]:D,centerOffset:A-D-M,...P&&{alignmentOffset:M}},reset:P}}}),fo=(e,t,r)=>{const o=new Map,i={platform:ho,...r},a={...i.platform,_c:o};return(async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:n}=r,s=n.detectOverflow?n:{...n,detectOverflow:kr},l=await(null==n.isRTL?void 0:n.isRTL(t));let d=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=xr(d,o,l),u=o,p=0;const b={};for(let r=0;r<a.length;r++){const g=a[r];if(!g)continue;const{name:m,fn:v}=g,{x:f,y:w,data:y,reset:x}=await v({x:c,y:h,initialPlacement:o,placement:u,strategy:i,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});c=null!=f?f:c,h=null!=w?w:h,b[m]={...b[m],...y},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(u=x.placement),x.rects&&(d=!0===x.rects?await n.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:c,y:h}=xr(d,u,l))),r=-1)}return{x:c,y:h,placement:u,strategy:i,middlewareData:b}})(e,t,{...i,platform:a})},wo="top-start",yo="top",xo="top-end",ko="right-start",_o="right",$o="right-end",So="bottom-start",Eo="bottom",Co="bottom-end",Oo="left-start",zo="left",Ao="left-end",Do=[wo,yo,xo,ko,_o,$o,So,Eo,Co,Oo,zo,Ao],Po={[wo]:So,[yo]:Eo,[xo]:Co,[So]:wo,[Eo]:yo,[Co]:xo,[Oo]:ko,[zo]:_o,[Ao]:$o,[ko]:Oo,[_o]:zo,[$o]:Ao},Mo={[Oo]:-45,[zo]:-45,[Ao]:-45,[wo]:45,[yo]:45,[xo]:45,[ko]:135,[_o]:135,[$o]:135,[So]:-135,[Eo]:-135,[Co]:-135},To=e=>{let t;return t=/-/.test(e)?e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""):e.charAt(0).toUpperCase()+e.slice(1),t},jo=e=>Po[(e=>e.split("-")[0])(e)],Ro=e=>Po[e];async function No(e){if(!e?.isShowing)return;if(e?.waitForDOM&&await(e?.waitForDOM()),!e?.targetEl||!e?.attentionEl)return;let t=e?.targetEl;const r=e.attentionEl;return fo(t,r,{placement:e?.directionName??Eo,middleware:[uo({mainAxis:e?.distance??8,crossAxis:e?.skidding??0}),e?.flip&&bo({crossAxis:e?.crossAxis,fallbackPlacements:e?.fallbackPlacements}),e?.flip&&po({crossAxis:!0}),!e?.noArrow&&e?.arrowEl&&vo({element:e?.arrowEl}),mo(),go({apply(){Object.assign(r.style,{paddingRight:"8px",paddingLeft:"8px"})}})]}).then(t=>{let{x:o,y:i,middlewareData:a,placement:n}=t;if(e.actualDirection=n,e?.isCallout||Object.assign(r.style,{left:`${o}px`,top:`${i}px`}),a?.hide&&!e?.isCallout){const{referenceHidden:e}=a.hide;Object.assign(r.style,{visibility:e?"hidden":""})}if(a?.arrow&&e?.arrowEl){const t=e?.arrowEl,{x:o,y:i}=a.arrow,s="rtl"===window.getComputedStyle(r).direction,l=Ro(n).split("-")[1];let d="",c="",h="",u="";if("start"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";d="number"==typeof i?`calc(24px - ${t.offsetWidth/2}px)`:"",c=s?e:"",u=s?"":e}else if("end"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";c=s?"":e,u=s?e:"",h="number"==typeof i?`calc(24px - ${t.offsetWidth/2}px)`:""}else u="number"==typeof o?`${o}px`:"",d="number"==typeof i?`${i}px`:"";Object.assign(t.style,{top:d,right:c,bottom:h,left:u}),((e,t,r)=>{Object.assign(e?.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${To(jo(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})})(t,Mo[Ro(n)],n)}}),e}const Io=a`.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-stretch{place-items:stretch stretch}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-center{align-self:center}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.content-start{align-content:flex-start}.content-center{align-content:center}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-center{justify-self:center}.justify-self-end{justify-self:end}.justify-self-stretch{justify-self:stretch}.justify-items-start{justify-items:start}.justify-items-center{justify-items:center}.justify-items-end{justify-items:end}.justify-items-stretch{justify-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-x-0{column-gap:0}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-x-8{column-gap:2rem}.gap-x-10{column-gap:2.5rem}.gap-x-12{column-gap:3rem}.gap-x-14{column-gap:3.5rem}.gap-x-16{column-gap:4rem}.gap-y-0{row-gap:0}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-14{row-gap:3.5rem}.gap-y-16{row-gap:4rem}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.order-none{order:0}.order-first{order:-9999}.order-last{order:9999}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.basis-1{flex-basis:.25rem}.basis-2{flex-basis:.5rem}.basis-4{flex-basis:1rem}.basis-8{flex-basis:2rem}.basis-16{flex-basis:4rem}.basis-1\/5{flex-basis:20%}.flex-initial{flex:0 auto}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.space-x-0>*+*{margin-left:0}.space-x-1>*+*{margin-left:.25rem}.space-x-2>*+*{margin-left:.5rem}.space-x-4>*+*{margin-left:1rem}.space-x-6>*+*{margin-left:1.5rem}.space-x-8>*+*{margin-left:2rem}.space-x-10>*+*{margin-left:2.5rem}.space-x-12>*+*{margin-left:3rem}.space-x-14>*+*{margin-left:3.5rem}.space-x-16>*+*{margin-left:4rem}.space-y-0>*+*{margin-top:0}.space-y-1>*+*{margin-top:.25rem}.space-y-2>*+*{margin-top:.5rem}.space-y-4>*+*{margin-top:1rem}.space-y-6>*+*{margin-top:1.5rem}.space-y-8>*+*{margin-top:2rem}.space-y-10>*+*{margin-top:2.5rem}.space-y-12>*+*{margin-top:3rem}.space-y-14>*+*{margin-top:3.5rem}.space-y-16>*+*{margin-top:4rem}.space-x-reverse>*+*{margin-left:0;margin-right:0}.space-y-reverse>*+*{margin-top:0;margin-bottom:0}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-6{margin:1.5rem}.m-8{margin:2rem}.m-10{margin:2.5rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mr-8{margin-right:2rem}.mr-10{margin-right:2.5rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-10{margin-left:2.5rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-14{padding:3.5rem}.p-16{padding:4rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-16{padding-top:4rem}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pr-10{padding-right:2.5rem}.pr-12{padding-right:3rem}.pr-14{padding-right:3.5rem}.pr-16{padding-right:4rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-14{padding-bottom:3.5rem}.pb-16{padding-bottom:4rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-10{padding-left:2.5rem}.pl-12{padding-left:3rem}.pl-14{padding-left:3.5rem}.pl-16{padding-left:4rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}`,Vo=JSON.parse('{"attention.aria.callout":["En grøn taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opmærksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til højre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}'),Fo=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}'),Lo=JSON.parse('{"attention.aria.callout":["Vihreä puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sisältää tärkeää tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa ylös"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lisätietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa täydentävää tietoa"]}'),qo=JSON.parse('{"attention.aria.callout":["Grønn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til høyre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}'),Wo=JSON.parse('{"attention.aria.callout":["En grön pratbubbla som introducerar något nytt"],"attention.aria.close":["Stäng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar vänster"],"attention.aria.pointingRight":["pekar höger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}'),Bo=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;var Ho=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Yo="border-2 relative flex items-center",Xo="s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted rounded-4 py-6 px-8",Uo="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",Jo="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",Ko="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",Zo="absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",Qo="s-bg-inverted border-[--w-s-color-background-inverted]",Go="bg-[--w-color-callout-background] border-[--w-color-callout-border]",ei="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",ti="bg-[--w-color-callout-background] border-[--w-color-callout-border]",ri={"top-start":"-top-[8px]",top:"-top-[8px]","top-end":"-top-[8px]","right-start":"-right-[8px]",right:"-right-[8px]","right-end":"-right-[8px]","bottom-start":"-bottom-[8px]",bottom:"-bottom-[8px]","bottom-end":"-bottom-[8px]","left-start":"-left-[8px]",left:"-left-[8px]","left-end":"-left-[8px]"};class oi extends ne{static#e=this.styles=[De,Io,Bo,a`#attention{z-index:50;visibility:var(--attention-visibility);display:var(--attention-display);position:absolute}:host([popover]:not(:popover-open):not(dialog[open])){display:contents}`];constructor(){super(),this.show=!1,this.tooltip=!1,this.callout=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.flip=!1,this.crossAxis=!1,this.fallbackPlacements=[],this.attentionState=null,wt(Fo,qo,Lo,Vo,Wo),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(Po).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:\n${JSON.stringify(Object.keys(Po))}`);if(this.fallbackPlacements&&!this.fallbackPlacements.every(e=>Do.includes(e)))throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:\n${JSON.stringify(Do)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},0),this.callout||(window.addEventListener("click",this.handleDone),window.addEventListener("scroll",this.handleDone),window.addEventListener("resize",this.handleDone),window.addEventListener("touch",this.handleDone)),this.tooltip&&(window.addEventListener("mouseover",this.handleDone),window.addEventListener("mouseout",this.handleDone))}disconnectedCallback(){window.removeEventListener("click",this.handleDone),window.removeEventListener("scroll",this.handleDone),window.removeEventListener("resize",this.handleDone),window.removeEventListener("touch",this.handleDone),window.removeEventListener("mouseover",this.handleDone),window.removeEventListener("mouseout",this.handleDone),super.disconnectedCallback()}handleDone(){window.requestAnimationFrame(()=>{this.show&&this._targetEl&&this._attentionEl&&this.attentionState?No(this.attentionState).then(e=>{this._actualDirection=e?.actualDirection}):this._actualDirection=this._initialPlacement})}get _actualDirection(){return this.placement}set _actualDirection(e){this.placement=e}get _arrowEl(){return this.renderRoot.querySelector("#arrow")}get _arrowDirection(){return Po[this._actualDirection]}get _arrowClasses(){const e=ri[this._arrowDirection];return Ee([Zo,this._activeVariantClasses.arrow,e])}get _arrowHtml(){return this.noArrow?B:q`<div id="arrow" class="${this._arrowClasses}"></div>`}get _activeVariantClasses(){return this.callout?{wrapper:Uo,arrow:Go}:this.popover?{wrapper:Ko,arrow:ei}:this.tooltip?{wrapper:Xo,arrow:Qo}:this.highlight?{wrapper:Jo,arrow:ti}:{wrapper:"",arrow:""}}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){const e=this.renderRoot?.querySelector("slot[name='target']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _messageEl(){const e=this.renderRoot.querySelector("slot[name='message']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _wrapperClasses(){return Ee([Yo,this._activeVariantClasses.wrapper])}get _ariaClose(){return ut._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}get _closeBtnHtml(){return q`<w-button aria-label="${this._ariaClose}" @click="${this.close}" @keydown="${this.keypressed}" variant="pill" small="" class="ml-8"><w-icon name="Close" size="small" locale="${ft()}" class="flex"></w-icon></w-button>`}updated(){this._attentionEl&&(this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"flex":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this._arrowEl,attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow,distance:this.distance,skidding:this.skidding,flip:this.flip,crossAxis:this.crossAxis,fallbackPlacements:this.fallbackPlacements},No(this.attentionState))}pointingAtDirection(){switch(Po[this._actualDirection]){case"top-start":case"top":case"top-end":return ut._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right-start":case"right":case"right-end":return ut._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom-start":case"bottom":case"bottom-end":return ut._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left-start":case"left":case"left-end":return ut._({id:"attention.aria.pointingLeft",message:"pointing left",comment:"Default screenreader message for left direction in the attention component"});default:return""}}activeAttentionType(){switch(!0){case this.tooltip:return ut._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return ut._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return ut._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return ut._({id:"attention.aria.highlight",message:"highlighted speech bubble",comment:"Default screenreader message for highlighted speech bubble in the attention component"});default:return""}}defaultAriaLabel(){return`${this.activeAttentionType()} ${this.noArrow?"":this.pointingAtDirection()}`}firstUpdated(){this._initialPlacement=this.placement,this.callout&&this._attentionEl&&(this._attentionEl.style.position="relative")}close(){const e=new CustomEvent("close",{bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}keypressed(e){this.canClose&&"Escape"===e.key&&(e.preventDefault(),this.close())}render(){return this.callout||void 0!==this._targetEl?q`<section class="${Ae(this.className?this.className:void 0)}">${"right-start"===this.placement||"right"===this.placement||"right-end"===this.placement||"bottom-start"===this.placement||"bottom"===this.placement||"bottom-end"===this.placement?q`<slot name="target"></slot><div id="attention" class="${this._wrapperClasses}"><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div><slot name="message"></slot>${this.canClose?this._closeBtnHtml:B}</div>`:q`<div id="attention" class="${this._wrapperClasses}"><slot name="message"></slot><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>${this.canClose?this._closeBtnHtml:B}</div><slot name="target"></slot>`}</section>`:q``}}Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"show",void 0),Ho([ce({type:String,reflect:!1})],oi.prototype,"placement",void 0),Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"tooltip",void 0),Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"callout",void 0),Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"popover",void 0),Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"highlight",void 0),Ho([ce({attribute:"can-close",type:Boolean,reflect:!0})],oi.prototype,"canClose",void 0),Ho([ce({attribute:"no-arrow",type:Boolean,reflect:!0})],oi.prototype,"noArrow",void 0),Ho([ce({type:Number})],oi.prototype,"distance",void 0),Ho([ce({type:Number})],oi.prototype,"skidding",void 0),Ho([ce({type:Boolean,reflect:!0})],oi.prototype,"flip",void 0),Ho([ce({attribute:"cross-axis",type:Boolean,reflect:!0})],oi.prototype,"crossAxis",void 0),Ho([ce({attribute:"fallback-placements",type:Array,reflect:!0,useDefault:!0})],oi.prototype,"fallbackPlacements",void 0),customElements.get("w-attention")||customElements.define("w-attention",oi);const ii=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.backdrop-blur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bg-\\[--w-black\\/70\\]{background-color:rgba(var(--w-rgb-black),.7)}.bg-\\[--w-color-badge-info-background\\]{background-color:var(--w-color-badge-info-background)}.bg-\\[--w-color-badge-negative-background\\]{background-color:var(--w-color-badge-negative-background)}.bg-\\[--w-color-badge-neutral-background\\]{background-color:var(--w-color-badge-neutral-background)}.bg-\\[--w-color-badge-positive-background\\]{background-color:var(--w-color-badge-positive-background)}.bg-\\[--w-color-badge-sponsored-background\\]{background-color:var(--w-color-badge-sponsored-background)}.bg-\\[--w-color-badge-warning-background\\]{background-color:var(--w-color-badge-warning-background)}.border-0{border-width:0}.rounded-4{border-radius:4px}.rounded-bl-0{border-bottom-left-radius:0}.rounded-br-0{border-bottom-right-radius:0}.rounded-tl-0{border-top-left-radius:0}.rounded-tr-0{border-top-right-radius:0}.inline-flex{display:inline-flex}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.absolute{position:absolute}.static{position:static}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-text{color:var(--w-s-color-text)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.px-8{padding-left:.8rem;padding-right:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;var ai=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class ni extends ne{static#e=this.styles=[De,ii];get _class(){const e=this.variant||"neutral";return Ee(["py-4 px-8 border-0 rounded-4 text-xs inline-flex","neutral"===e&&"bg-[--w-color-badge-neutral-background] s-text","info"===e&&"bg-[--w-color-badge-info-background] s-text","positive"===e&&"bg-[--w-color-badge-positive-background] s-text","warning"===e&&"bg-[--w-color-badge-warning-background] s-text","negative"===e&&"bg-[--w-color-badge-negative-background] s-text","disabled"===e&&"s-bg-disabled s-text","price"===e&&"bg-[--w-black/70] s-text-inverted-static","sponsored"===e&&"bg-[--w-color-badge-sponsored-background] s-text",!!this.position&&"absolute backdrop-blur","top-left"===this.position&&"rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0","top-right"===this.position&&"rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0","bottom-right"===this.position&&"rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0","bottom-left"===this.position&&"rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0"])}render(){return q`<div class="${this._class}"><slot></slot></div>`}}ai([ce({type:String,reflect:!0})],ni.prototype,"variant",void 0),ai([ce({type:String,reflect:!0})],ni.prototype,"position",void 0),customElements.get("w-badge")||customElements.define("w-badge",ni);const si=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.p-16{padding:1.6rem}.break-words{overflow-wrap:break-word}@media (width>=480px){.sm\\:rounded-8{border-radius:8px}.sm\\:mx-0{margin-left:0;margin-right:0}}`;var li=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class di extends(ze(ne)){constructor(){super(...arguments),this.bleed=!1,this.bordered=!1,this.info=!1,this.neutral=!1,this.role="region"}static#e=this.styles=[De,si,a`:host{display:block}::slotted(:last-child){margin-bottom:0!important}`];connectedCallback(){super.connectedCallback(),this.internals.role=this.role}updated(e){super.updated(e),e.has("role")&&(this.internals.role=this.role)}get _class(){return Ee(["group block relative break-words last-child:mb-0 p-16 rounded-8",this.bleed&&"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",this.info&&"s-bg-info-subtle",this.neutral&&"s-surface-sunken",this.bordered&&"border-2 s-border s-bg"])}render(){return q`<div class="${this._class}"><slot></slot></div>`}}li([ce({type:Boolean,reflect:!0})],di.prototype,"bleed",void 0),li([ce({type:Boolean,reflect:!0})],di.prototype,"bordered",void 0),li([ce({type:Boolean,reflect:!0})],di.prototype,"info",void 0),li([ce({type:Boolean,reflect:!0})],di.prototype,"neutral",void 0),li([ce({type:String,reflect:!0,useDefault:!0})],di.prototype,"role",void 0),customElements.get("w-box")||customElements.define("w-box",di);const ci=JSON.parse('{"breadcrumbs.ariaLabel":["Du er her"]}'),hi=JSON.parse('{"breadcrumbs.ariaLabel":["You are here"]}'),ui=JSON.parse('{"breadcrumbs.ariaLabel":["Olet tässä"]}'),pi=JSON.parse('{"breadcrumbs.ariaLabel":["Her er du"]}'),bi=JSON.parse('{"breadcrumbs.ariaLabel":["Du är här"]}'),gi=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.static{position:static}.s-text{color:var(--w-s-color-text)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.space-x-8>:not([hidden])~:not([hidden]){--w-space-x-reverse:0;margin-left:calc(.8rem*calc(1 - var(--w-space-x-reverse)));margin-right:calc(.8rem*var(--w-space-x-reverse))}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}`,mi="flex space-x-8",vi="s-text",fi="s-text-link",wi="sr-only",yi=q`<span class="${"select-none s-icon"}">/</span>`;class xi extends ne{static#e=this.styles=[De,gi];constructor(){super(),this._internals=this.attachInternals(),wt(hi,pi,ui,ci,bi),this._internals.ariaLabel=ut._({id:"breadcrumbs.ariaLabel",message:"You are here",comment:"Default screen reader message for the breadcrumb component"})}connectedCallback(){super.connectedCallback(),this._internals.role="navigation";const e=Array.from(this.children).flat(Number.POSITIVE_INFINITY).filter(e=>e).map((e,t)=>{if("string"==typeof e){const r=t===this.children.length-1;return q`<span class="${vi}" aria-current="${r?"page":void 0}">${e}</span>`}return e.classList.add("A"===e.tagName?fi:vi),e});this._children=function(e,t){return e.flatMap(e=>[e,t]).slice(0,-1)}(e,yi)}render(){return q`<nav aria-labelledby="breadCrumbLabel"><h2 id="breadCrumbLabel" class="${wi}">${this.ariaLabel}</h2><div class="${mi}">${this._children}</div></nav>`}}customElements.get("w-breadcrumbs")||customElements.define("w-breadcrumbs",xi);const ki=JSON.parse('{"card.button.text":["Vælg"]}'),_i=JSON.parse('{"card.button.text":["Select"]}'),$i=JSON.parse('{"card.button.text":["Valitse"]}'),Si=JSON.parse('{"card.button.text":["Velg"]}'),Ei=JSON.parse('{"card.button.text":["Välj"]}'),Ci=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.outline{outline-style:solid}.inset-0{top:0;bottom:0;left:0;right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.\\!s-bg-selected{background-color:var(--w-s-color-background-selected)!important}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.\\!hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)!important}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.\\!active\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)!important}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.group:hover .group-hover\\:s-border-selected-hover{border-color:var(--w-s-color-border-selected-hover)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\:s-border-selected-hover:hover{border-color:var(--w-s-color-border-selected-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\:s-border-selected-active:active{border-color:var(--w-s-color-border-selected-active)}.group:active .group-active\\:s-border-active{border-color:var(--w-s-color-border-active)}.group:active .group-active\\:s-border-selected-active{border-color:var(--w-s-color-border-selected-active)}.s-surface-elevated-200{background-color:var(--w-s-color-surface-elevated-200);box-shadow:var(--w-s-shadow-surface-elevated-200)}.hover\\:s-surface-elevated-200-hover:hover{background-color:var(--w-s-color-surface-elevated-200-hover);box-shadow:var(--w-s-shadow-surface-elevated-200-hover)}.active\\:s-surface-elevated-200-active:active{background-color:var(--w-s-color-surface-elevated-200-active);box-shadow:var(--w-s-shadow-surface-elevated-200-active)}.cursor-pointer{cursor:pointer}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}`;var Oi=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const zi="cursor-pointer overflow-hidden relative transition-all",Ai="group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active",Di="!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active",Pi="absolute border-2 rounded-8 inset-0 transition-all",Mi="border-transparent group-active:s-border-active",Ti="s-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active",ji="border-2 rounded-4",Ri="s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",Ni="s-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active",Ii="sr-only",Vi="Enter",Fi=" ";class Li extends ne{static#e=this.styles=[De,Ci,a`a:after{content:"";position:absolute;inset:0}:host{display:block}`];constructor(){super(),this.selected=!1,this.flat=!1,this.clickable=!1,wt(_i,Si,$i,ki,Ei),this.buttonText=ut._({id:"card.button.text",message:"Select",comment:"Screenreader message to indicate that the card is clickable"})}get _containerClasses(){return Ee([zi,this.flat?ji:Ai,this.selected&&!this.flat&&Di,this.selected&&this.flat?Ni:Ri])}get _outlineClasses(){return Ee([Pi,this.selected?Ti:Mi])}get _interactiveElement(){return this.clickable?(()=>q`<button class="${Ii}" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`)():this.selected?q`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`:""}keypressed(e){!this.clickable||e.altKey||e.ctrlKey||e.key!==Vi&&e.key!==Fi||(e.preventDefault(),this.click())}render(){return q`<div tabindex="${Ae(this.clickable?"0":void 0)}" class="${this._containerClasses}" @keydown="${this.keypressed}">${this._interactiveElement} ${this.flat?"":q`<div class="${this._outlineClasses}"></div>`}<slot></slot></div>`}}Oi([ce({type:Boolean,reflect:!0})],Li.prototype,"selected",void 0),Oi([ce({type:Boolean})],Li.prototype,"flat",void 0),Oi([ce({type:Boolean})],Li.prototype,"clickable",void 0),customElements.get("w-card")||customElements.define("w-card",Li)
|
|
58
|
+
*/const De=e=>e??H,Pe=a`*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border)}html{font-size:62.5%}body{background-color:var(--w-s-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text)}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:1px}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{border:0;min-width:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}svg{pointer-events:none}`;i('*, :before, :after {\n --w-rotate: 0;\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-scale-x: 1;\n --w-scale-y: 1;\n --w-scale-z: 1;\n --w-skew-x: 0;\n --w-skew-y: 0;\n --w-translate-x: 0;\n --w-translate-y: 0;\n --w-translate-z: 0\n }\n\n .h4, .t4 {\n font-weight: 700;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .t3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n\n @media (min-width: 480px) {\n .sm\\:h3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n }\n\n .text-center {\n text-align: center\n }\n\n .before\\:text-center:before {\n text-align: center\n }\n\n .text-left {\n text-align: left\n }\n\n .text-right {\n text-align: right\n }\n\n .align-middle {\n vertical-align: middle\n }\n\n .animate-inprogress {\n background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;\n background-size: 30px 30px;\n animation: animate-inprogress 3s linear infinite\n }\n\n @keyframes animate-inprogress {\n 0% {\n background-position: 0 0\n }\n to {\n background-position: 60px 0\n }\n }\n\n .\\[--w-modal-max-height\\:80\\%\\] {\n --w-modal-max-height: 80%\n }\n\n .\\[--w-modal-width\\:640px\\] {\n --w-modal-width: 640px\n }\n\n .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {\n --w-outline-offset: -2px\n }\n\n .backdrop-blur {\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:bg-center:before {\n background-position: center\n }\n\n .hover\\:bg-clip-padding:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box\n }\n\n .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {\n background-color: transparent\n }\n\n .bg-\\[--w-black\\/25\\] {\n background-color: rgba(var(--w-rgb-black), .25)\n }\n\n .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {\n background-color: rgba(var(--w-rgb-black), .7)\n }\n\n .bg-\\[--w-color-badge-info-background\\] {\n background-color: var(--w-color-badge-info-background)\n }\n\n .bg-\\[--w-color-badge-negative-background\\] {\n background-color: var(--w-color-badge-negative-background)\n }\n\n .bg-\\[--w-color-badge-neutral-background\\] {\n background-color: var(--w-color-badge-neutral-background)\n }\n\n .bg-\\[--w-color-badge-positive-background\\] {\n background-color: var(--w-color-badge-positive-background)\n }\n\n .bg-\\[--w-color-badge-sponsored-background\\] {\n background-color: var(--w-color-badge-sponsored-background)\n }\n\n .bg-\\[--w-color-badge-warning-background\\] {\n background-color: var(--w-color-badge-warning-background)\n }\n\n .bg-\\[--w-color-button-primary-background\\] {\n background-color: var(--w-color-button-primary-background)\n }\n\n .bg-\\[--w-color-buttongroup-utility-background-selected\\] {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .bg-\\[--w-color-callout-background\\] {\n background-color: var(--w-color-callout-background)\n }\n\n .bg-\\[--w-color-pill-suggestion-background\\] {\n background-color: var(--w-color-pill-suggestion-background)\n }\n\n .bg-\\[--w-color-switch-track-background\\] {\n background-color: var(--w-color-switch-track-background)\n }\n\n .bg-\\[--w-s-color-surface-elevated-100\\] {\n background-color: var(--w-s-color-surface-elevated-100)\n }\n\n .bg-\\[--w-s-color-surface-elevated-300\\] {\n background-color: var(--w-s-color-surface-elevated-300)\n }\n\n .bg-\\[--w-s-icon-selected\\] {\n background-color: var(--w-s-icon-selected)\n }\n\n .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {\n background-color: var(--w-color-switch-track-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {\n background-color: var(--w-color-button-pill-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {\n background-color: var(--w-color-button-primary-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {\n background-color: var(--w-color-buttongroup-utility-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {\n background-color: var(--w-color-pill-suggestion-background-hover)\n }\n\n .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {\n background-color: var(--w-s-icon-subtle)\n }\n\n .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {\n background-color: rgba(var(--w-rgb-black), .85)\n }\n\n .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {\n background-color: var(--w-color-button-pill-background-active)\n }\n\n .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {\n background-color: var(--w-color-button-primary-background-active)\n }\n\n .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {\n background-color: var(--w-color-pill-suggestion-background-active)\n }\n\n .active\\:bg-\\[var\\(--w-black\\)\\]:active {\n background-color: var(--w-black)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {\n background-image: var(--w-icon-toggle-checked)\n }\n\n .appearance-none {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none\n }\n\n .will-change-height {\n will-change: height\n }\n\n .border, .border-1 {\n border-width: 1px\n }\n\n .border-b {\n border-bottom-width: 1px\n }\n\n .before\\:border:before {\n border-width: 1px\n }\n\n .border-0 {\n border-width: 0\n }\n\n .border-2 {\n border-width: 2px\n }\n\n .border-b-0 {\n border-bottom-width: 0\n }\n\n .border-b-4 {\n border-bottom-width: 4px\n }\n\n .border-l-4 {\n border-left-width: 4px\n }\n\n .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {\n border-right-width: 0\n }\n\n .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {\n border-width: .6rem\n }\n\n .border-transparent {\n border-color: transparent\n }\n\n .border-\\[--w-color-buttongroup-utility-border\\] {\n border-color: var(--w-color-buttongroup-utility-border)\n }\n\n .border-\\[--w-color-callout-border\\] {\n border-color: var(--w-color-callout-border)\n }\n\n .border-\\[--w-s-color-background-inverted\\] {\n border-color: var(--w-s-color-background-inverted)\n }\n\n .border-\\[--w-s-color-surface-elevated-300\\] {\n border-color: var(--w-s-color-surface-elevated-300)\n }\n\n .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {\n border-color: var(--w-color-buttongroup-utility-border-selected)\n }\n\n .divide-x > * + * {\n --w-divide-x-reverse: 0;\n border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));\n border-right-width: calc(1px * var(--w-divide-x-reverse))\n }\n\n .divide-y > * + * {\n --w-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--w-divide-y-reverse))\n }\n\n .rounded-4 {\n border-radius: 4px\n }\n\n .rounded-8 {\n border-radius: 8px\n }\n\n .rounded-full {\n border-radius: 9999px\n }\n\n .before\\:rounded-2:before {\n border-radius: 2px\n }\n\n .before\\:rounded-full:before {\n border-radius: 9999px\n }\n\n .rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-bl-0 {\n border-bottom-left-radius: 0\n }\n\n .rounded-br-0 {\n border-bottom-right-radius: 0\n }\n\n .rounded-l-0 {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n }\n\n .rounded-l-full {\n border-top-left-radius: 9999px;\n border-bottom-left-radius: 9999px\n }\n\n .rounded-r-0 {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-r-full {\n border-top-right-radius: 9999px;\n border-bottom-right-radius: 9999px\n }\n\n .rounded-tl-0 {\n border-top-left-radius: 0\n }\n\n .rounded-tl-4 {\n border-top-left-radius: 4px\n }\n\n .rounded-tr-0 {\n border-top-right-radius: 0\n }\n\n .group:first-of-type .group-first-of-type\\:rounded-bl-8 {\n border-bottom-left-radius: 8px\n }\n\n .group:first-of-type .group-first-of-type\\:rounded-tl-8 {\n border-top-left-radius: 8px\n }\n\n .first\\:rounded-lb-4:first-child {\n border-bottom-left-radius: 4px\n }\n\n .first\\:rounded-lt-4:first-child {\n border-top-left-radius: 4px\n }\n\n .first\\:rounded-rt-4:first-child {\n border-top-right-radius: 4px\n }\n\n .group:last-of-type .group-last-of-type\\:rounded-br-8 {\n border-bottom-right-radius: 8px\n }\n\n .group:last-of-type .group-last-of-type\\:rounded-tr-8 {\n border-top-right-radius: 8px\n }\n\n .last\\:rounded-lb-4:last-child {\n border-bottom-left-radius: 4px\n }\n\n .last\\:rounded-rb-4:last-child {\n border-bottom-right-radius: 4px\n }\n\n .last\\:rounded-rt-4:last-child {\n border-top-right-radius: 4px\n }\n\n .caret-current {\n caret-color: currentColor\n }\n\n .opacity-25 {\n opacity: 25%\n }\n\n .block {\n display: block\n }\n\n .before\\:block:before {\n display: block\n }\n\n .inline-block {\n display: inline-block\n }\n\n .inline {\n display: inline\n }\n\n .flex, .open\\:flex[open] {\n display: flex\n }\n\n .inline-flex {\n display: inline-flex\n }\n\n .grid {\n display: grid\n }\n\n .inline-grid {\n display: inline-grid\n }\n\n .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {\n display: none\n }\n\n .before\\:hidden:before {\n display: none\n }\n\n .hover\\:underline:hover {\n text-decoration-line: underline\n }\n\n .focus\\:underline:focus {\n text-decoration-line: underline\n }\n\n .focus-visible\\:underline:focus-visible {\n text-decoration-line: underline\n }\n\n .active\\:underline:active {\n text-decoration-line: underline\n }\n\n .hover\\:no-underline:hover {\n text-decoration: none\n }\n\n .focus\\:no-underline:focus {\n text-decoration: none\n }\n\n .active\\:no-underline:active {\n text-decoration: none\n }\n\n .flex-1 {\n flex: 1 1 0%\n }\n\n .shrink {\n flex-shrink: 1\n }\n\n .shrink-0 {\n flex-shrink: 0\n }\n\n .shrink-0\\! {\n flex-shrink: 0 !important\n }\n\n .grow, .grow-1 {\n flex-grow: 1\n }\n\n .basis-auto {\n flex-basis: auto\n }\n\n .flex-col {\n flex-direction: column\n }\n\n .focus-within\\:focusable:focus-within {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:focus, .focusable:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:not(:focus-visible) {\n outline: none\n }\n\n .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .peer:not(:focus-visible) ~ .peer-focus\\:focusable {\n outline: none\n }\n\n .focusable-inset {\n --w-outline-offset: -3px\n }\n\n .gap-12 {\n gap: 1.2rem\n }\n\n .gap-8 {\n gap: .8rem\n }\n\n .gap-x-16 {\n column-gap: 1.6rem\n }\n\n .gap-y-16 {\n row-gap: 1.6rem\n }\n\n .row-span-2 {\n grid-row: span 2/span 2\n }\n\n .col-span-2 {\n grid-column: span 2/span 2\n }\n\n .col-span-3 {\n grid-column: span 3/span 3\n }\n\n .row-start-1 {\n grid-row-start: 1\n }\n\n .row-start-2 {\n grid-row-start: 2\n }\n\n .col-start-2 {\n grid-column-start: 2\n }\n\n .auto-rows-auto {\n grid-auto-rows: auto\n }\n\n .grid-flow-col {\n grid-auto-flow: column\n }\n\n .grid-rows-\\[20px_auto\\] {\n grid-template-rows:20px auto\n }\n\n .grid-rows-\\[auto_20px\\] {\n grid-template-rows:auto 20px\n }\n\n .grid-cols-\\[1fr_20px_1fr\\] {\n grid-template-columns:1fr 20px 1fr\n }\n\n .grid-cols-\\[1fr_20px\\] {\n grid-template-columns:1fr 20px\n }\n\n .grid-cols-\\[20px_1fr\\] {\n grid-template-columns:20px 1fr\n }\n\n .grid-cols-\\[auto_1fr_auto\\] {\n grid-template-columns:auto 1fr auto\n }\n\n .grid-cols-1 {\n grid-template-columns:repeat(1, minmax(0, 1fr))\n }\n\n .grid-cols-2 {\n grid-template-columns:repeat(2, minmax(0, 1fr))\n }\n\n .grid-cols-3 {\n grid-template-columns:repeat(3, minmax(0, 1fr))\n }\n\n .grid-cols-4 {\n grid-template-columns:repeat(4, minmax(0, 1fr))\n }\n\n .grid-cols-5 {\n grid-template-columns:repeat(5, minmax(0, 1fr))\n }\n\n .grid-cols-6 {\n grid-template-columns:repeat(6, minmax(0, 1fr))\n }\n\n .grid-cols-7 {\n grid-template-columns:repeat(7, minmax(0, 1fr))\n }\n\n .grid-cols-8 {\n grid-template-columns:repeat(8, minmax(0, 1fr))\n }\n\n .grid-cols-9 {\n grid-template-columns:repeat(9, minmax(0, 1fr))\n }\n\n .overflow-hidden {\n overflow: hidden\n }\n\n .overflow-x-hidden {\n overflow-x: hidden\n }\n\n .overflow-y-auto {\n overflow-y: auto\n }\n\n .list-none {\n list-style-type: none\n }\n\n .outline-\\[--w-s-color-border-negative\\]\\! {\n outline-color: var(--w-s-color-border-negative) !important\n }\n\n .outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .items-start {\n align-items: flex-start\n }\n\n .items-end {\n align-items: flex-end\n }\n\n .items-center {\n align-items: center\n }\n\n .self-center {\n align-self: center\n }\n\n .inset-0 {\n top: 0rem;\n right: 0rem;\n bottom: 0rem;\n left: 0rem\n }\n\n .-bottom-0 {\n bottom: -0rem\n }\n\n .bottom-0 {\n bottom: 0rem\n }\n\n .bottom-10 {\n bottom: 1rem\n }\n\n .bottom-16 {\n bottom: 1.6rem\n }\n\n .left-0 {\n left: 0rem\n }\n\n .left-4 {\n left: .4rem\n }\n\n .right-0 {\n right: 0rem\n }\n\n .right-8 {\n right: .8rem\n }\n\n .top-\\[1\\.92rem\\] {\n top: 1.92rem\n }\n\n .top-0 {\n top: 0rem\n }\n\n .top-20 {\n top: 2rem\n }\n\n .top-4 {\n top: .4rem\n }\n\n .top-8 {\n top: .8rem\n }\n\n .before\\:bottom-0:before {\n bottom: 0rem\n }\n\n .before\\:left-0:before {\n left: 0rem\n }\n\n .before\\:right-0:before {\n right: 0rem\n }\n\n .before\\:top-2:before {\n top: .2rem\n }\n\n .-bottom-\\[8px\\] {\n bottom: -8px\n }\n\n .-left-\\[8px\\] {\n left: -8px\n }\n\n .-right-\\[8px\\] {\n right: -8px\n }\n\n .-top-\\[8px\\] {\n top: -8px\n }\n\n .top-\\[19px\\] {\n top: 19px\n }\n\n .top-\\[30\\%\\] {\n top: 30%\n }\n\n .justify-end {\n justify-content: flex-end\n }\n\n .justify-center {\n justify-content: center\n }\n\n .justify-between {\n justify-content: space-between\n }\n\n .justify-items-center {\n justify-items: center\n }\n\n .justify-self-start {\n justify-self: start\n }\n\n .justify-self-end {\n justify-self: end\n }\n\n .justify-self-center {\n justify-self: center\n }\n\n .absolute {\n position: absolute\n }\n\n .fixed {\n position: fixed\n }\n\n .relative {\n position: relative\n }\n\n .open\\:fixed[open] {\n position: fixed\n }\n\n .before\\:absolute:before {\n position: absolute\n }\n\n .z-10, .peer:checked ~ .peer-checked\\:z-10 {\n z-index: 10\n }\n\n .z-30 {\n z-index: 30\n }\n\n .z-50 {\n z-index: 50\n }\n\n .hover\\:z-30:hover {\n z-index: 30\n }\n\n .\\!s-bg-selected {\n background-color: var(--w-s-color-background-selected) !important\n }\n\n .s-bg {\n background-color: var(--w-s-color-background)\n }\n\n .s-bg-disabled {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .s-bg-disabled-subtle {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .s-bg-info-subtle {\n background-color: var(--w-s-color-background-info-subtle)\n }\n\n .s-bg-inverted {\n background-color: var(--w-s-color-background-inverted)\n }\n\n .s-bg-negative {\n background-color: var(--w-s-color-background-negative)\n }\n\n .s-bg-negative-subtle {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .s-bg-positive-subtle {\n background-color: var(--w-s-color-background-positive-subtle)\n }\n\n .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {\n background-color: var(--w-s-color-background-primary)\n }\n\n .s-bg-selected {\n background-color: var(--w-s-color-background-selected)\n }\n\n .s-bg-subtle {\n background-color: var(--w-s-color-background-subtle)\n }\n\n .s-bg-warning-subtle {\n background-color: var(--w-s-color-background-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\!hover\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover) !important\n }\n\n .group:hover .group-hover\\:s-bg-primary-hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\:before\\:s-bg-hover:hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\:s-bg-hover:hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\:s-bg-negative-hover:hover {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .hover\\:s-bg-negative-subtle-hover:hover {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\:s-bg-primary-hover:hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover)\n }\n\n .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .focus\\:s-bg-primary-hover:focus {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\!active\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active) !important\n }\n\n .active\\:s-bg-active:active {\n background-color: var(--w-s-color-background-active)\n }\n\n .active\\:s-bg-negative-active:active {\n background-color: var(--w-s-color-background-negative-active)\n }\n\n .active\\:s-bg-negative-subtle-active:active {\n background-color: var(--w-s-color-background-negative-subtle-active)\n }\n\n .active\\:s-bg-primary-active:active {\n background-color: var(--w-s-color-background-primary-active)\n }\n\n .active\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active)\n }\n\n .before\\:s-bg-disabled-subtle:before {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .before\\:s-bg:before {\n background-color: var(--w-s-color-background)\n }\n\n .s-text {\n color: var(--w-s-color-text)\n }\n\n .s-text-disabled {\n color: var(--w-s-color-text-disabled)\n }\n\n .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {\n color: var(--w-s-color-text-inverted)\n }\n\n .s-text-inverted-static {\n color: var(--w-s-color-text-inverted-static)\n }\n\n .s-text-link {\n color: var(--w-s-color-text-link)\n }\n\n .s-text-negative {\n color: var(--w-s-color-text-negative)\n }\n\n .s-text-subtle {\n color: var(--w-s-color-text-subtle)\n }\n\n .hover\\:s-text-link:hover {\n color: var(--w-s-color-text-link)\n }\n\n .active\\:s-text:active {\n color: var(--w-s-color-text)\n }\n\n .placeholder\\:s-text-placeholder::placeholder {\n color: var(--w-s-color-text-placeholder)\n }\n\n .s-icon {\n color: var(--w-s-color-icon)\n }\n\n .s-icon-info {\n color: var(--w-s-color-icon-info)\n }\n\n .s-icon-inverted {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-icon-negative {\n color: var(--w-s-color-icon-negative)\n }\n\n .s-icon-positive {\n color: var(--w-s-color-icon-positive)\n }\n\n .s-icon-warning {\n color: var(--w-s-color-icon-warning)\n }\n\n .hover\\:s-icon-hover:hover {\n color: var(--w-s-color-icon-hover)\n }\n\n .active\\:s-icon-active:active {\n color: var(--w-s-color-icon-active)\n }\n\n .before\\:s-icon-inverted:before {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-border {\n border-color: var(--w-s-color-border)\n }\n\n .s-border-disabled {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .s-border-info-subtle {\n border-color: var(--w-s-color-border-info-subtle)\n }\n\n .s-border-l-info {\n border-left-color: var(--w-s-color-border-info)\n }\n\n .s-border-l-negative {\n border-left-color: var(--w-s-color-border-negative)\n }\n\n .s-border-l-positive {\n border-left-color: var(--w-s-color-border-positive)\n }\n\n .s-border-l-warning {\n border-left-color: var(--w-s-color-border-warning)\n }\n\n .s-border-negative {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-border-negative-subtle {\n border-color: var(--w-s-color-border-negative-subtle)\n }\n\n .s-border-positive-subtle {\n border-color: var(--w-s-color-border-positive-subtle)\n }\n\n .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {\n border-color: var(--w-s-color-border-primary)\n }\n\n .s-border-selected {\n border-color: var(--w-s-color-border-selected)\n }\n\n .s-border-warning-subtle {\n border-color: var(--w-s-color-border-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {\n border-color: var(--w-s-color-border-selected)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .group:hover .group-hover\\:s-border-selected-hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .hover\\:before\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\:before\\:s-border-primary:hover:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\:s-border-disabled:hover {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .hover\\:s-border-hover:hover {\n border-color: var(--w-s-color-border-hover)\n }\n\n .hover\\:s-border-negative-hover:hover {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\:s-border-primary-hover:hover {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .hover\\:s-border-primary:hover {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\:s-border-selected-hover:hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .focus\\:s-border-primary-hover:focus {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .active\\:s-border-active:active {\n border-color: var(--w-s-color-border-active)\n }\n\n .active\\:s-border-disabled:active {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .active\\:s-border-primary-active:active {\n border-color: var(--w-s-color-border-primary-active)\n }\n\n .active\\:s-border-selected-active:active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .active\\:s-border-selected:active {\n border-color: var(--w-s-color-border-selected)\n }\n\n .group:active .group-active\\:s-border-active {\n border-color: var(--w-s-color-border-active)\n }\n\n .group:active .group-active\\:s-border-selected-active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-surface-sunken {\n background-color: var(--w-s-color-surface-sunken)\n }\n\n .s-surface-elevated-200 {\n background-color: var(--w-s-color-surface-elevated-200);\n box-shadow: var(--w-s-shadow-surface-elevated-200)\n }\n\n .hover\\:s-surface-elevated-200-hover:hover {\n background-color: var(--w-s-color-surface-elevated-200-hover);\n box-shadow: var(--w-s-shadow-surface-elevated-200-hover)\n }\n\n .active\\:s-surface-elevated-200-active:active {\n background-color: var(--w-s-color-surface-elevated-200-active);\n box-shadow: var(--w-s-shadow-surface-elevated-200-active)\n }\n\n .drop-shadow-m {\n filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)\n }\n\n .shadow-m {\n box-shadow: var(--w-shadow-m)\n }\n\n .shadow-s {\n box-shadow: var(--w-shadow-s)\n }\n\n .shadow-\\[--w-shadow-slider\\] {\n box-shadow: var(--w-shadow-slider)\n }\n\n .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {\n box-shadow: var(--w-shadow-slider-handle-active)\n }\n\n .h-0 {\n height: 0rem\n }\n\n .h-16 {\n height: 1.6rem\n }\n\n .h-2 {\n height: .2rem\n }\n\n .h-20 {\n height: 2rem\n }\n\n .h-24 {\n height: 2.4rem\n }\n\n .h-4 {\n height: .4rem\n }\n\n .h-44 {\n height: 4.4rem\n }\n\n .h-6 {\n height: .6rem\n }\n\n .h-8 {\n height: .8rem\n }\n\n .h-full {\n height: 100%\n }\n\n .h-unset {\n height: unset\n }\n\n .max-h-unset {\n max-height: unset\n }\n\n .max-w-full {\n max-width: 100%\n }\n\n .max-w-max {\n max-width: max-content\n }\n\n .max-w-unset {\n max-width: unset\n }\n\n .min-h-32 {\n min-height: 3.2rem\n }\n\n .min-h-40 {\n min-height: 4rem\n }\n\n .min-w-16 {\n min-width: 1.6rem\n }\n\n .min-w-32 {\n min-width: 3.2rem\n }\n\n .w-16 {\n width: 1.6rem\n }\n\n .w-2 {\n width: .2rem\n }\n\n .w-20 {\n width: 2rem\n }\n\n .w-24 {\n width: 2.4rem\n }\n\n .w-32 {\n width: 3.2rem\n }\n\n .w-40 {\n width: 4rem\n }\n\n .w-44 {\n width: 4.4rem\n }\n\n .w-8 {\n width: .8rem\n }\n\n .w-full {\n width: 100%\n }\n\n .w-max {\n width: max-content\n }\n\n .w-unset {\n width: unset\n }\n\n .before\\:h-20:before {\n height: 2rem\n }\n\n .before\\:h-full:before {\n height: 100%\n }\n\n .before\\:w-20:before {\n width: 2rem\n }\n\n .before\\:w-32:before {\n width: 3.2rem\n }\n\n .h-\\[--w-modal-height\\] {\n height: var(--w-modal-height)\n }\n\n .h-\\[14px\\] {\n height: 14px\n }\n\n .h-\\[16px\\] {\n height: 16px\n }\n\n .max-h-\\[--w-modal-max-height\\] {\n max-height: var(--w-modal-max-height)\n }\n\n .min-h-\\[--w-modal-min-height\\] {\n min-height: var(--w-modal-min-height)\n }\n\n .min-h-\\[32px\\] {\n min-height: 32px\n }\n\n .min-h-\\[40px\\] {\n min-height: 40px\n }\n\n .min-h-\\[42\\] {\n min-height: 4.2rem\n }\n\n .min-h-\\[44px\\] {\n min-height: 44px\n }\n\n .min-w-\\[32px\\] {\n min-width: 32px\n }\n\n .min-w-\\[40px\\] {\n min-width: 40px\n }\n\n .min-w-\\[44px\\] {\n min-width: 44px\n }\n\n .w-\\[--w-modal-width\\] {\n width: var(--w-modal-width)\n }\n\n .w-\\[14px\\] {\n width: 14px\n }\n\n .w-\\[16px\\] {\n width: 16px\n }\n\n .space-x-8 > :not([hidden]) ~ :not([hidden]) {\n --w-space-x-reverse: 0;\n margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));\n margin-right: calc(.8rem * var(--w-space-x-reverse))\n }\n\n .space-y-16 > :not([hidden]) ~ :not([hidden]) {\n --w-space-y-reverse: 0;\n margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));\n margin-bottom: calc(1.6rem * var(--w-space-y-reverse))\n }\n\n .m-0 {\n margin: 0rem\n }\n\n .m-auto {\n margin: auto\n }\n\n .-mx-16 {\n margin-left: -1.6rem;\n margin-right: -1.6rem\n }\n\n .mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .mx-8 {\n margin-left: .8rem;\n margin-right: .8rem\n }\n\n .mx-auto {\n margin-left: auto;\n margin-right: auto\n }\n\n .-mb-1 {\n margin-bottom: -.1rem\n }\n\n .-ml-8 {\n margin-left: -.8rem\n }\n\n .-mr-1 {\n margin-right: -.1rem\n }\n\n .-mr-8 {\n margin-right: -.8rem\n }\n\n .-mt-2 {\n margin-top: -.2rem\n }\n\n .-mt-4 {\n margin-top: -.4rem\n }\n\n .last-child\\:mb-0 > :last-child, .mb-0 {\n margin-bottom: 0rem\n }\n\n .mb-32 {\n margin-bottom: 3.2rem\n }\n\n .ml-8 {\n margin-left: .8rem\n }\n\n .ml-auto {\n margin-left: auto\n }\n\n .mr-8 {\n margin-right: .8rem\n }\n\n .mt-16 {\n margin-top: 1.6rem\n }\n\n .mt-4 {\n margin-top: .4rem\n }\n\n .group:not(:first-child) .group-not-first\\:-ml-2 {\n margin-left: -.2rem\n }\n\n .last\\:mb-0:last-child {\n margin-bottom: 0rem\n }\n\n .last\\:mr-0:last-child {\n margin-right: 0rem\n }\n\n .m-\\[8px\\] {\n margin: 8px\n }\n\n .p-0 {\n padding: 0rem\n }\n\n .p-16 {\n padding: 1.6rem\n }\n\n .p-4 {\n padding: .4rem\n }\n\n .p-8 {\n padding: .8rem\n }\n\n .px-0 {\n padding-left: 0rem;\n padding-right: 0rem\n }\n\n .px-1 {\n padding-left: .1rem;\n padding-right: .1rem\n }\n\n .px-12 {\n padding-left: 1.2rem;\n padding-right: 1.2rem\n }\n\n .px-14 {\n padding-left: 1.4rem;\n padding-right: 1.4rem\n }\n\n .px-16 {\n padding-left: 1.6rem;\n padding-right: 1.6rem\n }\n\n .px-8 {\n padding-left: .8rem;\n padding-right: .8rem\n }\n\n .py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .py-1 {\n padding-top: .1rem;\n padding-bottom: .1rem\n }\n\n .py-10 {\n padding-top: 1rem;\n padding-bottom: 1rem\n }\n\n .py-12 {\n padding-top: 1.2rem;\n padding-bottom: 1.2rem\n }\n\n .py-2 {\n padding-top: .2rem;\n padding-bottom: .2rem\n }\n\n .py-4 {\n padding-top: .4rem;\n padding-bottom: .4rem\n }\n\n .py-6 {\n padding-top: .6rem;\n padding-bottom: .6rem\n }\n\n .py-8 {\n padding-top: .8rem;\n padding-bottom: .8rem\n }\n\n .pb-0 {\n padding-bottom: 0rem\n }\n\n .pb-32 {\n padding-bottom: 3.2rem\n }\n\n .pb-4 {\n padding-bottom: .4rem\n }\n\n .pb-8 {\n padding-bottom: .8rem\n }\n\n .pl-0 {\n padding-left: 0rem\n }\n\n .pl-1 {\n padding-left: .1rem\n }\n\n .pl-12 {\n padding-left: 1.2rem\n }\n\n .pl-28 {\n padding-left: 2.8rem\n }\n\n .pl-4 {\n padding-left: .4rem\n }\n\n .pl-8 {\n padding-left: .8rem\n }\n\n .pr-12 {\n padding-right: 1.2rem\n }\n\n .pr-14 {\n padding-right: 1.4rem\n }\n\n .pr-2 {\n padding-right: .2rem\n }\n\n .pr-32 {\n padding-right: 3.2rem\n }\n\n .pr-40 {\n padding-right: 4rem\n }\n\n .pt-0 {\n padding-top: 0rem\n }\n\n .pt-1 {\n padding-top: .1rem\n }\n\n .pt-16 {\n padding-top: 1.6rem\n }\n\n .pt-24 {\n padding-top: 2.4rem\n }\n\n .pt-8 {\n padding-top: .8rem\n }\n\n .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {\n padding-bottom: 0rem\n }\n\n .last\\:pb-1:last-child {\n padding-bottom: .1rem\n }\n\n .last\\:pr-1:last-child {\n padding-right: .1rem\n }\n\n .p-\\[8px\\] {\n padding: 8px\n }\n\n .px-\\[15px\\] {\n padding-left: 15px;\n padding-right: 15px\n }\n\n .px-\\[8px\\] {\n padding-left: 8px;\n padding-right: 8px\n }\n\n .py-\\[11px\\] {\n padding-top: 11px;\n padding-bottom: 11px\n }\n\n .py-\\[5px\\] {\n padding-top: 5px;\n padding-bottom: 5px\n }\n\n .py-\\[7px\\] {\n padding-top: 7px;\n padding-bottom: 7px\n }\n\n .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {\n padding-left: var(--w-prefix-width, 40px)\n }\n\n .invisible {\n visibility: hidden\n }\n\n .backface-hidden {\n backface-visibility: hidden\n }\n\n .break-words {\n overflow-wrap: break-word\n }\n\n .before\\:content-\\[\\"–\\"\\]:before {\n content: "–"\n }\n\n .before\\:content-\\[\\"\\"\\]:before {\n content: ""\n }\n\n .cursor-default {\n cursor: default\n }\n\n .cursor-pointer {\n cursor: pointer\n }\n\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale\n }\n\n .font-bold {\n font-weight: 700\n }\n\n .before\\:font-bold:before {\n font-weight: 700\n }\n\n .font-normal {\n font-weight: 400\n }\n\n .pointer-events-auto {\n pointer-events: auto\n }\n\n .pointer-events-none {\n pointer-events: none\n }\n\n .before\\:pointer-events-none:before {\n pointer-events: none\n }\n\n .pb-safe-\\[32\\] {\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0\n }\n\n .touch-pan-y {\n touch-action: pan-y\n }\n\n .select-none {\n -webkit-user-select: none;\n user-select: none\n }\n\n .translate-x-20 {\n --w-translate-x: 2rem;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .translate-z-0 {\n --w-translate-z: 0rem;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: -180deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 180deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .rotate-90 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 90deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {\n transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-300 {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .3s\n }\n\n .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .before\\:transition-all:before {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .duration-300 {\n transition-duration: .3s\n }\n\n .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {\n transition-timing-function: cubic-bezier(.4, 0, .2, 1)\n }\n\n .text-m {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .text-s {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s)\n }\n\n .text-xs {\n font-size: var(--w-font-size-xs);\n line-height: var(--w-line-height-xs)\n }\n\n .leading-m {\n line-height: var(--w-line-height-m)\n }\n\n .before\\:leading-xs:before {\n line-height: var(--w-line-height-xs)\n }\n\n .leading-\\[24\\] {\n line-height: 2.4rem\n }\n\n @media (max-width: 479.9px) {\n .lt-sm\\:rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n }\n @media (min-width: 480px) {\n .sm\\:border-b-0 {\n border-bottom-width: 0\n }\n\n .sm\\:rounded-8 {\n border-radius: 8px\n }\n\n .sm\\:rounded-b-8 {\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px\n }\n\n .sm\\:gap-16 {\n gap: 1.6rem\n }\n\n .sm\\:place-content-center {\n place-content: center\n }\n\n .sm\\:place-items-center {\n place-items: center\n }\n\n .sm\\:h-24 {\n height: 2.4rem\n }\n\n .sm\\:min-h-48 {\n min-height: 4.8rem\n }\n\n .sm\\:w-24 {\n width: 2.4rem\n }\n\n .sm\\:min-h-\\[32px\\] {\n min-height: 32px\n }\n\n .sm\\:min-h-\\[44px\\] {\n min-height: 44px\n }\n\n .sm\\:min-h-\\[45\\] {\n min-height: 4.5rem\n }\n\n .sm\\:min-w-\\[32px\\] {\n min-width: 32px\n }\n\n .sm\\:min-w-\\[44px\\] {\n min-width: 44px\n }\n\n .sm\\:mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .sm\\:mx-16 {\n margin-left: 1.6rem;\n margin-right: 1.6rem\n }\n\n .sm\\:-ml-12 {\n margin-left: -1.2rem\n }\n\n .sm\\:-mr-12 {\n margin-right: -1.2rem\n }\n\n .sm\\:-mt-8 {\n margin-top: -.8rem\n }\n\n .sm\\:px-32 {\n padding-left: 3.2rem;\n padding-right: 3.2rem\n }\n\n .sm\\:py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .sm\\:pb-32 {\n padding-bottom: 3.2rem\n }\n\n .sm\\:pt-24 {\n padding-top: 2.4rem\n }\n\n .sm\\:pt-32 {\n padding-top: 3.2rem\n }\n }\n @media (min-width: 768px) {\n .md\\:block {\n display: block\n }\n\n .md\\:hidden {\n display: none\n }\n }\n ');const Me=a`.w-textfield{--_input-padding-top:12px;--_input-padding-left:8px;--_input-padding-right:8px;position:relative}.w-textfield--has-prefix{--_input-padding-left:40px}.w-textfield--has-suffix{--_input-padding-right:var(--w-prefix-width,40px)}.w-textfield__input-wrapper{position:relative;overflow:hidden}.w-textfield__input-wrapper:focus-within .w-textfield__mask{display:none}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button{display:none}input::placeholder{color:var(--w-textfield-placeholder-color-text,var(--w-s-color-text-placeholder))}.w-textfield__input-wrapper:has(.w-textfield__mask):not(:focus-within) input{color:#0000}.w-textfield__mask{top:var(--_input-padding-top);left:var(--_input-padding-left);right:var(--_input-padding-right);pointer-events:none;white-space:nowrap;text-overflow:ellipsis;z-index:1;border:1px solid #0000;display:block;position:absolute;overflow:hidden}`,Te=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.visible{visibility:visible}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}");var Re=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const je="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",Ne="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",Ie="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",Ve="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",Fe="pl-0 bg-transparent pointer-events-none",Le="pr-40",qe="pl-[var(--w-prefix-width,_40px)]",Be="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",We="text-xs mt-4 block",He="s-text-subtle",Ye="s-text-negative";class Xe extends(Ae(se)){constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this._hasPrefix=!1,this._hasSuffix=!1,this.#t=void 0}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#r(e){"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}updated(e){e.has("value")&&void 0!==this.value&&(this.setValue(this.value),this.formatter&&this.mask&&(this.mask.innerText=this.formatter(this.value)))}#t;firstUpdated(e){this.#t=this.value}resetFormControl(){this.value=this.#t}static#o=this.styles=[Pe,Te,Me];get _inputstyles(){return Ce([je,this._hasSuffix&&Le,this._hasPrefix&&qe,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Ne,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Ve,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&Ie,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&Fe])}get _helptextstyles(){return Ce([We,this.invalid?Ye:He])}get _label(){if(this.label)return B`<label for="${this._id}" class="${Be}">${this.label}</label>`}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}handler(e){const{name:t,value:r}=e.currentTarget;this.value=r;const o=new CustomEvent(e.type,{detail:{name:t,value:r,target:e.target}});this.dispatchEvent(o)}prefixSlotChange(){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}render(){return B`${this._label}<div class="${xe({"w-textfield":!0,"w-textfield--has-prefix":this._hasPrefix,"w-textfield--has-suffix":this._hasSuffix})}"><div class="w-textfield__input-wrapper">${this.formatter?B`<div class="w-textfield__mask"></div>`:H} <input class="${this._inputstyles}" type="${this.type||"text"}" min="${De(this.min)}" max="${De(this.max)}" size="${De(this.size)}" minlength="${De(this.minLength||this.minlength)}" maxlength="${De(this.maxLength||this.maxlength)}" name="${De(this.name)}" pattern="${De(this.pattern)}" placeholder="${De(this.placeholder)}" .value="${this.value||""}" aria-describedby="${De(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${De(this._error)}" aria-invalid="${De(this.invalid)}" id="${this._id}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" autocomplete="${De(this.autocomplete)}" step="${De(this.step)}" @blur="${this.handler}" @change="${this.handler}" @input="${this.handler}" @focus="${this.handler}" @keydown="${this.#r}"></div><slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot><slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot></div><span class="sr-only" id="aria-description">${this.ariaDescription}</span> ${this.helpText&&B`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`}`}}Re([he({type:Boolean,reflect:!0})],Xe.prototype,"disabled",void 0),Re([he({type:Boolean,reflect:!0})],Xe.prototype,"invalid",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"label",void 0),Re([he({type:String,reflect:!0,attribute:"help-text"})],Xe.prototype,"helpText",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"size",void 0),Re([he({type:Number,reflect:!0})],Xe.prototype,"max",void 0),Re([he({type:Number,reflect:!0})],Xe.prototype,"min",void 0),Re([he({type:Number,reflect:!0,attribute:"min-length"})],Xe.prototype,"minLength",void 0),Re([he({type:Number,reflect:!0})],Xe.prototype,"minlength",void 0),Re([he({type:Number,reflect:!0,attribute:"max-length"})],Xe.prototype,"maxLength",void 0),Re([he({type:Number,reflect:!0})],Xe.prototype,"maxlength",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"pattern",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"placeholder",void 0),Re([he({type:Boolean,reflect:!0,attribute:"read-only"})],Xe.prototype,"readOnly",void 0),Re([he({type:Boolean,reflect:!0})],Xe.prototype,"readonly",void 0),Re([he({type:Boolean,reflect:!0})],Xe.prototype,"required",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"type",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"value",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"name",void 0),Re([he({type:Number,reflect:!0})],Xe.prototype,"step",void 0),Re([he({type:String,reflect:!0})],Xe.prototype,"autocomplete",void 0),Re([he({attribute:!1})],Xe.prototype,"formatter",void 0),Re([be(".w-textfield__mask")],Xe.prototype,"mask",void 0),Re([he({type:Boolean})],Xe.prototype,"_hasPrefix",void 0),Re([he({type:Boolean})],Xe.prototype,"_hasSuffix",void 0),customElements.get("w-textfield")||customElements.define("w-textfield",Xe);const Ue=e=>"string"==typeof e,Je=new Map;function Ke(e){return[...Array.isArray(e)?e:[e],"en"]}function Ze(e,t,r){const o=Ke(e);let n;if(r||(r="default"),"string"==typeof r)switch(n={day:"numeric",month:"short",year:"numeric"},r){case"full":n.weekday="long";case"long":n.month="long";break;case"short":n.month="numeric"}else n=r;return et(()=>tt("date",o,r),()=>new Intl.DateTimeFormat(o,n)).format(Ue(t)?new Date(t):t)}function Qe(e,t,r){const o=Ke(e);return et(()=>tt("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Ge(e,t,r,o){let{offset:n=0,...i}=o;const a=Ke(e),s=t?et(()=>tt("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):et(()=>tt("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return i[r]??i[s.select(r-n)]??i.other}function et(e,t){const r=e();let o=Je.get(r);return o||(o=t(),Je.set(r,o)),o}function tt(e,t,r){return`${e}-${t.join("-")}-${JSON.stringify(r)}`}const rt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,ot=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,r)=>{if(t){const e=parseInt(t,16);return String.fromCharCode(e)}{const e=parseInt(r,16);return String.fromCharCode(e)}}),nt="%__lingui_octothorpe__%",it=(e,t,r)=>{void 0===r&&(r={});const o=t||e,n=e=>"object"==typeof e?e:r[e],i=(e,t)=>{const i=Object.keys(r).length?n("number"):void 0,a=Qe(o,e,i);return t.replace(new RegExp(nt,"g"),a)};return{plural:(e,t)=>{const{offset:r=0}=t,n=Ge(o,!1,e,t);return i(e-r,n)},selectordinal:(e,t)=>{const{offset:r=0}=t,n=Ge(o,!0,e,t);return i(e-r,n)},select:at,number:(e,t)=>Qe(o,e,n(t)||{style:t}),date:(e,t)=>Ze(o,e,n(t)||t),time:(e,t)=>function(e,t,r){let o;if(r||(r="default"),"string"==typeof r)switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return Ze(e,t,o)}(o,e,n(t)||t)}},at=(e,t)=>t[e]??t.other;var st=Object.defineProperty,lt=(e,t,r)=>(((e,t,r)=>{t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,t+"",r),r);class dt{constructor(){lt(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){const r=this._getListeners(e);if(!r)return;const o=r.indexOf(t);~o&&r.splice(o,1)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const n=this._getListeners(e);n&&n.map(e=>e.apply(this,r))}_getListeners(e){const t=this._events[e];return!!Array.isArray(t)&&t}}var ct=Object.defineProperty,ht=(e,t,r)=>(((e,t,r)=>{t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class ut extends dt{constructor(e){super(),ht(this,"_locale",""),ht(this,"_locales"),ht(this,"_localeData",{}),ht(this,"_messages",{}),ht(this,"_missing"),ht(this,"_messageCompiler"),ht(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){const r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){"string"==typeof e?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){const r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(e=>{let[t,r]=e;return this._load(t,r)}),this.emit("change")}loadAndActivate(e){let{locale:t,locales:r,messages:o}=e;this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=r?.message;e||(e=""),Ue(e)||(t=e.values||t,o=e.message,e=e.id);const n=this.messages[e],i=void 0===n,a=this._missing;if(a&&i)return(e=>"function"==typeof e)(a)?a(this._locale,e):a;i&&this.emit("missing",{id:e,locale:this._locale});let s=n||o||e;return Ue(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:\n\n> ${s}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`)),Ue(s)&&rt.test(s)?ot(s):Ue(s)?s:function(e,t,r){return(o,n)=>{void 0===o&&(o={});const i=it(t,r,n),a=(e,t)=>(void 0===t&&(t=!1),Array.isArray(e)?e.reduce((e,r)=>{if("#"===r&&t)return e+nt;if(Ue(r))return e+r;const[n,s,l]=r;let d,c={};return"plural"===s||"selectordinal"===s||"select"===s?Object.entries(l).forEach(e=>{let[t,r]=e;c[t]=a(r,"plural"===s||"selectordinal"===s)}):c=l,d=s?(0,i[s])(o[n],c):o[n],null==d?e:e+d},""):e),s=a(e);return Ue(s)&&rt.test(s)?ot(s):Ue(s)?s:s?String(s):""}}(s,this._locale,this._locales)(t,r?.formats)}date(e,t){return Ze(this._locales||this._locale,e,t)}number(e,t){return Qe(this._locales||this._locale,e,t)}}const pt=(void 0===bt&&(bt={}),new ut(bt));var bt;const gt=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}"),mt=["en","nb","fi","da","sv"],vt="en",ft=e=>mt.find(t=>e===t||e.toLowerCase().includes(t))||vt;function wt(){if("undefined"==typeof window){const e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ft(e)}try{const e=St(document);if(e)return ft(e);const t=function(){try{return window.frameElement?.getAttribute?.("lang")??""}catch{return""}}();if(t)return ft(t);const r=St($t());return r?ft(r):vt}catch(e){return console.warn("could not detect locale, falling back to source locale",e),vt}}const yt=(e,t,r,o,n)=>{pt.load("en",e),pt.load("nb",t),pt.load("fi",r),pt.load("da",o),pt.load("sv",n);const i=wt();pt.activate(i),kt(),function(){if(_t)return;if("undefined"==typeof window)return;if(!document?.documentElement)return;_t=!0;const e=()=>{const e=wt();pt.locale!==e&&(pt.activate(e),kt())},t=new MutationObserver(t=>{for(const r of t)if("attributes"===r.type&&"lang"===r.attributeName){e();break}});t.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});const r=$t();r&&r.documentElement&&r!==document&&t.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});const o=function(){try{return window.frameElement??null}catch{return null}}();o&&t.observe(o,{attributes:!0,attributeFilter:["lang"]})}()},xt="warp-i18n-change";function kt(){"undefined"!=typeof window&&window.dispatchEvent(new Event(xt))}let _t=!1;function $t(){try{return window.parent?.document??null}catch{return null}}function St(e){try{return e?.documentElement?.lang??""}catch{return""}}var Et=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Ct="absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ",Ot={wrapper:Ct+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},zt={wrapper:Ct+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"};class At extends(Ae(se)){constructor(){super(...arguments),this.ariaLabel=null,this.clear=!1,this.search=!1,this.label="",this.icon=null}static#e=this.styles=[Pe,gt];get _classBase(){return"suffix"===this.slot?Ot:zt}get _classes(){return Ce([this._classBase.wrapper,this.label?this._classBase.wrapperWithLabel:this._classBase.wrapperWithIcon])}resetContainingTextField(e){const t=this.closest("w-textfield");t&&t.resetFormControl(),e.stopPropagation()}submitContainingForm(e){const t=this.internals.form;t&&t.submit(),e.stopPropagation()}get _searchButton(){const e=this.ariaLabel||pt._({id:"affix.aria.search",message:"Search",comment:"Aria label for the search button in affix"});return B`<button aria-label="${e}" class="${this._classes}" type="submit" @click="${this.submitContainingForm.bind(this)}"><w-icon name="Search" size="small" locale="${wt()}" class="flex"></w-icon></button>`}get _clearButton(){const e=this.ariaLabel||pt._({id:"affix.aria.clearInput",message:"Clear input",comment:"Aria label for the clear input button in affix"});return B`<button aria-label="${e}" class="${this._classes}" type="reset" @click="${this.resetContainingTextField.bind(this)}"><w-icon name="Close" size="small" locale="${wt()}" class="flex"></w-icon></button>`}get _icon(){return this.icon?B`<div class="${this._classes}"><w-icon name="${this.icon}" size="small" locale="${wt()}" class="flex"></w-icon></div>`:""}get _text(){return B`<div class="${this._classes}"><span class="${this._classBase.label}">${this.label}</span></div>`}get _markup(){return this.label?this._text:this.icon?this._icon:this.search?this._searchButton:this.clear?this._clearButton:void 0}render(){return B`${this._markup}`}}Et([he({attribute:"aria-label",reflect:!0,useDefault:!0})],At.prototype,"ariaLabel",void 0),Et([he({type:Boolean})],At.prototype,"clear",void 0),Et([he({type:Boolean})],At.prototype,"search",void 0),Et([he({reflect:!0,useDefault:!0})],At.prototype,"label",void 0),Et([he({reflect:!0,useDefault:!0})],At.prototype,"icon",void 0),customElements.get("w-affix")||customElements.define("w-affix",At);const Dt=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.will-change-height{will-change:height}.border{border-width:1px}.border-l-4{border-left-width:4px}.rounded-4{border-radius:4px}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.static{position:static}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon-info{color:var(--w-s-color-icon-info)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.s-border-info-subtle{border-color:var(--w-s-color-border-info-subtle)}.s-border-l-info{border-left-color:var(--w-s-color-border-info)}.s-border-l-negative{border-left-color:var(--w-s-color-border-negative)}.s-border-l-positive{border-left-color:var(--w-s-color-border-positive)}.s-border-l-warning{border-left-color:var(--w-s-color-border-warning)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.min-w-16{min-width:1.6rem}.w-16{width:1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.mr-8{margin-right:.8rem}.p-16{padding:1.6rem}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}");var Pt=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Mt={wrapper:"flex p-16 border border-l-4 rounded-4 s-text",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"s-border-negative-subtle s-border-l-negative s-bg-negative-subtle",negativeIcon:"s-icon-negative",positive:"s-border-positive-subtle s-border-l-positive s-bg-positive-subtle",positiveIcon:"s-icon-positive",warning:"s-border-warning-subtle s-border-l-warning s-bg-warning-subtle",warningIcon:"s-icon-warning",info:"s-border-info-subtle s-border-l-info s-bg-info-subtle",infoIcon:"s-icon-info"},Tt={negative:"negative",positive:"positive",warning:"warning",info:"info"};class Rt extends se{constructor(){super(),this.variant="info",this.show=!1,this.role="alert",this._internals=this.attachInternals(),this._internals.role="alert"}connectedCallback(){if(super.connectedCallback(),this.variant&&!Tt[this.variant])throw new Error("Invalid 'variant' attribute. Set its value to one of the following:\nnegative, positive, warning, info.")}get _wrapperClasses(){const e=this.variant;return Ce([Mt.wrapper,Mt[e]])}get _iconClasses(){const e=this.variant;return Ce([Mt.icon,Mt[`${e}Icon`]])}static#e=this.styles=[Pe,Dt,a`:host{display:block}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0!important}`];get _icon(){const e=wt(),t=this.variant||"info";return t===Tt.info?B`<w-icon name="Info" size="small" locale="${e}" class="flex"></w-icon>`:t===Tt.warning?B`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:t===Tt.negative?B`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:t===Tt.positive?B`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`:""}render(){return B`<w-expand-transition ?show="${this.show}"><div role="${this.role}" class="${this._wrapperClasses}"><div class="${this._iconClasses}">${this._icon}</div><div class="${Mt.textWrapper}"><slot></slot></div></div></w-expand-transition>`}}Pt([he({reflect:!0,useDefault:!0})],Rt.prototype,"variant",void 0),Pt([he({type:Boolean,reflect:!0,useDefault:!0})],Rt.prototype,"show",void 0),Pt([he({reflect:!0,useDefault:!0})],Rt.prototype,"role",void 0),customElements.get("w-alert")||customElements.define("w-alert",Rt);const jt=a`:host{--_bg:var(--w-c-button-bg,var(--w-s-color-background));--_bg-hover:var(--w-c-button-bg-hover,var(--w-s-color-background-hover));--_bg-active:var(--w-c-button-bg-active,var(--w-s-color-background-active));--_color:var(--w-c-button-color,var(--w-s-color-text-link));--_color-hover:var(--w-c-button-color-hover,var(--_color));--_color-active:var(--w-c-button-color-active,var(--_color));--_border-width:var(--w-c-button-border-width,2px);--_border-color:var(--w-c-button-border-color,var(--w-s-color-border));--_border-color-hover:var(--w-c-button-border-color-hover,var(--w-s-color-border-hover));--_border-color-active:var(--w-c-button-border-color-active,var(--w-s-color-border-active));--_radius:var(--w-c-button-radius,var(--w-button-radius-default,8px));--_font-size:var(--w-c-button-font-size,var(--w-font-size-m));--_line-height:var(--w-c-button-line-height,var(--w-line-height-m));--_font-weight:var(--w-c-button-font-weight,700);--_pad-x:var(--w-c-button-padding-x,16px);--_pad-y:var(--w-c-button-padding-y,13px);--_outline-width:var(--w-c-button-outline-width,2px);--_outline-color:var(--w-c-button-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-button-outline-offset,var(--w-outline-offset,1px));--_transition:var(--w-c-button-transition,color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1));--w-c-button-icon-color:var(--w-s-color-icon);display:inline-block}:host(:focus-visible){outline:none}`,Nt=a`:host([variant=primary]){--w-c-button-bg:var(--w-s-color-background-primary);--w-c-button-bg-hover:var(--w-s-color-background-primary-hover);--w-c-button-bg-active:var(--w-s-color-background-primary-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negative]){--w-c-button-bg:var(--w-s-color-background-negative);--w-c-button-bg-hover:var(--w-s-color-background-negative-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negativeQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:var(--w-button-radius-utility,4px);--w-c-button-border-width:1px}:host([variant=utilityQuiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=quiet]){--w-c-button-bg:transparent;--w-c-button-border-width:0px}:host([variant=overlay]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInverted]){--w-c-button-bg:var(--w-s-color-background-inverted);--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInvertedQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=link]){--w-c-button-bg:transparent;--w-c-button-border-width:0px;--w-c-button-padding-x:0px;--w-c-button-padding-y:0px;--w-c-button-font-weight:400;--w-c-button-bg-hover:transparent;--w-c-button-bg-active:transparent;--w-c-button-color:var(--w-s-color-text-link);--w-c-button-color-hover:var(--w-s-color-text-link-hover,var(--w-c-button-color));--w-c-button-color-active:var(--w-s-color-text-link-active,var(--w-c-button-color))}`,It=a`:host([small]){--w-c-button-padding-x:12px;--w-c-button-padding-y:8px;--w-c-button-font-size:var(--w-font-size-xs);--w-c-button-line-height:var(--w-line-height-xs)}`,Vt=a`:host([disabled]){pointer-events:none;cursor:default;--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}`,Ft=a`${jt}button[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;display:inline-flex}button[part=base] ::slotted(*){line-height:inherit}:host>w-link[part=base]{background:0 0;border:0;padding:0;display:inline-block}:host(:not([disabled]):not([loading])) button[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled]):not([loading])) button[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host(:focus-visible) button[part=base]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${Nt}:host([variant=negative][quiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility][quiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=pill]){--w-c-button-bg:transparent;--w-c-button-radius:50%;--w-c-button-border-width:0px;--w-c-button-padding-x:14px;--w-c-button-padding-y:14px;--w-c-button-color:var(--w-c-button-icon-color,var(--w-s-color-icon))}:host([variant=pill]) button[part=base]{min-width:44px;min-height:44px}:host([small][variant=pill]) button[part=base]{min-width:32px;min-height:32px}:host([variant=link]) button[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled]):not([loading])) button[part=base]:hover{color:var(--w-c-button-color-hover);background-color:#0000;border-color:#0000;text-decoration:underline}${It}:host([small][variant=pill]){--w-c-button-padding-x:8px;--w-c-button-padding-y:8px}:host([full-width]){width:100%;display:block}:host([full-width]) button[part=base],:host([full-width])>w-link[part=base]{width:100%}:host([icon-only]) button[part=base]{aspect-ratio:1;padding-left:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px));padding-right:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px))}${Vt}:host([disabled][variant]),:host([disabled][quiet]){--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent;--w-c-button-color-hover:var(--w-s-color-text-inverted);--w-c-button-color-active:var(--w-s-color-text-inverted)}:host([loading]),:host([loading][variant]),:host([loading][quiet]){pointer-events:none;--w-c-button-bg:var(--w-s-color-background-subtle);--w-c-button-bg-hover:var(--w-s-color-background-subtle);--w-c-button-bg-active:var(--w-s-color-background-subtle);--w-c-button-color:var(--w-s-color-text);--w-c-button-color-hover:var(--w-s-color-text);--w-c-button-color-active:var(--w-s-color-text);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent}:host([loading]) button[part=base]{background-image:linear-gradient(135deg,#0000000d 25%,#0000 25% 50%,#0000000d 50% 75%,#0000 75%,#0000);background-size:30px 30px;animation:3s linear infinite animate-inprogress}@media (prefers-reduced-motion:reduce){:host([loading]) button[part=base]{animation:none}}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}`,Lt=a`${jt}a[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}:host(:not([disabled])) a[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled])) a[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host(:focus-visible) a[part=base]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${Nt}:host([variant=link]) a[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled])) a[part=base]:hover{background-color:#0000;border-color:#0000;text-decoration:underline}${It}:host([full-width]){width:100%;display:block}:host([full-width]) a[part=base]{width:100%}${Vt}`;var qt=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Bt=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class Wt extends se{constructor(){super(...arguments),this.autofocus=!1,this.small=!1,this.disabled=!1,this.fullWidth=!1}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[Pe,Lt];connectedCallback(){if(super.connectedCallback(),this.variant&&!Bt.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${Bt.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}render(){return B`<a href="${this.href}" part="base" target="${this.target}" rel="${"_blank"===this.target?this.rel||"noopener":H}" tabindex="0"><slot></slot></a>`}}qt([he({type:Boolean,reflect:!0})],Wt.prototype,"autofocus",void 0),qt([he({reflect:!0})],Wt.prototype,"variant",void 0),qt([he({type:Boolean,reflect:!0})],Wt.prototype,"small",void 0),qt([he({reflect:!0})],Wt.prototype,"href",void 0),qt([he({type:Boolean,reflect:!0})],Wt.prototype,"disabled",void 0),qt([he({reflect:!0})],Wt.prototype,"target",void 0),qt([he({reflect:!0})],Wt.prototype,"rel",void 0),qt([he({attribute:"full-width",type:Boolean,reflect:!0})],Wt.prototype,"fullWidth",void 0),customElements.get("w-link")||customElements.define("w-link",Wt);const Ht=JSON.parse('{"button.aria.loading":["Indlæser..."]}'),Yt=JSON.parse('{"button.aria.loading":["Loading..."]}'),Xt=JSON.parse('{"button.aria.loading":["Ladataan..."]}'),Ut=JSON.parse('{"button.aria.loading":["Laster..."]}'),Jt=JSON.parse('{"button.aria.loading":["Laddar ..."]}');var Kt=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Zt=["primary","secondary","negative","negativeQuiet","utility","pill","link","quiet","utilityQuiet","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class Qt extends(Ae(se)){static#e=this.styles=[Pe,Ft];static#o=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#t;updated(e){e.has("value")&&this.setValue(this.value)}constructor(){super(),this.autofocus=!1,this.quiet=!1,this.iconOnly=!1,this.small=!1,this.loading=!1,this.disabled=!1,this.fullWidth=!1,this.#t=void 0,yt(Yt,Ut,Xt,Ht,Jt),this.ariaValueTextLoading=pt.t({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}connectedCallback(){super.connectedCallback();const e=this.variant||"secondary";if(!Zt.includes(e))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${Zt.join(", ")}.`);this.#t=this.value}closestWithId(e){let t=this.shadowRoot,r=null;try{for(;t;){if(r=t.getElementById(e),r)return r;t=t.getRootNode().host?.getRootNode()}}catch{}return document.getElementById(e)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0),this.buttonEl&&this.commandfor&&(this.buttonEl.commandForElement=this.closestWithId(this.commandfor))}_handleButtonClick(){"submit"===this.type?this.internals.form.requestSubmit():"reset"===this.type&&this.internals.form.reset()}resetFormControl(){this.value=this.#t}render(){const e=this.variant||"secondary";return B`${this.href?B`<w-link href="${this.href}" target="${this.target}" variant="${this.quiet?"quiet":e}" ?small="${this.small}" ?loading="${this.loading}" ?autofocus="${this.autofocus}" ?full-width="${this.fullWidth}" class="${this.buttonClass}" rel="${"_blank"===this.target?this.rel||"noopener":void 0}"><slot></slot></w-link>`:B`<button type="${this.type||"button"}" part="base" class="${De(this.buttonClass)}" @click="${this._handleButtonClick}" commandfor="${De(this.commandfor)}" command="${De(this.command)}"><slot></slot></button>`} ${this.loading?B`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext="${this.ariaValueTextLoading}"></span>`:H}`}}Kt([he({reflect:!0})],Qt.prototype,"type",void 0),Kt([he({type:Boolean,reflect:!0})],Qt.prototype,"autofocus",void 0),Kt([he({reflect:!0})],Qt.prototype,"variant",void 0),Kt([he({type:Boolean,reflect:!0})],Qt.prototype,"quiet",void 0),Kt([he({type:Boolean,reflect:!0,attribute:"icon-only"})],Qt.prototype,"iconOnly",void 0),Kt([he({type:Boolean,reflect:!0})],Qt.prototype,"small",void 0),Kt([he({type:Boolean,reflect:!0})],Qt.prototype,"loading",void 0),Kt([he({reflect:!0})],Qt.prototype,"href",void 0),Kt([he({reflect:!0})],Qt.prototype,"target",void 0),Kt([he({type:Boolean,reflect:!0})],Qt.prototype,"disabled",void 0),Kt([he({reflect:!0})],Qt.prototype,"rel",void 0),Kt([he({attribute:"full-width",type:Boolean,reflect:!0})],Qt.prototype,"fullWidth",void 0),Kt([he({attribute:"button-class",reflect:!0})],Qt.prototype,"buttonClass",void 0),Kt([he({reflect:!0})],Qt.prototype,"name",void 0),Kt([he({reflect:!0})],Qt.prototype,"value",void 0),Kt([he()],Qt.prototype,"commandfor",void 0),Kt([he()],Qt.prototype,"command",void 0),Kt([be("button")],Qt.prototype,"buttonEl",void 0),customElements.get("w-button")||customElements.define("w-button",Qt);const Gt=["top","right","bottom","left"],er=Math.min,tr=Math.max,rr=Math.round,or=e=>({x:e,y:e}),nr={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,r){return tr(e,er(t,r))}function ar(e,t){return"function"==typeof e?e(t):e}function sr(e){return e.split("-")[0]}function lr(e){return e.split("-")[1]}function dr(e){return"x"===e?"y":"x"}function cr(e){return"y"===e?"height":"width"}function hr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ur(e){return dr(hr(e))}function pr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const br=["left","right"],gr=["right","left"],mr=["top","bottom"],vr=["bottom","top"];function fr(e,t,r,o){const n=lr(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?gr:br:t?br:gr;case"left":case"right":return t?mr:vr;default:return[]}}(sr(e),"start"===r,o);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(pr)))),i}function wr(e){const t=sr(e);return nr[t]+e.slice(t.length)}function yr(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function xr(e){const{x:t,y:r,width:o,height:n}=e;return{width:o,height:n,top:r,left:t,right:t+o,bottom:r+n,x:t,y:r}}function kr(e,t,r){let{reference:o,floating:n}=e;const i=hr(t),a=ur(t),s=cr(a),l=sr(t),d="y"===i,c=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,u=o[s]/2-n[s]/2;let p;switch(l){case"top":p={x:c,y:o.y-n.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-n.width,y:h};break;default:p={x:o.x,y:o.y}}switch(lr(t)){case"start":p[a]-=u*(r&&d?-1:1);break;case"end":p[a]+=u*(r&&d?-1:1)}return p}async function _r(e,t){var r;void 0===t&&(t={});const{x:o,y:n,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=ar(t,e),b=yr(p),g=s[u?"floating"===h?"reference":"floating":h],m=xr(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{x:o,y:n,width:a.floating.width,height:a.floating.height}:a.reference,f=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(f))&&await(null==i.getScale?void 0:i.getScale(f))||{x:1,y:1},y=xr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:f,strategy:l}):v);return{top:(m.top-y.top+b.top)/w.y,bottom:(y.bottom-m.bottom+b.bottom)/w.y,left:(m.left-y.left+b.left)/w.x,right:(y.right-m.right+b.right)/w.x}}function $r(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sr(e){return Gt.some(t=>e[t]>=0)}const Er=new Set(["left","top"]);function Cr(){return"undefined"!=typeof window}function Or(e){return Dr(e)?(e.nodeName||"").toLowerCase():"#document"}function zr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ar(e){var t;return null==(t=(Dr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Dr(e){return!!Cr()&&(e instanceof Node||e instanceof zr(e).Node)}function Pr(e){return!!Cr()&&(e instanceof Element||e instanceof zr(e).Element)}function Mr(e){return!!Cr()&&(e instanceof HTMLElement||e instanceof zr(e).HTMLElement)}function Tr(e){return!(!Cr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof zr(e).ShadowRoot)}function Rr(e){const{overflow:t,overflowX:r,overflowY:o,display:n}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&"inline"!==n&&"contents"!==n}function jr(e){return/^(table|td|th)$/.test(Or(e))}function Nr(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Ir=/transform|translate|scale|rotate|perspective|filter/,Vr=/paint|layout|strict|content/,Fr=e=>!!e&&"none"!==e;let Lr;function qr(e){const t=Pr(e)?Hr(e):e;return Fr(t.transform)||Fr(t.translate)||Fr(t.scale)||Fr(t.rotate)||Fr(t.perspective)||!Br()&&(Fr(t.backdropFilter)||Fr(t.filter))||Ir.test(t.willChange||"")||Vr.test(t.contain||"")}function Br(){return null==Lr&&(Lr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Lr}function Wr(e){return/^(html|body|#document)$/.test(Or(e))}function Hr(e){return zr(e).getComputedStyle(e)}function Yr(e){return Pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xr(e){if("html"===Or(e))return e;const t=e.assignedSlot||e.parentNode||Tr(e)&&e.host||Ar(e);return Tr(t)?t.host:t}function Ur(e){const t=Xr(e);return Wr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mr(t)&&Rr(t)?t:Ur(t)}function Jr(e,t,r){var o;void 0===t&&(t=[]);const n=Ur(e),i=n===(null==(o=e.ownerDocument)?void 0:o.body),a=zr(n);return i?(Kr(a),t.concat(a,a.visualViewport||[],Rr(n)?n:[],[])):t.concat(n,Jr(n,[]))}function Kr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Zr(e){const t=Hr(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const n=Mr(e),i=n?e.offsetWidth:r,a=n?e.offsetHeight:o,s=rr(r)!==i||rr(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function Qr(e){return Pr(e)?e:e.contextElement}function Gr(e){const t=Qr(e);if(!Mr(t))return or(1);const r=t.getBoundingClientRect(),{width:o,height:n,$:i}=Zr(t);let a=(i?rr(r.width):r.width)/o,s=(i?rr(r.height):r.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const eo=or(0);function to(e){const t=zr(e);return Br()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ro(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=e.getBoundingClientRect(),i=Qr(e);let a=or(1);t&&(o?Pr(o)&&(a=Gr(o)):a=Gr(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==zr(e))&&t}(i,r,o)?to(i):or(0);let l=(n.left+s.x)/a.x,d=(n.top+s.y)/a.y,c=n.width/a.x,h=n.height/a.y;if(i){const e=zr(i),t=o&&Pr(o)?zr(o):o;let r=e,n=Kr(r);for(;n&&o&&t!==r;){const e=Gr(n),t=n.getBoundingClientRect(),o=Hr(n),i=t.left+(n.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=i,d+=a,r=zr(n),n=Kr(r)}}return xr({width:c,height:h,x:l,y:d})}function oo(e,t){const r=Yr(e).scrollLeft;return t?t.left+r:ro(Ar(e)).left+r}function no(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-oo(e,r),y:r.top+t.scrollTop}}function io(e,t,r){let o;if("viewport"===t)o=function(e,t){const r=zr(e),o=Ar(e),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;const e=Br();(!e||e&&"fixed"===t)&&(s=n.offsetLeft,l=n.offsetTop)}const d=oo(o);if(d<=0){const e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-n);a<=25&&(i-=a)}else d<=25&&(i+=d);return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)o=function(e){const t=Ar(e),r=Yr(e),o=e.ownerDocument.body,n=tr(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=tr(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+oo(e);const s=-r.scrollTop;return"rtl"===Hr(o).direction&&(a+=tr(t.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}(Ar(e));else if(Pr(t))o=function(e,t){const r=ro(e,!0,"fixed"===t),o=r.top+e.clientTop,n=r.left+e.clientLeft,i=Mr(e)?Gr(e):or(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:o*i.y}}(t,r);else{const r=to(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return xr(o)}function ao(e,t){const r=Xr(e);return!(r===t||!Pr(r)||Wr(r))&&("fixed"===Hr(r).position||ao(r,t))}function so(e,t,r){const o=Mr(t),n=Ar(t),i="fixed"===r,a=ro(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=or(0);function d(){l.x=oo(n)}if(o||!o&&!i)if(("body"!==Or(t)||Rr(n))&&(s=Yr(t)),o){const e=ro(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&d();i&&!o&&n&&d();const c=!n||o||i?or(0):no(n,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function lo(e){return"static"===Hr(e).position}function co(e,t){if(!Mr(e)||"fixed"===Hr(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Ar(e)===r&&(r=r.ownerDocument.body),r}function ho(e,t){const r=zr(e);if(Nr(e))return r;if(!Mr(e)){let t=Xr(e);for(;t&&!Wr(t);){if(Pr(t)&&!lo(t))return t;t=Xr(t)}return r}let o=co(e,t);for(;o&&jr(o)&&lo(o);)o=co(o,t);return o&&Wr(o)&&lo(o)&&!qr(o)?r:o||function(e){let t=Xr(e);for(;Mr(t)&&!Wr(t);){if(qr(t))return t;if(Nr(t))return null;t=Xr(t)}return null}(e)||r}const uo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:n}=e;const i="fixed"===n,a=Ar(o),s=!!t&&Nr(t.floating);if(o===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},d=or(1);const c=or(0),h=Mr(o);if((h||!h&&!i)&&(("body"!==Or(o)||Rr(a))&&(l=Yr(o)),h)){const e=ro(o);d=Gr(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}const u=!a||h||i?or(0):no(a,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:r.y*d.y-l.scrollTop*d.y+c.y+u.y}},getDocumentElement:Ar,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:n}=e;const i="clippingAncestors"===r?Nr(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=Jr(e,[]).filter(e=>Pr(e)&&"body"!==Or(e)),n=null;const i="fixed"===Hr(e).position;let a=i?Xr(e):e;for(;Pr(a)&&!Wr(a);){const t=Hr(a),r=qr(a);r||"fixed"!==t.position||(n=null),(i?!r&&!n:!r&&"static"===t.position&&n&&("absolute"===n.position||"fixed"===n.position)||Rr(a)&&!r&&ao(e,a))?o=o.filter(e=>e!==a):n=t,a=Xr(a)}return t.set(e,o),o}(t,this._c):[].concat(r),a=[...i,o],s=io(t,a[0],n);let l=s.top,d=s.right,c=s.bottom,h=s.left;for(let e=1;e<a.length;e++){const r=io(t,a[e],n);l=tr(r.top,l),d=er(r.right,d),c=er(r.bottom,c),h=tr(r.left,h)}return{width:d-h,height:c-l,x:h,y:l}},getOffsetParent:ho,getElementRects:async function(e){const t=this.getOffsetParent||ho,r=this.getDimensions,o=await r(e.floating);return{reference:so(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Zr(e);return{width:t,height:r}},getScale:Gr,isElement:Pr,isRTL:function(e){return"rtl"===Hr(e).direction}},po=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:n,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:o,elements:n}=e,i=await(null==o.isRTL?void 0:o.isRTL(n.floating)),a=sr(r),s=lr(r),l="y"===hr(r),d=Er.has(a)?-1:1,c=i&&l?-1:1,h=ar(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:b}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof b&&(p="end"===s?-1*b:b),l?{x:p*c,y:u*d}:{x:u*d,y:p*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}}},bo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:n,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=ar(e,t),c={x:r,y:o},h=await i.detectOverflow(t,d),u=hr(sr(n)),p=dr(u);let b=c[p],g=c[u];if(a){const e="y"===p?"bottom":"right";b=ir(b+h["y"===p?"top":"left"],b,b-h[e])}if(s){const e="y"===u?"bottom":"right";g=ir(g+h["y"===u?"top":"left"],g,g-h[e])}const m=l.fn({...t,[p]:b,[u]:g});return{...m,data:{x:m.x-r,y:m.y-o,enabled:{[p]:a,[u]:s}}}}}},go=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:n,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=ar(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const v=sr(n),f=hr(s),w=sr(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),x=u||(w||!g?[wr(s)]:function(e){const t=wr(e);return[pr(e),t,pr(t)]}(s)),k="none"!==b;!u&&k&&x.push(...fr(s,g,b,y));const _=[s,...x],$=await l.detectOverflow(t,m),S=[];let E=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&S.push($[v]),h){const e=function(e,t,r){void 0===r&&(r=!1);const o=lr(e),n=ur(e),i=cr(n);let a="x"===n?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wr(a)),[a,wr(a)]}(n,a,y);S.push($[e[0]],$[e[1]])}if(E=[...E,{placement:n,overflows:S}],!S.every(e=>e<=0)){var C,O;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=_[e];if(t){if(!("alignment"===h&&f!==hr(t))||E.every(e=>hr(e.placement)!==f||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let r=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!r)switch(p){case"bestFit":{var z;const e=null==(z=E.filter(e=>{if(k){const t=hr(e.placement);return t===f||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(r=e);break}case"initialPlacement":r=s}if(n!==r)return{reset:{placement:r}}}return{}}}},mo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,o;const{placement:n,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...d}=ar(e,t),c=await a.detectOverflow(t,d),h=sr(n),u=lr(n),p="y"===hr(n),{width:b,height:g}=i.floating;let m,v;"top"===h||"bottom"===h?(m=h,v=u===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m="end"===u?"top":"bottom");const f=g-c.top-c.bottom,w=b-c.left-c.right,y=er(g-c[m],f),x=er(b-c[v],w),k=!t.middlewareData.shift;let _=y,$=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&($=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(_=f),k&&!u){const e=tr(c.left,0),t=tr(c.right,0),r=tr(c.top,0),o=tr(c.bottom,0);p?$=b-2*(0!==e||0!==t?e+t:tr(c.left,c.right)):_=g-2*(0!==r||0!==o?r+o:tr(c.top,c.bottom))}await l({...t,availableWidth:$,availableHeight:_});const S=await a.getDimensions(s.floating);return b!==S.width||g!==S.height?{reset:{rects:!0}}:{}}}},vo=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:n="referenceHidden",...i}=ar(e,t);switch(n){case"referenceHidden":{const e=$r(await o.detectOverflow(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Sr(e)}}}case"escaped":{const e=$r(await o.detectOverflow(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Sr(e)}}}default:return{}}}}},fo=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=ar(e,t)||{};if(null==d)return{};const h=yr(c),u={x:r,y:o},p=ur(n),b=cr(p),g=await a.getDimensions(d),m="y"===p,v=m?"top":"left",f=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=i.reference[b]+i.reference[p]-u[p]-i.floating[b],x=u[p]-i.reference[p],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let _=k?k[w]:0;_&&await(null==a.isElement?void 0:a.isElement(k))||(_=s.floating[w]||i.floating[b]);const $=y/2-x/2,S=_/2-g[b]/2-1,E=er(h[v],S),C=er(h[f],S),O=E,z=_-g[b]-C,A=_/2-g[b]/2+$,D=ir(O,A,z),P=!l.arrow&&null!=lr(n)&&A!==D&&i.reference[b]/2-(A<O?E:C)-g[b]/2<0,M=P?A<O?A-O:A-z:0;return{[p]:u[p]+M,data:{[p]:D,centerOffset:A-D-M,...P&&{alignmentOffset:M}},reset:P}}}),wo=(e,t,r)=>{const o=new Map,n={platform:uo,...r},i={...n.platform,_c:o};return(async(e,t,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:_r},l=await(null==a.isRTL?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:n}),{x:c,y:h}=kr(d,o,l),u=o,p=0;const b={};for(let r=0;r<i.length;r++){const g=i[r];if(!g)continue;const{name:m,fn:v}=g,{x:f,y:w,data:y,reset:x}=await v({x:c,y:h,initialPlacement:o,placement:u,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:e,floating:t}});c=null!=f?f:c,h=null!=w?w:h,b[m]={...b[m],...y},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(u=x.placement),x.rects&&(d=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:n}):x.rects),({x:c,y:h}=kr(d,u,l))),r=-1)}return{x:c,y:h,placement:u,strategy:n,middlewareData:b}})(e,t,{...n,platform:i})},yo="top-start",xo="top",ko="top-end",_o="right-start",$o="right",So="right-end",Eo="bottom-start",Co="bottom",Oo="bottom-end",zo="left-start",Ao="left",Do="left-end",Po=[yo,xo,ko,_o,$o,So,Eo,Co,Oo,zo,Ao,Do],Mo={[yo]:Eo,[xo]:Co,[ko]:Oo,[Eo]:yo,[Co]:xo,[Oo]:ko,[zo]:_o,[Ao]:$o,[Do]:So,[_o]:zo,[$o]:Ao,[So]:Do},To={[zo]:-45,[Ao]:-45,[Do]:-45,[yo]:45,[xo]:45,[ko]:45,[_o]:135,[$o]:135,[So]:135,[Eo]:-135,[Co]:-135,[Oo]:-135},Ro=e=>{let t;return t=/-/.test(e)?e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""):e.charAt(0).toUpperCase()+e.slice(1),t},jo=e=>Mo[(e=>e.split("-")[0])(e)],No=e=>Mo[e];async function Io(e){if(!e?.isShowing)return;if(e?.waitForDOM&&await(e?.waitForDOM()),!e?.targetEl||!e?.attentionEl)return;let t=e?.targetEl;const r=e.attentionEl;return wo(t,r,{placement:e?.directionName??Co,middleware:[po({mainAxis:e?.distance??8,crossAxis:e?.skidding??0}),e?.flip&&go({crossAxis:e?.crossAxis,fallbackPlacements:e?.fallbackPlacements}),e?.flip&&bo({crossAxis:!0}),!e?.noArrow&&e?.arrowEl&&fo({element:e?.arrowEl}),vo(),mo({apply(){Object.assign(r.style,{paddingRight:"8px",paddingLeft:"8px"})}})]}).then(t=>{let{x:o,y:n,middlewareData:i,placement:a}=t;if(e.actualDirection=a,e?.isCallout||Object.assign(r.style,{left:`${o}px`,top:`${n}px`}),i?.hide&&!e?.isCallout){const{referenceHidden:e}=i.hide;Object.assign(r.style,{visibility:e?"hidden":""})}if(i?.arrow&&e?.arrowEl){const t=e?.arrowEl,{x:o,y:n}=i.arrow,s="rtl"===window.getComputedStyle(r).direction,l=No(a).split("-")[1];let d="",c="",h="",u="";if("start"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";d="number"==typeof n?`calc(24px - ${t.offsetWidth/2}px)`:"",c=s?e:"",u=s?"":e}else if("end"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";c=s?"":e,u=s?e:"",h="number"==typeof n?`calc(24px - ${t.offsetWidth/2}px)`:""}else u="number"==typeof o?`${o}px`:"",d="number"==typeof n?`${n}px`:"";Object.assign(t.style,{top:d,right:c,bottom:h,left:u}),((e,t,r)=>{Object.assign(e?.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${Ro(jo(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})})(t,To[No(a)],a)}}),e}const Vo=a`.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-stretch{place-items:stretch stretch}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-center{align-self:center}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.content-start{align-content:flex-start}.content-center{align-content:center}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-center{justify-self:center}.justify-self-end{justify-self:end}.justify-self-stretch{justify-self:stretch}.justify-items-start{justify-items:start}.justify-items-center{justify-items:center}.justify-items-end{justify-items:end}.justify-items-stretch{justify-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-x-0{column-gap:0}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-x-8{column-gap:2rem}.gap-x-10{column-gap:2.5rem}.gap-x-12{column-gap:3rem}.gap-x-14{column-gap:3.5rem}.gap-x-16{column-gap:4rem}.gap-y-0{row-gap:0}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-14{row-gap:3.5rem}.gap-y-16{row-gap:4rem}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.order-none{order:0}.order-first{order:-9999}.order-last{order:9999}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.basis-1{flex-basis:.25rem}.basis-2{flex-basis:.5rem}.basis-4{flex-basis:1rem}.basis-8{flex-basis:2rem}.basis-16{flex-basis:4rem}.basis-1\/5{flex-basis:20%}.flex-initial{flex:0 auto}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.space-x-0>*+*{margin-left:0}.space-x-1>*+*{margin-left:.25rem}.space-x-2>*+*{margin-left:.5rem}.space-x-4>*+*{margin-left:1rem}.space-x-6>*+*{margin-left:1.5rem}.space-x-8>*+*{margin-left:2rem}.space-x-10>*+*{margin-left:2.5rem}.space-x-12>*+*{margin-left:3rem}.space-x-14>*+*{margin-left:3.5rem}.space-x-16>*+*{margin-left:4rem}.space-y-0>*+*{margin-top:0}.space-y-1>*+*{margin-top:.25rem}.space-y-2>*+*{margin-top:.5rem}.space-y-4>*+*{margin-top:1rem}.space-y-6>*+*{margin-top:1.5rem}.space-y-8>*+*{margin-top:2rem}.space-y-10>*+*{margin-top:2.5rem}.space-y-12>*+*{margin-top:3rem}.space-y-14>*+*{margin-top:3.5rem}.space-y-16>*+*{margin-top:4rem}.space-x-reverse>*+*{margin-left:0;margin-right:0}.space-y-reverse>*+*{margin-top:0;margin-bottom:0}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-6{margin:1.5rem}.m-8{margin:2rem}.m-10{margin:2.5rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mr-8{margin-right:2rem}.mr-10{margin-right:2.5rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-10{margin-left:2.5rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-14{padding:3.5rem}.p-16{padding:4rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-16{padding-top:4rem}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pr-10{padding-right:2.5rem}.pr-12{padding-right:3rem}.pr-14{padding-right:3.5rem}.pr-16{padding-right:4rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-14{padding-bottom:3.5rem}.pb-16{padding-bottom:4rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-10{padding-left:2.5rem}.pl-12{padding-left:3rem}.pl-14{padding-left:3.5rem}.pl-16{padding-left:4rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}`,Fo=JSON.parse('{"attention.aria.callout":["En grøn taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opmærksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til højre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}'),Lo=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}'),qo=JSON.parse('{"attention.aria.callout":["Vihreä puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sisältää tärkeää tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa ylös"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lisätietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa täydentävää tietoa"]}'),Bo=JSON.parse('{"attention.aria.callout":["Grønn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til høyre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}'),Wo=JSON.parse('{"attention.aria.callout":["En grön pratbubbla som introducerar något nytt"],"attention.aria.close":["Stäng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar vänster"],"attention.aria.pointingRight":["pekar höger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}'),Ho=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}");var Yo=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Xo="border-2 relative flex items-center",Uo="s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted rounded-4 py-6 px-8",Jo="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",Ko="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",Zo="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",Qo="absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",Go="s-bg-inverted border-[--w-s-color-background-inverted]",en="bg-[--w-color-callout-background] border-[--w-color-callout-border]",tn="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",rn="bg-[--w-color-callout-background] border-[--w-color-callout-border]",on={"top-start":"-top-[8px]",top:"-top-[8px]","top-end":"-top-[8px]","right-start":"-right-[8px]",right:"-right-[8px]","right-end":"-right-[8px]","bottom-start":"-bottom-[8px]",bottom:"-bottom-[8px]","bottom-end":"-bottom-[8px]","left-start":"-left-[8px]",left:"-left-[8px]","left-end":"-left-[8px]"};class nn extends se{static#e=this.styles=[Pe,Vo,Ho,a`#attention{z-index:50;visibility:var(--attention-visibility);display:var(--attention-display);position:absolute}:host([popover]:not(:popover-open):not(dialog[open])){display:contents}`];constructor(){super(),this.show=!1,this.tooltip=!1,this.callout=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.flip=!1,this.crossAxis=!1,this.fallbackPlacements=[],this.attentionState=null,yt(Lo,Bo,qo,Fo,Wo),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(Mo).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:\n${JSON.stringify(Object.keys(Mo))}`);if(this.fallbackPlacements&&!this.fallbackPlacements.every(e=>Po.includes(e)))throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:\n${JSON.stringify(Po)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},0),this.callout||(window.addEventListener("click",this.handleDone),window.addEventListener("scroll",this.handleDone),window.addEventListener("resize",this.handleDone),window.addEventListener("touch",this.handleDone)),this.tooltip&&(window.addEventListener("mouseover",this.handleDone),window.addEventListener("mouseout",this.handleDone))}disconnectedCallback(){window.removeEventListener("click",this.handleDone),window.removeEventListener("scroll",this.handleDone),window.removeEventListener("resize",this.handleDone),window.removeEventListener("touch",this.handleDone),window.removeEventListener("mouseover",this.handleDone),window.removeEventListener("mouseout",this.handleDone),super.disconnectedCallback()}handleDone(){window.requestAnimationFrame(()=>{this.show&&this._targetEl&&this._attentionEl&&this.attentionState?Io(this.attentionState).then(e=>{this._actualDirection=e?.actualDirection}):this._actualDirection=this._initialPlacement})}get _actualDirection(){return this.placement}set _actualDirection(e){this.placement=e}get _arrowEl(){return this.renderRoot.querySelector("#arrow")}get _arrowDirection(){return Mo[this._actualDirection]}get _arrowClasses(){const e=on[this._arrowDirection];return Ce([Qo,this._activeVariantClasses.arrow,e])}get _arrowHtml(){return this.noArrow?H:B`<div id="arrow" class="${this._arrowClasses}"></div>`}get _activeVariantClasses(){return this.callout?{wrapper:Jo,arrow:en}:this.popover?{wrapper:Zo,arrow:tn}:this.tooltip?{wrapper:Uo,arrow:Go}:this.highlight?{wrapper:Ko,arrow:rn}:{wrapper:"",arrow:""}}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){const e=this.renderRoot?.querySelector("slot[name='target']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _messageEl(){const e=this.renderRoot.querySelector("slot[name='message']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _wrapperClasses(){return Ce([Xo,this._activeVariantClasses.wrapper])}get _ariaClose(){return pt._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}get _closeBtnHtml(){return B`<w-button aria-label="${this._ariaClose}" @click="${this.close}" @keydown="${this.keypressed}" variant="pill" small="" class="ml-8"><w-icon name="Close" size="small" locale="${wt()}" class="flex"></w-icon></w-button>`}updated(){this._attentionEl&&(this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"flex":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this._arrowEl,attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow,distance:this.distance,skidding:this.skidding,flip:this.flip,crossAxis:this.crossAxis,fallbackPlacements:this.fallbackPlacements},Io(this.attentionState))}pointingAtDirection(){switch(Mo[this._actualDirection]){case"top-start":case"top":case"top-end":return pt._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});case"right-start":case"right":case"right-end":return pt._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom-start":case"bottom":case"bottom-end":return pt._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left-start":case"left":case"left-end":return pt._({id:"attention.aria.pointingLeft",message:"pointing left",comment:"Default screenreader message for left direction in the attention component"});default:return""}}activeAttentionType(){switch(!0){case this.tooltip:return pt._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return pt._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return pt._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return pt._({id:"attention.aria.highlight",message:"highlighted speech bubble",comment:"Default screenreader message for highlighted speech bubble in the attention component"});default:return""}}defaultAriaLabel(){return`${this.activeAttentionType()} ${this.noArrow?"":this.pointingAtDirection()}`}firstUpdated(){this._initialPlacement=this.placement,this.callout&&this._attentionEl&&(this._attentionEl.style.position="relative")}close(){const e=new CustomEvent("close",{bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}keypressed(e){this.canClose&&"Escape"===e.key&&(e.preventDefault(),this.close())}render(){return this.callout||void 0!==this._targetEl?B`<section class="${De(this.className?this.className:void 0)}">${"right-start"===this.placement||"right"===this.placement||"right-end"===this.placement||"bottom-start"===this.placement||"bottom"===this.placement||"bottom-end"===this.placement?B`<slot name="target"></slot><div id="attention" class="${this._wrapperClasses}"><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div><slot name="message"></slot>${this.canClose?this._closeBtnHtml:H}</div>`:B`<div id="attention" class="${this._wrapperClasses}"><slot name="message"></slot><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>${this.canClose?this._closeBtnHtml:H}</div><slot name="target"></slot>`}</section>`:B``}}Yo([he({type:Boolean,reflect:!0})],nn.prototype,"show",void 0),Yo([he({type:String,reflect:!1})],nn.prototype,"placement",void 0),Yo([he({type:Boolean,reflect:!0})],nn.prototype,"tooltip",void 0),Yo([he({type:Boolean,reflect:!0})],nn.prototype,"callout",void 0),Yo([he({type:Boolean,reflect:!0})],nn.prototype,"popover",void 0),Yo([he({type:Boolean,reflect:!0})],nn.prototype,"highlight",void 0),Yo([he({attribute:"can-close",type:Boolean,reflect:!0})],nn.prototype,"canClose",void 0),Yo([he({attribute:"no-arrow",type:Boolean,reflect:!0})],nn.prototype,"noArrow",void 0),Yo([he({type:Number})],nn.prototype,"distance",void 0),Yo([he({type:Number})],nn.prototype,"skidding",void 0),Yo([he({type:Boolean,reflect:!0})],nn.prototype,"flip",void 0),Yo([he({attribute:"cross-axis",type:Boolean,reflect:!0})],nn.prototype,"crossAxis",void 0),Yo([he({attribute:"fallback-placements",type:Array,reflect:!0,useDefault:!0})],nn.prototype,"fallbackPlacements",void 0),customElements.get("w-attention")||customElements.define("w-attention",nn);const an=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.backdrop-blur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.bg-\\[--w-black\\/70\\]{background-color:rgba(var(--w-rgb-black),.7)}.bg-\\[--w-color-badge-info-background\\]{background-color:var(--w-color-badge-info-background)}.bg-\\[--w-color-badge-negative-background\\]{background-color:var(--w-color-badge-negative-background)}.bg-\\[--w-color-badge-neutral-background\\]{background-color:var(--w-color-badge-neutral-background)}.bg-\\[--w-color-badge-positive-background\\]{background-color:var(--w-color-badge-positive-background)}.bg-\\[--w-color-badge-sponsored-background\\]{background-color:var(--w-color-badge-sponsored-background)}.bg-\\[--w-color-badge-warning-background\\]{background-color:var(--w-color-badge-warning-background)}.border-0{border-width:0}.rounded-4{border-radius:4px}.rounded-bl-0{border-bottom-left-radius:0}.rounded-br-0{border-bottom-right-radius:0}.rounded-tl-0{border-top-left-radius:0}.rounded-tr-0{border-top-right-radius:0}.inline-flex{display:inline-flex}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-text{color:var(--w-s-color-text)}.s-text-inverted-static{color:var(--w-s-color-text-inverted-static)}.px-8{padding-left:.8rem;padding-right:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}");var sn=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class ln extends se{static#e=this.styles=[Pe,an];get _class(){const e=this.variant||"neutral";return Ce(["py-4 px-8 border-0 rounded-4 text-xs inline-flex","neutral"===e&&"bg-[--w-color-badge-neutral-background] s-text","info"===e&&"bg-[--w-color-badge-info-background] s-text","positive"===e&&"bg-[--w-color-badge-positive-background] s-text","warning"===e&&"bg-[--w-color-badge-warning-background] s-text","negative"===e&&"bg-[--w-color-badge-negative-background] s-text","disabled"===e&&"s-bg-disabled s-text","price"===e&&"bg-[--w-black/70] s-text-inverted-static","sponsored"===e&&"bg-[--w-color-badge-sponsored-background] s-text",!!this.position&&"absolute backdrop-blur","top-left"===this.position&&"rounded-tl-0 rounded-tr-0 rounded-bl-0 top-0 left-0","top-right"===this.position&&"rounded-tl-0 rounded-tr-0 rounded-br-0 top-0 right-0","bottom-right"===this.position&&"rounded-tr-0 rounded-br-0 rounded-bl-0 bottom-0 right-0","bottom-left"===this.position&&"rounded-tl-0 rounded-br-0 rounded-bl-0 bottom-0 left-0"])}render(){return B`<div class="${this._class}"><slot></slot></div>`}}sn([he({type:String,reflect:!0})],ln.prototype,"variant",void 0),sn([he({type:String,reflect:!0})],ln.prototype,"position",void 0),customElements.get("w-badge")||customElements.define("w-badge",ln);const dn=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-2{border-width:2px}.rounded{border-radius:4px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.p-16{padding:1.6rem}.break-words{overflow-wrap:break-word}@media (min-width:480px){.sm\\:rounded-8{border-radius:8px}.sm\\:mx-0{margin-left:0;margin-right:0}}");var cn=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class hn extends(Ae(se)){constructor(){super(...arguments),this.bleed=!1,this.bordered=!1,this.info=!1,this.neutral=!1,this.role="region"}static#e=this.styles=[Pe,dn,a`:host{display:block}::slotted(:last-child){margin-bottom:0!important}`];connectedCallback(){super.connectedCallback(),this.internals.role=this.role}updated(e){super.updated(e),e.has("role")&&(this.internals.role=this.role)}get _class(){return Ce(["group block relative break-words last-child:mb-0 p-16 rounded-8",this.bleed&&"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8",this.info&&"s-bg-info-subtle",this.neutral&&"s-surface-sunken",this.bordered&&"border-2 s-border s-bg"])}render(){return B`<div class="${this._class}"><slot></slot></div>`}}cn([he({type:Boolean,reflect:!0})],hn.prototype,"bleed",void 0),cn([he({type:Boolean,reflect:!0})],hn.prototype,"bordered",void 0),cn([he({type:Boolean,reflect:!0})],hn.prototype,"info",void 0),cn([he({type:Boolean,reflect:!0})],hn.prototype,"neutral",void 0),cn([he({type:String,reflect:!0,useDefault:!0})],hn.prototype,"role",void 0),customElements.get("w-box")||customElements.define("w-box",hn);const un=JSON.parse('{"breadcrumbs.ariaLabel":["Du er her"]}'),pn=JSON.parse('{"breadcrumbs.ariaLabel":["You are here"]}'),bn=JSON.parse('{"breadcrumbs.ariaLabel":["Olet tässä"]}'),gn=JSON.parse('{"breadcrumbs.ariaLabel":["Her er du"]}'),mn=JSON.parse('{"breadcrumbs.ariaLabel":["Du är här"]}'),vn=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.static{position:static}.s-text{color:var(--w-s-color-text)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.space-x-8>:not([hidden])~:not([hidden]){--w-space-x-reverse:0;margin-left:calc(.8rem * calc(1 - var(--w-space-x-reverse)));margin-right:calc(.8rem * var(--w-space-x-reverse))}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}"),fn="flex space-x-8",wn="s-text",yn="s-text-link",xn="sr-only",kn=B`<span class="${"select-none s-icon"}">/</span>`;class _n extends se{static#e=this.styles=[Pe,vn];constructor(){super(),this._children=[],this._internals=this.attachInternals(),yt(pn,gn,bn,un,mn),this._internals.ariaLabel=pt._({id:"breadcrumbs.ariaLabel",message:"You are here",comment:"Default screen reader message for the breadcrumb component"})}connectedCallback(){super.connectedCallback(),this._internals.role="navigation";const e=Array.from(this.children).flat(Number.POSITIVE_INFINITY).filter(e=>e).map((e,t)=>{if("string"==typeof e){const r=t===this.children.length-1;return B`<span class="${wn}" aria-current="${r?"page":void 0}">${e}</span>`}return e.classList.add("A"===e.tagName?yn:wn),e});this._children=function(e,t){return e.flatMap(e=>[e,t]).slice(0,-1)}(e,kn)}render(){return B`<nav aria-labelledby="breadCrumbLabel"><h2 id="breadCrumbLabel" class="${xn}">${this.ariaLabel}</h2><div class="${fn}">${this._children}</div></nav>`}}customElements.get("w-breadcrumbs")||customElements.define("w-breadcrumbs",_n);const $n=JSON.parse('{"card.button.text":["Vælg"]}'),Sn=JSON.parse('{"card.button.text":["Select"]}'),En=JSON.parse('{"card.button.text":["Valitse"]}'),Cn=JSON.parse('{"card.button.text":["Velg"]}'),On=JSON.parse('{"card.button.text":["Välj"]}'),zn=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.block{display:block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.overflow-hidden{overflow:hidden}.outline{outline-style:solid}.inset-0{top:0;bottom:0;left:0;right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.\\!s-bg-selected{background-color:var(--w-s-color-background-selected)!important}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.\\!hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)!important}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.\\!active\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)!important}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-selected-active:active{background-color:var(--w-s-color-background-selected-active)}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.group:hover .group-hover\\:s-border-selected-hover{border-color:var(--w-s-color-border-selected-hover)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.hover\\:s-border-selected-hover:hover{border-color:var(--w-s-color-border-selected-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\:s-border-selected-active:active{border-color:var(--w-s-color-border-selected-active)}.group:active .group-active\\:s-border-active{border-color:var(--w-s-color-border-active)}.group:active .group-active\\:s-border-selected-active{border-color:var(--w-s-color-border-selected-active)}.s-surface-elevated-200{background-color:var(--w-s-color-surface-elevated-200);box-shadow:var(--w-s-shadow-surface-elevated-200)}.hover\\:s-surface-elevated-200-hover:hover{background-color:var(--w-s-color-surface-elevated-200-hover);box-shadow:var(--w-s-shadow-surface-elevated-200-hover)}.active\\:s-surface-elevated-200-active:active{background-color:var(--w-s-color-surface-elevated-200-active);box-shadow:var(--w-s-shadow-surface-elevated-200-active)}.cursor-pointer{cursor:pointer}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}");var An=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Dn="cursor-pointer overflow-hidden relative transition-all",Pn="group rounded-8 s-surface-elevated-200 hover:s-surface-elevated-200-hover active:s-surface-elevated-200-active",Mn="!s-bg-selected !hover:s-bg-selected-hover !active:s-bg-selected-active",Tn="absolute border-2 rounded-8 inset-0 transition-all",Rn="border-transparent group-active:s-border-active",jn="s-border-selected group-hover:s-border-selected-hover group-active:s-border-selected-active",Nn="border-2 rounded-4",In="s-bg hover:s-bg-hover active:s-bg-active s-border hover:s-border-hover active:s-border-active",Vn="s-bg-selected hover:s-bg-selected-hover active:s-bg-selected-active s-border-selected hover:s-border-selected-hover active:s-border-selected-active",Fn="sr-only",Ln="Enter",qn=" ";class Bn extends se{static#e=this.styles=[Pe,zn,a`a:after{content:"";position:absolute;inset:0}:host{display:block}`];constructor(){super(),this.selected=!1,this.flat=!1,this.clickable=!1,yt(Sn,Cn,En,$n,On),this.buttonText=pt._({id:"card.button.text",message:"Select",comment:"Screenreader message to indicate that the card is clickable"})}get _containerClasses(){return Ce([Dn,this.flat?Nn:Pn,this.selected&&!this.flat&&Mn,this.selected&&this.flat?Vn:In])}get _outlineClasses(){return Ce([Tn,this.selected?jn:Rn])}get _interactiveElement(){return this.clickable?(()=>B`<button class="${Fn}" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`)():this.selected?B`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`:""}keypressed(e){!this.clickable||e.altKey||e.ctrlKey||e.key!==Ln&&e.key!==qn||(e.preventDefault(),this.click())}render(){return B`<div tabindex="${De(this.clickable?"0":void 0)}" class="${this._containerClasses}" @keydown="${this.keypressed}">${this._interactiveElement} ${this.flat?"":B`<div class="${this._outlineClasses}"></div>`}<slot></slot></div>`}}An([he({type:Boolean,reflect:!0})],Bn.prototype,"selected",void 0),An([he({type:Boolean})],Bn.prototype,"flat",void 0),An([he({type:Boolean})],Bn.prototype,"clickable",void 0),customElements.get("w-card")||customElements.define("w-card",Bn)
|
|
2498
59
|
/**
|
|
2499
60
|
* @license
|
|
2500
61
|
* Copyright 2020 Google LLC
|
|
2501
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2502
|
-
*/;const{I:
|
|
63
|
+
*/;const{I:Wn}=ne,Hn=e=>e,Yn=()=>document.createComment(""),Xn=(e,t,r)=>{const o=e._$AA.parentNode,n=void 0===t?e._$AB:t._$AA;if(void 0===r){const t=o.insertBefore(Yn(),n),i=o.insertBefore(Yn(),n);r=new Wn(t,i,e,e.options)}else{const t=r._$AB.nextSibling,i=r._$AM,a=i!==e;if(a){let t;r._$AQ?.(e),r._$AM=e,void 0!==r._$AP&&(t=e._$AU)!==i._$AU&&r._$AP(t)}if(t!==n||a){let e=r._$AA;for(;e!==t;){const t=Hn(e).nextSibling;Hn(o).insertBefore(e,n),e=t}}}return r},Un=(e,t,r)=>(void 0===r&&(r=e),e._$AI(t,r),e),Jn={},Kn=(e,t)=>(void 0===t&&(t=Jn),e._$AH=t),Zn=e=>{e._$AR(),e._$AA.remove()},Qn=we(class extends ye{constructor(e){if(super(e),e.type!==ve&&e.type!==ge&&e.type!==fe)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,t){let[r]=t;if(r===W||r===H)return r;const o=e.element,n=e.name;if(e.type===ve){if(r===o[n])return W}else if(e.type===fe){if(!!r===o.hasAttribute(n))return W}else if(e.type===ge&&o.getAttribute(n)===r+"")return W;return Kn(e),r}}),Gn=a`:host{--_label-font-size:var(--w-c-checkbox-label-font-size,var(--w-font-size-m));--_label-line-height:var(--w-c-checkbox-label-line-height,var(--w-line-height-m));--_control-size:var(--w-c-checkbox-control-size,2rem);--_gap:var(--w-c-checkbox-gap,8px);--_radius:var(--w-c-checkbox-radius,4px);--_border-width:var(--w-c-checkbox-border-width,1px);--_bg-default:var(--w-c-checkbox-bg,var(--w-s-color-background));--_border-default:var(--w-c-checkbox-border-color,var(--w-s-color-border-strong));--_icon-color:var(--w-c-checkbox-icon-color,var(--w-s-color-icon-inverted));--_bg-checked:var(--w-c-checkbox-bg-checked,var(--w-s-color-background-primary));--_border-checked:var(--w-c-checkbox-border-color-checked,var(--w-s-color-border-primary));--_checked-icon:var(--w-c-checkbox-checked-icon,var(--w-icon-toggle-checked));--_border-invalid:var(--w-c-checkbox-border-color-invalid,var(--w-s-color-border-negative));--_bg-invalid-checked:var(--w-c-checkbox-bg-invalid-checked,var(--w-s-color-background-negative));--_bg-disabled:var(--w-c-checkbox-bg-disabled,var(--w-s-color-background-disabled-subtle));--_border-disabled:var(--w-c-checkbox-border-color-disabled,var(--w-s-color-border-disabled));--_bg-disabled-checked:var(--w-c-checkbox-bg-disabled-checked,var(--w-s-color-background-disabled));--_outline-width:var(--w-c-checkbox-outline-width,2px);--_outline-color:var(--w-c-checkbox-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-checkbox-outline-offset,var(--w-outline-offset,1px));--_transition:var(--w-c-checkbox-transition,all .15s cubic-bezier(.4, 0, .2, 1));--_bg:var(--_bg-default);--_border-color:var(--_border-default)}:host([type=checkbox]){--_radius:var(--w-c-checkbox-radius,4px)}:host([checked]),:host([indeterminate]){--_bg:var(--_bg-checked);--_border-color:var(--_border-checked)}:host([disabled]){--_bg:var(--_bg-disabled);--_border-color:var(--_border-disabled)}:host([disabled][checked]),:host([disabled][indeterminate]){--_bg:var(--_bg-disabled-checked)}[part~=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);user-select:none;cursor:pointer;display:block}[part=base]{grid-template-columns:var(--_control-size) max-content;gap:var(--_gap);display:grid}[part=input]{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute;inset:0}[part=control]{height:var(--_control-size);width:var(--_control-size);border-width:var(--_border-width);border-style:solid;border-color:var(--_border-color);border-radius:var(--_radius);background-color:var(--_bg);color:var(--_icon-color);cursor:pointer;user-select:none;appearance:none;transition:var(--_transition);text-align:center;font-weight:700;line-height:var(--w-line-height-xs);font-size:var(--w-font-size-m);flex-shrink:0;display:block;position:relative}[part=control]:has(>[part=input][aria-invalid=true]:not(:disabled)){border-color:var(--_border-invalid)}[part=control]:has(>[part=input][aria-invalid=true]:is(:checked,:indeterminate):not(:disabled)){background-color:var(--_bg-invalid-checked)}:host(:focus-visible){outline:none}[part=control]:has(>[part=input]:focus-visible:not(:disabled)),:host(:focus-visible) [part=control]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}[part=control]:has(:checked){background-image:var(--_checked-icon);background-position:50%}@media (prefers-reduced-motion:reduce){:host{--w-c-checkbox-transition:none}}`;
|
|
2503
64
|
/**
|
|
2504
65
|
* @license
|
|
2505
66
|
* Copyright 2020 Google LLC
|
|
2506
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2507
|
-
*/var
|
|
68
|
+
*/var ei=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class ti extends(Ae(se)){constructor(){super(...arguments),this.value=null,this.indeterminate=!1,this.checked=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.#n=!1,this.#i=!1,this.#a=!1,this.#s=()=>{this.#l(),this.#d()},this.#c=e=>{this.disabled||e.defaultPrevented||" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||("Enter"===e.key&&this.internals.form?this.internals.form.requestSubmit():e.composedPath()[0]!==this.input&&(e.preventDefault(),this.click()))}}static#e=this.styles=[Pe,Gn];static#o=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};set name(e){this._ownName=e}get name(){return this._ownName||this._groupName}#n;#i;#a;get _computedInvalid(){return this.invalid||!0===this._groupInvalid}connectedCallback(){super.connectedCallback();const e=this.getAttribute("value");this.value=e??"on",this.#n=this.hasAttribute("checked"),this.checked=this.#n,this.addEventListener("invalid",this.#s),this.addEventListener("keydown",this.#c),this.#h()}handleClick(){this.disabled||(this.#l(),this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}))}#s;#c;updated(e){super.updated(e),(e.has("checked")||e.has("indeterminate"))&&this.#u(),this.#p(e)&&(this.#h(),this.#d())}resetFormControl(){this.checked=this.#n,this.#h(),this.#d()}click(){this.disabled||this.input?.click()}focus(e){this.input?.focus(e)}blur(){this.input?.blur()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.#d(),this.internals.checkValidity()}reportValidity(){return this.#l(),this.#d(),this.internals.checkValidity()}#l(){this.#a=!0}#b(){return this.input?.validationMessage||" "}#g(){return this.input??void 0}#m(e){this.internals.setValidity(e,this.#b(),this.#g())}#d(){if(this.disabled)return void this.internals.setValidity({});const e=this.required&&!this.checked,t=this.invalid&&!this.#i;if(e)return this.#i=!0,this.invalid=this.#a,void this.#m({valueMissing:!0});this.#i&&(this.invalid=!1,this.#i=!1),t?this.#m({customError:!0}):this.internals.setValidity({})}#h(){if(this.disabled)return void this.setValue(null);const e=this.checked?this.value:null;this.setValue(e)}#u(){this.input&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate)}#p(e){return e.has("checked")||e.has("value")||e.has("disabled")||e.has("required")||e.has("invalid")}render(){const e=!this.checked&&this.indeterminate,t=e?"mixed":this.checked?"true":"false";return B`<label part="base" class="wrapper"><span part="control" class="checkbox control"><input part="input" class="input hide-toggle" type="checkbox" name="${De(this.name||void 0)}" value="${De(this.value)}" .indeterminate="${Qn(this.indeterminate)}" .checked="${Qn(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${t}" aria-invalid="${De(this._computedInvalid?"true":void 0)}" @click="${this.handleClick}"> ${e?"–":""}</span><slot part="label"></slot></label>`}}ei([be('input[type="checkbox"]')],ti.prototype,"input",void 0),ei([he({reflect:!0})],ti.prototype,"name",null),ei([he({reflect:!0})],ti.prototype,"value",void 0),ei([he({type:Boolean,reflect:!0})],ti.prototype,"indeterminate",void 0),ei([he({type:Boolean,reflect:!0})],ti.prototype,"checked",void 0),ei([he({type:Boolean,reflect:!0})],ti.prototype,"disabled",void 0),ei([he({type:Boolean,reflect:!0})],ti.prototype,"required",void 0),ei([he({type:Boolean,reflect:!0})],ti.prototype,"invalid",void 0),ei([he({attribute:!1})],ti.prototype,"_groupInvalid",void 0),ei([he({attribute:!1})],ti.prototype,"_groupName",void 0);const ri=ti;customElements.get("w-checkbox")||customElements.define("w-checkbox",ti);const oi=JSON.parse('{"checkbox-group.label.optional":["Valgfri"],"checkbox-group.validation.required":["Mindst én valgt mulighed er påkrævet."]}'),ni=JSON.parse('{"checkbox-group.label.optional":["Optional"],"checkbox-group.validation.required":["At least one selection is required."]}'),ii=JSON.parse('{"checkbox-group.label.optional":["Valinnainen"],"checkbox-group.validation.required":["Vähintään yksi valinta vaaditaan."]}'),ai=JSON.parse('{"checkbox-group.label.optional":["Valgfri"],"checkbox-group.validation.required":["Minst ett valg er påkrevd."]}'),si=JSON.parse('{"checkbox-group.label.optional":["Valfritt"],"checkbox-group.validation.required":["Minst ett val krävs."]}');var li=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};yt(ni,ai,ii,oi,si);class di extends(Ae(se)){constructor(){super(...arguments),this.optional=!1,this.required=!1,this.invalid=!1,this.#a=!1,this.#v=!1,this._internalTabIndex=-1,this.#f=()=>{this.#l(),this.#d(),this.requestUpdate()},this.#s=()=>{this.#l(),this.#d(),this.requestUpdate()},this.#w=()=>{this.#y(),this.#d(),this.requestUpdate()},this.#x=()=>{this.requestUpdate()}}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#a;#v;#k;static#o=this.styles=a`.wrapper{flex-direction:column;gap:16px;display:inline-flex}.checkbox-group{gap:16px;display:grid}.label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);color:var(--w-s-color-text);align-items:center;gap:8px;font-weight:700;display:flex}.optional{color:var(--w-s-color-text-subtle);font-weight:400}.help-text{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);color:var(--w-s-color-text-subtle);display:block}.error{color:var(--w-s-color-text-negative)}`;render(){const e=this.#_()>0,t=this.required&&!e&&this.#a,r=this.invalid||t,o=r?this.#$():this.helpText,n=o?"checkbox-group__help":void 0,i=this.label?"checkbox-group__label":void 0,a=r?"true":void 0;return B`<div class="wrapper" tabindex="${this._internalTabIndex}">${this.label?B`<div class="label" id="${i}"><span>${this.label}</span> ${this.optional?B`<span class="optional">${pt._({id:"checkbox-group.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:H}</div>`:H}<div class="checkbox-group" role="group" aria-labelledby="${De(i)}" aria-describedby="${De(n)}" aria-invalid="${De(a)}"><slot></slot></div>${o?B`<div class="${r?"help-text error":"help-text"}" id="${n}">${o}</div>`:H}</div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.#f),this.addEventListener("invalid",this.#s),this.addEventListener("slotchange",this.#w),this.#k=pt.on("change",this.#x),this.setValue(null),this.#S()}disconnectedCallback(){this.#k?.(),this.#k=void 0,super.disconnectedCallback()}checkValidity(){return this.#d(),this.internals.checkValidity()}reportValidity(){return this.#l(),this.#d(),this.internals.checkValidity()}focus(e){const t=this.#E();t?.focus?t.focus(e):HTMLElement.prototype.focus.call(this,e)}#f;#s;#w;#l(){this.#a=!0}#x;#_(){return this.#C().filter(e=>e.checked).length}#y(){if(this.name)for(const e of this.#C()){const t=e;t&&"object"==typeof t&&!t.name&&(t._groupName=this.name)}}#O(e){for(const t of this.#C())"_groupInvalid"in t&&(t._groupInvalid=e)}#E(){return this.#C()[0]}#C(){const e=this.shadowRoot?.querySelector("slot");return e?.assignedElements({flatten:!0})??[]}#$(){return pt._({id:"checkbox-group.validation.required",message:"At least one selection is required.",comment:"Shown when required checkbox group has no selections"})}updated(e){super.updated(e),this.#z(e)&&(e.has("name")&&this.#y(),this.#d())}#z(e){return e.has("invalid")||e.has("required")||e.has("helpText")||e.has("name")}#A(e){const t=this.#E();this.internals.setValidity(e," ",t??void 0)}#D(e){this._internalTabIndex=e?0:-1}#d(){this.#S();const e=this.#_()>0,t=this.required&&!e,r=this.invalid,o=t&&this.#a,n=r||o;return this.#D(n),t?(this.#A({valueMissing:!0}),void this.#O(n)):r?(this.#A({customError:!0}),void this.#O(!0)):(this.internals.setValidity({}),void this.#O(!1))}#S(){this.#v||this.internals.form&&(this.name&&this.name.trim().length>0||(console.warn('w-checkbox-group: "name" is required for form submission.'),this.#v=!0))}}li([he({type:String,reflect:!0})],di.prototype,"label",void 0),li([he({type:String,reflect:!0})],di.prototype,"name",void 0),li([he({type:Boolean,reflect:!0})],di.prototype,"optional",void 0),li([he({type:String,reflect:!0,attribute:"help-text"})],di.prototype,"helpText",void 0),li([he({type:Boolean,reflect:!0})],di.prototype,"required",void 0),li([he({type:Boolean,reflect:!0})],di.prototype,"invalid",void 0),li([ue()],di.prototype,"_internalTabIndex",void 0);const ci=di;customElements.get("w-checkbox-group")||customElements.define("w-checkbox-group",di)
|
|
2508
69
|
/**
|
|
2509
70
|
* @license
|
|
2510
71
|
* Copyright 2017 Google LLC
|
|
2511
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2512
|
-
*/;const da=(e,t,r)=>{const o=new Map;for(let i=t;i<=r;i++)o.set(e[i],i);return o},ca=fe(class extends we{constructor(e){if(super(e),e.type!==ge)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let o;void 0===r?r=t:void 0!==t&&(o=t);const i=[],a=[];let n=0;for(const t of e)i[n]=o?o(t,n):n,a[n]=r(t,n),n++;return{values:a,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,t){let[r,o,i]=t;const a=(e=>e._$AH)(e),{values:n,keys:s}=this.dt(r,o,i);if(!Array.isArray(a))return this.ut=s,n;const l=this.ut??=[],d=[];let c,h,u=0,p=a.length-1,b=0,g=n.length-1;for(;u<=p&&b<=g;)if(null===a[u])u++;else if(null===a[p])p--;else if(l[u]===s[b])d[b]=Yi(a[u],n[b]),u++,b++;else if(l[p]===s[g])d[g]=Yi(a[p],n[g]),p--,g--;else if(l[u]===s[g])d[g]=Yi(a[u],n[g]),Hi(e,d[g+1],a[u]),u++,g--;else if(l[p]===s[b])d[b]=Yi(a[p],n[b]),Hi(e,a[u],a[p]),p--,b++;else if(void 0===c&&(c=da(s,b,g),h=da(l,u,p)),c.has(l[u]))if(c.has(l[p])){const t=h.get(s[b]),r=void 0!==t?a[t]:null;if(null===r){const t=Hi(e,a[u]);Yi(t,n[b]),d[b]=t}else d[b]=Yi(r,n[b]),Hi(e,a[u],r),a[t]=null;b++}else Ji(a[p]),p--;else Ji(a[u]),u++;for(;b<=g;){const t=Hi(e,d[g+1]);Yi(t,n[b]),d[b++]=t}for(;u<=p;){const e=a[u++];null!==e&&Ji(e)}return this.ut=s,Ui(e,d),W}}),ha=JSON.parse('{"combobox.aria.noResults":["Ingen resultater"],"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),ua=JSON.parse('{"combobox.aria.noResults":["No results"],"combobox.aria.noSuggestions":["No suggestions"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," result"],"other":["#"," results"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," suggestion"],"other":["#"," suggestions"]}]]}'),pa=JSON.parse('{"combobox.aria.noResults":["Ei tuloksia"],"combobox.aria.noSuggestions":["Ei ehdotuksia"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," tulos"],"other":["#"," tulosta"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," ehdotus"],"other":["#"," ehdotusta"]}]]}'),ba=JSON.parse('{"combobox.aria.noResults":["Ingen resultater"],"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),ga=JSON.parse('{"combobox.aria.noResults":["Inga resultat"],"combobox.aria.noSuggestions":["Inga förslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultat"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," förslag"],"other":["#"," förslag"]}]]}'),ma=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.list-none{list-style-type:none}.left-0{left:0}.right-0{right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.shadow-m{box-shadow:var(--w-shadow-m)}.m-0{margin:0}.p-0{padding:0}.p-8{padding:.8rem}.pb-4{padding-bottom:.4rem}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none};
|
|
2513
|
-
.z-0{z-index:0;}.z-20{z-index:20;}`;var va=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const fa="relative z-0",wa="absolute z-20 left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m",ya="m-0 p-0 select-none list-none",xa="block cursor-pointer p-8",ka="hover:s-bg-hover",_a="s-bg-selected hover:s-bg-selected-hover",$a="font-bold",Sa="sr-only";class Ea extends(ze(ne)){static#e=this.styles=[De,ma];constructor(){super(),this.options=[],this.label="",this.placeholder="",this.value="",this.openOnFocus=!1,this.selectOnBlur=!0,this.matchTextSegments=!1,this.disableStaticFiltering=!1,this.invalid=!1,this.helpText="",this.disabled=!1,this.required=!1,this.optional=!1,this.name="",this.autocomplete="off",this._isOpen=!1,this._navigationOption=null,this._currentOptions=[],this._lightDomOptions=[],this._optionIdCounter=0,this._displayValue="",this.#t=null,wt(ua,ba,pa,ha,ga)}#t;#P;firstUpdated(e){this.#t=this.value}updated(e){e.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=this.#t}connectedCallback(){super.connectedCallback(),this.#M(),this.#P=new MutationObserver(()=>{this.#M()}),this.#P.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.#P?.disconnect()}get _listboxId(){return`${this._id}-listbox`}get _id(){return"combobox"}get _helpId(){return this.helpText?`${this._id}__hint`:void 0}get _sourceOptions(){return Array.isArray(this.options)&&this.options.length?this.options:this._lightDomOptions}get _navigationLabelOrDisplayValue(){return this._navigationOption?this._navigationOption.label||this._navigationOption.value:this._displayValue}get _navigationValueOrInputValue(){return this._navigationOption?.value||this.value}_createOptionsWithIdAndMatch(e,t){return e.map((e,r)=>({...e,id:`${this._id}-option-${this._optionIdCounter+r}`,key:e.key||e.value,currentInputValue:t}))}#T(){return Array.from(this.children).filter(e=>"option"===e.tagName.toLowerCase())}#M(){this._lightDomOptions=this.#T().map(e=>{const t=e.getAttribute("value")??"";return{value:t,label:e.hasAttribute("label")?e.getAttribute("label")??"":e.textContent??"",key:t}})}_getAriaText(e,t,r){if(!e||!r)return"";const o=e.filter(e=>(e.label||e.value).toLowerCase().includes(t.toLowerCase())),i=ut._({id:"combobox.aria.pluralSuggestions",message:"{numSuggestions, plural, one {# suggestion} other {# suggestions}}",comment:"Aria text for combobox when there are one or more suggestions",values:{numSuggestions:o.length}}),a=ut._({id:"combobox.aria.noSuggestions",message:"No suggestions",comment:"Aria text for combobox when no suggestions"});return o.length?i:a}_getOptionClasses(e){return Ee(xa,this._navigationOption?.id===e?.id?_a:ka)}_handleKeyDown(e){const t=["ArrowDown","ArrowUp","PageUp","PageDown","Home","End"].includes(e.key),r=["ArrowDown","ArrowLeft","ArrowUp","ArrowRight"];if(!t||this._isOpen){if(t&&this._isOpen)this._findAndSetActiveOption(e);else if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.key){case"Enter":this._navigationOption&&(e.preventDefault(),this._handleSelect(this._navigationOption),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),t=e?.shadowRoot?.querySelector("input");t&&(t.value=this._displayValue)})),this._isOpen=!1;break;case"Tab":case"Delete":this._isOpen=!1;break;case"Escape":this._isOpen?this._isOpen=!1:this._handleChange(""),this._navigationOption=null;break;case"Backspace":this._handleChange(this._navigationLabelOrDisplayValue),this._navigationOption=null,this._isOpen=!0;break;default:if(r.includes(e.key))break;this._isOpen=!0,this._navigationOption?(this._handleChange(this._navigationOption.value),this._navigationOption=null):this._handleChange(this.value)}}else this._isOpen=!0}_findAndSetActiveOption(e){e.preventDefault();const t=this._currentOptions.findIndex(e=>e.id===this._navigationOption?.id),r=t+1,o=t-1;switch(e.key){case"ArrowDown":this._navigationOption=r>this._currentOptions.length-1?null:this._currentOptions[r];break;case"ArrowUp":this._navigationOption=-2===o?this._currentOptions[this._currentOptions.length-1]:o<0?null:this._currentOptions[o];break;case"PageUp":this._navigationOption=t-10<0?this._currentOptions[0]:this._currentOptions[t-10];break;case"PageDown":this._navigationOption=t+10>this._currentOptions.length-1?this._currentOptions[this._currentOptions.length-1]:this._currentOptions[t+10];break;case"Home":this._navigationOption=this._currentOptions[0];break;case"End":this._navigationOption=this._currentOptions[this._currentOptions.length-1]}}_handleSelect(e){this.value=e.value,this._displayValue=e.label||e.value,this.setValue(this.value);const t=new CustomEvent("select",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(t),this._isOpen=!1,this._navigationOption=null,this.disableStaticFiltering&&(this._currentOptions=[])}_handleChange(e){if(void 0===e)return;this.value=e,this._displayValue=e;const t=new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}_handleFocus(){if(!this.openOnFocus)return;const e=new CustomEvent("focus",{bubbles:!0,composed:!0});this.dispatchEvent(e),this._isOpen=!0}_handleBlur(e){const t=e.relatedTarget;if(t&&this.shadowRoot?.contains(t))return;if(this._isOpen=!1,this.selectOnBlur&&(this._navigationOption||!this._navigationOption&&-1!==this._currentOptions.findIndex(e=>e.value===this.value))){const e=this._navigationOption?.value||this.value;this.value=e;const t=new CustomEvent("select",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}this._navigationOption=null;const r=new CustomEvent("blur",{detail:{value:this._navigationValueOrInputValue},bubbles:!0,composed:!0});this.dispatchEvent(r)}_handleOptionClick(e,t){this._handleSelect(t),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),r=e?.shadowRoot?.querySelector("input");r&&(r.value=t.label||t.value)})}_handleContainerBlur(e){(!e.currentTarget||!e.currentTarget.contains(e.relatedTarget))&&(this._isOpen=!1)}_renderTextMatch(e,t){if(!this.matchTextSegments)return e;const r=e.toLowerCase().indexOf(t.currentInputValue.toLowerCase());if(-1!==r){const o=r+t.currentInputValue.length;return q`${e.substring(0,r)}<span class="${$a}">${e.substring(r,o)}</span>${e.substring(o)}`}return e}willUpdate(e){const t=this._sourceOptions,r=e.has("_lightDomOptions");if(e.has("value")||e.has("options")||r){const e=t.find(e=>e.value===this.value),r=e?e.label||e.value:this.value;this._displayValue!==r&&this._displayValue!==this.value&&(this._displayValue=r),!this._displayValue&&this.value&&(this._displayValue=r)}(e.has("options")||r||e.has("value")||e.has("disableStaticFiltering")||e.has("_displayValue"))&&(this._optionIdCounter+=t.length,this._currentOptions=this._createOptionsWithIdAndMatch(t,this._displayValue).filter(e=>!!this.disableStaticFiltering||(e.label||e.value).toLowerCase().includes(this._displayValue.toLowerCase()))),this.disableStaticFiltering&&this._currentOptions.length&&1===this._currentOptions.length&&!this._currentOptions.some(e=>e.value===this.value)&&!this._isOpen&&(this._isOpen=!0)}render(){return q`<div class="${Ee(fa)}" @blur="${this._handleContainerBlur}"><w-textfield class="w-combobox-textfield" .value="${this._navigationLabelOrDisplayValue}" .label="${this.label}" .placeholder="${this.placeholder}" .invalid="${this.invalid}" .helpText="${this.helpText}" .disabled="${this.disabled}" .required="${this.required}" .optional="${this.optional}" .name="${this.name}" .autocomplete="${this.autocomplete||"off"}" role="combobox" aria-autocomplete="list" aria-expanded="${this._isOpen&&0!==this._currentOptions.length}" aria-activedescendant="${this._isOpen?this._navigationOption?.id:void 0}" aria-controls="${this._listboxId}" @input="${e=>this._handleChange(e?.detail?.value)}" @focus="${this._handleFocus}" @blur="${this._handleBlur}" @keydown="${this._handleKeyDown}"></w-textfield><span class="${Sa}" role="status">${this._getAriaText(this._currentOptions,this._displayValue,this._isOpen)}</span><div ?hidden="${!this._isOpen||!this._currentOptions.length}" class="${Ee(wa)}"><ul id="${this._listboxId}" role="listbox" class="${ya}">${ca(this._currentOptions,e=>e.key,e=>{const t=e.label||e.value;return q`<li id="${e.id}" role="option" aria-selected="${this._navigationOption?.id===e.id}" tabindex="-1" class="${this._getOptionClasses(e)}" @mousedown="${t=>this._handleOptionClick(t,e)}">${this._renderTextMatch(t,e)}</li>`})}</ul></div></div>`}}va([ce({type:Array})],Ea.prototype,"options",void 0),va([ce({type:String,reflect:!0,useDefault:!0})],Ea.prototype,"label",void 0),va([ce({type:String,reflect:!0,useDefault:!0})],Ea.prototype,"placeholder",void 0),va([ce({type:String,reflect:!0,useDefault:!0})],Ea.prototype,"value",void 0),va([ce({type:Boolean,attribute:"open-on-focus",reflect:!0})],Ea.prototype,"openOnFocus",void 0),va([ce({type:Boolean,attribute:"select-on-blur",reflect:!0,useDefault:!0})],Ea.prototype,"selectOnBlur",void 0),va([ce({type:Boolean,attribute:"match-text-segments",reflect:!0})],Ea.prototype,"matchTextSegments",void 0),va([ce({type:Boolean,attribute:"disable-static-filtering",reflect:!0})],Ea.prototype,"disableStaticFiltering",void 0),va([ce({type:Boolean,reflect:!0})],Ea.prototype,"invalid",void 0),va([ce({type:String,attribute:"help-text",reflect:!0,useDefault:!0})],Ea.prototype,"helpText",void 0),va([ce({type:Boolean,reflect:!0})],Ea.prototype,"disabled",void 0),va([ce({type:Boolean,reflect:!0})],Ea.prototype,"required",void 0),va([ce({type:Boolean,reflect:!0})],Ea.prototype,"optional",void 0),va([ce({type:String,reflect:!0,useDefault:!0})],Ea.prototype,"name",void 0),va([ce({type:String,reflect:!0,useDefault:!0})],Ea.prototype,"autocomplete",void 0),va([he()],Ea.prototype,"_isOpen",void 0),va([he()],Ea.prototype,"_navigationOption",void 0),va([he()],Ea.prototype,"_currentOptions",void 0),va([he()],Ea.prototype,"_lightDomOptions",void 0),va([he()],Ea.prototype,"_optionIdCounter",void 0),va([he()],Ea.prototype,"_displayValue",void 0),customElements.get("w-combobox")||customElements.define("w-combobox",Ea);const Ca=6048e5,Oa=Symbol.for("constructDateFrom");function za(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Oa in e?e[Oa](t):e instanceof Date?new e.constructor(t):new Date(t)}function Aa(e,t){return za(t||e,e)}function Da(e,t,r){const o=Aa(e,r?.in);return isNaN(t)?za(e,NaN):t?(o.setDate(o.getDate()+t),o):o}function Pa(e,t,r){const o=Aa(e,r?.in);if(isNaN(t))return za(e,NaN);if(!t)return o;const i=o.getDate(),a=za(e,o.getTime());a.setMonth(o.getMonth()+t+1,0);return i>=a.getDate()?a:(o.setFullYear(a.getFullYear(),a.getMonth(),i),o)}let Ma={};function Ta(){return Ma}function ja(e,t){const r=Ta(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Aa(e,t?.in),a=i.getDay(),n=(a<o?7:0)+a-o;return i.setDate(i.getDate()-n),i.setHours(0,0,0,0),i}function Ra(e,t){return ja(e,{...t,weekStartsOn:1})}function Na(e,t){const r=Aa(e,t?.in),o=r.getFullYear(),i=za(r,0);i.setFullYear(o+1,0,4),i.setHours(0,0,0,0);const a=Ra(i),n=za(r,0);n.setFullYear(o,0,4),n.setHours(0,0,0,0);const s=Ra(n);return r.getTime()>=a.getTime()?o+1:r.getTime()>=s.getTime()?o:o-1}function Ia(e){const t=Aa(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Va(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const i=za.bind(null,e||r.find(e=>"object"==typeof e));return r.map(i)}function Fa(e,t){const r=Aa(e,t?.in);return r.setHours(0,0,0,0),r}function La(e,t,r){const[o,i]=Va(r?.in,e,t),a=Fa(o),n=Fa(i),s=+a-Ia(a),l=+n-Ia(n);return Math.round((s-l)/864e5)}function qa(e,t,r){return Da(e,7*t,r)}function Wa(e,t,r){const[o,i]=Va(r?.in,e,t);return+Fa(o)===+Fa(i)}function Ba(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Aa(e)));var t}function Ha(e,t){const[r,o]=Va(e,t.start,t.end);return{start:r,end:o}}function Ya(e,t){const r=Aa(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Xa(e,t){const r=Ta(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Aa(e,t?.in),a=i.getDay(),n=6+(a<o?-7:0)-(a-o);return i.setDate(i.getDate()+n),i.setHours(23,59,59,999),i}const Ua={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ja=(e,t,r)=>{let o;const i=Ua[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function Ka(e){return t=>{void 0===t&&(t={});const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Za={date:Ka({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Ka({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Qa={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ga=(e,t,r,o)=>Qa[e];function en(e){return(t,r)=>{let o;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;o=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const tn={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:en({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:en({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:en({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:en({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:en({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function rn(e){return(t,r)=>{void 0===r&&(r={});const o=r.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const n=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(n)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(n));let d;d=e.valueCallback?e.valueCallback(l):l,d=r.valueCallback?r.valueCallback(d):d;return{value:d,rest:t.slice(n.length)}}}function on(e){return(t,r)=>{void 0===r&&(r={});const o=t.match(e.matchPattern);if(!o)return null;const i=o[0],a=t.match(e.parsePattern);if(!a)return null;let n=e.valueCallback?e.valueCallback(a[0]):a[0];n=r.valueCallback?r.valueCallback(n):n;return{value:n,rest:t.slice(i.length)}}}const an={ordinalNumber:on({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:rn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:rn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:rn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},nn={code:"en-US",formatDistance:Ja,formatLong:Za,formatRelative:Ga,localize:tn,match:an,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sn(e,t){const r=Aa(e,t?.in),o=La(r,function(e,t){const r=Aa(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return o+1}function ln(e,t){const r=Aa(e,t?.in),o=+Ra(r)-+function(e,t){const r=Na(e,t),o=za(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Ra(o)}(r);return Math.round(o/Ca)+1}function dn(e,t){const r=Aa(e,t?.in),o=r.getFullYear(),i=Ta(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,n=za(t?.in||e,0);n.setFullYear(o+1,0,a),n.setHours(0,0,0,0);const s=ja(n,t),l=za(t?.in||e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);const d=ja(l,t);return+r>=+s?o+1:+r>=+d?o:o-1}function cn(e,t){const r=Aa(e,t?.in),o=+ja(r,t)-+function(e,t){const r=Ta(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=dn(e,t),a=za(t?.in||e,0);return a.setFullYear(i,0,o),a.setHours(0,0,0,0),ja(a,t)}(r,t);return Math.round(o/Ca)+1}function hn(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const un={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return hn("yy"===t?o%100:o,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):hn(r+1,2)},d:(e,t)=>hn(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>hn(e.getHours()%12||12,t.length),H:(e,t)=>hn(e.getHours(),t.length),m:(e,t)=>hn(e.getMinutes(),t.length),s:(e,t)=>hn(e.getSeconds(),t.length),S(e,t){const r=t.length,o=e.getMilliseconds();return hn(Math.trunc(o*Math.pow(10,r-3)),t.length)}},pn="midnight",bn="noon",gn="morning",mn="afternoon",vn="evening",fn="night",wn={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return r.ordinalNumber(o,{unit:"year"})}return un.y(e,t)},Y:function(e,t,r,o){const i=dn(e,o),a=i>0?i:1-i;if("YY"===t){return hn(a%100,2)}return"Yo"===t?r.ordinalNumber(a,{unit:"year"}):hn(a,t.length)},R:function(e,t){return hn(Na(e),t.length)},u:function(e,t){return hn(e.getFullYear(),t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return hn(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return hn(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return un.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return hn(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const i=cn(e,o);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):hn(i,t.length)},I:function(e,t,r){const o=ln(e);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):hn(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):un.d(e,t)},D:function(e,t,r){const o=sn(e);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):hn(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const i=e.getDay(),a=(i-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return hn(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const i=e.getDay(),a=(i-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return hn(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),i=0===o?7:o;switch(t){case"i":return String(i);case"ii":return hn(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let i;switch(i=12===o?bn:0===o?pn:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let i;switch(i=o>=17?vn:o>=12?mn:o>=4?gn:fn,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return un.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):un.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return"Ko"===t?r.ordinalNumber(o,{unit:"hour"}):hn(o,t.length)},k:function(e,t,r){let o=e.getHours();return 0===o&&(o=24),"ko"===t?r.ordinalNumber(o,{unit:"hour"}):hn(o,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):un.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):un.s(e,t)},S:function(e,t){return un.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return xn(o);case"XXXX":case"XX":return kn(o);default:return kn(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return xn(o);case"xxxx":case"xx":return kn(o);default:return kn(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yn(o,":");default:return"GMT"+kn(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yn(o,":");default:return"GMT"+kn(o,":")}},t:function(e,t,r){return hn(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return hn(+e,t.length)}};function yn(e,t){const r=e>0?"-":"+",o=Math.abs(e),i=Math.trunc(o/60),a=o%60;return 0===a?r+String(i):r+String(i)+t+hn(a,2)}function xn(e,t){if(e%60==0){return(e>0?"-":"+")+hn(Math.abs(e)/60,2)}return kn(e,t)}function kn(e,t){void 0===t&&(t="");const r=e>0?"-":"+",o=Math.abs(e);return r+hn(Math.trunc(o/60),2)+t+hn(o%60,2)}const _n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},$n=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Sn={p:$n,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return _n(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",_n(o,t)).replace("{{time}}",$n(i,t))}},En=/^D+$/,Cn=/^Y+$/,On=["D","DD","YY","YYYY"];const zn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,An=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dn=/^'([^]*?)'?$/,Pn=/''/g,Mn=/[a-zA-Z]/;function Tn(e,t,r){const o=Ta(),i=r?.locale??o.locale??nn,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Aa(e,r?.in);if(!Ba(s))throw new RangeError("Invalid time value");let l=t.match(An).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Sn[t])(e,i.formatLong)}return e}).join("").match(zn).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:jn(e)};if(wn[t])return{isToken:!0,value:e};if(t.match(Mn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const d={firstWeekContainsDate:a,weekStartsOn:n,locale:i};return l.map(o=>{if(!o.isToken)return o.value;const a=o.value;(!r?.useAdditionalWeekYearTokens&&function(e){return Cn.test(e)}(a)||!r?.useAdditionalDayOfYearTokens&&function(e){return En.test(e)}(a))&&function(e,t,r){const o=function(e,t,r){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(o),On.includes(e))throw new RangeError(o)}(a,t,String(e));return(0,wn[a[0]])(s,a,i.localize,d)}).join("")}function jn(e){const t=e.match(Dn);return t?t[1].replace(Pn,"'"):e}function Rn(e,t){return Aa(e,t?.in).getDate()}function Nn(e,t){const r=Ta(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Rn(Aa(e,t?.in));if(isNaN(i))return NaN;const a=function(e,t){return Aa(e,t?.in).getDay()}(Ya(e,t));let n=o-a;n<=0&&(n+=7);const s=i-n;return Math.ceil(s/7)+1}function In(e,t){const r=Aa(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),Aa(r,t?.in)}function Vn(e,t,r){const[o,i]=Va(r?.in,e,t);return o.getFullYear()===i.getFullYear()&&o.getMonth()===i.getMonth()}function Fn(e,t){return Wa(za(e,e),function(e){return za(e,Date.now())}(e))}function Ln(e,t,r){return Da(e,-t,r)}function qn(e,t,r){return Pa(e,-1,r)}const Wn={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},Bn={date:Ka({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Ka({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Hn={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Yn={code:"da",formatDistance:(e,t,r)=>{let o;const i=Wn[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:Bn,formatRelative:(e,t,r,o)=>Hn[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:en({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:en({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:en({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:en({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:en({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:on({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:rn({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:rn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:rn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rn({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Xn={code:"en-GB",formatDistance:Ja,formatLong:{date:Ka({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Ka({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:Ga,localize:tn,match:an,options:{weekStartsOn:1,firstWeekContainsDate:4}};function Un(e){return e.replace(/sekuntia?/,"sekunnin")}function Jn(e){return e.replace(/minuuttia?/,"minuutin")}function Kn(e){return e.replace(/tuntia?/,"tunnin")}function Zn(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function Qn(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function Gn(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const es={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:Un},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:Un},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Jn},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Jn},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Kn},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Kn},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:function(e){return e.replace(/päivää?/,"päivän")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Zn},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Zn},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Qn},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Qn},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:Gn},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:Gn},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:Gn},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:Gn}},ts={date:Ka({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:Ka({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},rs={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},os={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},is={narrow:os.narrow,abbreviated:os.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},as={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},ns={narrow:as.narrow,short:as.short,abbreviated:as.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},ss={code:"fi",formatDistance:(e,t,r)=>{const o=es[e],i=1===t?o.one:o.other.replace("{{count}}",String(t));return r?.addSuffix?r.comparison&&r.comparison>0?o.futureTense(i)+" kuluttua":i+" sitten":i},formatLong:ts,formatRelative:(e,t,r,o)=>rs[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:en({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:en({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:en({values:os,defaultWidth:"wide",formattingValues:is,defaultFormattingWidth:"wide"}),day:en({values:as,defaultWidth:"wide",formattingValues:ns,defaultFormattingWidth:"wide"}),dayPeriod:en({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},defaultWidth:"wide"})},match:{ordinalNumber:on({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:rn({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:rn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:rn({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:rn({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ls={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},ds={date:Ka({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Ka({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},cs={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},hs={code:"nb",formatDistance:(e,t,r)=>{let o;const i=ls[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:ds,formatRelative:(e,t,r,o)=>cs[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:en({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:en({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:en({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:en({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:en({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},defaultWidth:"wide"})},match:{ordinalNumber:on({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:rn({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:rn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:rn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rn({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},us={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},ps=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],bs={date:Ka({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:Ka({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Ka({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},gs={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},ms={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:case 2:return r+":a"}return r+":e"},era:en({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:en({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:en({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:en({values:{narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},defaultWidth:"wide"}),dayPeriod:en({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},defaultFormattingWidth:"wide"})},vs={code:"sv",formatDistance:(e,t,r)=>{let o;const i=us[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?ps[t]:String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" sedan":o},formatLong:bs,formatRelative:(e,t,r,o)=>gs[e],localize:ms,match:{ordinalNumber:on({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:rn({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:rn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:rn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rn({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:rn({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},fs="important",ws=" !"+fs,ys=fe(class extends we{constructor(e){if(super(e),e.type!==be||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const o=e[r];return null==o?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,t){let[r]=t;const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const e of this.ft)null==r[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in r){const t=r[e];if(null!=t){this.ft.add(e);const r="string"==typeof t&&t.endsWith(ws);e.includes("-")||r?o.setProperty(e,r?t.slice(0,-11):t,r?fs:""):o[e]=t}}return W}}),xs=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),ks=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),_s=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),$s=JSON.parse('{"datepicker.calendar.nextMonth":["Gå til neste måned"],"datepicker.calendar.previousMonth":["Gå til forrige måned"],"datepicker.calendar.roleDescription":["datovelger"],"datepicker.toggle.changeDate":["Endre dato, ",["currentDate"]],"datepicker.toggle.chooseDate":["Velg dato"]}'),Ss=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),Es=a`.w-datepicker-wrapper{width:100%;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);display:inline-block;position:relative}.w-datepicker-input-wrapper{position:relative}.w-datepicker-input{-webkit-appearance:none;-moz-appearance:textfield;appearance:none;cursor:pointer;width:100%;height:48px;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);background-color:var(--w-s-color-background);border:1px solid #ccc;border-radius:4px;padding:1.2rem .8rem;display:block}.w-datepicker-input:hover{border-color:var(--w-s-color-border-hover)}.w-datepicker-input:active{border-color:var(--w-s-color-border-selected)}.w-datepicker-input:focus,.w-datepicker-input:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:-2px}.w-datepicker-input-label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);cursor:pointer;color:var(--w-s-color-text);padding-bottom:.4rem;font-weight:700;display:block}.w-datepicker-button{--padding-x:14px;--padding-y:14px;--border-radius:2px;pointer-events:auto;position:absolute;top:2px;right:2px}input[type=date]::-webkit-inner-spin-button,input[type=date]::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.w-dropdown__popover{background-color:var(--w-s-color-background);width:max-content;box-shadow:var(--w-shadow-s);z-index:100;visibility:hidden;border-radius:8px;position:absolute}.w-dropdown__popover--open{visibility:visible}`,Cs=a`.w-datepicker__calendar{--_calendar-border-color:var(--calendar-border-color,initial);--_calendar-border-style:var(--calendar-border-style,none);--_calendar-border-width:var(--calendar-border-width,0);--_calendar-border-radius:var(--calendar-border-radius,0);z-index:30;border:var(--_calendar-border-width) var(--_calendar-border-style) var(--_calendar-border-color);border-radius:var(--_calendar-border-radius);padding:16px;position:relative}`,Os=a`.w-datepicker__day{--_day-in-range-background:var(--day-in-range-background,var(--w-s-color-background-primary-subtle-active));text-align:center;cursor:pointer;color:var(--day-color,var(--w-s-color-text));background-color:var(--day-background,transparent);width:var(--day-width,40px);height:var(--day-height,40px);padding:var(--day-padding,0);font-weight:var(--day-font-weight,normal);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);border-radius:var(--day-border-radius,50%);outline:none;position:relative}.w-datepicker__day:hover{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-hover);--day-border-radius:50%}.w-datepicker__day:active{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-active);--day-border-radius:50%}.w-datepicker__day:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,-2px);text-decoration:none}.w-datepicker__day--today{--day-font-weight:bold}.w-datepicker__day--selected{--day-background:var(--w-s-color-background-primary);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--selected:hover,.w-datepicker__day--selected:focus-visible{--day-background:var(--w-s-color-background-primary-hover);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--disabled,.w-datepicker__day--disabled:hover{--day-color:var(--w-s-color-text-disabled);cursor:not-allowed;pointer-events:none}`,zs=a`.w-datepicker__month{--day-width:40px;--_month-color:var(--month-color,var(--w-s-color-text));--_month-font-size:var(--month-font-size,var(--w-font-size-m));--_month-line-height:var(--month-line-height,var(--w-line-height-m));--_month-table-min-width:var(--month-table-min-width,calc(var(--day-width) * 7));--_weekdays-font-size:var(--weekdays-font-size,var(--w-font-size-xs));--_weekdays-line-height:var(--weekdays-font-size,var(--w-line-height-xs));--_weekdays-font-weight:var(--weekdays-font-weight,bold);--_weekdays-padding:var(--weekdays-padding,8px 0 4px 0);text-align:center;user-select:none;color:var(--_month-color);font-size:var(--_month-font-size);line-height:var(--_month-line-height);display:inline-block}.w-datepicker__month__nav{margin:0 0 8px}.w-datepicker__month__nav__header{text-align:center;font-weight:700}.w-datepicker__table{border-spacing:0;border-collapse:collapse;width:100%;min-width:var(--_month-table-min-width);padding-top:8px;display:block}.w-datepicker__weekday{text-align:center;font-size:var(--_weekdays-font-size);line-height:var(--_weekdays-line-height);font-weight:var(--_weekdays-font-weight);padding:var(--_weekdays-padding)}.w-datepicker__month-nav{justify-content:space-between;align-items:center;width:100%;display:flex}.w-datepicker__month__nav__button{flex-shrink:0}.w-datepicker__month__nav__header{text-align:center;flex:1;justify-content:center;align-items:center;display:flex}`,As=/^\d{4}-\d{2}-\d{2}$/;function Ds(e){if("string"!=typeof e)return null;let t=e;As.test(e)&&(t=`${e}T00:00:00Z`);const r=Date.parse(t);return Number.isNaN(r)?null:new Date(r)}var Ps=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Ms="undefined"!=typeof navigator?navigator.userAgent:"",Ts=/iP(hone|od|ad)/.test(Ms)?"text":"date",js="calendar",Rs="input",Ns="toggle",Is="wrapper",Vs="previous",Fs={en:Xn,nb:hs,sv:vs,da:Yn,fi:ss};class Ls extends(ze(ne)){static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[De,Es,Cs,Os,zs];get selectedDate(){return Ds(this.value)??null}get month(){return Ya(this.navigationDate)}#t;get weeks(){const e=this.month,t=this.navigationDate,r=function(e,t){const{start:r,end:o}=Ha(t?.in,e);let i=+r>+o;const a=ja(i?o:r,t),n=ja(i?r:o,t);a.setHours(15),n.setHours(15);const s=+n.getTime();let l=a,d=t?.step??1;if(!d)return[];d<0&&(d=-d,i=!i);const c=[];for(;+l<=s;)l.setHours(0),c.push(za(r,l)),l=qa(l,d),l.setHours(15);return i?c.reverse():c}({start:Ya(e),end:In(e)},{locale:this.locale}).map(e=>({start:e,end:Xa(e,{locale:this.locale})})).map(e=>function(e,t){const{start:r,end:o}=Ha(t?.in,e);let i=+r>+o;const a=i?+r:+o,n=i?o:r;n.setHours(0,0,0,0);const s=[];for(;+n<=a;)s.push(za(r,n)),n.setDate(n.getDate()+1),n.setHours(0,0,0,0);return i?s.reverse():s}(e));if(Vn(t,e)){const e=Nn(t,{locale:this.locale})-1,o=La(t,ja(t,{locale:this.locale}));r[e][o]=t}return r}resetFormControl(){this.value=this.#t}async#j(e){e.preventDefault(),this.isCalendarOpen=!this.isCalendarOpen,this.isCalendarOpen&&(await this.updateComplete,(this.selectedCell||this.todayCell).focus())}#R(){this.navigationDate=Pa(this.month,1)}#N(){this.navigationDate=qn(this.month)}async#I(){await this.updateComplete,this.input.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}_onClickOutside(e){if(!this.isCalendarOpen)return;this.contains(e.target)||(this.isCalendarOpen=!1)}#V(e){this.value=e.target.value}#F(e){e.preventDefault(),this.isCalendarOpen=!0}#L(e){if(" "===e.key)return this.#j(e);","===e.key&&e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}async#q(e){const t=this.navigationDate;let r;switch(e.key){case"ArrowUp":r=Ln(t,7);break;case"ArrowLeft":r=Ln(t,1);break;case"Home":r=ja(t,{locale:this.locale});break;case"PageUp":r=qn(t);break;case"ArrowDown":r=Da(t,7);break;case"ArrowRight":r=Da(t,1);break;case"End":r=Xa(t,{locale:this.locale});break;case"PageDown":r=Pa(t,1);break;case"Escape":this.isCalendarOpen=!1;break;case"Tab":"TD"!==e.target.tagName||e.shiftKey?e.target.id===Vs&&e.shiftKey&&(e.preventDefault(),(this.selectedCell||this.todayCell).focus()):(e.preventDefault(),this.previousMonthButton.focus())}r&&(e.preventDefault(),this.navigationDate=r,await this.updateComplete,this.selectedCell.focus())}#W(e){const t=e.currentTarget.dataset.date;"key"in e?"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.value=t,this.shadowRoot.querySelector("input").value=this.value,this.isCalendarOpen=!1,this.toggleButton.focus(),this.#I()):(this.value=t,this.shadowRoot.querySelector("input").value=this.value,this.isCalendarOpen=!1,this.#I())}constructor(){var e;super(),this.headerFormat="MMMM yyyy",this.weekdayFormat="EEEEEE",this.dayFormat="PPPP",this.isCalendarOpen=!1,this.navigationDate=Fa(Date.now(),e),this.locale=Xn,this.#t=null,wt(ks,$s,_s,xs,Ss);const t=ft();t&&Fs[t]&&(this.locale=Fs[t]),this._onClickOutside=this._onClickOutside.bind(this)}connectedCallback(){super.connectedCallback(),this.#t=this.value;const e=this.lang;if(e&&Fs[e]&&(this.locale=Fs[e]),this.value){const e=Ds(this.value);e&&(this.navigationDate=e)}document.addEventListener("mousedown",this._onClickOutside),document.addEventListener("touchend",this._onClickOutside),document.addEventListener("focusin",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onClickOutside),document.removeEventListener("touchend",this._onClickOutside),document.removeEventListener("focusin",this._onClickOutside)}updated(e){e.has("value")&&this.setValue(this.value)}render(){return q`<div class="w-datepicker-wrapper" id="${Is}"><label class="w-datepicker-input-label" for="${Rs}">${this.label}</label><div class="w-datepicker-input-wrapper"><input id="${Rs}" type="${Ts}" name="${Ae(this.name)}" value="${Ae(this.value)}" class="w-datepicker-input" @click="${this.#F}" @input="${this.#V}" @keydown="${this.#L}"><w-button aria-label="${this.value?ut.t({id:"datepicker.toggle.changeDate",values:{currentDate:Tn(this.value,this.dayFormat)},message:"Change date, {currentDate}",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is a selected date"}):ut.t({id:"datepicker.toggle.chooseDate",message:"Choose date",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is no selected date"})}" aria-controls="${js}" class="w-datepicker-button" data-testid="${Ns}" id="${Ns}" variant="utilityQuiet" type="button" @click="${this.#j}"><w-icon name="Calendar" size="small" locale="${ft()}" class="flex"></w-icon></w-button></div></div><div class="w-dropdown__popover w-dropdown__popover--open" style="${ys({display:this.isCalendarOpen?void 0:"none"})}"><div aria-label="${ut.t({id:"datepicker.calendar.roleDescription",message:"Date picker",comment:"Used by screen readers to announce that the calendar element is a date picker."})}" aria-modal="true" role="dialog" class="w-datepicker__calendar" data-testid="${js}" id="${js}" @keydown="${this.#q}"><div class="w-datepicker__month-nav"><w-button aria-label="${ut.t({id:"datepicker.calendar.previousMonth",message:"Previous month",comment:"Screen reader label for the previous month button."})}" class="w-datepicker__month__nav__button" id="${Vs}" data-testid="${Vs}" variant="utility" quiet small @click="${this.#N}"><w-icon name="ChevronLeft" size="small" locale="${ft()}" class="flex"></w-icon></w-button><div aria-live="polite" class="w-datepicker__month__nav__header">${Tn(this.month,this.headerFormat,{locale:this.locale})}</div><w-button aria-label="${ut.t({id:"datepicker.calendar.nextMonth",message:"Next month",comment:"Screen reader label for the next month button."})}" class="w-datepicker__month__nav__button" data-testid="${js}-next" variant="utility" quiet small @click="${this.#R}"><w-icon name="ChevronRight" size="small" locale="${ft()}" class="flex"></w-icon></w-button></div><div class="w-datepicker__month"><table class="w-datepicker__table" role="grid"><thead class="w-datepicker__weekdays"><tr>${this.weeks[0].map(e=>q`<th class="w-datepicker__weekday">${Tn(e,this.weekdayFormat,{locale:this.locale})}</th>`)}</tr></thead><tbody>${this.weeks.map(e=>q`<tr>${e.map(e=>{if(!Vn(this.month,e))return q`<td></td>`;const t=!!this.isDayDisabled&&this.isDayDisabled(e),r=Wa(e,this.selectedDate),o=e===this.navigationDate;return q`<td aria-current="${Ae(Fn(e)?"date":void 0)}" aria-disabled="${t}" aria-label="${Tn(e,this.dayFormat,{locale:this.locale})}" aria-selected="${r}" class="${ye({"w-datepicker__day":!0,"w-datepicker__day--today":Fn(e),"w-datepicker__day--selected":r,"w-datepicker__day--disabled":t,"w-datepicker__day--navigation":o})}" data-navigation="${o}" data-date="${function(e,t){const r=Aa(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o="";const i="extended"===(t?.format??"extended")?"-":"";{const e=hn(r.getDate(),2),t=hn(r.getMonth()+1,2);o=`${hn(r.getFullYear(),4)}${i}${t}${i}${e}`}return o}(e,{})}" role="gridcell" tabindex="${o?0:-1}" @click="${t?void 0:this.#W}" @keydown="${t?void 0:this.#W}"><div>${Rn(e)}</div></td>`})}</tr>`)}</tbody></table></div></div></div>`}}Ps([ce({reflect:!0})],Ls.prototype,"label",void 0),Ps([ce({reflect:!0})],Ls.prototype,"lang",void 0),Ps([ce({reflect:!0})],Ls.prototype,"name",void 0),Ps([ce({reflect:!0})],Ls.prototype,"value",void 0),Ps([ce({attribute:"header-format"})],Ls.prototype,"headerFormat",void 0),Ps([ce({attribute:"weekday-format"})],Ls.prototype,"weekdayFormat",void 0),Ps([ce({attribute:!1})],Ls.prototype,"isDayDisabled",void 0),Ps([ce({attribute:"day-format"})],Ls.prototype,"dayFormat",void 0),Ps([he()],Ls.prototype,"isCalendarOpen",void 0),Ps([he()],Ls.prototype,"navigationDate",void 0),Ps([he()],Ls.prototype,"locale",void 0),Ps([he()],Ls.prototype,"selectedDate",null),Ps([he()],Ls.prototype,"month",null),Ps([he()],Ls.prototype,"weeks",null),Ps([pe(`#${js}`)],Ls.prototype,"calendar",void 0),Ps([pe(`#${Rs}`,!0)],Ls.prototype,"input",void 0),Ps([pe(`#${Ns}`,!0)],Ls.prototype,"toggleButton",void 0),Ps([pe(`#${Is}`,!0)],Ls.prototype,"wrapper",void 0),Ps([pe(`#${Vs}`)],Ls.prototype,"previousMonthButton",void 0),Ps([pe('[aria-current="date"]')],Ls.prototype,"todayCell",void 0),Ps([pe('[data-navigation="true"]')],Ls.prototype,"selectedCell",void 0),customElements.get("w-datepicker")||customElements.define("w-datepicker",Ls);const qs="undefined"!=typeof window;let Ws=!0;if(qs){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return Ws=!t};e.addEventListener&&e.addEventListener("change",t),t(e)}const Bs=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},Hs=e=>{const t=Ws?"var(--f-expansion-duration, 0.3s)":"0.01s";e.style.transition=`height ${t}`,e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},Ys=(e,t)=>{const r=(()=>{if(!t)return new Promise(e=>{t=e})})(),o=((e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()})(e,t);Bs(e),e.style.height="auto";let i=e.scrollHeight;if(qs&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="ease-out",Hs(e),requestAnimationFrame(()=>e.style.height=i+"px")}),r)return r},Xs=(e,t)=>{const r=(()=>{if(!t)return new Promise(e=>{t=e})})(),o=(e=>()=>{e&&e()})(t);Bs(e);let i=e.scrollHeight;if(qs&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height=i+"px",e.style.transitionTimingFunction="ease-in",Hs(e),requestAnimationFrame(()=>e.style.height="0px")}),r)return r};class Us extends ne{static#e=this.properties={show:{type:Boolean,reflect:!0},_removeElement:{type:Boolean,state:!0}};constructor(){super(),this.show=!1,this._mounted=!1,this._removeElement=!1}willUpdate(){this._mounted||(this._removeElement=!this.show),this.show&&this._removeElement&&(this._removeElement=!1)}updated(){this._wrapper&&(this._mounted?(this.show&&Ys(this._wrapper),this.show||this._removeElement||Xs(this._wrapper,()=>this._removeElement=!0)):this._mounted=!0)}get _wrapper(){return this??null}static#o=this.styles=[a`:host{display:block}`];render(){return q`<div aria-hidden="${Ae(this.show?void 0:"true")}">${this._removeElement?q``:q`<slot></slot>`}</div>`}}customElements.get("w-expand-transition")||customElements.define("w-expand-transition",Us)
|
|
73
|
+
*/;const hi=(e,t,r)=>{const o=new Map;for(let n=t;n<=r;n++)o.set(e[n],n);return o},ui=we(class extends ye{constructor(e){if(super(e),e.type!==me)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let o;void 0===r?r=t:void 0!==t&&(o=t);const n=[],i=[];let a=0;for(const t of e)n[a]=o?o(t,a):a,i[a]=r(t,a),a++;return{values:i,keys:n}}render(e,t,r){return this.dt(e,t,r).values}update(e,t){let[r,o,n]=t;const i=(e=>e._$AH)(e),{values:a,keys:s}=this.dt(r,o,n);if(!Array.isArray(i))return this.ut=s,a;const l=this.ut??=[],d=[];let c,h,u=0,p=i.length-1,b=0,g=a.length-1;for(;u<=p&&b<=g;)if(null===i[u])u++;else if(null===i[p])p--;else if(l[u]===s[b])d[b]=Un(i[u],a[b]),u++,b++;else if(l[p]===s[g])d[g]=Un(i[p],a[g]),p--,g--;else if(l[u]===s[g])d[g]=Un(i[u],a[g]),Xn(e,d[g+1],i[u]),u++,g--;else if(l[p]===s[b])d[b]=Un(i[p],a[b]),Xn(e,i[u],i[p]),p--,b++;else if(void 0===c&&(c=hi(s,b,g),h=hi(l,u,p)),c.has(l[u]))if(c.has(l[p])){const t=h.get(s[b]),r=void 0!==t?i[t]:null;if(null===r){const t=Xn(e,i[u]);Un(t,a[b]),d[b]=t}else d[b]=Un(r,a[b]),Xn(e,i[u],r),i[t]=null;b++}else Zn(i[p]),p--;else Zn(i[u]),u++;for(;b<=g;){const t=Xn(e,d[g+1]);Un(t,a[b]),d[b++]=t}for(;u<=p;){const e=i[u++];null!==e&&Zn(e)}return this.ut=s,Kn(e,d),W}}),pi=JSON.parse('{"combobox.aria.noResults":["Ingen resultater"],"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),bi=JSON.parse('{"combobox.aria.noResults":["No results"],"combobox.aria.noSuggestions":["No suggestions"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," result"],"other":["#"," results"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," suggestion"],"other":["#"," suggestions"]}]]}'),gi=JSON.parse('{"combobox.aria.noResults":["Ei tuloksia"],"combobox.aria.noSuggestions":["Ei ehdotuksia"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," tulos"],"other":["#"," tulosta"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," ehdotus"],"other":["#"," ehdotusta"]}]]}'),mi=JSON.parse('{"combobox.aria.noResults":["Ingen resultater"],"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultater"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),vi=JSON.parse('{"combobox.aria.noResults":["Inga resultat"],"combobox.aria.noSuggestions":["Inga förslag"],"combobox.aria.pluralResults":[["numResults","plural",{"one":["#"," resultat"],"other":["#"," resultat"]}]],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," förslag"],"other":["#"," förslag"]}]]}'),fi=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.list-none{list-style-type:none}.left-0{left:0}.right-0{right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-0{z-index:0}.z-20{z-index:20}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.shadow-m{box-shadow:var(--w-shadow-m)}.m-0{margin:0}.p-0{padding:0}.p-8{padding:.8rem}.pb-4{padding-bottom:.4rem}.visible{visibility:visible}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}");var wi=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const yi="relative z-0",xi="absolute z-20 left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m",ki="m-0 p-0 select-none list-none",_i="block cursor-pointer p-8",$i="hover:s-bg-hover",Si="s-bg-selected hover:s-bg-selected-hover",Ei="font-bold",Ci="sr-only";class Oi extends(Ae(se)){static#e=this.styles=[Pe,fi];constructor(){super(),this.options=[],this.label="",this.placeholder="",this.value="",this.openOnFocus=!1,this.selectOnBlur=!0,this.matchTextSegments=!1,this.disableStaticFiltering=!1,this.invalid=!1,this.helpText="",this.disabled=!1,this.required=!1,this.optional=!1,this.name="",this.autocomplete="off",this._isOpen=!1,this._navigationOption=null,this._currentOptions=[],this._lightDomOptions=[],this._optionIdCounter=0,this._displayValue="",this.#t="",yt(bi,mi,gi,pi,vi)}#t;#P;firstUpdated(e){this.#t=this.value}updated(e){e.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=this.#t}connectedCallback(){super.connectedCallback(),this.#M(),this.#P=new MutationObserver(()=>{this.#M()}),this.#P.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.#P?.disconnect()}get _listboxId(){return`${this._id}-listbox`}get _id(){return"combobox"}get _helpId(){return this.helpText?`${this._id}__hint`:void 0}get _sourceOptions(){return Array.isArray(this.options)&&this.options.length?this.options:this._lightDomOptions}get _navigationLabelOrDisplayValue(){return this._navigationOption?this._navigationOption.label||this._navigationOption.value:this._displayValue}get _navigationValueOrInputValue(){return this._navigationOption?.value||this.value}_createOptionsWithIdAndMatch(e,t){return e.map((e,r)=>({...e,id:`${this._id}-option-${this._optionIdCounter+r}`,key:e.key||e.value,currentInputValue:t}))}#T(){return Array.from(this.children).filter(e=>"option"===e.tagName.toLowerCase())}#M(){this._lightDomOptions=this.#T().map(e=>{const t=e.getAttribute("value")??"";return{value:t,label:e.hasAttribute("label")?e.getAttribute("label")??"":e.textContent??"",key:t}})}_getAriaText(e,t,r){if(!e||!r)return"";const o=e.filter(e=>(e.label||e.value).toLowerCase().includes(t.toLowerCase())),n=pt._({id:"combobox.aria.pluralSuggestions",message:"{numSuggestions, plural, one {# suggestion} other {# suggestions}}",comment:"Aria text for combobox when there are one or more suggestions",values:{numSuggestions:o.length}}),i=pt._({id:"combobox.aria.noSuggestions",message:"No suggestions",comment:"Aria text for combobox when no suggestions"});return o.length?n:i}_getOptionClasses(e){return Ce(_i,this._navigationOption?.id===e?.id?Si:$i)}_handleKeyDown(e){const t=["ArrowDown","ArrowUp","PageUp","PageDown","Home","End"].includes(e.key),r=["ArrowDown","ArrowLeft","ArrowUp","ArrowRight"];if(!t||this._isOpen){if(t&&this._isOpen)this._findAndSetActiveOption(e);else if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.key){case"Enter":this._navigationOption&&(e.preventDefault(),this._handleSelect(this._navigationOption),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),t=e?.shadowRoot?.querySelector("input");t&&(t.value=this._displayValue)})),this._isOpen=!1;break;case"Tab":case"Delete":this._isOpen=!1;break;case"Escape":this._isOpen?this._isOpen=!1:this._handleChange(""),this._navigationOption=null;break;case"Backspace":this._handleChange(this._navigationLabelOrDisplayValue),this._navigationOption=null,this._isOpen=!0;break;default:if(r.includes(e.key))break;this._isOpen=!0,this._navigationOption?(this._handleChange(this._navigationOption.value),this._navigationOption=null):this._handleChange(this.value)}}else this._isOpen=!0}_findAndSetActiveOption(e){e.preventDefault();const t=this._currentOptions.findIndex(e=>e.id===this._navigationOption?.id),r=t+1,o=t-1;switch(e.key){case"ArrowDown":this._navigationOption=r>this._currentOptions.length-1?null:this._currentOptions[r];break;case"ArrowUp":this._navigationOption=-2===o?this._currentOptions[this._currentOptions.length-1]:o<0?null:this._currentOptions[o];break;case"PageUp":this._navigationOption=t-10<0?this._currentOptions[0]:this._currentOptions[t-10];break;case"PageDown":this._navigationOption=t+10>this._currentOptions.length-1?this._currentOptions[this._currentOptions.length-1]:this._currentOptions[t+10];break;case"Home":this._navigationOption=this._currentOptions[0];break;case"End":this._navigationOption=this._currentOptions[this._currentOptions.length-1]}}_handleSelect(e){this.value=e.value,this._displayValue=e.label||e.value,this.setValue(this.value);const t=new CustomEvent("select",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(t),this._isOpen=!1,this._navigationOption=null,this.disableStaticFiltering&&(this._currentOptions=[])}_handleChange(e){if(void 0===e)return;this.value=e,this._displayValue=e;const t=new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}_handleFocus(){if(!this.openOnFocus)return;const e=new CustomEvent("focus",{bubbles:!0,composed:!0});this.dispatchEvent(e),this._isOpen=!0}_handleBlur(e){const t=e.relatedTarget;if(t&&this.shadowRoot?.contains(t))return;if(this._isOpen=!1,this.selectOnBlur&&(this._navigationOption||!this._navigationOption&&-1!==this._currentOptions.findIndex(e=>e.value===this.value))){const e=this._navigationOption?.value||this.value;this.value=e;const t=new CustomEvent("select",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}this._navigationOption=null;const r=new CustomEvent("blur",{detail:{value:this._navigationValueOrInputValue},bubbles:!0,composed:!0});this.dispatchEvent(r)}_handleOptionClick(e,t){this._handleSelect(t),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),r=e?.shadowRoot?.querySelector("input");r&&(r.value=t.label||t.value)})}_handleContainerBlur(e){(!e.currentTarget||!e.currentTarget.contains(e.relatedTarget))&&(this._isOpen=!1)}_renderTextMatch(e,t){if(!this.matchTextSegments)return e;const r=e.toLowerCase().indexOf(t.currentInputValue.toLowerCase());if(-1!==r){const o=r+t.currentInputValue.length;return B`${e.substring(0,r)}<span class="${Ei}">${e.substring(r,o)}</span>${e.substring(o)}`}return e}willUpdate(e){const t=this._sourceOptions,r=e.has("_lightDomOptions");if(e.has("value")||e.has("options")||r){const e=t.find(e=>e.value===this.value),r=e?e.label||e.value:this.value;this._displayValue!==r&&this._displayValue!==this.value&&(this._displayValue=r),!this._displayValue&&this.value&&(this._displayValue=r)}(e.has("options")||r||e.has("value")||e.has("disableStaticFiltering")||e.has("_displayValue"))&&(this._optionIdCounter+=t.length,this._currentOptions=this._createOptionsWithIdAndMatch(t,this._displayValue).filter(e=>!!this.disableStaticFiltering||(e.label||e.value).toLowerCase().includes(this._displayValue.toLowerCase()))),this.disableStaticFiltering&&this._currentOptions.length&&1===this._currentOptions.length&&!this._currentOptions.some(e=>e.value===this.value)&&!this._isOpen&&(this._isOpen=!0)}render(){return B`<div class="${Ce(yi)}" @blur="${this._handleContainerBlur}"><w-textfield class="w-combobox-textfield" .value="${this._navigationLabelOrDisplayValue}" .label="${this.label}" .placeholder="${this.placeholder}" .invalid="${this.invalid}" .helpText="${this.helpText}" .disabled="${this.disabled}" .required="${this.required}" .optional="${this.optional}" .name="${this.name}" .autocomplete="${this.autocomplete||"off"}" role="combobox" aria-autocomplete="list" aria-expanded="${this._isOpen&&0!==this._currentOptions.length}" aria-activedescendant="${De(this._isOpen?this._navigationOption?.id:void 0)}" aria-controls="${this._listboxId}" @input="${e=>this._handleChange(e?.detail?.value)}" @focus="${this._handleFocus}" @blur="${this._handleBlur}" @keydown="${this._handleKeyDown}"></w-textfield><span class="${Ci}" role="status">${this._getAriaText(this._currentOptions,this._displayValue,this._isOpen)}</span><div ?hidden="${!this._isOpen||!this._currentOptions.length}" class="${Ce(xi)}"><ul id="${this._listboxId}" role="listbox" class="${ki}">${ui(this._currentOptions,e=>e.key,e=>{const t=e.label||e.value;return B`<li id="${e.id}" role="option" aria-selected="${this._navigationOption?.id===e.id}" tabindex="-1" class="${this._getOptionClasses(e)}" @mousedown="${t=>this._handleOptionClick(t,e)}">${this._renderTextMatch(t,e)}</li>`})}</ul></div></div>`}}wi([he({type:Array})],Oi.prototype,"options",void 0),wi([he({type:String,reflect:!0,useDefault:!0})],Oi.prototype,"label",void 0),wi([he({type:String,reflect:!0,useDefault:!0})],Oi.prototype,"placeholder",void 0),wi([he({type:String,reflect:!0,useDefault:!0})],Oi.prototype,"value",void 0),wi([he({type:Boolean,attribute:"open-on-focus",reflect:!0})],Oi.prototype,"openOnFocus",void 0),wi([he({type:Boolean,attribute:"select-on-blur",reflect:!0,useDefault:!0})],Oi.prototype,"selectOnBlur",void 0),wi([he({type:Boolean,attribute:"match-text-segments",reflect:!0})],Oi.prototype,"matchTextSegments",void 0),wi([he({type:Boolean,attribute:"disable-static-filtering",reflect:!0})],Oi.prototype,"disableStaticFiltering",void 0),wi([he({type:Boolean,reflect:!0})],Oi.prototype,"invalid",void 0),wi([he({type:String,attribute:"help-text",reflect:!0,useDefault:!0})],Oi.prototype,"helpText",void 0),wi([he({type:Boolean,reflect:!0})],Oi.prototype,"disabled",void 0),wi([he({type:Boolean,reflect:!0})],Oi.prototype,"required",void 0),wi([he({type:Boolean,reflect:!0})],Oi.prototype,"optional",void 0),wi([he({type:String,reflect:!0,useDefault:!0})],Oi.prototype,"name",void 0),wi([he({type:String,reflect:!0,useDefault:!0})],Oi.prototype,"autocomplete",void 0),wi([ue()],Oi.prototype,"_isOpen",void 0),wi([ue()],Oi.prototype,"_navigationOption",void 0),wi([ue()],Oi.prototype,"_currentOptions",void 0),wi([ue()],Oi.prototype,"_lightDomOptions",void 0),wi([ue()],Oi.prototype,"_optionIdCounter",void 0),wi([ue()],Oi.prototype,"_displayValue",void 0),customElements.get("w-combobox")||customElements.define("w-combobox",Oi);const zi=6048e5,Ai=Symbol.for("constructDateFrom");function Di(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Ai in e?e[Ai](t):e instanceof Date?new e.constructor(t):new Date(t)}function Pi(e,t){return Di(t||e,e)}function Mi(e,t,r){const o=Pi(e,r?.in);return isNaN(t)?Di(e,NaN):t?(o.setDate(o.getDate()+t),o):o}function Ti(e,t,r){const o=Pi(e,r?.in);if(isNaN(t))return Di(e,NaN);if(!t)return o;const n=o.getDate(),i=Di(e,o.getTime());i.setMonth(o.getMonth()+t+1,0);return n>=i.getDate()?i:(o.setFullYear(i.getFullYear(),i.getMonth(),n),o)}let Ri={};function ji(){return Ri}function Ni(e,t){const r=ji(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=Pi(e,t?.in),i=n.getDay(),a=(i<o?7:0)+i-o;return n.setDate(n.getDate()-a),n.setHours(0,0,0,0),n}function Ii(e,t){return Ni(e,{...t,weekStartsOn:1})}function Vi(e,t){const r=Pi(e,t?.in),o=r.getFullYear(),n=Di(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);const i=Ii(n),a=Di(r,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const s=Ii(a);return r.getTime()>=i.getTime()?o+1:r.getTime()>=s.getTime()?o:o-1}function Fi(e){const t=Pi(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Li(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const n=Di.bind(null,e||r.find(e=>"object"==typeof e));return r.map(n)}function qi(e,t){const r=Pi(e,t?.in);return r.setHours(0,0,0,0),r}function Bi(e,t,r){const[o,n]=Li(r?.in,e,t),i=qi(o),a=qi(n),s=+i-Fi(i),l=+a-Fi(a);return Math.round((s-l)/864e5)}function Wi(e,t,r){return Mi(e,7*t,r)}function Hi(e,t,r){const[o,n]=Li(r?.in,e,t);return+qi(o)===+qi(n)}function Yi(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Pi(e)));var t}function Xi(e,t){const[r,o]=Li(e,t.start,t.end);return{start:r,end:o}}function Ui(e,t){const r=Pi(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Ji(e,t){const r=ji(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=Pi(e,t?.in),i=n.getDay(),a=6+(i<o?-7:0)-(i-o);return n.setDate(n.getDate()+a),n.setHours(23,59,59,999),n}const Ki={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Zi=(e,t,r)=>{let o;const n=Ki[e];return o="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function Qi(e){return t=>{void 0===t&&(t={});const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Gi={date:Qi({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Qi({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ea={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ta=(e,t,r,o)=>ea[e];function ra(e){return(t,r)=>{let o;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,n=r?.width?String(r.width):t;o=e.formattingValues[n]||e.formattingValues[t]}else{const t=e.defaultWidth,n=r?.width?String(r.width):e.defaultWidth;o=e.values[n]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const oa={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:ra({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ra({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ra({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ra({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ra({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function na(e){return(t,r)=>{void 0===r&&(r={});const o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;const a=i[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(a)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(a));let d;d=e.valueCallback?e.valueCallback(l):l,d=r.valueCallback?r.valueCallback(d):d;return{value:d,rest:t.slice(a.length)}}}function ia(e){return(t,r)=>{void 0===r&&(r={});const o=t.match(e.matchPattern);if(!o)return null;const n=o[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=r.valueCallback?r.valueCallback(a):a;return{value:a,rest:t.slice(n.length)}}}const aa={ordinalNumber:ia({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:na({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:na({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:na({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:na({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:na({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},sa={code:"en-US",formatDistance:Zi,formatLong:Gi,formatRelative:ta,localize:oa,match:aa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function la(e,t){const r=Pi(e,t?.in),o=Bi(r,function(e,t){const r=Pi(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return o+1}function da(e,t){const r=Pi(e,t?.in),o=+Ii(r)-+function(e,t){const r=Vi(e,t),o=Di(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Ii(o)}(r);return Math.round(o/zi)+1}function ca(e,t){const r=Pi(e,t?.in),o=r.getFullYear(),n=ji(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Di(t?.in||e,0);a.setFullYear(o+1,0,i),a.setHours(0,0,0,0);const s=Ni(a,t),l=Di(t?.in||e,0);l.setFullYear(o,0,i),l.setHours(0,0,0,0);const d=Ni(l,t);return+r>=+s?o+1:+r>=+d?o:o-1}function ha(e,t){const r=Pi(e,t?.in),o=+Ni(r,t)-+function(e,t){const r=ji(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=ca(e,t),i=Di(t?.in||e,0);return i.setFullYear(n,0,o),i.setHours(0,0,0,0),Ni(i,t)}(r,t);return Math.round(o/zi)+1}function ua(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const pa={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return ua("yy"===t?o%100:o,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):ua(r+1,2)},d:(e,t)=>ua(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>ua(e.getHours()%12||12,t.length),H:(e,t)=>ua(e.getHours(),t.length),m:(e,t)=>ua(e.getMinutes(),t.length),s:(e,t)=>ua(e.getSeconds(),t.length),S(e,t){const r=t.length,o=e.getMilliseconds();return ua(Math.trunc(o*Math.pow(10,r-3)),t.length)}},ba="midnight",ga="noon",ma="morning",va="afternoon",fa="evening",wa="night",ya={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return r.ordinalNumber(o,{unit:"year"})}return pa.y(e,t)},Y:function(e,t,r,o){const n=ca(e,o),i=n>0?n:1-n;if("YY"===t){return ua(i%100,2)}return"Yo"===t?r.ordinalNumber(i,{unit:"year"}):ua(i,t.length)},R:function(e,t){return ua(Vi(e),t.length)},u:function(e,t){return ua(e.getFullYear(),t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return ua(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return ua(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return pa.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return ua(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const n=ha(e,o);return"wo"===t?r.ordinalNumber(n,{unit:"week"}):ua(n,t.length)},I:function(e,t,r){const o=da(e);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):ua(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):pa.d(e,t)},D:function(e,t,r){const o=la(e);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):ua(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const n=e.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ua(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const n=e.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ua(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),n=0===o?7:o;switch(t){case"i":return String(n);case"ii":return ua(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let n;switch(n=12===o?ga:0===o?ba:o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let n;switch(n=o>=17?fa:o>=12?va:o>=4?ma:wa,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return pa.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):pa.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return"Ko"===t?r.ordinalNumber(o,{unit:"hour"}):ua(o,t.length)},k:function(e,t,r){let o=e.getHours();return 0===o&&(o=24),"ko"===t?r.ordinalNumber(o,{unit:"hour"}):ua(o,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):pa.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):pa.s(e,t)},S:function(e,t){return pa.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return ka(o);case"XXXX":case"XX":return _a(o);default:return _a(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return ka(o);case"xxxx":case"xx":return _a(o);default:return _a(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xa(o,":");default:return"GMT"+_a(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xa(o,":");default:return"GMT"+_a(o,":")}},t:function(e,t,r){return ua(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return ua(+e,t.length)}};function xa(e,t){const r=e>0?"-":"+",o=Math.abs(e),n=Math.trunc(o/60),i=o%60;return 0===i?r+String(n):r+String(n)+t+ua(i,2)}function ka(e,t){if(e%60==0){return(e>0?"-":"+")+ua(Math.abs(e)/60,2)}return _a(e,t)}function _a(e,t){void 0===t&&(t="");const r=e>0?"-":"+",o=Math.abs(e);return r+ua(Math.trunc(o/60),2)+t+ua(o%60,2)}const $a=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Sa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ea={p:Sa,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return $a(e,t);let i;switch(o){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",$a(o,t)).replace("{{time}}",Sa(n,t))}},Ca=/^D+$/,Oa=/^Y+$/,za=["D","DD","YY","YYYY"];const Aa=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Da=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pa=/^'([^]*?)'?$/,Ma=/''/g,Ta=/[a-zA-Z]/;function Ra(e,t,r){const o=ji(),n=r?.locale??o.locale??sa,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Pi(e,r?.in);if(!Yi(s))throw new RangeError("Invalid time value");let l=t.match(Da).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ea[t])(e,n.formatLong)}return e}).join("").match(Aa).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ja(e)};if(ya[t])return{isToken:!0,value:e};if(t.match(Ta))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});n.localize.preprocessor&&(l=n.localize.preprocessor(s,l));const d={firstWeekContainsDate:i,weekStartsOn:a,locale:n};return l.map(o=>{if(!o.isToken)return o.value;const i=o.value;(!r?.useAdditionalWeekYearTokens&&function(e){return Oa.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return Ca.test(e)}(i))&&function(e,t,r){const o=function(e,t,r){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(o),za.includes(e))throw new RangeError(o)}(i,t,String(e));return(0,ya[i[0]])(s,i,n.localize,d)}).join("")}function ja(e){const t=e.match(Pa);return t?t[1].replace(Ma,"'"):e}function Na(e,t){return Pi(e,t?.in).getDate()}function Ia(e,t){const r=ji(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=Na(Pi(e,t?.in));if(isNaN(n))return NaN;const i=function(e,t){return Pi(e,t?.in).getDay()}(Ui(e,t));let a=o-i;a<=0&&(a+=7);const s=n-a;return Math.ceil(s/7)+1}function Va(e,t){const r=Pi(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),Pi(r,t?.in)}function Fa(e,t,r){const[o,n]=Li(r?.in,e,t);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function La(e,t){return Hi(Di(e,e),function(e){return Di(e,Date.now())}(e))}function qa(e,t,r){return Mi(e,-t,r)}function Ba(e,t,r){return Ti(e,-1,r)}const Wa={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},Ha={date:Qi({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Qi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Ya={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Xa={code:"da",formatDistance:(e,t,r)=>{let o;const n=Wa[e];return o="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:Ha,formatRelative:(e,t,r,o)=>Ya[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:ra({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:ra({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ra({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:ra({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:ra({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ia({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:na({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:na({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:na({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:na({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:na({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ua={code:"en-GB",formatDistance:Zi,formatLong:{date:Qi({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Qi({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:ta,localize:oa,match:aa,options:{weekStartsOn:1,firstWeekContainsDate:4}};function Ja(e){return e.replace(/sekuntia?/,"sekunnin")}function Ka(e){return e.replace(/minuuttia?/,"minuutin")}function Za(e){return e.replace(/tuntia?/,"tunnin")}function Qa(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function Ga(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function es(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const ts={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:Ja},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:Ja},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:Ka},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:Ka},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:Za},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:Za},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:function(e){return e.replace(/päivää?/,"päivän")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:Qa},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:Qa},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:Ga},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:Ga},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:es},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:es},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:es},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:es}},rs={date:Qi({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:Qi({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},os={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},ns={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},is={narrow:ns.narrow,abbreviated:ns.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},as={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},ss={narrow:as.narrow,short:as.short,abbreviated:as.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},ls={code:"fi",formatDistance:(e,t,r)=>{const o=ts[e],n=1===t?o.one:o.other.replace("{{count}}",String(t));return r?.addSuffix?r.comparison&&r.comparison>0?o.futureTense(n)+" kuluttua":n+" sitten":n},formatLong:rs,formatRelative:(e,t,r,o)=>os[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:ra({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:ra({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ra({values:ns,defaultWidth:"wide",formattingValues:is,defaultFormattingWidth:"wide"}),day:ra({values:as,defaultWidth:"wide",formattingValues:ss,defaultFormattingWidth:"wide"}),dayPeriod:ra({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},defaultWidth:"wide"})},match:{ordinalNumber:ia({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:na({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:na({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:na({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:na({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:na({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ds={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},cs={date:Qi({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:Qi({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},hs={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},us={code:"nb",formatDistance:(e,t,r)=>{let o;const n=ds[e];return o="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:cs,formatRelative:(e,t,r,o)=>hs[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:ra({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:ra({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ra({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:ra({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:ra({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},defaultWidth:"wide"})},match:{ordinalNumber:ia({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:na({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:na({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:na({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:na({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:na({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ps={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},bs=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],gs={date:Qi({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}),time:Qi({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qi({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ms={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},vs={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:case 2:return r+":a"}return r+":e"},era:ra({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:ra({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:ra({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:ra({values:{narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},defaultWidth:"wide"}),dayPeriod:ra({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},defaultFormattingWidth:"wide"})},fs={code:"sv",formatDistance:(e,t,r)=>{let o;const n=ps[e];return o="string"==typeof n?n:1===t?n.one:n.other.replace("{{count}}",t<13?bs[t]:String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" sedan":o},formatLong:gs,formatRelative:(e,t,r,o)=>ms[e],localize:vs,match:{ordinalNumber:ia({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:na({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:na({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:na({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:na({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:na({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ws="important",ys=" !"+ws,xs=we(class extends ye{constructor(e){if(super(e),e.type!==ge||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const o=e[r];return null==o?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,t){let[r]=t;const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const e of this.ft)null==r[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in r){const t=r[e];if(null!=t){this.ft.add(e);const r="string"==typeof t&&t.endsWith(ys);e.includes("-")||r?o.setProperty(e,r?t.slice(0,-11):t,r?ws:""):o[e]=t}}return W}}),ks=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),_s=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),$s=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),Ss=JSON.parse('{"datepicker.calendar.nextMonth":["Gå til neste måned"],"datepicker.calendar.previousMonth":["Gå til forrige måned"],"datepicker.calendar.roleDescription":["datovelger"],"datepicker.toggle.changeDate":["Endre dato, ",["currentDate"]],"datepicker.toggle.chooseDate":["Velg dato"]}'),Es=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),Cs=a`.w-datepicker-wrapper{width:100%;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);display:inline-block;position:relative}.w-datepicker-input-wrapper{position:relative}.w-datepicker-input{-webkit-appearance:none;-moz-appearance:textfield;appearance:none;cursor:pointer;width:100%;height:48px;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);background-color:var(--w-s-color-background);border:1px solid #ccc;border-radius:4px;padding:1.2rem .8rem;display:block}.w-datepicker-input:hover{border-color:var(--w-s-color-border-hover)}.w-datepicker-input:active{border-color:var(--w-s-color-border-selected)}.w-datepicker-input:focus,.w-datepicker-input:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:-2px}.w-datepicker-input-label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);cursor:pointer;color:var(--w-s-color-text);padding-bottom:.4rem;font-weight:700;display:block}.w-datepicker-button{--padding-x:14px;--padding-y:14px;--border-radius:2px;pointer-events:auto;position:absolute;top:2px;right:2px}input[type=date]::-webkit-inner-spin-button,input[type=date]::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.w-dropdown__popover{background-color:var(--w-s-color-background);width:max-content;box-shadow:var(--w-shadow-s);z-index:100;visibility:hidden;border-radius:8px;position:absolute}.w-dropdown__popover--open{visibility:visible}`,Os=a`.w-datepicker__calendar{--_calendar-border-color:var(--calendar-border-color,initial);--_calendar-border-style:var(--calendar-border-style,none);--_calendar-border-width:var(--calendar-border-width,0);--_calendar-border-radius:var(--calendar-border-radius,0);z-index:30;border:var(--_calendar-border-width) var(--_calendar-border-style) var(--_calendar-border-color);border-radius:var(--_calendar-border-radius);padding:16px;position:relative}`,zs=a`.w-datepicker__day{--_day-in-range-background:var(--day-in-range-background,var(--w-s-color-background-primary-subtle-active));text-align:center;cursor:pointer;color:var(--day-color,var(--w-s-color-text));background-color:var(--day-background,transparent);width:var(--day-width,40px);height:var(--day-height,40px);padding:var(--day-padding,0);font-weight:var(--day-font-weight,normal);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);border-radius:var(--day-border-radius,50%);outline:none;position:relative}.w-datepicker__day:hover{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-hover);--day-border-radius:50%}.w-datepicker__day:active{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-active);--day-border-radius:50%}.w-datepicker__day:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,-2px);text-decoration:none}.w-datepicker__day--today{--day-font-weight:bold}.w-datepicker__day--selected{--day-background:var(--w-s-color-background-primary);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--selected:hover,.w-datepicker__day--selected:focus-visible{--day-background:var(--w-s-color-background-primary-hover);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--disabled,.w-datepicker__day--disabled:hover{--day-color:var(--w-s-color-text-disabled);cursor:not-allowed;pointer-events:none}`,As=a`.w-datepicker__month{--day-width:40px;--_month-color:var(--month-color,var(--w-s-color-text));--_month-font-size:var(--month-font-size,var(--w-font-size-m));--_month-line-height:var(--month-line-height,var(--w-line-height-m));--_month-table-min-width:var(--month-table-min-width,calc(var(--day-width) * 7));--_weekdays-font-size:var(--weekdays-font-size,var(--w-font-size-xs));--_weekdays-line-height:var(--weekdays-font-size,var(--w-line-height-xs));--_weekdays-font-weight:var(--weekdays-font-weight,bold);--_weekdays-padding:var(--weekdays-padding,8px 0 4px 0);text-align:center;user-select:none;color:var(--_month-color);font-size:var(--_month-font-size);line-height:var(--_month-line-height);display:inline-block}.w-datepicker__month__nav{margin:0 0 8px}.w-datepicker__month__nav__header{text-align:center;font-weight:700}.w-datepicker__table{border-spacing:0;border-collapse:collapse;width:100%;min-width:var(--_month-table-min-width);padding-top:8px;display:block}.w-datepicker__weekday{text-align:center;font-size:var(--_weekdays-font-size);line-height:var(--_weekdays-line-height);font-weight:var(--_weekdays-font-weight);padding:var(--_weekdays-padding)}.w-datepicker__month-nav{justify-content:space-between;align-items:center;width:100%;display:flex}.w-datepicker__month__nav__button{flex-shrink:0}.w-datepicker__month__nav__header{text-align:center;flex:1;justify-content:center;align-items:center;display:flex}`,Ds=/^\d{4}-\d{2}-\d{2}$/;function Ps(e){if("string"!=typeof e)return null;let t=e;Ds.test(e)&&(t=`${e}T00:00:00Z`);const r=Date.parse(t);return Number.isNaN(r)?null:new Date(r)}var Ms=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Ts="undefined"!=typeof navigator?navigator.userAgent:"",Rs=/iP(hone|od|ad)/.test(Ts)?"text":"date",js="calendar",Ns="input",Is="toggle",Vs="wrapper",Fs="previous",Ls={en:Ua,nb:us,sv:fs,da:Xa,fi:ls};class qs extends(Ae(se)){static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[Pe,Cs,Os,zs,As];get selectedDate(){return this.value?Ps(this.value)??null:null}get month(){return Ui(this.navigationDate)}#t;get weeks(){const e=this.month,t=this.navigationDate,r=function(e,t){const{start:r,end:o}=Xi(t?.in,e);let n=+r>+o;const i=Ni(n?o:r,t),a=Ni(n?r:o,t);i.setHours(15),a.setHours(15);const s=+a.getTime();let l=i,d=t?.step??1;if(!d)return[];d<0&&(d=-d,n=!n);const c=[];for(;+l<=s;)l.setHours(0),c.push(Di(r,l)),l=Wi(l,d),l.setHours(15);return n?c.reverse():c}({start:Ui(e),end:Va(e)},{locale:this.locale}).map(e=>({start:e,end:Ji(e,{locale:this.locale})})).map(e=>function(e,t){const{start:r,end:o}=Xi(t?.in,e);let n=+r>+o;const i=n?+r:+o,a=n?o:r;a.setHours(0,0,0,0);const s=[];for(;+a<=i;)s.push(Di(r,a)),a.setDate(a.getDate()+1),a.setHours(0,0,0,0);return n?s.reverse():s}(e));if(Fa(t,e)){const e=Ia(t,{locale:this.locale})-1,o=Bi(t,Ni(t,{locale:this.locale}));r[e][o]=t}return r}resetFormControl(){this.value=this.#t}async#R(e){e.preventDefault(),this.isCalendarOpen=!this.isCalendarOpen,this.isCalendarOpen&&(await this.updateComplete,(this.selectedCell||this.todayCell).focus())}#j(){this.navigationDate=Ti(this.month,1)}#N(){this.navigationDate=Ba(this.month)}async#I(){await this.updateComplete,this.input.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}_onClickOutside(e){if(!this.isCalendarOpen)return;this.contains(e.target)||(this.isCalendarOpen=!1)}#V(e){this.value=e.target.value}#F(e){e.preventDefault(),this.isCalendarOpen=!0}#L(e){if(" "===e.key)return this.#R(e);","===e.key&&e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}async#q(e){const t=this.navigationDate;let r=null;switch(e.key){case"ArrowUp":r=qa(t,7);break;case"ArrowLeft":r=qa(t,1);break;case"Home":r=Ni(t,{locale:this.locale});break;case"PageUp":r=Ba(t);break;case"ArrowDown":r=Mi(t,7);break;case"ArrowRight":r=Mi(t,1);break;case"End":r=Ji(t,{locale:this.locale});break;case"PageDown":r=Ti(t,1);break;case"Escape":this.isCalendarOpen=!1;break;case"Tab":"TD"!==e.target.tagName||e.shiftKey?e.target.id===Fs&&e.shiftKey&&(e.preventDefault(),(this.selectedCell||this.todayCell).focus()):(e.preventDefault(),this.previousMonthButton.focus())}r&&(e.preventDefault(),this.navigationDate=r,await this.updateComplete,this.selectedCell.focus())}#B(e){const t=e.currentTarget.dataset.date;"key"in e?"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.value=t,this.shadowRoot.querySelector("input").value=this.value,this.isCalendarOpen=!1,this.toggleButton.focus(),this.#I()):(this.value=t,this.shadowRoot.querySelector("input").value=this.value,this.isCalendarOpen=!1,this.#I())}constructor(){var e;super(),this.headerFormat="MMMM yyyy",this.weekdayFormat="EEEEEE",this.dayFormat="PPPP",this.isCalendarOpen=!1,this.navigationDate=qi(Date.now(),e),this.locale=Ua,this.#t=void 0,yt(_s,Ss,$s,ks,Es);const t=wt();t&&Ls[t]&&(this.locale=Ls[t]),this._onClickOutside=this._onClickOutside.bind(this)}connectedCallback(){super.connectedCallback(),this.#t=this.value;const e=this.lang;if(e&&Ls[e]&&(this.locale=Ls[e]),this.value){const e=Ps(this.value);e&&(this.navigationDate=e)}document.addEventListener("mousedown",this._onClickOutside),document.addEventListener("touchend",this._onClickOutside),document.addEventListener("focusin",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onClickOutside),document.removeEventListener("touchend",this._onClickOutside),document.removeEventListener("focusin",this._onClickOutside)}updated(e){e.has("value")&&this.setValue(this.value)}render(){return B`<div class="w-datepicker-wrapper" id="${Vs}"><label class="w-datepicker-input-label" for="${Ns}">${this.label}</label><div class="w-datepicker-input-wrapper"><input id="${Ns}" type="${Rs}" name="${De(this.name)}" value="${De(this.value)}" class="w-datepicker-input" @click="${this.#F}" @input="${this.#V}" @keydown="${this.#L}"><w-button aria-label="${this.value?pt.t({id:"datepicker.toggle.changeDate",values:{currentDate:Ra(this.value,this.dayFormat)},message:"Change date, {currentDate}",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is a selected date"}):pt.t({id:"datepicker.toggle.chooseDate",message:"Choose date",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is no selected date"})}" aria-controls="${js}" class="w-datepicker-button" data-testid="${Is}" id="${Is}" variant="utilityQuiet" type="button" @click="${this.#R}"><w-icon name="Calendar" size="small" locale="${wt()}" class="flex"></w-icon></w-button></div></div><div class="w-dropdown__popover w-dropdown__popover--open" style="${xs({display:this.isCalendarOpen?void 0:"none"})}"><div aria-label="${pt.t({id:"datepicker.calendar.roleDescription",message:"Date picker",comment:"Used by screen readers to announce that the calendar element is a date picker."})}" aria-modal="true" role="dialog" class="w-datepicker__calendar" data-testid="${js}" id="${js}" @keydown="${this.#q}"><div class="w-datepicker__month-nav"><w-button aria-label="${pt.t({id:"datepicker.calendar.previousMonth",message:"Previous month",comment:"Screen reader label for the previous month button."})}" class="w-datepicker__month__nav__button" id="${Fs}" data-testid="${Fs}" variant="utility" quiet small @click="${this.#N}"><w-icon name="ChevronLeft" size="small" locale="${wt()}" class="flex"></w-icon></w-button><div aria-live="polite" class="w-datepicker__month__nav__header">${Ra(this.month,this.headerFormat,{locale:this.locale})}</div><w-button aria-label="${pt.t({id:"datepicker.calendar.nextMonth",message:"Next month",comment:"Screen reader label for the next month button."})}" class="w-datepicker__month__nav__button" data-testid="${js}-next" variant="utility" quiet small @click="${this.#j}"><w-icon name="ChevronRight" size="small" locale="${wt()}" class="flex"></w-icon></w-button></div><div class="w-datepicker__month"><table class="w-datepicker__table" role="grid"><thead class="w-datepicker__weekdays"><tr>${this.weeks[0].map(e=>B`<th class="w-datepicker__weekday">${Ra(e,this.weekdayFormat,{locale:this.locale})}</th>`)}</tr></thead><tbody>${this.weeks.map(e=>B`<tr>${e.map(e=>{if(!Fa(this.month,e))return B`<td></td>`;const t=!!this.isDayDisabled&&this.isDayDisabled(e),r=Boolean(this.selectedDate)&&Hi(e,this.selectedDate),o=e===this.navigationDate;return B`<td aria-current="${De(La(e)?"date":void 0)}" aria-disabled="${t}" aria-label="${Ra(e,this.dayFormat,{locale:this.locale})}" aria-selected="${r}" class="${xe({"w-datepicker__day":!0,"w-datepicker__day--today":La(e),"w-datepicker__day--selected":r,"w-datepicker__day--disabled":t,"w-datepicker__day--navigation":o})}" data-navigation="${o}" data-date="${function(e,t){const r=Pi(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o="";const n="extended"===(t?.format??"extended")?"-":"";{const e=ua(r.getDate(),2),t=ua(r.getMonth()+1,2);o=`${ua(r.getFullYear(),4)}${n}${t}${n}${e}`}return o}(e,{})}" role="gridcell" tabindex="${o?0:-1}" @click="${t?void 0:this.#B}" @keydown="${t?void 0:this.#B}"><div>${Na(e)}</div></td>`})}</tr>`)}</tbody></table></div></div></div>`}}Ms([he({reflect:!0})],qs.prototype,"label",void 0),Ms([he({reflect:!0})],qs.prototype,"lang",void 0),Ms([he({reflect:!0})],qs.prototype,"name",void 0),Ms([he({reflect:!0})],qs.prototype,"value",void 0),Ms([he({attribute:"header-format"})],qs.prototype,"headerFormat",void 0),Ms([he({attribute:"weekday-format"})],qs.prototype,"weekdayFormat",void 0),Ms([he({attribute:!1})],qs.prototype,"isDayDisabled",void 0),Ms([he({attribute:"day-format"})],qs.prototype,"dayFormat",void 0),Ms([ue()],qs.prototype,"isCalendarOpen",void 0),Ms([ue()],qs.prototype,"navigationDate",void 0),Ms([ue()],qs.prototype,"locale",void 0),Ms([ue()],qs.prototype,"selectedDate",null),Ms([ue()],qs.prototype,"month",null),Ms([ue()],qs.prototype,"weeks",null),Ms([be(`#${js}`)],qs.prototype,"calendar",void 0),Ms([be(`#${Ns}`,!0)],qs.prototype,"input",void 0),Ms([be(`#${Is}`,!0)],qs.prototype,"toggleButton",void 0),Ms([be(`#${Vs}`,!0)],qs.prototype,"wrapper",void 0),Ms([be(`#${Fs}`)],qs.prototype,"previousMonthButton",void 0),Ms([be('[aria-current="date"]')],qs.prototype,"todayCell",void 0),Ms([be('[data-navigation="true"]')],qs.prototype,"selectedCell",void 0),customElements.get("w-datepicker")||customElements.define("w-datepicker",qs);const Bs="undefined"!=typeof window;let Ws=!0;if(Bs){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return Ws=!t};e.addEventListener&&e.addEventListener("change",t),t(e)}const Hs=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},Ys=e=>{const t=Ws?"var(--f-expansion-duration, 0.3s)":"0.01s";e.style.transition=`height ${t}`,e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},Xs=(e,t)=>{const r=(()=>{if(!t)return new Promise(e=>{t=e})})(),o=((e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()})(e,t);Hs(e),e.style.height="auto";let n=e.scrollHeight;if(Bs&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="ease-out",Ys(e),requestAnimationFrame(()=>e.style.height=n+"px")}),r)return r},Us=(e,t)=>{const r=(()=>{if(!t)return new Promise(e=>{t=e})})(),o=(e=>()=>{e&&e()})(t);Hs(e);let n=e.scrollHeight;if(Bs&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height=n+"px",e.style.transitionTimingFunction="ease-in",Ys(e),requestAnimationFrame(()=>e.style.height="0px")}),r)return r};class Js extends se{static#e=this.properties={show:{type:Boolean,reflect:!0},_removeElement:{type:Boolean,state:!0}};constructor(){super(),this.show=!1,this._mounted=!1,this._removeElement=!1}willUpdate(){this._mounted||(this._removeElement=!this.show),this.show&&this._removeElement&&(this._removeElement=!1)}updated(){this._wrapper&&(this._mounted?(this.show&&Xs(this._wrapper),this.show||this._removeElement||Us(this._wrapper,()=>this._removeElement=!0)):this._mounted=!0)}get _wrapper(){return this??null}static#o=this.styles=[a`:host{display:block}`];render(){return B`<div aria-hidden="${De(this.show?void 0:"true")}">${this._removeElement?B``:B`<slot></slot>`}</div>`}}customElements.get("w-expand-transition")||customElements.define("w-expand-transition",Js)
|
|
2514
74
|
/**
|
|
2515
75
|
* @license
|
|
2516
76
|
* Copyright 2017 Google LLC
|
|
2517
77
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2518
|
-
*/;class Js extends we{constructor(e){if(super(e),this.it=B,e.type!==ge)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===B||null==e)return this._t=void 0,this.it=e;if(e===W)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Js.directiveName="unsafeHTML",Js.resultType=1;const Ks=fe(Js);class Zs extends ne{static#e=this.properties={level:{type:Number}};get _markup(){return`<h${this.level}\n style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"\n >\n <slot></slot>\n </h${this.level}>\n`}render(){return this.level?Ks(this._markup):q`<slot></slot>`}}customElements.get("w-unstyled-heading")||customElements.define("w-unstyled-heading",Zs);const Qs=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.t4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-left{text-align:left}.align-middle{vertical-align:middle}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.will-change-height{will-change:height}.border-0{border-width:0}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\:underline:hover{text-decoration-line:underline}.focus-visible\\:underline:focus-visible{text-decoration-line:underline}.overflow-hidden{overflow:hidden}.focus\\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.items-center{align-items:center}.justify-between{justify-content:space-between}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-subtle-hover:hover{background-color:var(--w-s-color-background-subtle-hover)}.active\\:s-bg-subtle-active:active{background-color:var(--w-s-color-background-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.h-0{height:0}.w-full{width:100%}.m-0{margin:0}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.px-0{padding-left:0;padding-right:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-0{padding-top:0;padding-bottom:0}.py-16{padding-top:1.6rem;padding-bottom:1.6rem}.pt-0{padding-top:0}.pt-16{padding-top:1.6rem}.pt-8{padding-top:.8rem}.invisible{visibility:hidden}.break-words{overflow-wrap:break-word}.cursor-pointer{cursor:pointer}.-rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part){transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part){transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform-gpu{transform:translate3d(var(--w-translate-x),var(--w-translate-y),var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part){transform:translate3d(var(--w-translate-x),var(--w-translate-y),var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part){transform:translate3d(var(--w-translate-x),var(--w-translate-y),var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part){transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\:rounded-8{border-radius:8px}.sm\\:mx-0{margin-left:0;margin-right:0}}`;var Gs=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const el="group block relative break-words last-child:mb-0 px-16 rounded-8",tl="will-change-height s-text py-16",rl="s-bg-subtle hover:s-bg-subtle-hover active:s-bg-subtle-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8",ol="-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8",il="inline-block align-middle s-icon",al="ml-8",nl="part-[w-chevrondown]:transform part-[w-chevrondown]:transition-transform part-[w-chevrondown]:transform-gpu part-[w-chevrondown]:ease-in-out",sl="part-[w-chevronup]:transform part-[w-chevronup]:transition-transform part-[w-chevronup]:transform-gpu part-[w-chevronup]:ease-in-out",ll="part-[w-chevrondown]:-rotate-180",dl="part-[w-chevronup]:rotate-180",cl="overflow-hidden",hl="h-0 invisible",ul="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline",pl="w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 px-16 rounded-8",bl="pt-0",gl="flex w-full justify-between items-center",ml="t4";class vl extends ne{constructor(){super(...arguments),this.expanded=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this.animated=!1,this._hasTitle=!0,this._showChevronUp=!1}static#e=this.styles=[De,Qs,a`:host{display:block}::slotted(:last-child){margin-bottom:0!important}`];updated(e){e.has("expanded")&&setTimeout(()=>{this._showChevronUp=this.expanded},200)}firstUpdated(){const e=Boolean(this.title),t=this.renderRoot.querySelector("slot[name='title']")?.assignedNodes().length>0;this._hasTitle=e||t}get#B(){return Ee([tl,this.box&&rl,this.bleed&&ol])}get#H(){return Ee(this.buttonClass,[ul,this.box&&pl])}get#Y(){return Ee([il,!this.box&&al])}get#X(){const e=Ee([sl,"flex",!this.expanded&&this._showChevronUp&&dl]),t=Ee([nl,"flex",this.expanded&&!this._showChevronUp&&ll]),r=ft();return this._showChevronUp?q`<w-icon name="ChevronUp" size="small" locale="${r}" class="${e}"></w-icon>`:q`<w-icon name="ChevronDown" size="small" locale="${r}" class="${t}"></w-icon>`}get#U(){return Ee(this.contentClass,[this.box?"pt-16":"pt-8",this.box&&el,this._hasTitle&&this.box&&bl])}get#J(){return Ee([cl,!this.expanded&&hl])}get _expandableSlot(){return q`<div class="${this.#U}"><slot></slot></div>`}render(){return q`<div class="${this.#B}">${this._hasTitle?q`<w-unstyled-heading level="${this.headingLevel}"><button type="button" aria-expanded="${this.expanded}" class="${this.#H}" @click="${()=>this.expanded=!this.expanded}"><div class="${gl}">${this.title?q`<span class="${ml}">${this.title}</span>`:q`<slot name="title"></slot>`} ${this.noChevron?"":q`<div class="${this.#Y}">${this.#X}</div>`}</div></button></w-unstyled-heading>`:""} ${this.animated?q`<w-expand-transition ?show="${this.expanded}">${this._expandableSlot}</w-expand-transition>`:q`<div class="${this.#J}" aria-hidden="${Ae(!this.expanded||void 0)}">${this._expandableSlot}</div>`}</div>`}}Gs([ce({type:Boolean,reflect:!0})],vl.prototype,"expanded",void 0),Gs([ce({type:String})],vl.prototype,"title",void 0),Gs([ce({type:Boolean})],vl.prototype,"box",void 0),Gs([ce({type:Boolean})],vl.prototype,"bleed",void 0),Gs([ce({attribute:"button-class",type:String})],vl.prototype,"buttonClass",void 0),Gs([ce({attribute:"content-class",type:String})],vl.prototype,"contentClass",void 0),Gs([ce({attribute:"no-chevron",type:Boolean})],vl.prototype,"noChevron",void 0),Gs([ce({type:Boolean})],vl.prototype,"animated",void 0),Gs([ce({attribute:"heading-level",type:Number})],vl.prototype,"headingLevel",void 0),Gs([ce({type:Boolean,state:!0})],vl.prototype,"_hasTitle",void 0),Gs([ce({type:Boolean,state:!0})],vl.prototype,"_showChevronUp",void 0),customElements.get("w-expandable")||customElements.define("w-expandable",vl);let fl=[];const wl={documentElement:{},body:{}},yl=Object.freeze({documentElement:{"scrollbar-gutter":"stable"},body:{overflow:"hidden",position:"relative",height:"100%"}}),xl=e=>{e.touches.length>1||e.preventDefault?.()},kl=()=>Object.entries(yl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;wl[e][r]=document[e].style[r],document[e].style[r]=o})(t))}),_l=()=>Object.entries(wl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;document[e].style[r]=wl[e][r]})(t))});function $l(e){let t=-1;e.ontouchstart=e=>{1===e.targetTouches.length&&(t=e.targetTouches[0].clientY)},e.ontouchmove=r=>{if(1!==r.targetTouches.length)return;const o=r.targetTouches[0].clientY-t;return 0===e.scrollTop&&o>0||(e=>e.scrollHeight-Math.abs(e.scrollTop)===e.clientHeight)(e)&&o<0?xl(r):(r.stopPropagation(),!0)}}function Sl(e){e.ontouchstart=null,e.ontouchmove=null}const El=e=>()=>document[e?"addEventListener":"removeEventListener"]("touchmove",xl,{passive:!1}),Cl=El(!0),Ol=El();const zl=e=>class extends e{constructor(){super(...arguments),this.patchClose=!0,this._close=null}close(){this._close()}},Al=e=>class extends e{handleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});for(const e of t.filter(e=>e.patchClose))e._close=()=>this.close()}};var Dl=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class Pl extends(Al(ne)){constructor(){super(),this.show=!1,this.ignoreBackdropClicks=!1,this._isClosing=!1,this.interceptEscape=this.interceptEscape.bind(this),this.closeOnBackdropClick=this.closeOnBackdropClick.bind(this),this.eventPreventer=this.eventPreventer.bind(this),this.modifyBorderRadius=this.modifyBorderRadius.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("command",e=>{const t=e.command;"--show-modal"===t?this.open():"--close"!==t&&"--confirm"!==t||this.close()})}async open(){this._isClosing=!1,this.dialogEl.classList.remove("close"),this.dialogEl.showModal(),this.handleListeners(),function(e){if(!e)throw Error("Could not run setup, an element must be provided");fl.some(t=>t===e)||(fl.length||(kl(),Cl()),$l(e),fl.push(e))}(this.contentEl),await this.updateComplete,this.dispatchEvent(new CustomEvent("shown",{bubbles:!0,composed:!0}))}close(){this.dialogEl?.open&&(this._isClosing=!0,this.handleListeners("removeEventListener"),this.dialogEl.classList.add("close"),this.dialogEl.addEventListener("animationend",async e=>{"w-modal-out"===e.animationName&&this._isClosing&&(this.dialogEl.classList.remove("close"),this.dialogEl.close(),this._isClosing=!1,fl.forEach(Sl),Ol(),_l(),fl=[],await this.updateComplete,this.dispatchEvent(new CustomEvent("hidden",{bubbles:!0,composed:!0})))},{once:!0}))}render(){return q`<dialog class="dialog-el"><div class="dialog-inner-el"><slot name="header" @slotchange="${this.handleSlotChange}"></slot><div class="content-el" id="${this.contentId}"><slot name="content" @slotchange="${this.handleSlotChange}"></slot></div><slot name="footer" @slotchange="${this.handleSlotChange}"></slot></div></dialog>`}updated(e){if(!e.has("show"))return;void 0===e.get("show")&&!1===this.show||this[this.show?"open":"close"]()}handleListeners(e){void 0===e&&(e="addEventListener"),document[e]("keydown",this.interceptEscape),this.ignoreBackdropClicks||this.dialogEl[e]("mousedown",this.closeOnBackdropClick),this.dialogEl[e]("close",this.eventPreventer),this.dialogEl[e]("cancel",this.eventPreventer),this.dialogInnerEl[e]("transitionend",this.modifyBorderRadius)}eventPreventer(e){e.preventDefault()}closeOnBackdropClick(e){this.dialogEl===e.target&&this.close()}interceptEscape(e){"Escape"===e.key&&(e.preventDefault(),this.close())}modifyBorderRadius(){1.02*this.dialogInnerEl.scrollHeight>innerHeight?this.dialogInnerEl.style.borderRadius="0px":this.dialogInnerEl.style.borderRadius=null}static#e=this.styles=[De,a`.dialog-el{--w-modal-translate-distance:100%;--w-modal-max-height:80%;--w-modal-width:640px;height:unset;max-height:unset;max-width:unset;width:unset;backface-visibility:hidden;background-color:#0000;border-width:0;align-items:flex-end;margin:auto;padding:0;inset:0}.dialog-inner-el{will-change:height;background-color:var(--w-s-color-background);color:var(--w-s-color-text);box-shadow:var(--w-shadow-m);height:var(--w-modal-height);max-height:var(--w-modal-max-height);min-height:var(--w-modal-min-height);width:var(--w-modal-width);backface-visibility:hidden;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));border-radius:8px;flex-direction:column;transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden}.content-el{flex-grow:1;flex-shrink:1;margin-bottom:0;padding-left:1.6rem;padding-right:1.6rem;display:block;position:relative;overflow:hidden auto}@media (width>=480px){.dialog-el{--w-modal-translate-distance:50%;place-content:center;place-items:center}.dialog-inner-el{margin-left:1.6rem;margin-right:1.6rem;padding-bottom:3.2rem}.content-el{padding-left:3.2rem;padding-right:3.2rem}}@media (width<=479.9px){.dialog-inner-el{border-bottom-right-radius:0;border-bottom-left-radius:0}}.dialog-el[open]{animation:.3s ease-in-out forwards w-modal-in;display:flex;position:fixed}.dialog-el.close{animation:.3s ease-in-out forwards w-modal-out}.dialog-el[open]::backdrop{animation:.3s ease-in-out forwards backdrop-in}.dialog-el.close::backdrop{animation:.3s ease-in-out forwards backdrop-out}@keyframes w-modal-in{0%{transform:translateY(var(--w-modal-translate-distance));opacity:0}to{opacity:1;transform:translateY(0)}}@keyframes w-modal-out{0%{opacity:1;transform:translateY(0)}to{transform:translateY(var(--w-modal-translate-distance));opacity:0}}@keyframes backdrop-in{0%{background:0 0}to{background:#00000040}}@keyframes backdrop-out{0%{background:#00000040}to{background:0 0}}`]}Dl([ce({type:Boolean})],Pl.prototype,"show",void 0),Dl([ce({type:String,attribute:"content-id"})],Pl.prototype,"contentId",void 0),Dl([ce({type:Boolean,attribute:"ignore-backdrop-clicks"})],Pl.prototype,"ignoreBackdropClicks",void 0),Dl([pe(".dialog-el")],Pl.prototype,"dialogEl",void 0),Dl([pe(".dialog-inner-el")],Pl.prototype,"dialogInnerEl",void 0),Dl([pe(".content-el")],Pl.prototype,"contentEl",void 0);const Ml=Pl;customElements.get("w-modal")||customElements.define("w-modal",Pl);class Tl extends(zl(Al(ne))){render(){return q`<div class="footer"><slot @slotchange="${this.handleSlotChange}"></slot></div>`}static#e=this.styles=[De,a`.footer{flex-shrink:0;justify-content:flex-end;padding-top:2.4rem;padding-left:1.6rem;padding-right:1.6rem;display:flex}@media (width>=480px){.footer{padding-left:3.2rem;padding-right:3.2rem}}`]}const jl=Tl;customElements.get("w-modal-footer")||customElements.define("w-modal-footer",Tl);const Rl=e=>{let{dx:t,dy:r}=e;return[{transform:`translate(${t}px, ${r}px)`},{transform:"none"}]},Nl={easing:"ease",duration:300};let Il=!1;if("undefined"!=typeof window){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return Il=t};e.addEventListener&&e.addEventListener("change",t),t(e)}class Vl{constructor(e,{animation:t={},keyframes:r,respectReduceMotion:o=!0}={}){this.el=e,this.first={},this.last={},this.userAnimationOptions=t,this.keyframeGenerator=r||Rl,this.shouldReduceMotion=o}async when(e){this.prep();const t=await e();return await this.play(),t}prep(){this.first=this.el.getBoundingClientRect()}async play(){if(this.last=this.el.getBoundingClientRect(),!this.el.animate)return;const e=this.el.animate(this.keyframes,this.animationOptions);await e.finished}get keyframes(){return this.keyframeGenerator((e=this.first,t=this.last,{dx:e.left-t.left,dy:e.top-t.top,dw:e.width/t.width,dh:e.height/t.height,first:e,last:t}));var e,t}get defaults(){return Nl}get mergedOptions(){return{...this.defaults,...this.userAnimationOptions}}get animationOptions(){return this.shouldReduceMotion&&Il?{...this.mergedOptions,duration:0}:this.mergedOptions}}const Fl=JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}'),Ll=JSON.parse('{"modal.aria.back":["Back"],"modal.aria.close":["Close"]}'),ql=JSON.parse('{"modal.aria.back":["Takaisin"],"modal.aria.close":["Sulje"]}'),Wl=JSON.parse('{"modal.aria.back":["Tilbake"],"modal.aria.close":["Lukk"]}'),Bl=JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":["Stäng"]}');var Hl=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class Yl extends(zl(ne)){constructor(){super(),this.back=!1,this.noClose=!1,this._hasTopContent=!1,wt(Ll,Wl,ql,Fl,Bl)}render(){return q`<div class="header"><slot name="top" @slotchange="${this.handleTopSlotChange}"></slot><div class="${this._hasTopContent?"":"header-title-bar"}">${this.backButton}<h1 class="title-el ${this.titleClasses}">${this.title}</h1>${this.closeButton}</div></div>`}async willUpdate(e){if(e.has("back")){if(!this.titleEl)return;new Vl(this.titleEl).when(async()=>{await this.updateComplete})}}get titleClasses(){return["header-title",this.back?"header-title-with-back-button":"header-title-without-back-button",this._hasTopContent?"header-title-with-top-area":""].join(" ")}get backButton(){return this.back&&!this._hasTopContent?q`<button type="button" aria-label="${ut._({id:"modal.aria.back",message:"Back",comment:"Aria label for the back button in modal"})}" class="header-button header-button-left" @click="${this.emitBack}"><w-icon name="ArrowLeft" size="small" locale="${ft()}" style="display:flex" class="flex"></w-icon></button>`:B}get closeButton(){return this.noClose?B:q`<div class="header-close-button-container"><w-button type="button" aria-label="${ut._({id:"modal.aria.close",message:"Close",comment:"Aria label for the close button in modal"})}" variant="pill" small="" @click="${this.close}"><w-icon name="Close" size="small" locale="${ft()}" style="display:flex" class="flex"></w-icon></w-button></div>`}emitBack(){this.dispatchEvent(new CustomEvent("backClicked",{bubbles:!0,composed:!0}))}handleTopSlotChange(e){const t=e.target.assignedElements({flatten:!0});this._hasTopContent=!!t.length}static#e=this.styles=[De,a`.header{padding-bottom:.8rem;position:relative}.header-title-bar{grid-template-columns:auto 1fr auto;align-items:flex-start;gap:1.2rem;padding-top:1.6rem;padding-left:1.6rem;padding-right:1.6rem;display:grid;flex-shrink:0!important}.header-title{font-weight:700;font-size:var(--w-font-size-l);line-height:var(--w-line-height-l);align-self:center;margin:0}.header-title-with-back-button{justify-self:center}.header-title-without-back-button{grid-column:span 2/span 2}.header-title-with-top-area{padding-top:1.6rem;padding-left:1.6rem;padding-right:1.6rem}.header-button:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.header-button:focus,.header-button:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.header-button:not(:focus-visible){outline:none}.header-button{min-width:40px;min-height:40px;font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);border-width:0;border-radius:9999px;justify-content:center;align-items:center;padding:.4rem;line-height:2.4rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex}.header-button-left{color:var(--w-s-color-icon);background-color:#0000;margin-left:-.8rem}.header-button-left:hover{background-color:var(--w-color-button-pill-background-hover)}.header-button-left:active{background-color:var(--w-color-button-pill-background-active)}.header-close-button-container{position:absolute;top:2.4rem;right:2rem}@media (width>=480px){.header-title-bar{padding-top:2.4rem;padding-left:3.2rem;padding-right:3.2rem}.header-title-with-top-area{padding-left:3.2rem;padding-right:3.2rem}.header-button{min-width:32px;min-height:32px}}`]}Hl([ce({type:String})],Yl.prototype,"title",void 0),Hl([ce({type:Boolean})],Yl.prototype,"back",void 0),Hl([ce({type:Boolean,attribute:"no-close"})],Yl.prototype,"noClose",void 0),Hl([he()],Yl.prototype,"_hasTopContent",void 0),Hl([pe(".title-el")],Yl.prototype,"titleEl",void 0);const Xl=Yl;customElements.get("w-modal-header")||customElements.define("w-modal-header",Yl)
|
|
78
|
+
*/;class Ks extends ye{constructor(e){if(super(e),this.it=H,e.type!==me)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||null==e)return this._t=void 0,this.it=e;if(e===W)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ks.directiveName="unsafeHTML",Ks.resultType=1;const Zs=we(Ks);class Qs extends se{static#e=this.properties={level:{type:Number}};get _markup(){return`<h${this.level}\n style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"\n >\n <slot></slot>\n </h${this.level}>\n`}render(){return this.level?Zs(this._markup):B`<slot></slot>`}}customElements.get("w-unstyled-heading")||customElements.define("w-unstyled-heading",Qs);const Gs=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.t4{font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-left{text-align:left}.align-middle{vertical-align:middle}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.will-change-height{will-change:height}.border-0{border-width:0}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-l-0{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-0{border-top-right-radius:0;border-bottom-right-radius:0}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hover\\:underline:hover{text-decoration-line:underline}.focus-visible\\:underline:focus-visible{text-decoration-line:underline}.overflow-hidden{overflow:hidden}.focus\\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.items-center{align-items:center}.justify-between{justify-content:space-between}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-subtle-hover:hover{background-color:var(--w-s-color-background-subtle-hover)}.active\\:s-bg-subtle-active:active{background-color:var(--w-s-color-background-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-border{border-color:var(--w-s-color-border)}.s-surface-sunken{background-color:var(--w-s-color-surface-sunken)}.h-0{height:0}.w-full{width:100%}.m-0{margin:0}.-mx-16{margin-left:-1.6rem;margin-right:-1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.px-0{padding-left:0;padding-right:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-0{padding-top:0;padding-bottom:0}.py-16{padding-top:1.6rem;padding-bottom:1.6rem}.pt-0{padding-top:0}.pt-16{padding-top:1.6rem}.pt-8{padding-top:.8rem}.invisible{visibility:hidden}.break-words{overflow-wrap:break-word}.cursor-pointer{cursor:pointer}.-rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevrondown\\]\\:-rotate-180::part(w-chevrondown){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:-180deg;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.rotate-180{--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevronup\\]\\:rotate-180::part(w-chevronup){--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-rotate:180deg;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevrondown\\]\\:transform::part(w-chevrondown){transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevronup\\]\\:transform::part(w-chevronup){transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform-gpu{transform:translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevrondown\\]\\:transform-gpu::part(w-chevrondown){transform:translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.part-\\[w-chevronup\\]\\:transform-gpu::part(w-chevronup){transform:translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-chevrondown\\]\\:transition-transform::part(w-chevrondown){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-chevronup\\]\\:transition-transform::part(w-chevronup){transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-chevrondown\\]\\:ease-in-out::part(w-chevrondown){transition-timing-function:cubic-bezier(.4,0,.2,1)}.part-\\[w-chevronup\\]\\:ease-in-out::part(w-chevronup){transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\:rounded-8{border-radius:8px}.sm\\:mx-0{margin-left:0;margin-right:0}}");var el=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const tl="group block relative break-words last-child:mb-0 px-16 rounded-8",rl="will-change-height s-text py-16",ol="s-bg-subtle hover:s-bg-subtle-hover active:s-bg-subtle-active py-0 px-0 group block relative break-words last-child:mb-0 rounded-8",nl="-mx-16 rounded-l-0 rounded-r-0 sm:mx-0 sm:rounded-8",il="inline-block align-middle s-icon",al="ml-8",sl="part-[w-chevrondown]:transform part-[w-chevrondown]:transition-transform part-[w-chevrondown]:transform-gpu part-[w-chevrondown]:ease-in-out",ll="part-[w-chevronup]:transform part-[w-chevronup]:transition-transform part-[w-chevronup]:transform-gpu part-[w-chevronup]:ease-in-out",dl="part-[w-chevrondown]:-rotate-180",cl="part-[w-chevronup]:rotate-180",hl="overflow-hidden",ul="h-0 invisible",pl="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 hover:underline focus-visible:underline",bl="w-full text-left relative inline-flex items-center justify-between group relative break-words last-child:mb-0 px-16 rounded-8",gl="pt-0",ml="flex w-full justify-between items-center",vl="t4";class fl extends se{constructor(){super(...arguments),this.expanded=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this.animated=!1,this._hasTitle=!0,this._showChevronUp=!1}static#e=this.styles=[Pe,Gs,a`:host{display:block}::slotted(:last-child){margin-bottom:0!important}`];updated(e){e.has("expanded")&&setTimeout(()=>{this._showChevronUp=this.expanded},200)}firstUpdated(){const e=Boolean(this.title),t=this.renderRoot.querySelector("slot[name='title']")?.assignedNodes().length>0;this._hasTitle=e||t}get#W(){return Ce([rl,this.box&&ol,this.bleed&&nl])}get#H(){return Ce(this.buttonClass,[pl,this.box&&bl])}get#Y(){return Ce([il,!this.box&&al])}get#X(){const e=Ce([ll,"flex",!this.expanded&&this._showChevronUp&&cl]),t=Ce([sl,"flex",this.expanded&&!this._showChevronUp&&dl]),r=wt();return this._showChevronUp?B`<w-icon name="ChevronUp" size="small" locale="${r}" class="${e}"></w-icon>`:B`<w-icon name="ChevronDown" size="small" locale="${r}" class="${t}"></w-icon>`}get#U(){return Ce(this.contentClass,[this.box?"pt-16":"pt-8",this.box&&tl,this._hasTitle&&this.box&&gl])}get#J(){return Ce([hl,!this.expanded&&ul])}get _expandableSlot(){return B`<div class="${this.#U}"><slot></slot></div>`}render(){return B`<div class="${this.#W}">${this._hasTitle?B`<w-unstyled-heading level="${De(this.headingLevel)}"><button type="button" aria-expanded="${this.expanded}" class="${this.#H}" @click="${()=>this.expanded=!this.expanded}"><div class="${ml}">${this.title?B`<span class="${vl}">${this.title}</span>`:B`<slot name="title"></slot>`} ${this.noChevron?"":B`<div class="${this.#Y}">${this.#X}</div>`}</div></button></w-unstyled-heading>`:""} ${this.animated?B`<w-expand-transition ?show="${this.expanded}">${this._expandableSlot}</w-expand-transition>`:B`<div class="${this.#J}" aria-hidden="${De(!this.expanded||void 0)}">${this._expandableSlot}</div>`}</div>`}}el([he({type:Boolean,reflect:!0})],fl.prototype,"expanded",void 0),el([he({type:String})],fl.prototype,"title",void 0),el([he({type:Boolean})],fl.prototype,"box",void 0),el([he({type:Boolean})],fl.prototype,"bleed",void 0),el([he({attribute:"button-class",type:String})],fl.prototype,"buttonClass",void 0),el([he({attribute:"content-class",type:String})],fl.prototype,"contentClass",void 0),el([he({attribute:"no-chevron",type:Boolean})],fl.prototype,"noChevron",void 0),el([he({type:Boolean})],fl.prototype,"animated",void 0),el([he({attribute:"heading-level",type:Number})],fl.prototype,"headingLevel",void 0),el([he({type:Boolean,state:!0})],fl.prototype,"_hasTitle",void 0),el([he({type:Boolean,state:!0})],fl.prototype,"_showChevronUp",void 0),customElements.get("w-expandable")||customElements.define("w-expandable",fl);let wl=[];const yl={documentElement:{},body:{}},xl=Object.freeze({documentElement:{"scrollbar-gutter":"stable"},body:{overflow:"hidden",position:"relative",height:"100%"}}),kl=e=>{e.touches.length>1||e.preventDefault?.()},_l=()=>Object.entries(xl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;yl[e][r]=document[e].style[r],document[e].style[r]=o})(t))}),$l=()=>Object.entries(yl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;document[e].style[r]=yl[e][r]})(t))});function Sl(e){let t=-1;e.ontouchstart=e=>{1===e.targetTouches.length&&(t=e.targetTouches[0].clientY)},e.ontouchmove=r=>{if(1!==r.targetTouches.length)return;const o=r.targetTouches[0].clientY-t;return 0===e.scrollTop&&o>0||(e=>e.scrollHeight-Math.abs(e.scrollTop)===e.clientHeight)(e)&&o<0?kl(r):(r.stopPropagation(),!0)}}function El(e){e.ontouchstart=null,e.ontouchmove=null}const Cl=e=>()=>document[e?"addEventListener":"removeEventListener"]("touchmove",kl,{passive:!1}),Ol=Cl(!0),zl=Cl();const Al=e=>class extends e{constructor(){super(...arguments),this.patchClose=!0,this._close=null}close(){this._close()}},Dl=e=>class extends e{handleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});for(const e of t.filter(e=>e.patchClose))e._close=()=>this.close()}};var Pl=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class Ml extends(Dl(se)){constructor(){super(),this.show=!1,this.ignoreBackdropClicks=!1,this._isClosing=!1,this.interceptEscape=this.interceptEscape.bind(this),this.closeOnBackdropClick=this.closeOnBackdropClick.bind(this),this.eventPreventer=this.eventPreventer.bind(this),this.modifyBorderRadius=this.modifyBorderRadius.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("command",e=>{const t=e.command;"--show-modal"===t?this.open():"--close"!==t&&"--confirm"!==t||this.close()})}async open(){this._isClosing=!1,this.dialogEl.classList.remove("close"),this.dialogEl.showModal(),this.handleListeners(),function(e){if(!e)throw Error("Could not run setup, an element must be provided");wl.some(t=>t===e)||(wl.length||(_l(),Ol()),Sl(e),wl.push(e))}(this.contentEl),await this.updateComplete,this.dispatchEvent(new CustomEvent("shown",{bubbles:!0,composed:!0}))}close(){this.dialogEl?.open&&(this._isClosing=!0,this.handleListeners("removeEventListener"),this.dialogEl.classList.add("close"),this.dialogEl.addEventListener("animationend",async e=>{"w-modal-out"===e.animationName&&this._isClosing&&(this.dialogEl.classList.remove("close"),this.dialogEl.close(),this._isClosing=!1,wl.forEach(El),zl(),$l(),wl=[],await this.updateComplete,this.dispatchEvent(new CustomEvent("hidden",{bubbles:!0,composed:!0})))},{once:!0}))}render(){return B`<dialog class="dialog-el"><div class="dialog-inner-el"><slot name="header" @slotchange="${this.handleSlotChange}"></slot><div class="content-el" id="${this.contentId}"><slot name="content" @slotchange="${this.handleSlotChange}"></slot></div><slot name="footer" @slotchange="${this.handleSlotChange}"></slot></div></dialog>`}updated(e){if(!e.has("show"))return;void 0===e.get("show")&&!1===this.show||this[this.show?"open":"close"]()}handleListeners(e){void 0===e&&(e="addEventListener"),document[e]("keydown",this.interceptEscape),this.ignoreBackdropClicks||this.dialogEl[e]("mousedown",this.closeOnBackdropClick),this.dialogEl[e]("close",this.eventPreventer),this.dialogEl[e]("cancel",this.eventPreventer),this.dialogInnerEl[e]("transitionend",this.modifyBorderRadius)}eventPreventer(e){e.preventDefault()}closeOnBackdropClick(e){this.dialogEl===e.target&&this.close()}interceptEscape(e){"Escape"===e.key&&(e.preventDefault(),this.close())}modifyBorderRadius(){1.02*this.dialogInnerEl.scrollHeight>innerHeight?this.dialogInnerEl.style.borderRadius="0px":this.dialogInnerEl.style.borderRadius=null}static#e=this.styles=[Pe,a`.dialog-el{--w-modal-translate-distance:100%;--w-modal-max-height:80%;--w-modal-width:640px;height:unset;max-height:unset;max-width:unset;width:unset;backface-visibility:hidden;background-color:#0000;border-width:0;align-items:flex-end;margin:auto;padding:0;inset:0}.dialog-inner-el{will-change:height;background-color:var(--w-s-color-background);color:var(--w-s-color-text);box-shadow:var(--w-shadow-m);height:var(--w-modal-height);max-height:var(--w-modal-max-height);min-height:var(--w-modal-min-height);width:var(--w-modal-width);backface-visibility:hidden;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));border-radius:8px;flex-direction:column;transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden}.content-el{flex-grow:1;flex-shrink:1;margin-bottom:0;padding-left:1.6rem;padding-right:1.6rem;display:block;position:relative;overflow:hidden auto}@media (width>=480px){.dialog-el{--w-modal-translate-distance:50%;place-content:center;place-items:center}.dialog-inner-el{margin-left:1.6rem;margin-right:1.6rem;padding-bottom:3.2rem}.content-el{padding-left:3.2rem;padding-right:3.2rem}}@media (width<=479.9px){.dialog-inner-el{border-bottom-right-radius:0;border-bottom-left-radius:0}}.dialog-el[open]{animation:.3s ease-in-out forwards w-modal-in;display:flex;position:fixed}.dialog-el.close{animation:.3s ease-in-out forwards w-modal-out}.dialog-el[open]::backdrop{animation:.3s ease-in-out forwards backdrop-in}.dialog-el.close::backdrop{animation:.3s ease-in-out forwards backdrop-out}@keyframes w-modal-in{0%{transform:translateY(var(--w-modal-translate-distance));opacity:0}to{opacity:1;transform:translateY(0)}}@keyframes w-modal-out{0%{opacity:1;transform:translateY(0)}to{transform:translateY(var(--w-modal-translate-distance));opacity:0}}@keyframes backdrop-in{0%{background:0 0}to{background:#00000040}}@keyframes backdrop-out{0%{background:#00000040}to{background:0 0}}`]}Pl([he({type:Boolean})],Ml.prototype,"show",void 0),Pl([he({type:String,attribute:"content-id"})],Ml.prototype,"contentId",void 0),Pl([he({type:Boolean,attribute:"ignore-backdrop-clicks"})],Ml.prototype,"ignoreBackdropClicks",void 0),Pl([be(".dialog-el")],Ml.prototype,"dialogEl",void 0),Pl([be(".dialog-inner-el")],Ml.prototype,"dialogInnerEl",void 0),Pl([be(".content-el")],Ml.prototype,"contentEl",void 0);const Tl=Ml;customElements.get("w-modal")||customElements.define("w-modal",Ml);class Rl extends(Al(Dl(se))){render(){return B`<div class="footer"><slot @slotchange="${this.handleSlotChange}"></slot></div>`}static#e=this.styles=[Pe,a`.footer{flex-shrink:0;justify-content:flex-end;padding-top:2.4rem;padding-left:1.6rem;padding-right:1.6rem;display:flex}@media (width>=480px){.footer{padding-left:3.2rem;padding-right:3.2rem}}`]}const jl=Rl;customElements.get("w-modal-footer")||customElements.define("w-modal-footer",Rl);const Nl=e=>{let{dx:t,dy:r}=e;return[{transform:`translate(${t}px, ${r}px)`},{transform:"none"}]},Il={easing:"ease",duration:300};let Vl=!1;if("undefined"!=typeof window){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return Vl=t};e.addEventListener&&e.addEventListener("change",t),t(e)}class Fl{constructor(e,{animation:t={},keyframes:r,respectReduceMotion:o=!0}={}){this.el=e,this.first={},this.last={},this.userAnimationOptions=t,this.keyframeGenerator=r||Nl,this.shouldReduceMotion=o}async when(e){this.prep();const t=await e();return await this.play(),t}prep(){this.first=this.el.getBoundingClientRect()}async play(){if(this.last=this.el.getBoundingClientRect(),!this.el.animate)return;const e=this.el.animate(this.keyframes,this.animationOptions);await e.finished}get keyframes(){return this.keyframeGenerator((e=this.first,t=this.last,{dx:e.left-t.left,dy:e.top-t.top,dw:e.width/t.width,dh:e.height/t.height,first:e,last:t}));var e,t}get defaults(){return Il}get mergedOptions(){return{...this.defaults,...this.userAnimationOptions}}get animationOptions(){return this.shouldReduceMotion&&Vl?{...this.mergedOptions,duration:0}:this.mergedOptions}}const Ll=JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}'),ql=JSON.parse('{"modal.aria.back":["Back"],"modal.aria.close":["Close"]}'),Bl=JSON.parse('{"modal.aria.back":["Takaisin"],"modal.aria.close":["Sulje"]}'),Wl=JSON.parse('{"modal.aria.back":["Tilbake"],"modal.aria.close":["Lukk"]}'),Hl=JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":["Stäng"]}');var Yl=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class Xl extends(Al(se)){constructor(){super(),this.back=!1,this.noClose=!1,this._hasTopContent=!1,yt(ql,Wl,Bl,Ll,Hl)}render(){return B`<div class="header"><slot name="top" @slotchange="${this.handleTopSlotChange}"></slot><div class="${this._hasTopContent?"":"header-title-bar"}">${this.backButton}<h1 class="title-el ${this.titleClasses}">${this.title}</h1>${this.closeButton}</div></div>`}async willUpdate(e){if(e.has("back")){if(!this.titleEl)return;new Fl(this.titleEl).when(async()=>{await this.updateComplete})}}get titleClasses(){return["header-title",this.back?"header-title-with-back-button":"header-title-without-back-button",this._hasTopContent?"header-title-with-top-area":""].join(" ")}get backButton(){return this.back&&!this._hasTopContent?B`<button type="button" aria-label="${pt._({id:"modal.aria.back",message:"Back",comment:"Aria label for the back button in modal"})}" class="header-button header-button-left" @click="${this.emitBack}"><w-icon name="ArrowLeft" size="small" locale="${wt()}" style="display:flex" class="flex"></w-icon></button>`:H}get closeButton(){return this.noClose?H:B`<div class="header-close-button-container"><w-button type="button" aria-label="${pt._({id:"modal.aria.close",message:"Close",comment:"Aria label for the close button in modal"})}" variant="pill" small @click="${this.close}"><w-icon name="Close" size="small" locale="${wt()}" style="display:flex" class="flex"></w-icon></w-button></div>`}emitBack(){this.dispatchEvent(new CustomEvent("backClicked",{bubbles:!0,composed:!0}))}handleTopSlotChange(e){const t=e.target.assignedElements({flatten:!0});this._hasTopContent=!!t.length}static#e=this.styles=[Pe,a`.header{padding-bottom:.8rem;position:relative}.header-title-bar{grid-template-columns:auto 1fr auto;align-items:flex-start;gap:1.2rem;padding-top:1.6rem;padding-left:1.6rem;padding-right:1.6rem;display:grid;flex-shrink:0!important}.header-title{font-weight:700;font-size:var(--w-font-size-l);line-height:var(--w-line-height-l);align-self:center;margin:0}.header-title-with-back-button{justify-self:center}.header-title-without-back-button{grid-column:span 2/span 2}.header-title-with-top-area{padding-top:1.6rem;padding-left:1.6rem;padding-right:1.6rem}.header-button:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.header-button:focus,.header-button:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.header-button:not(:focus-visible){outline:none}.header-button{min-width:40px;min-height:40px;font-weight:700;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);border-width:0;border-radius:9999px;justify-content:center;align-items:center;padding:.4rem;line-height:2.4rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:inline-flex}.header-button-left{color:var(--w-s-color-icon);background-color:#0000;margin-left:-.8rem}.header-button-left:hover{background-color:var(--w-color-button-pill-background-hover)}.header-button-left:active{background-color:var(--w-color-button-pill-background-active)}.header-close-button-container{position:absolute;top:2.4rem;right:2rem}@media (width>=480px){.header-title-bar{padding-top:2.4rem;padding-left:3.2rem;padding-right:3.2rem}.header-title-with-top-area{padding-left:3.2rem;padding-right:3.2rem}.header-button{min-width:32px;min-height:32px}}`]}Yl([he({type:String})],Xl.prototype,"title",void 0),Yl([he({type:Boolean})],Xl.prototype,"back",void 0),Yl([he({type:Boolean,attribute:"no-close"})],Xl.prototype,"noClose",void 0),Yl([ue()],Xl.prototype,"_hasTopContent",void 0),Yl([be(".title-el")],Xl.prototype,"titleEl",void 0);const Ul=Xl;customElements.get("w-modal-header")||customElements.define("w-modal-header",Xl)
|
|
2519
79
|
/**
|
|
2520
80
|
* @license
|
|
2521
81
|
* Copyright 2021 Google LLC
|
|
2522
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2523
|
-
*/;const
|
|
83
|
+
*/;const Jl=JSON.parse('{"page-indicator.aria.label":["Prik ",["selectedPage"]," er fremhævet i en række med ",["pageCount"]," prikker"]}'),Kl=JSON.parse('{"page-indicator.aria.label":["Dot ",["selectedPage"]," is highlighted in a row of ",["pageCount"]," dots"]}'),Zl=JSON.parse('{"page-indicator.aria.label":["Piste ",["selectedPage"]," on korostettuna ",["pageCount"]," pisteen rivissä"]}'),Ql=JSON.parse('{"page-indicator.aria.label":["Prikk ",["selectedPage"]," er uthevet i en rad med ",["pageCount"]," prikker"]}'),Gl=JSON.parse('{"page-indicator.aria.label":["Prick ",["selectedPage"]," är markerad i en rad med ",["pageCount"]," prickar"]}'),ed=a`.w-page-indicator{pointer-events:none;justify-content:center;height:max-content;display:grid}.w-page-indicator--container{grid-auto-flow:column;gap:8px;display:grid}.w-page-indicator--dot{background-color:var(--w-s-color-background-disabled);border-radius:5px;width:10px;height:10px}.w-page-indicator--selecteddot{background-color:var(--w-s-color-icon-selected)}`;var td=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};yt(Kl,Ql,Zl,Jl,Gl);class rd extends se{constructor(){super(...arguments),this.selectedPage=1,this.pageCount=1}static#e=this.styles=[ed];get _validPageCount(){return Math.max(1,Math.floor(this.pageCount??1))}get _validSelectedPage(){const e=Math.floor(this.selectedPage??1);return Math.max(1,Math.min(e,this._validPageCount))}render(){const e=this._validPageCount,t=this._validSelectedPage,r=pt._({id:"page-indicator.aria.label",comment:"Default screenreader message for page indicator group",message:"Dot {selectedPage} is highlighted in a row of {pageCount} dots",values:{selectedPage:t,pageCount:e}});return B`<div class="w-page-indicator" role="img" aria-label="${r}"><div class="w-page-indicator--container">${function*(e,t){if(void 0!==e){let r=0;for(const o of e)yield t(o,r++)}}
|
|
2524
84
|
/**
|
|
2525
85
|
* @license
|
|
2526
86
|
* Copyright 2021 Google LLC
|
|
2527
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2528
|
-
*/(function*(e,t,r){void 0===r&&(r=1);const o=void 0===t?0:e;t??=e;for(let e=o;r>0?e<t:t<e;e+=r)yield e}(e),e=>q`<div class="${ye({"w-page-indicator--dot":!0,"w-page-indicator--selecteddot":e+1===t})}"></div>`)}</div></div>`}}ed([ce({type:Number,attribute:"selected-page",reflect:!0})],td.prototype,"selectedPage",void 0),ed([ce({type:Number,attribute:"page-count",reflect:!0})],td.prototype,"pageCount",void 0),customElements.get("w-page-indicator")||customElements.define("w-page-indicator",td);const rd=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Næste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),od=JSON.parse('{"pagination.aria.first-page":["First page"],"pagination.aria.icon-suffix":["icon"],"pagination.aria.next-page":["Next page"],"pagination.aria.page":["Page ",["currentPage"]],"pagination.aria.pagination":["Pages"],"pagination.aria.prev-page":["Previous page"],"pagination.label.current-page":["Page ",["currentPage"]]}'),id=JSON.parse('{"pagination.aria.first-page":["Ensimmäinen sivu"],"pagination.aria.icon-suffix":["kuvake"],"pagination.aria.next-page":["Seuraava sivu"],"pagination.aria.page":["Sivu ",["currentPage"]],"pagination.aria.pagination":["Sivut"],"pagination.aria.prev-page":["Edellinen sivu"],"pagination.label.current-page":["Sivu ",["currentPage"]]}'),ad=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Neste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),nd=JSON.parse('{"pagination.aria.first-page":["Första sidan"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Nästa sida"],"pagination.aria.page":["Sida ",["currentPage"]],"pagination.aria.pagination":["Sidor"],"pagination.aria.prev-page":["Föregående sida"],"pagination.label.current-page":["Sida ",["currentPage"]]}'),sd=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.border-0{border-width:0}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.hover\\:no-underline:hover,.focus\\:no-underline:focus{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-4{padding:.4rem}.p-8{padding:.8rem}.visible{visibility:visible}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:768px){.md\\:block{display:block}.md\\:hidden{display:none}}`;var ld=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const dd=()=>ut._({id:"pagination.aria.icon-suffix",message:"icon",comment:"Suffix added at the end of icon titles when img semantics are lost on an html element"}),cd="hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding";class hd extends ne{static#e=this.styles=[De,sd,a`w-icon{height:16px}`];constructor(){super(),wt(od,ad,id,rd,nd)}get _currentPage(){return this.currentPageNumber??1}get _visiblePages(){return this.visiblePages??7}get shouldShowShowFirstPageButton(){return this._currentPage-2>0}get shouldShowPreviousPageButton(){return this._currentPage-1>0}get shouldShowNextPageButton(){return this._currentPage<this.pages}get currentPageIndex(){return this._currentPage-1}get visiblePageNumbers(){if(this.pages<=this._visiblePages)return Array.from({length:this.pages},(e,t)=>t+1);const e=Math.floor(this._visiblePages/2);let t=Math.max(1,this._currentPage-e);const r=Math.min(this.pages,t+this._visiblePages-1);return r-t+1<this._visiblePages&&(t=Math.max(1,r-this._visiblePages+1)),Array.from({length:r-t+1},(e,r)=>t+r)}#K(e){const t=e.target.getAttribute("data-page-number");this.dispatchEvent(new CustomEvent("page-click",{detail:{clickedPage:t},bubbles:!0,composed:!0}))}render(){const e=this.visiblePageNumbers;return q`<nav class="flex items-center justify-center p-8" @click="${this.#K}"><h1 class="sr-only">${ut._({id:"pagination.aria.pagination",message:"Pages",comment:"Default screenreader message for pagination container in the pagination component"})}</h1><div class="flex items-center s-text-link">${this.shouldShowShowFirstPageButton?q`<a data-page-number="1" href="${this.baseUrl}1" class="${cd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${ut._({id:"pagination.aria.first-page",message:"First page",comment:"Default screenreader message for first page link in the pagination component"})},</span><w-icon name="ChevronDoubleLeft" size="small" locale="${ft()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${dd()}</span></a>`:B} ${this.shouldShowPreviousPageButton?q`<a data-page-number="${this._currentPage-1}" href="${this.baseUrl}${this._currentPage-1}" class="${cd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${ut._({id:"pagination.aria.prev-page",message:"Previous page",comment:"Default screenreader message for previous page link in the pagination component"})},</span><w-icon name="ChevronLeft" size="small" locale="${ft()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${dd()}</span></a>`:B}<div class="hidden md:block">${e.map(e=>{const t=e===this._currentPage,r=`${this.baseUrl}${e}`;let o=cd;o+=t?" s-bg-primary s-text-inverted":" hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]";const i=ut._({id:"pagination.aria.page",message:"Page {currentPage}",values:{currentPage:e},comment:"Default screenreader message for page link in the pagination component"});return q`<a data-page-number="${e}" aria-label="${i}" href="${r}" class="${o}" aria-current="${t?"page":""}">${e}</a>`})}</div><span class="block md:hidden p-8 font-bold">${ut._({id:"pagination.label.current-page",message:"Page {currentPage}",values:{currentPage:this._currentPage},comment:"Default message for current page label in the pagination component"})}</span> ${this.shouldShowNextPageButton?q`<a data-page-number="${this._currentPage+1}" href="${this.baseUrl}${this._currentPage+1}" class="${cd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${ut._({id:"pagination.aria.next-page",message:"Next page",comment:"Default screenreader message for next page link in the pagination component"})},</span><w-icon name="ChevronRight" size="small" locale="${ft()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${dd()}</span></a>`:B}</div></nav>`}}ld([ce({type:String,reflect:!0,attribute:"base-url"})],hd.prototype,"baseUrl",void 0),ld([ce({type:Number,reflect:!0})],hd.prototype,"pages",void 0),ld([ce({type:Number,reflect:!0,attribute:"current-page"})],hd.prototype,"currentPageNumber",void 0),ld([ce({type:Number,reflect:!0,attribute:"visible-pages"})],hd.prototype,"visiblePages",void 0),customElements.get("w-pagination")||customElements.define("w-pagination",hd);const ud=JSON.parse('{"pill.aria.openFilter":["Åbn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}'),pd=JSON.parse('{"pill.aria.openFilter":["Open filter"],"pill.aria.removeFilter":["Remove filter ",["label"]]}'),bd=JSON.parse('{"pill.aria.openFilter":["Avaa suodatin"],"pill.aria.removeFilter":["Tyhjennä suodatin ",["label"]]}'),gd=JSON.parse('{"pill.aria.openFilter":["Åpne filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}'),md=JSON.parse('{"pill.aria.openFilter":["Öppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}'),vd=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-color-pill-suggestion-background\\]{background-color:var(--w-color-pill-suggestion-background)}.hover\\:bg-\[--w-color-pill-suggestion-background-hover\\]:hover{background-color:var(--w-color-pill-suggestion-background-hover)}.active\\:bg-\[--w-color-pill-suggestion-background-active\\]:active{background-color:var(--w-color-pill-suggestion-background-active)}.rounded{border-radius:4px}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.focusable:focus,.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.hover\\:s-bg-primary-hover:hover{background-color:var(--w-s-color-background-primary-hover)}.active\\:s-bg-primary-active:active{background-color:var(--w-s-color-background-primary-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.h-16{height:1.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.pl-12{padding-left:1.2rem}.pl-4{padding-left:.4rem}.pr-12{padding-right:1.2rem}.pr-2{padding-right:.2rem}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;var fd=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const wd="flex items-center",yd="inline-flex items-center focusable text-xs transition-all",xd="bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold",kd="s-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted",_d="pl-12 py-8 rounded-l-full",$d="pr-12 rounded-r-full",Sd="pr-2",Ed="pr-12 pl-4 py-8 rounded-r-full",Cd="h-16",Od="sr-only";class zd extends ne{static#e=this.styles=[De,vd];constructor(){super(),this.canClose=!1,this.suggestion=!1,wt(pd,gd,bd,ud,md),this.canClose=!1,this.suggestion=!1,this.openFilterSrText=ut._({id:"pill.aria.openFilter",message:"Open filter",comment:"Fallback screen reader message for open filter"}),this.removeFilterSrText=ut._({id:"pill.aria.removeFilter",message:"Remove filter {label}",comment:"Fallback screen reader message for removal of the filter"})}get _labelClasses(){return Ee([yd,_d,this.suggestion?xd:kd,this.canClose?Sd:$d])}get _closeClasses(){return Ee([yd,Ed,this.suggestion?xd:kd])}_onClick(){this.dispatchEvent(new CustomEvent("w-pill-click",{bubbles:!0,composed:!0}))}_onClose(){this.dispatchEvent(new CustomEvent("w-pill-close",{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.openSrLabel&&(this.openAriaLabel=this.openSrLabel),this.closeSrLabel&&(this.closeAriaLabel=this.closeSrLabel)}render(){return q`<div class="${wd}"><button type="button" class="${this._labelClasses}" @click="${this._onClick}"><span class="${Od}">${this.openAriaLabel?this.openAriaLabel:this.openFilterSrText}</span><slot></slot></button> ${this.canClose?q`<button type="button" class="${this._closeClasses}" @click="${this._onClose}"><span class="${Od}">${this.closeAriaLabel?this.closeAriaLabel:this.removeFilterSrText}</span><w-icon name="Close" size="small" locale="${ft()}" class="${Cd}" class="flex"></w-icon></button>`:null}</div>`}}fd([ce({attribute:"can-close",type:Boolean})],zd.prototype,"canClose",void 0),fd([ce({attribute:"suggestion",type:Boolean})],zd.prototype,"suggestion",void 0),fd([ce({attribute:"open-sr-label",type:String})],zd.prototype,"openSrLabel",void 0),fd([ce({attribute:"open-aria-label",type:String})],zd.prototype,"openAriaLabel",void 0),fd([ce({attribute:"close-sr-label",type:String})],zd.prototype,"closeSrLabel",void 0),fd([ce({attribute:"close-aria-label",type:String})],zd.prototype,"closeAriaLabel",void 0),customElements.get("w-pill")||customElements.define("w-pill",zd);const Ad=a`:host{box-sizing:border-box!important}:host *,:host :before,:host :after{box-sizing:inherit!important}`,Dd=a`:host{align-items:center;gap:var(--_gap);--_gap:var(--w-c-radio-gap,8px);--_size:var(--w-c-radio-size,2rem);--_radius:var(--w-c-radio-radius,50%);--_border-width:var(--w-c-radio-border-width,1px);--_checked-border-width:var(--w-c-radio-checked-border-width,.6rem);--_bg:var(--w-c-radio-bg,var(--w-s-color-background));--_border-color:var(--w-c-radio-border-color,var(--w-s-color-border-strong));--_border-color-checked:var(--w-c-radio-border-color-checked,var(--w-s-color-border-selected));--_border-color-invalid:var(--w-c-radio-border-color-invalid,var(--w-s-color-border-negative));--_outline-width:var(--w-c-radio-outline-width,2px);--_outline-color:var(--w-c-radio-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-radio-outline-offset,var(--w-outline-offset,1px));--_border-color-disabled:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--_bg-disabled:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--_label-font-size:var(--w-c-radio-label-font-size,var(--w-font-size-m));--_label-line-height:var(--w-c-radio-label-line-height,var(--w-line-height-m));--_label-color:var(--w-c-radio-label-color,currentColor);--_label-color-disabled:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--_cursor:var(--w-c-radio-cursor,pointer);--_cursor-disabled:var(--w-c-radio-cursor-disabled,not-allowed);--_transition:var(--w-c-radio-transition,border-color .15s cubic-bezier(.4, 0, .2, 1), border-width .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1));display:inline-flex}:host([disabled]),:host([disabled-ui]){--w-c-radio-border-color:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-bg:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--w-c-radio-border-color-checked:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-label-color:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--w-c-radio-cursor:var(--w-c-radio-cursor-disabled,not-allowed)}.wrapper{align-items:center;gap:var(--_gap);display:inline-flex}[part=control]{-webkit-appearance:none;appearance:none;width:var(--_size);height:var(--_size);border-style:solid;border-width:var(--_border-width);border-color:var(--_border-color);border-radius:var(--_radius);background-color:var(--_bg);cursor:var(--_cursor);transition:var(--_transition);flex-shrink:0;margin:0}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio][checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{border-color:var(--_border-color-checked);border-width:var(--_checked-border-width)}:host([invalid]) [part=control]{border-color:var(--_border-color-invalid)}:host(:focus-visible){outline:none}:host(:focus-visible) [part=control]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}:host([disabled]) [part=control],:host([disabled-ui]) [part=control],:host([role=radio]:state(disabled)) [part=control]{border-color:var(--_border-color-disabled);background-color:var(--_bg-disabled);cursor:var(--_cursor-disabled)}:host([disabled]) [part=label],:host([disabled-ui]) [part=label]{color:var(--_label-color-disabled);cursor:var(--_cursor-disabled)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control]{border-color:var(--_border-color-disabled)}[part=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);color:var(--_label-color);user-select:none;cursor:var(--_cursor)}@media (prefers-reduced-motion:reduce){:host{--w-c-radio-transition:none}}@media (forced-colors:active){:host{--w-c-radio-bg:Canvas;--w-c-radio-border-color:ButtonText;--w-c-radio-border-color-checked:Highlight;--w-c-radio-outline-color:Highlight;--w-c-radio-bg-disabled:Canvas;--w-c-radio-border-color-disabled:GrayText;--w-c-radio-label-color:CanvasText;--w-c-radio-label-color-disabled:GrayText}[part=control]{forced-color-adjust:none}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{background-color:var(--_border-color-checked);border-color:var(--_border-color-checked)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control],:host([role=radio]:state(disabled):state(checked)) [part=control]{background-color:var(--_border-color-disabled);border-color:var(--_border-color-disabled)}}`;var Pd=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class Md extends(ze(ne)){static#e=this.styles=[Ad,De,Dd];static#o=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};get tabIndex(){return this._internalTabIndex}set tabIndex(e){this._groupTabIndex=e}#i;#a;#n;constructor(){super(),this.value=null,this.checked=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.#i=!1,this.#a=!1,this.#n=!1,this.handleClick=()=>{this.isInGroup()||this.disabled||(this.#n=!0,this.checked||(this.checked=!0,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})))},this.handleInvalid=()=>{this.#n=!0,this.updateValidity()},this.handleKeyDown=e=>{if(!this.isInGroup()&&!this.disabled&&!e.defaultPrevented){if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)){const t=this.getStandaloneNamedRadios().filter(e=>!e.disabled);if(t.length<=1)return;e.preventDefault();const r=t.find(e=>e.checked)??t.find(e=>e===this)??t[0],o="ArrowUp"===e.key||"ArrowLeft"===e.key?-1:1,i=t.indexOf(r),a=t[(i+o+t.length)%t.length];return a.#n=!0,a.checked||(a.checked=!0,a.updateComplete.then(()=>{a.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),void a.focus()}" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||("Enter"===e.key&&this.internals.form?this.internals.form.requestSubmit():(e.preventDefault(),this.click()))}},this.addEventListener("click",this.handleClick),this.addEventListener("invalid",this.handleInvalid),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.value=this.getAttribute("value")??"on",this.#i=this.hasAttribute("checked"),this.checked=this.#i,this.internals.role="radio",this.syncAriaDisabled(),this.syncFormValue(),this.updateValidity()}syncAriaDisabled(){this.internals.ariaDisabled=this.disabled?"true":"false"}syncAriaChecked(){this.internals.ariaChecked=this.checked?"true":"false"}willUpdate(e){this.shouldSyncFormState(e)&&(this.syncFormValue(),this.updateValidity())}updated(e){super.updated(e),e.has("checked")&&(this.syncAriaChecked(),this.checked&&!this.isInGroup()&&(this.uncheckOtherRadios(),this.syncStandaloneTabOrder())),e.has("disabled")&&(this.syncAriaDisabled(),this.isInGroup()||this.syncStandaloneTabOrder()),e.has("invalid")&&(this.internals.ariaInvalid=this.invalid?"true":null),e.has("name")&&this.checked&&!this.isInGroup()&&this.uncheckOtherRadios()}resetFormControl(){this.checked=this.#i,this.syncFormValue(),this.updateValidity()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.#n=!0,this.updateValidity(),this.internals.checkValidity()}isInGroup(){return Boolean(this.closest("w-radio-group"))}getRadioScope(){return this.internals.form??this.closest("form")??document}getStandaloneNamedRadios(){if(!this.name)return[this];const e=this.getRadioScope();return Array.from(e.querySelectorAll(`w-radio[name="${this.name}"]`)).filter(e=>!e.closest("w-radio-group"))}syncStandaloneTabOrder(){const e=this.getStandaloneNamedRadios(),t=e.filter(e=>!e.disabled),r=t.find(e=>e.checked)??t[0]??null;e.forEach(e=>{e._standaloneTabIndex=e===r?0:-1})}get _internalTabIndex(){return this.disabled?-1:void 0!==this._groupTabIndex?this._groupTabIndex:void 0!==this._standaloneTabIndex?this._standaloneTabIndex:0}firstUpdated(){this.isInGroup()||this.syncStandaloneTabOrder()}uncheckOtherRadios(){if(!this.name)return;const e=this.getRadioScope();Array.from(e.querySelectorAll(`w-radio[name="${this.name}"]`)).forEach(e=>{e!==this&&(e.closest("w-radio-group")||e.checked&&(e.checked=!1))})}updateValidity(){if(this.disabled||this.isInGroup())return void this.internals.setValidity({});const e=this.required&&!this.checked,t=this.invalid&&!this.#a;if(e)return this.#a=!0,this.invalid=this.#n,void this.internals.setValidity({valueMissing:!0},this.internals.validationMessage||" ");this.#a&&(this.invalid=!1,this.#a=!1),t?this.internals.setValidity({customError:!0},this.internals.validationMessage||" "):this.internals.setValidity({})}syncFormValue(){this.disabled?this.setValue(null):this.setValue(this.checked?this.value:null)}shouldSyncFormState(e){return e.has("checked")||e.has("value")||e.has("disabled")||e.has("required")||e.has("invalid")}render(){return q`<div class="wrapper" tabindex="${this._internalTabIndex}"><div part="control" class="control"></div><slot part="label" class="label"></slot></div>`}}Pd([ce({reflect:!0})],Md.prototype,"name",void 0),Pd([ce({reflect:!0})],Md.prototype,"value",void 0),Pd([ce({type:Boolean,reflect:!0})],Md.prototype,"checked",void 0),Pd([ce({type:Boolean,reflect:!0})],Md.prototype,"disabled",void 0),Pd([ce({type:Boolean,reflect:!0})],Md.prototype,"required",void 0),Pd([ce({type:Boolean,reflect:!0})],Md.prototype,"invalid",void 0),Pd([ce({attribute:!1})],Md.prototype,"_groupTabIndex",void 0),Pd([ce({attribute:!1})],Md.prototype,"_standaloneTabIndex",void 0);const Td=Md;customElements.get("w-radio")||customElements.define("w-radio",Md);const jd=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Vælg en mulighed."]}'),Rd=JSON.parse('{"radio-group.label.optional":["Optional"],"radio-group.validation.required":["Please select an option."]}'),Nd=JSON.parse('{"radio-group.label.optional":["Valinnainen"],"radio-group.validation.required":["Valitse vaihtoehto."]}'),Id=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Velg et alternativ."]}'),Vd=JSON.parse('{"radio-group.label.optional":["Valfritt"],"radio-group.validation.required":["Välj ett alternativ."]}'),Fd=a`:host{--_label-font-size:var(--w-c-radio-group-label-font-size,var(--w-font-size-s));--_label-line-height:var(--w-c-radio-group-label-line-height,var(--w-line-height-s));--_label-font-weight:var(--w-c-radio-group-label-font-weight,700);--_label-color:var(--w-c-radio-group-label-color,var(--w-s-color-text));--_label-color-disabled:var(--w-c-radio-group-label-color-disabled,var(--w-s-color-text-disabled));--_label-padding-bottom:var(--w-c-radio-group-label-padding-bottom,16px);--_optional-font-weight:var(--w-c-radio-group-optional-font-weight,400);--_optional-color:var(--w-c-radio-group-optional-color,var(--w-s-color-text-subtle));--_optional-margin-inline-start:var(--w-c-radio-group-optional-margin-inline-start,.5rem);--_radios-gap:var(--w-c-radio-group-gap,16px);--_help-text-margin-block-start:var(--w-c-radio-group-help-text-margin-block-start,16px);--_help-text-font-size:var(--w-c-radio-group-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-radio-group-help-text-line-height,var(--w-line-height-xs));--_help-text-color:var(--w-c-radio-group-help-text-color,var(--w-s-color-text-subtle));--_help-text-color-disabled:var(--w-c-radio-group-help-text-color-disabled,var(--w-s-color-text-disabled));--_help-text-color-error:var(--w-c-radio-group-help-text-color-error,var(--w-s-color-text-negative));display:block}[part=form-control]{border:0;min-inline-size:0;margin:0;padding:0;position:relative}[part=form-control-label]{cursor:pointer;font-size:var(--_label-font-size);line-height:var(--_label-line-height);font-weight:var(--_label-font-weight);color:var(--_label-color);padding-bottom:var(--_label-padding-bottom);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale;display:block}:host([disabled]) [part=form-control-label]{cursor:default;color:var(--_label-color-disabled)}:host([required]) [part=form-control-label]:after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset)}.optional{font-weight:var(--_optional-font-weight);color:var(--_optional-color);margin-inline-start:var(--_optional-margin-inline-start)}[part~=form-control-input]{gap:var(--_radios-gap);flex-flow:column wrap;display:flex}[part~=help-text]{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);color:var(--_help-text-color);margin-block-start:var(--_help-text-margin-block-start)}:host([disabled]) [part~=help-text]{color:var(--_help-text-color-disabled)}:host([data-show-error]) [part~=help-text]{color:var(--_help-text-color-error)}`;var Ld=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};wt(Rd,Id,Nd,jd,Vd);class qd extends(ze(ne)){static#e=this.styles=[Ad,Fd];static#o=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this.hasInteracted=!1,this.hasWarnedMissingName=!1,this.autoTabIndex=!1,this.label="",this.helpText="",this.optional=!1,this.invalid=!1,this.name=null,this.disabled=!1,this.required=!1,this.defaultCheckedValue=void 0,this.slottedHelpText=null,this.nameManagedRadios=new WeakSet,this.disabledManagedRadios=new WeakSet,this.handleRadioClick=e=>{const t=e.target.closest("w-radio");if(!t||t.disabled||this.disabled)return;const r=this.getCheckedValue(),o=this.getAllRadios();this.selectSingleRadio(t,o);this.getCheckedValue()!==r&&this.updateComplete.then(this.emitSelectionChange)},this.handleInvalid=e=>{e.preventDefault(),this.hasInteracted=!0,this.updateValidity()},this.handleHelpTextSlotChange=()=>{this.syncSlottedHelpText(),this.requestUpdate()},this.handleI18nChange=()=>{this.requestUpdate()},this.emitSelectionChange=()=>{this.hasInteracted=!0,this.syncFormValue(),this.updateValidity(),this.requestUpdate(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this.captureDefaultSelection=()=>{void 0===this.defaultCheckedValue&&(this.defaultCheckedValue=this.getCheckedValue())},this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleRadioClick),this.addEventListener("invalid",this.handleInvalid)}get validationTarget(){return this.querySelector(":is(w-radio):not([disabled])")??void 0}connectedCallback(){super.connectedCallback(),this.syncSlottedHelpText(),this.syncFormValue(),this.updateValidity(),this.unsubscribeI18n=ut.on("change",this.handleI18nChange),this.warnIfMissingName(),this.updateComplete.then(this.captureDefaultSelection)}disconnectedCallback(){this.unsubscribeI18n?.(),this.unsubscribeI18n=void 0,super.disconnectedCallback()}async updated(e){(e.has("disabled")||e.has("name")||e.has("required")||e.has("invalid")||e.has("helpText"))&&(this.syncFormValue(),this.updateValidity(),this.syncRadioElements(),this.syncFormValue(),this.updateValidity())}resetFormControl(){const e=this.defaultCheckedValue??null;this.getAllRadios().forEach(t=>{t.checked=!!e&&t.value===e}),this.syncRadioElements(),this.syncFormValue(),this.updateValidity()}getAllRadios(){return[...this.querySelectorAll("w-radio")]}getCheckedValue(){const e=this.getAllRadios().find(e=>e.checked);return e?.value??null}getEnabledRadios(e){return void 0===e&&(e=this.getAllRadios()),e.filter(e=>!e.disabled)}selectSingleRadio(e,t){void 0===t&&(t=this.getAllRadios()),t.forEach(t=>{const r=t===e;t.checked=r,t._groupTabIndex=r?0:-1})}handleLabelClick(){this.focus()}async syncRadioElements(){const e=this.getAllRadios();e.forEach((t,r)=>{t.toggleAttribute("data-w-radio-first",0===r),t.toggleAttribute("data-w-radio-inner",0!==r&&r!==e.length-1),t.toggleAttribute("data-w-radio-last",r===e.length-1),this.syncRadioDisabledState(t),this.name?t.getAttribute("name")&&!this.nameManagedRadios.has(t)||(t.setAttribute("name",this.name),this.nameManagedRadios.add(t)):this.nameManagedRadios.has(t)&&(t.removeAttribute("name"),this.nameManagedRadios.delete(t))}),await Promise.all(e.map(async e=>e.updateComplete)),this.normalizeCheckedRadios(e),this.syncTabOrder(e)}syncRadioDisabledState(e){this.disabled?e.disabled||(e.disabled=!0,this.disabledManagedRadios.add(e)):this.disabledManagedRadios.has(e)&&(e.disabled=!1,this.disabledManagedRadios.delete(e))}syncTabOrder(e){if(this.disabled)return void e.forEach(e=>e._groupTabIndex=-1);const t=this.getEnabledRadios(e),r=t.find(e=>e.checked);t.length>0&&(r?t.forEach(e=>e._groupTabIndex=e.checked?0:-1):t.forEach((e,t)=>e._groupTabIndex=0===t?0:-1)),e.filter(e=>e.disabled).forEach(e=>e._groupTabIndex=-1)}handleKeyDown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key)||this.disabled)return;const t=this.getAllRadios(),r=this.getEnabledRadios(t);if(r.length<=0)return;e.preventDefault();const o=this.getCheckedValue(),i=r.find(e=>e.checked)??r[0],a=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let n=r.indexOf(i)+a;n<0&&(n=r.length-1),n>=r.length&&(n=0),this.selectSingleRadio(r[n],t),r[n].focus();this.getCheckedValue()!==o&&this.updateComplete.then(this.emitSelectionChange)}focus(e){if(this.disabled)return;const t=this.getAllRadios(),r=t.find(e=>e.checked),o=t.find(e=>!e.disabled),i=r||o;i&&i.focus(e)}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.hasInteracted=!0,this.updateValidity(),this.internals.checkValidity()}hasSlottedContent(e){if(this.querySelector(`[slot="${e}"]`))return!0;const t=this.shadowRoot?.querySelector(`slot[name="${e}"]`);return!!t&&t.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent?.trim()))}syncFormValue(){this.setValue(null)}syncSlottedHelpText(){const e=this.querySelector('[slot="help-text"]');this.slottedHelpText=e?.textContent?.trim()||null}updateValidity(){this.warnIfMissingName();const e=this.required&&!this.getCheckedValue(),t=e&&this.hasInteracted,r=this.invalid||this.hasAttribute("invalid"),o=r||t;return this.toggleAttribute("data-show-error",o),this.disabled?(this.internals.setValidity({}),this.syncChildInvalid(!1),void this.syncHostTabIndex(!1)):(this.syncHostTabIndex(o),e?(this.setValidityState({valueMissing:!0}),void this.syncChildInvalid(o)):r?(this.setValidityState({customError:!0}),void this.syncChildInvalid(!0)):(this.internals.setValidity({}),void this.syncChildInvalid(!1)))}normalizeCheckedRadios(e){const t=e.find(e=>e.checked);t&&e.forEach(e=>{e!==t&&(e.checked=!1)})}syncChildInvalid(e){this.getAllRadios().forEach(t=>{t.invalid=e})}setValidityState(e){const t=this.validationTarget;this.internals.setValidity(e," ",t??void 0)}syncHostTabIndex(e){if(!this.hasAttribute("tabindex")||this.autoTabIndex)return e?(this.setAttribute("tabindex","0"),void(this.autoTabIndex=!0)):void(this.autoTabIndex&&(this.removeAttribute("tabindex"),this.autoTabIndex=!1))}warnIfMissingName(){this.hasWarnedMissingName||this.internals.form&&(this.name&&this.name.trim().length>0||(console.warn('w-radio-group: "name" is required for form submission.'),this.hasWarnedMissingName=!0))}render(){const e=this.hasSlottedContent("label"),t=this.hasSlottedContent("help-text"),r=!!this.label||!!e,o=!!this.helpText||!!t,i=this.required&&!this.getCheckedValue()&&this.hasInteracted,a=this.invalid||this.hasAttribute("invalid"),n=a||i,s=n?a&&this.helpText?this.helpText:ut._({id:"radio-group.validation.required",message:"Please select an option.",comment:"Shown when required radio group has no selections"}):this.helpText,l=n||o,d=r?"label":void 0,c=l?"help-text":void 0,h=this.slottedHelpText||void 0;return q`<fieldset part="form-control" role="radiogroup" aria-labelledby="${Ae(d)}" aria-describedby="${Ae(c)}" aria-errormessage="error-message" aria-invalid="${n?"true":void 0}">${r?q`<label part="form-control-label" id="label" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot>${this.optional?q`<span class="optional">${ut._({id:"radio-group.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:null}</label>`:null}<slot part="form-control-input" @slotchange="${this.syncRadioElements}"></slot>${l?q`<div id="help-text" part="help-text" aria-label="${Ae(h)}"><slot name="help-text" @slotchange="${this.handleHelpTextSlotChange}">${s}</slot></div>`:null}</fieldset>`}}Ld([he()],qd.prototype,"hasInteracted",void 0),Ld([ce()],qd.prototype,"label",void 0),Ld([ce({attribute:"help-text"})],qd.prototype,"helpText",void 0),Ld([ce({type:Boolean,reflect:!0})],qd.prototype,"optional",void 0),Ld([ce({type:Boolean,reflect:!0})],qd.prototype,"invalid",void 0),Ld([ce({reflect:!0})],qd.prototype,"name",void 0),Ld([ce({type:Boolean,reflect:!0})],qd.prototype,"disabled",void 0),Ld([ce({type:Boolean,reflect:!0})],qd.prototype,"required",void 0);const Wd=qd;
|
|
88
|
+
*/(function*(e,t,r){void 0===r&&(r=1);const o=void 0===t?0:e;t??=e;for(let e=o;r>0?e<t:t<e;e+=r)yield e}(e),e=>B`<div class="${xe({"w-page-indicator--dot":!0,"w-page-indicator--selecteddot":e+1===t})}"></div>`)}</div></div>`}}td([he({type:Number,attribute:"selected-page",reflect:!0,useDefault:!0})],rd.prototype,"selectedPage",void 0),td([he({type:Number,attribute:"page-count",reflect:!0,useDefault:!0})],rd.prototype,"pageCount",void 0),customElements.get("w-page-indicator")||customElements.define("w-page-indicator",rd);const od=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Næste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),nd=JSON.parse('{"pagination.aria.first-page":["First page"],"pagination.aria.icon-suffix":["icon"],"pagination.aria.next-page":["Next page"],"pagination.aria.page":["Page ",["currentPage"]],"pagination.aria.pagination":["Pages"],"pagination.aria.prev-page":["Previous page"],"pagination.label.current-page":["Page ",["currentPage"]]}'),id=JSON.parse('{"pagination.aria.first-page":["Ensimmäinen sivu"],"pagination.aria.icon-suffix":["kuvake"],"pagination.aria.next-page":["Seuraava sivu"],"pagination.aria.page":["Sivu ",["currentPage"]],"pagination.aria.pagination":["Sivut"],"pagination.aria.prev-page":["Edellinen sivu"],"pagination.label.current-page":["Sivu ",["currentPage"]]}'),ad=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Neste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),sd=JSON.parse('{"pagination.aria.first-page":["Första sidan"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Nästa sida"],"pagination.aria.page":["Sida ",["currentPage"]],"pagination.aria.pagination":["Sidor"],"pagination.aria.prev-page":["Föregående sida"],"pagination.label.current-page":["Sida ",["currentPage"]]}'),ld=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.border-0{border-width:0}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.hover\\:no-underline:hover,.focus\\:no-underline:focus{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-4{padding:.4rem}.p-8{padding:.8rem}.visible{visibility:visible}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:768px){.md\\:block{display:block}.md\\:hidden{display:none}}");var dd=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const cd=()=>pt._({id:"pagination.aria.icon-suffix",message:"icon",comment:"Suffix added at the end of icon titles when img semantics are lost on an html element"}),hd="hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out min-h-[44px] min-w-[44px] p-4 rounded-full border-0 hover:bg-clip-padding";class ud extends se{static#e=this.styles=[Pe,ld,a`w-icon{height:16px}`];constructor(){super(),this.pages=0,this.currentPageNumber=1,this.visiblePages=7,yt(nd,ad,id,od,sd)}get shouldShowShowFirstPageButton(){return this.currentPageNumber-2>0}get shouldShowPreviousPageButton(){return this.currentPageNumber-1>0}get shouldShowNextPageButton(){return this.currentPageNumber<this.pages}get currentPageIndex(){return this.currentPageNumber-1}get visiblePageNumbers(){if(this.pages<=this.visiblePages)return Array.from({length:this.pages},(e,t)=>t+1);const e=Math.floor(this.visiblePages/2);let t=Math.max(1,this.currentPageNumber-e);const r=Math.min(this.pages,t+this.visiblePages-1);return r-t+1<this.visiblePages&&(t=Math.max(1,r-this.visiblePages+1)),Array.from({length:r-t+1},(e,r)=>t+r)}#K(e){const t=e.target.getAttribute("data-page-number");this.dispatchEvent(new CustomEvent("page-click",{detail:{clickedPage:t},bubbles:!0,composed:!0}))}render(){const e=this.visiblePageNumbers;return B`<nav class="flex items-center justify-center p-8" @click="${this.#K}"><h1 class="sr-only">${pt._({id:"pagination.aria.pagination",message:"Pages",comment:"Default screenreader message for pagination container in the pagination component"})}</h1><div class="flex items-center s-text-link">${this.shouldShowShowFirstPageButton?B`<a data-page-number="1" href="${this.baseUrl}1" class="${hd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${pt._({id:"pagination.aria.first-page",message:"First page",comment:"Default screenreader message for first page link in the pagination component"})},</span><w-icon name="ChevronDoubleLeft" size="small" locale="${wt()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${cd()}</span></a>`:H} ${this.shouldShowPreviousPageButton?B`<a data-page-number="${this.currentPageNumber-1}" href="${this.baseUrl}${this.currentPageNumber-1}" class="${hd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${pt._({id:"pagination.aria.prev-page",message:"Previous page",comment:"Default screenreader message for previous page link in the pagination component"})},</span><w-icon name="ChevronLeft" size="small" locale="${wt()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${cd()}</span></a>`:H}<div class="hidden md:block">${e.map(e=>{const t=e===this.currentPageNumber,r=`${this.baseUrl}${e}`;let o=hd;o+=t?" s-bg-primary s-text-inverted":" hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]";const n=pt._({id:"pagination.aria.page",message:"Page {currentPage}",values:{currentPage:e},comment:"Default screenreader message for page link in the pagination component"});return B`<a data-page-number="${e}" aria-label="${n}" href="${r}" class="${o}" aria-current="${t?"page":""}">${e}</a>`})}</div><span class="block md:hidden p-8 font-bold">${pt._({id:"pagination.label.current-page",message:"Page {currentPage}",values:{currentPage:this.currentPageNumber},comment:"Default message for current page label in the pagination component"})}</span> ${this.shouldShowNextPageButton?B`<a data-page-number="${this.currentPageNumber+1}" href="${this.baseUrl}${this.currentPageNumber+1}" class="${hd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${pt._({id:"pagination.aria.next-page",message:"Next page",comment:"Default screenreader message for next page link in the pagination component"})},</span><w-icon name="ChevronRight" size="small" locale="${wt()}" class="pointer-events-none flex items-center" class="flex"></w-icon><span class="sr-only">${cd()}</span></a>`:H}</div></nav>`}}dd([he({type:String,reflect:!0,attribute:"base-url"})],ud.prototype,"baseUrl",void 0),dd([he({type:Number,reflect:!0,useDefault:!0})],ud.prototype,"pages",void 0),dd([he({type:Number,reflect:!0,attribute:"current-page",useDefault:!0})],ud.prototype,"currentPageNumber",void 0),dd([he({type:Number,reflect:!0,attribute:"visible-pages",useDefault:!0})],ud.prototype,"visiblePages",void 0),customElements.get("w-pagination")||customElements.define("w-pagination",ud);const pd=JSON.parse('{"pill.aria.openFilter":["Åbn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}'),bd=JSON.parse('{"pill.aria.openFilter":["Open filter"],"pill.aria.removeFilter":["Remove filter ",["label"]]}'),gd=JSON.parse('{"pill.aria.openFilter":["Avaa suodatin"],"pill.aria.removeFilter":["Tyhjennä suodatin ",["label"]]}'),md=JSON.parse('{"pill.aria.openFilter":["Åpne filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}'),vd=JSON.parse('{"pill.aria.openFilter":["Öppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}'),fd=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-color-pill-suggestion-background\\]{background-color:var(--w-color-pill-suggestion-background)}.hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover{background-color:var(--w-color-pill-suggestion-background-hover)}.active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active{background-color:var(--w-color-pill-suggestion-background-active)}.rounded{border-radius:4px}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.hover\\:s-bg-primary-hover:hover{background-color:var(--w-s-color-background-primary-hover)}.active\\:s-bg-primary-active:active{background-color:var(--w-s-color-background-primary-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.h-16{height:1.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.pl-12{padding-left:1.2rem}.pl-4{padding-left:.4rem}.pr-12{padding-right:1.2rem}.pr-2{padding-right:.2rem}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}");var wd=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const yd="flex items-center",xd="inline-flex items-center focusable text-xs transition-all",kd="bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold",_d="s-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted",$d="pl-12 py-8 rounded-l-full",Sd="pr-12 rounded-r-full",Ed="pr-2",Cd="pr-12 pl-4 py-8 rounded-r-full",Od="h-16",zd="sr-only";class Ad extends se{static#e=this.styles=[Pe,fd];constructor(){super(),this.canClose=!1,this.suggestion=!1,yt(bd,md,gd,pd,vd),this.canClose=!1,this.suggestion=!1,this.openFilterSrText=pt._({id:"pill.aria.openFilter",message:"Open filter",comment:"Fallback screen reader message for open filter"}),this.removeFilterSrText=pt._({id:"pill.aria.removeFilter",message:"Remove filter {label}",comment:"Fallback screen reader message for removal of the filter"})}get _labelClasses(){return Ce([xd,$d,this.suggestion?kd:_d,this.canClose?Ed:Sd])}get _closeClasses(){return Ce([xd,Cd,this.suggestion?kd:_d])}_onClick(){this.dispatchEvent(new CustomEvent("w-pill-click",{bubbles:!0,composed:!0}))}_onClose(){this.dispatchEvent(new CustomEvent("w-pill-close",{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.openSrLabel&&(this.openAriaLabel=this.openSrLabel),this.closeSrLabel&&(this.closeAriaLabel=this.closeSrLabel)}render(){return B`<div class="${yd}"><button type="button" class="${this._labelClasses}" @click="${this._onClick}"><span class="${zd}">${this.openAriaLabel?this.openAriaLabel:this.openFilterSrText}</span><slot></slot></button> ${this.canClose?B`<button type="button" class="${this._closeClasses}" @click="${this._onClose}"><span class="${zd}">${this.closeAriaLabel?this.closeAriaLabel:this.removeFilterSrText}</span><w-icon name="Close" size="small" locale="${wt()}" class="${Od}" class="flex"></w-icon></button>`:null}</div>`}}wd([he({attribute:"can-close",type:Boolean})],Ad.prototype,"canClose",void 0),wd([he({attribute:"suggestion",type:Boolean})],Ad.prototype,"suggestion",void 0),wd([he({attribute:"open-sr-label",type:String})],Ad.prototype,"openSrLabel",void 0),wd([he({attribute:"open-aria-label",type:String})],Ad.prototype,"openAriaLabel",void 0),wd([he({attribute:"close-sr-label",type:String})],Ad.prototype,"closeSrLabel",void 0),wd([he({attribute:"close-aria-label",type:String})],Ad.prototype,"closeAriaLabel",void 0),customElements.get("w-pill")||customElements.define("w-pill",Ad);const Dd=a`:host{box-sizing:border-box!important}:host *,:host :before,:host :after{box-sizing:inherit!important}`,Pd=a`:host{align-items:center;gap:var(--_gap);--_gap:var(--w-c-radio-gap,8px);--_size:var(--w-c-radio-size,2rem);--_radius:var(--w-c-radio-radius,50%);--_border-width:var(--w-c-radio-border-width,1px);--_checked-border-width:var(--w-c-radio-checked-border-width,.6rem);--_bg:var(--w-c-radio-bg,var(--w-s-color-background));--_border-color:var(--w-c-radio-border-color,var(--w-s-color-border-strong));--_border-color-checked:var(--w-c-radio-border-color-checked,var(--w-s-color-border-selected));--_border-color-invalid:var(--w-c-radio-border-color-invalid,var(--w-s-color-border-negative));--_outline-width:var(--w-c-radio-outline-width,2px);--_outline-color:var(--w-c-radio-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-radio-outline-offset,var(--w-outline-offset,1px));--_border-color-disabled:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--_bg-disabled:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--_label-font-size:var(--w-c-radio-label-font-size,var(--w-font-size-m));--_label-line-height:var(--w-c-radio-label-line-height,var(--w-line-height-m));--_label-color:var(--w-c-radio-label-color,currentColor);--_label-color-disabled:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--_cursor:var(--w-c-radio-cursor,pointer);--_cursor-disabled:var(--w-c-radio-cursor-disabled,not-allowed);--_transition:var(--w-c-radio-transition,border-color .15s cubic-bezier(.4, 0, .2, 1), border-width .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1));display:inline-flex}:host([disabled]),:host([disabled-ui]){--w-c-radio-border-color:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-bg:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--w-c-radio-border-color-checked:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-label-color:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--w-c-radio-cursor:var(--w-c-radio-cursor-disabled,not-allowed)}.wrapper{align-items:center;gap:var(--_gap);display:inline-flex}[part=control]{-webkit-appearance:none;appearance:none;width:var(--_size);height:var(--_size);border-style:solid;border-width:var(--_border-width);border-color:var(--_border-color);border-radius:var(--_radius);background-color:var(--_bg);cursor:var(--_cursor);transition:var(--_transition);flex-shrink:0;margin:0}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio][checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{border-color:var(--_border-color-checked);border-width:var(--_checked-border-width)}:host([invalid]) [part=control]{border-color:var(--_border-color-invalid)}:host(:focus-visible){outline:none}:host(:focus-visible) [part=control]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}:host([disabled]) [part=control],:host([disabled-ui]) [part=control],:host([role=radio]:state(disabled)) [part=control]{border-color:var(--_border-color-disabled);background-color:var(--_bg-disabled);cursor:var(--_cursor-disabled)}:host([disabled]) [part=label],:host([disabled-ui]) [part=label]{color:var(--_label-color-disabled);cursor:var(--_cursor-disabled)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control]{border-color:var(--_border-color-disabled)}[part=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);color:var(--_label-color);user-select:none;cursor:var(--_cursor)}@media (prefers-reduced-motion:reduce){:host{--w-c-radio-transition:none}}@media (forced-colors:active){:host{--w-c-radio-bg:Canvas;--w-c-radio-border-color:ButtonText;--w-c-radio-border-color-checked:Highlight;--w-c-radio-outline-color:Highlight;--w-c-radio-bg-disabled:Canvas;--w-c-radio-border-color-disabled:GrayText;--w-c-radio-label-color:CanvasText;--w-c-radio-label-color-disabled:GrayText}[part=control]{forced-color-adjust:none}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{background-color:var(--_border-color-checked);border-color:var(--_border-color-checked)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control],:host([role=radio]:state(disabled):state(checked)) [part=control]{background-color:var(--_border-color-disabled);border-color:var(--_border-color-disabled)}}`;var Md=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class Td extends(Ae(se)){static#e=this.styles=[Dd,Pe,Pd];static#o=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};get tabIndex(){return this._internalTabIndex}set tabIndex(e){this._groupTabIndex=e}#n;#i;#a;constructor(){super(),this.value=null,this.checked=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.#n=!1,this.#i=!1,this.#a=!1,this.handleClick=()=>{this.isInGroup()||this.disabled||(this.#a=!0,this.checked||(this.checked=!0,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})))},this.handleInvalid=()=>{this.#a=!0,this.updateValidity()},this.handleKeyDown=e=>{if(!this.isInGroup()&&!this.disabled&&!e.defaultPrevented){if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)){const t=this.getStandaloneNamedRadios().filter(e=>!e.disabled);if(t.length<=1)return;e.preventDefault();const r=t.find(e=>e.checked)??t.find(e=>e===this)??t[0],o="ArrowUp"===e.key||"ArrowLeft"===e.key?-1:1,n=t.indexOf(r),i=t[(n+o+t.length)%t.length];return i.#a=!0,i.checked||(i.checked=!0,i.updateComplete.then(()=>{i.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})),void i.focus()}" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||("Enter"===e.key&&this.internals.form?this.internals.form.requestSubmit():(e.preventDefault(),this.click()))}},this.addEventListener("click",this.handleClick),this.addEventListener("invalid",this.handleInvalid),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.value=this.getAttribute("value")??"on",this.#n=this.hasAttribute("checked"),this.checked=this.#n,this.internals.role="radio",this.syncAriaDisabled(),this.syncFormValue(),this.updateValidity()}syncAriaDisabled(){this.internals.ariaDisabled=this.disabled?"true":"false"}syncAriaChecked(){this.internals.ariaChecked=this.checked?"true":"false"}willUpdate(e){this.shouldSyncFormState(e)&&(this.syncFormValue(),this.updateValidity())}updated(e){super.updated(e),e.has("checked")&&(this.syncAriaChecked(),this.checked&&!this.isInGroup()&&(this.uncheckOtherRadios(),this.syncStandaloneTabOrder())),e.has("disabled")&&(this.syncAriaDisabled(),this.isInGroup()||this.syncStandaloneTabOrder()),e.has("invalid")&&(this.internals.ariaInvalid=this.invalid?"true":null),e.has("name")&&this.checked&&!this.isInGroup()&&this.uncheckOtherRadios()}resetFormControl(){this.checked=this.#n,this.syncFormValue(),this.updateValidity()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.#a=!0,this.updateValidity(),this.internals.checkValidity()}isInGroup(){return Boolean(this.closest("w-radio-group"))}getRadioScope(){return this.internals.form??this.closest("form")??document}getStandaloneNamedRadios(){if(!this.name)return[this];const e=this.getRadioScope();return Array.from(e.querySelectorAll(`w-radio[name="${this.name}"]`)).filter(e=>!e.closest("w-radio-group"))}syncStandaloneTabOrder(){const e=this.getStandaloneNamedRadios(),t=e.filter(e=>!e.disabled),r=t.find(e=>e.checked)??t[0]??null;e.forEach(e=>{e._standaloneTabIndex=e===r?0:-1})}get _internalTabIndex(){return this.disabled?-1:void 0!==this._groupTabIndex?this._groupTabIndex:void 0!==this._standaloneTabIndex?this._standaloneTabIndex:0}firstUpdated(){this.isInGroup()||this.syncStandaloneTabOrder()}uncheckOtherRadios(){if(!this.name)return;const e=this.getRadioScope();Array.from(e.querySelectorAll(`w-radio[name="${this.name}"]`)).forEach(e=>{e!==this&&(e.closest("w-radio-group")||e.checked&&(e.checked=!1))})}updateValidity(){if(this.disabled||this.isInGroup())return void this.internals.setValidity({});const e=this.required&&!this.checked,t=this.invalid&&!this.#i;if(e)return this.#i=!0,this.invalid=this.#a,void this.internals.setValidity({valueMissing:!0},this.internals.validationMessage||" ");this.#i&&(this.invalid=!1,this.#i=!1),t?this.internals.setValidity({customError:!0},this.internals.validationMessage||" "):this.internals.setValidity({})}syncFormValue(){this.disabled?this.setValue(null):this.setValue(this.checked?this.value:null)}shouldSyncFormState(e){return e.has("checked")||e.has("value")||e.has("disabled")||e.has("required")||e.has("invalid")}render(){return B`<div class="wrapper" tabindex="${this._internalTabIndex}"><div part="control" class="control"></div><slot part="label" class="label"></slot></div>`}}Md([he({reflect:!0})],Td.prototype,"name",void 0),Md([he({reflect:!0})],Td.prototype,"value",void 0),Md([he({type:Boolean,reflect:!0})],Td.prototype,"checked",void 0),Md([he({type:Boolean,reflect:!0})],Td.prototype,"disabled",void 0),Md([he({type:Boolean,reflect:!0})],Td.prototype,"required",void 0),Md([he({type:Boolean,reflect:!0})],Td.prototype,"invalid",void 0),Md([he({attribute:!1})],Td.prototype,"_groupTabIndex",void 0),Md([he({attribute:!1})],Td.prototype,"_standaloneTabIndex",void 0);const Rd=Td;customElements.get("w-radio")||customElements.define("w-radio",Td);const jd=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Vælg en mulighed."]}'),Nd=JSON.parse('{"radio-group.label.optional":["Optional"],"radio-group.validation.required":["Please select an option."]}'),Id=JSON.parse('{"radio-group.label.optional":["Valinnainen"],"radio-group.validation.required":["Valitse vaihtoehto."]}'),Vd=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Velg et alternativ."]}'),Fd=JSON.parse('{"radio-group.label.optional":["Valfritt"],"radio-group.validation.required":["Välj ett alternativ."]}'),Ld=a`:host{--_label-font-size:var(--w-c-radio-group-label-font-size,var(--w-font-size-s));--_label-line-height:var(--w-c-radio-group-label-line-height,var(--w-line-height-s));--_label-font-weight:var(--w-c-radio-group-label-font-weight,700);--_label-color:var(--w-c-radio-group-label-color,var(--w-s-color-text));--_label-color-disabled:var(--w-c-radio-group-label-color-disabled,var(--w-s-color-text-disabled));--_label-padding-bottom:var(--w-c-radio-group-label-padding-bottom,16px);--_optional-font-weight:var(--w-c-radio-group-optional-font-weight,400);--_optional-color:var(--w-c-radio-group-optional-color,var(--w-s-color-text-subtle));--_optional-margin-inline-start:var(--w-c-radio-group-optional-margin-inline-start,.5rem);--_radios-gap:var(--w-c-radio-group-gap,16px);--_help-text-margin-block-start:var(--w-c-radio-group-help-text-margin-block-start,16px);--_help-text-font-size:var(--w-c-radio-group-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-radio-group-help-text-line-height,var(--w-line-height-xs));--_help-text-color:var(--w-c-radio-group-help-text-color,var(--w-s-color-text-subtle));--_help-text-color-disabled:var(--w-c-radio-group-help-text-color-disabled,var(--w-s-color-text-disabled));--_help-text-color-error:var(--w-c-radio-group-help-text-color-error,var(--w-s-color-text-negative));display:block}[part=form-control]{border:0;min-inline-size:0;margin:0;padding:0;position:relative}[part=form-control-label]{cursor:pointer;font-size:var(--_label-font-size);line-height:var(--_label-line-height);font-weight:var(--_label-font-weight);color:var(--_label-color);padding-bottom:var(--_label-padding-bottom);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale;display:block}:host([disabled]) [part=form-control-label]{cursor:default;color:var(--_label-color-disabled)}:host([required]) [part=form-control-label]:after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset)}.optional{font-weight:var(--_optional-font-weight);color:var(--_optional-color);margin-inline-start:var(--_optional-margin-inline-start)}[part~=form-control-input]{gap:var(--_radios-gap);flex-flow:column wrap;display:flex}[part~=help-text]{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);color:var(--_help-text-color);margin-block-start:var(--_help-text-margin-block-start)}:host([disabled]) [part~=help-text]{color:var(--_help-text-color-disabled)}:host([data-show-error]) [part~=help-text]{color:var(--_help-text-color-error)}`;var qd=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};yt(Nd,Vd,Id,jd,Fd);class Bd extends(Ae(se)){static#e=this.styles=[Dd,Ld];static#o=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this.hasInteracted=!1,this.hasWarnedMissingName=!1,this.autoTabIndex=!1,this.label="",this.helpText="",this.optional=!1,this.invalid=!1,this.name=null,this.disabled=!1,this.required=!1,this.defaultCheckedValue=void 0,this.slottedHelpText=null,this.nameManagedRadios=new WeakSet,this.disabledManagedRadios=new WeakSet,this.handleRadioClick=e=>{const t=e.target.closest("w-radio");if(!t||t.disabled||this.disabled)return;const r=this.getCheckedValue(),o=this.getAllRadios();this.selectSingleRadio(t,o);this.getCheckedValue()!==r&&this.updateComplete.then(this.emitSelectionChange)},this.handleInvalid=e=>{e.preventDefault(),this.hasInteracted=!0,this.updateValidity()},this.handleHelpTextSlotChange=()=>{this.syncSlottedHelpText(),this.requestUpdate()},this.handleI18nChange=()=>{this.requestUpdate()},this.emitSelectionChange=()=>{this.hasInteracted=!0,this.syncFormValue(),this.updateValidity(),this.requestUpdate(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this.captureDefaultSelection=()=>{void 0===this.defaultCheckedValue&&(this.defaultCheckedValue=this.getCheckedValue())},this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleRadioClick),this.addEventListener("invalid",this.handleInvalid)}get validationTarget(){return this.querySelector(":is(w-radio):not([disabled])")??void 0}connectedCallback(){super.connectedCallback(),this.syncSlottedHelpText(),this.syncFormValue(),this.updateValidity(),this.unsubscribeI18n=pt.on("change",this.handleI18nChange),this.warnIfMissingName(),this.updateComplete.then(this.captureDefaultSelection)}disconnectedCallback(){this.unsubscribeI18n?.(),this.unsubscribeI18n=void 0,super.disconnectedCallback()}async updated(e){(e.has("disabled")||e.has("name")||e.has("required")||e.has("invalid")||e.has("helpText"))&&(this.syncFormValue(),this.updateValidity(),this.syncRadioElements(),this.syncFormValue(),this.updateValidity())}resetFormControl(){const e=this.defaultCheckedValue??null;this.getAllRadios().forEach(t=>{t.checked=!!e&&t.value===e}),this.syncRadioElements(),this.syncFormValue(),this.updateValidity()}getAllRadios(){return[...this.querySelectorAll("w-radio")]}getCheckedValue(){const e=this.getAllRadios().find(e=>e.checked);return e?.value??null}getEnabledRadios(e){return void 0===e&&(e=this.getAllRadios()),e.filter(e=>!e.disabled)}selectSingleRadio(e,t){void 0===t&&(t=this.getAllRadios()),t.forEach(t=>{const r=t===e;t.checked=r,t._groupTabIndex=r?0:-1})}handleLabelClick(){this.focus()}async syncRadioElements(){const e=this.getAllRadios();e.forEach((t,r)=>{t.toggleAttribute("data-w-radio-first",0===r),t.toggleAttribute("data-w-radio-inner",0!==r&&r!==e.length-1),t.toggleAttribute("data-w-radio-last",r===e.length-1),this.syncRadioDisabledState(t),this.name?t.getAttribute("name")&&!this.nameManagedRadios.has(t)||(t.setAttribute("name",this.name),this.nameManagedRadios.add(t)):this.nameManagedRadios.has(t)&&(t.removeAttribute("name"),this.nameManagedRadios.delete(t))}),await Promise.all(e.map(async e=>e.updateComplete)),this.normalizeCheckedRadios(e),this.syncTabOrder(e)}syncRadioDisabledState(e){this.disabled?e.disabled||(e.disabled=!0,this.disabledManagedRadios.add(e)):this.disabledManagedRadios.has(e)&&(e.disabled=!1,this.disabledManagedRadios.delete(e))}syncTabOrder(e){if(this.disabled)return void e.forEach(e=>e._groupTabIndex=-1);const t=this.getEnabledRadios(e),r=t.find(e=>e.checked);t.length>0&&(r?t.forEach(e=>e._groupTabIndex=e.checked?0:-1):t.forEach((e,t)=>e._groupTabIndex=0===t?0:-1)),e.filter(e=>e.disabled).forEach(e=>e._groupTabIndex=-1)}handleKeyDown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key)||this.disabled)return;const t=this.getAllRadios(),r=this.getEnabledRadios(t);if(r.length<=0)return;e.preventDefault();const o=this.getCheckedValue(),n=r.find(e=>e.checked)??r[0],i=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let a=r.indexOf(n)+i;a<0&&(a=r.length-1),a>=r.length&&(a=0),this.selectSingleRadio(r[a],t),r[a].focus();this.getCheckedValue()!==o&&this.updateComplete.then(this.emitSelectionChange)}focus(e){if(this.disabled)return;const t=this.getAllRadios(),r=t.find(e=>e.checked),o=t.find(e=>!e.disabled),n=r||o;n&&n.focus(e)}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.hasInteracted=!0,this.updateValidity(),this.internals.checkValidity()}hasSlottedContent(e){if(this.querySelector(`[slot="${e}"]`))return!0;const t=this.shadowRoot?.querySelector(`slot[name="${e}"]`);return!!t&&t.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent?.trim()))}syncFormValue(){this.setValue(null)}syncSlottedHelpText(){const e=this.querySelector('[slot="help-text"]');this.slottedHelpText=e?.textContent?.trim()||null}updateValidity(){this.warnIfMissingName();const e=this.required&&!this.getCheckedValue(),t=e&&this.hasInteracted,r=this.invalid||this.hasAttribute("invalid"),o=r||t;return this.toggleAttribute("data-show-error",o),this.disabled?(this.internals.setValidity({}),this.syncChildInvalid(!1),void this.syncHostTabIndex(!1)):(this.syncHostTabIndex(o),e?(this.setValidityState({valueMissing:!0}),void this.syncChildInvalid(o)):r?(this.setValidityState({customError:!0}),void this.syncChildInvalid(!0)):(this.internals.setValidity({}),void this.syncChildInvalid(!1)))}normalizeCheckedRadios(e){const t=e.find(e=>e.checked);t&&e.forEach(e=>{e!==t&&(e.checked=!1)})}syncChildInvalid(e){this.getAllRadios().forEach(t=>{t.invalid=e})}setValidityState(e){const t=this.validationTarget;this.internals.setValidity(e," ",t??void 0)}syncHostTabIndex(e){if(!this.hasAttribute("tabindex")||this.autoTabIndex)return e?(this.setAttribute("tabindex","0"),void(this.autoTabIndex=!0)):void(this.autoTabIndex&&(this.removeAttribute("tabindex"),this.autoTabIndex=!1))}warnIfMissingName(){this.hasWarnedMissingName||this.internals.form&&(this.name&&this.name.trim().length>0||(console.warn('w-radio-group: "name" is required for form submission.'),this.hasWarnedMissingName=!0))}render(){const e=this.hasSlottedContent("label"),t=this.hasSlottedContent("help-text"),r=!!this.label||!!e,o=!!this.helpText||!!t,n=this.required&&!this.getCheckedValue()&&this.hasInteracted,i=this.invalid||this.hasAttribute("invalid"),a=i||n,s=a?i&&this.helpText?this.helpText:pt._({id:"radio-group.validation.required",message:"Please select an option.",comment:"Shown when required radio group has no selections"}):this.helpText,l=a||o,d=r?"label":void 0,c=l?"help-text":void 0,h=this.slottedHelpText||void 0;return B`<fieldset part="form-control" role="radiogroup" aria-labelledby="${De(d)}" aria-describedby="${De(c)}" aria-errormessage="error-message" aria-invalid="${a?"true":void 0}">${r?B`<label part="form-control-label" id="label" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot>${this.optional?B`<span class="optional">${pt._({id:"radio-group.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:null}</label>`:null}<slot part="form-control-input" @slotchange="${this.syncRadioElements}"></slot>${l?B`<div id="help-text" part="help-text" aria-label="${De(h)}"><slot name="help-text" @slotchange="${this.handleHelpTextSlotChange}">${s}</slot></div>`:null}</fieldset>`}}qd([ue()],Bd.prototype,"hasInteracted",void 0),qd([he()],Bd.prototype,"label",void 0),qd([he({attribute:"help-text"})],Bd.prototype,"helpText",void 0),qd([he({type:Boolean,reflect:!0})],Bd.prototype,"optional",void 0),qd([he({type:Boolean,reflect:!0})],Bd.prototype,"invalid",void 0),qd([he({reflect:!0})],Bd.prototype,"name",void 0),qd([he({type:Boolean,reflect:!0})],Bd.prototype,"disabled",void 0),qd([he({type:Boolean,reflect:!0})],Bd.prototype,"required",void 0);const Wd=Bd;
|
|
2529
89
|
/**
|
|
2530
90
|
* @license
|
|
2531
91
|
* Copyright 2021 Google LLC
|
|
2532
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2533
93
|
*/
|
|
2534
|
-
function Bd(e,t,r){return e?t(e):r?.(e)}customElements.get("w-radio-group")||customElements.define("w-radio-group",qd);const Hd=JSON.parse('{"select.label.optional":["(valgfrit)"]}'),Yd=JSON.parse('{"select.label.optional":["(optional)"]}'),Xd=JSON.parse('{"select.label.optional":["(vapaaehtoinen)"]}'),Ud=JSON.parse('{"select.label.optional":["(valgfritt)"]}'),Jd=JSON.parse('{"select.label.optional":["(valfritt)"]}'),Kd=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.opacity-25{opacity:.25}.block,.before\\:block:before{display:block}.before\\:hidden:before{display:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.bottom-0{bottom:0}.right-0{right:0}.before\\:bottom-0:before{bottom:0}.before\\:right-0:before{right:0}.top-\\[30\\%\\]{top:30%}.absolute{position:absolute}.relative{position:relative}.static{position:static}.before\\:absolute:before{position:absolute}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.s-icon{color:var(--w-s-color-icon)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-disabled:hover{border-color:var(--w-s-color-border-disabled)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\:s-border-disabled:active{border-color:var(--w-s-color-border-disabled)}.h-full{height:100%}.w-32{width:3.2rem}.w-full{width:100%}.before\\:h-full:before{height:100%}.before\\:w-32:before{width:3.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-32{padding-right:3.2rem}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none,.before\\:pointer-events-none:before{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;var Zd=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Qd="block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current",Gd="s-text s-bg pl-8 border-1 s-border-strong hover:s-border-strong-hover active:s-border-active",ec="s-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none",tc="s-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!",rc="s-text bg-transparent pl-0 border-0 pointer-events-none before:hidden",oc="relative",ic="relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",ac="block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer",nc="opacity-25",sc="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",lc="pl-8 font-normal text-s s-text-subtle",dc="text-xs mt-4 block",cc="s-text-subtle",hc="s-text-negative";class uc extends(ze(ne)){#t;#Z;#P;static#e=this.styles=[De,Kd,a`select:has(option[value=""][selected]),select:has(option[value=""]):not(:has(option[selected])){color:var(--w-s-color-text-placeholder)}`];constructor(){super(),this.autoFocus=!1,this.autofocus=!1,this.invalid=!1,this.always=!1,this.optional=!1,this.disabled=!1,this.readOnly=!1,this.readonly=!1,this.#t=null,this.#Z=()=>this.#Q(),this._setValue=e=>{this.value=e,this.setValue(e)},wt(Yd,Ud,Xd,Hd,Jd)}resetFormControl(){this.value=this.#t}#T(){return Array.from(this.children).filter(e=>"option"===e.tagName.toLowerCase()||"w-option"===e.tagName.toLowerCase())}#G(){return this.shadowRoot?.querySelector("select")}#ee(){return this.#T().some(e=>e.hasAttribute("selected"))}#te(e){const t=this.#G();if(!t)return;let r=!1;for(const o of Array.from(t.options)){const t=!r&&o.value===e;o.selected=t,o.toggleAttribute("selected",t),t&&(r=!0)}}#Q(e){let{allowDefaultFirstOption:t=!1}=void 0===e?{}:e;const r=this.#G();if(!r)return;const o=r.value;if(!o||o===this.value)return;!t&&!this.value&&!this.#ee()&&0===r.selectedIndex||(this._setValue(o),this.#te(o))}#re(e){let{syncValueFromSelected:t=!1}=void 0===e?{}:e;let r;const o=this.#T().map(e=>{const o=e.getAttribute("value")??"",i=e.textContent??"",a=e.hasAttribute("selected"),n=e.hasAttribute("disabled");return t&&void 0===r&&a&&(r=o),q`<option value="${o}" ?selected="${a}" ?disabled="${n}">${i}</option>`});this._options=o,t&&void 0!==r&&r!==this.value&&this._setValue(r)}connectedCallback(){super.connectedCallback(),this.#t=this.value,(this.autofocus||this.autoFocus)&&this.shadowRoot.querySelector("select").focus(),this.#re({syncValueFromSelected:!0}),this.ownerDocument?.defaultView?.addEventListener("pageshow",this.#Z),this.#P=new MutationObserver(()=>{this.#re({syncValueFromSelected:!0})}),this.#P.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["selected","disabled","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.ownerDocument?.defaultView?.removeEventListener("pageshow",this.#Z),this.#P?.disconnect()}firstUpdated(){this.value&&this.#te(this.value),this.#Q({allowDefaultFirstOption:!1})}formStateRestoreCallback(e,t){if("string"==typeof e&&e)return this._setValue(e),void this.#te(e);this.#Q({allowDefaultFirstOption:!0})}willUpdate(e){e.has("value")&&this.setValue(this.value)}updated(e){if(e.has("value")){const e=this.#G();e&&e.value!==this.value&&(e.value=this.value??""),this.#te(this.value??"")}}handleKeyDown(e){!this.readonly&&!this.readOnly||" "!==e.key&&"ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}get#oe(){return Ee([Qd,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Gd,this.invalid&&tc,this.disabled&&ec,(this.readonly||this.readOnly)&&rc])}get#ie(){return Ee([dc,this.invalid?hc:cc])}get#Y(){return Ee([ac,this.disabled&&nc])}get#ae(){return"select_id"}get#ne(){return this.helpText||this.hint?`${this.#ae}__hint`:void 0}onChange(e){const t=e.currentTarget.value;e.stopPropagation(),this._setValue(t),this.#te(t),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}render(){return q`<div class="${oc}">${Bd(this.label,()=>q`<label class="${sc}" for="${this.#ae}">${this.label} ${Bd(this.optional,()=>q`<span class="${lc}">${ut._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span>`)}</label>`)}<div class="${ic}"><select class="${this.#oe}" id="${this.#ae}" ?disabled="${this.disabled}" aria-readonly="${this.readonly}" aria-describedby="${Ae(this.#ne)}" aria-invalid="${Ae(this.invalid)}" aria-errormessage="${Ae(this.invalid&&this.#ne)}" @keydown="${this.handleKeyDown}" @change="${this.onChange}">${this._options}</select><div class="${this.#Y}"><w-icon name="ChevronDown" size="small" locale="${ft()}" class="flex"></w-icon></div></div>${Bd(this.helpText||this.always||this.invalid,()=>q`<div id="${this.#ne}" class="${this.#ie}">${this.helpText||this.hint}</div>`)}</div>`}}Zd([ce({attribute:"auto-focus",type:Boolean,reflect:!0})],uc.prototype,"autoFocus",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"autofocus",void 0),Zd([ce({attribute:"help-text",reflect:!0})],uc.prototype,"helpText",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"invalid",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"always",void 0),Zd([ce({reflect:!0})],uc.prototype,"hint",void 0),Zd([ce({reflect:!0})],uc.prototype,"label",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"optional",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"disabled",void 0),Zd([ce({attribute:"read-only",type:Boolean,reflect:!0})],uc.prototype,"readOnly",void 0),Zd([ce({type:Boolean,reflect:!0})],uc.prototype,"readonly",void 0),Zd([ce({attribute:!1,state:!0})],uc.prototype,"_options",void 0),Zd([ce({reflect:!0})],uc.prototype,"name",void 0),Zd([ce({reflect:!0})],uc.prototype,"value",void 0),customElements.get("w-select")||customElements.define("w-select",uc);const pc=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`,bc=a`.w-slider-thumb{pointer-events:none;grid-template-columns:1fr 24px 1fr;grid-template-areas:"slider slider slider""frommarker.tomarker""fromtextfield.totextfield";display:grid;position:relative}.w-slider-thumb__range{appearance:none;pointer-events:none;background-color:#0000;grid-area:slider;height:44px;margin-left:0}.w-slider-thumb__range::-webkit-slider-runnable-track{box-shadow:none;color:var(--w-s-color-text);height:var(--w-slider-track-height)}.w-slider-thumb__range::-webkit-slider-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;border-radius:50%}.w-slider-thumb__range[disabled]::-webkit-slider-thumb{cursor:auto}.w-slider-thumb__range::-moz-range-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;box-shadow:none;border-color:#0000;border-radius:50%}.w-slider-thumb__range[disabled]::-moz-range-thumb{cursor:auto}.w-slider-thumb__range:active::-webkit-slider-thumb,.w-slider-thumb__range:hover::-webkit-slider-thumb{background:var(--w-slider-thumb-background);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus,.w-slider-thumb__range:focus-visible{outline:none}.w-slider-thumb__range:focus-visible::-webkit-slider-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__range:active::-moz-range-thumb,.w-slider-thumb__range:hover::-moz-range-thumb{background:var(--w-s-color-background-primary-hover);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus-visible::-moz-range-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__tooltip-target{pointer-events:none;position-anchor:--thumb;position-area:center;border:2px solid #0000;border-radius:20px;width:8px;height:8px;display:block;position:absolute}.w-slider-thumb__from-marker,.w-slider-thumb__to-marker{color:var(--w-s-color-text-subtle);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);margin-inline:2px}.w-slider-thumb__from-marker{grid-area:frommarker}.w-slider-thumb__to-marker{text-align:right;grid-area:tomarker}.w-slider-thumb__textfield{pointer-events:auto;grid-area:3/1/4/3;margin-top:12px}:host([slot=from]) .w-slider-thumb__textfield{grid-column:1/2}:host([slot=from]) .w-slider-thumb__range{margin-left:var(--w-slider-thumb-size,28px)}:host([slot=to]) .w-slider-thumb__range{margin-right:var(--w-slider-thumb-size,28px)}:host([slot=from]) .w-slider-thumb__tooltip-target{transform:translateX(calc(-1 * var(--transform-offset,0px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__textfield{grid-area:3/3/4/4}:host([slot=to]) .w-slider-thumb__tooltip-target{transform:translateX(calc(var(--transform-offset,0px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}w-textfield{--w-textfield-placeholder-color-text:var(--w-s-color-text)}`;var gc=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class mc extends(ze(ne)){constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.openEnded=!1,this.suffix="",this._showTooltip=!1,this._inputHasFocus=!1,this._hiddenTextfield=!1,this.#t=null,this.anchorPositioningStyleElement=null}static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[De,pc,bc];#t;resetFormControl(){this.value=this.#t,this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}#se(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()}#le(){this._showTooltip=!1}#de(){this.range&&(""===this.value?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))}#ce(e){this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invalid:e,slot:this.slot}}))}async updateFieldAfterValidation(){const e=this.shadowRoot.querySelector("w-textfield");await this.#he(e.value,!0)}async#he(e,t){const r=this.suffix??"";let o=Number.parseInt(e);if(this.openEnded&&!t&&this.step){if(!("to"===this.slot&&o>=Number(this.max)-1||"from"===this.slot&&o<=Number(this.min)+1)){const t=1/this.step;o=Math.round(o*t)/t,e=o.toString()}}const i=Number.parseInt(this.max),a=Number.parseInt(this.min);if(!this.openEnded&&(o>i||o<a))return this.#ce(ut.t({id:"slider.error.out_of_bounds",message:"Value must be between {min} and {max}",values:{min:`${this.min} ${r}`.trim(),max:`${this.max} ${r}`.trim()}})),{shouldCancel:!0};""===e&&this.required&&this.#ce(ut.t({id:"slider.error.required",message:"This field is required"})),this.value=e;const n=e===this.max||e===this.min;let s=!1;if(this.slot){const r=this.parentElement.querySelector('w-slider-thumb[slot="to"]'),l=this.parentElement.querySelector('w-slider-thumb[slot="from"]'),d=r.textfield.value||this.max,c=l.textfield.value||this.min,h=Number.parseInt(d),u=Number.parseInt(c),p=ut.t({id:"slider.error.overlap",message:"The maximum value cannot be less than the minimum"});if("from"===this.slot){const r=this.openEnded&&h>i?h:Math.min(h,this.openEnded?i-1:i);o>r&&(s=!0,this.openEnded&&n?this.value=String(r):this.value=d,t&&(this.#ce(p),await this.updateComplete,this.textfield.value=e))}else{const r=this.openEnded&&u<a?u:Math.max(Number.parseInt(c),this.openEnded?a+1:a);o<r&&(s=!0,this.openEnded&&n?this.value=String(r):this.value=c,t&&(this.#ce(p),await this.updateComplete,this.textfield.value=e))}}return s?{shouldCancel:!0}:(this.#ce(""),this.range.value=Math.min(Math.max(Number(e),Number(this.min)),Number(this.max)).toString(),this.value=this.openEnded&&!t&&n?"":e,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})}async#V(e){const t="W-TEXTFIELD"===e.currentTarget.tagName;if(e instanceof CustomEvent)return;const r=e.currentTarget.value;return!(await this.#he(r,t)).shouldCancel||(e.preventDefault(),!1)}async#ue(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(!this.openEnded)return;if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;const t=Number(this.range.value),r=this.step||1;let o;o="ArrowLeft"===e.key?t-r:t+r,o=Math.min(Math.max(o,Number(this.min)),Number(this.max));(await this.#he(o.toString(),!1)).shouldCancel&&e.preventDefault()}async#pe(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(this.textfield.value)return;let t="";"from"===this.slot?"ArrowUp"===e.key?t=String(Number(this.min)+1)||"1":"ArrowDown"===e.key&&(t=String(Number(this.min))||"0"):"ArrowUp"===e.key?t=String(Number(this.max))||"100":"ArrowDown"===e.key&&(t=String(Number(this.max)-1)||"99"),t&&(e.preventDefault(),await this.#he(t,!0))}async connectedCallback(){if(super.connectedCallback(),this.#t=this.value,this.setValue(this.value),this.slot&&!this.ariaDescription&&("from"===this.slot?this.ariaDescription=ut.t({id:"slider.label.from",comment:"Accessible label for the 'from value' input field in a range slider",message:"From"}):"to"===this.slot&&(this.ariaDescription=ut.t({id:"slider.label.to",comment:"Accessible label for the 'to value' input field in a range slider",message:"To"}))),"anchorName"in document.documentElement.style)await this.updateComplete;else{const e=import.meta.url.substring(0,import.meta.url.lastIndexOf("/"));try{const[{default:t}]=await Promise.all([import(`${e}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepend(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent="\n /*\n * The polyfill can only anchor to ::before and ::after pseudo elements, not the pseudo element slider thumb.\n * We work around that by recreating a transparent version of the active range\n * so that we can position relative to that, without crossing the shadow root boundary.\n */\n .polyfill-range {\n align-self: center;\n background: transparent;\n height: var(--w-slider-track-active-height);\n position: absolute;\n padding-inline-start: var(--active-range-inline-start-padding, 0);\n padding-inline-end: var(--active-range-inline-end-padding, 0);\n top: var(--_range-top);\n left: 0;\n right: 0;\n grid-area: slider;\n }\n\n .polyfill-active-range {\n anchor-name: --polyfilled-thumb;\n\n box-sizing: content-box;\n background: transparent;\n height: var(--w-slider-track-active-height);\n\n border-start-start-radius: var(--active-range-border-radius, 0);\n border-end-start-radius: var(--active-range-border-radius, 0);\n\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n #target {\n position: absolute;\n top: anchor(--polyfilled-thumb top);\n right: anchor(--polyfilled-thumb right);\n margin-right: 12px;\n }\n\n :host([name='from']) .polyfill-active-range {\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n :host([name='from']) #target {\n left: anchor(--polyfilled-thumb left);\n margin-left: 38px;\n }\n ",await t({roots:[this.shadowRoot],elements:[this.anchorPositioningStyleElement]})}catch(e){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:e}))}}const e=window.navigator.userAgent;/WebKit/.test(e)&&!/Chrome/.test(e)&&this.tooltipTarget&&this.tooltipTarget.style.setProperty("--transform-offset","var(--w-slider-thumb-size, 28px)"),this.#de()}get boundaryValue(){return"from"===this.slot?this.min:this.max}get textFieldDisplayValue(){return this._inputHasFocus?""!==this.value?this.value:this.range?.value?Math.min(Math.max(Number(this.range.value),Number(this.min)+1),Number(this.max)-1).toString():"":this.value}get tooltipDisplayValue(){let e=0;return e=this.tooltipFormatter?this.tooltipFormatter(this.value,this.slot):this.valueFormatter?this.valueFormatter(this.value,this.slot):""===this.value?this.range?.value??this.boundaryValue:this.value||0,e}get ariaDescriptionText(){let e="";const t=this.ariaDescription||"",r=""===this.value;return this.openEnded&&r&&(e="from"===this.slot?ut.t({id:"slider.placeholder.from",message:"Min"}):ut.t({id:"slider.placeholder.to",message:"Max"})),e?`${e}, ${t}`:t}updated(e){if(e.has("openEnded")&&this.openEnded&&!this.placeholder&&("to"===this.slot||""===this.slot?this.placeholder=ut.t({id:"slider.placeholder.to",message:"Max",comment:"Max as in short for Maximum"}):"from"===this.slot&&(this.placeholder=ut.t({id:"slider.placeholder.from",message:"Min",comment:"Min as in short for Minimum"}))),e.has("value")){void 0===this.#t&&void 0!==this.value&&(this.#t=this.value),this.setValue(this.value),this.#de();const t=e.get("value");""===this.value&&t&&this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}}render(){const e=this.placeholder&&!this.value;return q`<div class="w-slider-thumb">${"anchorName"in document.documentElement.style?B:q`<div class="polyfill-range"><div class="polyfill-active-range"></div></div>`} <input id="range" aria-label="${this.ariaLabel}" aria-describedby="${Ae(this.ariaDescription?"aria-description":void 0)}" class="w-slider-thumb__range" type="range" .value="${this.value}" min="${this.min}" max="${this.max}" step="${Ae(!this.openEnded&&this.step?this.step:void 0)}" ?disabled="${this.disabled}" @mousedown="${this.#se}" @mouseup="${this.#le}" @touchstart="${this.#se}" @touchend="${this.#le}" @focus="${this.#se}" @blur="${this.#le}" @input="${this.#V}" @keydown="${this.#ue}"> ${"from"!==this.slot&&this.slot?B:q`<span class="sr-only">${ut.t({id:"slider.label.from",message:"From"})+" "+(this.labelFormatter?this.labelFormatter("from"):this.min)+", "+ut.t({id:"slider.label.to",message:"To"})+" "+(this.labelFormatter?this.labelFormatter("to"):this.max)}</span>`} <span aria-hidden="true" class="w-slider-thumb__from-marker">${this.labelFormatter?this.labelFormatter("from"):this.min} </span><span aria-hidden="true" class="w-slider-thumb__to-marker">${this.labelFormatter?this.labelFormatter("to"):this.max}</span><w-textfield aria-label="${this.ariaLabel}" aria-description="${Ae(this.ariaDescriptionText)}" class="${ye({"w-slider-thumb__textfield":!0,"sr-only":this._hiddenTextfield})}" type="number" tabindex="${this._hiddenTextfield?-1:B}" placeholder="${this.placeholder}" .value="${this.textFieldDisplayValue}" .formatter="${this.valueFormatter&&!e?e=>this.valueFormatter(e,this.slot):B}" min="${this.openEnded?B:this.min}" max="${this.openEnded?B:this.max}" step="${Ae(this.step)}" ?invalid="${Boolean(this.invalid)}" @input="${this.#V}" @keydown="${this.#pe}" ?disabled="${this.disabled}">${this.suffix?q`<w-affix slot="suffix" label="${this.suffix??""}"></w-affix>`:B}</w-textfield><w-attention tooltip placement="top" flip distance="24" .show="${this._showTooltip}"><output id="target" class="w-slider-thumb__tooltip-target" slot="target"></output> <span slot="message">${this.tooltipDisplayValue}${this.suffix?q` ${this.suffix??""}`:B}</span></w-attention><span class="sr-only" id="aria-description">${this.ariaDescriptionText}</span></div>`}}gc([ce({attribute:"aria-label"})],mc.prototype,"ariaLabel",void 0),gc([ce({attribute:"aria-description"})],mc.prototype,"ariaDescription",void 0),gc([ce({reflect:!0})],mc.prototype,"name",void 0),gc([ce({reflect:!0})],mc.prototype,"value",void 0),gc([ce({type:Boolean,reflect:!0})],mc.prototype,"disabled",void 0),gc([ce({type:Boolean,reflect:!0})],mc.prototype,"invalid",void 0),gc([ce({attribute:!1,reflect:!1})],mc.prototype,"openEnded",void 0),gc([ce({reflect:!0})],mc.prototype,"placeholder",void 0),gc([he()],mc.prototype,"markers",void 0),gc([he()],mc.prototype,"required",void 0),gc([he()],mc.prototype,"step",void 0),gc([he()],mc.prototype,"min",void 0),gc([he()],mc.prototype,"max",void 0),gc([he()],mc.prototype,"suffix",void 0),gc([ce({attribute:!1})],mc.prototype,"valueFormatter",void 0),gc([ce({attribute:!1})],mc.prototype,"tooltipFormatter",void 0),gc([ce({attribute:!1})],mc.prototype,"labelFormatter",void 0),gc([pe('input[type="range"]')],mc.prototype,"range",void 0),gc([pe(".w-slider-thumb__tooltip-target")],mc.prototype,"tooltipTarget",void 0),gc([pe("w-textfield")],mc.prototype,"textfield",void 0),gc([he()],mc.prototype,"_showTooltip",void 0),gc([he()],mc.prototype,"_inputHasFocus",void 0),gc([he()],mc.prototype,"_hiddenTextfield",void 0),customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",mc);const vc=JSON.parse('{"slider.error.out_of_bounds":["Værdien skal være mellem ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumværdien må ikke være mindre end minimumværdien"],"slider.error.required":["Dette felt er påkrævet"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),fc=JSON.parse('{"slider.error.out_of_bounds":["Value must be between ",["min"]," and ",["max"]],"slider.error.overlap":["The maximum value cannot be less than the minimum"],"slider.error.required":["This field is required"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),wc=JSON.parse('{"slider.error.out_of_bounds":["Arvon on oltava välillä ",["min"]," - ",["max"]],"slider.error.overlap":["Maksimiarvo ei voi olla pienempi kuin minimiarvo"],"slider.error.required":["Tämä kenttä on pakollinen"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),yc=JSON.parse('{"slider.error.out_of_bounds":["Verdien må være mellom ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumsverdien kan ikke være mindre enn minimumsverdien"],"slider.error.required":["Dette feltet er påkrevd"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),xc=JSON.parse('{"slider.error.out_of_bounds":["Värdet måste vara mellan ",["min"]," och ",["max"]],"slider.error.overlap":["Maxvärdet kan inte vara mindre än minimivärdet"],"slider.error.required":["Detta fält är obligatoriskt"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),kc=a`.w-slider{--w-slider-track-background:var(--w-s-color-background-disabled-subtle);--w-slider-track-active-background:var(--w-s-color-background-primary);--w-slider-track-height:4px;--w-slider-track-active-height:6px;--w-slider-thumb-background:var(--w-s-color-background-primary);--w-slider-thumb-background-hover:var(--w-s-color-background-primary-hover);--w-slider-thumb-size:28px;--w-slider-thumb-offset:calc(var(--w-slider-thumb-size) / 2);--w-slider-marker-color:var(--w-s-color-border);--_range-top:calc(var(--w-slider-thumb-size) / 2 + calc(var(--w-slider-track-active-height) - calc(var(--w-slider-track-height) / 2) + 1px));border:none;grid-template-columns:1fr;grid-template-areas:"label""description""slider""error";width:100%;margin:0;padding:0;display:grid;position:relative}.w-slider[disabled]{--w-slider-track-active-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background-hover:var(--w-s-color-background-disabled-subtle)}.w-slider__label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);color:var(--w-s-color-text);grid-area:label;padding-bottom:8px;font-weight:700}.w-slider__description{grid-area:description}.w-slider__range{background:var(--w-slider-track-background);height:var(--w-slider-track-active-height);top:var(--_range-top);border-radius:4px;grid-area:slider;align-self:center;padding-inline-start:var(--active-range-inline-start-padding,0);padding-inline-end:var(--active-range-inline-end-padding,0);position:absolute;left:0;right:0}.w-slider__active-range{box-sizing:content-box;background:var(--w-slider-track-active-background);height:var(--w-slider-track-active-height);--max-with-offset:calc(var(--max) + var(--over-under-offset,0));--offset-percentage:calc(calc(var(--from) - var(--min)) / calc(var(--max-with-offset) - var(--min)) * 100);margin-left:calc(max(var(--offset-percentage) * 1%, 0px) - var(--range-slider-magic-pixel,0px));--value-range:calc(var(--max-with-offset) - var(--min));--range-span-percentage:calc(calc(min(var(--to), var(--max-with-offset)) - max(var(--min), var(--from))) / var(--value-range) * 100);width:calc(var(--range-span-percentage) * 1% + var(--range-slider-magic-pixel,0px));z-index:1;border-start-start-radius:var(--active-range-border-radius,0);border-end-start-radius:var(--active-range-border-radius,0)}.w-slider__markers{--_marker-height:7px;--_marker-width:1px;background:linear-gradient(to right, var(--w-slider-marker-color) var(--_marker-width), #0000 1px calc(100% - 1px), var(--w-slider-marker-color) 100%) repeat-x;--_step-width-as-percent:calc(var(--markers) / var(--_value-range) * 100);background-size:calc(var(--_step-width-as-percent) * 1%) var(--_marker-height);background-position:bottom 0 left 8px right 8px;top:calc(var(--_range-top) + 2px);height:var(--_marker-height);margin-inline:var(--w-slider-thumb-offset);grid-area:slider;align-self:center;position:absolute;left:1px;right:1px}.w-slider__error{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);color:var(--w-s-color-text-negative);grid-area:error;padding-top:8px}.w-slider__help-text{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);grid-area:error;padding-top:8px}slot::slotted(w-slider-thumb){grid-area:slider;position:static;inset:0}`;var _c=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class $c extends ne{static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[De,kc];constructor(){super(),this.disabled=!1,this.openEnded=!1,this.invalid=!1,this.required=!1,this.hiddenTextfield=!1,this._invalidMessage="",this._hasInternalError=!1,this._showError=!1,this._tabbableElements=[],wt(fc,yc,wc,vc,xc)}#be(){const e=this.querySelectorAll("w-slider-thumb");let t=!1;for(const r of e.values())r.min=this.edgeMin,r.max=this.edgeMax,r.step=this.step,r.suffix=this.suffix??"",r.required=this.required,r.labelFormatter=this.labelFormatter,r.valueFormatter=this.valueFormatter,r.tooltipFormatter=this.tooltipFormatter,r.openEnded=this.openEnded,r._hiddenTextfield=this.hiddenTextfield,r.ariaLabel||(r.slot||(r.ariaLabel=this.label),"from"===r.slot&&(r.ariaLabel=`${this.label} min`),"to"===r.slot&&(r.ariaLabel=`${this.label} max`)),"from"!==r.slot&&"to"!==r.slot||(t=!0),r.disabled=this.disabled,r.invalid=Boolean(this.errorText),this.#ge(r);t?(this.fieldset.style.setProperty("--active-range-inline-start-padding","var(--w-slider-thumb-size, 28px)"),this.fieldset.style.setProperty("--active-range-inline-end-padding","var(--w-slider-thumb-size, 28px)")):this.fieldset.style.setProperty("--active-range-border-radius","4px")}get edgeMin(){return this.openEnded?(Number(this.min)-1).toString():this.min}get edgeMax(){return this.openEnded?(Number(this.max)+1).toString():this.max}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.step&&this.fieldset.style.setProperty("--step",String(this.step)),void 0!==this.min&&this.fieldset.style.setProperty("--min",this.edgeMin),void 0!==this.max&&this.fieldset.style.setProperty("--max",this.max),this.markers&&this.fieldset.style.setProperty("--markers",String(this.markers)),this.openEnded&&this.fieldset.style.setProperty("--over-under-offset","1");const e=this.querySelectorAll("w-slider-thumb");if(2===e.length){this.fieldset.style.setProperty("--range-slider-magic-pixel","1px");const t=Array.from(e);this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[1].shadowRoot.querySelector("input"),this._tabbableElements[2]=t[0].shadowRoot.querySelector("w-textfield"),this._tabbableElements[3]=t[1].shadowRoot.querySelector("w-textfield")}else if(1===e.length){const t=Array.from(e);this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[0].shadowRoot.querySelector("w-textfield")}this.invalid&&this.error&&(this._showError=!0),this.#be()}updated(e){(e.has("disabled")||e.has("required")||e.has("min")||e.has("step")||e.has("max")||e.has("suffix")||e.has("labelFormatter")||e.has("valueFormatter")||e.has("_invalidMessage")||e.has("_hasInternalError"))&&this.#be(),(e.has("error")||e.has("invalid"))&&(this.error&&this.invalid?this._showError=!0:this._showError=!1,this.#be())}#me(e){e.stopPropagation();const t=e.target;this.#ge(t)}#V(e){const t=e.target;this.#ge(t);t.slot&&this.#ve()}#fe(){this.componentHasError?this._showError=!0:this._showError=!1,this.#be()}#c(e){if("Tab"===e.key){const t=this._tabbableElements.indexOf(e.target.shadowRoot.activeElement);if(-1===t)return;const r=e.shiftKey?-1:1,o=this._tabbableElements[t+r];if(!o)return;e.preventDefault(),o.focus()}}#ve(){let e,t;const r=this.querySelectorAll("w-slider-thumb");for(const o of r.values())"from"===o.slot&&(e=o),"to"===o.slot&&(t=o);e&&t&&(e.invalid||t.invalid)}#we(e){e.stopPropagation();const t=this._hasInternalError||this.invalid,r=e.target;if(this._hasInternalError=Boolean(e.detail.invalid)||this.invalid,this._invalidMessage=e.detail.invalid,!0===t&&!1===this._hasInternalError){const e=this.querySelectorAll("w-slider-thumb");for(const t of e.values())t!==r&&t.updateFieldAfterValidation()}}#ye(e,t){return void 0!==t.value&&null!==t.value||(t.value=this.openEnded?"":e),""===t.value?e:t.value}#ge(e){const t=e.slot;t||this.fieldset.style.setProperty("--from","0"),"from"===t&&this.fieldset.style.setProperty("--from",this.#ye(this.edgeMin,e)),t&&"to"!==t||this.fieldset.style.setProperty("--to",this.#ye(this.edgeMax,e))}get componentHasError(){return this.invalid||this._hasInternalError}get errorText(){return this._showError?this.error||this._invalidMessage:""}render(){return q`<fieldset id="fieldset" class="w-slider" @input="${this.#V}" @focusout="${this.#fe}" @slidervalidity="${this.#we}" @thumbreset="${this.#me}" @keydown="${this.#c}" aria-invalid="${this.errorText?"true":B}" ?disabled="${this.disabled}">${this.label?q`<legend class="w-slider__label"><slot id="label" name="label">${this.label}</slot></legend>`:q`<slot id="label" name="label"></slot>`}<slot class="w-slider__description" name="description"></slot>${this.markers?q`<div class="w-slider__markers"></div>`:B}<div class="w-slider__range"><div class="w-slider__active-range"></div></div><slot class="w-slider__slider" @slotchange="${this.#be}"></slot><slot class="w-slider__slider" name="from" @slotchange="${this.#be}"></slot><slot class="w-slider__slider" name="to" @slotchange="${this.#be}"></slot>${this.errorText?q`<p class="w-slider__error" aria-describes="fieldset">${this.errorText}</p>`:this.helpText?q`<p class="w-slider__help-text" aria-describes="fieldset">${this.helpText}</p>`:B}</fieldset>`}}_c([ce({reflect:!0})],$c.prototype,"label",void 0),_c([ce({type:Boolean,reflect:!0})],$c.prototype,"disabled",void 0),_c([ce({type:Boolean,attribute:"open-ended"})],$c.prototype,"openEnded",void 0),_c([ce({type:String,reflect:!0})],$c.prototype,"error",void 0),_c([ce({type:String,reflect:!0,attribute:"help-text"})],$c.prototype,"helpText",void 0),_c([ce({type:Boolean,reflect:!0})],$c.prototype,"invalid",void 0),_c([ce({type:Boolean,reflect:!0})],$c.prototype,"required",void 0),_c([ce({reflect:!0})],$c.prototype,"min",void 0),_c([ce({reflect:!0})],$c.prototype,"max",void 0),_c([ce({type:Number,reflect:!0})],$c.prototype,"markers",void 0),_c([ce({type:Number,reflect:!0})],$c.prototype,"step",void 0),_c([ce({reflect:!0})],$c.prototype,"suffix",void 0),_c([ce({type:Boolean,reflect:!0,attribute:"hidden-textfield"})],$c.prototype,"hiddenTextfield",void 0),_c([ce({attribute:!1})],$c.prototype,"valueFormatter",void 0),_c([ce({attribute:!1})],$c.prototype,"tooltipFormatter",void 0),_c([ce({attribute:!1})],$c.prototype,"labelFormatter",void 0),_c([pe("fieldset")],$c.prototype,"fieldset",void 0),_c([he()],$c.prototype,"_invalidMessage",void 0),_c([he()],$c.prototype,"_hasInternalError",void 0),_c([he()],$c.prototype,"_showError",void 0),_c([he()],$c.prototype,"_tabbableElements",void 0),customElements.get("w-slider")||customElements.define("w-slider",$c);const Sc=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.text-right{text-align:right}.border-2{border-width:2px}.rounded-full{border-radius:9999px}.flex{display:flex}.grid{display:grid}.flex-1{flex:1}.gap-x-16{column-gap:1.6rem}.gap-y-16{row-gap:1.6rem}.row-span-2{grid-row:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.col-start-2{grid-column-start:2}.grid-flow-col{grid-auto-flow:column}.grid-rows-\\[20px_auto\\]{grid-template-rows:20px auto}.grid-rows-\\[auto_20px\\]{grid-template-rows:auto 20px}.grid-cols-\\[1fr_20px_1fr\\]{grid-template-columns:1fr 20px 1fr}.grid-cols-\\[1fr_20px\\]{grid-template-columns:1fr 20px}.grid-cols-\\[20px_1fr\\]{grid-template-columns:20px 1fr}.items-center{align-items:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-icon-inverted{color:var(--w-s-color-icon-inverted)}.s-border{border-color:var(--w-s-color-border)}.s-border-primary{border-color:var(--w-s-color-border-primary)}.h-2{height:.2rem}.h-20{height:2rem}.h-full{height:100%}.w-2{width:.2rem}.w-20{width:2rem}.w-full{width:100%}.last\\:mb-0:last-child{margin-bottom:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.pb-0{padding-bottom:0}.pb-32{padding-bottom:3.2rem}.invisible{visibility:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}`,Ec=JSON.parse('{"steps.aria.active":["Trinindikator aktiv cirkel"],"steps.aria.completed":["Trinindikator fuldført cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}'),Cc=JSON.parse('{"steps.aria.active":["Step indicator active circle"],"steps.aria.completed":["Step indicator completed circle"],"steps.aria.emptyCircle":["Empty circle"]}'),Oc=JSON.parse('{"steps.aria.active":["Vaiheilmaisin aktiivinen ympyrä"],"steps.aria.completed":["Vaiheilmaisin valmis ympyrä"],"steps.aria.emptyCircle":["Tyhjä ympyrä"]}'),zc=JSON.parse('{"steps.aria.active":["Stegindikator aktiv sirkel"],"steps.aria.completed":["Stegindikator hel sirkel"],"steps.aria.emptyCircle":["Tom sirkel"]}'),Ac=JSON.parse('{"steps.aria.active":["Stegindikator aktiv cirkel"],"steps.aria.completed":["Stegindikator fulländad cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}');var Dc=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Pc="group/step",Mc="group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16",Tc="group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid items-center",jc="grid-cols-[20px_1fr]",Rc="grid-cols-[1fr_20px] text-right",Nc="rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted",Ic="col-start-2",Vc="row-start-2 justify-self-end",Fc="s-border-primary s-bg-primary",Lc="s-border s-bg",qc="transition-colors duration-300",Wc="w-2 h-full justify-self-center",Bc="col-start-2",Hc="h-2 w-full row-start-2",Yc="s-bg-disabled",Xc="s-bg-primary",Uc="last:mb-0",Jc="row-span-2 pb-32",Kc="col-span-3 px-16 row-start-1 text-center";class Zc extends ne{static#e=this.styles=[De,Sc];constructor(){super(),this.active=!1,this.completed=!1,this._context={horizontal:!1,right:!1,isLast:!1,isFirst:!1},this._internals=this.attachInternals(),wt(Cc,zc,Oc,Ec,Ac)}connectedCallback(){super.connectedCallback(),this._internals.role="listitem"}setContext(e){this._context=e}getAriaLabel(){return this.completed?ut._({id:"steps.aria.completed",message:"Step indicator completed circle",comment:"Completed circle"}):this.active?ut._({id:"steps.aria.active",message:"Step indicator active circle",comment:"Active circle"}):ut._({id:"steps.aria.emptyCircle",message:"Empty circle",comment:"Empty circle"})}render(){const e=!this._context.horizontal,t=!this._context.right,r=this._context.isFirst,o=this._context.isLast,i=Ee([Pc,e?Mc:Tc,e?t?jc:Rc:""]),a=Ee([qc,Hc,this.active||this.completed?Xc:Yc,r?"invisible":""]),n=Ee([Nc,e?t?"":Ic:Vc,this.active||this.completed?Fc:Lc]),s=Ee([qc,e?Wc:Hc,e&&!t?Bc:"",this.completed?Xc:Yc,o?"invisible":""]),l=Ee([Uc,e?Jc:Kc,o?"pb-0":""]);return q`<div class="${i}" style="${Ae(this._context.horizontal?"height: 100%;":void 0)}">${e?B:q`<div class="${a}"></div>`}<div class="${n}" role="img" aria-label="${this.getAriaLabel()}" aria-current="${this.active?"step":B}">${this.completed?q`<w-icon name="Check" size="small" locale="${ft()}" data-testid="completed-icon" class="flex"></w-icon>`:B}</div><div class="${s}"></div><div class="${l}" style="${Ae(this._context.horizontal?"height: 100%;":void 0)}"><slot></slot></div></div>`}}Dc([ce({type:Boolean,reflect:!0})],Zc.prototype,"active",void 0),Dc([ce({type:Boolean,reflect:!0})],Zc.prototype,"completed",void 0),Dc([he()],Zc.prototype,"_context",void 0),customElements.get("w-step")||customElements.define("w-step",Zc);var Qc=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Gc="w-full",eh="flex";class th extends ne{constructor(){super(...arguments),this.horizontal=!1,this.right=!1}static#e=this.styles=[De,Sc];updated(){this.updateStepsContext()}updateStepsContext(){const e=this.querySelectorAll("w-step");e.forEach((t,r)=>{t.setContext({horizontal:this.horizontal,right:this.right,isLast:r===e.length-1,isFirst:0===r})})}render(){const e=Ee([Gc,this.horizontal&&eh]);return q`<div role="list" class="${e}" ${this.horizontal&&"style='display: grid; grid-auto-rows: 1fr;grid-template-columns: 1fr;'"}><slot></slot></div>`}}Qc([ce({type:Boolean,reflect:!0})],th.prototype,"horizontal",void 0),Qc([ce({type:Boolean,reflect:!0})],th.prototype,"right",void 0),customElements.get("w-step-indicator")||customElements.define("w-step-indicator",th);const rh=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-s-color-border-strong\\]{background-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:bg-\[--w-s-color-border-strong-hover\\]{background-color:var(--w-s-color-border-strong-hover)}.border{border-width:1px}.rounded-full{border-radius:9999px}.block{display:block}.focusable:focus,.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.left-0{left:0}.left-4{left:.4rem}.top-0{top:0}.top-4{top:.4rem}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.group:hover .group-hover\\:s-bg-hover{background-color:var(--w-s-color-background-hover)}.group:hover .group-hover\\:s-bg-primary-hover{background-color:var(--w-s-color-background-primary-hover)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:s-border-strong-hover{border-color:var(--w-s-color-border-strong-hover)}.h-16{height:1.6rem}.h-24{height:2.4rem}.h-full{height:100%}.w-16{width:1.6rem}.w-44{width:4.4rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.translate-x-20{--w-translate-x:2rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform-gpu{transform:translate3d(var(--w-translate-x),var(--w-translate-y),var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}`;var oh=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const ih="block relative h-24 w-44 cursor-pointer group focusable rounded-full",ah="pointer-events-none",nh="absolute top-0 left-0 h-full w-full rounded-full transition-colors",sh="s-bg-primary group-hover:s-bg-primary-hover",lh="s-bg border s-border-strong group-hover:s-bg-hover group-hover:s-border-strong-hover",dh="s-bg-disabled",ch="s-bg-disabled-subtle border s-border-disabled",hh="absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform",uh="translate-x-20",ph="s-bg",bh="bg-[--w-s-color-border-strong] group-hover:bg-[--w-s-color-border-strong-hover]",gh="s-bg-disabled-subtle",mh="s-bg-disabled";class vh extends(ze(ne)){constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.#xe=null,this._handleHostClick=e=>{this.disabled||e.composedPath()[0]===this&&this._handleClick()},this._handleKeyDown=e=>{this.disabled||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this._handleClick())}}static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};#xe;static#o=this.styles=[De,rh,a`:host{display:inline-block}button:focus{outline:none}button:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}`];get _baseClasses(){return Ee([ih,this.disabled&&ah])}get _trackClasses(){return Ee([nh,this.disabled?this.checked?dh:ch:this.checked?sh:lh])}get _handleClasses(){return Ee([hh,this.checked&&uh,this.disabled?this.checked?gh:mh:this.checked?ph:bh])}_handleClick(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value||null},bubbles:!0,composed:!0})))}_syncA11yState(){this.internals.ariaChecked=this.checked?"true":"false",this.internals.ariaDisabled=this.disabled?"true":null}connectedCallback(){this.#xe=this.checked,super.connectedCallback(),this.internals.role="switch";const e=this.getAttribute("aria-label");e&&(this.internals.ariaLabel=e),this.disabled||this.setValue(this.checked&&this.value?this.value:null),this._syncA11yState(),this.addEventListener("click",this._handleHostClick),this.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){this.removeEventListener("click",this._handleHostClick),this.removeEventListener("keydown",this._handleKeyDown),super.disconnectedCallback()}willUpdate(e){e.has("checked")&&(this.disabled||this.setValue(this.checked&&this.value?this.value:null)),(e.has("checked")||e.has("disabled"))&&this._syncA11yState()}resetFormControl(){this.checked=this.#xe}render(){return q`<div><button type="button" role="none" tabindex="${this.disabled?-1:0}" class="${this._baseClasses}" ?disabled="${this.disabled}" @click="${this._handleClick}"><span data-testid="track" class="${this._trackClasses}"></span> <span data-testid="handle" class="${this._handleClasses}"></span></button></div>`}}oh([ce({type:String,reflect:!0})],vh.prototype,"name",void 0),oh([ce({type:String,reflect:!0})],vh.prototype,"value",void 0),oh([ce({type:Boolean,reflect:!0})],vh.prototype,"checked",void 0),oh([ce({type:Boolean,reflect:!0})],vh.prototype,"disabled",void 0),customElements.get("w-switch")||customElements.define("w-switch",vh);const fh=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-b{border-bottom-width:1px}.inline-grid{display:inline-grid}.hidden{display:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.-bottom-0{bottom:0}.absolute{position:absolute}.relative{position:relative}.s-border{border-color:var(--w-s-color-border)}.-mb-1{margin-bottom:-.1rem}.mb-32{margin-bottom:3.2rem}.resize{resize:both}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-b-4{border-bottom-width:4px}.border-transparent{border-color:#0000}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.focusable:focus,.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.gap-8{gap:.8rem}.focus\\:outline-none:focus{outline-offset:2px;outline:2px solid #0000}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-text-link{color:var(--w-s-color-text-link)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.hover\\:s-text-link:hover{color:var(--w-s-color-text-link)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.hover\\:s-border-primary:hover{border-color:var(--w-s-color-border-primary)}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.p-0{padding:0}.p-16{padding:1.6rem}.pb-8{padding-bottom:.8rem}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}.w-full{width:100%}`;var wh=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const yh="grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary",xh="s-text-subtle",kh="s-text-link s-border-selected",_h="mx-auto",$h="flex items-center justify-center gap-8",Sh="content-underlined";class Eh extends ne{static#e=this.styles=[De,fh,a`::slotted([slot=icon]){display:flex}button.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus,#1a73e8);outline-offset:var(--w-outline-offset,1px)}`];static#o=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this._handleClick=e=>{e.tab||(e.tab=this)},this.active=!1,this.over=!1,this._internals=this.attachInternals()}get tabIndex(){return this._parentTabIndex??0}set tabIndex(e){this._parentTabIndex=e}get _computedAriaSelected(){return this._parentAriaSelected??this._ownAriaSelected}get _effectiveAriaControls(){return this._ariaControlsAttr||this.for||""}set ariaSelected(e){const t=this._ownAriaSelected;this._ownAriaSelected=e,this._internals.ariaSelected=this._computedAriaSelected??null,this.requestUpdate("ariaSelected",t)}get ariaSelected(){return this._computedAriaSelected??"false"}get _classes(){return Ee(["focusable appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",yh,this.active||"true"===this.ariaSelected?kh:xh])}get _hasIcon(){return null!==this.querySelector('[slot="icon"]')}connectedCallback(){super.connectedCallback(),this._internals.role="tab",this.syncAriaControls(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}updated(e){super.updated(e);const t=e;e.has("_parentAriaSelected")&&(this._internals.ariaSelected=this._computedAriaSelected??null),t.has("_ariaControlsAttr")&&this.syncAriaControls(),e.has("for")&&this.syncAriaControls(),e.has("active")&&this.hasAttribute("active")&&(this._internals.ariaSelected=this.active?"true":"false")}syncAriaControls(){const e=this._effectiveAriaControls,t=this.closest("w-tabs"),r=t?.querySelector(`w-tab-panel#${CSS.escape(e)}`)??this.ownerDocument?.getElementById(e)??null,o=this._internals;"ariaControlsElements"in o?o.ariaControlsElements=r?[r]:[]:"ariaControls"in o&&(o.ariaControls=e||null)}render(){const e=this._hasIcon;return q`<button type="button" role="none" id="warp-tab-${this.for}" class="${this._classes}" tabindex="${this._parentTabIndex??0}" aria-controls="${this._effectiveAriaControls}" @click="${e=>{e.tab=this}}" style="height:100%">${e?this.over?q`<span class="${_h}"><slot name="icon"></slot></span><span class="${Sh}"><slot></slot></span>`:q`<div class="${$h}"><slot name="icon"></slot><slot></slot></div>`:q`<span class="${Sh}"><slot></slot></span>`}</button>`}}wh([ce({attribute:"for",reflect:!0})],Eh.prototype,"for",void 0),wh([ce({attribute:"aria-controls"})],Eh.prototype,"_ariaControlsAttr",void 0),wh([ce({attribute:!1})],Eh.prototype,"_parentTabIndex",void 0),wh([ce({attribute:!1})],Eh.prototype,"_parentAriaSelected",void 0),wh([ce({attribute:"aria-selected"})],Eh.prototype,"ariaSelected",null),wh([ce({type:Boolean,reflect:!0})],Eh.prototype,"active",void 0),wh([ce({type:Boolean,reflect:!0})],Eh.prototype,"over",void 0),customElements.get("w-tab")||customElements.define("w-tab",Eh);var Ch=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};class Oh extends ne{static#e=this.styles=[De,fh,a`:host{display:block}:host([hidden]){display:block!important}.panel-content{display:none}.panel-content[data-active]{display:block}`];constructor(){super(),this._internals=this.attachInternals()}set active(e){this._ownActive=e}get active(){return this._parentActive??this._ownActive??!1}connectedCallback(){super.connectedCallback(),this._internals.role="tabpanel",this.syncA11yState()}updated(){this.syncA11yState()}syncA11yState(){const e=this._internals;e.ariaLabelledBy=this._parentAriaLabelledBy||null,e.ariaHidden=this.active?"false":"true"}render(){return q`<div class="panel-content" ?data-active="${this.active}"><slot></slot></div>`}}Ch([ce({attribute:"id",reflect:!0})],Oh.prototype,"id",void 0),Ch([ce({type:Boolean})],Oh.prototype,"active",null),Ch([ce({attribute:!1})],Oh.prototype,"_parentActive",void 0),Ch([ce({attribute:!1})],Oh.prototype,"_parentAriaLabelledBy",void 0),customElements.get("w-tab-panel")||customElements.define("w-tab-panel",Oh);function zh(e){return void 0===e&&(e=""),`${e}${(e=>{void 0===e&&(e=21);let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})()}`}var Ah=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Dh="border-b s-border mb-32",Ph="inline-grid relative -mb-1",Mh="absolute s-border-selected -bottom-0 border-b-4 transition-all",Th={cols1:"grid-cols-1",cols2:"grid-cols-2",cols3:"grid-cols-3",cols4:"grid-cols-4",cols5:"grid-cols-5",cols6:"grid-cols-6",cols7:"grid-cols-7",cols8:"grid-cols-8",cols9:"grid-cols-9"};class jh extends ne{static#e=this.styles=[De,fh];constructor(){super(),this._uniqueId=zh(),this._activeTabFor="",this._updateSelectionIndicatorDebounced=function(e,t,r){let o;return void 0===r&&(r=!1),function(){for(var i=arguments.length,a=new Array(i),n=0;n<i;n++)a[n]=arguments[n];const s=r&&!o;o&&clearTimeout(o),o=setTimeout(()=>{o=null,r||e(...a)},t),s&&e(...a)}}(this.updateSelectionIndicator.bind(this),100),this._assignSlots=()=>{Array.from(this.children).forEach(e=>{e instanceof HTMLElement&&("W-TAB"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","tabs"),"W-TAB-PANEL"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","panels"))}),this.requestUpdate()},this._handleTabClick=e=>{const t=e.tab?.for;t&&t!==this._activeTabFor&&(this.active=t,this._activeTabFor=t,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())},this._handleKeyDown=e=>{if(e.altKey||e.ctrlKey||e.shiftKey||!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;const t=Array.from(this.querySelectorAll("w-tab")),r=t.findIndex(e=>e.for===this._activeTabFor);if(-1===r)return;let o=r;switch(e.key){case"Home":o=0;break;case"End":o=t.length-1;break;case"ArrowLeft":o=Math.max(0,r-1);break;case"ArrowRight":o=Math.min(t.length-1,r+1)}if(o!==r){e.preventDefault();const r=t[o],i=r.for;i&&(this.active=i,this._activeTabFor=i,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange(),r.focus())}},this.addEventListener("click",this._handleTabClick)}connectedCallback(){super.connectedCallback(),this.active&&(this._activeTabFor=this.active),this._assignSlots(),"undefined"!=typeof ResizeObserver&&(this._resizeObserver=new ResizeObserver(()=>{this._updateSelectionIndicatorDebounced()}),this._resizeObserver.observe(this)),window.addEventListener("resize",this._updateSelectionIndicatorDebounced)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&this._resizeObserver.disconnect(),window.removeEventListener("resize",this._updateSelectionIndicatorDebounced),this.removeEventListener("click",this._handleTabClick)}firstUpdated(){this._assignSlots(),this._initializeActiveTab(),this.updateSelectionIndicator(),this.updatePanels()}updated(e){e.has("active")&&this.active!==this._activeTabFor&&(this._activeTabFor=this.active,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())}get tabs(){const e=this.shadowRoot?.querySelector('slot[name="tabs"]');if(!e)return[];return e.assignedElements({flatten:!0}).filter(e=>"w-tab"===e.tagName.toLowerCase())}get activeTab(){return this.tabs.filter(e=>e.for===this._activeTabFor)[0]}_initializeActiveTab(){this.activeTab?this._activeTabFor=this.activeTab.getAttribute("for")||"":this.tabs.length>0&&(this._activeTabFor=this.tabs[0].getAttribute("for")||""),this._activeTabFor&&this._activeTabFor!==this.active&&(this.active=this._activeTabFor)}_notifyTabChange(){this.dispatchEvent(new CustomEvent("change",{detail:{panelId:this._activeTabFor},bubbles:!0,composed:!0}))}updateSelectionIndicator(){requestAnimationFrame(()=>{if(!this.tabList||!this.selectionIndicator)return;if(!this.activeTab)return;const e=this.tabList.getBoundingClientRect(),t=this.activeTab.getBoundingClientRect(),r=t.left-e.left,o=t.width;this.selectionIndicator.style.left=`${r}px`,this.selectionIndicator.style.width=`${o}px`})}updatePanels(){const e=Array.from(this.querySelectorAll("w-tab"));e.forEach((e,t)=>{e.id||(e.id=`w-tab-${this._uniqueId}-${t}`);const r=e.for===this._activeTabFor;e._parentAriaSelected=r?"true":"false",e._parentTabIndex=r?0:-1});Array.from(this.querySelectorAll("w-tab-panel")).forEach(t=>{const r=e.find(e=>e.for===t.id);r&&(t._parentAriaLabelledBy=r.id),t._parentActive=t.id===this._activeTabFor})}get _tabCount(){return this.querySelectorAll("w-tab").length}get _gridClass(){const e=Math.min(this._tabCount,9);return Th[`cols${e}`]||Th.cols1}render(){const e=Ee(Dh),t=Ee([Ph,this._gridClass]);return q`<div class="${e}"><div role="tablist" class="${t}" @keydown="${this._handleKeyDown}"><slot name="tabs" @slotchange="${this._assignSlots}"></slot><span class="selection-indicator ${Mh}" data-testid="selection-indicator"></span></div></div><slot name="panels" @slotchange="${this._assignSlots}"></slot><slot @slotchange="${this._assignSlots}"></slot>`}}Ah([ce({reflect:!0})],jh.prototype,"active",void 0),Ah([pe('[role="tablist"]')],jh.prototype,"tabList",void 0),Ah([pe(".selection-indicator")],jh.prototype,"selectionIndicator",void 0),customElements.get("w-tabs")||customElements.define("w-tabs",jh);const Rh=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}`;var Nh=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const Ih="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",Vh="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",Fh="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",Lh="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",qh="pl-0 bg-transparent pointer-events-none",Wh="placeholder:s-text-placeholder",Bh="min-h-[42] sm:min-h-[45]",Hh="resize-none",Yh="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text flex",Xh="pl-8 font-normal text-s s-text-subtle",Uh="text-xs mt-4 block",Jh="s-text-subtle",Kh="s-text-negative";class Zh extends(ze(ne)){constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.minHeight=Number.NEGATIVE_INFINITY,this.maxHeight=Number.POSITIVE_INFINITY,this.#t=null,this.#ke=zh("textarea-"),this.#_e=!1,this.#$e=void 0,this.#n=!1,this.#s=e=>{e.preventDefault(),this.#n=!0,this.#d()}}static#e=this.shadowRootOptions={...ne.shadowRootOptions,delegatesFocus:!0};#t;#ke;#_e;#$e;#n;updated(e){e.has("value")&&this.setValue(this.value),(e.has("value")||e.has("required")||e.has("disabled"))&&this.#d()}resetFormControl(){this.value=this.#t,this.#n=!1,this.#Se(),this.#d()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.#d(),this.internals.checkValidity()}reportValidity(){return this.#n=!0,this.#d(),this.internals.checkValidity()}setCustomValidity(e){e?(this.internals.setValidity({customError:!0},e,this._textarea),this.#Ee(e)):(this.#Se(),this.#d())}#Ee(e){this.#_e||(this.#$e=this.helpText),this.#_e=!0,this.invalid=!0,this.helpText=e}#Se(){this.#_e&&(this.invalid=!1,this.helpText=this.#$e,this.#$e=void 0,this.#_e=!1)}#d(){if(this.disabled)return this.internals.setValidity({}),void this.#Se();if(this.required&&!this.value){const e=this._textarea?.validationMessage||"";return this.internals.setValidity({valueMissing:!0},e,this._textarea),void(this.#n&&this.#Ee(e))}this.internals.setValidity({}),this.#Se()}static#o=this.styles=[De,Rh];get _textareaStyles(){return Ee([Ih,Bh,!!this.placeholder&&Wh,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Vh,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Lh,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&Fh,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&qh,this.maxRows&&Hh])}get _helptextstyles(){return Ee([Uh,this.invalid?Kh:Jh])}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return this.#ke}get _error(){if(this.invalid&&this._helpId)return this._helpId}async connectedCallback(){if(super.connectedCallback(),this.#t=this.value,this.setValue(this.value),this.addEventListener("invalid",this.#s),await this.updateComplete,this.value||this.minRows){const e=this.shadowRoot?.querySelector("textarea");e&&this.#Ce(e)}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this.#s)}firstUpdated(e){super.firstUpdated(e),this.#d()}handler(e){const t=e.currentTarget;this.value=t.value,this.#Ce(t)}#Oe(){this.#n=!0,this.#d()}#s;#Ce(e){const t=getComputedStyle(e),r=Number.parseFloat(t.getPropertyValue("border-top-width")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width")),i=Number.parseFloat(t.getPropertyValue("line-height")),a=Number.parseFloat(t.getPropertyValue("padding-top"))+Number.parseFloat(t.getPropertyValue("padding-bottom"))+o+r;this.minRows&&(this.minHeight=i*this.minRows+a),this.maxRows&&(this.maxHeight=i*this.maxRows+a);const n=e.scrollHeight+r+o,s=Math.min(this.maxHeight,Math.max(this.minHeight,n));e.style.setProperty("height",s+"px")}render(){return q`${this.label?q`<label for="${this._id}" class="${Yh}">${this.label} ${this.optional?q`<span class="${Xh}">${ut._({id:"textarea.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span>`:B}</label>`:B} <textarea id="${this._id}" class="${this._textareaStyles}" name="${Ae(this.name)}" placeholder="${Ae(this.placeholder)}" .value="${this.value||""}" aria-describedby="${Ae(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${Ae(this._error)}" aria-invalid="${this.invalid?"true":B}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" @input="${this.handler}" @blur="${this.#Oe}">
|
|
2535
|
-
</textarea> ${this.helpText?q`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`:B}`}}Nh([ce({type:Boolean,reflect:!0})],Zh.prototype,"disabled",void 0),Nh([ce({type:Boolean,reflect:!0})],Zh.prototype,"invalid",void 0),Nh([ce({type:String,reflect:!0})],Zh.prototype,"label",void 0),Nh([ce({type:String,reflect:!0,attribute:"help-text"})],Zh.prototype,"helpText",void 0),Nh([ce({type:Number,reflect:!0,attribute:"maximum-rows"})],Zh.prototype,"maxRows",void 0),Nh([ce({type:Number,reflect:!0,attribute:"minimum-rows"})],Zh.prototype,"minRows",void 0),Nh([ce({type:String,reflect:!0})],Zh.prototype,"name",void 0),Nh([ce({type:String,reflect:!0})],Zh.prototype,"placeholder",void 0),Nh([ce({type:Boolean,reflect:!0,attribute:"read-only"})],Zh.prototype,"readOnly",void 0),Nh([ce({type:Boolean,reflect:!0})],Zh.prototype,"readonly",void 0),Nh([ce({type:Boolean,reflect:!0})],Zh.prototype,"required",void 0),Nh([ce({type:String,reflect:!0})],Zh.prototype,"value",void 0),Nh([ce({type:Boolean,reflect:!0})],Zh.prototype,"optional",void 0),Nh([he()],Zh.prototype,"minHeight",void 0),Nh([he()],Zh.prototype,"maxHeight",void 0),Nh([pe("textarea")],Zh.prototype,"_textarea",void 0),customElements.get("w-textarea")||customElements.define("w-textarea",Zh);const Qh=a`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-transparent{background-color:#0000}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.grid{display:grid}.shrink-0{flex-shrink:0}.auto-rows-auto{grid-auto-rows:auto}.overflow-hidden{overflow:hidden}.self-center{align-self:center}.bottom-16{bottom:1.6rem}.left-0{left:0}.right-0{right:0}.justify-center{justify-content:center}.justify-items-center{justify-items:center}.fixed{position:fixed}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.w-full{width:100%}.h-\\[16px\\]{height:16px}.w-\\[16px\\]{width:16px}.mx-8{margin-left:.8rem;margin-right:.8rem}.mx-auto{margin-left:auto;margin-right:auto}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-auto{margin-left:auto}.mr-8{margin-right:.8rem}.mt-16{margin-top:1.6rem}.m-\\[8px\\]{margin:8px}.p-8{padding:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.p-\\[8px\\]{padding:8px}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\:mx-16{margin-left:1.6rem;margin-right:1.6rem}}`;var Gh=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const eu="fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",tu="grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none",ru="w-full";class ou extends ne{constructor(){super(...arguments),this._toasts=new Map}static#e=this.styles=[De,Qh,a`:host{display:block}`];connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{const e=[],t=[];for(const r of this._toasts)Date.now()<=r[1].duration?e.push(r):t.push(r);const r=[];for(const[e]of t){const t=this.renderRoot.querySelector(`#${e}`);r.push(t.collapse())}Promise.all(r).then(()=>{e.length!==this._toasts.size&&(this._toasts=new Map(e))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let e=document.querySelector("w-toast-container");return e||(e=document.createElement("w-toast-container"),document.body.appendChild(e)),e}get _toastsArray(){return Array.from(this._toasts).map(e=>{let[,t]=e;return t})}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(e)}set(e){if(!e.id)throw new Error('invalid or undefined "id" on toast object');const t=this._toasts.set(e.id,{id:e.id,type:e.type??"success",text:e.text??"",canclose:e.canclose??!1,duration:Date.now()+(e.duration||5e3)});return this._toasts=new Map(Array.from(this._toasts)),t}async del(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');const t=this.renderRoot.querySelector(`#${e}`);if(!this._toasts.has(e))return!1;await t.collapse();const r=this._toasts.delete(e);return this._toasts=new Map(Array.from(this._toasts)),r}render(){return q`<aside class="${eu}"><div class="${tu}" id="w-toast-container-list">${ca(this._toastsArray,e=>e.id,e=>q`<w-toast class="${ru}" id="${e.id}" type="${e.type}" text="${e.text}" ?canclose="${e.canclose}" @close="${()=>this.del(e.id)}"></w-toast>`)}</div></aside>`}}Gh([he()],ou.prototype,"_toasts",void 0),customElements.get("w-toast-container")||customElements.define("w-toast-container",ou);const iu=JSON.parse('{"toast.aria.error":["Fejl"],"toast.aria.successful":["Fuldført"],"toast.aria.warning":["Advarsel"]}'),au=JSON.parse('{"toast.aria.error":["Error"],"toast.aria.successful":["Successful"],"toast.aria.warning":["Warning"]}'),nu=JSON.parse('{"toast.aria.error":["Virhe"],"toast.aria.successful":["Onnistui"],"toast.aria.warning":["Varoitus"]}'),su=JSON.parse('{"toast.aria.error":["Feil"],"toast.aria.successful":["Vellykket"],"toast.aria.warning":["Advarsel"]}'),lu=JSON.parse('{"toast.aria.error":["Fel"],"toast.aria.successful":["Genomfört"],"toast.aria.warning":["Varning"]}'),du="undefined"!=typeof window;function cu(){return customElements.get("w-toast-container")}function hu(e,t){if(!du)return;const r=cu().init(),o={id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success",...t};return r.set(o),o}function uu(e){if(!du)return;return cu().init().del(e)}function pu(e,t){if(!du)return;const r=cu().init();return r.set({...r.get(e),...t}),r.get(e)}var bu=function(e,t,r,o){var i,a=arguments.length,n=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,r,n):i(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};const gu="relative overflow-hidden w-full",mu="flex group p-8 mt-16 rounded-8 border-2 pointer-events-auto transition-all",vu="s-bg-positive-subtle s-border-positive-subtle s-text",fu="s-bg-warning-subtle s-border-warning-subtle s-text",wu="s-bg-negative-subtle s-border-negative-subtle s-text",yu="shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",xu="s-icon-positive",ku="s-icon-warning",_u="s-icon-negative",$u="self-center mr-8 py-4 last-child:mb-0";class Su extends ne{static#e=this.styles=[De,Qh,a`:host{display:block}`];constructor(){super(),this.text="",this.canclose=!1,this._expanded=!1,wt(au,su,nu,iu,lu),this.id||(this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&Ys(this._wrapper,()=>this._expanded=!0)}get#ze(){const e=this.type||"success";return Ee([mu,"success"===e&&vu,"warning"===e&&fu,"error"===e&&wu])}get#Ae(){const e=this.type||"success";return Ee([yu,"success"===e&&xu,"warning"===e&&ku,"error"===e&&_u])}get _wrapper(){return this.renderRoot?.querySelector("section")??null}get _warning(){return"warning"===(this.type||"success")}get _error(){return"error"===(this.type||"success")}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?ut._({id:"toast.aria.warning",message:"Warning",comment:"Default screenreader message for warning in toast component"}):this._error?ut._({id:"toast.aria.error",message:"Error",comment:"Default screenreader message for error in toast component"}):ut._({id:"toast.aria.successful",message:"Successful",comment:"Default screenreader message for successful in toast component"})}get _iconMarkup(){const e=ft();return this._warning?q`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:this._error?q`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:q`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?Xs(this._wrapper,e):e()})}close(){const e=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}render(){return this.text?q`<section class="${gu}" aria-label="${this._typeLabel}"><div class="${this.#ze}"><div class="${this.#Ae}">${this._iconMarkup}</div><div role="${this._role}" class="${$u}"><p>${this.text}</p></div>${Bd(!0===this.canclose,()=>q`<w-button variant="pill" small="" @click="${this.close}"><w-icon name="Close" size="small" locale="${ft()}" style="display:flex" class="flex"></w-icon></w-button>`)}</div></section>`:q``}}bu([ce({type:String,attribute:!0,reflect:!0})],Su.prototype,"id",void 0),bu([ce({type:String,attribute:!0,reflect:!0})],Su.prototype,"type",void 0),bu([ce({type:String,attribute:!0,reflect:!0})],Su.prototype,"text",void 0),bu([ce({type:Boolean,attribute:!0,reflect:!0})],Su.prototype,"canclose",void 0),bu([he()],Su.prototype,"_expanded",void 0),customElements.get("w-toast")||customElements.define("w-toast",Su),Promise.all([customElements.whenDefined("w-icon"),customElements.whenDefined("w-textfield"),customElements.whenDefined("w-affix"),customElements.whenDefined("w-alert"),customElements.whenDefined("w-link"),customElements.whenDefined("w-button"),customElements.whenDefined("w-attention"),customElements.whenDefined("w-badge"),customElements.whenDefined("w-box"),customElements.whenDefined("w-breadcrumbs"),customElements.whenDefined("w-card"),customElements.whenDefined("w-checkbox"),customElements.whenDefined("w-checkbox-group"),customElements.whenDefined("w-combobox"),customElements.whenDefined("w-datepicker"),customElements.whenDefined("w-expandable"),customElements.whenDefined("w-modal"),customElements.whenDefined("w-modal-footer"),customElements.whenDefined("w-modal-header"),customElements.whenDefined("w-page-indicator"),customElements.whenDefined("w-pagination"),customElements.whenDefined("w-pill"),customElements.whenDefined("w-radio"),customElements.whenDefined("w-radio-group"),customElements.whenDefined("w-select"),customElements.whenDefined("w-slider-thumb"),customElements.whenDefined("w-slider"),customElements.whenDefined("w-step"),customElements.whenDefined("w-step-indicator"),customElements.whenDefined("w-switch"),customElements.whenDefined("w-tab"),customElements.whenDefined("w-tab-panel"),customElements.whenDefined("w-tabs"),customElements.whenDefined("w-textarea")]).then(()=>{performance.mark("vend/pc-design-system/warp-elements-loaded")});export{jl as ModalFooter,Xl as ModalHeader,Ml as ModalMain,ea as WCheckbox,la as WCheckboxGroup,Se as WIcon,Td as WRadio,Wd as WRadioGroup,zt as WarpAffix,Tt as WarpAlert,oi as WarpAttention,ni as WarpBadge,di as WarpBox,xi as WarpBreadcrumbs,Zt as WarpButton,Li as WarpCard,Gi as WarpCheckbox,sa as WarpCheckboxGroup,Ea as WarpCombobox,Ls as WarpDatepicker,vl as WarpExpandable,$e as WarpIcon,Wt as WarpLink,Pl as WarpModal,Tl as WarpModalFooter,Yl as WarpModalHeader,td as WarpPageIndicator,hd as WarpPagination,zd as WarpPill,Md as WarpRadio,qd as WarpRadioGroup,uc as WarpSelect,$c as WarpSlider,mc as WarpSliderThumb,Zc as WarpStep,th as WarpStepIndicator,vh as WarpSwitch,Eh as WarpTab,Oh as WarpTabPanel,jh as WarpTabs,Ye as WarpTextField,Zh as WarpTextarea,Su as WarpToast,ou as WarpToastContainer,uu as removeToast,hu as toast,pu as updateToast};
|
|
94
|
+
function Hd(e,t,r){return e?t(e):r?.(e)}customElements.get("w-radio-group")||customElements.define("w-radio-group",Bd);const Yd=JSON.parse('{"select.label.optional":["(valgfrit)"]}'),Xd=JSON.parse('{"select.label.optional":["(optional)"]}'),Ud=JSON.parse('{"select.label.optional":["(vapaaehtoinen)"]}'),Jd=JSON.parse('{"select.label.optional":["(valgfritt)"]}'),Kd=JSON.parse('{"select.label.optional":["(valfritt)"]}'),Zd=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.opacity-25{opacity:.25}.block,.before\\:block:before{display:block}.flex{display:flex}.before\\:hidden:before{display:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.bottom-0{bottom:0}.right-0{right:0}.before\\:bottom-0:before{bottom:0}.before\\:right-0:before{right:0}.top-\\[30\\%\\]{top:30%}.absolute{position:absolute}.relative{position:relative}.static{position:static}.before\\:absolute:before{position:absolute}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.s-icon{color:var(--w-s-color-icon)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-disabled:hover{border-color:var(--w-s-color-border-disabled)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\:s-border-disabled:active{border-color:var(--w-s-color-border-disabled)}.h-full{height:100%}.w-32{width:3.2rem}.w-full{width:100%}.before\\:h-full:before{height:100%}.before\\:w-32:before{width:3.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-32{padding-right:3.2rem}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none,.before\\:pointer-events-none:before{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}");var Qd=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Gd="block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current",ec="s-text s-bg pl-8 border-1 s-border-strong hover:s-border-strong-hover active:s-border-active",tc="s-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none",rc="s-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!",oc="s-text bg-transparent pl-0 border-0 pointer-events-none before:hidden",nc="relative",ic="relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",ac="block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer",sc="opacity-25",lc="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",dc="pl-8 font-normal text-s s-text-subtle",cc="text-xs mt-4 block",hc="s-text-subtle",uc="s-text-negative";class pc extends(Ae(se)){#t;#Z;#P;static#e=this.styles=[Pe,Zd,a`select:has(option[value=""][selected]),select:has(option[value=""]):not(:has(option[selected])){color:var(--w-s-color-text-placeholder)}`];constructor(){super(),this.autoFocus=!1,this.autofocus=!1,this.invalid=!1,this.always=!1,this.optional=!1,this.disabled=!1,this.readOnly=!1,this.readonly=!1,this._options=[],this.#t=void 0,this.#Z=()=>this.#Q(),this._setValue=e=>{this.value=e,this.setValue(e)},yt(Xd,Jd,Ud,Yd,Kd)}resetFormControl(){this.value=this.#t}#T(){return Array.from(this.children).filter(e=>"option"===e.tagName.toLowerCase()||"w-option"===e.tagName.toLowerCase())}#G(){return this.shadowRoot?.querySelector("select")}#ee(){return this.#T().some(e=>e.hasAttribute("selected"))}#te(e){const t=this.#G();if(!t)return;let r=!1;for(const o of Array.from(t.options)){const t=!r&&o.value===e;o.selected=t,o.toggleAttribute("selected",t),t&&(r=!0)}}#Q(e){let{allowDefaultFirstOption:t=!1}=void 0===e?{}:e;const r=this.#G();if(!r)return;const o=r.value;if(!o||o===this.value)return;!t&&!this.value&&!this.#ee()&&0===r.selectedIndex||(this._setValue(o),this.#te(o))}#re(e){let{syncValueFromSelected:t=!1}=void 0===e?{}:e;let r;const o=this.#T().map(e=>{const o=e.getAttribute("value")??"",n=e.textContent??"",i=e.hasAttribute("selected"),a=e.hasAttribute("disabled");return t&&void 0===r&&i&&(r=o),B`<option value="${o}" ?selected="${i}" ?disabled="${a}">${n}</option>`});this._options=o,t&&void 0!==r&&r!==this.value&&this._setValue(r)}connectedCallback(){super.connectedCallback(),this.#t=this.value,(this.autofocus||this.autoFocus)&&this.shadowRoot.querySelector("select").focus(),this.#re({syncValueFromSelected:!0}),this.ownerDocument?.defaultView?.addEventListener("pageshow",this.#Z),this.#P=new MutationObserver(()=>{this.#re({syncValueFromSelected:!0})}),this.#P.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["selected","disabled","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.ownerDocument?.defaultView?.removeEventListener("pageshow",this.#Z),this.#P?.disconnect()}firstUpdated(){this.value&&this.#te(this.value),this.#Q({allowDefaultFirstOption:!1})}formStateRestoreCallback(e,t){if("string"==typeof e&&e)return this._setValue(e),void this.#te(e);this.#Q({allowDefaultFirstOption:!0})}willUpdate(e){e.has("value")&&this.setValue(this.value)}updated(e){if(e.has("value")){const e=this.#G();e&&e.value!==this.value&&(e.value=this.value??""),this.#te(this.value??"")}}handleKeyDown(e){!this.readonly&&!this.readOnly||" "!==e.key&&"ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}get#oe(){return Ce([Gd,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&ec,this.invalid&&rc,this.disabled&&tc,(this.readonly||this.readOnly)&&oc])}get#ne(){return Ce([cc,this.invalid?uc:hc])}get#Y(){return Ce([ac,this.disabled&&sc])}get#ie(){return"select_id"}get#ae(){return this.helpText||this.hint?`${this.#ie}__hint`:void 0}onChange(e){const t=e.currentTarget.value;e.stopPropagation(),this._setValue(t),this.#te(t),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}render(){return B`<div class="${nc}">${Hd(this.label,()=>B`<label class="${lc}" for="${this.#ie}">${this.label} ${Hd(this.optional,()=>B`<span class="${dc}">${pt._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span>`)}</label>`)}<div class="${ic}"><select class="${this.#oe}" id="${this.#ie}" ?disabled="${this.disabled}" aria-readonly="${this.readonly}" aria-describedby="${De(this.#ae)}" aria-invalid="${De(this.invalid)}" aria-errormessage="${De(this.invalid&&this.#ae)}" @keydown="${this.handleKeyDown}" @change="${this.onChange}">${this._options}</select><div class="${this.#Y}"><w-icon name="ChevronDown" size="small" locale="${wt()}" class="flex"></w-icon></div></div>${Hd(this.helpText||this.always||this.invalid,()=>B`<div id="${this.#ae}" class="${this.#ne}">${this.helpText||this.hint}</div>`)}</div>`}}Qd([he({attribute:"auto-focus",type:Boolean,reflect:!0})],pc.prototype,"autoFocus",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"autofocus",void 0),Qd([he({attribute:"help-text",reflect:!0})],pc.prototype,"helpText",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"invalid",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"always",void 0),Qd([he({reflect:!0})],pc.prototype,"hint",void 0),Qd([he({reflect:!0})],pc.prototype,"label",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"optional",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"disabled",void 0),Qd([he({attribute:"read-only",type:Boolean,reflect:!0})],pc.prototype,"readOnly",void 0),Qd([he({type:Boolean,reflect:!0})],pc.prototype,"readonly",void 0),Qd([he({attribute:!1,state:!0})],pc.prototype,"_options",void 0),Qd([he({reflect:!0})],pc.prototype,"name",void 0),Qd([he({reflect:!0})],pc.prototype,"value",void 0),customElements.get("w-select")||customElements.define("w-select",pc);const bc=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}"),gc=a`.w-slider-thumb{pointer-events:none;grid-template-columns:1fr 24px 1fr;grid-template-areas:"slider slider slider""frommarker.tomarker""fromtextfield.totextfield";display:grid;position:relative}.w-slider-thumb__range{appearance:none;pointer-events:none;background-color:#0000;grid-area:slider;height:44px;margin-left:0}.w-slider-thumb__range::-webkit-slider-runnable-track{box-shadow:none;color:var(--w-s-color-text);height:var(--w-slider-track-height)}.w-slider-thumb__range::-webkit-slider-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;border-radius:50%}.w-slider-thumb__range[disabled]::-webkit-slider-thumb{cursor:auto}.w-slider-thumb__range::-moz-range-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;box-shadow:none;border-color:#0000;border-radius:50%}.w-slider-thumb__range[disabled]::-moz-range-thumb{cursor:auto}.w-slider-thumb__range:active::-webkit-slider-thumb,.w-slider-thumb__range:hover::-webkit-slider-thumb{background:var(--w-slider-thumb-background);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus,.w-slider-thumb__range:focus-visible{outline:none}.w-slider-thumb__range:focus-visible::-webkit-slider-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__range:active::-moz-range-thumb,.w-slider-thumb__range:hover::-moz-range-thumb{background:var(--w-s-color-background-primary-hover);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus-visible::-moz-range-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__tooltip-target{pointer-events:none;position-anchor:--thumb;position-area:center;border:2px solid #0000;border-radius:20px;width:8px;height:8px;display:block;position:absolute}.w-slider-thumb__from-marker,.w-slider-thumb__to-marker{color:var(--w-s-color-text-subtle);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);margin-inline:2px}.w-slider-thumb__from-marker{grid-area:frommarker}.w-slider-thumb__to-marker{text-align:right;grid-area:tomarker}.w-slider-thumb__textfield{pointer-events:auto;grid-area:3/1/4/3;margin-top:12px}:host([slot=from]) .w-slider-thumb__textfield{grid-column:1/2}:host([slot=from]) .w-slider-thumb__range{margin-left:var(--w-slider-thumb-size,28px)}:host([slot=to]) .w-slider-thumb__range{margin-right:var(--w-slider-thumb-size,28px)}:host([slot=from]) .w-slider-thumb__tooltip-target{transform:translateX(calc(-1 * var(--transform-offset,0px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__textfield{grid-area:3/3/4/4}:host([slot=to]) .w-slider-thumb__tooltip-target{transform:translateX(calc(var(--transform-offset,0px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}w-textfield{--w-textfield-placeholder-color-text:var(--w-s-color-text)}`;var mc=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class vc extends(Ae(se)){constructor(){super(...arguments),this.ariaLabel=null,this.ariaDescription=null,this.disabled=!1,this.invalid=!1,this.openEnded=!1,this.required=!1,this.suffix="",this._showTooltip=!1,this._inputHasFocus=!1,this._hiddenTextfield=!1,this.#t=void 0,this.anchorPositioningStyleElement=null}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[Pe,bc,gc];#t;resetFormControl(){this.value=this.#t,this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}#se(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()}#le(){this._showTooltip=!1}#de(){this.range&&(""===this.value?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))}#ce(e){this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invalid:e,slot:this.slot}}))}async updateFieldAfterValidation(){const e=this.shadowRoot.querySelector("w-textfield");await this.#he(e.value,!0)}async#he(e,t){const r=this.suffix??"";let o=Number.parseInt(e);if(this.openEnded&&!t&&this.step){if(!("to"===this.slot&&o>=Number(this.max)-1||"from"===this.slot&&o<=Number(this.min)+1)){const t=1/this.step;o=Math.round(o*t)/t,e=o.toString()}}const n=Number.parseInt(this.max),i=Number.parseInt(this.min);if(!this.openEnded&&(o>n||o<i))return this.#ce(pt.t({id:"slider.error.out_of_bounds",message:"Value must be between {min} and {max}",values:{min:`${this.min} ${r}`.trim(),max:`${this.max} ${r}`.trim()}})),{shouldCancel:!0};""===e&&this.required&&this.#ce(pt.t({id:"slider.error.required",message:"This field is required"})),this.value=e;const a=e===this.max||e===this.min;let s=!1;if(this.slot){const r=this.parentElement.querySelector('w-slider-thumb[slot="to"]'),l=this.parentElement.querySelector('w-slider-thumb[slot="from"]'),d=r.textfield.value||this.max,c=l.textfield.value||this.min,h=Number.parseInt(d),u=Number.parseInt(c),p=pt.t({id:"slider.error.overlap",message:"The maximum value cannot be less than the minimum"});if("from"===this.slot){const r=this.openEnded&&h>n?h:Math.min(h,this.openEnded?n-1:n);o>r&&(s=!0,this.openEnded&&a?this.value=String(r):this.value=d,t&&(this.#ce(p),await this.updateComplete,this.textfield.value=e))}else{const r=this.openEnded&&u<i?u:Math.max(Number.parseInt(c),this.openEnded?i+1:i);o<r&&(s=!0,this.openEnded&&a?this.value=String(r):this.value=c,t&&(this.#ce(p),await this.updateComplete,this.textfield.value=e))}}return s?{shouldCancel:!0}:(this.#ce(""),this.range.value=Math.min(Math.max(Number(e),Number(this.min)),Number(this.max)).toString(),this.value=this.openEnded&&!t&&a?"":e,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})}async#V(e){const t="W-TEXTFIELD"===e.currentTarget.tagName;if(e instanceof CustomEvent)return!1;const r=e.currentTarget.value;return!(await this.#he(r,t)).shouldCancel||(e.preventDefault(),!1)}async#ue(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(!this.openEnded)return;if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;const t=Number(this.range.value),r=this.step||1;let o;o="ArrowLeft"===e.key?t-r:t+r,o=Math.min(Math.max(o,Number(this.min)),Number(this.max));(await this.#he(o.toString(),!1)).shouldCancel&&e.preventDefault()}async#pe(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(this.textfield.value)return;let t="";"from"===this.slot?"ArrowUp"===e.key?t=String(Number(this.min)+1)||"1":"ArrowDown"===e.key&&(t=String(Number(this.min))||"0"):"ArrowUp"===e.key?t=String(Number(this.max))||"100":"ArrowDown"===e.key&&(t=String(Number(this.max)-1)||"99"),t&&(e.preventDefault(),await this.#he(t,!0))}async connectedCallback(){if(super.connectedCallback(),this.#t=this.value,this.setValue(this.value),this.slot&&!this.ariaDescription&&("from"===this.slot?this.ariaDescription=pt.t({id:"slider.label.from",comment:"Accessible label for the 'from value' input field in a range slider",message:"From"}):"to"===this.slot&&(this.ariaDescription=pt.t({id:"slider.label.to",comment:"Accessible label for the 'to value' input field in a range slider",message:"To"}))),"anchorName"in document.documentElement.style)await this.updateComplete;else{const e=import.meta.url.substring(0,import.meta.url.lastIndexOf("/"));try{const[{default:t}]=await Promise.all([import(`${e}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepend(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent="\n /*\n * The polyfill can only anchor to ::before and ::after pseudo elements, not the pseudo element slider thumb.\n * We work around that by recreating a transparent version of the active range\n * so that we can position relative to that, without crossing the shadow root boundary.\n */\n .polyfill-range {\n align-self: center;\n background: transparent;\n height: var(--w-slider-track-active-height);\n position: absolute;\n padding-inline-start: var(--active-range-inline-start-padding, 0);\n padding-inline-end: var(--active-range-inline-end-padding, 0);\n top: var(--_range-top);\n left: 0;\n right: 0;\n grid-area: slider;\n }\n\n .polyfill-active-range {\n anchor-name: --polyfilled-thumb;\n\n box-sizing: content-box;\n background: transparent;\n height: var(--w-slider-track-active-height);\n\n border-start-start-radius: var(--active-range-border-radius, 0);\n border-end-start-radius: var(--active-range-border-radius, 0);\n\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n #target {\n position: absolute;\n top: anchor(--polyfilled-thumb top);\n right: anchor(--polyfilled-thumb right);\n margin-right: 12px;\n }\n\n :host([name='from']) .polyfill-active-range {\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n :host([name='from']) #target {\n left: anchor(--polyfilled-thumb left);\n margin-left: 38px;\n }\n ",await t({roots:[this.shadowRoot],elements:[this.anchorPositioningStyleElement]})}catch(e){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:e}))}}const e=window.navigator.userAgent;/WebKit/.test(e)&&!/Chrome/.test(e)&&this.tooltipTarget&&this.tooltipTarget.style.setProperty("--transform-offset","var(--w-slider-thumb-size, 28px)"),this.#de()}get boundaryValue(){return"from"===this.slot?this.min:this.max}get textFieldDisplayValue(){return this._inputHasFocus?""!==this.value?this.value:this.range?.value?Math.min(Math.max(Number(this.range.value),Number(this.min)+1),Number(this.max)-1).toString():"":this.value}get tooltipDisplayValue(){let e=0;return e=this.tooltipFormatter?this.tooltipFormatter(this.value,this.slot):this.valueFormatter?this.valueFormatter(this.value,this.slot):""===this.value?this.range?.value??this.boundaryValue:this.value||0,e}get ariaDescriptionText(){let e="";const t=this.ariaDescription||"",r=""===this.value;return this.openEnded&&r&&(e="from"===this.slot?pt.t({id:"slider.placeholder.from",message:"Min"}):pt.t({id:"slider.placeholder.to",message:"Max"})),e?`${e}, ${t}`:t}updated(e){if(e.has("openEnded")&&this.openEnded&&!this.placeholder&&("to"===this.slot||""===this.slot?this.placeholder=pt.t({id:"slider.placeholder.to",message:"Max",comment:"Max as in short for Maximum"}):"from"===this.slot&&(this.placeholder=pt.t({id:"slider.placeholder.from",message:"Min",comment:"Min as in short for Minimum"}))),e.has("value")){void 0===this.#t&&void 0!==this.value&&(this.#t=this.value),this.setValue(this.value),this.#de();const t=e.get("value");""===this.value&&t&&this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}}render(){const e=this.placeholder&&!this.value;return B`<div class="w-slider-thumb">${"anchorName"in document.documentElement.style?H:B`<div class="polyfill-range"><div class="polyfill-active-range"></div></div>`} <input id="range" aria-label="${this.ariaLabel}" aria-describedby="${De(this.ariaDescription?"aria-description":void 0)}" class="w-slider-thumb__range" type="range" .value="${this.value}" min="${this.min}" max="${this.max}" step="${De(!this.openEnded&&this.step?this.step:void 0)}" ?disabled="${this.disabled}" @mousedown="${this.#se}" @mouseup="${this.#le}" @touchstart="${this.#se}" @touchend="${this.#le}" @focus="${this.#se}" @blur="${this.#le}" @input="${this.#V}" @keydown="${this.#ue}"> ${"from"!==this.slot&&this.slot?H:B`<span class="sr-only">${pt.t({id:"slider.label.from",message:"From"})+" "+(this.labelFormatter?this.labelFormatter("from"):this.min)+", "+pt.t({id:"slider.label.to",message:"To"})+" "+(this.labelFormatter?this.labelFormatter("to"):this.max)}</span>`} <span aria-hidden="true" class="w-slider-thumb__from-marker">${this.labelFormatter?this.labelFormatter("from"):this.min} </span><span aria-hidden="true" class="w-slider-thumb__to-marker">${this.labelFormatter?this.labelFormatter("to"):this.max}</span><w-textfield aria-label="${this.ariaLabel}" aria-description="${De(this.ariaDescriptionText)}" class="${xe({"w-slider-thumb__textfield":!0,"sr-only":this._hiddenTextfield})}" type="number" tabindex="${this._hiddenTextfield?-1:H}" placeholder="${this.placeholder}" .value="${this.textFieldDisplayValue}" .formatter="${this.valueFormatter&&!e?e=>this.valueFormatter(e,this.slot):H}" min="${this.openEnded?H:this.min}" max="${this.openEnded?H:this.max}" step="${De(this.step)}" ?invalid="${Boolean(this.invalid)}" @input="${this.#V}" @keydown="${this.#pe}" ?disabled="${this.disabled}">${this.suffix?B`<w-affix slot="suffix" label="${this.suffix??""}"></w-affix>`:H}</w-textfield><w-attention tooltip placement="top" flip distance="24" .show="${this._showTooltip}"><output id="target" class="w-slider-thumb__tooltip-target" slot="target"></output> <span slot="message">${this.tooltipDisplayValue}${this.suffix?B` ${this.suffix??""}`:H}</span></w-attention><span class="sr-only" id="aria-description">${this.ariaDescriptionText}</span></div>`}}mc([he({attribute:"aria-label"})],vc.prototype,"ariaLabel",void 0),mc([he({attribute:"aria-description"})],vc.prototype,"ariaDescription",void 0),mc([he({reflect:!0})],vc.prototype,"name",void 0),mc([he({reflect:!0})],vc.prototype,"value",void 0),mc([he({type:Boolean,reflect:!0})],vc.prototype,"disabled",void 0),mc([he({type:Boolean,reflect:!0})],vc.prototype,"invalid",void 0),mc([he({attribute:!1,reflect:!1})],vc.prototype,"openEnded",void 0),mc([he({reflect:!0})],vc.prototype,"placeholder",void 0),mc([ue()],vc.prototype,"markers",void 0),mc([ue()],vc.prototype,"required",void 0),mc([ue()],vc.prototype,"step",void 0),mc([ue()],vc.prototype,"min",void 0),mc([ue()],vc.prototype,"max",void 0),mc([ue()],vc.prototype,"suffix",void 0),mc([he({attribute:!1})],vc.prototype,"valueFormatter",void 0),mc([he({attribute:!1})],vc.prototype,"tooltipFormatter",void 0),mc([he({attribute:!1})],vc.prototype,"labelFormatter",void 0),mc([be('input[type="range"]')],vc.prototype,"range",void 0),mc([be(".w-slider-thumb__tooltip-target")],vc.prototype,"tooltipTarget",void 0),mc([be("w-textfield")],vc.prototype,"textfield",void 0),mc([ue()],vc.prototype,"_showTooltip",void 0),mc([ue()],vc.prototype,"_inputHasFocus",void 0),mc([ue()],vc.prototype,"_hiddenTextfield",void 0),customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",vc);const fc=JSON.parse('{"slider.error.out_of_bounds":["Værdien skal være mellem ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumværdien må ikke være mindre end minimumværdien"],"slider.error.required":["Dette felt er påkrævet"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),wc=JSON.parse('{"slider.error.out_of_bounds":["Value must be between ",["min"]," and ",["max"]],"slider.error.overlap":["The maximum value cannot be less than the minimum"],"slider.error.required":["This field is required"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),yc=JSON.parse('{"slider.error.out_of_bounds":["Arvon on oltava välillä ",["min"]," - ",["max"]],"slider.error.overlap":["Maksimiarvo ei voi olla pienempi kuin minimiarvo"],"slider.error.required":["Tämä kenttä on pakollinen"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),xc=JSON.parse('{"slider.error.out_of_bounds":["Verdien må være mellom ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumsverdien kan ikke være mindre enn minimumsverdien"],"slider.error.required":["Dette feltet er påkrevd"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),kc=JSON.parse('{"slider.error.out_of_bounds":["Värdet måste vara mellan ",["min"]," och ",["max"]],"slider.error.overlap":["Maxvärdet kan inte vara mindre än minimivärdet"],"slider.error.required":["Detta fält är obligatoriskt"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),_c=a`.w-slider{--w-slider-track-background:var(--w-s-color-background-disabled-subtle);--w-slider-track-active-background:var(--w-s-color-background-primary);--w-slider-track-height:4px;--w-slider-track-active-height:6px;--w-slider-thumb-background:var(--w-s-color-background-primary);--w-slider-thumb-background-hover:var(--w-s-color-background-primary-hover);--w-slider-thumb-size:28px;--w-slider-thumb-offset:calc(var(--w-slider-thumb-size) / 2);--w-slider-marker-color:var(--w-s-color-border);--_range-top:calc(var(--w-slider-thumb-size) / 2 + calc(var(--w-slider-track-active-height) - calc(var(--w-slider-track-height) / 2) + 1px));border:none;grid-template-columns:1fr;grid-template-areas:"label""description""slider""error";width:100%;margin:0;padding:0;display:grid;position:relative}.w-slider[disabled]{--w-slider-track-active-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background-hover:var(--w-s-color-background-disabled-subtle)}.w-slider__label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);color:var(--w-s-color-text);grid-area:label;padding-bottom:8px;font-weight:700}.w-slider__description{grid-area:description}.w-slider__range{background:var(--w-slider-track-background);height:var(--w-slider-track-active-height);top:var(--_range-top);border-radius:4px;grid-area:slider;align-self:center;padding-inline-start:var(--active-range-inline-start-padding,0);padding-inline-end:var(--active-range-inline-end-padding,0);position:absolute;left:0;right:0}.w-slider__active-range{box-sizing:content-box;background:var(--w-slider-track-active-background);height:var(--w-slider-track-active-height);--max-with-offset:calc(var(--max) + var(--over-under-offset,0));--offset-percentage:calc(calc(var(--from) - var(--min)) / calc(var(--max-with-offset) - var(--min)) * 100);margin-left:calc(max(var(--offset-percentage) * 1%, 0px) - var(--range-slider-magic-pixel,0px));--value-range:calc(var(--max-with-offset) - var(--min));--range-span-percentage:calc(calc(min(var(--to), var(--max-with-offset)) - max(var(--min), var(--from))) / var(--value-range) * 100);width:calc(var(--range-span-percentage) * 1% + var(--range-slider-magic-pixel,0px));z-index:1;border-start-start-radius:var(--active-range-border-radius,0);border-end-start-radius:var(--active-range-border-radius,0)}.w-slider__markers{--_marker-height:7px;--_marker-width:1px;background:linear-gradient(to right, var(--w-slider-marker-color) var(--_marker-width), #0000 1px calc(100% - 1px), var(--w-slider-marker-color) 100%) repeat-x;--_step-width-as-percent:calc(var(--markers) / var(--_value-range) * 100);background-size:calc(var(--_step-width-as-percent) * 1%) var(--_marker-height);background-position:bottom 0 left 8px right 8px;top:calc(var(--_range-top) + 2px);height:var(--_marker-height);margin-inline:var(--w-slider-thumb-offset);grid-area:slider;align-self:center;position:absolute;left:1px;right:1px}.w-slider__error{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);color:var(--w-s-color-text-negative);grid-area:error;padding-top:8px}.w-slider__help-text{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);grid-area:error;padding-top:8px}slot::slotted(w-slider-thumb){grid-area:slider;position:static;inset:0}`;var $c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class Sc extends se{static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#o=this.styles=[Pe,_c];constructor(){super(),this.disabled=!1,this.openEnded=!1,this.invalid=!1,this.required=!1,this.hiddenTextfield=!1,this._invalidMessage="",this._hasInternalError=!1,this._showError=!1,this._tabbableElements=[],yt(wc,xc,yc,fc,kc)}#be(){const e=this.querySelectorAll("w-slider-thumb");let t=!1;for(const r of e.values())r.min=this.edgeMin,r.max=this.edgeMax,r.step=this.step,r.suffix=this.suffix??"",r.required=this.required,r.labelFormatter=this.labelFormatter,r.valueFormatter=this.valueFormatter,r.tooltipFormatter=this.tooltipFormatter,r.openEnded=this.openEnded,r._hiddenTextfield=this.hiddenTextfield,r.ariaLabel||(r.slot||(r.ariaLabel=this.label||null),"from"===r.slot&&(r.ariaLabel=`${this.label} min`),"to"===r.slot&&(r.ariaLabel=`${this.label} max`)),"from"!==r.slot&&"to"!==r.slot||(t=!0),r.disabled=this.disabled,r.invalid=Boolean(this.errorText),this.#ge(r);t?(this.fieldset.style.setProperty("--active-range-inline-start-padding","var(--w-slider-thumb-size, 28px)"),this.fieldset.style.setProperty("--active-range-inline-end-padding","var(--w-slider-thumb-size, 28px)")):this.fieldset.style.setProperty("--active-range-border-radius","4px")}get edgeMin(){return this.openEnded?(Number(this.min)-1).toString():this.min}get edgeMax(){return this.openEnded?(Number(this.max)+1).toString():this.max}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.step&&this.fieldset.style.setProperty("--step",String(this.step)),void 0!==this.min&&this.fieldset.style.setProperty("--min",this.edgeMin),void 0!==this.max&&this.fieldset.style.setProperty("--max",this.max),this.markers&&this.fieldset.style.setProperty("--markers",String(this.markers)),this.openEnded&&this.fieldset.style.setProperty("--over-under-offset","1");const e=this.querySelectorAll("w-slider-thumb");if(2===e.length){this.fieldset.style.setProperty("--range-slider-magic-pixel","1px");const t=Array.from(e);this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[1].shadowRoot.querySelector("input"),this._tabbableElements[2]=t[0].shadowRoot.querySelector("w-textfield"),this._tabbableElements[3]=t[1].shadowRoot.querySelector("w-textfield")}else if(1===e.length){const t=Array.from(e);this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[0].shadowRoot.querySelector("w-textfield")}this.invalid&&this.error&&(this._showError=!0),this.#be()}updated(e){(e.has("disabled")||e.has("required")||e.has("min")||e.has("step")||e.has("max")||e.has("suffix")||e.has("labelFormatter")||e.has("valueFormatter")||e.has("_invalidMessage")||e.has("_hasInternalError"))&&this.#be(),(e.has("error")||e.has("invalid"))&&(this.error&&this.invalid?this._showError=!0:this._showError=!1,this.#be())}#me(e){e.stopPropagation();const t=e.target;this.#ge(t)}#V(e){const t=e.target;this.#ge(t);t.slot&&this.#ve()}#fe(){this.componentHasError?this._showError=!0:this._showError=!1,this.#be()}#c(e){if("Tab"===e.key){const t=this._tabbableElements.indexOf(e.target.shadowRoot.activeElement);if(-1===t)return;const r=e.shiftKey?-1:1,o=this._tabbableElements[t+r];if(!o)return;e.preventDefault(),o.focus()}}#ve(){let e=null,t=null;const r=this.querySelectorAll("w-slider-thumb");for(const o of r.values())"from"===o.slot&&(e=o),"to"===o.slot&&(t=o);e&&t&&(e.invalid||t.invalid)}#we(e){e.stopPropagation();const t=this._hasInternalError||this.invalid,r=e.target;if(this._hasInternalError=Boolean(e.detail.invalid)||this.invalid,this._invalidMessage=e.detail.invalid,!0===t&&!1===this._hasInternalError){const e=this.querySelectorAll("w-slider-thumb");for(const t of e.values())t!==r&&t.updateFieldAfterValidation()}}#ye(e,t){return void 0!==t.value&&null!==t.value||(t.value=this.openEnded?"":e),""===t.value?e:t.value}#ge(e){const t=e.slot;t||this.fieldset.style.setProperty("--from","0"),"from"===t&&this.fieldset.style.setProperty("--from",this.#ye(this.edgeMin,e)),t&&"to"!==t||this.fieldset.style.setProperty("--to",this.#ye(this.edgeMax,e))}get componentHasError(){return this.invalid||this._hasInternalError}get errorText(){return this._showError?this.error||this._invalidMessage:""}render(){return B`<fieldset id="fieldset" class="w-slider" @input="${this.#V}" @focusout="${this.#fe}" @slidervalidity="${this.#we}" @thumbreset="${this.#me}" @keydown="${this.#c}" aria-invalid="${this.errorText?"true":H}" ?disabled="${this.disabled}">${this.label?B`<legend class="w-slider__label"><slot id="label" name="label">${this.label}</slot></legend>`:B`<slot id="label" name="label"></slot>`}<slot class="w-slider__description" name="description"></slot>${this.markers?B`<div class="w-slider__markers"></div>`:H}<div class="w-slider__range"><div class="w-slider__active-range"></div></div><slot class="w-slider__slider" @slotchange="${this.#be}"></slot><slot class="w-slider__slider" name="from" @slotchange="${this.#be}"></slot><slot class="w-slider__slider" name="to" @slotchange="${this.#be}"></slot>${this.errorText?B`<p class="w-slider__error" aria-describes="fieldset">${this.errorText}</p>`:this.helpText?B`<p class="w-slider__help-text" aria-describes="fieldset">${this.helpText}</p>`:H}</fieldset>`}}$c([he({reflect:!0})],Sc.prototype,"label",void 0),$c([he({type:Boolean,reflect:!0})],Sc.prototype,"disabled",void 0),$c([he({type:Boolean,attribute:"open-ended"})],Sc.prototype,"openEnded",void 0),$c([he({type:String,reflect:!0})],Sc.prototype,"error",void 0),$c([he({type:String,reflect:!0,attribute:"help-text"})],Sc.prototype,"helpText",void 0),$c([he({type:Boolean,reflect:!0})],Sc.prototype,"invalid",void 0),$c([he({type:Boolean,reflect:!0})],Sc.prototype,"required",void 0),$c([he({reflect:!0})],Sc.prototype,"min",void 0),$c([he({reflect:!0})],Sc.prototype,"max",void 0),$c([he({type:Number,reflect:!0})],Sc.prototype,"markers",void 0),$c([he({type:Number,reflect:!0})],Sc.prototype,"step",void 0),$c([he({reflect:!0})],Sc.prototype,"suffix",void 0),$c([he({type:Boolean,reflect:!0,attribute:"hidden-textfield"})],Sc.prototype,"hiddenTextfield",void 0),$c([he({attribute:!1})],Sc.prototype,"valueFormatter",void 0),$c([he({attribute:!1})],Sc.prototype,"tooltipFormatter",void 0),$c([he({attribute:!1})],Sc.prototype,"labelFormatter",void 0),$c([be("fieldset")],Sc.prototype,"fieldset",void 0),$c([ue()],Sc.prototype,"_invalidMessage",void 0),$c([ue()],Sc.prototype,"_hasInternalError",void 0),$c([ue()],Sc.prototype,"_showError",void 0),$c([ue()],Sc.prototype,"_tabbableElements",void 0),customElements.get("w-slider")||customElements.define("w-slider",Sc);const Ec=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.grid{display:grid}.static{position:static}.w-full{width:100%}"),Cc=JSON.parse('{"steps.aria.active":["Trinindikator aktiv cirkel"],"steps.aria.completed":["Trinindikator fuldført cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}'),Oc=JSON.parse('{"steps.aria.active":["Step indicator active circle"],"steps.aria.completed":["Step indicator completed circle"],"steps.aria.emptyCircle":["Empty circle"]}'),zc=JSON.parse('{"steps.aria.active":["Vaiheilmaisin aktiivinen ympyrä"],"steps.aria.completed":["Vaiheilmaisin valmis ympyrä"],"steps.aria.emptyCircle":["Tyhjä ympyrä"]}'),Ac=JSON.parse('{"steps.aria.active":["Stegindikator aktiv sirkel"],"steps.aria.completed":["Stegindikator hel sirkel"],"steps.aria.emptyCircle":["Tom sirkel"]}'),Dc=JSON.parse('{"steps.aria.active":["Stegindikator aktiv cirkel"],"steps.aria.completed":["Stegindikator fulländad cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}');var Pc=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Mc="group/step",Tc="group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16",Rc="group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid items-center",jc="grid-cols-[20px_1fr]",Nc="grid-cols-[1fr_20px] text-right",Ic="rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted",Vc="col-start-2",Fc="row-start-2 justify-self-end",Lc="s-border-primary s-bg-primary",qc="s-border s-bg",Bc="transition-colors duration-300",Wc="w-2 h-full justify-self-center",Hc="col-start-2",Yc="h-2 w-full row-start-2",Xc="s-bg-disabled",Uc="s-bg-primary",Jc="last:mb-0",Kc="row-span-2 pb-32",Zc="col-span-3 px-16 row-start-1 text-center";class Qc extends se{static#e=this.styles=[Pe,Ec];constructor(){super(),this.active=!1,this.completed=!1,this._context={horizontal:!1,right:!1,isLast:!1,isFirst:!1},this._internals=this.attachInternals(),yt(Oc,Ac,zc,Cc,Dc)}connectedCallback(){super.connectedCallback(),this._internals.role="listitem"}setContext(e){this._context=e}getAriaLabel(){return this.completed?pt._({id:"steps.aria.completed",message:"Step indicator completed circle",comment:"Completed circle"}):this.active?pt._({id:"steps.aria.active",message:"Step indicator active circle",comment:"Active circle"}):pt._({id:"steps.aria.emptyCircle",message:"Empty circle",comment:"Empty circle"})}render(){const e=!this._context.horizontal,t=!this._context.right,r=this._context.isFirst,o=this._context.isLast,n=Ce([Mc,e?Tc:Rc,e?t?jc:Nc:""]),i=Ce([Bc,Yc,this.active||this.completed?Uc:Xc,r?"invisible":""]),a=Ce([Ic,e?t?"":Vc:Fc,this.active||this.completed?Lc:qc]),s=Ce([Bc,e?Wc:Yc,e&&!t?Hc:"",this.completed?Uc:Xc,o?"invisible":""]),l=Ce([Jc,e?Kc:Zc,o?"pb-0":""]);return B`<div class="${n}" style="${De(this._context.horizontal?"height: 100%;":void 0)}">${e?H:B`<div class="${i}"></div>`}<div class="${a}" role="img" aria-label="${this.getAriaLabel()}" aria-current="${this.active?"step":H}">${this.completed?B`<w-icon name="Check" size="small" locale="${wt()}" data-testid="completed-icon" class="flex"></w-icon>`:H}</div><div class="${s}"></div><div class="${l}" style="${De(this._context.horizontal?"height: 100%;":void 0)}"><slot></slot></div></div>`}}Pc([he({type:Boolean,reflect:!0})],Qc.prototype,"active",void 0),Pc([he({type:Boolean,reflect:!0})],Qc.prototype,"completed",void 0),Pc([ue()],Qc.prototype,"_context",void 0),customElements.get("w-step")||customElements.define("w-step",Qc);var Gc=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const eh="w-full",th="flex";class rh extends se{constructor(){super(...arguments),this.horizontal=!1,this.right=!1}static#e=this.styles=[Pe,Ec];updated(){this.updateStepsContext()}updateStepsContext(){const e=this.querySelectorAll("w-step");e.forEach((t,r)=>{t.setContext({horizontal:this.horizontal,right:this.right,isLast:r===e.length-1,isFirst:0===r})})}render(){const e=Ce([eh,this.horizontal&&th]);return B`<div role="list" class="${e}" ${this.horizontal&&"style='display: grid; grid-auto-rows: 1fr;grid-template-columns: 1fr;'"}><slot></slot></div>`}}Gc([he({type:Boolean,reflect:!0})],rh.prototype,"horizontal",void 0),Gc([he({type:Boolean,reflect:!0})],rh.prototype,"right",void 0),customElements.get("w-step-indicator")||customElements.define("w-step-indicator",rh);const oh=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-s-color-border-strong\\]{background-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:bg-\\[--w-s-color-border-strong-hover\\]{background-color:var(--w-s-color-border-strong-hover)}.border{border-width:1px}.rounded-full{border-radius:9999px}.block{display:block}.inline-block{display:inline-block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline{outline-style:solid}.left-0{left:0}.left-4{left:.4rem}.top-0{top:0}.top-4{top:.4rem}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.group:hover .group-hover\\:s-bg-hover{background-color:var(--w-s-color-background-hover)}.group:hover .group-hover\\:s-bg-primary-hover{background-color:var(--w-s-color-background-primary-hover)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:s-border-strong-hover{border-color:var(--w-s-color-border-strong-hover)}.h-16{height:1.6rem}.h-24{height:2.4rem}.h-full{height:100%}.w-16{width:1.6rem}.w-44{width:4.4rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.translate-x-20{--w-translate-x:2rem;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform-gpu{transform:translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}");var nh=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const ih="block relative h-24 w-44 cursor-pointer group focusable rounded-full",ah="pointer-events-none",sh="absolute top-0 left-0 h-full w-full rounded-full transition-colors",lh="s-bg-primary group-hover:s-bg-primary-hover",dh="s-bg border s-border-strong group-hover:s-bg-hover group-hover:s-border-strong-hover",ch="s-bg-disabled",hh="s-bg-disabled-subtle border s-border-disabled",uh="absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform",ph="translate-x-20",bh="s-bg",gh="bg-[--w-s-color-border-strong] group-hover:bg-[--w-s-color-border-strong-hover]",mh="s-bg-disabled-subtle",vh="s-bg-disabled";class fh extends(Ae(se)){constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.#xe=!1,this._handleHostClick=e=>{this.disabled||e.composedPath()[0]===this&&this._handleClick()},this._handleKeyDown=e=>{this.disabled||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this._handleClick())}}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#xe;static#o=this.styles=[Pe,oh,a`:host{display:inline-block}button:focus{outline:none}button:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}`];get _baseClasses(){return Ce([ih,this.disabled&&ah])}get _trackClasses(){return Ce([sh,this.disabled?this.checked?ch:hh:this.checked?lh:dh])}get _handleClasses(){return Ce([uh,this.checked&&ph,this.disabled?this.checked?mh:vh:this.checked?bh:gh])}_handleClick(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value||null},bubbles:!0,composed:!0})))}_syncA11yState(){this.internals.ariaChecked=this.checked?"true":"false",this.internals.ariaDisabled=this.disabled?"true":null}connectedCallback(){this.#xe=this.checked,super.connectedCallback(),this.internals.role="switch";const e=this.getAttribute("aria-label");e&&(this.internals.ariaLabel=e),this.disabled||this.setValue(this.checked&&this.value?this.value:null),this._syncA11yState(),this.addEventListener("click",this._handleHostClick),this.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){this.removeEventListener("click",this._handleHostClick),this.removeEventListener("keydown",this._handleKeyDown),super.disconnectedCallback()}willUpdate(e){e.has("checked")&&(this.disabled||this.setValue(this.checked&&this.value?this.value:null)),(e.has("checked")||e.has("disabled"))&&this._syncA11yState()}resetFormControl(){this.checked=this.#xe}render(){return B`<div><button type="button" role="none" tabindex="${this.disabled?-1:0}" class="${this._baseClasses}" ?disabled="${this.disabled}" @click="${this._handleClick}"><span data-testid="track" class="${this._trackClasses}"></span> <span data-testid="handle" class="${this._handleClasses}"></span></button></div>`}}nh([he({type:String,reflect:!0})],fh.prototype,"name",void 0),nh([he({type:String,reflect:!0})],fh.prototype,"value",void 0),nh([he({type:Boolean,reflect:!0})],fh.prototype,"checked",void 0),nh([he({type:Boolean,reflect:!0})],fh.prototype,"disabled",void 0),customElements.get("w-switch")||customElements.define("w-switch",fh);const wh=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.inline-grid{display:inline-grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.-bottom-0{bottom:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.-mb-1{margin-bottom:-.1rem}.mb-32{margin-bottom:3.2rem}.resize{resize:both}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}");var yh=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const xh="grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary",kh="s-text-subtle",_h="s-text-link s-border-selected",$h="mx-auto",Sh="flex items-center justify-center gap-8",Eh="content-underlined";class Ch extends se{static#e=this.styles=[Pe,wh,a`::slotted([slot=icon]){display:flex}button.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus,#1a73e8);outline-offset:var(--w-outline-offset,1px)}`];static#o=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this._handleClick=e=>{e.tab||(e.tab=this)},this.active=!1,this.over=!1,this._internals=this.attachInternals()}get tabIndex(){return this._parentTabIndex??0}set tabIndex(e){this._parentTabIndex=e}get _computedAriaSelected(){return this._parentAriaSelected??this._ownAriaSelected}get _effectiveAriaControls(){return this._ariaControlsAttr||this.for||""}set ariaSelected(e){const t=this._ownAriaSelected;this._ownAriaSelected=e,this._internals.ariaSelected=this._computedAriaSelected??null,this.requestUpdate("ariaSelected",t)}get ariaSelected(){return this._computedAriaSelected??"false"}get _classes(){return Ce(["focusable appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",xh,this.active||"true"===this.ariaSelected?_h:kh])}get _hasIcon(){return null!==this.querySelector('[slot="icon"]')}connectedCallback(){super.connectedCallback(),this._internals.role="tab",this.syncAriaControls(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}updated(e){super.updated(e);const t=e;e.has("_parentAriaSelected")&&(this._internals.ariaSelected=this._computedAriaSelected??null),t.has("_ariaControlsAttr")&&this.syncAriaControls(),e.has("for")&&this.syncAriaControls(),e.has("active")&&this.hasAttribute("active")&&(this._internals.ariaSelected=this.active?"true":"false")}syncAriaControls(){const e=this._effectiveAriaControls,t=this.closest("w-tabs"),r=t?.querySelector(`w-tab-panel#${CSS.escape(e)}`)??this.ownerDocument?.getElementById(e)??null,o=this._internals;"ariaControlsElements"in o?o.ariaControlsElements=r?[r]:[]:"ariaControls"in o&&(o.ariaControls=e||null)}render(){const e=this._hasIcon;return B`<button type="button" role="none" id="warp-tab-${this.for}" class="${this._classes}" tabindex="${this._parentTabIndex??0}" aria-controls="${this._effectiveAriaControls}" @click="${e=>{e.tab=this}}" style="height:100%">${e?this.over?B`<span class="${$h}"><slot name="icon"></slot></span><span class="${Eh}"><slot></slot></span>`:B`<div class="${Sh}"><slot name="icon"></slot><slot></slot></div>`:B`<span class="${Eh}"><slot></slot></span>`}</button>`}}yh([he({attribute:"for",reflect:!0})],Ch.prototype,"for",void 0),yh([he({attribute:"aria-controls"})],Ch.prototype,"_ariaControlsAttr",void 0),yh([he({attribute:!1})],Ch.prototype,"_parentTabIndex",void 0),yh([he({attribute:!1})],Ch.prototype,"_parentAriaSelected",void 0),yh([he({attribute:"aria-selected"})],Ch.prototype,"ariaSelected",null),yh([he({type:Boolean,reflect:!0})],Ch.prototype,"active",void 0),yh([he({type:Boolean,reflect:!0})],Ch.prototype,"over",void 0),customElements.get("w-tab")||customElements.define("w-tab",Ch);var Oh=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};class zh extends se{static#e=this.styles=[Pe,wh,a`:host{display:block}:host([hidden]){display:block!important}.panel-content{display:none}.panel-content[data-active]{display:block}`];constructor(){super(),this._internals=this.attachInternals()}set active(e){this._ownActive=e}get active(){return this._parentActive??this._ownActive??!1}connectedCallback(){super.connectedCallback(),this._internals.role="tabpanel",this.syncA11yState()}updated(){this.syncA11yState()}syncA11yState(){const e=this._internals;e.ariaLabelledBy=this._parentAriaLabelledBy||null,e.ariaHidden=this.active?"false":"true"}render(){return B`<div class="panel-content" ?data-active="${this.active}"><slot></slot></div>`}}Oh([he({attribute:"id",reflect:!0})],zh.prototype,"id",void 0),Oh([he({type:Boolean})],zh.prototype,"active",null),Oh([he({attribute:!1})],zh.prototype,"_parentActive",void 0),Oh([he({attribute:!1})],zh.prototype,"_parentAriaLabelledBy",void 0),customElements.get("w-tab-panel")||customElements.define("w-tab-panel",zh);function Ah(e){return void 0===e&&(e=""),`${e}${(e=>{void 0===e&&(e=21);let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})()}`}var Dh=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Ph="border-b s-border mb-32",Mh="inline-grid relative -mb-1",Th="absolute s-border-selected -bottom-0 border-b-4 transition-all",Rh={cols1:"grid-cols-1",cols2:"grid-cols-2",cols3:"grid-cols-3",cols4:"grid-cols-4",cols5:"grid-cols-5",cols6:"grid-cols-6",cols7:"grid-cols-7",cols8:"grid-cols-8",cols9:"grid-cols-9"};class jh extends se{static#e=this.styles=[Pe,wh];constructor(){super(),this._uniqueId=Ah(),this._activeTabFor="",this._updateSelectionIndicatorDebounced=function(e,t,r){let o;return void 0===r&&(r=!1),function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];const s=r&&!o;o&&clearTimeout(o),o=setTimeout(()=>{o=null,r||e(...i)},t),s&&e(...i)}}(this.updateSelectionIndicator.bind(this),100),this._assignSlots=()=>{Array.from(this.children).forEach(e=>{e instanceof HTMLElement&&("W-TAB"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","tabs"),"W-TAB-PANEL"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","panels"))}),this.requestUpdate()},this._handleTabClick=e=>{const t=e.tab?.for;t&&t!==this._activeTabFor&&(this.active=t,this._activeTabFor=t,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())},this._handleKeyDown=e=>{if(e.altKey||e.ctrlKey||e.shiftKey||!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;const t=Array.from(this.querySelectorAll("w-tab")),r=t.findIndex(e=>e.for===this._activeTabFor);if(-1===r)return;let o=r;switch(e.key){case"Home":o=0;break;case"End":o=t.length-1;break;case"ArrowLeft":o=Math.max(0,r-1);break;case"ArrowRight":o=Math.min(t.length-1,r+1)}if(o!==r){e.preventDefault();const r=t[o],n=r.for;n&&(this.active=n,this._activeTabFor=n,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange(),r.focus())}},this.addEventListener("click",this._handleTabClick)}connectedCallback(){super.connectedCallback(),this.active&&(this._activeTabFor=this.active),this._assignSlots(),"undefined"!=typeof ResizeObserver&&(this._resizeObserver=new ResizeObserver(()=>{this._updateSelectionIndicatorDebounced()}),this._resizeObserver.observe(this)),window.addEventListener("resize",this._updateSelectionIndicatorDebounced)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&this._resizeObserver.disconnect(),window.removeEventListener("resize",this._updateSelectionIndicatorDebounced),this.removeEventListener("click",this._handleTabClick)}firstUpdated(){this._assignSlots(),this._initializeActiveTab(),this.updateSelectionIndicator(),this.updatePanels()}updated(e){e.has("active")&&this.active!==this._activeTabFor&&(this._activeTabFor=this.active,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())}get tabs(){const e=this.shadowRoot?.querySelector('slot[name="tabs"]');if(!e)return[];return e.assignedElements({flatten:!0}).filter(e=>"w-tab"===e.tagName.toLowerCase())}get activeTab(){return this.tabs.filter(e=>e.for===this._activeTabFor)[0]}_initializeActiveTab(){this.activeTab?this._activeTabFor=this.activeTab.getAttribute("for")||"":this.tabs.length>0&&(this._activeTabFor=this.tabs[0].getAttribute("for")||""),this._activeTabFor&&this._activeTabFor!==this.active&&(this.active=this._activeTabFor)}_notifyTabChange(){this.dispatchEvent(new CustomEvent("change",{detail:{panelId:this._activeTabFor},bubbles:!0,composed:!0}))}updateSelectionIndicator(){requestAnimationFrame(()=>{if(!this.tabList||!this.selectionIndicator)return;if(!this.activeTab)return;const e=this.tabList.getBoundingClientRect(),t=this.activeTab.getBoundingClientRect(),r=t.left-e.left,o=t.width;this.selectionIndicator.style.left=`${r}px`,this.selectionIndicator.style.width=`${o}px`})}updatePanels(){const e=Array.from(this.querySelectorAll("w-tab"));e.forEach((e,t)=>{e.id||(e.id=`w-tab-${this._uniqueId}-${t}`);const r=e.for===this._activeTabFor;e._parentAriaSelected=r?"true":"false",e._parentTabIndex=r?0:-1});Array.from(this.querySelectorAll("w-tab-panel")).forEach(t=>{const r=e.find(e=>e.for===t.id);r&&(t._parentAriaLabelledBy=r.id),t._parentActive=t.id===this._activeTabFor})}get _tabCount(){return this.querySelectorAll("w-tab").length}get _gridClass(){const e=Math.min(this._tabCount,9);return Rh[`cols${e}`]||Rh.cols1}render(){const e=Ce(Ph),t=Ce([Mh,this._gridClass]);return B`<div class="${e}"><div role="tablist" class="${t}" @keydown="${this._handleKeyDown}"><slot name="tabs" @slotchange="${this._assignSlots}"></slot><span class="selection-indicator ${Th}" data-testid="selection-indicator"></span></div></div><slot name="panels" @slotchange="${this._assignSlots}"></slot><slot @slotchange="${this._assignSlots}"></slot>`}}Dh([he({reflect:!0})],jh.prototype,"active",void 0),Dh([be('[role="tablist"]')],jh.prototype,"tabList",void 0),Dh([be(".selection-indicator")],jh.prototype,"selectionIndicator",void 0),customElements.get("w-tabs")||customElements.define("w-tabs",jh);const Nh=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.visible{visibility:visible}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}");var Ih=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const Vh="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",Fh="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",Lh="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",qh="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",Bh="pl-0 bg-transparent pointer-events-none",Wh="placeholder:s-text-placeholder",Hh="min-h-[42] sm:min-h-[45]",Yh="resize-none",Xh="antialiased block relative text-s font-bold pb-4 cursor-pointer s-text flex",Uh="pl-8 font-normal text-s s-text-subtle",Jh="text-xs mt-4 block",Kh="s-text-subtle",Zh="s-text-negative";class Qh extends(Ae(se)){constructor(){super(...arguments),this.disabled=!1,this.invalid=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.minHeight=Number.NEGATIVE_INFINITY,this.maxHeight=Number.POSITIVE_INFINITY,this.#t=void 0,this.#ke=Ah("textarea-"),this.#_e=!1,this.#$e=void 0,this.#a=!1,this.#s=e=>{e.preventDefault(),this.#a=!0,this.#d()}}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#t;#ke;#_e;#$e;#a;updated(e){e.has("value")&&void 0!==this.value&&this.setValue(this.value),(e.has("value")||e.has("required")||e.has("disabled"))&&this.#d()}resetFormControl(){this.value=this.#t,this.#a=!1,this.#Se(),this.#d()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.#d(),this.internals.checkValidity()}reportValidity(){return this.#a=!0,this.#d(),this.internals.checkValidity()}setCustomValidity(e){e?(this.internals.setValidity({customError:!0},e,this._textarea),this.#Ee(e)):(this.#Se(),this.#d())}#Ee(e){this.#_e||(this.#$e=this.helpText),this.#_e=!0,this.invalid=!0,this.helpText=e}#Se(){this.#_e&&(this.invalid=!1,this.helpText=this.#$e,this.#$e=void 0,this.#_e=!1)}#d(){if(this.disabled)return this.internals.setValidity({}),void this.#Se();if(this.required&&!this.value){const e=this._textarea?.validationMessage||"";return this.internals.setValidity({valueMissing:!0},e,this._textarea),void(this.#a&&this.#Ee(e))}this.internals.setValidity({}),this.#Se()}static#o=this.styles=[Pe,Nh];get _textareaStyles(){return Ce([Vh,Hh,!!this.placeholder&&Wh,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Fh,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&qh,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&Lh,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&Bh,this.maxRows&&Yh])}get _helptextstyles(){return Ce([Jh,this.invalid?Zh:Kh])}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return this.#ke}get _error(){if(this.invalid&&this._helpId)return this._helpId}async connectedCallback(){if(super.connectedCallback(),this.#t=this.value,void 0!==this.value&&this.setValue(this.value),this.addEventListener("invalid",this.#s),await this.updateComplete,this.value||this.minRows){const e=this.shadowRoot?.querySelector("textarea");e&&this.#Ce(e)}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this.#s)}firstUpdated(e){super.firstUpdated(e),this.#d()}handler(e){const t=e.currentTarget;this.value=t.value,this.#Ce(t)}#Oe(){this.#a=!0,this.#d()}#s;#Ce(e){const t=getComputedStyle(e),r=Number.parseFloat(t.getPropertyValue("border-top-width")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width")),n=Number.parseFloat(t.getPropertyValue("line-height")),i=Number.parseFloat(t.getPropertyValue("padding-top"))+Number.parseFloat(t.getPropertyValue("padding-bottom"))+o+r;this.minRows&&(this.minHeight=n*this.minRows+i),this.maxRows&&(this.maxHeight=n*this.maxRows+i);const a=e.scrollHeight+r+o,s=Math.min(this.maxHeight,Math.max(this.minHeight,a));e.style.setProperty("height",s+"px")}render(){return B`${this.label?B`<label for="${this._id}" class="${Xh}">${this.label} ${this.optional?B`<span class="${Uh}">${pt._({id:"textarea.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span>`:H}</label>`:H} <textarea id="${this._id}" class="${this._textareaStyles}" name="${De(this.name)}" placeholder="${De(this.placeholder)}" .value="${this.value||""}" aria-describedby="${De(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${De(this._error)}" aria-invalid="${this.invalid?"true":H}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" @input="${this.handler}" @blur="${this.#Oe}">
|
|
95
|
+
</textarea> ${this.helpText?B`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`:H}`}}Ih([he({type:Boolean,reflect:!0})],Qh.prototype,"disabled",void 0),Ih([he({type:Boolean,reflect:!0})],Qh.prototype,"invalid",void 0),Ih([he({type:String,reflect:!0})],Qh.prototype,"label",void 0),Ih([he({type:String,reflect:!0,attribute:"help-text"})],Qh.prototype,"helpText",void 0),Ih([he({type:Number,reflect:!0,attribute:"maximum-rows"})],Qh.prototype,"maxRows",void 0),Ih([he({type:Number,reflect:!0,attribute:"minimum-rows"})],Qh.prototype,"minRows",void 0),Ih([he({type:String,reflect:!0})],Qh.prototype,"name",void 0),Ih([he({type:String,reflect:!0})],Qh.prototype,"placeholder",void 0),Ih([he({type:Boolean,reflect:!0,attribute:"read-only"})],Qh.prototype,"readOnly",void 0),Ih([he({type:Boolean,reflect:!0})],Qh.prototype,"readonly",void 0),Ih([he({type:Boolean,reflect:!0})],Qh.prototype,"required",void 0),Ih([he({type:String,reflect:!0})],Qh.prototype,"value",void 0),Ih([he({type:Boolean,reflect:!0})],Qh.prototype,"optional",void 0),Ih([ue()],Qh.prototype,"minHeight",void 0),Ih([ue()],Qh.prototype,"maxHeight",void 0),Ih([be("textarea")],Qh.prototype,"_textarea",void 0),customElements.get("w-textarea")||customElements.define("w-textarea",Qh);const Gh=i("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-transparent{background-color:#0000}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.grid{display:grid}.shrink-0{flex-shrink:0}.auto-rows-auto{grid-auto-rows:auto}.overflow-hidden{overflow:hidden}.self-center{align-self:center}.bottom-16{bottom:1.6rem}.left-0{left:0}.right-0{right:0}.justify-center{justify-content:center}.justify-items-center{justify-items:center}.fixed{position:fixed}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.hover\\\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.w-full{width:100%}.h-\\\\[16px\\\\]{height:16px}.w-\\\\[16px\\\\]{width:16px}.mx-8{margin-left:.8rem;margin-right:.8rem}.mx-auto{margin-left:auto;margin-right:auto}.last-child\\\\:mb-0>:last-child{margin-bottom:0}.ml-auto{margin-left:auto}.mr-8{margin-right:.8rem}.mt-16{margin-top:1.6rem}.m-\\\\[8px\\\\]{margin:8px}.p-8{padding:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.p-\\\\[8px\\\\]{padding:8px}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:480px){.sm\\\\:mx-16{margin-left:1.6rem;margin-right:1.6rem}}");var eu=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const tu="fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",ru="grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none",ou="w-full";class nu extends se{constructor(){super(...arguments),this._toasts=new Map}static#e=this.styles=[Pe,Gh,a`:host{display:block}`];connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{const e=[],t=[];for(const r of this._toasts)Date.now()<=r[1].duration?e.push(r):t.push(r);const r=[];for(const[e]of t){const t=this.renderRoot.querySelector(`#${e}`);t&&r.push(t.collapse())}Promise.all(r).then(()=>{e.length!==this._toasts.size&&(this._toasts=new Map(e))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let e=document.querySelector("w-toast-container");return e||(e=document.createElement("w-toast-container"),document.body.appendChild(e)),e}get _toastsArray(){return Array.from(this._toasts).map(e=>{let[,t]=e;return t})}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(e)}set(e){if(!e.id)throw new Error('invalid or undefined "id" on toast object');const t=this._toasts.set(e.id,{id:e.id,type:e.type??"success",text:e.text??"",canclose:e.canclose??!1,duration:Date.now()+(e.duration||5e3)});return this._toasts=new Map(Array.from(this._toasts)),t}async del(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');const t=this.renderRoot.querySelector(`#${e}`);if(!this._toasts.has(e)||!t)return!1;await t.collapse();const r=this._toasts.delete(e);return this._toasts=new Map(Array.from(this._toasts)),r}render(){return B`<aside class="${tu}"><div class="${ru}" id="w-toast-container-list">${ui(this._toastsArray,e=>e.id,e=>B`<w-toast class="${ou}" id="${e.id}" type="${e.type}" text="${e.text}" ?canclose="${e.canclose}" @close="${()=>this.del(e.id)}"></w-toast>`)}</div></aside>`}}eu([ue()],nu.prototype,"_toasts",void 0),customElements.get("w-toast-container")||customElements.define("w-toast-container",nu);const iu=JSON.parse('{"toast.aria.error":["Fejl"],"toast.aria.successful":["Fuldført"],"toast.aria.warning":["Advarsel"]}'),au=JSON.parse('{"toast.aria.error":["Error"],"toast.aria.successful":["Successful"],"toast.aria.warning":["Warning"]}'),su=JSON.parse('{"toast.aria.error":["Virhe"],"toast.aria.successful":["Onnistui"],"toast.aria.warning":["Varoitus"]}'),lu=JSON.parse('{"toast.aria.error":["Feil"],"toast.aria.successful":["Vellykket"],"toast.aria.warning":["Advarsel"]}'),du=JSON.parse('{"toast.aria.error":["Fel"],"toast.aria.successful":["Genomfört"],"toast.aria.warning":["Varning"]}'),cu="undefined"!=typeof window;function hu(){return customElements.get("w-toast-container")}function uu(e,t){if(!cu)return;const r=hu().init(),o={id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success",...t};return r.set(o),o}function pu(e){if(!cu)return;return hu().init().del(e)}function bu(e,t){if(!cu)return;const r=hu().init();return r.set({...r.get(e),...t}),r.get(e)}var gu=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};const mu="relative overflow-hidden w-full",vu="flex group p-8 mt-16 rounded-8 border-2 pointer-events-auto transition-all",fu="s-bg-positive-subtle s-border-positive-subtle s-text",wu="s-bg-warning-subtle s-border-warning-subtle s-text",yu="s-bg-negative-subtle s-border-negative-subtle s-text",xu="shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",ku="s-icon-positive",_u="s-icon-warning",$u="s-icon-negative",Su="self-center mr-8 py-4 last-child:mb-0";class Eu extends se{static#e=this.styles=[Pe,Gh,a`:host{display:block}`];constructor(){super(),this.type="success",this.text="",this.canclose=!1,this._expanded=!1,yt(au,lu,su,iu,du),this.id||(this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&Xs(this._wrapper,()=>this._expanded=!0)}get#ze(){const e=this.type;return Ce([vu,"success"===e&&fu,"warning"===e&&wu,"error"===e&&yu])}get#Ae(){const e=this.type;return Ce([xu,"success"===e&&ku,"warning"===e&&_u,"error"===e&&$u])}get _wrapper(){return this.renderRoot?.querySelector("section")??null}get _warning(){return"warning"===this.type}get _error(){return"error"===(this.type||"success")}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?pt._({id:"toast.aria.warning",message:"Warning",comment:"Default screenreader message for warning in toast component"}):this._error?pt._({id:"toast.aria.error",message:"Error",comment:"Default screenreader message for error in toast component"}):pt._({id:"toast.aria.successful",message:"Successful",comment:"Default screenreader message for successful in toast component"})}get _iconMarkup(){const e=wt();return this._warning?B`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:this._error?B`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:B`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?Us(this._wrapper,e):e()})}close(){const e=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}render(){return this.text?B`<section class="${mu}" aria-label="${this._typeLabel}"><div class="${this.#ze}"><div class="${this.#Ae}">${this._iconMarkup}</div><div role="${this._role}" class="${Su}"><p>${this.text}</p></div>${Hd(!0===this.canclose,()=>B`<w-button variant="pill" small="" @click="${this.close}"><w-icon name="Close" size="small" locale="${wt()}" style="display:flex" class="flex"></w-icon></w-button>`)}</div></section>`:B``}}gu([he({type:String,attribute:!0,reflect:!0})],Eu.prototype,"id",void 0),gu([he({type:String,attribute:!0,reflect:!0,useDefault:!0})],Eu.prototype,"type",void 0),gu([he({type:String,attribute:!0,reflect:!0})],Eu.prototype,"text",void 0),gu([he({type:Boolean,attribute:!0,reflect:!0})],Eu.prototype,"canclose",void 0),gu([ue()],Eu.prototype,"_expanded",void 0),customElements.get("w-toast")||customElements.define("w-toast",Eu),Promise.all([customElements.whenDefined("w-icon"),customElements.whenDefined("w-textfield"),customElements.whenDefined("w-affix"),customElements.whenDefined("w-alert"),customElements.whenDefined("w-link"),customElements.whenDefined("w-button"),customElements.whenDefined("w-attention"),customElements.whenDefined("w-badge"),customElements.whenDefined("w-box"),customElements.whenDefined("w-breadcrumbs"),customElements.whenDefined("w-card"),customElements.whenDefined("w-checkbox"),customElements.whenDefined("w-checkbox-group"),customElements.whenDefined("w-combobox"),customElements.whenDefined("w-datepicker"),customElements.whenDefined("w-expandable"),customElements.whenDefined("w-modal"),customElements.whenDefined("w-modal-footer"),customElements.whenDefined("w-modal-header"),customElements.whenDefined("w-page-indicator"),customElements.whenDefined("w-pagination"),customElements.whenDefined("w-pill"),customElements.whenDefined("w-radio"),customElements.whenDefined("w-radio-group"),customElements.whenDefined("w-select"),customElements.whenDefined("w-slider-thumb"),customElements.whenDefined("w-slider"),customElements.whenDefined("w-step"),customElements.whenDefined("w-step-indicator"),customElements.whenDefined("w-switch"),customElements.whenDefined("w-tab"),customElements.whenDefined("w-tab-panel"),customElements.whenDefined("w-tabs"),customElements.whenDefined("w-textarea")]).then(()=>{performance.mark("vend/pc-design-system/warp-elements-loaded")});export{jl as ModalFooter,Ul as ModalHeader,Tl as ModalMain,ri as WCheckbox,ci as WCheckboxGroup,Ee as WIcon,Rd as WRadio,Wd as WRadioGroup,At as WarpAffix,Rt as WarpAlert,nn as WarpAttention,ln as WarpBadge,hn as WarpBox,_n as WarpBreadcrumbs,Qt as WarpButton,Bn as WarpCard,ti as WarpCheckbox,di as WarpCheckboxGroup,Oi as WarpCombobox,qs as WarpDatepicker,fl as WarpExpandable,Se as WarpIcon,Wt as WarpLink,Ml as WarpModal,Rl as WarpModalFooter,Xl as WarpModalHeader,rd as WarpPageIndicator,ud as WarpPagination,Ad as WarpPill,Td as WarpRadio,Bd as WarpRadioGroup,pc as WarpSelect,Sc as WarpSlider,vc as WarpSliderThumb,Qc as WarpStep,rh as WarpStepIndicator,fh as WarpSwitch,Ch as WarpTab,zh as WarpTabPanel,jh as WarpTabs,Xe as WarpTextField,Qh as WarpTextarea,Eu as WarpToast,nu as WarpToastContainer,pu as removeToast,uu as toast,bu as updateToast};
|
|
2536
96
|
//# sourceMappingURL=index.js.map
|