@warp-ds/elements 1.0.0-alpha.5 → 1.0.0-alpha.7

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.
@@ -1,37 +1,1125 @@
1
- import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&inline";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerpolicy&&(n.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?n.credentials="include":i.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function r(i){if(i.ep)return;i.ep=!0;const n=t(i);fetch(i.href,n)}})();/**
1
+ var $r = Object.defineProperty;
2
+ var zr = (o, e, t) => e in o ? $r(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var k = (o, e, t) => (zr(o, typeof e != "symbol" ? e + "" : e, t), t), _r = (o, e, t) => {
4
+ if (!e.has(o))
5
+ throw TypeError("Cannot " + t);
6
+ };
7
+ var J = (o, e, t) => (_r(o, e, "read from private field"), t ? t.call(o) : e.get(o)), Re = (o, e, t) => {
8
+ if (e.has(o))
9
+ throw TypeError("Cannot add the same private member more than once");
10
+ e instanceof WeakSet ? e.add(o) : e.set(o, t);
11
+ };
12
+ (function() {
13
+ const e = document.createElement("link").relList;
14
+ if (e && e.supports && e.supports("modulepreload"))
15
+ return;
16
+ for (const i of document.querySelectorAll('link[rel="modulepreload"]'))
17
+ r(i);
18
+ new MutationObserver((i) => {
19
+ for (const a of i)
20
+ if (a.type === "childList")
21
+ for (const n of a.addedNodes)
22
+ n.tagName === "LINK" && n.rel === "modulepreload" && r(n);
23
+ }).observe(document, { childList: !0, subtree: !0 });
24
+ function t(i) {
25
+ const a = {};
26
+ return i.integrity && (a.integrity = i.integrity), i.referrerpolicy && (a.referrerPolicy = i.referrerpolicy), i.crossorigin === "use-credentials" ? a.credentials = "include" : i.crossorigin === "anonymous" ? a.credentials = "omit" : a.credentials = "same-origin", a;
27
+ }
28
+ function r(i) {
29
+ if (i.ep)
30
+ return;
31
+ i.ep = !0;
32
+ const a = t(i);
33
+ fetch(i.href, a);
34
+ }
35
+ })();
36
+ /**
2
37
  * @license
3
38
  * Copyright 2019 Google LLC
4
39
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const ve=window,Ze=ve.ShadowRoot&&(ve.ShadyCSS===void 0||ve.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xe=Symbol(),so=new WeakMap;class Oo{constructor(e,t,r){if(this._$cssResult$=!0,r!==Xe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ze&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=so.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&so.set(t,e))}return e}toString(){return this.cssText}}const kt=o=>new Oo(typeof o=="string"?o:o+"",void 0,Xe),_=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((r,i,n)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[n+1],o[0]);return new Oo(t,o,Xe)},wt=(o,e)=>{Ze?o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),i=ve.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,o.appendChild(r)})},bo=Ze?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return kt(t)})(o):o;/**
40
+ */
41
+ const Sr = !1, Ae = window, Do = Ae.ShadowRoot && (Ae.ShadyCSS === void 0 || Ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ho = Symbol(), st = /* @__PURE__ */ new WeakMap();
42
+ class Nt {
43
+ constructor(e, t, r) {
44
+ if (this._$cssResult$ = !0, r !== Ho)
45
+ throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
46
+ this.cssText = e, this._strings = t;
47
+ }
48
+ get styleSheet() {
49
+ let e = this._styleSheet;
50
+ const t = this._strings;
51
+ if (Do && e === void 0) {
52
+ const r = t !== void 0 && t.length === 1;
53
+ r && (e = st.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), r && st.set(t, e));
54
+ }
55
+ return e;
56
+ }
57
+ toString() {
58
+ return this.cssText;
59
+ }
60
+ }
61
+ const Cr = (o) => {
62
+ if (o._$cssResult$ === !0)
63
+ return o.cssText;
64
+ if (typeof o == "number")
65
+ return o;
66
+ throw new Error(`Value passed to 'css' function must be a 'css' function result: ${o}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`);
67
+ }, Er = (o) => new Nt(typeof o == "string" ? o : String(o), void 0, Ho), R = (o, ...e) => {
68
+ const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r + Cr(i) + o[a + 1], o[0]);
69
+ return new Nt(t, o, Ho);
70
+ }, Rr = (o, e) => {
71
+ Do ? o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
72
+ const r = document.createElement("style"), i = Ae.litNonce;
73
+ i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, o.appendChild(r);
74
+ });
75
+ }, Ar = (o) => {
76
+ let e = "";
77
+ for (const t of o.cssRules)
78
+ e += t.cssText;
79
+ return Er(e);
80
+ }, dt = Do || Sr ? (o) => o : (o) => o instanceof CSSStyleSheet ? Ar(o) : o;
81
+ /**
6
82
  * @license
7
83
  * Copyright 2017 Google LLC
8
84
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var Ue;const ke=window,uo=ke.trustedTypes,yt=uo?uo.emptyScript:"",go=ke.reactiveElementPolyfillSupport,Ie={toAttribute(o,e){switch(e){case Boolean:o=o?yt:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Bo=(o,e)=>e!==o&&(e==e||o==o),Fe={attribute:!0,type:String,converter:Ie,reflect:!1,hasChanged:Bo};class G extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const i=this._$Ep(r,t);i!==void 0&&(this._$Ev.set(i,r),e.push(i))}),e}static createProperty(e,t=Fe){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,r,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(i){const n=this[e];this[t]=i,this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Fe}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of r)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)t.unshift(bo(i))}else e!==void 0&&t.push(bo(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return wt(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Fe){var i;const n=this.constructor._$Ep(e,r);if(n!==void 0&&r.reflect===!0){const a=(((i=r.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?r.converter:Ie).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$El=null}}_$AK(e,t){var r;const i=this.constructor,n=i._$Ev.get(e);if(n!==void 0&&this._$El!==n){const a=i.getPropertyOptions(n),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:Ie;this._$El=n,this[n]=l.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Bo)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,n)=>this[n]=i),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var n;return(n=i.hostUpdate)===null||n===void 0?void 0:n.call(i)}),this.update(r)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostUpdated)===null||i===void 0?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}G.finalized=!0,G.elementProperties=new Map,G.elementStyles=[],G.shadowRootOptions={mode:"open"},go?.({ReactiveElement:G}),((Ue=ke.reactiveElementVersions)!==null&&Ue!==void 0?Ue:ke.reactiveElementVersions=[]).push("1.6.1");/**
85
+ */
86
+ var to, ro, io, Tt;
87
+ const B = window;
88
+ let Ut, ee;
89
+ const ut = B.trustedTypes, qr = ut ? ut.emptyScript : "", qe = B.reactiveElementPolyfillSupportDevMode;
90
+ {
91
+ const o = (to = B.litIssuedWarnings) !== null && to !== void 0 ? to : B.litIssuedWarnings = /* @__PURE__ */ new Set();
92
+ ee = (e, t) => {
93
+ t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
94
+ }, ee("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((ro = B.ShadyDOM) === null || ro === void 0 ? void 0 : ro.inUse) && qe === void 0 && ee("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Ut = (e) => ({
95
+ then: (t, r) => {
96
+ ee("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
97
+ }
98
+ });
99
+ }
100
+ const no = (o) => {
101
+ !B.emitLitDebugLogEvents || B.dispatchEvent(new CustomEvent("lit-debug", {
102
+ detail: o
103
+ }));
104
+ }, Ot = (o, e) => o, So = {
105
+ toAttribute(o, e) {
106
+ switch (e) {
107
+ case Boolean:
108
+ o = o ? qr : null;
109
+ break;
110
+ case Object:
111
+ case Array:
112
+ o = o == null ? o : JSON.stringify(o);
113
+ break;
114
+ }
115
+ return o;
116
+ },
117
+ fromAttribute(o, e) {
118
+ let t = o;
119
+ switch (e) {
120
+ case Boolean:
121
+ t = o !== null;
122
+ break;
123
+ case Number:
124
+ t = o === null ? null : Number(o);
125
+ break;
126
+ case Object:
127
+ case Array:
128
+ try {
129
+ t = JSON.parse(o);
130
+ } catch {
131
+ t = null;
132
+ }
133
+ break;
134
+ }
135
+ return t;
136
+ }
137
+ }, Ft = (o, e) => e !== o && (e === e || o === o), ao = {
138
+ attribute: !0,
139
+ type: String,
140
+ converter: So,
141
+ reflect: !1,
142
+ hasChanged: Ft
143
+ }, Co = "finalized";
144
+ class V extends HTMLElement {
145
+ constructor() {
146
+ super(), this.__instanceProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this.__reflectingProperty = null, this._initialize();
147
+ }
148
+ static addInitializer(e) {
149
+ var t;
150
+ this.finalize(), ((t = this._initializers) !== null && t !== void 0 ? t : this._initializers = []).push(e);
151
+ }
152
+ static get observedAttributes() {
153
+ this.finalize();
154
+ const e = [];
155
+ return this.elementProperties.forEach((t, r) => {
156
+ const i = this.__attributeNameForProperty(r, t);
157
+ i !== void 0 && (this.__attributeToPropertyMap.set(i, r), e.push(i));
158
+ }), e;
159
+ }
160
+ static createProperty(e, t = ao) {
161
+ var r;
162
+ if (t.state && (t.attribute = !1), this.finalize(), this.elementProperties.set(e, t), !t.noAccessor && !this.prototype.hasOwnProperty(e)) {
163
+ const i = typeof e == "symbol" ? Symbol() : `__${e}`, a = this.getPropertyDescriptor(e, i, t);
164
+ a !== void 0 && (Object.defineProperty(this.prototype, e, a), this.hasOwnProperty("__reactivePropertyKeys") || (this.__reactivePropertyKeys = new Set((r = this.__reactivePropertyKeys) !== null && r !== void 0 ? r : [])), this.__reactivePropertyKeys.add(e));
165
+ }
166
+ }
167
+ static getPropertyDescriptor(e, t, r) {
168
+ return {
169
+ get() {
170
+ return this[t];
171
+ },
172
+ set(i) {
173
+ const a = this[e];
174
+ this[t] = i, this.requestUpdate(e, a, r);
175
+ },
176
+ configurable: !0,
177
+ enumerable: !0
178
+ };
179
+ }
180
+ static getPropertyOptions(e) {
181
+ return this.elementProperties.get(e) || ao;
182
+ }
183
+ static finalize() {
184
+ if (this.hasOwnProperty(Co))
185
+ return !1;
186
+ this[Co] = !0;
187
+ const e = Object.getPrototypeOf(this);
188
+ if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Ot("properties"))) {
189
+ const t = this.properties, r = [
190
+ ...Object.getOwnPropertyNames(t),
191
+ ...Object.getOwnPropertySymbols(t)
192
+ ];
193
+ for (const i of r)
194
+ this.createProperty(i, t[i]);
195
+ }
196
+ this.elementStyles = this.finalizeStyles(this.styles);
197
+ {
198
+ const t = (r, i = !1) => {
199
+ this.prototype.hasOwnProperty(r) && ee(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${this.name}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
200
+ };
201
+ t("initialize"), t("requestUpdateInternal"), t("_getUpdateComplete", !0);
202
+ }
203
+ return !0;
204
+ }
205
+ static finalizeStyles(e) {
206
+ const t = [];
207
+ if (Array.isArray(e)) {
208
+ const r = new Set(e.flat(1 / 0).reverse());
209
+ for (const i of r)
210
+ t.unshift(dt(i));
211
+ } else
212
+ e !== void 0 && t.push(dt(e));
213
+ return t;
214
+ }
215
+ static __attributeNameForProperty(e, t) {
216
+ const r = t.attribute;
217
+ return r === !1 ? void 0 : typeof r == "string" ? r : typeof e == "string" ? e.toLowerCase() : void 0;
218
+ }
219
+ _initialize() {
220
+ var e;
221
+ this.__updatePromise = new Promise((t) => this.enableUpdating = t), this._$changedProperties = /* @__PURE__ */ new Map(), this.__saveInstanceProperties(), this.requestUpdate(), (e = this.constructor._initializers) === null || e === void 0 || e.forEach((t) => t(this));
222
+ }
223
+ addController(e) {
224
+ var t, r;
225
+ ((t = this.__controllers) !== null && t !== void 0 ? t : this.__controllers = []).push(e), this.renderRoot !== void 0 && this.isConnected && ((r = e.hostConnected) === null || r === void 0 || r.call(e));
226
+ }
227
+ removeController(e) {
228
+ var t;
229
+ (t = this.__controllers) === null || t === void 0 || t.splice(this.__controllers.indexOf(e) >>> 0, 1);
230
+ }
231
+ __saveInstanceProperties() {
232
+ this.constructor.elementProperties.forEach((e, t) => {
233
+ this.hasOwnProperty(t) && (this.__instanceProperties.set(t, this[t]), delete this[t]);
234
+ });
235
+ }
236
+ createRenderRoot() {
237
+ var e;
238
+ const t = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
239
+ return Rr(t, this.constructor.elementStyles), t;
240
+ }
241
+ connectedCallback() {
242
+ var e;
243
+ this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this.__controllers) === null || e === void 0 || e.forEach((t) => {
244
+ var r;
245
+ return (r = t.hostConnected) === null || r === void 0 ? void 0 : r.call(t);
246
+ });
247
+ }
248
+ enableUpdating(e) {
249
+ }
250
+ disconnectedCallback() {
251
+ var e;
252
+ (e = this.__controllers) === null || e === void 0 || e.forEach((t) => {
253
+ var r;
254
+ return (r = t.hostDisconnected) === null || r === void 0 ? void 0 : r.call(t);
255
+ });
256
+ }
257
+ attributeChangedCallback(e, t, r) {
258
+ this._$attributeToProperty(e, r);
259
+ }
260
+ __propertyToAttribute(e, t, r = ao) {
261
+ var i;
262
+ const a = this.constructor.__attributeNameForProperty(e, r);
263
+ if (a !== void 0 && r.reflect === !0) {
264
+ const l = (((i = r.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? r.converter : So).toAttribute(t, r.type);
265
+ this.constructor.enabledWarnings.indexOf("migration") >= 0 && l === void 0 && ee("undefined-attribute-value", `The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`), this.__reflectingProperty = e, l == null ? this.removeAttribute(a) : this.setAttribute(a, l), this.__reflectingProperty = null;
266
+ }
267
+ }
268
+ _$attributeToProperty(e, t) {
269
+ var r;
270
+ const i = this.constructor, a = i.__attributeToPropertyMap.get(e);
271
+ if (a !== void 0 && this.__reflectingProperty !== a) {
272
+ const n = i.getPropertyOptions(a), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? n.converter : So;
273
+ this.__reflectingProperty = a, this[a] = l.fromAttribute(
274
+ t,
275
+ n.type
276
+ ), this.__reflectingProperty = null;
277
+ }
278
+ }
279
+ requestUpdate(e, t, r) {
280
+ let i = !0;
281
+ return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged || Ft)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), r.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, r))) : i = !1), !this.isUpdatePending && i && (this.__updatePromise = this.__enqueueUpdate()), Ut(this.localName);
282
+ }
283
+ async __enqueueUpdate() {
284
+ this.isUpdatePending = !0;
285
+ try {
286
+ await this.__updatePromise;
287
+ } catch (t) {
288
+ Promise.reject(t);
289
+ }
290
+ const e = this.scheduleUpdate();
291
+ return e != null && await e, !this.isUpdatePending;
292
+ }
293
+ scheduleUpdate() {
294
+ return this.performUpdate();
295
+ }
296
+ performUpdate() {
297
+ var e, t;
298
+ if (!this.isUpdatePending)
299
+ return;
300
+ if (no == null || no({ kind: "update" }), !this.hasUpdated) {
301
+ const a = [];
302
+ if ((e = this.constructor.__reactivePropertyKeys) === null || e === void 0 || e.forEach((n) => {
303
+ var l;
304
+ this.hasOwnProperty(n) && !(!((l = this.__instanceProperties) === null || l === void 0) && l.has(n)) && a.push(n);
305
+ }), a.length)
306
+ throw new Error(`The following properties on element ${this.localName} will not trigger updates as expected because they are set using class fields: ${a.join(", ")}. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.`);
307
+ }
308
+ this.__instanceProperties && (this.__instanceProperties.forEach((a, n) => this[n] = a), this.__instanceProperties = void 0);
309
+ let r = !1;
310
+ const i = this._$changedProperties;
311
+ try {
312
+ r = this.shouldUpdate(i), r ? (this.willUpdate(i), (t = this.__controllers) === null || t === void 0 || t.forEach((a) => {
313
+ var n;
314
+ return (n = a.hostUpdate) === null || n === void 0 ? void 0 : n.call(a);
315
+ }), this.update(i)) : this.__markUpdated();
316
+ } catch (a) {
317
+ throw r = !1, this.__markUpdated(), a;
318
+ }
319
+ r && this._$didUpdate(i);
320
+ }
321
+ willUpdate(e) {
322
+ }
323
+ _$didUpdate(e) {
324
+ var t;
325
+ (t = this.__controllers) === null || t === void 0 || t.forEach((r) => {
326
+ var i;
327
+ return (i = r.hostUpdated) === null || i === void 0 ? void 0 : i.call(r);
328
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 && ee("change-in-update", `Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`);
329
+ }
330
+ __markUpdated() {
331
+ this._$changedProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
332
+ }
333
+ get updateComplete() {
334
+ return this.getUpdateComplete();
335
+ }
336
+ getUpdateComplete() {
337
+ return this.__updatePromise;
338
+ }
339
+ shouldUpdate(e) {
340
+ return !0;
341
+ }
342
+ update(e) {
343
+ this.__reflectingProperties !== void 0 && (this.__reflectingProperties.forEach((t, r) => this.__propertyToAttribute(r, this[r], t)), this.__reflectingProperties = void 0), this.__markUpdated();
344
+ }
345
+ updated(e) {
346
+ }
347
+ firstUpdated(e) {
348
+ }
349
+ }
350
+ Tt = Co;
351
+ V[Tt] = !0;
352
+ V.elementProperties = /* @__PURE__ */ new Map();
353
+ V.elementStyles = [];
354
+ V.shadowRootOptions = { mode: "open" };
355
+ qe == null || qe({ ReactiveElement: V });
356
+ {
357
+ V.enabledWarnings = ["change-in-update"];
358
+ const o = function(e) {
359
+ e.hasOwnProperty(Ot("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
360
+ };
361
+ V.enableWarning = function(e) {
362
+ o(this), this.enabledWarnings.indexOf(e) < 0 && this.enabledWarnings.push(e);
363
+ }, V.disableWarning = function(e) {
364
+ o(this);
365
+ const t = this.enabledWarnings.indexOf(e);
366
+ t >= 0 && this.enabledWarnings.splice(t, 1);
367
+ };
368
+ }
369
+ ((io = B.reactiveElementVersions) !== null && io !== void 0 ? io : B.reactiveElementVersions = []).push("1.6.1");
370
+ B.reactiveElementVersions.length > 1 && ee("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
371
+ /**
10
372
  * @license
11
373
  * Copyright 2017 Google LLC
12
374
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Pe;const we=window,ee=we.trustedTypes,ho=ee?ee.createPolicy("lit-html",{createHTML:o=>o}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,Ye="?"+B,$t=`<${Ye}>`,oe=document,se=(o="")=>oe.createComment(o),de=o=>o===null||typeof o!="object"&&typeof o!="function",No=Array.isArray,To=o=>No(o)||typeof o?.[Symbol.iterator]=="function",ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,po=/-->/g,mo=/>/g,Z=RegExp(`>|[
14
- \f\r](?:([^\\s"'>=/]+)([
15
- \f\r]*=[
16
- \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fo=/'/g,vo=/"/g,Io=/^(?:script|style|textarea|title)$/i,Ho=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),p=Ho(1),_e=Ho(2),N=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),xo=new WeakMap,Q=oe.createTreeWalker(oe,129,null,!1),Do=(o,e)=>{const t=o.length-1,r=[];let i,n=e===2?"<svg>":"",a=ae;for(let s=0;s<t;s++){const c=o[s];let g,d,b=-1,u=0;for(;u<c.length&&(a.lastIndex=u,d=a.exec(c),d!==null);)u=a.lastIndex,a===ae?d[1]==="!--"?a=po:d[1]!==void 0?a=mo:d[2]!==void 0?(Io.test(d[2])&&(i=RegExp("</"+d[2],"g")),a=Z):d[3]!==void 0&&(a=Z):a===Z?d[0]===">"?(a=i??ae,b=-1):d[1]===void 0?b=-2:(b=a.lastIndex-d[2].length,g=d[1],a=d[3]===void 0?Z:d[3]==='"'?vo:fo):a===vo||a===fo?a=Z:a===po||a===mo?a=ae:(a=Z,i=void 0);const h=a===Z&&o[s+1].startsWith("/>")?" ":"";n+=a===ae?c+$t:b>=0?(r.push(g),c.slice(0,b)+"$lit$"+c.slice(b)+B+h):c+B+(b===-2?(r.push(void 0),s):h)}const l=n+(o[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ho!==void 0?ho.createHTML(l):l,r]};class be{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let n=0,a=0;const l=e.length-1,s=this.parts,[c,g]=Do(e,t);if(this.el=be.createElement(c,r),Q.currentNode=this.el.content,t===2){const d=this.el.content,b=d.firstChild;b.remove(),d.append(...b.childNodes)}for(;(i=Q.nextNode())!==null&&s.length<l;){if(i.nodeType===1){if(i.hasAttributes()){const d=[];for(const b of i.getAttributeNames())if(b.endsWith("$lit$")||b.startsWith(B)){const u=g[a++];if(d.push(b),u!==void 0){const h=i.getAttribute(u.toLowerCase()+"$lit$").split(B),m=/([.?@])?(.*)/.exec(u);s.push({type:1,index:n,name:m[2],strings:h,ctor:m[1]==="."?Vo:m[1]==="?"?Zo:m[1]==="@"?Xo:he})}else s.push({type:6,index:n})}for(const b of d)i.removeAttribute(b)}if(Io.test(i.tagName)){const d=i.textContent.split(B),b=d.length-1;if(b>0){i.textContent=ee?ee.emptyScript:"";for(let u=0;u<b;u++)i.append(d[u],se()),Q.nextNode(),s.push({type:2,index:++n});i.append(d[b],se())}}}else if(i.nodeType===8)if(i.data===Ye)s.push({type:2,index:n});else{let d=-1;for(;(d=i.data.indexOf(B,d+1))!==-1;)s.push({type:7,index:n}),d+=B.length-1}n++}}static createElement(e,t){const r=oe.createElement("template");return r.innerHTML=e,r}}function Y(o,e,t=o,r){var i,n,a,l;if(e===N)return e;let s=r!==void 0?(i=t._$Co)===null||i===void 0?void 0:i[r]:t._$Cl;const c=de(e)?void 0:e._$litDirective$;return s?.constructor!==c&&((n=s?._$AO)===null||n===void 0||n.call(s,!1),c===void 0?s=void 0:(s=new c(o),s._$AT(o,t,r)),r!==void 0?((a=(l=t)._$Co)!==null&&a!==void 0?a:l._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Y(o,s._$AS(o,e.values),s,r)),e}class Wo{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:r},parts:i}=this._$AD,n=((t=e?.creationScope)!==null&&t!==void 0?t:oe).importNode(r,!0);Q.currentNode=n;let a=Q.nextNode(),l=0,s=0,c=i[0];for(;c!==void 0;){if(l===c.index){let g;c.type===2?g=new ie(a,a.nextSibling,this,e):c.type===1?g=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(g=new Yo(a,this,e)),this.u.push(g),c=i[++s]}l!==c?.index&&(a=Q.nextNode(),l++)}return n}p(e){let t=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class ie{constructor(e,t,r,i){var n;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cm=(n=i?.isConnected)===null||n===void 0||n}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Y(this,e,t),de(e)?e===$||e==null||e===""?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==N&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):To(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==$&&de(this._$AH)?this._$AA.nextSibling.data=e:this.T(oe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=be.createElement(i.h,this.options)),i);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.p(r);else{const a=new Wo(n,this),l=a.v(this.options);a.p(r),this.T(l),this._$AH=a}}_$AC(e){let t=xo.get(e.strings);return t===void 0&&xo.set(e.strings,t=new be(e)),t}k(e){No(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,i=0;for(const n of e)i===t.length?t.push(r=new ie(this.O(se()),this.O(se()),this,this.options)):r=t[i],r._$AI(n),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,t);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class he{constructor(e,t,r,i,n){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,i){const n=this.strings;let a=!1;if(n===void 0)e=Y(this,e,t,0),a=!de(e)||e!==this._$AH&&e!==N,a&&(this._$AH=e);else{const l=e;let s,c;for(e=n[0],s=0;s<n.length-1;s++)c=Y(this,l[r+s],t,s),c===N&&(c=this._$AH[s]),a||(a=!de(c)||c!==this._$AH[s]),c===$?e=$:e!==$&&(e+=(c??"")+n[s+1]),this._$AH[s]=c}a&&!i&&this.j(e)}j(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Vo extends he{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$?void 0:e}}const zt=ee?ee.emptyScript:"";class Zo extends he{constructor(){super(...arguments),this.type=4}j(e){e&&e!==$?this.element.setAttribute(this.name,zt):this.element.removeAttribute(this.name)}}class Xo extends he{constructor(e,t,r,i,n){super(e,t,r,i,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=Y(this,e,t,0))!==null&&r!==void 0?r:$)===N)return;const i=this._$AH,n=e===$&&i!==$||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==$&&(i===$||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class Yo{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){Y(this,e)}}const St={P:"$lit$",A:B,M:Ye,C:1,L:Do,R:Wo,D:To,V:Y,I:ie,H:he,N:Zo,U:Xo,B:Vo,F:Yo},ko=we.litHtmlPolyfillSupport;ko?.(be,ie),((Pe=we.litHtmlVersions)!==null&&Pe!==void 0?Pe:we.litHtmlVersions=[]).push("2.6.1");const Ct=(o,e,t)=>{var r,i;const n=(r=t?.renderBefore)!==null&&r!==void 0?r:e;let a=n._$litPart$;if(a===void 0){const l=(i=t?.renderBefore)!==null&&i!==void 0?i:null;n._$litPart$=a=new ie(e.insertBefore(se(),l),l,void 0,t??{})}return a._$AI(o),a};/**
375
+ */
376
+ var lo, co, so, uo;
377
+ const q = window, m = (o) => {
378
+ !q.emitLitDebugLogEvents || q.dispatchEvent(new CustomEvent("lit-debug", {
379
+ detail: o
380
+ }));
381
+ };
382
+ let Mr = 0, Ue;
383
+ (lo = q.litIssuedWarnings) !== null && lo !== void 0 || (q.litIssuedWarnings = /* @__PURE__ */ new Set()), Ue = (o, e) => {
384
+ e += o ? ` See https://lit.dev/msg/${o} for more information.` : "", q.litIssuedWarnings.has(e) || (console.warn(e), q.litIssuedWarnings.add(e));
385
+ }, Ue("dev-mode", "Lit is in dev mode. Not recommended for production!");
386
+ const O = ((co = q.ShadyDOM) === null || co === void 0 ? void 0 : co.inUse) && ((so = q.ShadyDOM) === null || so === void 0 ? void 0 : so.noPatch) === !0 ? q.ShadyDOM.wrap : (o) => o, ue = q.trustedTypes, bt = ue ? ue.createPolicy("lit-html", {
387
+ createHTML: (o) => o
388
+ }) : void 0, Pr = (o) => o, Ye = (o, e, t) => Pr, jr = (o) => {
389
+ if (ie !== Ye)
390
+ throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");
391
+ ie = o;
392
+ }, Nr = () => {
393
+ ie = Ye;
394
+ }, Eo = (o, e, t) => ie(o, e, t), Oe = "$lit$", I = `lit$${String(Math.random()).slice(9)}$`, Wo = "?" + I, Tr = `<${Wo}>`, xe = document, ke = (o = "") => xe.createComment(o), we = (o) => o === null || typeof o != "object" && typeof o != "function", Lt = Array.isArray, It = (o) => Lt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", bo = `[
395
+ \f\r]`, Ur = `[^
396
+ \f\r"'\`<>=]`, Or = `[^\\s"'>=/]`, me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = 1, go = 2, Fr = 3, ht = /-->/g, pt = />/g, te = new RegExp(`>|${bo}(?:(${Or}+)(${bo}*=${bo}*(?:${Ur}|("|')|))|$)`, "g"), Lr = 0, mt = 1, Ir = 2, ft = 3, ho = /'/g, po = /"/g, Bt = /^(?:script|style|textarea|title)$/i, Vt = 1, Fe = 2, Ko = 1, Le = 2, Br = 3, Vr = 4, Dr = 5, Yo = 6, Hr = 7, Dt = (o) => (e, ...t) => (e.some((r) => r === void 0) && console.warn(`Some template strings are undefined.
397
+ This is probably caused by illegal octal escape sequences.`), {
398
+ _$litType$: o,
399
+ strings: e,
400
+ values: t
401
+ }), p = Dt(Vt), Ze = Dt(Fe), K = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), ce = xe.createTreeWalker(xe, 129, null, !1);
402
+ let ie = Ye;
403
+ const Ht = (o, e) => {
404
+ const t = o.length - 1, r = [];
405
+ let i = e === Fe ? "<svg>" : "", a, n = me;
406
+ for (let s = 0; s < t; s++) {
407
+ const c = o[s];
408
+ let b = -1, d, g = 0, u;
409
+ for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); )
410
+ if (g = n.lastIndex, n === me) {
411
+ if (u[gt] === "!--")
412
+ n = ht;
413
+ else if (u[gt] !== void 0)
414
+ n = pt;
415
+ else if (u[go] !== void 0)
416
+ Bt.test(u[go]) && (a = new RegExp(`</${u[go]}`, "g")), n = te;
417
+ else if (u[Fr] !== void 0)
418
+ throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions");
419
+ } else
420
+ n === te ? u[Lr] === ">" ? (n = a != null ? a : me, b = -1) : u[mt] === void 0 ? b = -2 : (b = n.lastIndex - u[Ir].length, d = u[mt], n = u[ft] === void 0 ? te : u[ft] === '"' ? po : ho) : n === po || n === ho ? n = te : n === ht || n === pt ? n = me : (n = te, a = void 0);
421
+ console.assert(b === -1 || n === te || n === ho || n === po, "unexpected parse state B");
422
+ const h = n === te && o[s + 1].startsWith("/>") ? " " : "";
423
+ i += n === me ? c + Tr : b >= 0 ? (r.push(d), c.slice(0, b) + Oe + c.slice(b) + I + h) : c + I + (b === -2 ? (r.push(void 0), s) : h);
424
+ }
425
+ const l = i + (o[t] || "<?>") + (e === Fe ? "</svg>" : "");
426
+ if (!Array.isArray(o) || !o.hasOwnProperty("raw")) {
427
+ let s = "invalid template strings array";
428
+ throw s = `
429
+ Internal Error: expected template strings to be an array
430
+ with a 'raw' field. Faking a template strings array by
431
+ calling html or svg like an ordinary function is effectively
432
+ the same as calling unsafeHtml and can lead to major security
433
+ issues, e.g. opening your code up to XSS attacks.
434
+
435
+ If you're using the html or svg tagged template functions normally
436
+ and and still seeing this error, please file a bug at
437
+ https://github.com/lit/lit/issues/new?template=bug_report.md
438
+ and include information about your build tooling, if any.
439
+ `.trim().replace(/\n */g, `
440
+ `), new Error(s);
441
+ }
442
+ return [
443
+ bt !== void 0 ? bt.createHTML(l) : l,
444
+ r
445
+ ];
446
+ };
447
+ class ye {
448
+ constructor({ strings: e, ["_$litType$"]: t }, r) {
449
+ this.parts = [];
450
+ let i, a = 0, n = 0;
451
+ const l = e.length - 1, s = this.parts, [c, b] = Ht(e, t);
452
+ if (this.el = ye.createElement(c, r), ce.currentNode = this.el.content, t === Fe) {
453
+ const d = this.el.content, g = d.firstChild;
454
+ g.remove(), d.append(...g.childNodes);
455
+ }
456
+ for (; (i = ce.nextNode()) !== null && s.length < l; ) {
457
+ if (i.nodeType === 1) {
458
+ {
459
+ const d = i.localName;
460
+ if (/^(?:textarea|template)$/i.test(d) && i.innerHTML.includes(I)) {
461
+ const g = `Expressions are not supported inside \`${d}\` elements. See https://lit.dev/msg/expression-in-${d} for more information.`;
462
+ if (d === "template")
463
+ throw new Error(g);
464
+ Ue("", g);
465
+ }
466
+ }
467
+ if (i.hasAttributes()) {
468
+ const d = [];
469
+ for (const g of i.getAttributeNames())
470
+ if (g.endsWith(Oe) || g.startsWith(I)) {
471
+ const u = b[n++];
472
+ if (d.push(g), u !== void 0) {
473
+ const f = i.getAttribute(u.toLowerCase() + Oe).split(I), v = /([.?@])?(.*)/.exec(u);
474
+ s.push({
475
+ type: Ko,
476
+ index: a,
477
+ name: v[2],
478
+ strings: f,
479
+ ctor: v[1] === "." ? Kt : v[1] === "?" ? Yt : v[1] === "@" ? Zt : _e
480
+ });
481
+ } else
482
+ s.push({
483
+ type: Yo,
484
+ index: a
485
+ });
486
+ }
487
+ for (const g of d)
488
+ i.removeAttribute(g);
489
+ }
490
+ if (Bt.test(i.tagName)) {
491
+ const d = i.textContent.split(I), g = d.length - 1;
492
+ if (g > 0) {
493
+ i.textContent = ue ? ue.emptyScript : "";
494
+ for (let u = 0; u < g; u++)
495
+ i.append(d[u], ke()), ce.nextNode(), s.push({ type: Le, index: ++a });
496
+ i.append(d[g], ke());
497
+ }
498
+ }
499
+ } else if (i.nodeType === 8)
500
+ if (i.data === Wo)
501
+ s.push({ type: Le, index: a });
502
+ else {
503
+ let g = -1;
504
+ for (; (g = i.data.indexOf(I, g + 1)) !== -1; )
505
+ s.push({ type: Hr, index: a }), g += I.length - 1;
506
+ }
507
+ a++;
508
+ }
509
+ m == null || m({
510
+ kind: "template prep",
511
+ template: this,
512
+ clonableTemplate: this.el,
513
+ parts: this.parts,
514
+ strings: e
515
+ });
516
+ }
517
+ static createElement(e, t) {
518
+ const r = xe.createElement("template");
519
+ return r.innerHTML = e, r;
520
+ }
521
+ }
522
+ function ne(o, e, t = o, r) {
523
+ var i, a, n, l;
524
+ if (e === K)
525
+ return e;
526
+ let s = r !== void 0 ? (i = t.__directives) === null || i === void 0 ? void 0 : i[r] : t.__directive;
527
+ const c = we(e) ? void 0 : e._$litDirective$;
528
+ return (s == null ? void 0 : s.constructor) !== c && ((a = s == null ? void 0 : s._$notifyDirectiveConnectionChanged) === null || a === void 0 || a.call(s, !1), c === void 0 ? s = void 0 : (s = new c(o), s._$initialize(o, t, r)), r !== void 0 ? ((n = (l = t).__directives) !== null && n !== void 0 ? n : l.__directives = [])[r] = s : t.__directive = s), s !== void 0 && (e = ne(o, s._$resolve(o, e.values), s, r)), e;
529
+ }
530
+ class Wt {
531
+ constructor(e, t) {
532
+ this._parts = [], this._$disconnectableChildren = void 0, this._$template = e, this._$parent = t;
533
+ }
534
+ get parentNode() {
535
+ return this._$parent.parentNode;
536
+ }
537
+ get _$isConnected() {
538
+ return this._$parent._$isConnected;
539
+ }
540
+ _clone(e) {
541
+ var t;
542
+ const { el: { content: r }, parts: i } = this._$template, a = ((t = e == null ? void 0 : e.creationScope) !== null && t !== void 0 ? t : xe).importNode(r, !0);
543
+ ce.currentNode = a;
544
+ let n = ce.nextNode(), l = 0, s = 0, c = i[0];
545
+ for (; c !== void 0; ) {
546
+ if (l === c.index) {
547
+ let b;
548
+ c.type === Le ? b = new he(n, n.nextSibling, this, e) : c.type === Ko ? b = new c.ctor(n, c.name, c.strings, this, e) : c.type === Yo && (b = new Xt(n, this, e)), this._parts.push(b), c = i[++s];
549
+ }
550
+ l !== (c == null ? void 0 : c.index) && (n = ce.nextNode(), l++);
551
+ }
552
+ return a;
553
+ }
554
+ _update(e) {
555
+ let t = 0;
556
+ for (const r of this._parts)
557
+ r !== void 0 && (m == null || m({
558
+ kind: "set part",
559
+ part: r,
560
+ value: e[t],
561
+ valueIndex: t,
562
+ values: e,
563
+ templateInstance: this
564
+ }), r.strings !== void 0 ? (r._$setValue(e, r, t), t += r.strings.length - 2) : r._$setValue(e[t])), t++;
565
+ }
566
+ }
567
+ class he {
568
+ constructor(e, t, r, i) {
569
+ var a;
570
+ this.type = Le, this._$committedValue = z, this._$disconnectableChildren = void 0, this._$startNode = e, this._$endNode = t, this._$parent = r, this.options = i, this.__isConnected = (a = i == null ? void 0 : i.isConnected) !== null && a !== void 0 ? a : !0, this._textSanitizer = void 0;
571
+ }
572
+ get _$isConnected() {
573
+ var e, t;
574
+ return (t = (e = this._$parent) === null || e === void 0 ? void 0 : e._$isConnected) !== null && t !== void 0 ? t : this.__isConnected;
575
+ }
576
+ get parentNode() {
577
+ let e = O(this._$startNode).parentNode;
578
+ const t = this._$parent;
579
+ return t !== void 0 && e.nodeType === 11 && (e = t.parentNode), e;
580
+ }
581
+ get startNode() {
582
+ return this._$startNode;
583
+ }
584
+ get endNode() {
585
+ return this._$endNode;
586
+ }
587
+ _$setValue(e, t = this) {
588
+ var r;
589
+ if (this.parentNode === null)
590
+ throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");
591
+ if (e = ne(this, e, t), we(e))
592
+ e === z || e == null || e === "" ? (this._$committedValue !== z && (m == null || m({
593
+ kind: "commit nothing to child",
594
+ start: this._$startNode,
595
+ end: this._$endNode,
596
+ parent: this._$parent,
597
+ options: this.options
598
+ }), this._$clear()), this._$committedValue = z) : e !== this._$committedValue && e !== K && this._commitText(e);
599
+ else if (e._$litType$ !== void 0)
600
+ this._commitTemplateResult(e);
601
+ else if (e.nodeType !== void 0) {
602
+ if (((r = this.options) === null || r === void 0 ? void 0 : r.host) === e) {
603
+ this._commitText("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"), console.warn("Attempted to render the template host", e, "inside itself. This is almost always a mistake, and in dev mode ", "we render some warning text. In production however, we'll ", "render it, which will usually result in an error, and sometimes ", "in the element disappearing from the DOM.");
604
+ return;
605
+ }
606
+ this._commitNode(e);
607
+ } else
608
+ It(e) ? this._commitIterable(e) : this._commitText(e);
609
+ }
610
+ _insert(e, t = this._$endNode) {
611
+ return O(O(this._$startNode).parentNode).insertBefore(e, t);
612
+ }
613
+ _commitNode(e) {
614
+ var t;
615
+ if (this._$committedValue !== e) {
616
+ if (this._$clear(), ie !== Ye) {
617
+ const r = (t = this._$startNode.parentNode) === null || t === void 0 ? void 0 : t.nodeName;
618
+ if (r === "STYLE" || r === "SCRIPT") {
619
+ let i = "Forbidden";
620
+ throw r === "STYLE" ? i = "Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and make do dynamic styling with css custom properties, ::parts, <slot>s, and by mutating the DOM rather than stylesheets." : i = "Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.", new Error(i);
621
+ }
622
+ }
623
+ m == null || m({
624
+ kind: "commit node",
625
+ start: this._$startNode,
626
+ parent: this._$parent,
627
+ value: e,
628
+ options: this.options
629
+ }), this._$committedValue = this._insert(e);
630
+ }
631
+ }
632
+ _commitText(e) {
633
+ if (this._$committedValue !== z && we(this._$committedValue)) {
634
+ const t = O(this._$startNode).nextSibling;
635
+ this._textSanitizer === void 0 && (this._textSanitizer = Eo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
636
+ kind: "commit text",
637
+ node: t,
638
+ value: e,
639
+ options: this.options
640
+ }), t.data = e;
641
+ } else {
642
+ const t = document.createTextNode("");
643
+ this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer = Eo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
644
+ kind: "commit text",
645
+ node: t,
646
+ value: e,
647
+ options: this.options
648
+ }), t.data = e;
649
+ }
650
+ this._$committedValue = e;
651
+ }
652
+ _commitTemplateResult(e) {
653
+ var t;
654
+ const { values: r, ["_$litType$"]: i } = e, a = typeof i == "number" ? this._$getTemplate(e) : (i.el === void 0 && (i.el = ye.createElement(i.h, this.options)), i);
655
+ if (((t = this._$committedValue) === null || t === void 0 ? void 0 : t._$template) === a)
656
+ m == null || m({
657
+ kind: "template updating",
658
+ template: a,
659
+ instance: this._$committedValue,
660
+ parts: this._$committedValue._parts,
661
+ options: this.options,
662
+ values: r
663
+ }), this._$committedValue._update(r);
664
+ else {
665
+ const n = new Wt(a, this), l = n._clone(this.options);
666
+ m == null || m({
667
+ kind: "template instantiated",
668
+ template: a,
669
+ instance: n,
670
+ parts: n._parts,
671
+ options: this.options,
672
+ fragment: l,
673
+ values: r
674
+ }), n._update(r), m == null || m({
675
+ kind: "template instantiated and updated",
676
+ template: a,
677
+ instance: n,
678
+ parts: n._parts,
679
+ options: this.options,
680
+ fragment: l,
681
+ values: r
682
+ }), this._commitNode(l), this._$committedValue = n;
683
+ }
684
+ }
685
+ _$getTemplate(e) {
686
+ let t = vt.get(e.strings);
687
+ return t === void 0 && vt.set(e.strings, t = new ye(e)), t;
688
+ }
689
+ _commitIterable(e) {
690
+ Lt(this._$committedValue) || (this._$committedValue = [], this._$clear());
691
+ const t = this._$committedValue;
692
+ let r = 0, i;
693
+ for (const a of e)
694
+ r === t.length ? t.push(i = new he(this._insert(ke()), this._insert(ke()), this, this.options)) : i = t[r], i._$setValue(a), r++;
695
+ r < t.length && (this._$clear(i && O(i._$endNode).nextSibling, r), t.length = r);
696
+ }
697
+ _$clear(e = O(this._$startNode).nextSibling, t) {
698
+ var r;
699
+ for ((r = this._$notifyConnectionChanged) === null || r === void 0 || r.call(this, !1, !0, t); e && e !== this._$endNode; ) {
700
+ const i = O(e).nextSibling;
701
+ O(e).remove(), e = i;
702
+ }
703
+ }
704
+ setConnected(e) {
705
+ var t;
706
+ if (this._$parent === void 0)
707
+ this.__isConnected = e, (t = this._$notifyConnectionChanged) === null || t === void 0 || t.call(this, e);
708
+ else
709
+ throw new Error("part.setConnected() may only be called on a RootPart returned from render().");
710
+ }
711
+ }
712
+ class _e {
713
+ constructor(e, t, r, i, a) {
714
+ this.type = Ko, this._$committedValue = z, this._$disconnectableChildren = void 0, this.element = e, this.name = t, this._$parent = i, this.options = a, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$committedValue = new Array(r.length - 1).fill(new String()), this.strings = r) : this._$committedValue = z, this._sanitizer = void 0;
715
+ }
716
+ get tagName() {
717
+ return this.element.tagName;
718
+ }
719
+ get _$isConnected() {
720
+ return this._$parent._$isConnected;
721
+ }
722
+ _$setValue(e, t = this, r, i) {
723
+ const a = this.strings;
724
+ let n = !1;
725
+ if (a === void 0)
726
+ e = ne(this, e, t, 0), n = !we(e) || e !== this._$committedValue && e !== K, n && (this._$committedValue = e);
727
+ else {
728
+ const l = e;
729
+ e = a[0];
730
+ let s, c;
731
+ for (s = 0; s < a.length - 1; s++)
732
+ c = ne(this, l[r + s], t, s), c === K && (c = this._$committedValue[s]), n || (n = !we(c) || c !== this._$committedValue[s]), c === z ? e = z : e !== z && (e += (c != null ? c : "") + a[s + 1]), this._$committedValue[s] = c;
733
+ }
734
+ n && !i && this._commitValue(e);
735
+ }
736
+ _commitValue(e) {
737
+ e === z ? O(this.element).removeAttribute(this.name) : (this._sanitizer === void 0 && (this._sanitizer = ie(this.element, this.name, "attribute")), e = this._sanitizer(e != null ? e : ""), m == null || m({
738
+ kind: "commit attribute",
739
+ element: this.element,
740
+ name: this.name,
741
+ value: e,
742
+ options: this.options
743
+ }), O(this.element).setAttribute(this.name, e != null ? e : ""));
744
+ }
745
+ }
746
+ class Kt extends _e {
747
+ constructor() {
748
+ super(...arguments), this.type = Br;
749
+ }
750
+ _commitValue(e) {
751
+ this._sanitizer === void 0 && (this._sanitizer = ie(this.element, this.name, "property")), e = this._sanitizer(e), m == null || m({
752
+ kind: "commit property",
753
+ element: this.element,
754
+ name: this.name,
755
+ value: e,
756
+ options: this.options
757
+ }), this.element[this.name] = e === z ? void 0 : e;
758
+ }
759
+ }
760
+ const Wr = ue ? ue.emptyScript : "";
761
+ class Yt extends _e {
762
+ constructor() {
763
+ super(...arguments), this.type = Vr;
764
+ }
765
+ _commitValue(e) {
766
+ m == null || m({
767
+ kind: "commit boolean attribute",
768
+ element: this.element,
769
+ name: this.name,
770
+ value: !!(e && e !== z),
771
+ options: this.options
772
+ }), e && e !== z ? O(this.element).setAttribute(this.name, Wr) : O(this.element).removeAttribute(this.name);
773
+ }
774
+ }
775
+ class Zt extends _e {
776
+ constructor(e, t, r, i, a) {
777
+ if (super(e, t, r, i, a), this.type = Dr, this.strings !== void 0)
778
+ throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`);
779
+ }
780
+ _$setValue(e, t = this) {
781
+ var r;
782
+ if (e = (r = ne(this, e, t, 0)) !== null && r !== void 0 ? r : z, e === K)
783
+ return;
784
+ const i = this._$committedValue, a = e === z && i !== z || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== z && (i === z || a);
785
+ m == null || m({
786
+ kind: "commit event listener",
787
+ element: this.element,
788
+ name: this.name,
789
+ value: e,
790
+ options: this.options,
791
+ removeListener: a,
792
+ addListener: n,
793
+ oldListener: i
794
+ }), a && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, e), this._$committedValue = e;
795
+ }
796
+ handleEvent(e) {
797
+ var t, r;
798
+ typeof this._$committedValue == "function" ? this._$committedValue.call((r = (t = this.options) === null || t === void 0 ? void 0 : t.host) !== null && r !== void 0 ? r : this.element, e) : this._$committedValue.handleEvent(e);
799
+ }
800
+ }
801
+ class Xt {
802
+ constructor(e, t, r) {
803
+ this.element = e, this.type = Yo, this._$disconnectableChildren = void 0, this._$parent = t, this.options = r;
804
+ }
805
+ get _$isConnected() {
806
+ return this._$parent._$isConnected;
807
+ }
808
+ _$setValue(e) {
809
+ m == null || m({
810
+ kind: "commit to element binding",
811
+ element: this.element,
812
+ value: e,
813
+ options: this.options
814
+ }), ne(this, e);
815
+ }
816
+ }
817
+ const Kr = {
818
+ _boundAttributeSuffix: Oe,
819
+ _marker: I,
820
+ _markerMatch: Wo,
821
+ _HTML_RESULT: Vt,
822
+ _getTemplateHtml: Ht,
823
+ _TemplateInstance: Wt,
824
+ _isIterable: It,
825
+ _resolveDirective: ne,
826
+ _ChildPart: he,
827
+ _AttributePart: _e,
828
+ _BooleanAttributePart: Yt,
829
+ _EventPart: Zt,
830
+ _PropertyPart: Kt,
831
+ _ElementPart: Xt
832
+ }, mo = q.litHtmlPolyfillSupportDevMode;
833
+ mo == null || mo(ye, he);
834
+ ((uo = q.litHtmlVersions) !== null && uo !== void 0 ? uo : q.litHtmlVersions = []).push("2.6.1");
835
+ q.litHtmlVersions.length > 1 && Ue("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
836
+ const Me = (o, e, t) => {
837
+ var r, i;
838
+ if (e == null)
839
+ throw new TypeError(`The container to render into may not be ${e}`);
840
+ const a = Mr++, n = (r = t == null ? void 0 : t.renderBefore) !== null && r !== void 0 ? r : e;
841
+ let l = n._$litPart$;
842
+ if (m == null || m({
843
+ kind: "begin render",
844
+ id: a,
845
+ value: o,
846
+ container: e,
847
+ options: t,
848
+ part: l
849
+ }), l === void 0) {
850
+ const s = (i = t == null ? void 0 : t.renderBefore) !== null && i !== void 0 ? i : null;
851
+ n._$litPart$ = l = new he(e.insertBefore(ke(), s), s, void 0, t != null ? t : {});
852
+ }
853
+ return l._$setValue(o), m == null || m({
854
+ kind: "end render",
855
+ id: a,
856
+ value: o,
857
+ container: e,
858
+ options: t,
859
+ part: l
860
+ }), l;
861
+ };
862
+ Me.setSanitizer = jr, Me.createSanitizer = Eo, Me._testOnlyClearSanitizerFactoryDoNotCallOrElse = Nr;
863
+ /**
18
864
  * @license
19
865
  * Copyright 2017 Google LLC
20
866
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var Le,Oe;class w extends G{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ct(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return N}}w.finalized=!0,w._$litElement$=!0,(Le=globalThis.litElementHydrateSupport)===null||Le===void 0||Le.call(globalThis,{LitElement:w});const wo=globalThis.litElementPolyfillSupport;wo?.({LitElement:w});((Oe=globalThis.litElementVersions)!==null&&Oe!==void 0?Oe:globalThis.litElementVersions=[]).push("3.2.2");/**
867
+ */
868
+ var fo, vo, xo;
869
+ let Zo;
870
+ {
871
+ const o = (fo = globalThis.litIssuedWarnings) !== null && fo !== void 0 ? fo : globalThis.litIssuedWarnings = /* @__PURE__ */ new Set();
872
+ Zo = (e, t) => {
873
+ t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
874
+ };
875
+ }
876
+ class $ extends V {
877
+ constructor() {
878
+ super(...arguments), this.renderOptions = { host: this }, this.__childPart = void 0;
879
+ }
880
+ createRenderRoot() {
881
+ var e, t;
882
+ const r = super.createRenderRoot();
883
+ return (e = (t = this.renderOptions).renderBefore) !== null && e !== void 0 || (t.renderBefore = r.firstChild), r;
884
+ }
885
+ update(e) {
886
+ const t = this.render();
887
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart = Me(t, this.renderRoot, this.renderOptions);
888
+ }
889
+ connectedCallback() {
890
+ var e;
891
+ super.connectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!0);
892
+ }
893
+ disconnectedCallback() {
894
+ var e;
895
+ super.disconnectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!1);
896
+ }
897
+ render() {
898
+ return K;
899
+ }
900
+ }
901
+ $.finalized = !0;
902
+ $._$litElement$ = !0;
903
+ (vo = globalThis.litElementHydrateSupport) === null || vo === void 0 || vo.call(globalThis, { LitElement: $ });
904
+ const ko = globalThis.litElementPolyfillSupportDevMode;
905
+ ko == null || ko({ LitElement: $ });
906
+ $.finalize = function() {
907
+ if (!V.finalize.call(this))
908
+ return !1;
909
+ const e = (t, r, i = !1) => {
910
+ if (t.hasOwnProperty(r)) {
911
+ const a = (typeof t == "function" ? t : t.constructor).name;
912
+ Zo(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${a}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
913
+ }
914
+ };
915
+ return e(this, "render"), e(this, "getStyles", !0), e(this.prototype, "adoptStyles"), !0;
916
+ };
917
+ ((xo = globalThis.litElementVersions) !== null && xo !== void 0 ? xo : globalThis.litElementVersions = []).push("3.2.2");
918
+ globalThis.litElementVersions.length > 1 && Zo("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
919
+ /**
22
920
  * @license
23
921
  * Copyright 2017 Google LLC
24
922
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ke={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ge=o=>(...e)=>({_$litDirective$:o,values:e});class Je{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)}}/**
923
+ */
924
+ const Xo = {
925
+ ATTRIBUTE: 1,
926
+ CHILD: 2,
927
+ PROPERTY: 3,
928
+ BOOLEAN_ATTRIBUTE: 4,
929
+ EVENT: 5,
930
+ ELEMENT: 6
931
+ }, Go = (o) => (...e) => ({
932
+ _$litDirective$: o,
933
+ values: e
934
+ });
935
+ class Jo {
936
+ constructor(e) {
937
+ }
938
+ get _$isConnected() {
939
+ return this._$parent._$isConnected;
940
+ }
941
+ _$initialize(e, t, r) {
942
+ this.__part = e, this._$parent = t, this.__attributeIndex = r;
943
+ }
944
+ _$resolve(e, t) {
945
+ return this.update(e, t);
946
+ }
947
+ update(e, t) {
948
+ return this.render(...t);
949
+ }
950
+ }
951
+ /**
26
952
  * @license
27
953
  * Copyright 2017 Google LLC
28
954
  * SPDX-License-Identifier: BSD-3-Clause
29
- */class He extends Je{constructor(e){if(super(e),this.it=$,e.type!==Ke.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||e==null)return this._t=void 0,this.it=e;if(e===N)return e;if(typeof e!="string")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:[]}}}He.directiveName="unsafeHTML",He.resultType=1;const Qe=Ge(He);function _t(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var De={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0});class t{constructor(g,d){this.stream=g,this.pos=d}get value(){return this.stream[this.pos]}}class r{constructor(g,d,b){this.stream=g,this.start=d,this.end=b}get value(){return this.stream.slice(this.start,this.end)}get whitespace(){let g=this.start-1;for(;g>=0&&/\s/.test(this.stream[g]);g--);return new r(this.stream,g+1,this.start)}}function i(c,g,d=/\S/g){if(!d.global)throw new Error("Regexp must be global");d.lastIndex=g;const b=d.exec(c);if(!!b)return new t(c,b.index)}function n(c,g){let d=i(c,g);if(!d)return;const b=d.pos;d=i(c,b+1,/[\s<]|>/g);const u=d?d.pos+Number(d.value==">"):c.length;return new r(c,b,u)}const a=["area","base","br","col","command","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","--"];function l(c){let g=c.replace(/^<\/?|>$/g,"").toLowerCase();(g.startsWith("!--")||g.endsWith("--"))&&(g="--");const d=/</.test(c),b=/>/.test(c),u=/<([^/]|$)/.test(c),h=/<\//.test(c)||u&&a.includes(g);return{isTagStart:d,isTagEnd:b,isStartTag:u,isEndTag:h,tagName:g}}function s(c,g=" ",d=80){const b=[];let u=!1,h=!1,m=!1,f=!1,x="",k=0,S={},v,F=0;for(;v=n(c,F);){let z=v.value,H=v.whitespace.value,j="",{isTagStart:C,isTagEnd:A,isStartTag:E,isEndTag:M,tagName:R}=l(z);if(!f){if(C&&!R){if(F=v.end,v=n(c,F),!v)break;z+=v.value,{isTagStart:C,isTagEnd:A,isStartTag:E,isEndTag:M,tagName:R}=l(z)}if(!C&&(u||h)){const ne=/[^=]"\w/g.exec(z);ne&&v.end!=v.start+ne.index+2&&(v.end=v.start+ne.index+2,z=v.value,{isTagStart:C,isTagEnd:A,isStartTag:E,isEndTag:M,tagName:R}=l(z),j=g)}}!f&&E&&(x=R);const D=(M&&R!="--"||A&&R=="--")&&R==x;f&&!D&&(C=A=E=M=!1),E&&(u=!0),M&&(h=!0),M&&!E&&--k;const je=u&&A&&["script","style"].includes(x)||E&&x=="--",no=u||h,ao=H||S.pendingWhitespace,pt=/^=([^!=]|$)/.test(z)||/^"/.test(z)&&/(^|[^!=])=$/.test(S.tokenValue),mt=no&&(pt||/^>/.test(z));if(f||m)b.push(H);else if(ao&&!mt){const Me=(ao.match(/\n/g)||[]).length,ne=Math.max(0,b.lastIndexOf(`
30
- `)),ft=b.slice(ne).reduce((vt,xt)=>vt+xt.length,0),co=g.repeat(k+Number(no&&!C));ft+z.length>d?b.push(`
31
- `,co):Me?b.push(...Array(Me).fill(`
32
- `),co):b.push(" ")}b.push(z),S={pendingWhitespace:j,tokenValue:z},je&&(f=!0),D&&(f=!1),u&&A&&x=="pre"&&(m=!0),M&&R=="pre"&&(m=!1),u&&A&&!h&&++k,A&&(u=h=!1),F=v.end}return c[c.length-1]==`
33
- `&&b.push(`
34
- `),b.join("")}e.default=s,o.exports=Object.assign(e.default,e)})(De,De.exports);const At=_t(De.exports);class Et extends w{static styles=_`
955
+ */
956
+ const Yr = 1;
957
+ class Qo extends Jo {
958
+ constructor(e) {
959
+ if (super(e), this._value = z, e.type !== Xo.CHILD)
960
+ throw new Error(`${this.constructor.directiveName}() can only be used in child bindings`);
961
+ }
962
+ render(e) {
963
+ if (e === z || e == null)
964
+ return this._templateResult = void 0, this._value = e;
965
+ if (e === K)
966
+ return e;
967
+ if (typeof e != "string")
968
+ throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
969
+ if (e === this._value)
970
+ return this._templateResult;
971
+ this._value = e;
972
+ const t = [e];
973
+ return t.raw = t, this._templateResult = {
974
+ _$litType$: this.constructor.resultType,
975
+ strings: t,
976
+ values: []
977
+ };
978
+ }
979
+ }
980
+ Qo.directiveName = "unsafeHTML";
981
+ Qo.resultType = Yr;
982
+ const et = Go(Qo);
983
+ function Zr(o) {
984
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
985
+ }
986
+ var Ro = { exports: {} };
987
+ (function(o, e) {
988
+ Object.defineProperty(e, "__esModule", { value: !0 });
989
+ class t {
990
+ constructor(b, d) {
991
+ this.stream = b, this.pos = d;
992
+ }
993
+ get value() {
994
+ return this.stream[this.pos];
995
+ }
996
+ }
997
+ class r {
998
+ constructor(b, d, g) {
999
+ this.stream = b, this.start = d, this.end = g;
1000
+ }
1001
+ get value() {
1002
+ return this.stream.slice(this.start, this.end);
1003
+ }
1004
+ get whitespace() {
1005
+ let b = this.start - 1;
1006
+ for (; b >= 0 && /\s/.test(this.stream[b]); b--)
1007
+ ;
1008
+ return new r(this.stream, b + 1, this.start);
1009
+ }
1010
+ }
1011
+ function i(c, b, d = /\S/g) {
1012
+ if (!d.global)
1013
+ throw new Error("Regexp must be global");
1014
+ d.lastIndex = b;
1015
+ const g = d.exec(c);
1016
+ if (!!g)
1017
+ return new t(c, g.index);
1018
+ }
1019
+ function a(c, b) {
1020
+ let d = i(c, b);
1021
+ if (!d)
1022
+ return;
1023
+ const g = d.pos;
1024
+ d = i(c, g + 1, /[\s<]|>/g);
1025
+ const u = d ? d.pos + Number(d.value == ">") : c.length;
1026
+ return new r(c, g, u);
1027
+ }
1028
+ const n = [
1029
+ "area",
1030
+ "base",
1031
+ "br",
1032
+ "col",
1033
+ "command",
1034
+ "embed",
1035
+ "hr",
1036
+ "img",
1037
+ "input",
1038
+ "keygen",
1039
+ "link",
1040
+ "menuitem",
1041
+ "meta",
1042
+ "param",
1043
+ "source",
1044
+ "track",
1045
+ "wbr",
1046
+ "!doctype",
1047
+ "--"
1048
+ ];
1049
+ function l(c) {
1050
+ let b = c.replace(/^<\/?|>$/g, "").toLowerCase();
1051
+ (b.startsWith("!--") || b.endsWith("--")) && (b = "--");
1052
+ const d = /</.test(c), g = />/.test(c), u = /<([^/]|$)/.test(c), h = /<\//.test(c) || u && n.includes(b);
1053
+ return {
1054
+ isTagStart: d,
1055
+ isTagEnd: g,
1056
+ isStartTag: u,
1057
+ isEndTag: h,
1058
+ tagName: b
1059
+ };
1060
+ }
1061
+ function s(c, b = " ", d = 80) {
1062
+ const g = [];
1063
+ let u = !1, h = !1, f = !1, v = !1, x = "", y = 0, S = {}, w, F = 0;
1064
+ for (; w = a(c, F); ) {
1065
+ let C = w.value, X = w.whitespace.value, N = "", { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
1066
+ if (!v) {
1067
+ if (E && !P) {
1068
+ if (F = w.end, w = a(c, F), !w)
1069
+ break;
1070
+ C += w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
1071
+ }
1072
+ if (!E && (u || h)) {
1073
+ const pe = /[^=]"\w/g.exec(C);
1074
+ pe && w.end != w.start + pe.index + 2 && (w.end = w.start + pe.index + 2, C = w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C), N = b);
1075
+ }
1076
+ }
1077
+ !v && M && (x = P);
1078
+ const G = (T && P != "--" || A && P == "--") && P == x;
1079
+ v && !G && (E = A = M = T = !1), M && (u = !0), T && (h = !0), T && !M && --y;
1080
+ const eo = u && A && ["script", "style"].includes(x) || M && x == "--", at = u || h, lt = X || S.pendingWhitespace, vr = /^=([^!=]|$)/.test(C) || /^"/.test(C) && /(^|[^!=])=$/.test(S.tokenValue), xr = at && (vr || /^>/.test(C));
1081
+ if (v || f)
1082
+ g.push(X);
1083
+ else if (lt && !xr) {
1084
+ const oo = (lt.match(/\n/g) || []).length, pe = Math.max(0, g.lastIndexOf(`
1085
+ `)), kr = g.slice(pe).reduce((wr, yr) => wr + yr.length, 0), ct = b.repeat(y + Number(at && !E));
1086
+ kr + C.length > d ? g.push(`
1087
+ `, ct) : oo ? g.push(...Array(oo).fill(`
1088
+ `), ct) : g.push(" ");
1089
+ }
1090
+ g.push(C), S = { pendingWhitespace: N, tokenValue: C }, eo && (v = !0), G && (v = !1), u && A && x == "pre" && (f = !0), T && P == "pre" && (f = !1), u && A && !h && ++y, A && (u = h = !1), F = w.end;
1091
+ }
1092
+ return c[c.length - 1] == `
1093
+ ` && g.push(`
1094
+ `), g.join("");
1095
+ }
1096
+ e.default = s, o.exports = Object.assign(e.default, e);
1097
+ })(Ro, Ro.exports);
1098
+ const Xr = /* @__PURE__ */ Zr(Ro.exports);
1099
+ class Gt extends $ {
1100
+ static get properties() {
1101
+ return {
1102
+ source: { attribute: !1 }
1103
+ };
1104
+ }
1105
+ firstUpdated() {
1106
+ let t = this.shadowRoot.querySelector("slot").assignedNodes().map((i) => i.nodeType === Node.TEXT_NODE ? i.textContent : i.outerHTML).join("").trim();
1107
+ t = Xr(t);
1108
+ const r = window == null ? void 0 : window.Prism.highlight(t, window.Prism.languages.markup, "html");
1109
+ this.source = r;
1110
+ }
1111
+ render() {
1112
+ return p` <link
1113
+ rel="stylesheet"
1114
+ href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism.min.css"
1115
+ integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ=="
1116
+ crossorigin="anonymous"
1117
+ />
1118
+ <slot></slot>
1119
+ <pre><code>${et(this.source)}</code></pre>`;
1120
+ }
1121
+ }
1122
+ k(Gt, "styles", R`
35
1123
  :host {
36
1124
  display: block;
37
1125
  margin-top: 20px;
@@ -50,14 +1138,9 @@ import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&in
50
1138
  slot {
51
1139
  display: none;
52
1140
  }
53
- `;static get properties(){return{source:{attribute:!1}}}firstUpdated(){let t=this.shadowRoot.querySelector("slot").assignedNodes().map(i=>i.nodeType===Node.TEXT_NODE?i.textContent:i.outerHTML).join("").trim();t=At(t);const r=window?.Prism.highlight(t,window.Prism.languages.markup,"html");this.source=r}render(){return p` <link
54
- rel="stylesheet"
55
- href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism.min.css"
56
- integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ=="
57
- crossorigin="anonymous"
58
- />
59
- <slot></slot>
60
- <pre><code>${Qe(this.source)}</code></pre>`}}customElements.define("syntax-highlight",Et);const Rt=()=>p`<svg
1141
+ `);
1142
+ customElements.define("syntax-highlight", Gt);
1143
+ const Gr = () => p`<svg
61
1144
  aria-label="Rødt utropstegn"
62
1145
  role="img"
63
1146
  xmlns="http://www.w3.org/2000/svg"
@@ -65,8 +1148,8 @@ import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&in
65
1148
  height="16"
66
1149
  fill="none"
67
1150
  >
68
- ${Ut}
69
- </svg>`,qt=()=>p`<svg
1151
+ ${oi}
1152
+ </svg>`, Jr = () => p`<svg
70
1153
  aria-label="Grønt hake"
71
1154
  role="img"
72
1155
  width="16"
@@ -74,8 +1157,8 @@ import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&in
74
1157
  fill="none"
75
1158
  xmlns="http://www.w3.org/2000/svg"
76
1159
  >
77
- ${Ft}
78
- </svg> `,jt=()=>p`<svg
1160
+ ${ti}
1161
+ </svg> `, Qr = () => p`<svg
79
1162
  aria-label="Gult utropstegn"
80
1163
  role="img"
81
1164
  width="16"
@@ -83,8 +1166,8 @@ import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&in
83
1166
  fill="none"
84
1167
  xmlns="http://www.w3.org/2000/svg"
85
1168
  >
86
- ${Pt}
87
- </svg> `,Mt=()=>p`<svg
1169
+ ${ri}
1170
+ </svg> `, ei = () => p`<svg
88
1171
  aria-label="Info"
89
1172
  role="img"
90
1173
  width="16"
@@ -92,8 +1175,8 @@ import lo from"https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css?used&in
92
1175
  fill="none"
93
1176
  xmlns="http://www.w3.org/2000/svg"
94
1177
  >
95
- ${Lt}
96
- </svg>`,Ut=_e`<path
1178
+ ${ii}
1179
+ </svg>`, oi = Ze`<path
97
1180
  d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
98
1181
  fill="currentColor"
99
1182
  />
@@ -103,13 +1186,13 @@ clip-rule="evenodd"
103
1186
  d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
104
1187
  fill="#fff"
105
1188
  />
106
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,Ft=_e`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
1189
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ti = Ze`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
107
1190
  <path
108
1191
  fill-rule="evenodd"
109
1192
  clip-rule="evenodd"
110
1193
  d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
111
1194
  fill="#fff"
112
- />`,Pt=_e`<path
1195
+ />`, ri = Ze`<path
113
1196
  d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
114
1197
  fill="currentColor"
115
1198
  />
@@ -119,14 +1202,79 @@ clip-rule="evenodd"
119
1202
  d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
120
1203
  fill="#fff"
121
1204
  />
122
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`,Lt=_e`<circle cx="8" cy="8" r="8" fill="currentColor" />
1205
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ii = Ze`<circle cx="8" cy="8" r="8" fill="currentColor" />
123
1206
  <path
124
1207
  fill-rule="evenodd"
125
1208
  clip-rule="evenodd"
126
1209
  d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
127
1210
  fill="#fff"
128
- />`,yo={negative:{color:"red",icon:Rt(),bgColor:"bg-red-50",borderColor:"border-red-300",textColor:"text-red-600"},positive:{color:"green",icon:qt(),bgColor:"bg-green-50",borderColor:"border-green-300",textColor:"text-green-600"},warning:{color:"yellow",icon:jt(),bgColor:"bg-yellow-50",borderColor:"border-yellow-300",textColor:"text-yellow-600"},info:{color:"aqua",icon:Mt(),bgColor:"bg-aqua-50",borderColor:"border-aqua-300",textColor:"text-aqua-600"}};class Ot extends w{static properties={variant:{type:String,reflect:!0},show:{type:Boolean,reflect:!0},role:{type:String,reflect:!0}};constructor(){super(),this.show=!1,this.role="alert"}connectedCallback(){if(super.connectedCallback(),!this.variant||!Object.keys(yo).includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
129
- negative, positive, warning, info.`)}static styles=_`
1211
+ />`, xt = {
1212
+ negative: {
1213
+ color: "red",
1214
+ icon: Gr(),
1215
+ bgColor: "bg-red-50",
1216
+ borderColor: "border-red-300",
1217
+ textColor: "text-red-600"
1218
+ },
1219
+ positive: {
1220
+ color: "green",
1221
+ icon: Jr(),
1222
+ bgColor: "bg-green-50",
1223
+ borderColor: "border-green-300",
1224
+ textColor: "text-green-600"
1225
+ },
1226
+ warning: {
1227
+ color: "yellow",
1228
+ icon: Qr(),
1229
+ bgColor: "bg-yellow-50",
1230
+ borderColor: "border-yellow-300",
1231
+ textColor: "text-yellow-600"
1232
+ },
1233
+ info: {
1234
+ color: "aqua",
1235
+ icon: ei(),
1236
+ bgColor: "bg-aqua-50",
1237
+ borderColor: "border-aqua-300",
1238
+ textColor: "text-aqua-600"
1239
+ }
1240
+ };
1241
+ class Ao extends $ {
1242
+ constructor() {
1243
+ super(), this.show = !1, this.role = "alert";
1244
+ }
1245
+ connectedCallback() {
1246
+ if (super.connectedCallback(), !this.variant || !Object.keys(xt).includes(this.variant))
1247
+ throw new Error(
1248
+ `Invalid "variant" attribute. Set its value to one of the following:
1249
+ negative, positive, warning, info.`
1250
+ );
1251
+ }
1252
+ get _style() {
1253
+ return this.variant ? xt[this.variant] : {};
1254
+ }
1255
+ render() {
1256
+ const { color: e, icon: t, bgColor: r, borderColor: i, textColor: a } = this._style;
1257
+ return p`
1258
+ <w-expand-transition ?show=${this.show}>
1259
+ <div
1260
+ role=${this.role}
1261
+ class="${`flex p-16 border rounded-4 border-l-4 ${r} ${i}`}"
1262
+ style="border-left-color:var(--w-${e}-600)"
1263
+ >
1264
+ <div class="mr-8 ${a}">${t}</div>
1265
+ <div class="text-14">
1266
+ <slot></slot>
1267
+ </div>
1268
+ </div>
1269
+ </w-expand-transition>
1270
+ `;
1271
+ }
1272
+ }
1273
+ k(Ao, "properties", {
1274
+ variant: { type: String, reflect: !0 },
1275
+ show: { type: Boolean, reflect: !0 },
1276
+ role: { type: String, reflect: !0 }
1277
+ }), k(Ao, "styles", R`
130
1278
  /* /* layer: preflights */
131
1279
 
132
1280
  /*
@@ -702,24 +1850,223 @@ video {
702
1850
  ::slotted(:last-child) {
703
1851
  margin-bottom: 0px !important;
704
1852
  }
705
- `;get _style(){return this.variant?yo[this.variant]:{}}render(){const{color:e,icon:t,bgColor:r,borderColor:i,textColor:n}=this._style;return p`
706
- <w-expand-transition ?show=${this.show}>
707
- <div
708
- role=${this.role}
709
- class="${`flex p-16 border rounded-4 border-l-4 ${r} ${i}`}"
710
- style="border-left-color:var(--w-${e}-600)"
711
- >
712
- <div class="mr-8 ${n}">${t}</div>
713
- <div class="text-14">
714
- <slot></slot>
715
- </div>
716
- </div>
717
- </w-expand-transition>
718
- `}}customElements.get("w-alert")||customElements.define("w-alert",Ot);const W={base:"border-2 relative",tooltip:"bg-gray-700 border-gray-700 text-white rounded-4 py-6 px-8",callout:"bg-green-100 border-green-400 py-8 px-16 rounded-8",popover:"bg-white border-white rounded-8 p-16 filter drop-shadow-20",arrowBase:"absolute h-14 w-14 border-2 border-b-0 border-r-0 transform",arrowTooltip:"bg-gray-700 border-gray-700",arrowCallout:"bg-green-100 border-green-400",arrowPopover:"bg-white border-white"},J={box:"group block relative break-words last-child:mb-0 p-16 rounded-8",bleed:"-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8"},O={card:"cursor-pointer overflow-hidden relative transition-all outline-none",cardShadow:"f-card rounded-8",cardFlat:"border-2 rounded-4",cardFlatUnselected:"border-bluegray-300 hover:bg-gray-50 hover:border-bluegray-400 active:border-bluegray-300",cardFlatSelected:"border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",cardSelected:"border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",cardOutline:"f-card-outline absolute rounded-8 inset-0 transition-all border-2",cardOutlineUnselected:"border-transparent",cardOutlineSelected:"border-blue-600 hover:border-blue-700"},$o={toasterContainer:"fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",toaster:"f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"},q={toastWrapper:"relative overflow-hidden w-full",toast:"toast flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",toastPositive:"bg-green-50 border-green-300 text-green-800",toastWarning:"bg-yellow-50 border-yellow-300 text-yellow-800",toastNegative:"bg-red-50 border-red-300 text-red-800",toastNeutral:"bg-gray-50 border-gray-300 text-gray-800",toastIcon:"flex-shrink-0 rounded-full w-16 h-16 m-8",toastIconPositive:"bg-green-300",toastIconWarning:"bg-yellow-300",toastIconNegative:"bg-red-300",toastIconNeutral:"bg-gray-300",toastIconLoading:"animate-bounce",toastContent:"self-center mr-8 py-4 last-child:mb-0",toastClose:"ml-auto p-8"},Bt="focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block",Ko="absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ",Nt={wrapper:Ko+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"field-label pb-0 text-12"},Tt={wrapper:Ko+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"field-label pb-0 text-secondary text-12"},U={buttonSecondary:"py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",buttonPrimary:"py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",buttonFlat:"py-12 px-16 border-0! font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",buttonDestructive:"py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!",buttonDestructiveFlat:"py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!",buttonUtility:"px-[15px] py-[11px] font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!",buttonUtilityFlat:"py-12 px-16 bg-transparent border-0 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-text i-bg-$color-button-utility-background hover:i-bg-$color-button-utility-background-hover rounded-4",buttonPill:"font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out rounded-full! min-h-[44px] min-w-[44px] border-0! p-4 i-text-$color-button-favorite-text i-bg-$color-button-favorite-background hover:i-bg-$color-button-favorite-background-hover acive:i-bg-$color-button-favorite-background-active inline-flex items-center justify-center hover:bg-clip-padding",buttonLink:"leading-24 max-w-max focusable ease-in-out inline i-text-$color-text-link hover:i-text-$color-text-link-hover hover:underline active:underline",buttonSmall:"px-16 py-6 text-12 leading-16",buttonSmallOverride:"py-8",buttonSmallSecondary:"py-6",buttonSmallUtility:"py-7 px-15",buttonSmallButtonPill:"p-4 min-h-32 min-w-32",buttonSmallButtonLink:"p-0",buttonIsDisabled:"py-10 px-14 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text! cursor-default pointer-events-none",buttonInProgress:"py-10 px-14 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!"};var eo=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(t,r){return t.concat(typeof r=="string"?r:Array.isArray(r)?eo.apply(void 0,r):typeof r=="object"&&r?Object.keys(r).map(function(i){return r[i]?i:""}):"")},[]).join(" ")};/**
1853
+ `);
1854
+ customElements.get("w-alert") || customElements.define("w-alert", Ao);
1855
+ const Q = {
1856
+ base: "border-2 relative",
1857
+ tooltip: "bg-gray-700 border-gray-700 text-white rounded-4 py-6 px-8",
1858
+ callout: "bg-green-100 border-green-400 py-8 px-16 rounded-8",
1859
+ popover: "bg-white border-white rounded-8 p-16 filter drop-shadow-20",
1860
+ arrowBase: "absolute h-14 w-14 border-2 border-b-0 border-r-0 transform",
1861
+ arrowTooltip: "bg-gray-700 border-gray-700",
1862
+ arrowCallout: "bg-green-100 border-green-400",
1863
+ arrowPopover: "bg-white border-white"
1864
+ }, le = {
1865
+ box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
1866
+ bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8"
1867
+ }, H = {
1868
+ card: "cursor-pointer overflow-hidden relative transition-all outline-none",
1869
+ cardShadow: "f-card rounded-8",
1870
+ cardFlat: "border-2 rounded-4",
1871
+ cardFlatUnselected: "border-bluegray-300 hover:bg-gray-50 hover:border-bluegray-400 active:border-bluegray-300",
1872
+ cardFlatSelected: "border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",
1873
+ cardSelected: "border-blue-600 bg-blue-50 hover:bg-blue-100 hover:border-blue-700 active:border-blue-600",
1874
+ cardOutline: "f-card-outline absolute rounded-8 inset-0 transition-all border-2",
1875
+ cardOutlineUnselected: "border-transparent",
1876
+ cardOutlineSelected: "border-blue-600 hover:border-blue-700"
1877
+ }, kt = {
1878
+ toasterContainer: "fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
1879
+ toaster: "f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
1880
+ }, j = {
1881
+ toastWrapper: "relative overflow-hidden w-full",
1882
+ toast: "toast flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
1883
+ toastPositive: "bg-green-50 border-green-300 text-green-800",
1884
+ toastWarning: "bg-yellow-50 border-yellow-300 text-yellow-800",
1885
+ toastNegative: "bg-red-50 border-red-300 text-red-800",
1886
+ toastNeutral: "bg-gray-50 border-gray-300 text-gray-800",
1887
+ toastIcon: "flex-shrink-0 rounded-full w-16 h-16 m-8",
1888
+ toastIconPositive: "bg-green-300",
1889
+ toastIconWarning: "bg-yellow-300",
1890
+ toastIconNegative: "bg-red-300",
1891
+ toastIconNeutral: "bg-gray-300",
1892
+ toastIconLoading: "animate-bounce",
1893
+ toastContent: "self-center mr-8 py-4 last-child:mb-0",
1894
+ toastClose: "ml-auto p-8"
1895
+ }, ni = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Jt = "absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ", ai = {
1896
+ wrapper: Jt + "right-0",
1897
+ wrapperWithLabel: "w-max pr-12",
1898
+ wrapperWithIcon: "w-40",
1899
+ label: "field-label pb-0 text-12"
1900
+ }, li = {
1901
+ wrapper: Jt + "left-0",
1902
+ wrapperWithLabel: "w-max pl-12",
1903
+ wrapperWithIcon: "w-40",
1904
+ label: "field-label pb-0 text-secondary text-12"
1905
+ }, U = {
1906
+ buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
1907
+ buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
1908
+ buttonFlat: "py-12 px-16 border-0! font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",
1909
+ buttonDestructive: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-background i-text-$color-button-negative-text hover:i-bg-$color-button-negative-background-hover! active:i-bg-$color-button-negative-background-active!",
1910
+ buttonDestructiveFlat: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-negative-quiet-background! i-text-$color-button-negative-quiet-text! hover:i-bg-$color-button-negative-quiet-background-hover! active:i-bg-$color-button-negative-quiet-background-active!",
1911
+ buttonUtility: "px-[15px] py-[11px] font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out border rounded-4 i-text-$color-button-utility-text i-bg-$color-button-utility-background i-border-$color-button-utility-border hover:i-bg-$color-button-utility-background hover:i-border-$color-button-utility-border-hover! active:i-border-$color-button-utility-border-active!",
1912
+ buttonUtilityFlat: "py-12 px-16 bg-transparent border-0 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-utility-text i-bg-$color-button-utility-background hover:i-bg-$color-button-utility-background-hover rounded-4",
1913
+ buttonPill: "font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out rounded-full! min-h-[44px] min-w-[44px] border-0! p-4 i-text-$color-button-favorite-text i-bg-$color-button-favorite-background hover:i-bg-$color-button-favorite-background-hover acive:i-bg-$color-button-favorite-background-active inline-flex items-center justify-center hover:bg-clip-padding",
1914
+ buttonLink: "leading-24 max-w-max focusable ease-in-out inline i-text-$color-text-link hover:i-text-$color-text-link-hover hover:underline active:underline",
1915
+ buttonSmall: "px-16 py-6 text-12 leading-16",
1916
+ buttonSmallOverride: "py-8",
1917
+ buttonSmallSecondary: "py-6",
1918
+ buttonSmallUtility: "py-7 px-15",
1919
+ buttonSmallButtonPill: "p-4 min-h-32 min-w-32",
1920
+ buttonSmallButtonLink: "p-0",
1921
+ buttonIsDisabled: "py-10 px-14 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text! cursor-default pointer-events-none",
1922
+ buttonInProgress: "py-10 px-14 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!"
1923
+ };
1924
+ var ot = function() {
1925
+ for (var o = [], e = arguments.length; e--; )
1926
+ o[e] = arguments[e];
1927
+ return o.reduce(function(t, r) {
1928
+ return t.concat(typeof r == "string" ? r : Array.isArray(r) ? ot.apply(void 0, r) : typeof r == "object" && r ? Object.keys(r).map(function(i) {
1929
+ return r[i] ? i : "";
1930
+ }) : "");
1931
+ }, []).join(" ");
1932
+ };
1933
+ /**
719
1934
  * @license
720
1935
  * Copyright 2018 Google LLC
721
1936
  * SPDX-License-Identifier: BSD-3-Clause
722
- */const oo=Ge(class extends Je{constructor(o){var e;if(super(o),o.type!==Ke.ATTRIBUTE||o.name!=="class"||((e=o.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(e=>o[e]).join(" ")+" "}update(o,[e]){var t,r;if(this.nt===void 0){this.nt=new Set,o.strings!==void 0&&(this.st=new Set(o.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in e)e[n]&&!(!((t=this.st)===null||t===void 0)&&t.has(n))&&this.nt.add(n);return this.render(e)}const i=o.element.classList;this.nt.forEach(n=>{n in e||(i.remove(n),this.nt.delete(n))});for(const n in e){const a=!!e[n];a===this.nt.has(n)||((r=this.st)===null||r===void 0?void 0:r.has(n))||(a?(i.add(n),this.nt.add(n)):(i.remove(n),this.nt.delete(n)))}return N}}),It=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function Ae(o){return class extends o{static createProperty(e,t){let r=t;(typeof t?.attribute>"u"||t?.attribute===!0)&&(r=Object.assign({},t,{attribute:It(e.toString())})),super.createProperty(e,r)}}}function zo(o){const e=[];for(const[t,r]of Object.entries(o))r&&e.push(t);return e.join(" ")}const te=typeof window<"u";function P(o){const e={};for(const[t,r]of Object.entries(o))for(const i of t.split(" "))e[i]=r;return oo(e)}function Ht(){return`m${Math.random().toString(36).slice(2)}`}const Be=["primary","secondary","negative","utility","pill","link"];class Dt extends Ae(w){static shadowRootOptions={...w.shadowRootOptions,delegatesFocus:!0};static properties={type:{type:"button"|"submit"|"reset",reflect:!0},autofocus:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},quiet:{type:Boolean,reflect:!0},small:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0},href:{type:String,reflect:!0},target:{type:String,reflect:!0},rel:{type:String,reflect:!0},buttonClass:{type:String,reflect:!0}};static styles=[unsafeCSS(lo),_`
1937
+ */
1938
+ class ci extends Jo {
1939
+ constructor(e) {
1940
+ var t;
1941
+ if (super(e), e.type !== Xo.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
1942
+ throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1943
+ }
1944
+ render(e) {
1945
+ return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
1946
+ }
1947
+ update(e, [t]) {
1948
+ var r, i;
1949
+ if (this._previousClasses === void 0) {
1950
+ this._previousClasses = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this._staticClasses = new Set(e.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1951
+ for (const n in t)
1952
+ t[n] && !(!((r = this._staticClasses) === null || r === void 0) && r.has(n)) && this._previousClasses.add(n);
1953
+ return this.render(t);
1954
+ }
1955
+ const a = e.element.classList;
1956
+ this._previousClasses.forEach((n) => {
1957
+ n in t || (a.remove(n), this._previousClasses.delete(n));
1958
+ });
1959
+ for (const n in t) {
1960
+ const l = !!t[n];
1961
+ l !== this._previousClasses.has(n) && !(!((i = this._staticClasses) === null || i === void 0) && i.has(n)) && (l ? (a.add(n), this._previousClasses.add(n)) : (a.remove(n), this._previousClasses.delete(n)));
1962
+ }
1963
+ return K;
1964
+ }
1965
+ }
1966
+ const tt = Go(ci), si = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1967
+ function Xe(o) {
1968
+ return class extends o {
1969
+ static createProperty(e, t) {
1970
+ let r = t;
1971
+ (typeof (t == null ? void 0 : t.attribute) > "u" || (t == null ? void 0 : t.attribute) === !0) && (r = Object.assign({}, t, {
1972
+ attribute: si(e.toString())
1973
+ })), super.createProperty(e, r);
1974
+ }
1975
+ };
1976
+ }
1977
+ function wt(o) {
1978
+ const e = [];
1979
+ for (const [t, r] of Object.entries(o))
1980
+ r && e.push(t);
1981
+ return e.join(" ");
1982
+ }
1983
+ const be = typeof window < "u";
1984
+ function L(o) {
1985
+ const e = {};
1986
+ for (const [t, r] of Object.entries(o))
1987
+ for (const i of t.split(" "))
1988
+ e[i] = r;
1989
+ return tt(e);
1990
+ }
1991
+ function di() {
1992
+ return `m${Math.random().toString(36).slice(2)}`;
1993
+ }
1994
+ const wo = [
1995
+ "primary",
1996
+ "secondary",
1997
+ "negative",
1998
+ "utility",
1999
+ "pill",
2000
+ "link"
2001
+ ];
2002
+ class Pe extends Xe($) {
2003
+ constructor() {
2004
+ super(), this.variant = "secondary";
2005
+ }
2006
+ connectedCallback() {
2007
+ if (super.connectedCallback(), !wo.includes(this.variant))
2008
+ throw new Error(
2009
+ `Invalid "variant" attribute. Set its value to one of the following:
2010
+ ${wo.join(
2011
+ ", "
2012
+ )}.`
2013
+ );
2014
+ }
2015
+ firstUpdated() {
2016
+ this.autofocus && setTimeout(() => this.focus(), 0);
2017
+ }
2018
+ get _classes() {
2019
+ const e = this.variant === "primary", t = this.variant === "secondary", r = this.variant === "negative", i = this.variant === "utility", a = this.variant === "pill", n = this.variant === "link";
2020
+ return ot(
2021
+ {
2022
+ [U.buttonSecondary]: !wo.find((l) => this.variant === l) || t,
2023
+ [U.buttonPrimary]: e,
2024
+ [U.buttonDestructive]: r && !this.quiet,
2025
+ [U.buttonFlat]: t && this.quiet,
2026
+ [U.buttonDestructiveFlat]: r && this.quiet,
2027
+ [U.buttonUtilityFlat]: i && this.quiet,
2028
+ [U.buttonSmall]: this.small,
2029
+ [U.buttonUtility]: i && !this.quiet,
2030
+ [U.buttonLink]: n,
2031
+ [U.buttonPill]: a,
2032
+ [U.buttonInProgress]: this.loading,
2033
+ [U.buttonIsDisabled]: this.disabled,
2034
+ ["inline-block"]: !!this.href
2035
+ }
2036
+ );
2037
+ }
2038
+ render() {
2039
+ return p`
2040
+ ${this.href ? p`<a
2041
+ href=${this.href}
2042
+ target=${this.target}
2043
+ rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
2044
+ class=${this._classes}
2045
+ >
2046
+ <slot></slot>
2047
+ </a>` : p`<button type=${this.type || "button"} class=${this._classes}>
2048
+ <slot></slot>
2049
+ </button>`}
2050
+ ${this.loading ? p`<span
2051
+ class="sr-only"
2052
+ role="progressbar"
2053
+ aria-valuenow="{0}"
2054
+ aria-valuetext="Laster..."
2055
+ />` : null}`;
2056
+ }
2057
+ }
2058
+ k(Pe, "shadowRootOptions", { ...$.shadowRootOptions, delegatesFocus: !0 }), k(Pe, "properties", {
2059
+ type: { type: "button" | "submit" | "reset", reflect: !0 },
2060
+ autofocus: { type: Boolean, reflect: !0 },
2061
+ variant: { type: String, reflect: !0 },
2062
+ quiet: { type: Boolean, reflect: !0 },
2063
+ small: { type: Boolean, reflect: !0 },
2064
+ loading: { type: Boolean, reflect: !0 },
2065
+ href: { type: String, reflect: !0 },
2066
+ target: { type: String, reflect: !0 },
2067
+ rel: { type: String, reflect: !0 },
2068
+ buttonClass: { type: String, reflect: !0 }
2069
+ }), k(Pe, "styles", R`
723
2070
  /* /* layer: preflights */
724
2071
 
725
2072
  /*
@@ -1286,28 +2633,64 @@ video {
1286
2633
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;}
1287
2634
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
1288
2635
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
1289
- `];constructor(){super(),this.variant="secondary"}connectedCallback(){if(super.connectedCallback(),!Be.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:
1290
- ${Be.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>this.focus(),0)}get _classes(){const e=this.variant==="primary",t=this.variant==="secondary",r=this.variant==="negative",i=this.variant==="utility",n=this.variant==="pill",a=this.variant==="link";return console.log({styles:lo}),eo({[U.buttonSecondary]:!Be.find(l=>this.variant===l)||t,[U.buttonPrimary]:e,[U.buttonDestructive]:r&&!this.quiet,[U.buttonFlat]:t&&this.quiet,[U.buttonDestructiveFlat]:r&&this.quiet,[U.buttonUtilityFlat]:i&&this.quiet,[U.buttonSmall]:this.small,[U.buttonUtility]:i&&!this.quiet,[U.buttonLink]:a,[U.buttonPill]:n,[U.buttonInProgress]:this.loading,[U.buttonIsDisabled]:this.disabled,["inline-block"]:!!this.href})}render(){return p`
1291
- ${this.href?p`<a
1292
- href=${this.href}
1293
- target=${this.target}
1294
- rel=${this.target==="_blank"?this.rel||"noopener":void 0}
1295
- class=${this._classes}
1296
- >
1297
- <slot></slot>
1298
- </a>`:p`<button type=${this.type||"button"} class=${this._classes}>
1299
- <slot></slot>
1300
- </button>`}
1301
- ${this.loading?p`<span
1302
- class="sr-only"
1303
- role="progressbar"
1304
- aria-valuenow="{0}"
1305
- aria-valuetext="Laster..."
1306
- />`:null}`}}customElements.get("w-button")||customElements.define("w-button",Dt);/**
2636
+ `);
2637
+ customElements.get("w-button") || customElements.define("w-button", Pe);
2638
+ /**
1307
2639
  * @license
1308
2640
  * Copyright 2018 Google LLC
1309
2641
  * SPDX-License-Identifier: BSD-3-Clause
1310
- */const y=o=>o??$,So={ENTER:"Enter",SPACE:" "};class Wt extends w{static styles=[_`
2642
+ */
2643
+ const _ = (o) => o != null ? o : z, yt = {
2644
+ ENTER: "Enter",
2645
+ SPACE: " "
2646
+ };
2647
+ class qo extends $ {
2648
+ constructor() {
2649
+ super(), this.selected = !1, this.flat = !1, this.clickable = !1;
2650
+ }
2651
+ get _outerClasses() {
2652
+ return L({
2653
+ [H.card]: !0,
2654
+ [H.cardShadow]: !this.flat,
2655
+ [H.cardSelected]: this.selected,
2656
+ [H.cardFlat]: this.flat,
2657
+ [this.selected ? H.cardFlatSelected : H.cardFlatUnselected]: this.flat
2658
+ });
2659
+ }
2660
+ get _innerClasses() {
2661
+ return L({
2662
+ [H.cardOutline]: !0,
2663
+ [this.selected ? H.cardOutlineSelected : H.cardOutlineUnselected]: !0
2664
+ });
2665
+ }
2666
+ get uuButton() {
2667
+ return p`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
2668
+ Velg
2669
+ </button>`;
2670
+ }
2671
+ get uuSpan() {
2672
+ return p`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
2673
+ }
2674
+ keypressed(e) {
2675
+ !this.clickable || e.altKey || e.ctrlKey || (e.key === yt.ENTER || e.key === yt.SPACE) && (e.preventDefault(), this.click());
2676
+ }
2677
+ render() {
2678
+ return p`
2679
+ <div
2680
+ tabindex=${_(this.clickable ? "0" : void 0)}
2681
+ class="${this._outerClasses}"
2682
+ @keydown=${this.keypressed}
2683
+ >
2684
+ ${this.clickable ? this.uuButton : ""}
2685
+ ${!this.clickable && this.selected ? this.uuSpan : ""}
2686
+ <div class="${this._innerClasses}"></div>
2687
+ <slot></slot>
2688
+ </div>
2689
+ `;
2690
+ }
2691
+ }
2692
+ k(qo, "styles", [
2693
+ R`
1311
2694
  /* /* layer: preflights */
1312
2695
 
1313
2696
  /*
@@ -1886,24 +3269,77 @@ video {
1886
3269
  :host {
1887
3270
  display: block;
1888
3271
  }
1889
- `];static properties={selected:{type:Boolean,reflect:!0},flat:{type:Boolean},clickable:{type:Boolean}};constructor(){super(),this.selected=!1,this.flat=!1,this.clickable=!1}get _outerClasses(){return P({[O.card]:!0,[O.cardShadow]:!this.flat,[O.cardSelected]:this.selected,[O.cardFlat]:this.flat,[this.selected?O.cardFlatSelected:O.cardFlatUnselected]:this.flat})}get _innerClasses(){return P({[O.cardOutline]:!0,[this.selected?O.cardOutlineSelected:O.cardOutlineUnselected]:!0})}get uuButton(){return p`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
1890
- Velg
1891
- </button>`}get uuSpan(){return p`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`}keypressed(e){!this.clickable||e.altKey||e.ctrlKey||(e.key===So.ENTER||e.key===So.SPACE)&&(e.preventDefault(),this.click())}render(){return p`
1892
- <div
1893
- tabindex=${y(this.clickable?"0":void 0)}
1894
- class="${this._outerClasses}"
1895
- @keydown=${this.keypressed}
1896
- >
1897
- ${this.clickable?this.uuButton:""}
1898
- ${!this.clickable&&this.selected?this.uuSpan:""}
1899
- <div class="${this._innerClasses}"></div>
1900
- <slot></slot>
1901
- </div>
1902
- `}}customElements.get("w-card")||customElements.define("w-card",Wt);/**
3272
+ `
3273
+ ]), k(qo, "properties", {
3274
+ selected: { type: Boolean, reflect: !0 },
3275
+ flat: { type: Boolean },
3276
+ clickable: { type: Boolean }
3277
+ });
3278
+ customElements.get("w-card") || customElements.define("w-card", qo);
3279
+ /**
1903
3280
  * @license
1904
3281
  * Copyright 2021 Google LLC
1905
3282
  * SPDX-License-Identifier: BSD-3-Clause
1906
- */function xe(o,e,t){return o?e():t?.()}class Vt extends Ae(w){static properties={autoFocus:{type:Boolean,reflect:!0},invalid:{type:Boolean,reflect:!0},always:{type:Boolean,reflect:!0},hint:{type:String,reflect:!0},label:{type:String,reflect:!0},optional:{type:Boolean,reflect:!0},_options:{state:!0}};static styles=_`
3283
+ */
3284
+ function je(o, e, t) {
3285
+ return o ? e() : t == null ? void 0 : t();
3286
+ }
3287
+ var Ke, Qt, se, Ne, de, Te;
3288
+ class Mo extends Xe($) {
3289
+ constructor() {
3290
+ super();
3291
+ Re(this, Ke);
3292
+ Re(this, se);
3293
+ Re(this, de);
3294
+ this._options = this.innerHTML;
3295
+ }
3296
+ render() {
3297
+ return p`<div class="${J(this, Ke, Qt)}">
3298
+ ${je(
3299
+ this.label,
3300
+ () => p`<label for="${J(this, se, Ne)}">
3301
+ ${this.label}
3302
+ ${je(
3303
+ this.optional,
3304
+ () => p`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`
3305
+ )}</label
3306
+ >`
3307
+ )}
3308
+ <div class="input--select__wrap">
3309
+ <select
3310
+ id="${J(this, se, Ne)}"
3311
+ ?autofocus=${this.autoFocus}
3312
+ aria-describedby="${_(J(this, de, Te))}"
3313
+ aria-invalid="${_(this.invalid)}"
3314
+ aria-errormessage="${_(this.invalid && J(this, de, Te))}"
3315
+ >
3316
+ ${et(this._options)}
3317
+ </select>
3318
+ </div>
3319
+ ${je(
3320
+ this.always || this.invalid,
3321
+ () => p`<div id="${J(this, de, Te)}" class="input__sub-text">${this.hint}</div>`
3322
+ )}
3323
+ </div>`;
3324
+ }
3325
+ }
3326
+ Ke = new WeakSet(), Qt = function() {
3327
+ return ot("input mb-0", {
3328
+ "input--is-invalid": this.invalid
3329
+ });
3330
+ }, se = new WeakSet(), Ne = function() {
3331
+ return "select_id";
3332
+ }, de = new WeakSet(), Te = function() {
3333
+ return this.hint ? `${J(this, se, Ne)}__hint` : void 0;
3334
+ }, k(Mo, "properties", {
3335
+ autoFocus: { type: Boolean, reflect: !0 },
3336
+ invalid: { type: Boolean, reflect: !0 },
3337
+ always: { type: Boolean, reflect: !0 },
3338
+ hint: { type: String, reflect: !0 },
3339
+ label: { type: String, reflect: !0 },
3340
+ optional: { type: Boolean, reflect: !0 },
3341
+ _options: { state: !0 }
3342
+ }), k(Mo, "styles", R`
1907
3343
  /* /* layer: preflights */
1908
3344
 
1909
3345
  /*
@@ -2472,24 +3908,32 @@ video {
2472
3908
  .pointer-events-none{pointer-events:none;}
2473
3909
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
2474
3910
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
2475
- `;get#t(){return eo("input mb-0",{"input--is-invalid":this.invalid})}get#e(){return"select_id"}get#o(){return this.hint?`${this.#e}__hint`:void 0}constructor(){super(),this._options=this.innerHTML}render(){return p`<div class="${this.#t}">
2476
- ${xe(this.label,()=>p`<label for="${this.#e}">
2477
- ${this.label}
2478
- ${xe(this.optional,()=>p`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`)}</label
2479
- >`)}
2480
- <div class="input--select__wrap">
2481
- <select
2482
- id="${this.#e}"
2483
- ?autofocus=${this.autoFocus}
2484
- aria-describedby="${y(this.#o)}"
2485
- aria-invalid="${y(this.invalid)}"
2486
- aria-errormessage="${y(this.invalid&&this.#o)}"
2487
- >
2488
- ${Qe(this._options)}
2489
- </select>
3911
+ `);
3912
+ customElements.get("w-select") || customElements.define("w-select", Mo);
3913
+ class Po extends $ {
3914
+ get _class() {
3915
+ return L({
3916
+ [le.box]: !0,
3917
+ [le.bleed]: this.bleed,
3918
+ "bg-aqua-50": this.info,
3919
+ "bg-bluegray-100": this.neutral,
3920
+ "border-2 border-bluegray-300": this.bordered
3921
+ });
3922
+ }
3923
+ render() {
3924
+ return p`
3925
+ <div class="${this._class}">
3926
+ <slot></slot>
2490
3927
  </div>
2491
- ${xe(this.always||this.invalid,()=>p`<div id="${this.#o}" class="input__sub-text">${this.hint}</div>`)}
2492
- </div>`}}customElements.get("w-select")||customElements.define("w-select",Vt);class Zt extends w{static properties={bleed:{type:Boolean},bordered:{type:Boolean},info:{type:Boolean},neutral:{type:Boolean}};static styles=_`
3928
+ `;
3929
+ }
3930
+ }
3931
+ k(Po, "properties", {
3932
+ bleed: { type: Boolean },
3933
+ bordered: { type: Boolean },
3934
+ info: { type: Boolean },
3935
+ neutral: { type: Boolean }
3936
+ }), k(Po, "styles", R`
2493
3937
  /* /* layer: preflights */
2494
3938
 
2495
3939
  /*
@@ -3062,11 +4506,26 @@ video {
3062
4506
  ::slotted(:last-child) {
3063
4507
  margin-bottom: 0px !important;
3064
4508
  }
3065
- `;get _class(){return P({[J.box]:!0,[J.bleed]:this.bleed,"bg-aqua-50":this.info,"bg-bluegray-100":this.neutral,"border-2 border-bluegray-300":this.bordered})}render(){return p`
3066
- <div class="${this._class}">
3067
- <slot></slot>
3068
- </div>
3069
- `}}customElements.get("w-box")||customElements.define("w-box",Zt);function Xt(o,e){return o.flatMap(t=>[t,e]).slice(0,-1)}const Yt=p`<span class="select-none" aria-hidden="true">/</span>`;class Kt extends w{static styles=_`
4509
+ `);
4510
+ customElements.get("w-box") || customElements.define("w-box", Po);
4511
+ function ui(o, e) {
4512
+ return o.flatMap((t) => [t, e]).slice(0, -1);
4513
+ }
4514
+ const bi = p`<span class="select-none" aria-hidden="true">/</span>`;
4515
+ class er extends $ {
4516
+ connectedCallback() {
4517
+ super.connectedCallback(), this._children = ui(Array.from(this.children), bi);
4518
+ }
4519
+ render() {
4520
+ return p`
4521
+ <nav aria-label="Her er du" class="flex space-x-8">
4522
+ <h2 class="sr-only">Her er du</h2>
4523
+ ${this._children}
4524
+ </nav>
4525
+ `;
4526
+ }
4527
+ }
4528
+ k(er, "styles", R`
3070
4529
  /* /* layer: preflights */
3071
4530
 
3072
4531
  /*
@@ -3635,12 +5094,50 @@ video {
3635
5094
  .select-none{user-select:none;}
3636
5095
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
3637
5096
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
3638
- `;connectedCallback(){super.connectedCallback(),this._children=Xt(Array.from(this.children),Yt)}render(){return p`
3639
- <nav aria-label="Her er du" class="flex space-x-8">
3640
- <h2 class="sr-only">Her er du</h2>
3641
- ${this._children}
3642
- </nav>
3643
- `}}customElements.get("w-breadcrumbs")||customElements.define("w-breadcrumbs",Kt);const to=typeof window<"u";let Go=!0;if(to){const o=window.matchMedia("(prefers-reduced-motion: reduce)"),e=({matches:t})=>Go=!t;o.addEventListener&&o.addEventListener("change",e),e(o)}const Jo=o=>{o.style.transition=null,o.style.backfaceVisibility=null,o.style.overflow=null},Qo=o=>{const e=Go?"var(--f-expansion-duration, 0.3s)":"0.01s";o.style.transition=`height ${e}`,o.style.backfaceVisibility="hidden",o.style.overflow="hidden"},Gt=(o,e)=>()=>{o.style.height="auto",o.style.overflow=null,e&&e()},Jt=o=>()=>{o&&o()},et=(o,e)=>{const t=(()=>{if(!e)return new Promise(n=>{e=n})})(),r=Gt(o,e);Jo(o),o.style.height="auto";let i=o.scrollHeight;if(to&&requestAnimationFrame(()=>{o.addEventListener("transitionend",r,{once:!0}),o.style.height="0px",o.style.transitionTimingFunction="ease-out",Qo(o),requestAnimationFrame(()=>o.style.height=i+"px")}),t)return t},ot=(o,e)=>{const t=(()=>{if(!e)return new Promise(n=>{e=n})})(),r=Jt(e);Jo(o);let i=o.scrollHeight;if(to&&requestAnimationFrame(()=>{o.addEventListener("transitionend",r,{once:!0}),o.style.height=i+"px",o.style.transitionTimingFunction="ease-in",Qo(o),requestAnimationFrame(()=>o.style.height="0px")}),t)return t},Qt=o=>p`<svg
5097
+ `);
5098
+ customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", er);
5099
+ const rt = typeof window < "u";
5100
+ let or = !0;
5101
+ if (rt) {
5102
+ const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) => or = !t;
5103
+ o.addEventListener && o.addEventListener("change", e), e(o);
5104
+ }
5105
+ const tr = (o) => {
5106
+ o.style.transition = null, o.style.backfaceVisibility = null, o.style.overflow = null;
5107
+ }, rr = (o) => {
5108
+ const e = or ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
5109
+ o.style.transition = `height ${e}`, o.style.backfaceVisibility = "hidden", o.style.overflow = "hidden";
5110
+ }, gi = (o, e) => () => {
5111
+ o.style.height = "auto", o.style.overflow = null, e && e();
5112
+ }, hi = (o) => () => {
5113
+ o && o();
5114
+ }, ir = (o, e) => {
5115
+ const t = (() => {
5116
+ if (!e)
5117
+ return new Promise((a) => {
5118
+ e = a;
5119
+ });
5120
+ })(), r = gi(o, e);
5121
+ tr(o), o.style.height = "auto";
5122
+ let i = o.scrollHeight;
5123
+ if (rt && requestAnimationFrame(() => {
5124
+ o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out", rr(o), requestAnimationFrame(() => o.style.height = i + "px");
5125
+ }), t)
5126
+ return t;
5127
+ }, nr = (o, e) => {
5128
+ const t = (() => {
5129
+ if (!e)
5130
+ return new Promise((a) => {
5131
+ e = a;
5132
+ });
5133
+ })(), r = hi(e);
5134
+ tr(o);
5135
+ let i = o.scrollHeight;
5136
+ if (rt && requestAnimationFrame(() => {
5137
+ o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in", rr(o), requestAnimationFrame(() => o.style.height = "0px");
5138
+ }), t)
5139
+ return t;
5140
+ }, pi = (o) => p`<svg
3644
5141
  role="img"
3645
5142
  aria-label="${o.typeLabel}"
3646
5143
  xmlns="http://www.w3.org/2000/svg"
@@ -3656,7 +5153,7 @@ video {
3656
5153
  stroke-width="1.5"
3657
5154
  d="M5.5 9l2 1.5L11 6"
3658
5155
  />
3659
- </svg>`,er=o=>p`
5156
+ </svg>`, mi = (o) => p`
3660
5157
  <svg
3661
5158
  role="img"
3662
5159
  aria-label="${o.typeLabel}"
@@ -3665,7 +5162,10 @@ video {
3665
5162
  height="16"
3666
5163
  fill="none"
3667
5164
  viewBox="0 0 16 16"
3668
- class="${oo({"transition-transform duration-200":!0,"transform-rotate-180":o.isInfo})}"
5165
+ class="${tt({
5166
+ "transition-transform duration-200": !0,
5167
+ "transform-rotate-180": o.isInfo
5168
+ })}"
3669
5169
  >
3670
5170
  <path
3671
5171
  stroke="currentColor"
@@ -3676,7 +5176,7 @@ video {
3676
5176
  />
3677
5177
  <circle cx="8" cy="11.8" r=".8" fill="currentColor" />
3678
5178
  </svg>
3679
- `,or=()=>p`
5179
+ `, fi = () => p`
3680
5180
  <svg
3681
5181
  role="img"
3682
5182
  aria-label="Lukk"
@@ -3693,7 +5193,99 @@ video {
3693
5193
  clipRule="evenodd"
3694
5194
  />
3695
5195
  </svg>
3696
- `,Co=o=>{const e={};for(const[t,r]of Object.entries(o))for(const i of t.split(" "))e[i]=r;return oo(e)};class tr extends w{static styles=[_`
5196
+ `, $t = (o) => {
5197
+ const e = {};
5198
+ for (const [t, r] of Object.entries(o))
5199
+ for (const i of t.split(" "))
5200
+ e[i] = r;
5201
+ return tt(e);
5202
+ };
5203
+ class jo extends $ {
5204
+ constructor() {
5205
+ super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
5206
+ }
5207
+ connectedCallback() {
5208
+ super.connectedCallback();
5209
+ }
5210
+ disconnectedCallback() {
5211
+ super.disconnectedCallback();
5212
+ }
5213
+ updated() {
5214
+ !this._expanded && this._wrapper && ir(this._wrapper, () => this._expanded = !0);
5215
+ }
5216
+ get _primaryClasses() {
5217
+ return $t({
5218
+ [j.toast]: !0,
5219
+ [j.toastPositive]: this.type === "success",
5220
+ [j.toastWarning]: this.type === "warning",
5221
+ [j.toastNegative]: this.type === "error",
5222
+ [j.toastNeutral]: this.type === "info"
5223
+ });
5224
+ }
5225
+ get _iconClasses() {
5226
+ return $t({
5227
+ [j.toastIcon]: !0,
5228
+ [j.toastIconPositive]: this.type == "success",
5229
+ [j.toastIconWarning]: this.type === "warning",
5230
+ [j.toastIconNegative]: this.type === "error",
5231
+ [j.toastIconNeutral]: this.type === "info"
5232
+ });
5233
+ }
5234
+ get _wrapper() {
5235
+ var e, t;
5236
+ return (t = (e = this.renderRoot) == null ? void 0 : e.querySelector("section")) != null ? t : null;
5237
+ }
5238
+ get _success() {
5239
+ return this.type === "success";
5240
+ }
5241
+ get _warning() {
5242
+ return this.type === "warning";
5243
+ }
5244
+ get _error() {
5245
+ return this.type === "error";
5246
+ }
5247
+ get _info() {
5248
+ return this.type === "info";
5249
+ }
5250
+ get _role() {
5251
+ return this._error || this._warning ? "alert" : "status";
5252
+ }
5253
+ get _typeLabel() {
5254
+ return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
5255
+ }
5256
+ get _iconMarkup() {
5257
+ return this._success ? pi({ typeLabel: this._typeLabel }) : mi({ typeLabel: this._typeLabel, isInfo: this._info });
5258
+ }
5259
+ async collapse() {
5260
+ return new Promise((e) => {
5261
+ this._expanded && this._wrapper ? nr(this._wrapper, e) : e();
5262
+ });
5263
+ }
5264
+ close() {
5265
+ const e = new CustomEvent("close", {
5266
+ detail: { id: this.id },
5267
+ bubbles: !0,
5268
+ composed: !0
5269
+ });
5270
+ this.updateComplete.then(() => this.dispatchEvent(e));
5271
+ }
5272
+ render() {
5273
+ return this.text ? p` <section class="${j.toastWrapper}" aria-label="${this._typeLabel}">
5274
+ <div class="${this._primaryClasses}">
5275
+ <div class="${this._iconClasses}">${this._iconMarkup}</div>
5276
+ <div role="${this._role}" class="${j.toastContent}">
5277
+ <p>${this.text}</p>
5278
+ </div>
5279
+ ${je(
5280
+ this.canclose === !0,
5281
+ () => p`<button class="${j.toastClose}" @click="${this.close}">${fi()}</button>`
5282
+ )}
5283
+ </div>
5284
+ </section>` : p``;
5285
+ }
5286
+ }
5287
+ k(jo, "styles", [
5288
+ R`
3697
5289
  /* /* layer: preflights */
3698
5290
 
3699
5291
  /*
@@ -4262,23 +5854,209 @@ video {
4262
5854
  :host {
4263
5855
  display: block;
4264
5856
  }
4265
- `];static properties={id:{type:String,attribute:!0,reflect:!0},type:{type:String,attribute:!0,reflect:!0},text:{type:String,attribute:!0,reflect:!0},canclose:{type:Boolean,attribute:!0,reflect:!0}};constructor(){super(),this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5),this.type="success",this.text="",this.canclose=!1}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&et(this._wrapper,()=>this._expanded=!0)}get _primaryClasses(){return Co({[q.toast]:!0,[q.toastPositive]:this.type==="success",[q.toastWarning]:this.type==="warning",[q.toastNegative]:this.type==="error",[q.toastNeutral]:this.type==="info"})}get _iconClasses(){return Co({[q.toastIcon]:!0,[q.toastIconPositive]:this.type=="success",[q.toastIconWarning]:this.type==="warning",[q.toastIconNegative]:this.type==="error",[q.toastIconNeutral]:this.type==="info"})}get _wrapper(){return this.renderRoot?.querySelector("section")??null}get _success(){return this.type==="success"}get _warning(){return this.type==="warning"}get _error(){return this.type==="error"}get _info(){return this.type==="info"}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._success?"Vellykket":this._error?"Feil":this._warning?"Varsel":"Info"}get _iconMarkup(){return this._success?Qt({typeLabel:this._typeLabel}):er({typeLabel:this._typeLabel,isInfo:this._info})}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?ot(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?p` <section class="${q.toastWrapper}" aria-label="${this._typeLabel}">
4266
- <div class="${this._primaryClasses}">
4267
- <div class="${this._iconClasses}">${this._iconMarkup}</div>
4268
- <div role="${this._role}" class="${q.toastContent}">
4269
- <p>${this.text}</p>
5857
+ `
5858
+ ]), k(jo, "properties", {
5859
+ id: { type: String, attribute: !0, reflect: !0 },
5860
+ type: { type: String, attribute: !0, reflect: !0 },
5861
+ text: { type: String, attribute: !0, reflect: !0 },
5862
+ canclose: { type: Boolean, attribute: !0, reflect: !0 }
5863
+ });
5864
+ customElements.get("w-toast") || customElements.define("w-toast", jo);
5865
+ /**
5866
+ * @license
5867
+ * Copyright 2020 Google LLC
5868
+ * SPDX-License-Identifier: BSD-3-Clause
5869
+ */
5870
+ var yo, $o;
5871
+ const { _ChildPart: vi } = Kr, W = ((yo = window.ShadyDOM) === null || yo === void 0 ? void 0 : yo.inUse) && (($o = window.ShadyDOM) === null || $o === void 0 ? void 0 : $o.noPatch) === !0 ? window.ShadyDOM.wrap : (o) => o, zt = () => document.createComment(""), fe = (o, e, t) => {
5872
+ var r;
5873
+ const i = W(o._$startNode).parentNode, a = e === void 0 ? o._$endNode : e._$startNode;
5874
+ if (t === void 0) {
5875
+ const n = W(i).insertBefore(zt(), a), l = W(i).insertBefore(zt(), a);
5876
+ t = new vi(n, l, o, o.options);
5877
+ } else {
5878
+ const n = W(t._$endNode).nextSibling, l = t._$parent, s = l !== o;
5879
+ if (s) {
5880
+ (r = t._$reparentDisconnectables) === null || r === void 0 || r.call(t, o), t._$parent = o;
5881
+ let c;
5882
+ t._$notifyConnectionChanged !== void 0 && (c = o._$isConnected) !== l._$isConnected && t._$notifyConnectionChanged(c);
5883
+ }
5884
+ if (n !== a || s) {
5885
+ let c = t._$startNode;
5886
+ for (; c !== n; ) {
5887
+ const b = W(c).nextSibling;
5888
+ W(i).insertBefore(c, a), c = b;
5889
+ }
5890
+ }
5891
+ }
5892
+ return t;
5893
+ }, re = (o, e, t = o) => (o._$setValue(e, t), o), xi = {}, ki = (o, e = xi) => o._$committedValue = e, wi = (o) => o._$committedValue, zo = (o) => {
5894
+ var e;
5895
+ (e = o._$notifyConnectionChanged) === null || e === void 0 || e.call(o, !1, !0);
5896
+ let t = o._$startNode;
5897
+ const r = W(o._$endNode).nextSibling;
5898
+ for (; t !== r; ) {
5899
+ const i = W(t).nextSibling;
5900
+ W(t).remove(), t = i;
5901
+ }
5902
+ };
5903
+ /**
5904
+ * @license
5905
+ * Copyright 2017 Google LLC
5906
+ * SPDX-License-Identifier: BSD-3-Clause
5907
+ */
5908
+ const _t = (o, e, t) => {
5909
+ const r = /* @__PURE__ */ new Map();
5910
+ for (let i = e; i <= t; i++)
5911
+ r.set(o[i], i);
5912
+ return r;
5913
+ };
5914
+ class yi extends Jo {
5915
+ constructor(e) {
5916
+ if (super(e), e.type !== Xo.CHILD)
5917
+ throw new Error("repeat() can only be used in text expressions");
5918
+ }
5919
+ _getValuesAndKeys(e, t, r) {
5920
+ let i;
5921
+ r === void 0 ? r = t : t !== void 0 && (i = t);
5922
+ const a = [], n = [];
5923
+ let l = 0;
5924
+ for (const s of e)
5925
+ a[l] = i ? i(s, l) : l, n[l] = r(s, l), l++;
5926
+ return {
5927
+ values: n,
5928
+ keys: a
5929
+ };
5930
+ }
5931
+ render(e, t, r) {
5932
+ return this._getValuesAndKeys(e, t, r).values;
5933
+ }
5934
+ update(e, [t, r, i]) {
5935
+ var a;
5936
+ const n = wi(e), { values: l, keys: s } = this._getValuesAndKeys(t, r, i);
5937
+ if (!Array.isArray(n))
5938
+ return this._itemKeys = s, l;
5939
+ const c = (a = this._itemKeys) !== null && a !== void 0 ? a : this._itemKeys = [], b = [];
5940
+ let d, g, u = 0, h = n.length - 1, f = 0, v = l.length - 1;
5941
+ for (; u <= h && f <= v; )
5942
+ if (n[u] === null)
5943
+ u++;
5944
+ else if (n[h] === null)
5945
+ h--;
5946
+ else if (c[u] === s[f])
5947
+ b[f] = re(n[u], l[f]), u++, f++;
5948
+ else if (c[h] === s[v])
5949
+ b[v] = re(n[h], l[v]), h--, v--;
5950
+ else if (c[u] === s[v])
5951
+ b[v] = re(n[u], l[v]), fe(e, b[v + 1], n[u]), u++, v--;
5952
+ else if (c[h] === s[f])
5953
+ b[f] = re(n[h], l[f]), fe(e, n[u], n[h]), h--, f++;
5954
+ else if (d === void 0 && (d = _t(s, f, v), g = _t(c, u, h)), !d.has(c[u]))
5955
+ zo(n[u]), u++;
5956
+ else if (!d.has(c[h]))
5957
+ zo(n[h]), h--;
5958
+ else {
5959
+ const x = g.get(s[f]), y = x !== void 0 ? n[x] : null;
5960
+ if (y === null) {
5961
+ const S = fe(e, n[u]);
5962
+ re(S, l[f]), b[f] = S;
5963
+ } else
5964
+ b[f] = re(y, l[f]), fe(e, n[u], y), n[x] = null;
5965
+ f++;
5966
+ }
5967
+ for (; f <= v; ) {
5968
+ const x = fe(e, b[v + 1]);
5969
+ re(x, l[f]), b[f++] = x;
5970
+ }
5971
+ for (; u <= h; ) {
5972
+ const x = n[u++];
5973
+ x !== null && zo(x);
5974
+ }
5975
+ return this._itemKeys = s, ki(e, b), K;
5976
+ }
5977
+ }
5978
+ const ar = Go(yi);
5979
+ class Ie extends $ {
5980
+ constructor() {
5981
+ super(), this._toasts = /* @__PURE__ */ new Map();
5982
+ }
5983
+ connectedCallback() {
5984
+ super.connectedCallback(), this._interval = setInterval(() => {
5985
+ const e = [], t = [];
5986
+ for (const i of this._toasts)
5987
+ Date.now() <= i[1].duration ? e.push(i) : t.push(i);
5988
+ const r = [];
5989
+ for (const [i] of t) {
5990
+ const a = this.renderRoot.querySelector(`#${i}`);
5991
+ r.push(a.collapse());
5992
+ }
5993
+ Promise.all(r).then(() => {
5994
+ e.length != this._toasts.size && (this._toasts = new Map(e));
5995
+ });
5996
+ }, 500);
5997
+ }
5998
+ disconnectedCallback() {
5999
+ super.disconnectedCallback(), this._interval && clearTimeout(this._interval);
6000
+ }
6001
+ static init() {
6002
+ let e = document.querySelector("w-toast-container");
6003
+ return e || (e = document.createElement("w-toast-container"), document.body.appendChild(e)), e;
6004
+ }
6005
+ get _toastsArray() {
6006
+ return Array.from(this._toasts).map(([, e]) => e);
6007
+ }
6008
+ get(e) {
6009
+ if (!e)
6010
+ throw new Error('undefined "id" given when attempting to retrieve toast');
6011
+ if (typeof e != "string" && !Number.isInteger(e))
6012
+ throw new Error('"id" must be number or string when attempting to retrieve toast');
6013
+ return this._toasts.get(e);
6014
+ }
6015
+ set(e) {
6016
+ if (!e.id)
6017
+ throw new Error('invalid or undefined "id" on toast object');
6018
+ const t = this._toasts.set(e.id, {
6019
+ ...e,
6020
+ duration: Date.now() + (e.duration || 5e3)
6021
+ });
6022
+ return this._toasts = new Map(Array.from(this._toasts)), t;
6023
+ }
6024
+ async del(e) {
6025
+ if (!e)
6026
+ throw new Error('undefined "id" given when attempting to retrieve toast');
6027
+ if (typeof e != "string" && !Number.isInteger(e))
6028
+ throw new Error('"id" must be number or string when attempting to retrieve toast');
6029
+ const t = this.renderRoot.querySelector(`#${e}`);
6030
+ if (!this._toasts.has(e))
6031
+ return !1;
6032
+ await t.collapse();
6033
+ const r = this._toasts.delete(e);
6034
+ return this._toasts = new Map(Array.from(this._toasts)), r;
6035
+ }
6036
+ render() {
6037
+ return p`
6038
+ <aside class="${kt.toasterContainer}">
6039
+ <div class="${kt.toaster}" id="w-toast-container-list">
6040
+ ${ar(
6041
+ this._toastsArray,
6042
+ (e) => e.id,
6043
+ (e) => p` <w-toast
6044
+ class="w-full"
6045
+ id="${e.id}"
6046
+ type="${e.type}"
6047
+ text="${e.text}"
6048
+ ?canclose=${e.canclose}
6049
+ @close=${() => this.del(e.id)}
6050
+ >
6051
+ </w-toast>`
6052
+ )}
4270
6053
  </div>
4271
- ${xe(this.canclose===!0,()=>p`<button class="${q.toastClose}" @click="${this.close}">${or()}</button>`)}
4272
- </div>
4273
- </section>`:p``}}customElements.get("w-toast")||customElements.define("w-toast",tr);/**
4274
- * @license
4275
- * Copyright 2020 Google LLC
4276
- * SPDX-License-Identifier: BSD-3-Clause
4277
- */const{I:rr}=St,_o=()=>document.createComment(""),ce=(o,e,t)=>{var r;const i=o._$AA.parentNode,n=e===void 0?o._$AB:e._$AA;if(t===void 0){const a=i.insertBefore(_o(),n),l=i.insertBefore(_o(),n);t=new rr(a,l,o,o.options)}else{const a=t._$AB.nextSibling,l=t._$AM,s=l!==o;if(s){let c;(r=t._$AQ)===null||r===void 0||r.call(t,o),t._$AM=o,t._$AP!==void 0&&(c=o._$AU)!==l._$AU&&t._$AP(c)}if(a!==n||s){let c=t._$AA;for(;c!==a;){const g=c.nextSibling;i.insertBefore(c,n),c=g}}}return t},X=(o,e,t=o)=>(o._$AI(e,t),o),ir={},nr=(o,e=ir)=>o._$AH=e,ar=o=>o._$AH,Ne=o=>{var e;(e=o._$AP)===null||e===void 0||e.call(o,!1,!0);let t=o._$AA;const r=o._$AB.nextSibling;for(;t!==r;){const i=t.nextSibling;t.remove(),t=i}};/**
4278
- * @license
4279
- * Copyright 2017 Google LLC
4280
- * SPDX-License-Identifier: BSD-3-Clause
4281
- */const Ao=(o,e,t)=>{const r=new Map;for(let i=e;i<=t;i++)r.set(o[i],i);return r},tt=Ge(class extends Je{constructor(o){if(super(o),o.type!==Ke.CHILD)throw Error("repeat() can only be used in text expressions")}ht(o,e,t){let r;t===void 0?t=e:e!==void 0&&(r=e);const i=[],n=[];let a=0;for(const l of o)i[a]=r?r(l,a):a,n[a]=t(l,a),a++;return{values:n,keys:i}}render(o,e,t){return this.ht(o,e,t).values}update(o,[e,t,r]){var i;const n=ar(o),{values:a,keys:l}=this.ht(e,t,r);if(!Array.isArray(n))return this.ut=l,a;const s=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],c=[];let g,d,b=0,u=n.length-1,h=0,m=a.length-1;for(;b<=u&&h<=m;)if(n[b]===null)b++;else if(n[u]===null)u--;else if(s[b]===l[h])c[h]=X(n[b],a[h]),b++,h++;else if(s[u]===l[m])c[m]=X(n[u],a[m]),u--,m--;else if(s[b]===l[m])c[m]=X(n[b],a[m]),ce(o,c[m+1],n[b]),b++,m--;else if(s[u]===l[h])c[h]=X(n[u],a[h]),ce(o,n[b],n[u]),u--,h++;else if(g===void 0&&(g=Ao(l,h,m),d=Ao(s,b,u)),g.has(s[b]))if(g.has(s[u])){const f=d.get(l[h]),x=f!==void 0?n[f]:null;if(x===null){const k=ce(o,n[b]);X(k,a[h]),c[h]=k}else c[h]=X(x,a[h]),ce(o,n[b],x),n[f]=null;h++}else Ne(n[u]),u--;else Ne(n[b]),b++;for(;h<=m;){const f=ce(o,c[m+1]);X(f,a[h]),c[h++]=f}for(;b<=u;){const f=n[b++];f!==null&&Ne(f)}return this.ut=l,nr(o,c),N}});class rt extends w{static styles=[_`
6054
+ </aside>
6055
+ `;
6056
+ }
6057
+ }
6058
+ k(Ie, "styles", [
6059
+ R`
4282
6060
  /* /* layer: preflights */
4283
6061
 
4284
6062
  /*
@@ -4849,21 +6627,94 @@ video {
4849
6627
  :host {
4850
6628
  display: block;
4851
6629
  }
4852
- `];static properties={_toasts:{state:!0}};constructor(){super(),this._toasts=new Map}connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{const e=[],t=[];for(const i of this._toasts)Date.now()<=i[1].duration?e.push(i):t.push(i);const r=[];for(const[i]of t){const n=this.renderRoot.querySelector(`#${i}`);r.push(n.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])=>e)}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if(typeof e!="string"&&!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,{...e,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(typeof e!="string"&&!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 p`
4853
- <aside class="${$o.toasterContainer}">
4854
- <div class="${$o.toaster}" id="w-toast-container-list">
4855
- ${tt(this._toastsArray,e=>e.id,e=>p` <w-toast
6630
+ `
6631
+ ]), k(Ie, "properties", {
6632
+ _toasts: { state: !0 }
6633
+ });
6634
+ customElements.get("w-toast-container") || customElements.define("w-toast-container", Ie);
6635
+ function $i(o, e) {
6636
+ if (!be)
6637
+ return;
6638
+ const t = customElements.get("w-toast-container").init(), r = {
6639
+ id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
6640
+ text: o,
6641
+ duration: 5e3,
6642
+ type: "success",
6643
+ ...e
6644
+ };
6645
+ return t.set(r), r;
6646
+ }
6647
+ function zi(o) {
6648
+ return be ? customElements.get("w-toast-container").init().del(o) : void 0;
6649
+ }
6650
+ function _i(o, e) {
6651
+ if (!be)
6652
+ return;
6653
+ const t = customElements.get("w-toast-container").init();
6654
+ return t.set({ ...t.get(o), ...e }), t.get(o);
6655
+ }
6656
+ class No extends $ {
6657
+ constructor() {
6658
+ super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = be ? window.location.href : "";
6659
+ }
6660
+ async connectedCallback() {
6661
+ if (super.connectedCallback(), !this.api) {
6662
+ console.error('Broadcast "api" attribute invalid or undefined');
6663
+ return;
6664
+ }
6665
+ be && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
6666
+ }
6667
+ async _fetchMessage() {
6668
+ const e = `${this.api}?path=${this.url}`;
6669
+ try {
6670
+ const t = await (await fetch(e)).json();
6671
+ this._messages = t.length ? t : [];
6672
+ } catch (t) {
6673
+ console.error(`failed to fetch broadcasts from given url (${e})`, t);
6674
+ }
6675
+ }
6676
+ async _del(e) {
6677
+ await this.renderRoot.querySelector(`#broadcast-${e}`).collapse(), this._hiddenMessageIds = [.../* @__PURE__ */ new Set([...this._hiddenMessageIds, e])];
6678
+ }
6679
+ render() {
6680
+ const e = this._messages.filter((t) => !this._hiddenMessageIds.includes(t.id));
6681
+ return p`
6682
+ <aside class=${`${e.length === 0 ? "hidden" : "mb-16"}`}>
6683
+ ${ar(
6684
+ e,
6685
+ ({ id: t }) => `broadcast-${t}`,
6686
+ ({ id: t, message: r }) => p`<w-toast
4856
6687
  class="w-full"
4857
- id="${e.id}"
4858
- type="${e.type}"
4859
- text="${e.text}"
4860
- ?canclose=${e.canclose}
4861
- @close=${()=>this.del(e.id)}
6688
+ id="broadcast-${t}"
6689
+ type="warning"
6690
+ text="${r}"
6691
+ canclose
6692
+ @close=${() => this._del(t)}
4862
6693
  >
4863
- </w-toast>`)}
4864
- </div>
6694
+ </w-toast>`
6695
+ )}
4865
6696
  </aside>
4866
- `}}customElements.get("w-toast-container")||customElements.define("w-toast-container",rt);function cr(o,e){if(!te)return;const t=customElements.get("w-toast-container").init(),r={id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:o,duration:5e3,type:"success",...e};return t.set(r),r}function lr(o){return te?customElements.get("w-toast-container").init().del(o):void 0}function sr(o,e){if(!te)return;const t=customElements.get("w-toast-container").init();return t.set({...t.get(o),...e}),t.get(o)}class dr extends w{static properties={_messages:{state:!0,hasChanged(e,t){if(!t||t.length===0)return!0;const r=e.map(({id:n})=>n).sort(),i=t.map(({id:n})=>n).sort();return JSON.stringify(r)!==JSON.stringify(i)}},_hiddenMessageIds:{state:!0,type:Array},interval:{type:Number,attribute:!0,reflect:!0},url:{type:String,attribute:!0,reflect:!0},api:{type:String,attribute:!0,reflect:!0}};static styles=_`
6697
+ `;
6698
+ }
6699
+ }
6700
+ k(No, "properties", {
6701
+ _messages: {
6702
+ state: !0,
6703
+ hasChanged(e, t) {
6704
+ if (!t || t.length === 0)
6705
+ return !0;
6706
+ const r = e.map(({ id: a }) => a).sort(), i = t.map(({ id: a }) => a).sort();
6707
+ return JSON.stringify(r) !== JSON.stringify(i);
6708
+ }
6709
+ },
6710
+ _hiddenMessageIds: {
6711
+ state: !0,
6712
+ type: Array
6713
+ },
6714
+ interval: { type: Number, attribute: !0, reflect: !0 },
6715
+ url: { type: String, attribute: !0, reflect: !0 },
6716
+ api: { type: String, attribute: !0, reflect: !0 }
6717
+ }), k(No, "styles", R`
4867
6718
  /* /* layer: preflights */
4868
6719
 
4869
6720
  /*
@@ -5431,19 +7282,894 @@ video {
5431
7282
  .pointer-events-none{pointer-events:none;}
5432
7283
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
5433
7284
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
5434
- `;constructor(){super(),this._messages=[],this.interval=3e4,this._hiddenMessageIds=[],this.url=te?window.location.href:""}async connectedCallback(){if(super.connectedCallback(),!this.api){console.error('Broadcast "api" attribute invalid or undefined');return}te&&(await this._fetchMessage(),setInterval(()=>this._fetchMessage(),this.interval))}async _fetchMessage(){const e=`${this.api}?path=${this.url}`;try{const t=await(await fetch(e)).json();this._messages=t.length?t:[]}catch(t){console.error(`failed to fetch broadcasts from given url (${e})`,t)}}async _del(e){await this.renderRoot.querySelector(`#broadcast-${e}`).collapse(),this._hiddenMessageIds=[...new Set([...this._hiddenMessageIds,e])]}render(){const e=this._messages.filter(t=>!this._hiddenMessageIds.includes(t.id));return p`
5435
- <aside class=${`${e.length===0?"hidden":"mb-16"}`}>
5436
- ${tt(e,({id:t})=>`broadcast-${t}`,({id:t,message:r})=>p`<w-toast
5437
- class="w-full"
5438
- id="broadcast-${t}"
5439
- type="warning"
5440
- text="${r}"
5441
- canclose
5442
- @close=${()=>this._del(t)}
5443
- >
5444
- </w-toast>`)}
5445
- </aside>
5446
- `}}customElements.get("w-broadcast")||customElements.define("w-broadcast",dr);function pe(o){return o.split("-")[0]}function Ee(o){return o.split("-")[1]}function me(o){return["top","bottom"].includes(pe(o))?"x":"y"}function ro(o){return o==="y"?"height":"width"}function Eo(o,e,t){let{reference:r,floating:i}=o;const n=r.x+r.width/2-i.width/2,a=r.y+r.height/2-i.height/2,l=me(e),s=ro(l),c=r[s]/2-i[s]/2,g=pe(e),d=l==="x";let b;switch(g){case"top":b={x:n,y:r.y-i.height};break;case"bottom":b={x:n,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:a};break;case"left":b={x:r.x-i.width,y:a};break;default:b={x:r.x,y:r.y}}switch(Ee(e)){case"start":b[l]-=c*(t&&d?-1:1);break;case"end":b[l]+=c*(t&&d?-1:1);break}return b}const br=async(o,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=t,l=await(a.isRTL==null?void 0:a.isRTL(e));let s=await a.getElementRects({reference:o,floating:e,strategy:i}),{x:c,y:g}=Eo(s,r,l),d=r,b={},u=0;for(let h=0;h<n.length;h++){const{name:m,fn:f}=n[h],{x,y:k,data:S,reset:v}=await f({x:c,y:g,initialPlacement:r,placement:d,strategy:i,middlewareData:b,rects:s,platform:a,elements:{reference:o,floating:e}});if(c=x??c,g=k??g,b={...b,[m]:{...b[m],...S}},v&&u<=50){u++,typeof v=="object"&&(v.placement&&(d=v.placement),v.rects&&(s=v.rects===!0?await a.getElementRects({reference:o,floating:e,strategy:i}):v.rects),{x:c,y:g}=Eo(s,d,l)),h=-1;continue}}return{x:c,y:g,placement:d,strategy:i,middlewareData:b}};function ur(o){return{top:0,right:0,bottom:0,left:0,...o}}function it(o){return typeof o!="number"?ur(o):{top:o,right:o,bottom:o,left:o}}function ye(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}async function nt(o,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:s}=o,{boundary:c="clippingAncestors",rootBoundary:g="viewport",elementContext:d="floating",altBoundary:b=!1,padding:u=0}=e,h=it(u),f=l[b?d==="floating"?"reference":"floating":d],x=ye(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(f)))==null||t?f:f.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:g,strategy:s})),k=ye(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...a.floating,x:r,y:i}:a.reference,offsetParent:await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),strategy:s}):a[d]);return{top:x.top-k.top+h.top,bottom:k.bottom-x.bottom+h.bottom,left:x.left-k.left+h.left,right:k.right-x.right+h.right}}const gr=Math.min,hr=Math.max;function We(o,e,t){return hr(o,gr(e,t))}const pr=o=>({name:"arrow",options:o,async fn(e){const{element:t,padding:r=0}=o??{},{x:i,y:n,placement:a,rects:l,platform:s}=e;if(t==null)return{};const c=it(r),g={x:i,y:n},d=me(a),b=Ee(a),u=ro(d),h=await s.getDimensions(t),m=d==="y"?"top":"left",f=d==="y"?"bottom":"right",x=l.reference[u]+l.reference[d]-g[d]-l.floating[u],k=g[d]-l.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(t));let v=S?d==="y"?S.clientHeight||0:S.clientWidth||0:0;v===0&&(v=l.floating[u]);const F=x/2-k/2,z=c[m],H=v-h[u]-c[f],j=v/2-h[u]/2+F,C=We(z,j,H),M=(b==="start"?c[m]:c[f])>0&&j!==C&&l.reference[u]<=l.floating[u]?j<z?z-j:H-j:0;return{[d]:g[d]-M,data:{[d]:C,centerOffset:j-C}}}}),mr={left:"right",right:"left",bottom:"top",top:"bottom"};function $e(o){return o.replace(/left|right|bottom|top/g,e=>mr[e])}function fr(o,e,t){t===void 0&&(t=!1);const r=Ee(o),i=me(o),n=ro(i);let a=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=$e(a)),{main:a,cross:$e(a)}}const vr={start:"end",end:"start"};function Ro(o){return o.replace(/start|end/g,e=>vr[e])}function xr(o){const e=$e(o);return[Ro(o),e,Ro(e)]}const kr=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(e){var t;const{placement:r,middlewareData:i,rects:n,initialPlacement:a,platform:l,elements:s}=e,{mainAxis:c=!0,crossAxis:g=!0,fallbackPlacements:d,fallbackStrategy:b="bestFit",flipAlignment:u=!0,...h}=o,m=pe(r),x=d||(m===a||!u?[$e(a)]:xr(a)),k=[a,...x],S=await nt(e,h),v=[];let F=((t=i.flip)==null?void 0:t.overflows)||[];if(c&&v.push(S[m]),g){const{main:C,cross:A}=fr(r,n,await(l.isRTL==null?void 0:l.isRTL(s.floating)));v.push(S[C],S[A])}if(F=[...F,{placement:r,overflows:v}],!v.every(C=>C<=0)){var z,H;const C=((z=(H=i.flip)==null?void 0:H.index)!=null?z:0)+1,A=k[C];if(A)return{data:{index:C,overflows:F},reset:{placement:A}};let E="bottom";switch(b){case"bestFit":{var j;const M=(j=F.map(R=>[R,R.overflows.filter(D=>D>0).reduce((D,je)=>D+je,0)]).sort((R,D)=>R[1]-D[1])[0])==null?void 0:j[0].placement;M&&(E=M);break}case"initialPlacement":E=a;break}if(r!==E)return{reset:{placement:E}}}return{}}}};async function wr(o,e){const{placement:t,platform:r,elements:i}=o,n=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=pe(t),l=Ee(t),s=me(t)==="x",c=["left","top"].includes(a)?-1:1,g=n&&s?-1:1,d=typeof e=="function"?e(o):e;let{mainAxis:b,crossAxis:u,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&typeof h=="number"&&(u=l==="end"?h*-1:h),s?{x:u*g,y:b*c}:{x:b*c,y:u*g}}const yr=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(e){const{x:t,y:r}=e,i=await wr(e,o);return{x:t+i.x,y:r+i.y,data:i}}}};function $r(o){return o==="x"?"y":"x"}const zr=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(e){const{x:t,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:f=>{let{x,y:k}=f;return{x,y:k}}},...s}=o,c={x:t,y:r},g=await nt(e,s),d=me(pe(i)),b=$r(d);let u=c[d],h=c[b];if(n){const f=d==="y"?"top":"left",x=d==="y"?"bottom":"right",k=u+g[f],S=u-g[x];u=We(k,u,S)}if(a){const f=b==="y"?"top":"left",x=b==="y"?"bottom":"right",k=h+g[f],S=h-g[x];h=We(k,h,S)}const m=l.fn({...e,[d]:u,[b]:h});return{...m,data:{x:m.x-t,y:m.y-r}}}}};function at(o){return o&&o.document&&o.location&&o.alert&&o.setInterval}function I(o){if(o==null)return window;if(!at(o)){const e=o.ownerDocument;return e&&e.defaultView||window}return o}function fe(o){return I(o).getComputedStyle(o)}function T(o){return at(o)?"":o?(o.nodeName||"").toLowerCase():""}function ct(){const o=navigator.userAgentData;return o!=null&&o.brands?o.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function L(o){return o instanceof I(o).HTMLElement}function re(o){return o instanceof I(o).Element}function Sr(o){return o instanceof I(o).Node}function io(o){if(typeof ShadowRoot>"u")return!1;const e=I(o).ShadowRoot;return o instanceof e||o instanceof ShadowRoot}function Re(o){const{overflow:e,overflowX:t,overflowY:r}=fe(o);return/auto|scroll|overlay|hidden/.test(e+r+t)}function Cr(o){return["table","td","th"].includes(T(o))}function lt(o){const e=/firefox/i.test(ct()),t=fe(o);return t.transform!=="none"||t.perspective!=="none"||t.contain==="paint"||["transform","perspective"].includes(t.willChange)||e&&t.willChange==="filter"||e&&(t.filter?t.filter!=="none":!1)}function st(){return!/^((?!chrome|android).)*safari/i.test(ct())}const qo=Math.min,le=Math.max,ze=Math.round;function K(o,e,t){var r,i,n,a;e===void 0&&(e=!1),t===void 0&&(t=!1);const l=o.getBoundingClientRect();let s=1,c=1;e&&L(o)&&(s=o.offsetWidth>0&&ze(l.width)/o.offsetWidth||1,c=o.offsetHeight>0&&ze(l.height)/o.offsetHeight||1);const g=re(o)?I(o):window,d=!st()&&t,b=(l.left+(d&&(r=(i=g.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/s,u=(l.top+(d&&(n=(a=g.visualViewport)==null?void 0:a.offsetTop)!=null?n:0))/c,h=l.width/s,m=l.height/c;return{width:h,height:m,top:u,right:b+h,bottom:u+m,left:b,x:b,y:u}}function V(o){return((Sr(o)?o.ownerDocument:o.document)||window.document).documentElement}function qe(o){return re(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function dt(o){return K(V(o)).left+qe(o).scrollLeft}function _r(o){const e=K(o);return ze(e.width)!==o.offsetWidth||ze(e.height)!==o.offsetHeight}function Ar(o,e,t){const r=L(e),i=V(e),n=K(o,r&&_r(e),t==="fixed");let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&t!=="fixed")if((T(e)!=="body"||Re(i))&&(a=qe(e)),L(e)){const s=K(e,!0);l.x=s.x+e.clientLeft,l.y=s.y+e.clientTop}else i&&(l.x=dt(i));return{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function bt(o){return T(o)==="html"?o:o.assignedSlot||o.parentNode||(io(o)?o.host:null)||V(o)}function jo(o){return!L(o)||getComputedStyle(o).position==="fixed"?null:o.offsetParent}function Er(o){let e=bt(o);for(io(e)&&(e=e.host);L(e)&&!["html","body"].includes(T(e));){if(lt(e))return e;e=e.parentNode}return null}function Ve(o){const e=I(o);let t=jo(o);for(;t&&Cr(t)&&getComputedStyle(t).position==="static";)t=jo(t);return t&&(T(t)==="html"||T(t)==="body"&&getComputedStyle(t).position==="static"&&!lt(t))?e:t||Er(o)||e}function Mo(o){if(L(o))return{width:o.offsetWidth,height:o.offsetHeight};const e=K(o);return{width:e.width,height:e.height}}function Rr(o){let{rect:e,offsetParent:t,strategy:r}=o;const i=L(t),n=V(t);if(t===n)return e;let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((i||!i&&r!=="fixed")&&((T(t)!=="body"||Re(n))&&(a=qe(t)),L(t))){const s=K(t,!0);l.x=s.x+t.clientLeft,l.y=s.y+t.clientTop}return{...e,x:e.x-a.scrollLeft+l.x,y:e.y-a.scrollTop+l.y}}function qr(o,e){const t=I(o),r=V(o),i=t.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){n=i.width,a=i.height;const c=st();(c||!c&&e==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:n,height:a,x:l,y:s}}function jr(o){var e;const t=V(o),r=qe(o),i=(e=o.ownerDocument)==null?void 0:e.body,n=le(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=le(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let l=-r.scrollLeft+dt(o);const s=-r.scrollTop;return fe(i||t).direction==="rtl"&&(l+=le(t.clientWidth,i?i.clientWidth:0)-n),{width:n,height:a,x:l,y:s}}function ut(o){const e=bt(o);return["html","body","#document"].includes(T(e))?o.ownerDocument.body:L(e)&&Re(e)?e:ut(e)}function gt(o,e){var t;e===void 0&&(e=[]);const r=ut(o),i=r===((t=o.ownerDocument)==null?void 0:t.body),n=I(r),a=i?[n].concat(n.visualViewport||[],Re(r)?r:[]):r,l=e.concat(a);return i?l:l.concat(gt(a))}function Mr(o,e){const t=e.getRootNode==null?void 0:e.getRootNode();if(o.contains(e))return!0;if(t&&io(t)){let r=e;do{if(r&&o===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function Ur(o,e){const t=K(o,!1,e==="fixed"),r=t.top+o.clientTop,i=t.left+o.clientLeft;return{top:r,left:i,x:i,y:r,right:i+o.clientWidth,bottom:r+o.clientHeight,width:o.clientWidth,height:o.clientHeight}}function Uo(o,e,t){return e==="viewport"?ye(qr(o,t)):re(e)?Ur(e,t):ye(jr(V(o)))}function Fr(o){const e=gt(o),r=["absolute","fixed"].includes(fe(o).position)&&L(o)?Ve(o):o;return re(r)?e.filter(i=>re(i)&&Mr(i,r)&&T(i)!=="body"):[]}function Pr(o){let{element:e,boundary:t,rootBoundary:r,strategy:i}=o;const a=[...t==="clippingAncestors"?Fr(e):[].concat(t),r],l=a[0],s=a.reduce((c,g)=>{const d=Uo(e,g,i);return c.top=le(d.top,c.top),c.right=qo(d.right,c.right),c.bottom=qo(d.bottom,c.bottom),c.left=le(d.left,c.left),c},Uo(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}const Lr={getClippingRect:Pr,convertOffsetParentRelativeRectToViewportRelativeRect:Rr,isElement:re,getDimensions:Mo,getOffsetParent:Ve,getDocumentElement:V,getElementRects:o=>{let{reference:e,floating:t,strategy:r}=o;return{reference:Ar(e,Ve(t),r),floating:{...Mo(t),x:0,y:0}}},getClientRects:o=>Array.from(o.getClientRects()),isRTL:o=>fe(o).direction==="rtl"},Or=(o,e,t)=>br(o,e,{platform:Lr,...t}),ue="top",ge="bottom",Se="left",Ce="right",Te={[ue]:ge,[ge]:ue,[Se]:Ce,[Ce]:Se},Br={[ue]:"\u2191",[ge]:"\u2193",[Se]:"\u2190",[Ce]:"\u2192"},Nr={[Se]:-45,[ue]:45,[Ce]:135,[ge]:-135},Fo="calc(50% - 7px)",Tr=o=>[ue,ge].includes(o);function Ir({actualDirection:o,directionName:e,arrowEl:t}){if(!t)return;o=e;const r=Tr(e);t.style.left=r?Fo:"",t.style.top=r?"":Fo}async function Hr(o){if(!o.isShowing)return;if(await o?.waitForDOM?.(),o.isCallout)return Ir(o);const e=await Or(o.targetEl,o.attentionEl,{placement:o.directionName,middleware:[kr(),yr(8),zr({padding:16}),pr({element:o.noArrow?void 0:o.arrowEl})]});o.actualDirection=e.placement,Object.assign(o.attentionEl?.style||{},{left:"0",top:"0",transform:`translate3d(${Math.round(e.x)}px, ${Math.round(e.y)}px, 0)`});let{x:t,y:r}=e.middlewareData.arrow;o.arrowEl&&(o.arrowEl.style.left=t?t+"px":"",o.arrowEl.style.top=r?r+"px":"")}class Dr extends Ae(w){static properties={show:{type:Boolean,reflect:!0},placement:{type:String},tooltip:{type:Boolean,reflect:!0},callout:{type:Boolean,reflect:!0},popover:{type:Boolean,reflect:!0},noArrow:{type:Boolean,reflect:!0}};static styles=[_`
7285
+ `);
7286
+ customElements.get("w-broadcast") || customElements.define("w-broadcast", No);
7287
+ function Se(o) {
7288
+ return o.split("-")[0];
7289
+ }
7290
+ function Ge(o) {
7291
+ return o.split("-")[1];
7292
+ }
7293
+ function Ce(o) {
7294
+ return ["top", "bottom"].includes(Se(o)) ? "x" : "y";
7295
+ }
7296
+ function it(o) {
7297
+ return o === "y" ? "height" : "width";
7298
+ }
7299
+ function St(o, e, t) {
7300
+ let {
7301
+ reference: r,
7302
+ floating: i
7303
+ } = o;
7304
+ const a = r.x + r.width / 2 - i.width / 2, n = r.y + r.height / 2 - i.height / 2, l = Ce(e), s = it(l), c = r[s] / 2 - i[s] / 2, b = Se(e), d = l === "x";
7305
+ let g;
7306
+ switch (b) {
7307
+ case "top":
7308
+ g = {
7309
+ x: a,
7310
+ y: r.y - i.height
7311
+ };
7312
+ break;
7313
+ case "bottom":
7314
+ g = {
7315
+ x: a,
7316
+ y: r.y + r.height
7317
+ };
7318
+ break;
7319
+ case "right":
7320
+ g = {
7321
+ x: r.x + r.width,
7322
+ y: n
7323
+ };
7324
+ break;
7325
+ case "left":
7326
+ g = {
7327
+ x: r.x - i.width,
7328
+ y: n
7329
+ };
7330
+ break;
7331
+ default:
7332
+ g = {
7333
+ x: r.x,
7334
+ y: r.y
7335
+ };
7336
+ }
7337
+ switch (Ge(e)) {
7338
+ case "start":
7339
+ g[l] -= c * (t && d ? -1 : 1);
7340
+ break;
7341
+ case "end":
7342
+ g[l] += c * (t && d ? -1 : 1);
7343
+ break;
7344
+ }
7345
+ return g;
7346
+ }
7347
+ const Si = async (o, e, t) => {
7348
+ const {
7349
+ placement: r = "bottom",
7350
+ strategy: i = "absolute",
7351
+ middleware: a = [],
7352
+ platform: n
7353
+ } = t, l = await (n.isRTL == null ? void 0 : n.isRTL(e));
7354
+ if (process.env.NODE_ENV !== "production" && (n == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), a.filter((h) => {
7355
+ let {
7356
+ name: f
7357
+ } = h;
7358
+ return f === "autoPlacement" || f === "flip";
7359
+ }).length > 1))
7360
+ throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`", "middleware detected. This will lead to an infinite loop. Ensure only", "one of either has been passed to the `middleware` array."].join(" "));
7361
+ let s = await n.getElementRects({
7362
+ reference: o,
7363
+ floating: e,
7364
+ strategy: i
7365
+ }), {
7366
+ x: c,
7367
+ y: b
7368
+ } = St(s, r, l), d = r, g = {}, u = 0;
7369
+ for (let h = 0; h < a.length; h++) {
7370
+ const {
7371
+ name: f,
7372
+ fn: v
7373
+ } = a[h], {
7374
+ x,
7375
+ y,
7376
+ data: S,
7377
+ reset: w
7378
+ } = await v({
7379
+ x: c,
7380
+ y: b,
7381
+ initialPlacement: r,
7382
+ placement: d,
7383
+ strategy: i,
7384
+ middlewareData: g,
7385
+ rects: s,
7386
+ platform: n,
7387
+ elements: {
7388
+ reference: o,
7389
+ floating: e
7390
+ }
7391
+ });
7392
+ if (c = x != null ? x : c, b = y != null ? y : b, g = {
7393
+ ...g,
7394
+ [f]: {
7395
+ ...g[f],
7396
+ ...S
7397
+ }
7398
+ }, process.env.NODE_ENV !== "production" && u > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), w && u <= 50) {
7399
+ u++, typeof w == "object" && (w.placement && (d = w.placement), w.rects && (s = w.rects === !0 ? await n.getElementRects({
7400
+ reference: o,
7401
+ floating: e,
7402
+ strategy: i
7403
+ }) : w.rects), {
7404
+ x: c,
7405
+ y: b
7406
+ } = St(s, d, l)), h = -1;
7407
+ continue;
7408
+ }
7409
+ }
7410
+ return {
7411
+ x: c,
7412
+ y: b,
7413
+ placement: d,
7414
+ strategy: i,
7415
+ middlewareData: g
7416
+ };
7417
+ };
7418
+ function Ci(o) {
7419
+ return {
7420
+ top: 0,
7421
+ right: 0,
7422
+ bottom: 0,
7423
+ left: 0,
7424
+ ...o
7425
+ };
7426
+ }
7427
+ function lr(o) {
7428
+ return typeof o != "number" ? Ci(o) : {
7429
+ top: o,
7430
+ right: o,
7431
+ bottom: o,
7432
+ left: o
7433
+ };
7434
+ }
7435
+ function Be(o) {
7436
+ return {
7437
+ ...o,
7438
+ top: o.y,
7439
+ left: o.x,
7440
+ right: o.x + o.width,
7441
+ bottom: o.y + o.height
7442
+ };
7443
+ }
7444
+ async function cr(o, e) {
7445
+ var t;
7446
+ e === void 0 && (e = {});
7447
+ const {
7448
+ x: r,
7449
+ y: i,
7450
+ platform: a,
7451
+ rects: n,
7452
+ elements: l,
7453
+ strategy: s
7454
+ } = o, {
7455
+ boundary: c = "clippingAncestors",
7456
+ rootBoundary: b = "viewport",
7457
+ elementContext: d = "floating",
7458
+ altBoundary: g = !1,
7459
+ padding: u = 0
7460
+ } = e, h = lr(u), v = l[g ? d === "floating" ? "reference" : "floating" : d], x = Be(await a.getClippingRect({
7461
+ element: (t = await (a.isElement == null ? void 0 : a.isElement(v))) == null || t ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
7462
+ boundary: c,
7463
+ rootBoundary: b,
7464
+ strategy: s
7465
+ })), y = Be(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
7466
+ rect: d === "floating" ? {
7467
+ ...n.floating,
7468
+ x: r,
7469
+ y: i
7470
+ } : n.reference,
7471
+ offsetParent: await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)),
7472
+ strategy: s
7473
+ }) : n[d]);
7474
+ return {
7475
+ top: x.top - y.top + h.top,
7476
+ bottom: y.bottom - x.bottom + h.bottom,
7477
+ left: x.left - y.left + h.left,
7478
+ right: y.right - x.right + h.right
7479
+ };
7480
+ }
7481
+ const Ei = Math.min, Ri = Math.max;
7482
+ function To(o, e, t) {
7483
+ return Ri(o, Ei(e, t));
7484
+ }
7485
+ const Ai = (o) => ({
7486
+ name: "arrow",
7487
+ options: o,
7488
+ async fn(e) {
7489
+ const {
7490
+ element: t,
7491
+ padding: r = 0
7492
+ } = o != null ? o : {}, {
7493
+ x: i,
7494
+ y: a,
7495
+ placement: n,
7496
+ rects: l,
7497
+ platform: s
7498
+ } = e;
7499
+ if (t == null)
7500
+ return process.env.NODE_ENV !== "production" && console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
7501
+ const c = lr(r), b = {
7502
+ x: i,
7503
+ y: a
7504
+ }, d = Ce(n), g = Ge(n), u = it(d), h = await s.getDimensions(t), f = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = l.reference[u] + l.reference[d] - b[d] - l.floating[u], y = b[d] - l.reference[d], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(t));
7505
+ let w = S ? d === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
7506
+ w === 0 && (w = l.floating[u]);
7507
+ const F = x / 2 - y / 2, C = c[f], X = w - h[u] - c[v], N = w / 2 - h[u] / 2 + F, E = To(C, N, X), T = (g === "start" ? c[f] : c[v]) > 0 && N !== E && l.reference[u] <= l.floating[u] ? N < C ? C - N : X - N : 0;
7508
+ return {
7509
+ [d]: b[d] - T,
7510
+ data: {
7511
+ [d]: E,
7512
+ centerOffset: N - E
7513
+ }
7514
+ };
7515
+ }
7516
+ }), qi = {
7517
+ left: "right",
7518
+ right: "left",
7519
+ bottom: "top",
7520
+ top: "bottom"
7521
+ };
7522
+ function Ve(o) {
7523
+ return o.replace(/left|right|bottom|top/g, (e) => qi[e]);
7524
+ }
7525
+ function Mi(o, e, t) {
7526
+ t === void 0 && (t = !1);
7527
+ const r = Ge(o), i = Ce(o), a = it(i);
7528
+ let n = i === "x" ? r === (t ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
7529
+ return e.reference[a] > e.floating[a] && (n = Ve(n)), {
7530
+ main: n,
7531
+ cross: Ve(n)
7532
+ };
7533
+ }
7534
+ const Pi = {
7535
+ start: "end",
7536
+ end: "start"
7537
+ };
7538
+ function Ct(o) {
7539
+ return o.replace(/start|end/g, (e) => Pi[e]);
7540
+ }
7541
+ function ji(o) {
7542
+ const e = Ve(o);
7543
+ return [Ct(o), e, Ct(e)];
7544
+ }
7545
+ const Ni = function(o) {
7546
+ return o === void 0 && (o = {}), {
7547
+ name: "flip",
7548
+ options: o,
7549
+ async fn(e) {
7550
+ var t;
7551
+ const {
7552
+ placement: r,
7553
+ middlewareData: i,
7554
+ rects: a,
7555
+ initialPlacement: n,
7556
+ platform: l,
7557
+ elements: s
7558
+ } = e, {
7559
+ mainAxis: c = !0,
7560
+ crossAxis: b = !0,
7561
+ fallbackPlacements: d,
7562
+ fallbackStrategy: g = "bestFit",
7563
+ flipAlignment: u = !0,
7564
+ ...h
7565
+ } = o, f = Se(r), x = d || (f === n || !u ? [Ve(n)] : ji(n)), y = [n, ...x], S = await cr(e, h), w = [];
7566
+ let F = ((t = i.flip) == null ? void 0 : t.overflows) || [];
7567
+ if (c && w.push(S[f]), b) {
7568
+ const {
7569
+ main: E,
7570
+ cross: A
7571
+ } = Mi(r, a, await (l.isRTL == null ? void 0 : l.isRTL(s.floating)));
7572
+ w.push(S[E], S[A]);
7573
+ }
7574
+ if (F = [...F, {
7575
+ placement: r,
7576
+ overflows: w
7577
+ }], !w.every((E) => E <= 0)) {
7578
+ var C, X;
7579
+ const E = ((C = (X = i.flip) == null ? void 0 : X.index) != null ? C : 0) + 1, A = y[E];
7580
+ if (A)
7581
+ return {
7582
+ data: {
7583
+ index: E,
7584
+ overflows: F
7585
+ },
7586
+ reset: {
7587
+ placement: A
7588
+ }
7589
+ };
7590
+ let M = "bottom";
7591
+ switch (g) {
7592
+ case "bestFit": {
7593
+ var N;
7594
+ const T = (N = F.map((P) => [P, P.overflows.filter((G) => G > 0).reduce((G, eo) => G + eo, 0)]).sort((P, G) => P[1] - G[1])[0]) == null ? void 0 : N[0].placement;
7595
+ T && (M = T);
7596
+ break;
7597
+ }
7598
+ case "initialPlacement":
7599
+ M = n;
7600
+ break;
7601
+ }
7602
+ if (r !== M)
7603
+ return {
7604
+ reset: {
7605
+ placement: M
7606
+ }
7607
+ };
7608
+ }
7609
+ return {};
7610
+ }
7611
+ };
7612
+ };
7613
+ async function Ti(o, e) {
7614
+ const {
7615
+ placement: t,
7616
+ platform: r,
7617
+ elements: i
7618
+ } = o, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), n = Se(t), l = Ge(t), s = Ce(t) === "x", c = ["left", "top"].includes(n) ? -1 : 1, b = a && s ? -1 : 1, d = typeof e == "function" ? e(o) : e;
7619
+ let {
7620
+ mainAxis: g,
7621
+ crossAxis: u,
7622
+ alignmentAxis: h
7623
+ } = typeof d == "number" ? {
7624
+ mainAxis: d,
7625
+ crossAxis: 0,
7626
+ alignmentAxis: null
7627
+ } : {
7628
+ mainAxis: 0,
7629
+ crossAxis: 0,
7630
+ alignmentAxis: null,
7631
+ ...d
7632
+ };
7633
+ return l && typeof h == "number" && (u = l === "end" ? h * -1 : h), s ? {
7634
+ x: u * b,
7635
+ y: g * c
7636
+ } : {
7637
+ x: g * c,
7638
+ y: u * b
7639
+ };
7640
+ }
7641
+ const Ui = function(o) {
7642
+ return o === void 0 && (o = 0), {
7643
+ name: "offset",
7644
+ options: o,
7645
+ async fn(e) {
7646
+ const {
7647
+ x: t,
7648
+ y: r
7649
+ } = e, i = await Ti(e, o);
7650
+ return {
7651
+ x: t + i.x,
7652
+ y: r + i.y,
7653
+ data: i
7654
+ };
7655
+ }
7656
+ };
7657
+ };
7658
+ function Oi(o) {
7659
+ return o === "x" ? "y" : "x";
7660
+ }
7661
+ const Fi = function(o) {
7662
+ return o === void 0 && (o = {}), {
7663
+ name: "shift",
7664
+ options: o,
7665
+ async fn(e) {
7666
+ const {
7667
+ x: t,
7668
+ y: r,
7669
+ placement: i
7670
+ } = e, {
7671
+ mainAxis: a = !0,
7672
+ crossAxis: n = !1,
7673
+ limiter: l = {
7674
+ fn: (v) => {
7675
+ let {
7676
+ x,
7677
+ y
7678
+ } = v;
7679
+ return {
7680
+ x,
7681
+ y
7682
+ };
7683
+ }
7684
+ },
7685
+ ...s
7686
+ } = o, c = {
7687
+ x: t,
7688
+ y: r
7689
+ }, b = await cr(e, s), d = Ce(Se(i)), g = Oi(d);
7690
+ let u = c[d], h = c[g];
7691
+ if (a) {
7692
+ const v = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = u + b[v], S = u - b[x];
7693
+ u = To(y, u, S);
7694
+ }
7695
+ if (n) {
7696
+ const v = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = h + b[v], S = h - b[x];
7697
+ h = To(y, h, S);
7698
+ }
7699
+ const f = l.fn({
7700
+ ...e,
7701
+ [d]: u,
7702
+ [g]: h
7703
+ });
7704
+ return {
7705
+ ...f,
7706
+ data: {
7707
+ x: f.x - t,
7708
+ y: f.y - r
7709
+ }
7710
+ };
7711
+ }
7712
+ };
7713
+ };
7714
+ function sr(o) {
7715
+ return o && o.document && o.location && o.alert && o.setInterval;
7716
+ }
7717
+ function Z(o) {
7718
+ if (o == null)
7719
+ return window;
7720
+ if (!sr(o)) {
7721
+ const e = o.ownerDocument;
7722
+ return e && e.defaultView || window;
7723
+ }
7724
+ return o;
7725
+ }
7726
+ function Ee(o) {
7727
+ return Z(o).getComputedStyle(o);
7728
+ }
7729
+ function Y(o) {
7730
+ return sr(o) ? "" : o ? (o.nodeName || "").toLowerCase() : "";
7731
+ }
7732
+ function dr() {
7733
+ const o = navigator.userAgentData;
7734
+ return o != null && o.brands ? o.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
7735
+ }
7736
+ function D(o) {
7737
+ return o instanceof Z(o).HTMLElement;
7738
+ }
7739
+ function ge(o) {
7740
+ return o instanceof Z(o).Element;
7741
+ }
7742
+ function Li(o) {
7743
+ return o instanceof Z(o).Node;
7744
+ }
7745
+ function nt(o) {
7746
+ if (typeof ShadowRoot > "u")
7747
+ return !1;
7748
+ const e = Z(o).ShadowRoot;
7749
+ return o instanceof e || o instanceof ShadowRoot;
7750
+ }
7751
+ function Je(o) {
7752
+ const {
7753
+ overflow: e,
7754
+ overflowX: t,
7755
+ overflowY: r
7756
+ } = Ee(o);
7757
+ return /auto|scroll|overlay|hidden/.test(e + r + t);
7758
+ }
7759
+ function Ii(o) {
7760
+ return ["table", "td", "th"].includes(Y(o));
7761
+ }
7762
+ function ur(o) {
7763
+ const e = /firefox/i.test(dr()), t = Ee(o);
7764
+ return t.transform !== "none" || t.perspective !== "none" || t.contain === "paint" || ["transform", "perspective"].includes(t.willChange) || e && t.willChange === "filter" || e && (t.filter ? t.filter !== "none" : !1);
7765
+ }
7766
+ function br() {
7767
+ return !/^((?!chrome|android).)*safari/i.test(dr());
7768
+ }
7769
+ const Et = Math.min, ve = Math.max, De = Math.round;
7770
+ function ae(o, e, t) {
7771
+ var r, i, a, n;
7772
+ e === void 0 && (e = !1), t === void 0 && (t = !1);
7773
+ const l = o.getBoundingClientRect();
7774
+ let s = 1, c = 1;
7775
+ e && D(o) && (s = o.offsetWidth > 0 && De(l.width) / o.offsetWidth || 1, c = o.offsetHeight > 0 && De(l.height) / o.offsetHeight || 1);
7776
+ const b = ge(o) ? Z(o) : window, d = !br() && t, g = (l.left + (d && (r = (i = b.visualViewport) == null ? void 0 : i.offsetLeft) != null ? r : 0)) / s, u = (l.top + (d && (a = (n = b.visualViewport) == null ? void 0 : n.offsetTop) != null ? a : 0)) / c, h = l.width / s, f = l.height / c;
7777
+ return {
7778
+ width: h,
7779
+ height: f,
7780
+ top: u,
7781
+ right: g + h,
7782
+ bottom: u + f,
7783
+ left: g,
7784
+ x: g,
7785
+ y: u
7786
+ };
7787
+ }
7788
+ function oe(o) {
7789
+ return ((Li(o) ? o.ownerDocument : o.document) || window.document).documentElement;
7790
+ }
7791
+ function Qe(o) {
7792
+ return ge(o) ? {
7793
+ scrollLeft: o.scrollLeft,
7794
+ scrollTop: o.scrollTop
7795
+ } : {
7796
+ scrollLeft: o.pageXOffset,
7797
+ scrollTop: o.pageYOffset
7798
+ };
7799
+ }
7800
+ function gr(o) {
7801
+ return ae(oe(o)).left + Qe(o).scrollLeft;
7802
+ }
7803
+ function Bi(o) {
7804
+ const e = ae(o);
7805
+ return De(e.width) !== o.offsetWidth || De(e.height) !== o.offsetHeight;
7806
+ }
7807
+ function Vi(o, e, t) {
7808
+ const r = D(e), i = oe(e), a = ae(
7809
+ o,
7810
+ r && Bi(e),
7811
+ t === "fixed"
7812
+ );
7813
+ let n = {
7814
+ scrollLeft: 0,
7815
+ scrollTop: 0
7816
+ };
7817
+ const l = {
7818
+ x: 0,
7819
+ y: 0
7820
+ };
7821
+ if (r || !r && t !== "fixed")
7822
+ if ((Y(e) !== "body" || Je(i)) && (n = Qe(e)), D(e)) {
7823
+ const s = ae(e, !0);
7824
+ l.x = s.x + e.clientLeft, l.y = s.y + e.clientTop;
7825
+ } else
7826
+ i && (l.x = gr(i));
7827
+ return {
7828
+ x: a.left + n.scrollLeft - l.x,
7829
+ y: a.top + n.scrollTop - l.y,
7830
+ width: a.width,
7831
+ height: a.height
7832
+ };
7833
+ }
7834
+ function hr(o) {
7835
+ return Y(o) === "html" ? o : o.assignedSlot || o.parentNode || (nt(o) ? o.host : null) || oe(o);
7836
+ }
7837
+ function Rt(o) {
7838
+ return !D(o) || getComputedStyle(o).position === "fixed" ? null : o.offsetParent;
7839
+ }
7840
+ function Di(o) {
7841
+ let e = hr(o);
7842
+ for (nt(e) && (e = e.host); D(e) && !["html", "body"].includes(Y(e)); ) {
7843
+ if (ur(e))
7844
+ return e;
7845
+ e = e.parentNode;
7846
+ }
7847
+ return null;
7848
+ }
7849
+ function Uo(o) {
7850
+ const e = Z(o);
7851
+ let t = Rt(o);
7852
+ for (; t && Ii(t) && getComputedStyle(t).position === "static"; )
7853
+ t = Rt(t);
7854
+ return t && (Y(t) === "html" || Y(t) === "body" && getComputedStyle(t).position === "static" && !ur(t)) ? e : t || Di(o) || e;
7855
+ }
7856
+ function At(o) {
7857
+ if (D(o))
7858
+ return {
7859
+ width: o.offsetWidth,
7860
+ height: o.offsetHeight
7861
+ };
7862
+ const e = ae(o);
7863
+ return {
7864
+ width: e.width,
7865
+ height: e.height
7866
+ };
7867
+ }
7868
+ function Hi(o) {
7869
+ let {
7870
+ rect: e,
7871
+ offsetParent: t,
7872
+ strategy: r
7873
+ } = o;
7874
+ const i = D(t), a = oe(t);
7875
+ if (t === a)
7876
+ return e;
7877
+ let n = {
7878
+ scrollLeft: 0,
7879
+ scrollTop: 0
7880
+ };
7881
+ const l = {
7882
+ x: 0,
7883
+ y: 0
7884
+ };
7885
+ if ((i || !i && r !== "fixed") && ((Y(t) !== "body" || Je(a)) && (n = Qe(t)), D(t))) {
7886
+ const s = ae(t, !0);
7887
+ l.x = s.x + t.clientLeft, l.y = s.y + t.clientTop;
7888
+ }
7889
+ return {
7890
+ ...e,
7891
+ x: e.x - n.scrollLeft + l.x,
7892
+ y: e.y - n.scrollTop + l.y
7893
+ };
7894
+ }
7895
+ function Wi(o, e) {
7896
+ const t = Z(o), r = oe(o), i = t.visualViewport;
7897
+ let a = r.clientWidth, n = r.clientHeight, l = 0, s = 0;
7898
+ if (i) {
7899
+ a = i.width, n = i.height;
7900
+ const c = br();
7901
+ (c || !c && e === "fixed") && (l = i.offsetLeft, s = i.offsetTop);
7902
+ }
7903
+ return {
7904
+ width: a,
7905
+ height: n,
7906
+ x: l,
7907
+ y: s
7908
+ };
7909
+ }
7910
+ function Ki(o) {
7911
+ var e;
7912
+ const t = oe(o), r = Qe(o), i = (e = o.ownerDocument) == null ? void 0 : e.body, a = ve(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), n = ve(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
7913
+ let l = -r.scrollLeft + gr(o);
7914
+ const s = -r.scrollTop;
7915
+ return Ee(i || t).direction === "rtl" && (l += ve(t.clientWidth, i ? i.clientWidth : 0) - a), {
7916
+ width: a,
7917
+ height: n,
7918
+ x: l,
7919
+ y: s
7920
+ };
7921
+ }
7922
+ function pr(o) {
7923
+ const e = hr(o);
7924
+ return ["html", "body", "#document"].includes(Y(e)) ? o.ownerDocument.body : D(e) && Je(e) ? e : pr(e);
7925
+ }
7926
+ function mr(o, e) {
7927
+ var t;
7928
+ e === void 0 && (e = []);
7929
+ const r = pr(o), i = r === ((t = o.ownerDocument) == null ? void 0 : t.body), a = Z(r), n = i ? [a].concat(a.visualViewport || [], Je(r) ? r : []) : r, l = e.concat(n);
7930
+ return i ? l : l.concat(mr(n));
7931
+ }
7932
+ function Yi(o, e) {
7933
+ const t = e.getRootNode == null ? void 0 : e.getRootNode();
7934
+ if (o.contains(e))
7935
+ return !0;
7936
+ if (t && nt(t)) {
7937
+ let r = e;
7938
+ do {
7939
+ if (r && o === r)
7940
+ return !0;
7941
+ r = r.parentNode || r.host;
7942
+ } while (r);
7943
+ }
7944
+ return !1;
7945
+ }
7946
+ function Zi(o, e) {
7947
+ const t = ae(o, !1, e === "fixed"), r = t.top + o.clientTop, i = t.left + o.clientLeft;
7948
+ return {
7949
+ top: r,
7950
+ left: i,
7951
+ x: i,
7952
+ y: r,
7953
+ right: i + o.clientWidth,
7954
+ bottom: r + o.clientHeight,
7955
+ width: o.clientWidth,
7956
+ height: o.clientHeight
7957
+ };
7958
+ }
7959
+ function qt(o, e, t) {
7960
+ return e === "viewport" ? Be(Wi(o, t)) : ge(e) ? Zi(e, t) : Be(Ki(oe(o)));
7961
+ }
7962
+ function Xi(o) {
7963
+ const e = mr(o), r = ["absolute", "fixed"].includes(Ee(o).position) && D(o) ? Uo(o) : o;
7964
+ return ge(r) ? e.filter((i) => ge(i) && Yi(i, r) && Y(i) !== "body") : [];
7965
+ }
7966
+ function Gi(o) {
7967
+ let {
7968
+ element: e,
7969
+ boundary: t,
7970
+ rootBoundary: r,
7971
+ strategy: i
7972
+ } = o;
7973
+ const n = [...t === "clippingAncestors" ? Xi(e) : [].concat(t), r], l = n[0], s = n.reduce((c, b) => {
7974
+ const d = qt(e, b, i);
7975
+ return c.top = ve(d.top, c.top), c.right = Et(d.right, c.right), c.bottom = Et(d.bottom, c.bottom), c.left = ve(d.left, c.left), c;
7976
+ }, qt(e, l, i));
7977
+ return {
7978
+ width: s.right - s.left,
7979
+ height: s.bottom - s.top,
7980
+ x: s.left,
7981
+ y: s.top
7982
+ };
7983
+ }
7984
+ const Ji = {
7985
+ getClippingRect: Gi,
7986
+ convertOffsetParentRelativeRectToViewportRelativeRect: Hi,
7987
+ isElement: ge,
7988
+ getDimensions: At,
7989
+ getOffsetParent: Uo,
7990
+ getDocumentElement: oe,
7991
+ getElementRects: (o) => {
7992
+ let {
7993
+ reference: e,
7994
+ floating: t,
7995
+ strategy: r
7996
+ } = o;
7997
+ return {
7998
+ reference: Vi(e, Uo(t), r),
7999
+ floating: {
8000
+ ...At(t),
8001
+ x: 0,
8002
+ y: 0
8003
+ }
8004
+ };
8005
+ },
8006
+ getClientRects: (o) => Array.from(o.getClientRects()),
8007
+ isRTL: (o) => Ee(o).direction === "rtl"
8008
+ }, Qi = (o, e, t) => Si(o, e, {
8009
+ platform: Ji,
8010
+ ...t
8011
+ }), $e = "top", ze = "bottom", He = "left", We = "right", _o = {
8012
+ [$e]: ze,
8013
+ [ze]: $e,
8014
+ [He]: We,
8015
+ [We]: He
8016
+ }, en = {
8017
+ [$e]: "\u2191",
8018
+ [ze]: "\u2193",
8019
+ [He]: "\u2190",
8020
+ [We]: "\u2192"
8021
+ }, on = {
8022
+ [He]: -45,
8023
+ [$e]: 45,
8024
+ [We]: 135,
8025
+ [ze]: -135
8026
+ }, Mt = "calc(50% - 7px)", tn = (o) => [$e, ze].includes(o);
8027
+ function rn({ actualDirection: o, directionName: e, arrowEl: t }) {
8028
+ if (!t)
8029
+ return;
8030
+ o = e;
8031
+ const r = tn(e);
8032
+ t.style.left = r ? Mt : "", t.style.top = r ? "" : Mt;
8033
+ }
8034
+ async function nn(o) {
8035
+ var i, a;
8036
+ if (!o.isShowing)
8037
+ return;
8038
+ if (await ((i = o == null ? void 0 : o.waitForDOM) == null ? void 0 : i.call(o)), o.isCallout)
8039
+ return rn(o);
8040
+ const e = await Qi(o.targetEl, o.attentionEl, {
8041
+ placement: o.directionName,
8042
+ middleware: [
8043
+ Ni(),
8044
+ Ui(8),
8045
+ Fi({ padding: 16 }),
8046
+ Ai({ element: o.noArrow ? void 0 : o.arrowEl })
8047
+ ]
8048
+ });
8049
+ o.actualDirection = e.placement, Object.assign(((a = o.attentionEl) == null ? void 0 : a.style) || {}, {
8050
+ left: "0",
8051
+ top: "0",
8052
+ transform: `translate3d(${Math.round(e.x)}px, ${Math.round(e.y)}px, 0)`
8053
+ });
8054
+ let { x: t, y: r } = e.middlewareData.arrow;
8055
+ o.arrowEl && (o.arrowEl.style.left = t ? t + "px" : "", o.arrowEl.style.top = r ? r + "px" : "");
8056
+ }
8057
+ class Oo extends Xe($) {
8058
+ constructor() {
8059
+ super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
8060
+ }
8061
+ connectedCallback() {
8062
+ if (super.connectedCallback(), !this.placement || !Object.keys(_o).includes(this.placement))
8063
+ throw new Error(
8064
+ `Invalid "placement" attribute. Set its value to one of the following:
8065
+ ${JSON.stringify(
8066
+ Object.keys(_o)
8067
+ )}`
8068
+ );
8069
+ setTimeout(() => this.requestUpdate(), 0);
8070
+ }
8071
+ get _actualDirection() {
8072
+ return this.placement;
8073
+ }
8074
+ set _actualDirection(e) {
8075
+ this.placement = e;
8076
+ }
8077
+ get _arrowDirection() {
8078
+ return _o[this.placement];
8079
+ }
8080
+ updated() {
8081
+ this.callout || this._attentionEl.style.setProperty("--attention-visibility", this.show ? "" : "hidden"), this.tooltip || this._attentionEl.style.setProperty("--attention-display", this.show ? "block" : "none"), this.attentionState = {
8082
+ isShowing: this.show,
8083
+ isCallout: this.callout,
8084
+ actualDirection: this._actualDirection,
8085
+ directionName: this.placement,
8086
+ arrowEl: this.renderRoot.querySelector("#arrow"),
8087
+ attentionEl: this._attentionEl,
8088
+ targetEl: this._targetEl,
8089
+ noArrow: this.noArrow
8090
+ }, nn(this.attentionState);
8091
+ }
8092
+ setAriaLabels() {
8093
+ if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
8094
+ const e = this._messageEl.id || (this._messageEl.id = di());
8095
+ this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", e);
8096
+ }
8097
+ }
8098
+ firstUpdated() {
8099
+ this.setAriaLabels(), this.callout && (this._attentionEl.style.position = "relative");
8100
+ }
8101
+ get _attentionEl() {
8102
+ return this.renderRoot.querySelector("#attention");
8103
+ }
8104
+ get _targetEl() {
8105
+ return this.renderRoot.querySelector("slot[name='target']").assignedNodes()[0];
8106
+ }
8107
+ get _messageEl() {
8108
+ return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
8109
+ }
8110
+ get _wrapperClasses() {
8111
+ return wt({
8112
+ [Q.base]: !0,
8113
+ [Q.tooltip]: this.tooltip,
8114
+ [Q.callout]: this.callout,
8115
+ [Q.popover]: this.popover
8116
+ });
8117
+ }
8118
+ get _arrowClasses() {
8119
+ return wt({
8120
+ [Q.arrowBase]: !0,
8121
+ ["-top-8"]: this._arrowDirection === "top",
8122
+ ["-right-8"]: this._arrowDirection === "right",
8123
+ ["-bottom-8"]: this._arrowDirection === "bottom",
8124
+ ["-left-8"]: this._arrowDirection === "left",
8125
+ [Q.arrowTooltip]: this.tooltip,
8126
+ [Q.arrowCallout]: this.callout,
8127
+ [Q.arrowPopover]: this.popover
8128
+ });
8129
+ }
8130
+ get _arrowHtml() {
8131
+ return this.noArrow ? "" : p`<div
8132
+ id="arrow"
8133
+ role="img"
8134
+ aria-label=${en[this._arrowDirection]}
8135
+ class="${this._arrowClasses}"
8136
+ style="transform:rotate(${on[this._arrowDirection]}deg);
8137
+ margin-${this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
8138
+ />`;
8139
+ }
8140
+ render() {
8141
+ return p`
8142
+ <div class=${_(this.className ? this.className : void 0)}>
8143
+ ${this.placement === "right" || this.placement === "bottom" ? p`
8144
+ <slot name="target"></slot>
8145
+ <div id="attention" class="${this._wrapperClasses}">
8146
+ <div>
8147
+ ${this._arrowHtml}
8148
+ <slot name="message"></slot>
8149
+ </div>
8150
+ </div>
8151
+ ` : p`
8152
+ <div id="attention" class="${this._wrapperClasses}">
8153
+ <div>
8154
+ <slot name="message"></slot>
8155
+ ${this._arrowHtml}
8156
+ </div>
8157
+ </div>
8158
+ <slot name="target"></slot>
8159
+ `}
8160
+ </div>
8161
+ `;
8162
+ }
8163
+ }
8164
+ k(Oo, "properties", {
8165
+ show: { type: Boolean, reflect: !0 },
8166
+ placement: { type: String },
8167
+ tooltip: { type: Boolean, reflect: !0 },
8168
+ callout: { type: Boolean, reflect: !0 },
8169
+ popover: { type: Boolean, reflect: !0 },
8170
+ noArrow: { type: Boolean, reflect: !0 }
8171
+ }), k(Oo, "styles", [
8172
+ R`
5447
8173
  /* /* layer: preflights */
5448
8174
 
5449
8175
  /*
@@ -6027,35 +8753,118 @@ video {
6027
8753
  border-top-left-radius: 4px;
6028
8754
  z-index: 1;
6029
8755
  }
6030
- `];constructor(){super(),this.show=!1,this.tooltip=!1,this.callout=!1,this.popover=!1,this.noArrow=!1}connectedCallback(){if(super.connectedCallback(),!this.placement||!Object.keys(Te).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:
6031
- ${JSON.stringify(Object.keys(Te))}`);setTimeout(()=>this.requestUpdate(),0)}get _actualDirection(){return this.placement}set _actualDirection(e){this.placement=e}get _arrowDirection(){return Te[this.placement]}updated(){this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"block":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this.renderRoot.querySelector("#arrow"),attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow},Hr(this.attentionState)}setAriaLabels(){if(this._targetEl&&!this._targetEl.getAttribute("aria-describedby")){const e=this._messageEl.id||(this._messageEl.id=Ht());this._messageEl.setAttribute("role","tooltip"),this._targetEl.setAttribute("aria-describedby",e)}}firstUpdated(){this.setAriaLabels(),this.callout&&(this._attentionEl.style.position="relative")}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){return this.renderRoot.querySelector("slot[name='target']").assignedNodes()[0]}get _messageEl(){return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0]}get _wrapperClasses(){return zo({[W.base]:!0,[W.tooltip]:this.tooltip,[W.callout]:this.callout,[W.popover]:this.popover})}get _arrowClasses(){return zo({[W.arrowBase]:!0,["-top-8"]:this._arrowDirection==="top",["-right-8"]:this._arrowDirection==="right",["-bottom-8"]:this._arrowDirection==="bottom",["-left-8"]:this._arrowDirection==="left",[W.arrowTooltip]:this.tooltip,[W.arrowCallout]:this.callout,[W.arrowPopover]:this.popover})}get _arrowHtml(){return this.noArrow?"":p`<div
6032
- id="arrow"
6033
- role="img"
6034
- aria-label=${Br[this._arrowDirection]}
6035
- class="${this._arrowClasses}"
6036
- style="transform:rotate(${Nr[this._arrowDirection]}deg);
6037
- margin-${this._arrowDirection.charAt(0).toLowerCase()+this._arrowDirection.slice(1)}:-0.5px;"
6038
- />`}render(){return p`
6039
- <div class=${y(this.className?this.className:void 0)}>
6040
- ${this.placement==="right"||this.placement==="bottom"?p`
6041
- <slot name="target"></slot>
6042
- <div id="attention" class="${this._wrapperClasses}">
6043
- <div>
6044
- ${this._arrowHtml}
6045
- <slot name="message"></slot>
6046
- </div>
6047
- </div>
6048
- `:p`
6049
- <div id="attention" class="${this._wrapperClasses}">
6050
- <div>
6051
- <slot name="message"></slot>
6052
- ${this._arrowHtml}
6053
- </div>
6054
- </div>
6055
- <slot name="target"></slot>
6056
- `}
8756
+ `
8757
+ ]);
8758
+ customElements.get("w-attention") || customElements.define("w-attention", Oo);
8759
+ class Fo extends $ {
8760
+ constructor() {
8761
+ super(), this.type = "text";
8762
+ }
8763
+ get _outerWrapperStyles() {
8764
+ return L({
8765
+ "has-suffix": this._hasSuffix,
8766
+ "has-prefix": this._hasPrefix
8767
+ });
8768
+ }
8769
+ get _innerWrapperStyles() {
8770
+ return L({
8771
+ "input mb-0": !0,
8772
+ "input--is-invalid": this.invalid,
8773
+ "input--is-disabled": this.disabled,
8774
+ "input--is-read-only": this.readOnly
8775
+ });
8776
+ }
8777
+ get _label() {
8778
+ if (this.label)
8779
+ return p`<label for="${this._id}">${this.label}</label>`;
8780
+ }
8781
+ get _helpId() {
8782
+ if (this.helpText)
8783
+ return `${this._id}__hint`;
8784
+ }
8785
+ get _id() {
8786
+ return "textfield";
8787
+ }
8788
+ get _error() {
8789
+ if (this.invalid && this._helpId)
8790
+ return this._helpId;
8791
+ }
8792
+ handler(e) {
8793
+ const { name: t, value: r } = e.target, i = new CustomEvent(e.type, {
8794
+ detail: {
8795
+ name: t,
8796
+ value: r,
8797
+ target: e.target
8798
+ }
8799
+ });
8800
+ this.dispatchEvent(i);
8801
+ }
8802
+ prefixSlotChange(e) {
8803
+ this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length && (this._hasPrefix = !0);
8804
+ }
8805
+ suffixSlotChange(e) {
8806
+ this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
8807
+ }
8808
+ render() {
8809
+ return p`
8810
+ ${this._fabricStylesheet}
8811
+ <div class="${this._outerWrapperStyles}">
8812
+ <div class="${this._innerWrapperStyles}">
8813
+ ${this._label}
8814
+ <div class="relative">
8815
+ <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
8816
+ <input
8817
+ type="${this.type}"
8818
+ min="${_(this.min)}"
8819
+ max="${_(this.max)}"
8820
+ size="${_(this.size)}"
8821
+ minlength="${_(this.minLength)}"
8822
+ maxlength="${_(this.maxLength)}"
8823
+ name="${_(this.name)}"
8824
+ pattern="${_(this.pattern)}"
8825
+ placeholder="${_(this.placeholder)}"
8826
+ value="${_(this.value)}"
8827
+ aria-describedby="${_(this._helpId)}"
8828
+ aria-errormessage="${_(this._error)}"
8829
+ aria-invalid="${_(this.invalid)}"
8830
+ id="${this._id}"
8831
+ ?disabled="${this.disabled}"
8832
+ ?readonly="${this.readOnly}"
8833
+ ?required="${this.required}"
8834
+ @blur="${this.handler}"
8835
+ @change="${this.handler}"
8836
+ @focus="${this.handler}"
8837
+ />
8838
+ <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
8839
+ </div>
8840
+ ${this.helpText && p`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
8841
+ </div>
6057
8842
  </div>
6058
- `}}customElements.get("w-attention")||customElements.define("w-attention",Dr);class Wr extends w{static properties={disabled:{type:Boolean},invalid:{type:Boolean},id:{type:String},label:{type:String},helpText:{type:String,attribute:"help-text"},size:{type:String},max:{type:Number},min:{type:Number},minLength:{type:Number,attribute:"min-length"},maxLength:{type:Number,attribute:"max-length"},name:{type:String},pattern:{type:String},placeholder:{type:String},readOnly:{type:Boolean,attribute:"read-only"},required:{type:Boolean},type:{type:String},value:{type:String},_hasPrefix:{state:!0},_hasSuffix:{state:!0}};static styles=[_`
8843
+ `;
8844
+ }
8845
+ }
8846
+ k(Fo, "properties", {
8847
+ disabled: { type: Boolean },
8848
+ invalid: { type: Boolean },
8849
+ id: { type: String },
8850
+ label: { type: String },
8851
+ helpText: { type: String, attribute: "help-text" },
8852
+ size: { type: String },
8853
+ max: { type: Number },
8854
+ min: { type: Number },
8855
+ minLength: { type: Number, attribute: "min-length" },
8856
+ maxLength: { type: Number, attribute: "max-length" },
8857
+ name: { type: String },
8858
+ pattern: { type: String },
8859
+ placeholder: { type: String },
8860
+ readOnly: { type: Boolean, attribute: "read-only" },
8861
+ required: { type: Boolean },
8862
+ type: { type: String },
8863
+ value: { type: String },
8864
+ _hasPrefix: { state: !0 },
8865
+ _hasSuffix: { state: !0 }
8866
+ }), k(Fo, "styles", [
8867
+ R`
6059
8868
  /* /* layer: preflights */
6060
8869
 
6061
8870
  /*
@@ -6630,41 +9439,95 @@ video {
6630
9439
  ::slotted(:last-child) {
6631
9440
  margin-bottom: 0px !important;
6632
9441
  }
6633
- `];constructor(){super(),this.type="text"}get _outerWrapperStyles(){return P({"has-suffix":this._hasSuffix,"has-prefix":this._hasPrefix})}get _innerWrapperStyles(){return P({"input mb-0":!0,"input--is-invalid":this.invalid,"input--is-disabled":this.disabled,"input--is-read-only":this.readOnly})}get _label(){if(this.label)return p`<label for="${this._id}">${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.target,i=new CustomEvent(e.type,{detail:{name:t,value:r,target:e.target}});this.dispatchEvent(i)}prefixSlotChange(e){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(e){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}render(){return p`
6634
- ${this._fabricStylesheet}
6635
- <div class="${this._outerWrapperStyles}">
6636
- <div class="${this._innerWrapperStyles}">
6637
- ${this._label}
6638
- <div class="relative">
6639
- <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
6640
- <input
6641
- type="${this.type}"
6642
- min="${y(this.min)}"
6643
- max="${y(this.max)}"
6644
- size="${y(this.size)}"
6645
- minlength="${y(this.minLength)}"
6646
- maxlength="${y(this.maxLength)}"
6647
- name="${y(this.name)}"
6648
- pattern="${y(this.pattern)}"
6649
- placeholder="${y(this.placeholder)}"
6650
- value="${y(this.value)}"
6651
- aria-describedby="${y(this._helpId)}"
6652
- aria-errormessage="${y(this._error)}"
6653
- aria-invalid="${y(this.invalid)}"
6654
- id="${this._id}"
6655
- ?disabled="${this.disabled}"
6656
- ?readonly="${this.readOnly}"
6657
- ?required="${this.required}"
6658
- @blur="${this.handler}"
6659
- @change="${this.handler}"
6660
- @focus="${this.handler}"
6661
- />
6662
- <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
6663
- </div>
6664
- ${this.helpText&&p`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
6665
- </div>
6666
- </div>
6667
- `}}customElements.get("w-textfield")||customElements.define("w-textfield",Wr);class Po extends w{render(){return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`}}customElements.get("f-icon-chevron-down16",Po)||customElements.define("f-icon-chevron-down16",Po);class Vr extends Ae(w){static properties={expanded:{type:Boolean,reflect:!0},title:{type:String},info:{type:Boolean},box:{type:Boolean},bleed:{type:Boolean},buttonClass:{type:String},contentClass:{type:String},noChevron:{type:Boolean},animated:{type:Boolean},headingLevel:{type:Number},_hasTitle:{type:Boolean,state:!0}};constructor(){super(),this.expanded=!1,this.animated=!1,this.info=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this._hasTitle=!0}static styles=[_`
9442
+ `
9443
+ ]);
9444
+ customElements.get("w-textfield") || customElements.define("w-textfield", Fo);
9445
+ class Pt extends $ {
9446
+ render() {
9447
+ return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
9448
+ }
9449
+ }
9450
+ customElements.get("f-icon-chevron-down16", Pt) || customElements.define("f-icon-chevron-down16", Pt);
9451
+ class Lo extends Xe($) {
9452
+ constructor() {
9453
+ super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
9454
+ }
9455
+ firstUpdated() {
9456
+ this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
9457
+ }
9458
+ get _expandableSlot() {
9459
+ return p`<div
9460
+ class=${L({
9461
+ [this.contentClass || ""]: !0,
9462
+ [le.box + (this._hasTitle ? " pt-0" : "")]: this.box
9463
+ })}
9464
+ >
9465
+ <slot></slot>
9466
+ </div>`;
9467
+ }
9468
+ render() {
9469
+ return p` <div
9470
+ class=${L({
9471
+ "bg-aqua-50": this.info,
9472
+ ["py-0 px-0 " + le.box]: this.box,
9473
+ [le.bleed]: this.bleed
9474
+ })}
9475
+ >
9476
+ ${this._hasTitle ? p`<w-unstyled-heading level=${this.headingLevel}>
9477
+ <button
9478
+ type="button"
9479
+ aria-expanded="${this.expanded}"
9480
+ class=${L({
9481
+ [this.buttonClass || ""]: !0,
9482
+ [ni + " hover:underline focus:underline"]: !0,
9483
+ ["w-full text-left relative " + le.box]: this.box,
9484
+ "hover:text-aqua-700 active:text-aqua-800": this.info
9485
+ })}
9486
+ @click=${() => this.expanded = !this.expanded}
9487
+ >
9488
+ <div class="flex justify-between align-center">
9489
+ ${this.title ? p`<span class="h4">${this.title}</span>` : p`<slot name="title"></slot>`}
9490
+ ${this.noChevron ? "" : p`<div
9491
+ class=${L({
9492
+ "self-center transform transition-transform": !0,
9493
+ "-rotate-180": this.expanded,
9494
+ "relative left-8": !this.box,
9495
+ "box-chevron": this.box
9496
+ })}
9497
+ >
9498
+ <w-icon-chevron-down16></w-icon-chevron-down16>
9499
+ </div>`}
9500
+ </div>
9501
+ </button>
9502
+ </w-unstyled-heading>` : ""}
9503
+ ${this.animated ? p`<w-expand-transition ?show=${this.expanded}>
9504
+ ${this._expandableSlot}
9505
+ </w-expand-transition>` : p`<div
9506
+ class=${L({
9507
+ "overflow-hidden": !0,
9508
+ "h-0 invisible": !this.expanded
9509
+ })}
9510
+ aria-hidden=${_(this.expanded ? void 0 : !0)}
9511
+ >
9512
+ ${this._expandableSlot}
9513
+ </div>`}
9514
+ </div>`;
9515
+ }
9516
+ }
9517
+ k(Lo, "properties", {
9518
+ expanded: { type: Boolean, reflect: !0 },
9519
+ title: { type: String },
9520
+ info: { type: Boolean },
9521
+ box: { type: Boolean },
9522
+ bleed: { type: Boolean },
9523
+ buttonClass: { type: String },
9524
+ contentClass: { type: String },
9525
+ noChevron: { type: Boolean },
9526
+ animated: { type: Boolean },
9527
+ headingLevel: { type: Number },
9528
+ _hasTitle: { type: Boolean, state: !0 }
9529
+ }), k(Lo, "styles", [
9530
+ R`
6668
9531
  /* /* layer: preflights */
6669
9532
 
6670
9533
  /*
@@ -7254,39 +10117,10 @@ video {
7254
10117
  ::slotted(:last-child) {
7255
10118
  margin-bottom: 0px !important;
7256
10119
  }
7257
- `];firstUpdated(){this._hasTitle=!!this.title||this.renderRoot.querySelector("slot[name='title']").assignedNodes().length>0}get _expandableSlot(){return p`<div
7258
- class=${P({[this.contentClass||""]:!0,[J.box+(this._hasTitle?" pt-0":"")]:this.box})}
7259
- >
7260
- <slot></slot>
7261
- </div>`}render(){return p` <div
7262
- class=${P({"bg-aqua-50":this.info,["py-0 px-0 "+J.box]:this.box,[J.bleed]:this.bleed})}
7263
- >
7264
- ${this._hasTitle?p`<w-unstyled-heading level=${this.headingLevel}>
7265
- <button
7266
- type="button"
7267
- aria-expanded="${this.expanded}"
7268
- class=${P({[this.buttonClass||""]:!0,[Bt+" hover:underline focus:underline"]:!0,["w-full text-left relative "+J.box]:this.box,"hover:text-aqua-700 active:text-aqua-800":this.info})}
7269
- @click=${()=>this.expanded=!this.expanded}
7270
- >
7271
- <div class="flex justify-between align-center">
7272
- ${this.title?p`<span class="h4">${this.title}</span>`:p`<slot name="title"></slot>`}
7273
- ${this.noChevron?"":p`<div
7274
- class=${P({"self-center transform transition-transform":!0,"-rotate-180":this.expanded,"relative left-8":!this.box,"box-chevron":this.box})}
7275
- >
7276
- <w-icon-chevron-down16></w-icon-chevron-down16>
7277
- </div>`}
7278
- </div>
7279
- </button>
7280
- </w-unstyled-heading>`:""}
7281
- ${this.animated?p`<w-expand-transition ?show=${this.expanded}>
7282
- ${this._expandableSlot}
7283
- </w-expand-transition>`:p`<div
7284
- class=${P({"overflow-hidden":!0,"h-0 invisible":!this.expanded})}
7285
- aria-hidden=${y(this.expanded?void 0:!0)}
7286
- >
7287
- ${this._expandableSlot}
7288
- </div>`}
7289
- </div>`}}customElements.get("w-expandable")||customElements.define("w-expandable",Vr);const Zr=p`
10120
+ `
10121
+ ]);
10122
+ customElements.get("w-expandable") || customElements.define("w-expandable", Lo);
10123
+ const an = p`
7290
10124
  <svg
7291
10125
  role="img"
7292
10126
  aria-label="X"
@@ -7303,7 +10137,7 @@ video {
7303
10137
  clipRule="evenodd"
7304
10138
  />
7305
10139
  </svg>
7306
- `,Xr=p`
10140
+ `, ln = p`
7307
10141
  <svg
7308
10142
  role="img"
7309
10143
  aria-label="Forstørrelsesglass"
@@ -7328,7 +10162,52 @@ video {
7328
10162
  </clipPath>
7329
10163
  </defs>
7330
10164
  </svg>
7331
- `;class Yr extends w{static styles=_`
10165
+ `;
10166
+ class Io extends $ {
10167
+ get _classBase() {
10168
+ return this.slot === "suffix" ? ai : li;
10169
+ }
10170
+ get _classes() {
10171
+ return L({
10172
+ [this._classBase.wrapper]: !0,
10173
+ [this._classBase.wrapperWithLabel]: this.label,
10174
+ [this._classBase.wrapperWithIcon]: !this.label
10175
+ });
10176
+ }
10177
+ get _searchButton() {
10178
+ return p`
10179
+ <button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="submit">
10180
+ ${ln}
10181
+ </button>
10182
+ `;
10183
+ }
10184
+ get _clearButton() {
10185
+ return p`
10186
+ <button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="reset">
10187
+ ${an}
10188
+ </button>
10189
+ `;
10190
+ }
10191
+ get _text() {
10192
+ return p`
10193
+ <div class="${this._classes}">
10194
+ <span class="${this._classBase.label}">${this.label}</span>
10195
+ </div>
10196
+ `;
10197
+ }
10198
+ get _markup() {
10199
+ if (this.label)
10200
+ return this._text;
10201
+ if (this.search)
10202
+ return this._searchButton;
10203
+ if (this.clear)
10204
+ return this._clearButton;
10205
+ }
10206
+ render() {
10207
+ return p`${this._markup}`;
10208
+ }
10209
+ }
10210
+ k(Io, "styles", R`
7332
10211
  /* /* layer: preflights */
7333
10212
 
7334
10213
  /*
@@ -7893,21 +10772,50 @@ video {
7893
10772
  .pointer-events-none{pointer-events:none;}
7894
10773
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
7895
10774
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
7896
- `;static properties={ariaLabel:{type:String,attribute:"aria-label"},clear:{type:Boolean},search:{type:Boolean},label:{type:String}};get _classBase(){return this.slot==="suffix"?Nt:Tt}get _classes(){return P({[this._classBase.wrapper]:!0,[this._classBase.wrapperWithLabel]:this.label,[this._classBase.wrapperWithIcon]:!this.label})}get _searchButton(){return p`
7897
- <button aria-label="${y(this.ariaLabel)}" class="${this._classes}" type="submit">
7898
- ${Xr}
7899
- </button>
7900
- `}get _clearButton(){return p`
7901
- <button aria-label="${y(this.ariaLabel)}" class="${this._classes}" type="reset">
7902
- ${Zr}
7903
- </button>
7904
- `}get _text(){return p`
7905
- <div class="${this._classes}">
7906
- <span class="${this._classBase.label}">${this.label}</span>
7907
- </div>
7908
- `}get _markup(){if(this.label)return this._text;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return p`${this._markup}`}}customElements.get("w-affix")||customElements.define("w-affix",Yr);const ht=_`
10775
+ `), k(Io, "properties", {
10776
+ ariaLabel: { type: String, attribute: "aria-label" },
10777
+ clear: { type: Boolean },
10778
+ search: { type: Boolean },
10779
+ label: { type: String }
10780
+ });
10781
+ customElements.get("w-affix") || customElements.define("w-affix", Io);
10782
+ const fr = R`
7909
10783
  @import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
7910
- `;class Kr extends w{static 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(){if(!!this._wrapper){if(!this._mounted){this._mounted=!0;return}this.show&&et(this._wrapper),!this.show&&!this._removeElement&&ot(this._wrapper,()=>this._removeElement=!0)}}get _wrapper(){return this??null}static styles=[ht,_`
10784
+ `;
10785
+ class Bo extends $ {
10786
+ constructor() {
10787
+ super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
10788
+ }
10789
+ willUpdate() {
10790
+ this._mounted || (this._removeElement = !this.show), this.show && this._removeElement && (this._removeElement = !1);
10791
+ }
10792
+ updated() {
10793
+ if (!!this._wrapper) {
10794
+ if (!this._mounted) {
10795
+ this._mounted = !0;
10796
+ return;
10797
+ }
10798
+ this.show && ir(this._wrapper), !this.show && !this._removeElement && nr(this._wrapper, () => this._removeElement = !0);
10799
+ }
10800
+ }
10801
+ get _wrapper() {
10802
+ return this != null ? this : null;
10803
+ }
10804
+ render() {
10805
+ return p`<div aria-hidden=${_(this.show ? void 0 : "true")}>
10806
+ ${this._removeElement ? p`` : p`<slot></slot>`}
10807
+ </div>`;
10808
+ }
10809
+ }
10810
+ k(Bo, "properties", {
10811
+ show: {
10812
+ type: Boolean,
10813
+ reflect: !0
10814
+ },
10815
+ _removeElement: { type: Boolean, state: !0 }
10816
+ }), k(Bo, "styles", [
10817
+ fr,
10818
+ R`
7911
10819
  /* /* layer: preflights */
7912
10820
 
7913
10821
  /*
@@ -8476,9 +11384,25 @@ video {
8476
11384
  :host {
8477
11385
  display: block;
8478
11386
  }
8479
- `];render(){return p`<div aria-hidden=${y(this.show?void 0:"true")}>
8480
- ${this._removeElement?p``:p`<slot></slot>`}
8481
- </div>`}}customElements.get("w-expand-transition")||customElements.define("w-expand-transition",Kr);class Gr extends w{static properties={level:{type:Number}};static styles=[ht,_`
11387
+ `
11388
+ ]);
11389
+ customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Bo);
11390
+ class Vo extends $ {
11391
+ get _markup() {
11392
+ return `<h${this.level}
11393
+ style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
11394
+ >
11395
+ <slot></slot>
11396
+ </h${this.level}>
11397
+ `;
11398
+ }
11399
+ render() {
11400
+ return this.level ? et(this._markup) : p`<slot></slot>`;
11401
+ }
11402
+ }
11403
+ k(Vo, "properties", {
11404
+ level: { type: Number }
11405
+ }), k(Vo, "styles", [fr, R`
8482
11406
  /* /* layer: preflights */
8483
11407
 
8484
11408
  /*
@@ -9043,9 +11967,13 @@ video {
9043
11967
  .pointer-events-none{pointer-events:none;}
9044
11968
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
9045
11969
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
9046
- `];get _markup(){return`<h${this.level}
9047
- style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
9048
- >
9049
- <slot></slot>
9050
- </h${this.level}>
9051
- `}render(){return this.level?Qe(this._markup):p`<slot></slot>`}}customElements.get("w-unstyled-heading")||customElements.define("w-unstyled-heading",Gr);class Lo extends w{render(){return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><title>Håndveske</title><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 14.5V3a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v11.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.222 6H3.777a2 2 0 0 0-1.986 1.766l-.53 4.5A2 2 0 0 0 3.25 14.5h9.502a2 2 0 0 0 1.986-2.234l-.53-4.5A2 2 0 0 0 12.222 6Z"></path></svg>`}}customElements.get("f-icon-bag16",Lo)||customElements.define("f-icon-bag16",Lo);te&&(window.WarpToastContainer=rt,window.toast=cr,window.updateToast=sr,window.removeToast=lr);
11970
+ `]);
11971
+ customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Vo);
11972
+ class jt extends $ {
11973
+ render() {
11974
+ return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><title>Håndveske</title><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 14.5V3a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v11.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.222 6H3.777a2 2 0 0 0-1.986 1.766l-.53 4.5A2 2 0 0 0 3.25 14.5h9.502a2 2 0 0 0 1.986-2.234l-.53-4.5A2 2 0 0 0 12.222 6Z"></path></svg>`;
11975
+ }
11976
+ }
11977
+ customElements.get("f-icon-bag16", jt) || customElements.define("f-icon-bag16", jt);
11978
+ be && (window.WarpToastContainer = Ie, window.toast = $i, window.updateToast = _i, window.removeToast = zi);
11979
+ //# sourceMappingURL=scripts.19dc1416.js.map