diff --git a/docs/dt-posts-list-query.md b/docs/dt-posts-list-query.md
index 40bb519f89..532f784fe0 100644
--- a/docs/dt-posts-list-query.md
+++ b/docs/dt-posts-list-query.md
@@ -189,6 +189,16 @@ Different field types have different filter formats:
'assigned_to' => []
```
+### File Upload Fields
+
+```php
+// Find posts with at least one uploaded file
+'documents' => ['*']
+
+// Find posts with no uploaded files
+'documents' => []
+```
+
## Combining Multiple Filters
Multiple filters can be combined to create complex queries:
diff --git a/dt-assets/build/components/index.es.js b/dt-assets/build/components/index.es.js
index 76b0a3cc5a..f875336ffc 100644
--- a/dt-assets/build/components/index.es.js
+++ b/dt-assets/build/components/index.es.js
@@ -1,33 +1,33 @@
-import { E as s, C as e, w as D, B as o, D as i, a as l, b as n, d as r, e as c, f as u, u as p, A as C, g as M, x as T, h as m, i as x, j as S, y as g, k as B, t as d, r as h, l as v, m as A, n as L, o as b, p as f, z as y, q as F, c as j, v as k } from "./index-B5P35fmQ.js";
+import { E as e, C as s, x as D, B as o, D as l, a as i, b as n, d as r, e as c, f as p, u, w as C, A as M, g as T, h as m, i as x, j as S, y as d, k as g, t as B, r as h, l as v, m as A, n as b, o as F, p as L, z as f, q as y, c as U, v as j } from "./index-Brc07-hb.js";
export {
- s as ApiService,
- e as ComponentService,
+ e as ApiService,
+ s as ComponentService,
D as DtAlert,
o as DtBase,
- i as DtButton,
- l as DtChurchHealthCircle,
+ l as DtButton,
+ i as DtChurchHealthCircle,
n as DtConnection,
r as DtCopyText,
c as DtDate,
- u as DtDatetime,
- p as DtFormBase,
- C as DtIcon,
- M as DtLabel,
- T as DtList,
+ p as DtDatetime,
+ u as DtFileUpload,
+ C as DtFormBase,
+ M as DtIcon,
+ T as DtLabel,
m as DtLocation,
x as DtLocationMap,
S as DtMapModal,
- g as DtModal,
- B as DtMultiSelect,
- d as DtMultiSelectButtonGroup,
+ d as DtModal,
+ g as DtMultiSelect,
+ B as DtMultiSelectButtonGroup,
h as DtMultiText,
v as DtNumberField,
A as DtSingleSelect,
- L as DtTags,
- b as DtText,
- f as DtTextArea,
- y as DtTile,
- F as DtToggle,
- j as DtUsersConnection,
- k as version
+ b as DtTags,
+ F as DtText,
+ L as DtTextArea,
+ f as DtTile,
+ y as DtToggle,
+ U as DtUsersConnection,
+ j as version
};
diff --git a/dt-assets/build/components/index.js b/dt-assets/build/components/index.js
index a264216fe1..174e0705eb 100644
--- a/dt-assets/build/components/index.js
+++ b/dt-assets/build/components/index.js
@@ -1,38 +1,38 @@
-var DtWebComponents=function($){"use strict";var Pr=Object.defineProperty;var Mr=($,q,W)=>q in $?Pr($,q,{enumerable:!0,configurable:!0,writable:!0,value:W}):$[q]=W;var Xe=($,q,W)=>Mr($,typeof q!="symbol"?q+"":q,W);/**
+var DtWebComponents=function(x){"use strict";var Pn=Object.defineProperty;var Mn=(x,D,W)=>D in x?Pn(x,D,{enumerable:!0,configurable:!0,writable:!0,value:W}):x[D]=W;var Me=(x,D,W)=>Mn(x,typeof D!="symbol"?D+"":D,W);/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */var As;const q=globalThis,W=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),Bt=new WeakMap;let qs=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Vt)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(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Bt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Bt.set(t,e))}return e}toString(){return this.cssText}};const Fs=o=>new qs(typeof o=="string"?o:o+"",void 0,Vt),Us=(o,e)=>{if(W)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=q.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,o.appendChild(i)}},Ht=W?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Fs(t)})(o):o;/**
+ */var Oo;const D=globalThis,W=D.ShadowRoot&&(D.ShadyCSS===void 0||D.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ut=Symbol(),Vt=new WeakMap;let qo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ut)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(W&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Vt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Vt.set(t,e))}return e}toString(){return this.cssText}};const Uo=s=>new qo(typeof s=="string"?s:s+"",void 0,Ut),Vo=(s,e)=>{if(W)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=D.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},Bt=W?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Uo(t)})(s):s;/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const{is:Vs,defineProperty:Bs,getOwnPropertyDescriptor:Hs,getOwnPropertyNames:Gs,getOwnPropertySymbols:Ws,getPrototypeOf:Ks}=Object,K=globalThis,Gt=K.trustedTypes,Zs=Gt?Gt.emptyScript:"",et=K.reactiveElementPolyfillSupport,he=(o,e)=>o,tt={toAttribute(o,e){switch(e){case Boolean:o=o?Zs: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}},Wt=(o,e)=>!Vs(o,e),Kt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),K.litPropertyMetadata??(K.litPropertyMetadata=new WeakMap);let pe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Kt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Bs(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){const{get:s,set:a}=Hs(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get(){return s==null?void 0:s.call(this)},set(n){const r=s==null?void 0:s.call(this);a.call(this,n),this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Kt}static _$Ei(){if(this.hasOwnProperty(he("elementProperties")))return;const e=Ks(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(he("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(he("properties"))){const t=this.properties,i=[...Gs(t),...Ws(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(Ht(s))}else e!==void 0&&t.push(Ht(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Us(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const n=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:tt;this._$Em=s,this[s]=r.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Wt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};pe.elementStyles=[],pe.shadowRootOptions={mode:"open"},pe[he("elementProperties")]=new Map,pe[he("finalized")]=new Map,et==null||et({ReactiveElement:pe}),(K.reactiveElementVersions??(K.reactiveElementVersions=[])).push("2.0.4");/**
+ */const{is:Bo,defineProperty:Ho,getOwnPropertyDescriptor:Ko,getOwnPropertyNames:Wo,getOwnPropertySymbols:Go,getPrototypeOf:Zo}=Object,G=globalThis,Ht=G.trustedTypes,Jo=Ht?Ht.emptyScript:"",et=G.reactiveElementPolyfillSupport,fe=(s,e)=>s,tt={toAttribute(s,e){switch(e){case Boolean:s=s?Jo:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Kt=(s,e)=>!Bo(s,e),Wt={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:Kt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),G.litPropertyMetadata??(G.litPropertyMetadata=new WeakMap);let be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Wt){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Ho(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=Ko(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Wt}static _$Ei(){if(this.hasOwnProperty(fe("elementProperties")))return;const e=Zo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fe("properties"))){const t=this.properties,i=[...Wo(t),...Go(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(Bt(o))}else e!==void 0&&t.push(Bt(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:tt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:tt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??Kt)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}};be.elementStyles=[],be.shadowRootOptions={mode:"open"},be[fe("elementProperties")]=new Map,be[fe("finalized")]=new Map,et==null||et({ReactiveElement:be}),(G.reactiveElementVersions??(G.reactiveElementVersions=[])).push("2.0.4");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const fe=globalThis,Pe=fe.trustedTypes,Zt=Pe?Pe.createPolicy("lit-html",{createHTML:o=>o}):void 0,Jt="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,Qt="?"+Z,Js=`<${Qt}>`,te=document,be=()=>te.createComment(""),ge=o=>o===null||typeof o!="object"&&typeof o!="function",it=Array.isArray,Qs=o=>it(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",st=`[
-\f\r]`,me=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yt=/-->/g,Xt=/>/g,ie=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
-\f\r"'\`<>=]|("|')|))|$)`,"g"),ei=/'/g,ti=/"/g,ii=/^(?:script|style|textarea|title)$/i,Ys=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),f=Ys(1),U=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),si=new WeakMap,se=te.createTreeWalker(te,129);function oi(o,e){if(!it(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zt!==void 0?Zt.createHTML(e):e}const Xs=(o,e)=>{const t=o.length-1,i=[];let s,a=e===2?"":e===3?"":"")),i]};class ve{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let a=0,n=0;const r=e.length-1,l=this.parts,[c,b]=Xs(e,t);if(this.el=ve.createElement(c,i),se.currentNode=this.el.content,t===2||t===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(s=se.nextNode())!==null&&l.length0){s.textContent=Pe?Pe.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}_$AI(e,t=this,i,s){const a=this.strings;let n=!1;if(a===void 0)e=de(this,e,t,0),n=!ge(e)||e!==this._$AH&&e!==U,n&&(this._$AH=e);else{const r=e;let l,c;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let s=i._$litPart$;if(s===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=s=new ce(e.insertBefore(be(),a),a,void 0,t??{})}return s._$AI(o),s};/**
+ */const me=globalThis,je=me.trustedTypes,Gt=je?je.createPolicy("lit-html",{createHTML:s=>s}):void 0,Zt="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,Jt="?"+Z,Qo=`<${Jt}>`,te=document,ge=()=>te.createComment(""),ve=s=>s===null||typeof s!="object"&&typeof s!="function",it=Array.isArray,Xo=s=>it(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[
+\f\r]`,ye=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Xt=/>/g,ie=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`,"g"),Yt=/'/g,ei=/"/g,ti=/^(?:script|style|textarea|title)$/i,Yo=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),p=Yo(1),U=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),ii=new WeakMap,oe=te.createTreeWalker(te,129);function oi(s,e){if(!it(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gt!==void 0?Gt.createHTML(e):e}const es=(s,e)=>{const t=s.length-1,i=[];let o,a=e===2?"":e===3?"":"")),i]};class _e{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let a=0,r=0;const n=e.length-1,l=this.parts,[d,u]=es(e,t);if(this.el=_e.createElement(d,i),oe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=oe.nextNode())!==null&&l.length0){o.textContent=je?je.emptyScript:"";for(let y=0;y2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}_$AI(e,t=this,i,o){const a=this.strings;let r=!1;if(a===void 0)e=ce(this,e,t,0),r=!ve(e)||e!==this._$AH&&e!==U,r&&(this._$AH=e);else{const n=e;let l,d;for(e=a[0],l=0;l{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const a=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new ue(e.insertBefore(ge(),a),a,void 0,t??{})}return o._$AI(s),o};/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const je=globalThis,at=je.ShadowRoot&&(je.ShadyCSS===void 0||je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),ai=new WeakMap;let ni=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==nt)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(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=ai.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ai.set(t,e))}return e}toString(){return this.cssText}};const ro=o=>new ni(typeof o=="string"?o:o+"",void 0,nt),x=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,s,a)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[a+1],o[0]);return new ni(t,o,nt)},lo=(o,e)=>{if(at)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=je.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,o.appendChild(i)}},ri=at?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ro(t)})(o):o;/**
+ */const Fe=globalThis,at=Fe.ShadowRoot&&(Fe.ShadyCSS===void 0||Fe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,rt=Symbol(),si=new WeakMap;let ai=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==rt)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(at&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=si.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&si.set(t,e))}return e}toString(){return this.cssText}};const ls=s=>new ai(typeof s=="string"?s:s+"",void 0,rt),$=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,a)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[a+1],s[0]);return new ai(t,s,rt)},ds=(s,e)=>{if(at)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Fe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ri=at?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ls(t)})(s):s;/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const{is:co,defineProperty:uo,getOwnPropertyDescriptor:ho,getOwnPropertyNames:po,getOwnPropertySymbols:fo,getPrototypeOf:bo}=Object,J=globalThis,li=J.trustedTypes,go=li?li.emptyScript:"",rt=J.reactiveElementPolyfillSupport,ye=(o,e)=>o,lt={toAttribute(o,e){switch(e){case Boolean:o=o?go: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}},di=(o,e)=>!co(o,e),ci={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:di};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),J.litPropertyMetadata??(J.litPropertyMetadata=new WeakMap);class ue extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ci){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&uo(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){const{get:s,set:a}=ho(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get(){return s==null?void 0:s.call(this)},set(n){const r=s==null?void 0:s.call(this);a.call(this,n),this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ci}static _$Ei(){if(this.hasOwnProperty(ye("elementProperties")))return;const e=bo(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ye("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ye("properties"))){const t=this.properties,i=[...po(t),...fo(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(ri(s))}else e!==void 0&&t.push(ri(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return lo(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const n=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),r=typeof n.converter=="function"?{fromAttribute:n.converter}:((a=n.converter)==null?void 0:a.fromAttribute)!==void 0?n.converter:lt;this._$Em=s,this[s]=r.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??di)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[a,n]of s)n.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],n)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(s=>{var a;return(a=s.hostUpdate)==null?void 0:a.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},ue[ye("elementProperties")]=new Map,ue[ye("finalized")]=new Map,rt==null||rt({ReactiveElement:ue}),(J.reactiveElementVersions??(J.reactiveElementVersions=[])).push("2.0.4");/**
+ */const{is:cs,defineProperty:us,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ps,getOwnPropertySymbols:fs,getPrototypeOf:bs}=Object,J=globalThis,ni=J.trustedTypes,ms=ni?ni.emptyScript:"",nt=J.reactiveElementPolyfillSupport,we=(s,e)=>s,lt={toAttribute(s,e){switch(e){case Boolean:s=s?ms:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},li=(s,e)=>!cs(s,e),di={attribute:!0,type:String,converter:lt,reflect:!1,hasChanged:li};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),J.litPropertyMetadata??(J.litPropertyMetadata=new WeakMap);class he extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=di){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&us(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:a}=hs(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return o==null?void 0:o.call(this)},set(r){const n=o==null?void 0:o.call(this);a.call(this,r),this.requestUpdate(e,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??di}static _$Ei(){if(this.hasOwnProperty(we("elementProperties")))return;const e=bs(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(we("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(we("properties"))){const t=this.properties,i=[...ps(t),...fs(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ri(o))}else e!==void 0&&t.push(ri(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ds(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var a;const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){const r=(((a=i.converter)==null?void 0:a.toAttribute)!==void 0?i.converter:lt).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,t){var a;const i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:((a=r.converter)==null?void 0:a.fromAttribute)!==void 0?r.converter:lt;this._$Em=o,this[o]=n.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??li)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,r]of this._$Ep)this[a]=r;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[a,r]of o)r.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(o=>{var a;return(a=o.hostUpdate)==null?void 0:a.call(o)}),this.update(t)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}he.elementStyles=[],he.shadowRootOptions={mode:"open"},he[we("elementProperties")]=new Map,he[we("finalized")]=new Map,nt==null||nt({ReactiveElement:he}),(J.reactiveElementVersions??(J.reactiveElementVersions=[])).push("2.0.4");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */let oe=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=no(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return U}};oe._$litElement$=!0,oe.finalized=!0,(As=globalThis.litElementHydrateSupport)==null||As.call(globalThis,{LitElement:oe});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:oe}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
+ */let se=class extends he{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ns(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return U}};se._$litElement$=!0,se.finalized=!0,(Oo=globalThis.litElementHydrateSupport)==null||Oo.call(globalThis,{LitElement:se});const dt=globalThis.litElementPolyfillSupport;dt==null||dt({LitElement:se}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const ct={ATTRIBUTE:1,CHILD:2},ut=o=>(...e)=>({_$litDirective$:o,values:e});let ht=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
+ */const ct={ATTRIBUTE:1,CHILD:2},ut=s=>(...e)=>({_$litDirective$:s,values:e});let ht=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const A=ut(class extends ht{constructor(o){var e;if(super(o),o.type!==ct.ATTRIBUTE||o.name!=="class"||((e=o.strings)==null?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 i,s;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=o.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const n=!!e[a];n===this.st.has(a)||(s=this.nt)!=null&&s.has(a)||(n?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return U}});/**
+ */const A=ut(class extends ht{constructor(s){var e;if(super(s),s.type!==ct.ATTRIBUTE||s.name!=="class"||((e=s.strings)==null?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(s){return" "+Object.keys(s).filter(e=>s[e]).join(" ")+" "}update(s,[e]){var i,o;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(const a in e)e[a]&&!((i=this.nt)!=null&&i.has(a))&&this.st.add(a);return this.render(e)}const t=s.element.classList;for(const a of this.st)a in e||(t.remove(a),this.st.delete(a));for(const a in e){const r=!!e[a];r===this.st.has(a)||(o=this.nt)!=null&&o.has(a)||(r?(t.add(a),this.st.add(a)):(t.remove(a),this.st.delete(a)))}return U}});/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
@@ -40,35 +40,38 @@ var DtWebComponents=function($){"use strict";var Pr=Object.defineProperty;var Mr
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const u=(o,...e)=>({strTag:!0,strings:o,values:e}),mo=o=>typeof o!="string"&&"strTag"in o,ui=(o,e,t)=>{let i=o[0];for(let s=1;s({strTag:!0,strings:s,values:e}),gs=s=>typeof s!="string"&&"strTag"in s,ci=(s,e,t)=>{let i=s[0];for(let o=1;omo(o)?ui(o.strings,o.values):o;let O=hi,pi=!1;function vo(o){if(pi)throw new Error("lit-localize can only be configured once");O=o,pi=!0}/**
+ */const ui=s=>gs(s)?ci(s.strings,s.values):s;let R=ui,hi=!1;function vs(s){if(hi)throw new Error("lit-localize can only be configured once");R=s,hi=!0}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */class yo{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const wo=o=>o.addController(new yo(o));/**
+ */class ys{constructor(e){this.__litLocalizeEventHandler=t=>{t.detail.status==="ready"&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pt,this.__litLocalizeEventHandler)}}const _s=s=>s.addController(new ys(s));/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */class fi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/**
+ */class pi{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}}/**
* @license
* Copyright 2014 Travis Webb
* SPDX-License-Identifier: MIT
- */const V=[];for(let o=0;o<256;o++)V[o]=(o>>4&15).toString(16)+(o&15).toString(16);function _o(o){let e=0,t=8997,i=0,s=33826,a=0,n=40164,r=0,l=52210;for(let c=0;c>>16,t=e&65535,a+=i>>>16,s=i&65535,l=r+(a>>>16)&65535,n=a&65535;return V[l>>8]+V[l&255]+V[n>>8]+V[n&255]+V[s>>8]+V[s&255]+V[t>>8]+V[t&255]}/**
+ */const V=[];for(let s=0;s<256;s++)V[s]=(s>>4&15).toString(16)+(s&15).toString(16);function ws(s){let e=0,t=8997,i=0,o=33826,a=0,r=40164,n=0,l=52210;for(let d=0;d>>16,t=e&65535,a+=i>>>16,o=i&65535,l=n+(a>>>16)&65535,r=a&65535;return V[l>>8]+V[l&255]+V[r>>8]+V[r&255]+V[o>>8]+V[o&255]+V[t>>8]+V[t&255]}/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const $o="",xo="h",ko="s";function So(o,e){return(e?xo:ko)+_o(typeof o=="string"?o:o.join($o))}/**
+ */const $s="",xs="h",ks="s";function Ss(s,e){return(e?xs:ks)+ws(typeof s=="string"?s:s.join($s))}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */const bi=new WeakMap,gi=new Map;function To(o,e,t){if(o){const i=(t==null?void 0:t.id)??Ao(e),s=o[i];if(s){if(typeof s=="string")return s;if("strTag"in s)return ui(s.strings,e.values,s.values);{let a=bi.get(s);return a===void 0&&(a=s.values,bi.set(s,a)),{...s,values:a.map(n=>e.values[n])}}}}return hi(e)}function Ao(o){const e=typeof o=="string"?o:o.strings;let t=gi.get(e);return t===void 0&&(t=So(e,typeof o!="string"&&!("strTag"in o)),gi.set(e,t)),t}/**
+ */const fi=new WeakMap,bi=new Map;function Es(s,e,t){if(s){const i=(t==null?void 0:t.id)??As(e),o=s[i];if(o){if(typeof o=="string")return o;if("strTag"in o)return ci(o.strings,e.values,o.values);{let a=fi.get(o);return a===void 0&&(a=o.values,fi.set(o,a)),{...o,values:a.map(r=>e.values[r])}}}}return ui(e)}function As(s){const e=typeof s=="string"?s:s.strings;let t=bi.get(e);return t===void 0&&(t=Ss(e,typeof s!="string"&&!("strTag"in s)),bi.set(e,t)),t}/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */function ft(o){window.dispatchEvent(new CustomEvent(pt,{detail:o}))}let De="",bt,mi,ze,gt,vi,ae=new fi;ae.resolve();let Re=0;const Eo=o=>(vo((e,t)=>To(vi,e,t)),De=mi=o.sourceLocale,ze=new Set(o.targetLocales),ze.add(o.sourceLocale),gt=o.loadLocale,{getLocale:Oo,setLocale:Co}),Oo=()=>De,Co=o=>{if(o===(bt??De))return ae.promise;if(!ze||!gt)throw new Error("Internal error");if(!ze.has(o))throw new Error("Invalid locale code");Re++;const e=Re;return bt=o,ae.settled&&(ae=new fi),ft({status:"loading",loadingLocale:o}),(o===mi?Promise.resolve({templates:void 0}):gt(o)).then(i=>{Re===e&&(De=o,bt=void 0,vi=i.templates,ft({status:"ready",readyLocale:o}),ae.resolve())},i=>{Re===e&&(ft({status:"error",errorLocale:o,errorMessage:i.toString()}),ae.reject(i))}),ae.promise},Lo=(o,e,t)=>{const i=o[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((s,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Io="en",Po=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:Mo}=Eo({sourceLocale:Io,targetLocales:Po,loadLocale:o=>Lo(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ba),"./generated/ar.js":()=>Promise.resolve().then(()=>Ga),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Ka),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Ja),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Ya),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>en),"./generated/cs.js":()=>Promise.resolve().then(()=>sn),"./generated/de_DE.js":()=>Promise.resolve().then(()=>an),"./generated/el.js":()=>Promise.resolve().then(()=>rn),"./generated/en_US.js":()=>Promise.resolve().then(()=>dn),"./generated/es-419.js":()=>Promise.resolve().then(()=>un),"./generated/es_419.js":()=>Promise.resolve().then(()=>pn),"./generated/es_ES.js":()=>Promise.resolve().then(()=>bn),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>mn),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>yn),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>_n),"./generated/hr.js":()=>Promise.resolve().then(()=>xn),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>Sn),"./generated/id_ID.js":()=>Promise.resolve().then(()=>An),"./generated/it_IT.js":()=>Promise.resolve().then(()=>On),"./generated/ja.js":()=>Promise.resolve().then(()=>Ln),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Pn),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>jn),"./generated/mr.js":()=>Promise.resolve().then(()=>zn),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Nn),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>Fn),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Vn),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Hn),"./generated/pl.js":()=>Promise.resolve().then(()=>Wn),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Zn),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Qn),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Xn),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>tr),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>sr),"./generated/sw.js":()=>Promise.resolve().then(()=>ar),"./generated/th.js":()=>Promise.resolve().then(()=>rr),"./generated/tl.js":()=>Promise.resolve().then(()=>dr),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>ur),"./generated/uk.js":()=>Promise.resolve().then(()=>pr),"./generated/vi.js":()=>Promise.resolve().then(()=>br),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>mr),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>yr)}),`./generated/${o}.js`,3)});class mt{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,s="dt/v1/"){let a=s;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const n=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,r={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(r.body=JSON.stringify(i));const l=await fetch(n,r),c=await l.json();if(!l.ok){const b=new Error((c==null?void 0:c.message)||c.toString());throw b.args={status:l.status,statusText:l.statusText,body:c},b}return c}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const s=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${s}`)}async getLocations(e,t,i,s=""){const a=new URLSearchParams({s,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,s="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:s})}async updateComment(e,t,i,s,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:s,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,s,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:s,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,s){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:s.post,comment:s.comment,meta:s.meta,status:s.status},"dt-posts/v2/posts/search/")}}(function(){(function(o){const e=new WeakMap,t=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap,c=new WeakMap,b=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap,w=new WeakMap,L=new WeakMap,N={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},M=(h,d)=>{for(let p in N){d[p]=null;let m=null;const _=N[p];Object.defineProperty(d,p,{get(){return m},set(k){m=k,h.isConnected?P(h,_,k):b.set(h,d)}})}};function I(h){const d=s.get(h),{form:p}=d;Ls(h,p,d),Cs(h,d.labels)}const Le=(h,d=!1)=>{const p=document.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return s.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let m=p.nextNode();const _=!d||h.disabled;for(;m;)m.formDisabledCallback&&_&&Rt(m,h.disabled),m=p.nextNode()},Ze={attributes:!0,attributeFilter:["disabled","name"]},X=Ye()?new MutationObserver(h=>{for(const d of h){const p=d.target;if(d.attributeName==="disabled"&&(p.constructor.formAssociated?Rt(p,p.hasAttribute("disabled")):p.localName==="fieldset"&&Le(p)),d.attributeName==="name"&&p.constructor.formAssociated){const m=s.get(p),_=c.get(p);m.setFormValue(_)}}}):{};function T(h){h.forEach(d=>{const{addedNodes:p,removedNodes:m}=d,_=Array.from(p),k=Array.from(m);_.forEach(S=>{var j;if(s.has(S)&&S.constructor.formAssociated&&I(S),b.has(S)){const C=b.get(S);Object.keys(N).filter(F=>C[F]!==null).forEach(F=>{P(S,N[F],C[F])}),b.delete(S)}if(L.has(S)){const C=L.get(S);P(S,"internals-valid",C.validity.valid.toString()),P(S,"internals-invalid",(!C.validity.valid).toString()),P(S,"aria-invalid",(!C.validity.valid).toString()),L.delete(S)}if(S.localName==="form"){const C=l.get(S),G=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(Ut){return s.has(Ut)&&Ut.constructor.formAssociated&&!(C&&C.has(Ut))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let F=G.nextNode();for(;F;)I(F),F=G.nextNode()}S.localName==="fieldset"&&((j=X.observe)===null||j===void 0||j.call(X,S,Ze),Le(S,!0))}),k.forEach(S=>{const j=s.get(S);j&&i.get(j)&&Es(j),r.has(S)&&r.get(S).disconnect()})})}function z(h){h.forEach(d=>{const{removedNodes:p}=d;p.forEach(m=>{const _=y.get(d.target);s.has(m)&&Ps(m),_.disconnect()})})}const le=h=>{var d,p;const m=new MutationObserver(z);!((d=window==null?void 0:window.ShadyDOM)===null||d===void 0)&&d.inUse&&h.mode&&h.host&&(h=h.host),(p=m.observe)===null||p===void 0||p.call(m,h,{childList:!0}),y.set(h,m)};Ye()&&new MutationObserver(T);const ee={childList:!0,subtree:!0},P=(h,d,p)=>{h.getAttribute(d)!==p&&h.setAttribute(d,p)},Rt=(h,d)=>{h.toggleAttribute("internals-disabled",d),d?P(h,"aria-disabled","true"):h.removeAttribute("aria-disabled"),h.formDisabledCallback&&h.formDisabledCallback.apply(h,[d])},Es=h=>{i.get(h).forEach(p=>{p.remove()}),i.set(h,[])},Os=(h,d)=>{const p=document.createElement("input");return p.type="hidden",p.name=h.getAttribute("name"),h.after(p),i.get(d).push(p),p},wr=(h,d)=>{var p;i.set(d,[]),(p=X.observe)===null||p===void 0||p.call(X,h,Ze)},Cs=(h,d)=>{if(d.length){Array.from(d).forEach(m=>m.addEventListener("click",h.click.bind(h)));let p=d[0].id;d[0].id||(p=`${d[0].htmlFor}_Label`,d[0].id=p),P(h,"aria-labelledby",p)}},Je=h=>{const d=Array.from(h.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),p=l.get(h)||[],m=Array.from(p).filter(k=>k.isConnected).map(k=>s.get(k).validity.valid),_=[...d,...m].includes(!1);h.toggleAttribute("internals-invalid",_),h.toggleAttribute("internals-valid",!_)},_r=h=>{Je(Qe(h.target))},$r=h=>{Je(Qe(h.target))},xr=h=>{const d=["button[type=submit]","input[type=submit]","button:not([type])"].map(p=>`${p}:not([disabled])`).map(p=>`${p}:not([form])${h.id?`,${p}[form='${h.id}']`:""}`).join(",");h.addEventListener("click",p=>{if(p.target.closest(d)){const _=l.get(h);if(h.noValidate)return;_.size&&Array.from(_).reverse().map(j=>s.get(j).reportValidity()).includes(!1)&&p.preventDefault()}})},kr=h=>{const d=l.get(h.target);d&&d.size&&d.forEach(p=>{p.constructor.formAssociated&&p.formResetCallback&&p.formResetCallback.apply(p)})},Ls=(h,d,p)=>{if(d){const m=l.get(d);if(m)m.add(h);else{const _=new Set;_.add(h),l.set(d,_),xr(d),d.addEventListener("reset",kr),d.addEventListener("input",_r),d.addEventListener("change",$r)}n.set(d,{ref:h,internals:p}),h.constructor.formAssociated&&h.formAssociatedCallback&&setTimeout(()=>{h.formAssociatedCallback.apply(h,[d])},0),Je(d)}},Qe=h=>{let d=h.parentNode;return d&&d.tagName!=="FORM"&&(d=Qe(d)),d},H=(h,d,p=DOMException)=>{if(!h.constructor.formAssociated)throw new p(d)},Is=(h,d,p)=>{const m=l.get(h);return m&&m.size&&m.forEach(_=>{s.get(_)[p]()||(d=!1)}),d},Ps=h=>{if(h.constructor.formAssociated){const d=s.get(h),{labels:p,form:m}=d;Cs(h,p),Ls(h,m,d)}};function Ye(){return typeof MutationObserver<"u"}class Sr{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const Tr=h=>(h.badInput=!1,h.customError=!1,h.patternMismatch=!1,h.rangeOverflow=!1,h.rangeUnderflow=!1,h.stepMismatch=!1,h.tooLong=!1,h.tooShort=!1,h.typeMismatch=!1,h.valid=!0,h.valueMissing=!1,h),Ar=(h,d,p)=>(h.valid=Er(d),Object.keys(d).forEach(m=>h[m]=d[m]),p&&Je(p),h),Er=h=>{let d=!0;for(let p in h)p!=="valid"&&h[p]!==!1&&(d=!1);return d},Nt=new WeakMap;function Ms(h,d){h.toggleAttribute(d,!0),h.part&&h.part.add(d)}class qt extends Set{static get isPolyfilled(){return!0}constructor(d){if(super(),!d||!d.tagName||d.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Nt.set(this,d)}add(d){if(!/^--/.test(d)||typeof d!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${d} must start with '--'.`);const p=super.add(d),m=Nt.get(this),_=`state${d}`;return m.isConnected?Ms(m,_):setTimeout(()=>{Ms(m,_)}),p}clear(){for(let[d]of this.entries())this.delete(d);super.clear()}delete(d){const p=super.delete(d),m=Nt.get(this);return m.isConnected?(m.toggleAttribute(`state${d}`,!1),m.part&&m.part.remove(`state${d}`)):setTimeout(()=>{m.toggleAttribute(`state${d}`,!1),m.part&&m.part.remove(`state${d}`)}),p}}function js(h,d,p,m){if(typeof d=="function"?h!==d||!0:!d.has(h))throw new TypeError("Cannot read private member from an object whose class did not declare it");return p==="m"?m:p==="a"?m.call(h):m?m.value:d.get(h)}function Or(h,d,p,m,_){if(typeof d=="function"?h!==d||!0:!d.has(h))throw new TypeError("Cannot write private member to an object whose class did not declare it");return d.set(h,p),p}var Ie;class Cr{constructor(d){Ie.set(this,void 0),Or(this,Ie,d);for(let p=0;pG.compareDocumentPosition?G.compareDocumentPosition(F)&2?1:-1:0);return new Cr(C)}})}class Ds{static get isPolyfilled(){return!0}constructor(d){if(!d||!d.tagName||d.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const p=d.getRootNode(),m=new Sr;this.states=new qt(d),e.set(this,d),t.set(this,m),s.set(d,this),M(d,this),wr(d,this),Object.seal(this),p instanceof DocumentFragment&&le(p)}checkValidity(){const d=e.get(this);if(H(d,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const p=t.get(this);if(!p.valid){const m=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});d.dispatchEvent(m)}return p.valid}get form(){const d=e.get(this);H(d,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let p;return d.constructor.formAssociated===!0&&(p=Qe(d)),p}get labels(){const d=e.get(this);H(d,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const p=d.getAttribute("id"),m=d.getRootNode();return m&&p?m.querySelectorAll(`[for="${p}"]`):[]}reportValidity(){const d=e.get(this);if(H(d,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const p=this.checkValidity(),m=v.get(this);if(m&&!d.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!p&&m&&(d.focus(),m.focus()),p}setFormValue(d){const p=e.get(this);if(H(p,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),Es(this),d!=null&&!(d instanceof FormData)){if(p.getAttribute("name")){const m=Os(p,this);m.value=d}}else d!=null&&d instanceof FormData&&Array.from(d).reverse().forEach(([m,_])=>{if(typeof _=="string"){const k=Os(p,this);k.name=m,k.value=_}});c.set(p,d)}setValidity(d,p,m){const _=e.get(this);if(H(_,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!d)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");v.set(this,m);const k=t.get(this),S={};for(const G in d)S[G]=d[G];Object.keys(S).length===0&&Tr(k);const j=Object.assign(Object.assign({},k),S);delete j.valid;const{valid:C}=Ar(k,j,this.form);if(!C&&!p)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,C?"":p),_.isConnected?(_.toggleAttribute("internals-invalid",!C),_.toggleAttribute("internals-valid",C),P(_,"aria-invalid",`${!C}`)):L.set(_,this)}get shadowRoot(){const d=e.get(this),p=g.get(d);return p||null}get validationMessage(){const d=e.get(this);return H(d,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const d=e.get(this);return H(d,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const d=e.get(this);return H(d,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(d.disabled||d.hasAttribute("disabled")||d.hasAttribute("readonly"))}}function Ir(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class h extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const d=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(d,h);const p=new h;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(m=>m in p.internals)}let zs=!1,Rs=!1;function Ft(h){Rs||(Rs=!0,window.CustomStateSet=qt,h&&(HTMLElement.prototype.attachInternals=function(...d){const p=h.call(this,d);return p.states=new qt(this),p}))}function Ns(h=!0){if(!zs){if(zs=!0,typeof window<"u"&&(window.ElementInternals=Ds),typeof CustomElementRegistry<"u"){const d=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(p,m,_){if(m.formAssociated){const k=m.prototype.connectedCallback;m.prototype.connectedCallback=function(){w.has(this)||(w.set(this,!0),this.hasAttribute("disabled")&&Rt(this,!0)),k!=null&&k.apply(this),Ps(this)}}d.call(this,p,m,_)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(s.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Ds(this)}),typeof Element<"u"){let d=function(...m){const _=p.apply(this,m);if(g.set(this,_),Ye()){const k=new MutationObserver(T);window.ShadyDOM?k.observe(this,ee):k.observe(_,ee),r.set(this,k)}return _};const p=Element.prototype.attachShadow;Element.prototype.attachShadow=d}Ye()&&typeof document<"u"&&new MutationObserver(T).observe(document.documentElement,ee),typeof HTMLFormElement<"u"&&Lr(),(h||typeof window<"u"&&!window.CustomStateSet)&&Ft()}}return!!customElements.polyfillWrapFlushCallback||(Ir()?typeof window<"u"&&!window.CustomStateSet&&Ft(HTMLElement.prototype.attachInternals):Ns(!1)),o.forceCustomStateSetPolyfill=Ft,o.forceElementInternalsPolyfill=Ns,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})();class R extends oe{static get properties(){return{RTL:{type:Boolean},locale:{type:String},apiRoot:{type:String,reflect:!1},postType:{type:String,reflect:!1},postID:{type:String,reflect:!1}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}constructor(){super(),wo(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}connectedCallback(){super.connectedCallback(),this.apiRoot=this.apiRoot?`${this.apiRoot}/`.replace("//","/"):"/",this.api=new mt(this.nonce,this.apiRoot)}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=i)}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=i.locale)}}if(e&&e.has("locale")&&this.locale)try{Mo(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class yi extends R{static get formAssociated(){return!0}static get styles(){return x`
+ */function ft(s){window.dispatchEvent(new CustomEvent(pt,{detail:s}))}let De="",bt,mi,Re,mt,gi,ae=new pi;ae.resolve();let Ne=0;const Os=s=>(vs((e,t)=>Es(gi,e,t)),De=mi=s.sourceLocale,Re=new Set(s.targetLocales),Re.add(s.sourceLocale),mt=s.loadLocale,{getLocale:Ts,setLocale:Cs}),Ts=()=>De,Cs=s=>{if(s===(bt??De))return ae.promise;if(!Re||!mt)throw new Error("Internal error");if(!Re.has(s))throw new Error("Invalid locale code");Ne++;const e=Ne;return bt=s,ae.settled&&(ae=new pi),ft({status:"loading",loadingLocale:s}),(s===mi?Promise.resolve({templates:void 0}):mt(s)).then(i=>{Ne===e&&(De=s,bt=void 0,gi=i.templates,ft({status:"ready",readyLocale:s}),ae.resolve())},i=>{Ne===e&&(ft({status:"error",errorLocale:s,errorMessage:i.toString()}),ae.reject(i))}),ae.promise},Ls=(s,e,t)=>{const i=s[e];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==t?". Note that variables only represent file names one level deep.":""))))})},Is="en",Ps=["am_ET","ar","ar_MA","bg_BG","bn_BD","bs_BA","cs","de_DE","el","en_US","es_419","es_ES","fa_IR","fr_FR","hi_IN","hr","hu_HU","id_ID","it_IT","ja","ko_KR","mk_MK","mr","my_MM","ne_NP","nl_NL","pa_IN","pl","pt_BR","ro_RO","ru_RU","sl_SI","sr_BA","sw","th","tl","tr_TR","uk","vi","zh_CN","zh_TW"],{setLocale:Ms}=Os({sourceLocale:Is,targetLocales:Ps,loadLocale:s=>Ls(Object.assign({"./generated/am_ET.js":()=>Promise.resolve().then(()=>Ba),"./generated/ar.js":()=>Promise.resolve().then(()=>Ka),"./generated/ar_MA.js":()=>Promise.resolve().then(()=>Ga),"./generated/bg_BG.js":()=>Promise.resolve().then(()=>Ja),"./generated/bn_BD.js":()=>Promise.resolve().then(()=>Xa),"./generated/bs_BA.js":()=>Promise.resolve().then(()=>er),"./generated/cs.js":()=>Promise.resolve().then(()=>ir),"./generated/de_DE.js":()=>Promise.resolve().then(()=>sr),"./generated/el.js":()=>Promise.resolve().then(()=>rr),"./generated/en_US.js":()=>Promise.resolve().then(()=>lr),"./generated/es-419.js":()=>Promise.resolve().then(()=>cr),"./generated/es_419.js":()=>Promise.resolve().then(()=>hr),"./generated/es_ES.js":()=>Promise.resolve().then(()=>fr),"./generated/fa_IR.js":()=>Promise.resolve().then(()=>mr),"./generated/fr_FR.js":()=>Promise.resolve().then(()=>vr),"./generated/hi_IN.js":()=>Promise.resolve().then(()=>_r),"./generated/hr.js":()=>Promise.resolve().then(()=>$r),"./generated/hu_HU.js":()=>Promise.resolve().then(()=>kr),"./generated/id_ID.js":()=>Promise.resolve().then(()=>Er),"./generated/it_IT.js":()=>Promise.resolve().then(()=>Or),"./generated/ja.js":()=>Promise.resolve().then(()=>Cr),"./generated/ko_KR.js":()=>Promise.resolve().then(()=>Ir),"./generated/mk_MK.js":()=>Promise.resolve().then(()=>Mr),"./generated/mr.js":()=>Promise.resolve().then(()=>zr),"./generated/my_MM.js":()=>Promise.resolve().then(()=>Dr),"./generated/ne_NP.js":()=>Promise.resolve().then(()=>Nr),"./generated/nl_NL.js":()=>Promise.resolve().then(()=>Ur),"./generated/pa_IN.js":()=>Promise.resolve().then(()=>Br),"./generated/pl.js":()=>Promise.resolve().then(()=>Kr),"./generated/pt_BR.js":()=>Promise.resolve().then(()=>Gr),"./generated/ro_RO.js":()=>Promise.resolve().then(()=>Jr),"./generated/ru_RU.js":()=>Promise.resolve().then(()=>Xr),"./generated/sl_SI.js":()=>Promise.resolve().then(()=>en),"./generated/sr_BA.js":()=>Promise.resolve().then(()=>on),"./generated/sw.js":()=>Promise.resolve().then(()=>an),"./generated/th.js":()=>Promise.resolve().then(()=>nn),"./generated/tl.js":()=>Promise.resolve().then(()=>dn),"./generated/tr_TR.js":()=>Promise.resolve().then(()=>un),"./generated/uk.js":()=>Promise.resolve().then(()=>pn),"./generated/vi.js":()=>Promise.resolve().then(()=>bn),"./generated/zh_CN.js":()=>Promise.resolve().then(()=>gn),"./generated/zh_TW.js":()=>Promise.resolve().then(()=>yn)}),`./generated/${s}.js`,3)});class vi{constructor(e,t="/wp-json"){this.nonce=e;let i=t;i.match("^http")&&(i=i.replace(/^http[s]?:\/\/.*?\//,"")),i=`/${i}/`.replace(/\/\//g,"/"),this.apiRoot=i}async makeRequest(e,t,i,o="dt/v1/"){let a=o;!a.endsWith("/")&&!t.startsWith("/")&&(a+="/");const r=t.startsWith("http")?t:`${this.apiRoot}${a}${t}`,n={method:e,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce}};e!=="GET"&&(n.body=JSON.stringify(i));const l=await fetch(r,n),d=await l.json();if(!l.ok){const u=new Error((d==null?void 0:d.message)||d.toString());throw u.args={status:l.status,statusText:l.statusText,body:d},u}return d}async makeRequestOnPosts(e,t,i={}){return this.makeRequest(e,t,i,"dt-posts/v2/")}async getPost(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}`)}async createPost(e,t){return this.makeRequestOnPosts("POST",e,t)}async fetchPostsList(e,t){return this.makeRequestOnPosts("POST",`${e}/list`,t)}async updatePost(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}`,i)}async deletePost(e,t){return this.makeRequestOnPosts("DELETE",`${e}/${t}`)}async listPostsCompact(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequestOnPosts("GET",`${e}/compact?${i}`)}async getPostDuplicates(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/all_duplicates`,i)}async checkFieldValueExists(e,t){return this.makeRequestOnPosts("POST",`${e}/check_field_value_exists`,t)}async getMultiSelectValues(e,t,i=""){const o=new URLSearchParams({s:i,field:t});return this.makeRequestOnPosts("GET",`${e}/multi-select-values?${o}`)}async getLocations(e,t,i,o=""){const a=new URLSearchParams({s:o,field:t,filter:i});return this.makeRequest("GET",`mapping_module/search_location_grid_by_name?${a}`)}async transferContact(e,t){return this.makeRequestOnPosts("POST","contacts/transfer",{contact_id:e,site_post_id:t})}async transferContactSummaryUpdate(e,t){return this.makeRequestOnPosts("POST","contacts/transfer/summary/send-update",{contact_id:e,update:t})}async requestRecordAccess(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/request_record_access`,{user_id:i})}async createComment(e,t,i,o="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments`,{comment:i,comment_type:o})}async updateComment(e,t,i,o,a="comment"){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}`,{comment:o,comment_type:a})}async deleteComment(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/comments/${i}`)}async getComments(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/comments`)}async toggle_comment_reaction(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/comments/${i}/react`,{user_id:o,reaction:a})}async getPostActivity(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/activity`)}async getSingleActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/activity/${i}`)}async revertActivity(e,t,i){return this.makeRequestOnPosts("GET",`${e}/${t}/revert/${i}`)}async getPostShares(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/shares`)}async addPostShare(e,t,i){return this.makeRequestOnPosts("POST",`${e}/${t}/shares`,{user_id:i})}async removePostShare(e,t,i){return this.makeRequestOnPosts("DELETE",`${e}/${t}/shares`,{user_id:i})}async getFilters(){return this.makeRequest("GET","users/get_filters")}async saveFilters(e,t){return this.makeRequest("POST","users/save_filters",{filter:t,postType:e})}async deleteFilter(e,t){return this.makeRequest("DELETE","users/save_filters",{id:t,postType:e})}async searchUsers(e,t=""){const i=new URLSearchParams({s:t});return this.makeRequest("GET",`users/get_users?${i}&post_type=${e}`)}async checkDuplicateUsers(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/duplicates`)}async getContactInfo(e,t){return this.makeRequestOnPosts("GET",`${e}/${t}/`)}async createUser(e){return this.makeRequest("POST","users/create",e)}async advanced_search(e,t,i,o){return this.makeRequest("GET","advanced_search",{query:e,postType:t,offset:i,post:o.post,comment:o.comment,meta:o.meta,status:o.status},"dt-posts/v2/posts/search/")}async uploadFiles(e,t,i,o,a=""){const r=new FormData;i.forEach(l=>r.append("storage_upload_files[]",l)),r.append("meta_key",o),r.append("key_prefix",a),r.append("upload_type","post"),r.append("is_multi_file","true"),r.append("storage_s3_url_duration","+7 days");const n=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_upload`;return await new Promise((l,d)=>{const u=new XMLHttpRequest;u.open("POST",n,!0),u.withCredentials=!0,u.setRequestHeader("X-WP-Nonce",this.nonce),u.onload=()=>{let h={};try{h=JSON.parse(u.responseText||"{}")}catch{h={message:u.responseText||"Upload failed"}}if(u.status>=200&&u.status<300)l(h);else{const g=new Error((h==null?void 0:h.uploaded_msg)||(h==null?void 0:h.message)||"Upload failed");g.args={status:u.status,statusText:u.statusText,body:h},d(g)}},u.onerror=()=>d(new Error("Upload failed")),u.send(r)})}async deleteFile(e,t,i,o){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_delete_single`,{meta_key:i,file_key:o})}async renameFile(e,t,i,o,a){return this.makeRequestOnPosts("POST",`${e}/${t}/storage_rename_single`,{meta_key:i,file_key:o,new_name:a})}async downloadFile(e,t,i,o){const a=`${this.apiRoot}dt-posts/v2/${e}/${t}/storage_download`,r=await fetch(a,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":this.nonce},body:JSON.stringify({meta_key:i,file_key:o})});if(!r.ok){const n=await r.json().catch(()=>({message:"Download failed"}));throw new Error(n.message||"Download failed")}return await r.blob()}}(function(){(function(s){const e=new WeakMap,t=new WeakMap,i=new WeakMap,o=new WeakMap,a=new WeakMap,r=new WeakMap,n=new WeakMap,l=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,g=new WeakMap,y=new WeakMap,_=new WeakMap,C=new WeakMap,F={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"},M=(f,c)=>{for(let b in F){c[b]=null;let v=null;const w=F[b];Object.defineProperty(c,b,{get(){return v},set(k){v=k,f.isConnected?I(f,w,k):u.set(f,c)}})}};function L(f){const c=o.get(f),{form:b}=c;Io(f,b,c),Lo(f,c.labels)}const Ie=(f,c=!1)=>{const b=document.createTreeWalker(f,NodeFilter.SHOW_ELEMENT,{acceptNode(k){return o.has(k)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let v=b.nextNode();const w=!c||f.disabled;for(;v;)v.formDisabledCallback&&w&&Ft(v,f.disabled),v=b.nextNode()},Je={attributes:!0,attributeFilter:["disabled","name"]},Y=Ye()?new MutationObserver(f=>{for(const c of f){const b=c.target;if(c.attributeName==="disabled"&&(b.constructor.formAssociated?Ft(b,b.hasAttribute("disabled")):b.localName==="fieldset"&&Ie(b)),c.attributeName==="name"&&b.constructor.formAssociated){const v=o.get(b),w=d.get(b);v.setFormValue(w)}}}):{};function E(f){f.forEach(c=>{const{addedNodes:b,removedNodes:v}=c,w=Array.from(b),k=Array.from(v);w.forEach(S=>{var j;if(o.has(S)&&S.constructor.formAssociated&&L(S),u.has(S)){const T=u.get(S);Object.keys(F).filter(q=>T[q]!==null).forEach(q=>{I(S,F[q],T[q])}),u.delete(S)}if(C.has(S)){const T=C.get(S);I(S,"internals-valid",T.validity.valid.toString()),I(S,"internals-invalid",(!T.validity.valid).toString()),I(S,"aria-invalid",(!T.validity.valid).toString()),C.delete(S)}if(S.localName==="form"){const T=l.get(S),K=document.createTreeWalker(S,NodeFilter.SHOW_ELEMENT,{acceptNode(qt){return o.has(qt)&&qt.constructor.formAssociated&&!(T&&T.has(qt))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let q=K.nextNode();for(;q;)L(q),q=K.nextNode()}S.localName==="fieldset"&&((j=Y.observe)===null||j===void 0||j.call(Y,S,Je),Ie(S,!0))}),k.forEach(S=>{const j=o.get(S);j&&i.get(j)&&To(j),n.has(S)&&n.get(S).disconnect()})})}function z(f){f.forEach(c=>{const{removedNodes:b}=c;b.forEach(v=>{const w=y.get(c.target);o.has(v)&&Mo(v),w.disconnect()})})}const de=f=>{var c,b;const v=new MutationObserver(z);!((c=window==null?void 0:window.ShadyDOM)===null||c===void 0)&&c.inUse&&f.mode&&f.host&&(f=f.host),(b=v.observe)===null||b===void 0||b.call(v,f,{childList:!0}),y.set(f,v)};Ye()&&new MutationObserver(E);const ee={childList:!0,subtree:!0},I=(f,c,b)=>{f.getAttribute(c)!==b&&f.setAttribute(c,b)},Ft=(f,c)=>{f.toggleAttribute("internals-disabled",c),c?I(f,"aria-disabled","true"):f.removeAttribute("aria-disabled"),f.formDisabledCallback&&f.formDisabledCallback.apply(f,[c])},To=f=>{i.get(f).forEach(b=>{b.remove()}),i.set(f,[])},Co=(f,c)=>{const b=document.createElement("input");return b.type="hidden",b.name=f.getAttribute("name"),f.after(b),i.get(c).push(b),b},_n=(f,c)=>{var b;i.set(c,[]),(b=Y.observe)===null||b===void 0||b.call(Y,f,Je)},Lo=(f,c)=>{if(c.length){Array.from(c).forEach(v=>v.addEventListener("click",f.click.bind(f)));let b=c[0].id;c[0].id||(b=`${c[0].htmlFor}_Label`,c[0].id=b),I(f,"aria-labelledby",b)}},Qe=f=>{const c=Array.from(f.elements).filter(k=>!k.tagName.includes("-")&&k.validity).map(k=>k.validity.valid),b=l.get(f)||[],v=Array.from(b).filter(k=>k.isConnected).map(k=>o.get(k).validity.valid),w=[...c,...v].includes(!1);f.toggleAttribute("internals-invalid",w),f.toggleAttribute("internals-valid",!w)},wn=f=>{Qe(Xe(f.target))},$n=f=>{Qe(Xe(f.target))},xn=f=>{const c=["button[type=submit]","input[type=submit]","button:not([type])"].map(b=>`${b}:not([disabled])`).map(b=>`${b}:not([form])${f.id?`,${b}[form='${f.id}']`:""}`).join(",");f.addEventListener("click",b=>{if(b.target.closest(c)){const w=l.get(f);if(f.noValidate)return;w.size&&Array.from(w).reverse().map(j=>o.get(j).reportValidity()).includes(!1)&&b.preventDefault()}})},kn=f=>{const c=l.get(f.target);c&&c.size&&c.forEach(b=>{b.constructor.formAssociated&&b.formResetCallback&&b.formResetCallback.apply(b)})},Io=(f,c,b)=>{if(c){const v=l.get(c);if(v)v.add(f);else{const w=new Set;w.add(f),l.set(c,w),xn(c),c.addEventListener("reset",kn),c.addEventListener("input",wn),c.addEventListener("change",$n)}r.set(c,{ref:f,internals:b}),f.constructor.formAssociated&&f.formAssociatedCallback&&setTimeout(()=>{f.formAssociatedCallback.apply(f,[c])},0),Qe(c)}},Xe=f=>{let c=f.parentNode;return c&&c.tagName!=="FORM"&&(c=Xe(c)),c},H=(f,c,b=DOMException)=>{if(!f.constructor.formAssociated)throw new b(c)},Po=(f,c,b)=>{const v=l.get(f);return v&&v.size&&v.forEach(w=>{o.get(w)[b]()||(c=!1)}),c},Mo=f=>{if(f.constructor.formAssociated){const c=o.get(f),{labels:b,form:v}=c;Lo(f,b),Io(f,v,c)}};function Ye(){return typeof MutationObserver<"u"}class Sn{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const En=f=>(f.badInput=!1,f.customError=!1,f.patternMismatch=!1,f.rangeOverflow=!1,f.rangeUnderflow=!1,f.stepMismatch=!1,f.tooLong=!1,f.tooShort=!1,f.typeMismatch=!1,f.valid=!0,f.valueMissing=!1,f),An=(f,c,b)=>(f.valid=On(c),Object.keys(c).forEach(v=>f[v]=c[v]),b&&Qe(b),f),On=f=>{let c=!0;for(let b in f)b!=="valid"&&f[b]!==!1&&(c=!1);return c},Dt=new WeakMap;function jo(f,c){f.toggleAttribute(c,!0),f.part&&f.part.add(c)}class Rt extends Set{static get isPolyfilled(){return!0}constructor(c){if(super(),!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");Dt.set(this,c)}add(c){if(!/^--/.test(c)||typeof c!="string")throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);const b=super.add(c),v=Dt.get(this),w=`state${c}`;return v.isConnected?jo(v,w):setTimeout(()=>{jo(v,w)}),b}clear(){for(let[c]of this.entries())this.delete(c);super.clear()}delete(c){const b=super.delete(c),v=Dt.get(this);return v.isConnected?(v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)):setTimeout(()=>{v.toggleAttribute(`state${c}`,!1),v.part&&v.part.remove(`state${c}`)}),b}}function zo(f,c,b,v){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?v:b==="a"?v.call(f):v?v.value:c.get(f)}function Tn(f,c,b,v,w){if(typeof c=="function"?f!==c||!0:!c.has(f))throw new TypeError("Cannot write private member to an object whose class did not declare it");return c.set(f,b),b}var Pe;class Cn{constructor(c){Pe.set(this,void 0),Tn(this,Pe,c);for(let b=0;bK.compareDocumentPosition?K.compareDocumentPosition(q)&2?1:-1:0);return new Cn(T)}})}class Fo{static get isPolyfilled(){return!0}constructor(c){if(!c||!c.tagName||c.tagName.indexOf("-")===-1)throw new TypeError("Illegal constructor");const b=c.getRootNode(),v=new Sn;this.states=new Rt(c),e.set(this,c),t.set(this,v),o.set(c,this),M(c,this),_n(c,this),Object.seal(this),b instanceof DocumentFragment&&de(b)}checkValidity(){const c=e.get(this);if(H(c,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=t.get(this);if(!b.valid){const v=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});c.dispatchEvent(v)}return b.valid}get form(){const c=e.get(this);H(c,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element.");let b;return c.constructor.formAssociated===!0&&(b=Xe(c)),b}get labels(){const c=e.get(this);H(c,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const b=c.getAttribute("id"),v=c.getRootNode();return v&&b?v.querySelectorAll(`[for="${b}"]`):[]}reportValidity(){const c=e.get(this);if(H(c,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const b=this.checkValidity(),v=g.get(this);if(v&&!c.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!b&&v&&(c.focus(),v.focus()),b}setFormValue(c){const b=e.get(this);if(H(b,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),To(this),c!=null&&!(c instanceof FormData)){if(b.getAttribute("name")){const v=Co(b,this);v.value=c}}else c!=null&&c instanceof FormData&&Array.from(c).reverse().forEach(([v,w])=>{if(typeof w=="string"){const k=Co(b,this);k.name=v,k.value=w}});d.set(b,c)}setValidity(c,b,v){const w=e.get(this);if(H(w,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!c)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");g.set(this,v);const k=t.get(this),S={};for(const K in c)S[K]=c[K];Object.keys(S).length===0&&En(k);const j=Object.assign(Object.assign({},k),S);delete j.valid;const{valid:T}=An(k,j,this.form);if(!T&&!b)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");a.set(this,T?"":b),w.isConnected?(w.toggleAttribute("internals-invalid",!T),w.toggleAttribute("internals-valid",T),I(w,"aria-invalid",`${!T}`)):C.set(w,this)}get shadowRoot(){const c=e.get(this),b=h.get(c);return b||null}get validationMessage(){const c=e.get(this);return H(c,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),a.get(this)}get validity(){const c=e.get(this);return H(c,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),t.get(this)}get willValidate(){const c=e.get(this);return H(c,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(c.disabled||c.hasAttribute("disabled")||c.hasAttribute("readonly"))}}function In(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class f extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const c=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(c,f);const b=new f;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(v=>v in b.internals)}let Do=!1,Ro=!1;function Nt(f){Ro||(Ro=!0,window.CustomStateSet=Rt,f&&(HTMLElement.prototype.attachInternals=function(...c){const b=f.call(this,c);return b.states=new Rt(this),b}))}function No(f=!0){if(!Do){if(Do=!0,typeof window<"u"&&(window.ElementInternals=Fo),typeof CustomElementRegistry<"u"){const c=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(b,v,w){if(v.formAssociated){const k=v.prototype.connectedCallback;v.prototype.connectedCallback=function(){_.has(this)||(_.set(this,!0),this.hasAttribute("disabled")&&Ft(this,!0)),k!=null&&k.apply(this),Mo(this)}}c.call(this,b,v,w)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(this.tagName){if(this.tagName.indexOf("-")===-1)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.")}else return{};if(o.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new Fo(this)}),typeof Element<"u"){let c=function(...v){const w=b.apply(this,v);if(h.set(this,w),Ye()){const k=new MutationObserver(E);window.ShadyDOM?k.observe(this,ee):k.observe(w,ee),n.set(this,k)}return w};const b=Element.prototype.attachShadow;Element.prototype.attachShadow=c}Ye()&&typeof document<"u"&&new MutationObserver(E).observe(document.documentElement,ee),typeof HTMLFormElement<"u"&&Ln(),(f||typeof window<"u"&&!window.CustomStateSet)&&Nt()}}return!!customElements.polyfillWrapFlushCallback||(In()?typeof window<"u"&&!window.CustomStateSet&&Nt(HTMLElement.prototype.attachInternals):No(!1)),s.forceCustomStateSetPolyfill=Nt,s.forceElementInternalsPolyfill=No,Object.defineProperty(s,"__esModule",{value:!0}),s})({})})();class N extends se{static get styles(){return[$`
+ :host {
+ }
+ `]}static get properties(){return{RTL:{type:Boolean},locale:{type:String}}}get _focusTarget(){return this.shadowRoot.children[0]instanceof Element?this.shadowRoot.children[0]:null}constructor(){super(),_s(this),this.addEventListener("click",this._proxyClick.bind(this)),this.addEventListener("focus",this._proxyFocus.bind(this))}willUpdate(e){if(this.RTL===void 0){const t=this.closest("[dir]");if(t){const i=t.getAttribute("dir");i&&(this.RTL=i.toLowerCase()==="rtl")}}if(!this.locale){const t=this.closest("[lang]");if(t){const i=t.getAttribute("lang");i&&(this.locale=i)}}if(!this.locale){const t=this.getRootNode();if(t instanceof ShadowRoot&&t.host){const i=t.host;i.locale&&(this.locale=i.locale)}}if(e&&e.has("locale")&&this.locale)try{Ms(this.locale)}catch(t){console.error(t)}}_proxyClick(){this.clicked=!0}_proxyFocus(){if(this._focusTarget){if(this.clicked){this.clicked=!1;return}this._focusTarget.focus()}}focus(){this._proxyFocus()}}class yi extends N{static get formAssociated(){return!0}static get styles(){return $`
:host {
display: inline-flex;
width: fit-content;
@@ -205,7 +208,7 @@ var DtWebComponents=function($){"use strict";var Pr=Object.defineProperty;var Mr
cursor: not-allowed;
}
}
- `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return f`
+ `}static get properties(){return{label:{type:String},context:{type:String},type:{type:String},title:{type:String},outline:{type:Boolean},round:{type:Boolean},disabled:{type:Boolean}}}get classes(){const e={"dt-button":!0,"dt-button--outline":this.outline,"dt-button--round":this.round},t=`dt-button--${this.context}`;return e[t]=!0,e}get _field(){return this.shadowRoot.querySelector("button")}get _focusTarget(){return this._field}constructor(){super(),this.context="default",this.internals=this.attachInternals()}handleClick(e){e.preventDefault(),this.type==="submit"&&this.internals.form&&this.internals.form.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}render(){const e={...this.classes};return p`
/g,"%3E").replace(/\s+/g," ")}function Ta(o){return'url("data:image/svg+xml,'+Sa(o)+'")'}const Pt={"background-color":"currentColor"},Xi={"background-color":"transparent"},es={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ts={"-webkit-mask":Pt,mask:Pt,background:Xi};for(const o in ts){const e=ts[o];for(const t in es)e[o+"-"+t]=es[t]}function is(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}function Aa(o,e,t){const i=document.createElement("span");let s=o.body;s.indexOf("");const a=o.attributes,n=Yi(s,{...a,width:e.width+"",height:e.height+""}),r=Ta(n),l=i.style,c={"--svg":r,width:is(a.width),height:is(a.height),...t?Pt:Xi};for(const b in c)l.setProperty(b,c[b]);return i}function Ea(o){const e=document.createElement("span");return e.innerHTML=Yi(o.body,o.attributes),e.firstChild}function ss(o,e){const t=e.icon.data,i=e.customisations,s=Zi(t,i);i.preserveAspectRatio&&(s.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let n;switch(a){case"svg":n=Ea(s);break;default:n=Aa(s,{...we,...t},a==="mask")}const r=Array.from(o.childNodes).find(l=>{const c=l.tagName&&l.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});r?n.tagName==="SPAN"&&r.tagName===n.tagName?r.setAttribute("style",n.getAttribute("style")):o.replaceChild(n,r):o.appendChild(n)}const Mt="data-style";function os(o,e){let t=Array.from(o.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Mt));t||(t=document.createElement("style"),t.setAttribute(Mt,Mt),o.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function as(o,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:o,lastRender:i}}function Oa(o="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(o);if(i)return i;const s=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Xe(this,"_shadowRoot");Xe(this,"_state");Xe(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),c=Lt(this);os(l,c),this._state=as({value:""},c),this._queueCheck()}static get observedAttributes(){return s.slice(0)}attributeChangedCallback(l){if(l==="inline"){const c=Lt(this),b=this._state;c!==b.inline&&(b.inline=c,os(this._shadowRoot,c))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Lt(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const c=this._shadowRoot;if(l.renderedMode==="svg")try{c.lastChild.setCurrentTime(0);return}catch{}ss(c,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,c=this.getAttribute("icon");if(c!==l.icon.value){this._iconChanged(c);return}if(!l.rendered)return;const b=this.getAttribute("mode"),g=Si(this);(l.attrMode!==b||Fo(l.customisations,g))&&this._renderIcon(l.icon,g,b)}_iconChanged(l){const c=fa(l,(b,g,v)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==b)return;const w={value:b,name:g,data:v};w.data?this._gotIconData(w):y.icon=w});c.data?this._gotIconData(c):this._state=as(c,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Si(this),this.getAttribute("mode"))}_renderIcon(l,c,b){const g=ba(l.data.body,b),v=this._state.inline;ss(this._shadowRoot,this._state={rendered:!0,icon:l,inline:v,customisations:c,attrMode:b,renderedMode:g})}};s.forEach(r=>{r in a.prototype||Object.defineProperty(a.prototype,r,{get:function(){return this.getAttribute(r)},set:function(l){this.setAttribute(r,l)}})});const n=Qi();for(const r in n)a[r]=a.prototype[r]=n[r];return e.define(o,a),a}const Ca=Oa()||Qi(),{enableCache:Nr,disableCache:qr,iconExists:Fr,getIcon:Ur,listIcons:Vr,addIcon:Br,addCollection:Hr,calculateSize:Gr,buildIcon:Wr,loadIcons:Kr,loadIcon:Zr,addAPIProvider:Jr,_api:Qr}=Ca;class ns extends R{static get styles(){return x`
+*/const $i=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$e=Object.freeze({...$i,...qe}),gt=Object.freeze({...$e,body:"",hidden:!1}),Fs=Object.freeze({width:null,height:null}),xi=Object.freeze({...Fs,...qe});function Ds(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(s);return isNaN(o)?0:i(o)}else if(t!==s){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(s.slice(0,s.length-t.length));return isNaN(a)?0:(a=a/o,a%1===0?i(a):0)}}return e}const Rs=/[\s,]+/;function Ns(s,e){e.split(Rs).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}const ki={...xi,preserveAspectRatio:""};function Si(s){const e={...ki},t=(i,o)=>s.getAttribute(i)||o;return e.width=t("width",null),e.height=t("height",null),e.rotate=Ds(t("rotate","")),Ns(e,t("flip","")),e.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),e}function qs(s,e){for(const t in ki)if(s[t]!==e[t])return!0;return!1}const xe=/^[a-z0-9]+(-[a-z0-9]+)*$/,ke=(s,e,t,i="")=>{const o=s.split(":");if(s.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const n=o.pop(),l=o.pop(),d={provider:o.length>0?o[0]:i,prefix:l,name:n};return e&&!Ue(d)?null:d}const a=o[0],r=a.split("-");if(r.length>1){const n={provider:i,prefix:r.shift(),name:r.join("-")};return e&&!Ue(n)?null:n}if(t&&i===""){const n={provider:i,prefix:"",name:a};return e&&!Ue(n,t)?null:n}return null},Ue=(s,e)=>s?!!((s.provider===""||s.provider.match(xe))&&(e&&s.prefix===""||s.prefix.match(xe))&&s.name.match(xe)):!1;function Us(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const i=((s.rotate||0)+(e.rotate||0))%4;return i&&(t.rotate=i),t}function Ei(s,e){const t=Us(s,e);for(const i in gt)i in qe?i in s&&!(i in t)&&(t[i]=qe[i]):i in e?t[i]=e[i]:i in s&&(t[i]=s[i]);return t}function Vs(s,e){const t=s.icons,i=s.aliases||Object.create(null),o=Object.create(null);function a(r){if(t[r])return o[r]=[];if(!(r in o)){o[r]=null;const n=i[r]&&i[r].parent,l=n&&a(n);l&&(o[r]=[n].concat(l))}return o[r]}return Object.keys(t).concat(Object.keys(i)).forEach(a),o}function Bs(s,e,t){const i=s.icons,o=s.aliases||Object.create(null);let a={};function r(n){a=Ei(i[n]||o[n],a)}return r(e),t.forEach(r),Ei(s,a)}function Ai(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(o=>{e(o,null),t.push(o)});const i=Vs(s);for(const o in i){const a=i[o];a&&(e(o,Bs(s,o,a)),t.push(o))}return t}const Hs={provider:"",aliases:{},not_found:{},...$i};function vt(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function Oi(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!vt(s,Hs))return null;const t=e.icons;for(const o in t){const a=t[o];if(!o.match(xe)||typeof a.body!="string"||!vt(a,gt))return null}const i=e.aliases||Object.create(null);for(const o in i){const a=i[o],r=a.parent;if(!o.match(xe)||typeof r!="string"||!t[r]&&!i[r]||!vt(a,gt))return null}return e}const Ve=Object.create(null);function Ks(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function X(s,e){const t=Ve[s]||(Ve[s]=Object.create(null));return t[e]||(t[e]=Ks(s,e))}function yt(s,e){return Oi(e)?Ai(e,(t,i)=>{i?s.icons[t]=i:s.missing.add(t)}):[]}function Ws(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}function Gs(s,e){let t=[];return(typeof s=="string"?[s]:Object.keys(Ve)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys(Ve[o]||{})).forEach(r=>{const n=X(o,r);t=t.concat(Object.keys(n.icons).map(l=>(o!==""?"@"+o+":":"")+r+":"+l))})}),t}let Se=!1;function Ti(s){return typeof s=="boolean"&&(Se=s),Se}function Ee(s){const e=typeof s=="string"?ke(s,!0,Se):s;if(e){const t=X(e.provider,e.prefix),i=e.name;return t.icons[i]||(t.missing.has(i)?null:void 0)}}function Ci(s,e){const t=ke(s,!0,Se);if(!t)return!1;const i=X(t.provider,t.prefix);return Ws(i,t.name,e)}function Li(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),Se&&!e&&!s.prefix){let o=!1;return Oi(s)&&(s.prefix="",Ai(s,(a,r)=>{r&&Ci(a,r)&&(o=!0)})),o}const t=s.prefix;if(!Ue({provider:e,prefix:t,name:"a"}))return!1;const i=X(e,t);return!!yt(i,s)}function Zs(s){return!!Ee(s)}function Js(s){const e=Ee(s);return e?{...$e,...e}:null}function Qs(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let i={provider:"",prefix:"",name:""};return s.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const a=o.provider,r=o.prefix,n=o.name,l=t[a]||(t[a]=Object.create(null)),d=l[r]||(l[r]=X(a,r));let u;n in d.icons?u=e.loaded:r===""||d.missing.has(n)?u=e.missing:u=e.pending;const h={provider:a,prefix:r,name:n};u.push(h)}),e}function Ii(s,e){s.forEach(t=>{const i=t.loaderCallbacks;i&&(t.loaderCallbacks=i.filter(o=>o.id!==e))})}function Xs(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const i=s.provider,o=s.prefix;e.forEach(a=>{const r=a.icons,n=r.pending.length;r.pending=r.pending.filter(l=>{if(l.prefix!==o)return!0;const d=l.name;if(s.icons[d])r.loaded.push({provider:i,prefix:o,name:d});else if(s.missing.has(d))r.missing.push({provider:i,prefix:o,name:d});else return t=!0,!0;return!1}),r.pending.length!==n&&(t||Ii([s],a.id),a.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),a.abort))})}))}let Ys=0;function ea(s,e,t){const i=Ys++,o=Ii.bind(null,t,i);if(!e.pending.length)return o;const a={id:i,icons:e,callback:s,abort:o};return t.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(a)}),o}const _t=Object.create(null);function Pi(s,e){_t[s]=e}function wt(s){return _t[s]||_t[""]}function ta(s,e=!0,t=!1){const i=[];return s.forEach(o=>{const a=typeof o=="string"?ke(o,e,t):o;a&&i.push(a)}),i}var ia={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function oa(s,e,t,i){const o=s.resources.length,a=s.random?Math.floor(Math.random()*o):s.index;let r;if(s.random){let E=s.resources.slice(0);for(r=[];E.length>1;){const z=Math.floor(Math.random()*E.length);r.push(E[z]),E=E.slice(0,z).concat(E.slice(z+1))}r=r.concat(E)}else r=s.resources.slice(a).concat(s.resources.slice(0,a));const n=Date.now();let l="pending",d=0,u,h=null,g=[],y=[];typeof i=="function"&&y.push(i);function _(){h&&(clearTimeout(h),h=null)}function C(){l==="pending"&&(l="aborted"),_(),g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function F(E,z){z&&(y=[]),typeof E=="function"&&y.push(E)}function M(){return{startTime:n,payload:e,status:l,queriesSent:d,queriesPending:g.length,subscribe:F,abort:C}}function L(){l="failed",y.forEach(E=>{E(void 0,u)})}function Ie(){g.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),g=[]}function Je(E,z,de){const ee=z!=="success";switch(g=g.filter(I=>I!==E),l){case"pending":break;case"failed":if(ee||!s.dataAfterTimeout)return;break;default:return}if(z==="abort"){u=de,L();return}if(ee){u=de,g.length||(r.length?Y():L());return}if(_(),Ie(),!s.random){const I=s.resources.indexOf(E.resource);I!==-1&&I!==s.index&&(s.index=I)}l="completed",y.forEach(I=>{I(de)})}function Y(){if(l!=="pending")return;_();const E=r.shift();if(E===void 0){if(g.length){h=setTimeout(()=>{_(),l==="pending"&&(Ie(),L())},s.timeout);return}L();return}const z={status:"pending",resource:E,callback:(de,ee)=>{Je(z,de,ee)}};g.push(z),d++,h=setTimeout(Y,s.rotate),t(E,e,z.callback)}return setTimeout(Y),M}function Mi(s){const e={...ia,...s};let t=[];function i(){t=t.filter(n=>n().status==="pending")}function o(n,l,d){const u=oa(e,n,l,(h,g)=>{i(),d&&d(h,g)});return t.push(u),u}function a(n){return t.find(l=>n(l))||null}return{query:o,find:a,setIndex:n=>{e.index=n},getIndex:()=>e.index,cleanup:i}}function $t(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const Be=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],He=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?He.push(Ae.shift()):He.push(Ae.pop());Be[""]=$t({resources:["https://api.iconify.design"].concat(He)});function ji(s,e){const t=$t(e);return t===null?!1:(Be[s]=t,!0)}function Ke(s){return Be[s]}function sa(){return Object.keys(Be)}function zi(){}const xt=Object.create(null);function aa(s){if(!xt[s]){const e=Ke(s);if(!e)return;const t=Mi(e),i={config:e,redundancy:t};xt[s]=i}return xt[s]}function Fi(s,e,t){let i,o;if(typeof s=="string"){const a=wt(s);if(!a)return t(void 0,424),zi;o=a.send;const r=aa(s);r&&(i=r.redundancy)}else{const a=$t(s);if(a){i=Mi(a);const r=s.resources?s.resources[0]:"",n=wt(r);n&&(o=n.send)}}return!i||!o?(t(void 0,424),zi):i.query(e,o,t)().abort}const Di="iconify2",Oe="iconify",Ri=Oe+"-count",Ni=Oe+"-version",qi=36e5,ra=168;function kt(s,e){try{return s.getItem(e)}catch{}}function St(s,e,t){try{return s.setItem(e,t),!0}catch{}}function Ui(s,e){try{s.removeItem(e)}catch{}}function Et(s,e){return St(s,Ri,e.toString())}function At(s){return parseInt(kt(s,Ri))||0}const re={local:!0,session:!0},Vi={local:new Set,session:new Set};let Ot=!1;function na(s){Ot=s}let We=typeof window>"u"?{}:window;function Bi(s){const e=s+"Storage";try{if(We&&We[e]&&typeof We[e].length=="number")return We[e]}catch{}re[s]=!1}function Hi(s,e){const t=Bi(s);if(!t)return;const i=kt(t,Ni);if(i!==Di){if(i){const n=At(t);for(let l=0;l{const l=Oe+n.toString(),d=kt(t,l);if(typeof d=="string"){try{const u=JSON.parse(d);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,n))return!0}catch{}Ui(t,l)}};let r=At(t);for(let n=r-1;n>=0;n--)a(n)||(n===r-1?(r--,Et(t,r)):Vi[s].add(n))}function Ki(){if(!Ot){na(!0);for(const s in re)Hi(s,e=>{const t=e.data,i=e.provider,o=t.prefix,a=X(i,o);if(!yt(a,t).length)return!1;const r=t.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,r):r,!0})}}function la(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const i in re)Hi(i,o=>{const a=o.data;return o.provider!==s.provider||a.prefix!==s.prefix||a.lastModified===e});return!0}function da(s,e){Ot||Ki();function t(i){let o;if(!re[i]||!(o=Bi(i)))return;const a=Vi[i];let r;if(a.size)a.delete(r=Array.from(a).shift());else if(r=At(o),!Et(o,r+1))return;const n={cached:Math.floor(Date.now()/qi),provider:s.provider,data:e};return St(o,Oe+r.toString(),JSON.stringify(n))}e.lastModified&&!la(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Wi(){}function ca(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Xs(s)}))}function ua(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:i}=s,o=s.iconsToLoad;delete s.iconsToLoad;let a;if(!o||!(a=wt(t)))return;a.prepare(t,i,o).forEach(n=>{Fi(t,n,l=>{if(typeof l!="object")n.icons.forEach(d=>{s.missing.add(d)});else try{const d=yt(s,l);if(!d.length)return;const u=s.pendingIcons;u&&d.forEach(h=>{u.delete(h)}),da(s,l)}catch(d){console.error(d)}ca(s)})})}))}const Tt=(s,e)=>{const t=ta(s,!0,Ti()),i=Qs(t);if(!i.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(i.loaded,i.missing,i.pending,Wi)}),()=>{l=!1}}const o=Object.create(null),a=[];let r,n;return i.pending.forEach(l=>{const{provider:d,prefix:u}=l;if(u===n&&d===r)return;r=d,n=u,a.push(X(d,u));const h=o[d]||(o[d]=Object.create(null));h[u]||(h[u]=[])}),i.pending.forEach(l=>{const{provider:d,prefix:u,name:h}=l,g=X(d,u),y=g.pendingIcons||(g.pendingIcons=new Set);y.has(h)||(y.add(h),o[d][u].push(h))}),a.forEach(l=>{const{provider:d,prefix:u}=l;o[d][u].length&&ua(l,o[d][u])}),e?ea(e,i,a):Wi},ha=s=>new Promise((e,t)=>{const i=typeof s=="string"?ke(s,!0):s;if(!i){t(s);return}Tt([i||s],o=>{if(o.length&&i){const a=Ee(i);if(a){e({...$e,...a});return}}t(s)})});function pa(s){try{const e=typeof s=="string"?JSON.parse(s):s;if(typeof e.body=="string")return{...e}}catch{}}function fa(s,e){const t=typeof s=="string"?ke(s,!0,!0):null;if(!t){const a=pa(s);return{value:s,data:a}}const i=Ee(t);if(i!==void 0||!t.prefix)return{value:s,name:t,data:i};const o=Tt([t],()=>e(s,t,Ee(t)));return{value:s,name:t,loading:o}}function Ct(s){return s.hasAttribute("inline")}let Gi=!1;try{Gi=navigator.vendor.indexOf("Apple")===0}catch{}function ba(s,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gi||s.indexOf("{const _=[],C=y.hFlip,F=y.vFlip;let M=y.rotate;C?F?M+=2:(_.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),_.push("scale(-1 1)"),o.top=o.left=0):F&&(_.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),_.push("scale(1 -1)"),o.top=o.left=0);let L;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:L=o.height/2+o.top,_.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:_.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:L=o.width/2+o.left,_.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}M%2===1&&(o.left!==o.top&&(L=o.left,o.left=o.top,o.top=L),o.width!==o.height&&(L=o.width,o.width=o.height,o.height=L)),_.length&&(a=''+a+"")});const r=i.width,n=i.height,l=o.width,d=o.height;let u,h;return r===null?(h=n===null?"1em":n==="auto"?d:n,u=Lt(h,l/d)):(u=r==="auto"?l:r,h=n===null?Lt(u,d/l):n==="auto"?d:n),{attributes:{width:u.toString(),height:h.toString(),viewBox:o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+d.toString()},body:a}}let Ge=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function va(s){Ge=s}function ya(){return Ge}function _a(s,e){const t=Ke(s);if(!t)return 0;let i;if(!t.maxURL)i=0;else{let o=0;t.resources.forEach(r=>{o=Math.max(o,r.length)});const a=e+".json?icons=";i=t.maxURL-o-t.path.length-a.length}return i}function wa(s){return s===404}const $a=(s,e,t)=>{const i=[],o=_a(s,e),a="icons";let r={type:a,provider:s,prefix:e,icons:[]},n=0;return t.forEach((l,d)=>{n+=l.length+1,n>=o&&d>0&&(i.push(r),r={type:a,provider:s,prefix:e,icons:[]},n=l.length),r.icons.push(l)}),i.push(r),i};function xa(s){if(typeof s=="string"){const e=Ke(s);if(e)return e.path}return"/"}const ka={prepare:$a,send:(s,e,t)=>{if(!Ge){t("abort",424);return}let i=xa(e.provider);switch(e.type){case"icons":{const a=e.prefix,n=e.icons.join(","),l=new URLSearchParams({icons:n});i+=a+".json?"+l.toString();break}case"custom":{const a=e.uri;i+=a.slice(0,1)==="/"?a.slice(1):a;break}default:t("abort",400);return}let o=503;Ge(s+i).then(a=>{const r=a.status;if(r!==200){setTimeout(()=>{t(wa(r)?"abort":"next",r)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?t("abort",a):t("next",o)});return}setTimeout(()=>{t("success",a)})}).catch(()=>{t("next",o)})}};function Ji(s,e){switch(s){case"local":case"session":re[s]=e;break;case"all":for(const t in re)re[t]=e;break}}function Qi(){Pi("",ka),Ti(!0);let s;try{s=window}catch{}if(s){if(Ki(),s.IconifyPreload!==void 0){const t=s.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Li(o))&&console.error(i)}catch{console.error(i)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(const i in t){const o="IconifyProviders["+i+"] is invalid.";try{const a=t[i];if(typeof a!="object"||!a||a.resources===void 0)continue;ji(i,a)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Ji(t,!0),disableCache:t=>Ji(t,!1),iconExists:Zs,getIcon:Js,listIcons:Gs,addIcon:Ci,addCollection:Li,calculateSize:Lt,buildIcon:Zi,loadIcons:Tt,loadIcon:ha,addAPIProvider:ji,_api:{getAPIConfig:Ke,setAPIModule:Pi,sendAPIQuery:Fi,setFetch:va,getFetch:ya,listAPIProviders:sa}}}function Xi(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)t+=" "+i+'="'+e[i]+'"';return'"}function Sa(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ea(s){return'url("data:image/svg+xml,'+Sa(s)+'")'}const It={"background-color":"currentColor"},Yi={"background-color":"transparent"},eo={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},to={"-webkit-mask":It,mask:It,background:Yi};for(const s in to){const e=to[s];for(const t in eo)e[s+"-"+t]=eo[t]}function io(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}function Aa(s,e,t){const i=document.createElement("span");let o=s.body;o.indexOf("");const a=s.attributes,r=Xi(o,{...a,width:e.width+"",height:e.height+""}),n=Ea(r),l=i.style,d={"--svg":n,width:io(a.width),height:io(a.height),...t?It:Yi};for(const u in d)l.setProperty(u,d[u]);return i}function Oa(s){const e=document.createElement("span");return e.innerHTML=Xi(s.body,s.attributes),e.firstChild}function oo(s,e){const t=e.icon.data,i=e.customisations,o=Zi(t,i);i.preserveAspectRatio&&(o.attributes.preserveAspectRatio=i.preserveAspectRatio);const a=e.renderedMode;let r;switch(a){case"svg":r=Oa(o);break;default:r=Aa(o,{...$e,...t},a==="mask")}const n=Array.from(s.childNodes).find(l=>{const d=l.tagName&&l.tagName.toUpperCase();return d==="SPAN"||d==="SVG"});n?r.tagName==="SPAN"&&n.tagName===r.tagName?n.setAttribute("style",r.getAttribute("style")):s.replaceChild(r,n):s.appendChild(r)}const Pt="data-style";function so(s,e){let t=Array.from(s.childNodes).find(i=>i.hasAttribute&&i.hasAttribute(Pt));t||(t=document.createElement("style"),t.setAttribute(Pt,Pt),s.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"}function ao(s,e,t){const i=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:e,icon:s,lastRender:i}}function Ta(s="iconify-icon"){let e,t;try{e=window.customElements,t=window.HTMLElement}catch{return}if(!e||!t)return;const i=e.get(s);if(i)return i;const o=["icon","mode","inline","width","height","rotate","flip"],a=class extends t{constructor(){super();Me(this,"_shadowRoot");Me(this,"_state");Me(this,"_checkQueued",!1);const l=this._shadowRoot=this.attachShadow({mode:"open"}),d=Ct(this);so(l,d),this._state=ao({value:""},d),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(l){if(l==="inline"){const d=Ct(this),u=this._state;d!==u.inline&&(u.inline=d,so(this._shadowRoot,d))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return Ct(this)}set inline(l){this.setAttribute("inline",l?"true":null)}restartAnimation(){const l=this._state;if(l.rendered){const d=this._shadowRoot;if(l.renderedMode==="svg")try{d.lastChild.setCurrentTime(0);return}catch{}oo(d,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,d=this.getAttribute("icon");if(d!==l.icon.value){this._iconChanged(d);return}if(!l.rendered)return;const u=this.getAttribute("mode"),h=Si(this);(l.attrMode!==u||qs(l.customisations,h))&&this._renderIcon(l.icon,h,u)}_iconChanged(l){const d=fa(l,(u,h,g)=>{const y=this._state;if(y.rendered||this.getAttribute("icon")!==u)return;const _={value:u,name:h,data:g};_.data?this._gotIconData(_):y.icon=_});d.data?this._gotIconData(d):this._state=ao(d,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,Si(this),this.getAttribute("mode"))}_renderIcon(l,d,u){const h=ba(l.data.body,u),g=this._state.inline;oo(this._shadowRoot,this._state={rendered:!0,icon:l,inline:g,customisations:d,attrMode:u,renderedMode:h})}};o.forEach(n=>{n in a.prototype||Object.defineProperty(a.prototype,n,{get:function(){return this.getAttribute(n)},set:function(l){this.setAttribute(n,l)}})});const r=Qi();for(const n in r)a[n]=a.prototype[n]=r[n];return e.define(s,a),a}const Ca=Ta()||Qi(),{enableCache:Rn,disableCache:Nn,iconExists:qn,getIcon:Un,listIcons:Vn,addIcon:Bn,addCollection:Hn,calculateSize:Kn,buildIcon:Wn,loadIcons:Gn,loadIcon:Zn,addAPIProvider:Jn,_api:Qn}=Ca;class ro extends N{static get styles(){return $`
:root {
pointer-events: none;
}
@@ -393,14 +399,14 @@ var DtWebComponents=function($){"use strict";var Pr=Object.defineProperty;var Mr
.tooltip:hover {
opacity: 0.25;
}
- `}static get properties(){return{...super.properties,icon:{type:String},tooltip:{type:String},tooltip_open:{type:Boolean},size:{type:String},slotted:{type:Boolean,attribute:!1}}}firstUpdated(){const e=this.shadowRoot.querySelector("slot[name=tooltip]");e&&e.addEventListener("slotchange",t=>{const s=t.target.assignedNodes();let a=!1;s.length>0&&(s[0].tagName==="SLOT"?a=s[0].assignedNodes().length>0:a=!0),this.slotted=a})}_toggleTooltip(){this.tooltip_open?this.tooltip_open=!1:this.tooltip_open=!0}tooltipClasses(){return{tooltip:!0,slotted:this.slotted}}render(){const e=this.tooltip?f`