UNPKG

vacuum-card

Version:

Vacuum cleaner card for Home Assistant Lovelace UI

1 lines 130 kB
function t(t,e,a,o){var n,i=arguments.length,r=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(i<3?n(r):i>3?n(e,a,r):n(e,a))||r);return i>3&&r&&Object.defineProperty(e,a,r),r}"function"==typeof SuppressedError&&SuppressedError;const e=globalThis,a=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),n=new WeakMap;let i=class{constructor(t,e,a){if(this._$cssResult$=!0,a!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const a=void 0!==e&&1===e.length;a&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&n.set(e,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const a=1===t.length?t[0]:e.reduce((e,a,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+t[o+1],t[0]);return new i(a,t,o)},s=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const a of t.cssRules)e+=a.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,o))(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:u,getOwnPropertyNames:d,getOwnPropertySymbols:_,getPrototypeOf:m}=Object,h=globalThis,g=h.trustedTypes,p=g?g.emptyScript:"",f=h.reactiveElementPolyfillSupport,b=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let a=t;switch(e){case Boolean:a=null!==t;break;case Number:a=null===t?null:Number(t);break;case Object:case Array:try{a=JSON.parse(t)}catch(t){a=null}}return a}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),h.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const a=Symbol(),o=this.getPropertyDescriptor(t,a,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,a){const{get:o,set:n}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const i=o?.call(this);n?.call(this,e),this.requestUpdate(t,i,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=m(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...d(t),..._(t)];for(const a of e)this.createProperty(a,t[a])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,a]of e)this.elementProperties.set(t,a)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const a=this._$Eu(t,e);void 0!==a&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const a=new Set(t.flat(1/0).reverse());for(const t of a)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const a=e.attribute;return!1===a?void 0:"string"==typeof a?a:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const a of e.keys())this.hasOwnProperty(a)&&(t.set(a,this[a]),delete this[a]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(a)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const a of o){const o=document.createElement("style"),n=e.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=a.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,a){this._$AK(t,a)}_$ET(t,e){const a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(void 0!==o&&!0===a.reflect){const n=(void 0!==a.converter?.toAttribute?a.converter:v).toAttribute(e,a.type);this._$Em=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(t,e){const a=this.constructor,o=a._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=a.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=o;const i=n.fromAttribute(e,t.type);this[o]=i??this._$Ej?.get(o)??i,this._$Em=null}}requestUpdate(t,e,a,o=!1,n){if(void 0!==t){const i=this.constructor;if(!1===o&&(n=this[t]),a??=i.getPropertyOptions(t),!((a.hasChanged??y)(n,e)||a.useDefault&&a.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,a))))return;this.C(t,e,a)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:a,reflect:o,wrapped:n},i){a&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==n||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||a||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,a]of t){const{wrapped:t}=a,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,a,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[b("elementProperties")]=new Map,k[b("finalized")]=new Map,f?.({ReactiveElement:k}),(h.reactiveElementVersions??=[]).push("2.1.2");const A=globalThis,$=t=>t,z=A.trustedTypes,S=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,x="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,E="?"+j,C=`<${E}>`,M=document,O=()=>M.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,T="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,R=/>/g,L=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,U=/"/g,H=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...a)=>({_$litType$:t,strings:e,values:a}))(1),B=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Z=new WeakMap,K=M.createTreeWalker(M,129);function W(t,e){if(!N(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}let G=class t{constructor({strings:e,_$litType$:a},o){let n;this.parts=[];let i=0,r=0;const s=e.length-1,l=this.parts,[c,u]=((t,e)=>{const a=t.length-1,o=[];let n,i=2===e?"<svg>":3===e?"<math>":"",r=V;for(let e=0;e<a;e++){const a=t[e];let s,l,c=-1,u=0;for(;u<a.length&&(r.lastIndex=u,l=r.exec(a),null!==l);)u=r.lastIndex,r===V?"!--"===l[1]?r=I:void 0!==l[1]?r=R:void 0!==l[2]?(H.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=L):void 0!==l[3]&&(r=L):r===L?">"===l[0]?(r=n??V,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?L:'"'===l[3]?U:D):r===U||r===D?r=L:r===I||r===R?r=V:(r=L,n=void 0);const d=r===L&&t[e+1].startsWith("/>")?" ":"";i+=r===V?a+C:c>=0?(o.push(s),a.slice(0,c)+x+a.slice(c)+j+d):a+j+(-2===c?e:d)}return[W(t,i+(t[a]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,a);if(this.el=t.createElement(c,o),K.currentNode=this.el.content,2===a||3===a){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=K.nextNode())&&l.length<s;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(x)){const e=u[r++],a=n.getAttribute(t).split(j),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:a,ctor:"."===o[1]?tt:"?"===o[1]?et:"@"===o[1]?at:X}),n.removeAttribute(t)}else t.startsWith(j)&&(l.push({type:6,index:i}),n.removeAttribute(t));if(H.test(n.tagName)){const t=n.textContent.split(j),e=t.length-1;if(e>0){n.textContent=z?z.emptyScript:"";for(let a=0;a<e;a++)n.append(t[a],O()),K.nextNode(),l.push({type:2,index:++i});n.append(t[e],O())}}}else if(8===n.nodeType)if(n.data===E)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=n.data.indexOf(j,t+1));)l.push({type:7,index:i}),t+=j.length-1}i++}}static createElement(t,e){const a=M.createElement("template");return a.innerHTML=t,a}};function J(t,e,a=t,o){if(e===B)return e;let n=void 0!==o?a._$Co?.[o]:a._$Cl;const i=P(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),void 0===i?n=void 0:(n=new i(t),n._$AT(t,a,o)),void 0!==o?(a._$Co??=[])[o]=n:a._$Cl=n),void 0!==n&&(e=J(t,n._$AS(t,e.values),n,o)),e}class Y{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:a}=this._$AD,o=(t?.creationScope??M).importNode(e,!0);K.currentNode=o;let n=K.nextNode(),i=0,r=0,s=a[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new Q(n,n.nextSibling,this,t):1===s.type?e=new s.ctor(n,s.name,s.strings,this,t):6===s.type&&(e=new ot(n,this,t)),this._$AV.push(e),s=a[++r]}i!==s?.index&&(n=K.nextNode(),i++)}return K.currentNode=M,o}p(t){let e=0;for(const a of this._$AV)void 0!==a&&(void 0!==a.strings?(a._$AI(t,a,e),e+=a.strings.length-2):a._$AI(t[e])),e++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,a,o){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=a,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=J(this,t,e),P(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==B&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>N(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==F&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:a}=t,o="number"==typeof a?this._$AC(t):(void 0===a.el&&(a.el=G.createElement(W(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new Y(o,this),a=t.u(this.options);t.p(e),this.T(a),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new G(t)),e}k(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let a,o=0;for(const n of t)o===e.length?e.push(a=new Q(this.O(O()),this.O(O()),this,this.options)):a=e[o],a._$AI(n),o++;o<e.length&&(this._$AR(a&&a._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=$(t).nextSibling;$(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}let X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,a,o,n){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,a.length>2||""!==a[0]||""!==a[1]?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=F}_$AI(t,e=this,a,o){const n=this.strings;let i=!1;if(void 0===n)t=J(this,t,e,0),i=!P(t)||t!==this._$AH&&t!==B,i&&(this._$AH=t);else{const o=t;let r,s;for(t=n[0],r=0;r<n.length-1;r++)s=J(this,o[a+r],e,r),s===B&&(s=this._$AH[r]),i||=!P(s)||s!==this._$AH[r],s===F?t=F:t!==F&&(t+=(s??"")+n[r+1]),this._$AH[r]=s}i&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class tt extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}let et=class extends X{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==F)}};class at extends X{constructor(t,e,a,o,n){super(t,e,a,o,n),this.type=5}_$AI(t,e=this){if((t=J(this,t,e,0)??F)===B)return;const a=this._$AH,o=t===F&&a!==F||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,n=t!==F&&(a===F||o);o&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,a){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const nt={I:Q},it=A.litHtmlPolyfillSupport;it?.(G,Q),(A.litHtmlVersions??=[]).push("3.3.2");const rt=globalThis;let st=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,a)=>{const o=a?.renderBefore??e;let n=o._$litPart$;if(void 0===n){const t=a?.renderBefore??null;o._$litPart$=n=new Q(e.insertBefore(O(),t),t,void 0,a??{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return B}};st._$litElement$=!0,st.finalized=!0,rt.litElementHydrateSupport?.({LitElement:st});const lt=rt.litElementPolyfillSupport;lt?.({LitElement:st}),(rt.litElementVersions??=[]).push("4.2.2");const ct=t=>(e,a)=>{void 0!==a?a.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},ut={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:y},dt=(t=ut,e,a)=>{const{kind:o,metadata:n}=a;let i=globalThis.litPropertyMetadata.get(n);if(void 0===i&&globalThis.litPropertyMetadata.set(n,i=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),i.set(a.name,t),"accessor"===o){const{name:o}=a;return{set(a){const n=e.get.call(this);e.set.call(this,a),this.requestUpdate(o,n,t,!0,a)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=a;return function(a){const n=this[o];e.call(this,a),this.requestUpdate(o,n,t,!0,a)}}throw Error("Unsupported decorator location: "+o)};function _t(t){return(e,a)=>"object"==typeof a?dt(t,e,a):((t,e,a)=>{const o=e.hasOwnProperty(a);return e.constructor.createProperty(a,t),o?Object.getOwnPropertyDescriptor(e,a):void 0})(t,e,a)}function mt(t){return _t({...t,state:!0,attribute:!1})}const ht=2;let gt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,a){this._$Ct=t,this._$AM=e,this._$Ci=a}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const{I:pt}=nt,ft=t=>t,bt=()=>document.createComment(""),vt=(t,e,a)=>{const o=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===a){const e=o.insertBefore(bt(),n),i=o.insertBefore(bt(),n);a=new pt(e,i,t,t.options)}else{const e=a._$AB.nextSibling,i=a._$AM,r=i!==t;if(r){let e;a._$AQ?.(t),a._$AM=t,void 0!==a._$AP&&(e=t._$AU)!==i._$AU&&a._$AP(e)}if(e!==n||r){let t=a._$AA;for(;t!==e;){const e=ft(t).nextSibling;ft(o).insertBefore(t,n),t=e}}}return a},yt=(t,e,a=t)=>(t._$AI(e,a),t),wt={},kt=(t,e=wt)=>t._$AH=e,At=t=>{t._$AR(),t._$AA.remove()},$t=(t,e,a)=>{const o=new Map;for(let n=e;n<=a;n++)o.set(t[n],n);return o},zt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends gt{constructor(t){if(super(t),t.type!==ht)throw Error("repeat() can only be used in text expressions")}dt(t,e,a){let o;void 0===a?a=e:void 0!==e&&(o=e);const n=[],i=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,i[r]=a(e,r),r++;return{values:i,keys:n}}render(t,e,a){return this.dt(t,e,a).values}update(t,[e,a,o]){const n=(t=>t._$AH)(t),{values:i,keys:r}=this.dt(e,a,o);if(!Array.isArray(n))return this.ut=r,i;const s=this.ut??=[],l=[];let c,u,d=0,_=n.length-1,m=0,h=i.length-1;for(;d<=_&&m<=h;)if(null===n[d])d++;else if(null===n[_])_--;else if(s[d]===r[m])l[m]=yt(n[d],i[m]),d++,m++;else if(s[_]===r[h])l[h]=yt(n[_],i[h]),_--,h--;else if(s[d]===r[h])l[h]=yt(n[d],i[h]),vt(t,l[h+1],n[d]),d++,h--;else if(s[_]===r[m])l[m]=yt(n[_],i[m]),vt(t,n[d],n[_]),_--,m++;else if(void 0===c&&(c=$t(r,m,h),u=$t(s,d,_)),c.has(s[d]))if(c.has(s[_])){const e=u.get(r[m]),a=void 0!==e?n[e]:null;if(null===a){const e=vt(t,n[d]);yt(e,i[m]),l[m]=e}else l[m]=yt(a,i[m]),vt(t,n[d],a),n[e]=null;m++}else At(n[_]),_--;else At(n[d]),d++;for(;m<=h;){const e=vt(t,l[h+1]);yt(e,i[m]),l[m++]=e}for(;d<=_;){const t=n[d++];null!==t&&At(t)}return this.ut=r,kt(t,l),B}});var St,xt,jt=function(t){return new Intl.DateTimeFormat(t.language,{year:"numeric",month:"long",day:"numeric"})};!function(t){t.language="language",t.system="system",t.comma_decimal="comma_decimal",t.decimal_comma="decimal_comma",t.space_comma="space_comma",t.none="none"}(St||(St={})),function(t){t.language="language",t.system="system",t.am_pm="12",t.twenty_four="24"}(xt||(xt={}));var Et=function(t){if(t.time_format===xt.language||t.time_format===xt.system){var e=t.time_format===xt.language?t.language:void 0,a=(new Date).toLocaleString(e);return a.includes("AM")||a.includes("PM")}return t.time_format===xt.am_pm},Ct=function(t){return new Intl.DateTimeFormat(t.language,{year:"numeric",month:"long",day:"numeric",hour:Et(t)?"numeric":"2-digit",minute:"2-digit",hour12:Et(t)})},Mt=function(t){return new Intl.DateTimeFormat(t.language,{hour:"numeric",minute:"2-digit",hour12:Et(t)})};function Ot(){return(Ot=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t}).apply(this,arguments)}function Pt(t){return t.substr(0,t.indexOf("."))}var Nt=function(t,e,a){var o=e?function(t){switch(t.number_format){case St.comma_decimal:return["en-US","en"];case St.decimal_comma:return["de","es","it"];case St.space_comma:return["fr","sv","cs"];case St.system:return;default:return t.language}}(e):void 0;if(Number.isNaN=Number.isNaN||function t(e){return"number"==typeof e&&t(e)},(null==e?void 0:e.number_format)!==St.none&&!Number.isNaN(Number(t))&&Intl)try{return new Intl.NumberFormat(o,Tt(t,a)).format(Number(t))}catch(e){return console.error(e),new Intl.NumberFormat(void 0,Tt(t,a)).format(Number(t))}return"string"==typeof t?t:function(t,e){return void 0===e&&(e=2),Math.round(t*Math.pow(10,e))/Math.pow(10,e)}(t,null==a?void 0:a.maximumFractionDigits).toString()+("currency"===(null==a?void 0:a.style)?" "+a.currency:"")},Tt=function(t,e){var a=Ot({maximumFractionDigits:2},e);if("string"!=typeof t)return a;if(!e||!e.minimumFractionDigits&&!e.maximumFractionDigits){var o=t.indexOf(".")>-1?t.split(".")[1].length:0;a.minimumFractionDigits=o,a.maximumFractionDigits=o}return a},Vt=function(t,e,a,o){var n=void 0!==o?o:e.state;if("unknown"===n||"unavailable"===n)return t("state.default."+n);if(function(t){return!!t.attributes.unit_of_measurement||!!t.attributes.state_class}(e)){if("monetary"===e.attributes.device_class)try{return Nt(n,a,{style:"currency",currency:e.attributes.unit_of_measurement})}catch(t){}return Nt(n,a)+(e.attributes.unit_of_measurement?" "+e.attributes.unit_of_measurement:"")}var i,r=function(t){return Pt(t.entity_id)}(e);return"input_datetime"===r?e.attributes.has_date&&e.attributes.has_time?function(t,e){return Ct(e).format(t)}(i=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day,e.attributes.hour,e.attributes.minute),a):e.attributes.has_date?function(t,e){return jt(e).format(t)}(i=new Date(e.attributes.year,e.attributes.month-1,e.attributes.day),a):e.attributes.has_time?((i=new Date).setHours(e.attributes.hour,e.attributes.minute),function(t,e){return Mt(e).format(t)}(i,a)):e.state:"humidifier"===r&&"on"===n&&e.attributes.humidity?e.attributes.humidity+" %":"counter"===r||"number"===r||"input_number"===r?Nt(n,a):e.attributes.device_class&&t("component."+r+".state."+e.attributes.device_class+"."+n)||t("component."+r+".state._."+n)||n},It=function(t,e,a,o){o=o||{},a=null==a?{}:a;var n=new Event(e,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});return n.detail=a,t.dispatchEvent(n),n},Rt={alert:"mdi:alert",automation:"mdi:playlist-play",calendar:"mdi:calendar",camera:"mdi:video",climate:"mdi:thermostat",configurator:"mdi:settings",conversation:"mdi:text-to-speech",device_tracker:"mdi:account",fan:"mdi:fan",group:"mdi:google-circles-communities",history_graph:"mdi:chart-line",homeassistant:"mdi:home-assistant",homekit:"mdi:home-automation",image_processing:"mdi:image-filter-frames",input_boolean:"mdi:drawing",input_datetime:"mdi:calendar-clock",input_number:"mdi:ray-vertex",input_select:"mdi:format-list-bulleted",input_text:"mdi:textbox",light:"mdi:lightbulb",mailbox:"mdi:mailbox",notify:"mdi:comment-alert",person:"mdi:account",plant:"mdi:flower",proximity:"mdi:apple-safari",remote:"mdi:remote",scene:"mdi:google-pages",script:"mdi:file-document",sensor:"mdi:eye",simple_alarm:"mdi:bell",sun:"mdi:white-balance-sunny",switch:"mdi:flash",timer:"mdi:timer",updater:"mdi:cloud-upload",vacuum:"mdi:robot-vacuum",water_heater:"mdi:thermometer",weblink:"mdi:open-in-new"};function Lt(t,e){if(t in Rt)return Rt[t];switch(t){case"alarm_control_panel":switch(e){case"armed_home":return"mdi:bell-plus";case"armed_night":return"mdi:bell-sleep";case"disarmed":return"mdi:bell-outline";case"triggered":return"mdi:bell-ring";default:return"mdi:bell"}case"binary_sensor":return e&&"off"===e?"mdi:radiobox-blank":"mdi:checkbox-marked-circle";case"cover":return"closed"===e?"mdi:window-closed":"mdi:window-open";case"lock":return e&&"unlocked"===e?"mdi:lock-open":"mdi:lock";case"media_player":return e&&"off"!==e&&"idle"!==e?"mdi:cast-connected":"mdi:cast";case"zwave":switch(e){case"dead":return"mdi:emoticon-dead";case"sleeping":return"mdi:sleep";case"initializing":return"mdi:timer-sand";default:return"mdi:z-wave"}default:return console.warn("Unable to find icon for domain "+t+" ("+e+")"),"mdi:bookmark"}}var Dt={humidity:"mdi:water-percent",illuminance:"mdi:brightness-5",temperature:"mdi:thermometer",pressure:"mdi:gauge",power:"mdi:flash",signal_strength:"mdi:wifi"},Ut={binary_sensor:function(t,e){var a="off"===t;switch(null==e?void 0:e.attributes.device_class){case"battery":return a?"mdi:battery":"mdi:battery-outline";case"battery_charging":return a?"mdi:battery":"mdi:battery-charging";case"cold":return a?"mdi:thermometer":"mdi:snowflake";case"connectivity":return a?"mdi:server-network-off":"mdi:server-network";case"door":return a?"mdi:door-closed":"mdi:door-open";case"garage_door":return a?"mdi:garage":"mdi:garage-open";case"power":case"plug":return a?"mdi:power-plug-off":"mdi:power-plug";case"gas":case"problem":case"safety":case"tamper":return a?"mdi:check-circle":"mdi:alert-circle";case"smoke":return a?"mdi:check-circle":"mdi:smoke";case"heat":return a?"mdi:thermometer":"mdi:fire";case"light":return a?"mdi:brightness-5":"mdi:brightness-7";case"lock":return a?"mdi:lock":"mdi:lock-open";case"moisture":return a?"mdi:water-off":"mdi:water";case"motion":return a?"mdi:walk":"mdi:run";case"occupancy":case"presence":return a?"mdi:home-outline":"mdi:home";case"opening":return a?"mdi:square":"mdi:square-outline";case"running":return a?"mdi:stop":"mdi:play";case"sound":return a?"mdi:music-note-off":"mdi:music-note";case"update":return a?"mdi:package":"mdi:package-up";case"vibration":return a?"mdi:crop-portrait":"mdi:vibrate";case"window":return a?"mdi:window-closed":"mdi:window-open";default:return a?"mdi:radiobox-blank":"mdi:checkbox-marked-circle"}},cover:function(t){var e="closed"!==t.state;switch(t.attributes.device_class){case"garage":return e?"mdi:garage-open":"mdi:garage";case"door":return e?"mdi:door-open":"mdi:door-closed";case"shutter":return e?"mdi:window-shutter-open":"mdi:window-shutter";case"blind":return e?"mdi:blinds-open":"mdi:blinds";case"window":return e?"mdi:window-open":"mdi:window-closed";default:return Lt("cover",t.state)}},sensor:function(t){var e=t.attributes.device_class;if(e&&e in Dt)return Dt[e];if("battery"===e){var a=Number(t.state);if(isNaN(a))return"mdi:battery-unknown";var o=10*Math.round(a/10);return o>=100?"mdi:battery":o<=0?"mdi:battery-alert":"hass:battery-"+o}var n=t.attributes.unit_of_measurement;return"°C"===n||"°F"===n?"mdi:thermometer":Lt("sensor")},input_datetime:function(t){return t.attributes.has_date?t.attributes.has_time?Lt("input_datetime"):"mdi:calendar":"mdi:clock"}};function Ht(t,e,a,o){var n,i=arguments.length,r=i<3?e:o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(i<3?n(r):i>3?n(e,a,r):n(e,a))||r);return i>3&&r&&Object.defineProperty(e,a,r),r}"function"==typeof SuppressedError&&SuppressedError;class qt extends st{constructor(){super(...arguments),this.template="",this.variables={},this.value=null,this.unsubscribePromise=null}connectedCallback(){super.connectedCallback(),this.hass?this.unsubscribePromise||this.template&&(this.unsubscribePromise=this.hass.connection.subscribeMessage(t=>{this.value=t.result},{type:"render_template",template:this.template,variables:this.variables})):console.warn("hass object is not provided")}async disconnectedCallback(){if(super.disconnectedCallback(),this.unsubscribePromise)try{const t=await this.unsubscribePromise;return this.unsubscribePromise=null,t()}catch(t){if("not_found"!==t.code)throw t}}render(){var t;return null!==(t=this.value)&&void 0!==t?t:F}}Ht([_t()],qt.prototype,"hass",void 0),Ht([_t()],qt.prototype,"template",void 0),Ht([_t()],qt.prototype,"variables",void 0),Ht([_t()],qt.prototype,"value",void 0),Ht([mt()],qt.prototype,"unsubscribePromise",void 0);var Bt,Ft,Zt,Kt,Wt,Gt,Jt,Yt,Qt,Xt,te,ee,ae,oe,ne,ie,re,se,le,ce,ue,de,_e,me,he,ge,pe,fe,be,ve,ye,we,ke,Ae,$e,ze,Se,xe,je,Ee,Ce,Me,Oe,Pe,Ne,Te,Ve,Ie,Re,Le,De,Ue,He,qe,Be,Fe,Ze,Ke,We,Ge,Je,Ye,Qe,Xe,ta,ea,aa,oa,na,ia,ra,sa,la,ca,ua,da,_a,ma,ha,ga,pa,fa,ba,va,ya,wa,ka,Aa,$a,za,Sa,xa,ja,Ea,Ca,Ma,Oa,Pa,Na,Ta,Va,Ia,Ra,La,Da="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ua(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ha(){if(Ft)return Bt;Ft=1;var t=Array.isArray;return Bt=t}function qa(){if(Gt)return Wt;Gt=1;var t=function(){if(Kt)return Zt;Kt=1;var t="object"==typeof Da&&Da&&Da.Object===Object&&Da;return Zt=t}(),e="object"==typeof self&&self&&self.Object===Object&&self,a=t||e||Function("return this")();return Wt=a}function Ba(){if(Yt)return Jt;Yt=1;var t=qa().Symbol;return Jt=t}function Fa(){if(oe)return ae;oe=1;var t=Ba(),e=function(){if(Xt)return Qt;Xt=1;var t=Ba(),e=Object.prototype,a=e.hasOwnProperty,o=e.toString,n=t?t.toStringTag:void 0;return Qt=function(t){var e=a.call(t,n),i=t[n];try{t[n]=void 0;var r=!0}catch(t){}var s=o.call(t);return r&&(e?t[n]=i:delete t[n]),s}}(),a=function(){if(ee)return te;ee=1;var t=Object.prototype.toString;return te=function(e){return t.call(e)}}(),o=t?t.toStringTag:void 0;return ae=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?e(t):a(t)}}function Za(){if(se)return re;se=1;var t=Fa(),e=ie?ne:(ie=1,ne=function(t){return null!=t&&"object"==typeof t});return re=function(a){return"symbol"==typeof a||e(a)&&"[object Symbol]"==t(a)}}function Ka(){if(de)return ue;return de=1,ue=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function Wa(){if(fe)return pe;fe=1;var t,e=function(){if(ge)return he;ge=1;var t=qa()["__core-js_shared__"];return he=t}(),a=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return pe=function(t){return!!a&&a in t}}function Ga(){if(we)return ye;we=1;var t=function(){if(me)return _e;me=1;var t=Fa(),e=Ka();return _e=function(a){if(!e(a))return!1;var o=t(a);return"[object Function]"==o||"[object GeneratorFunction]"==o||"[object AsyncFunction]"==o||"[object Proxy]"==o}}(),e=Wa(),a=Ka(),o=function(){if(ve)return be;ve=1;var t=Function.prototype.toString;return be=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}(),n=/^\[object .+?Constructor\]$/,i=Function.prototype,r=Object.prototype,s=i.toString,l=r.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return ye=function(i){return!(!a(i)||e(i))&&(t(i)?c:n).test(o(i))}}function Ja(){if(ze)return $e;ze=1;var t=Ga(),e=Ae?ke:(Ae=1,ke=function(t,e){return null==t?void 0:t[e]});return $e=function(a,o){var n=e(a,o);return t(n)?n:void 0}}function Ya(){if(xe)return Se;xe=1;var t=Ja()(Object,"create");return Se=t}function Qa(){if(Le)return Re;Le=1;var t=function(){if(Ee)return je;Ee=1;var t=Ya();return je=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Me?Ce:(Me=1,Ce=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),a=function(){if(Pe)return Oe;Pe=1;var t=Ya(),e=Object.prototype.hasOwnProperty;return Oe=function(a){var o=this.__data__;if(t){var n=o[a];return"__lodash_hash_undefined__"===n?void 0:n}return e.call(o,a)?o[a]:void 0}}(),o=function(){if(Te)return Ne;Te=1;var t=Ya(),e=Object.prototype.hasOwnProperty;return Ne=function(a){var o=this.__data__;return t?void 0!==o[a]:e.call(o,a)}}(),n=function(){if(Ie)return Ve;Ie=1;var t=Ya();return Ve=function(e,a){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=t&&void 0===a?"__lodash_hash_undefined__":a,this}}();function i(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=a,i.prototype.has=o,i.prototype.set=n,Re=i}function Xa(){if(Fe)return Be;Fe=1;var t=qe?He:(qe=1,He=function(t,e){return t===e||t!=t&&e!=e});return Be=function(e,a){for(var o=e.length;o--;)if(t(e[o][0],a))return o;return-1}}function to(){if(ea)return ta;ea=1;var t=Ue?De:(Ue=1,De=function(){this.__data__=[],this.size=0}),e=function(){if(Ke)return Ze;Ke=1;var t=Xa(),e=Array.prototype.splice;return Ze=function(a){var o=this.__data__,n=t(o,a);return!(n<0||(n==o.length-1?o.pop():e.call(o,n,1),--this.size,0))}}(),a=function(){if(Ge)return We;Ge=1;var t=Xa();return We=function(e){var a=this.__data__,o=t(a,e);return o<0?void 0:a[o][1]}}(),o=function(){if(Ye)return Je;Ye=1;var t=Xa();return Je=function(e){return t(this.__data__,e)>-1}}(),n=function(){if(Xe)return Qe;Xe=1;var t=Xa();return Qe=function(e,a){var o=this.__data__,n=t(o,e);return n<0?(++this.size,o.push([e,a])):o[n][1]=a,this}}();function i(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=a,i.prototype.has=o,i.prototype.set=n,ta=i}function eo(){if(ia)return na;ia=1;var t=Qa(),e=to(),a=function(){if(oa)return aa;oa=1;var t=Ja()(qa(),"Map");return aa=t}();return na=function(){this.size=0,this.__data__={hash:new t,map:new(a||e),string:new t}}}function ao(){if(ca)return la;ca=1;var t=sa?ra:(sa=1,ra=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return la=function(e,a){var o=e.__data__;return t(a)?o["string"==typeof a?"string":"hash"]:o.map}}function oo(){if(va)return ba;va=1;var t=eo(),e=function(){if(da)return ua;da=1;var t=ao();return ua=function(e){var a=t(this,e).delete(e);return this.size-=a?1:0,a}}(),a=function(){if(ma)return _a;ma=1;var t=ao();return _a=function(e){return t(this,e).get(e)}}(),o=function(){if(ga)return ha;ga=1;var t=ao();return ha=function(e){return t(this,e).has(e)}}(),n=function(){if(fa)return pa;fa=1;var t=ao();return pa=function(e,a){var o=t(this,e),n=o.size;return o.set(e,a),this.size+=o.size==n?0:1,this}}();function i(t){var e=-1,a=null==t?0:t.length;for(this.clear();++e<a;){var o=t[e];this.set(o[0],o[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=a,i.prototype.has=o,i.prototype.set=n,ba=i}function no(){if(Aa)return ka;Aa=1;var t=function(){if(wa)return ya;wa=1;var t=oo();function e(a,o){if("function"!=typeof a||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");var n=function(){var t=arguments,e=o?o.apply(this,t):t[0],i=n.cache;if(i.has(e))return i.get(e);var r=a.apply(this,t);return n.cache=i.set(e,r)||i,r};return n.cache=new(e.Cache||t),n}return e.Cache=t,ya=e}();return ka=function(e){var a=t(e,function(t){return 500===o.size&&o.clear(),t}),o=a.cache;return a}}function io(){if(Ea)return ja;Ea=1;var t=Ba(),e=xa?Sa:(xa=1,Sa=function(t,e){for(var a=-1,o=null==t?0:t.length,n=Array(o);++a<o;)n[a]=e(t[a],a,t);return n}),a=Ha(),o=Za(),n=t?t.prototype:void 0,i=n?n.toString:void 0;return ja=function t(n){if("string"==typeof n)return n;if(a(n))return e(n,t)+"";if(o(n))return i?i.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r},ja}function ro(){if(Pa)return Oa;Pa=1;var t=Ha(),e=function(){if(ce)return le;ce=1;var t=Ha(),e=Za(),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;return le=function(n,i){if(t(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!e(n))||o.test(n)||!a.test(n)||null!=i&&n in Object(i)}}(),a=function(){if(za)return $a;za=1;var t=no(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=t(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(e,function(t,e,n,i){o.push(n?i.replace(a,"$1"):e||t)}),o});return $a=o}(),o=function(){if(Ma)return Ca;Ma=1;var t=io();return Ca=function(e){return null==e?"":t(e)}}();return Oa=function(n,i){return t(n)?n:e(n,i)?[n]:a(o(n))}}function so(){if(Ia)return Va;Ia=1;var t=ro(),e=function(){if(Ta)return Na;Ta=1;var t=Za();return Na=function(e){if("string"==typeof e||t(e))return e;var a=e+"";return"0"==a&&1/e==-1/0?"-0":a}}();return Va=function(a,o){for(var n=0,i=(o=t(o,a)).length;null!=a&&n<i;)a=a[e(o[n++])];return n&&n==i?a:void 0}}var lo=function(){if(La)return Ra;La=1;var t=so();return Ra=function(e,a,o){var n=null==e?void 0:t(e,a);return void 0===n?o:n}}(),co=Ua(lo),uo={cleaning:"Netejant",auto:"Neteja automàtica",spot:"Neteja puntual",edge:"Neteja de vores",single_room:"Neteja d'una sola habitació",paused:"En pausa",idle:"Inactiu",stop:"Aturat",charging:"Carregant",returning:"Tornant a la base",returning_home:"Tornant a la base",docked:"A la base",unknown:"Desconegut",offline:"Fora de línia",error:"Errada",charger_disconnected:"Carregador desconnectat",remote_control_active:"Control remot actiu",manual_mode:"Mode manual",shutting_down:"S'està apagant",updating:"S'està actualitzant",going_to_target:"Anant a l'objectiu",zoned_cleaning:"Neteja per zones",segment_cleaning:"Neteja per segments"},_o={gentle:"Delicat",silent:"Silenciós",standard:"Estàndard",medium:"Mitjà",turbo:"Turbo",normal:"Normal",max:"Màxim",max_plus:"Màxim+",high:"Alt",strong:"Fort",quiet:"Silenciós",auto:"Automàtic",balanced:"Equilibrat",custom:"Personalitzat",off:"Apagat"},mo={name:"Targeta d'aspiradora",description:"La targeta d'aspiradora permet controlar el robot aspirador.",start:"Neteja",continue:"Continua",pause:"Pausa",stop:"Atura",return_to_base:"Torna a la base",locate:"Localitza",not_available:"No disponible"},ho={invalid_config:"Configuració no vàlida",missing_entity:"Cal especificar una entitat."},go={actions_array:"AVÍS: 'actions' està reservat per sobreescriure les accions per defecte dels botons existents. Si la vostra intenció era afegir accions addicionals, utilitzeu l'opció 'shortcuts' en el seu lloc."},po={entity:"Entitat (Requerit)",battery_entity:"Entitat de bateria (Opcional)",map:"Càmera de mapa (Opcional)",image:"Imatge (Opcional)",compact_view:"Visualització compacta",compact_view_aria_label_on:"Activar visualització compacta",compact_view_aria_label_off:"Desactivar visualització compacta",show_name:"Mostrar nom",show_name_aria_label_on:"Mostra nom",show_name_aria_label_off:"Amaga nom",show_status:"Mostrar estat",show_status_aria_label_on:"Mostra estat",show_status_aria_label_off:"Amaga estat",show_toolbar:"Mostrar barra d'eines",show_toolbar_aria_label_on:"Mostra barra d'eines",show_toolbar_aria_label_off:"Amaga barra d'eines",code_only_note:"Nota: Configuració de les accions i estadístiques només disponible des de l'Editor de Codi."},fo={status:uo,source:_o,common:mo,error:ho,warning:go,editor:po},bo=Object.freeze({__proto__:null,common:mo,default:fo,editor:po,error:ho,source:_o,status:uo,warning:go}),vo={cleaning:"清扫中",auto:"自动清扫",spot:"区域清扫",edge:"边缘清扫",single_room:"单房间清扫",paused:"暂停中",idle:"闲置中",stop:"已停止",charging:"充电中",returning:"返回基座",returning_home:"返回基座",docked:"已在基座",unknown:"未知",offline:"离线",error:"错误",charger_disconnected:"充电器已断开",remote_control_active:"正在遥控",manual_mode:"手动模式",shutting_down:"关机",updating:"更新中",going_to_target:"前往目标",zoned_cleaning:"区域清洁",segment_cleaning:"分区清洁"},yo={gentle:"轻柔",silent:"安静",standard:"标准",medium:"中等",turbo:"强力",normal:"正常",max:"最大",max_plus:"最大+",high:"高",strong:"强力",quiet:"安静",auto:"自动",balanced:"均衡",custom:"自定义",off:"关闭"},wo={name:"吸尘器卡片",description:"Vacuum Card 允许您控制您的扫地机器人。",start:"清扫",continue:"继续",pause:"暂停",stop:"停止",return_to_base:"回充",locate:"定位扫地机器人",not_available:"扫地机器人不可用"},ko={invalid_config:"错误的设置",missing_entity:"必须指定一个实体!"},Ao={actions_array:'警告: "动作" 是为了覆盖现有按钮的默认动作而保留的。如果你的目的是增加额外的动作,请使用"快捷键"选项来代替。'},$o={entity:"实体 (必填)",battery_entity:"电池实体(可选)",map:"地图 (选填)",image:"图片 (选填)",compact_view:"紧凑视图",compact_view_aria_label_on:"开启紧凑视图",compact_view_aria_label_off:"关闭紧凑视图",show_name:"显示名称",show_name_aria_label_on:"开启名称显示",show_name_aria_label_off:"关闭名称显示",show_status:"显示状态",show_status_aria_label_on:"开启状态显示",show_status_aria_label_off:"关闭状态显示",show_toolbar:"显示工具栏",show_toolbar_aria_label_on:"开启工具栏显示",show_toolbar_aria_label_off:"关闭工具栏显示",code_only_note:"注意: 设置动作和统计选项只能使用代码编辑器。"},zo={status:vo,source:yo,common:wo,error:ko,warning:Ao,editor:$o},So=Object.freeze({__proto__:null,common:wo,default:zo,editor:$o,error:ko,source:yo,status:vo,warning:Ao}),xo={cleaning:"Vysává se",auto:"Automatické vysávání",spot:"Vysávání na místě",edge:"Vysávání při okraji",single_room:"Vysávání jedné místnosti",paused:"Pozastaveno",idle:"Nečinný",stop:"Zastavený",charging:"Nabíjí se",returning:"Vrací se",returning_home:"Návrat na základnu",docked:"Ve stanici",unknown:"Neznámý",offline:"Vypnuto",error:"Chyba",charger_disconnected:"Nabíječka odpojena",remote_control_active:"Dálkové ovládání aktivní",manual_mode:"Manuální režim",shutting_down:"Vypínání",updating:"Aktualizace",going_to_target:"Směřuje k cíli",zoned_cleaning:"Zónové čištění",segment_cleaning:"Čištění segmentu"},jo={gentle:"Mírný",silent:"Tichý",standard:"Standardní",medium:"Střední",turbo:"Turbo",normal:"Normální",max:"Maximální",max_plus:"Maximální+",high:"Vysoký",strong:"Silný",quiet:"Tichý",auto:"Automatický",balanced:"Vyvážený",custom:"Vlastní",off:"Vypnuto"},Eo={name:"Karta vysavače",description:"Karta vysavače vám dovolí ovládat svůj vysavač.",start:"Začni vysávat",continue:"Pokračuj",pause:"Pozastav",stop:"Zastav",return_to_base:"Vrať se domů",locate:"Lokalizuj",not_available:"Vysavač není dostupný"},Co={invalid_config:"Neplatná konfigurace",missing_entity:"Je vyžadováno specifikování entity!"},Mo={actions_array:"VAROVÁNÍ: 'actions' jsou rezervovány pro přepsání původních akcí u existujících tlačítek. Pokud jste chtěli měli v plánu přidat další akce, použijte namísto toho možnost 'shortcuts'."},Oo={entity:"Entita (Povinný)",battery_entity:"Entita baterie (Volitelné)",map:"Mapa (Nepovinný)",image:"Fotka (Nepovinný)",compact_view:"Kompaktní zobrazení",compact_view_aria_label_on:"Zapni kompaktní zobrazení",compact_view_aria_label_off:"Vypni kompaktní zobrazení",show_name:"Zobraz název",show_name_aria_label_on:"Zapni zobrazení názvu",show_name_aria_label_off:"Vypni zobrazení názvu",show_status:"Zobraz status",show_status_aria_label_on:"Zapni zobrazení statusu",show_status_aria_label_off:"Vypni zobrazení statusu",show_toolbar:"Zobraz lištu",show_toolbar_aria_label_on:"Zapni zobrazení lišty",show_toolbar_aria_label_off:"Vypni zobrazení lišty",code_only_note:"Poznámka: Nastavení akcí a infa je dostupné pouze v editoru kódu."},Po={status:xo,source:jo,common:Eo,error:Co,warning:Mo,editor:Oo},No={cleaning:"Støvsuger",auto:"Automatisk rengøring",spot:"Spot rengøring",edge:"Kant rengøring cleaning",single_room:"Rengører udvalgt rum",paused:"Pauset",idle:"Inaktiv",stop:"Stoppet",charging:"Lader",returning:"Returnerer til dock",returning_home:"Returnerer til dock",docked:"I dock",unknown:"Ukendt",offline:"Frakoblet",error:"Fejl",charger_disconnected:"Oplader er frakoblet",remote_control_active:"Fjernstyring er aktiveret",manual_mode:"Manuel tilstand",shutting_down:"Lukker ned",updating:"Opdaterer",going_to_target:"Kører til punkt",zoned_cleaning:"Zone rengøring",segment_cleaning:"Rum rengøring"},To={gentle:"Mild",silent:"Stille",standard:"Standard",medium:"Mellem",turbo:"Turbo",normal:"Normal",max:"Maks.",max_plus:"Maks.+",high:"Høj",strong:"Kraftig",quiet:"Stille",auto:"Automatisk",balanced:"Balanceret",custom:"Brugerdefineret",off:"Fra"},Vo={name:"Støvsugerkort",description:"Vacuum card lader dig kontrollere din robotstøvsuger.",start:"Start",continue:"Fortsæt",pause:"Sæt på pause",stop:"Stands",return_to_base:"Gå til dock",locate:"Find støvsuger",not_available:"Støvsuger er ikke tilgængelig"},Io={invalid_config:"Ugyldig konfiguration",missing_entity:"En enhed skal specificeres!"},Ro={actions_array:"ADVARSEL: 'actions' bruges til at overskrive handlinger for eksisterende knapper. Hvis du vil tilføje yderligere handlinger skal du i stedet bruge 'shortcuts'."},Lo={entity:"Enhed (Påkrævet)",battery_entity:"Batteri-entitet (Valgfri)",map:"Entitet med kamera til kortvisning (Valgfrit)",image:"Billede (Valgfrit)",compact_view:"Kompakt visning",compact_view_aria_label_on:"Slå kompakt visning til",compact_view_aria_label_off:"Slå kompakt visning fra",show_name:"Vis navn",show_name_aria_label_on:"Slå visning af navn til",show_name_aria_label_off:"Slå visning af navn fra",show_status:"Vis Status",show_status_aria_label_on:"Slå visning af status til",show_status_aria_label_off:"Slå visning af status fra",show_toolbar:"Vis værktøjslinje",show_toolbar_aria_label_on:"Slå visning af værktøjslinje til",show_toolbar_aria_label_off:"Slå visning af værktøjslinje fra",code_only_note:"Bemærk: Indstilling af actions og statistik er udelukkende muligt via Code Editor."},Do={status:No,source:To,common:Vo,error:Io,warning:Ro,editor:Lo},Uo={cleaning:"Reinigen",auto:"Automatisches Reinigen",spot:"Punktreinigung",edge:"Kantenreinigung",single_room:"Zimmerreinigung",paused:"Pausiert",idle:"Untätig",stop:"Angehalten",charging:"Aufladen",returning:"Rückkehr zu Dockingstation",returning_home:"Rückkehr zu Dockingstation",docked:"Angedockt",unknown:"Unbekannt",offline:"Nicht verbunden",error:"Fehler",charger_disconnected:"Ladestation nicht angeschlossen",remote_control_active:"Fernsteuerung aktiv",manual_mode:"Manueller Modus",shutting_down:"Herunterfahren",updating:"Aktualisierung",going_to_target:"Fahrt zum Zielpunkt",zoned_cleaning:"Zonenreinigung",segment_cleaning:"Zimmerreinigung"},Ho={gentle:"Schonend",silent:"Leise",standard:"Standard",medium:"Mittel",turbo:"Max",normal:"Normal",max:"Maximal",max_plus:"Maximal+",high:"Hoch",strong:"Stark",quiet:"Leise",auto:"Automatisch",balanced:"Ausgeglichen",custom:"Benutzerdefiniert",off:"Aus"},qo={name:"Staubsauger-Karte",description:"Vacuum card ermöglicht es Ihnen, Ihr Staubsaugerroboter zu steuern.",start:"Reinigen",continue:"Weiter",pause:"Pausieren",stop:"Stopp",return_to_base:"Zur Basis",locate:"Staubsauger lokalisieren",not_available:"Staubsaugerroboter ist nicht verfügbar"},Bo={invalid_config:"Ungeültige Konfiguration",missing_entity:"Angabe der Entität ist erforderlich!"},Fo={actions_array:"WARNUNG: 'actions' ist dafür vorgesehen, die Standardaktionen für vorhandene Schaltflächen zu überschreiben. Wenn Sie zusätzliche Aktionen hinzufügen möchten, verwenden Sie stattdessen die Option 'shortcuts'."},Zo={entity:"Entität (Erforderlich)",battery_entity:"Batterie-Entität (Optional)",map:"Kartenkamera (Optional)",image:"Bild (Optional)",compact_view:"kompakte Ansicht",compact_view_aria_label_on:"Schalte kompakte Ansicht ein",compact_view_aria_label_off:"Schalte kompakte Ansicht aus",show_name:"Zeige Namen",show_name_aria_label_on:"Schalte 'Zeige Namen' ein",show_name_aria_label_off:"Schalte 'Zeige Namen' aus",show_status:"Zeige Status",show_status_aria_label_on:"Schalte 'Zeige Status' ein",show_status_aria_label_off:"Schalte 'Zeige Status' aus",show_toolbar:"Zeige Toolbar",show_toolbar_aria_label_on:"Schalte 'Zeige Toolbar' ein",show_toolbar_aria_label_off:"Schalte 'Zeige Toolbar' aus",code_only_note:"Hinweis: Das Festlegen von Aktionen und Statistikoptionen ist ausschließlich mit dem Code-Editor möglich."},Ko={status:Uo,source:Ho,common:qo,error:Bo,warning:Fo,editor:Zo},Wo={cleaning:"Cleaning",auto:"Automatic cleaning",spot:"Spot cleaning",edge:"Edge cleaning",single_room:"Single room cleaning",paused:"Paused",idle:"Idle",stop:"Stopped",charging:"Charging",returning:"Returning home",returning_home:"Returning home",docked:"Docked",unknown:"Unknown",offline:"Offline",error:"Error",charger_disconnected:"Charger disconnected",remote_control_active:"Remote control active",manual_mode:"Manual mode",shutting_down:"Shutting down",updating:"Updating",going_to_target:"Going to target",zoned_cleaning:"Zoned cleaning",segment_cleaning:"Segment cleaning"},Go={gentle:"Gentle",silent:"Silent",standard:"Standard",medium:"Medium",turbo:"Turbo",normal:"Normal",max:"Max",max_plus:"Max+",high:"High",strong:"Strong",quiet:"Quiet",auto:"Auto",balanced:"Balanced",custom:"Custom",off:"Off"},Jo={name:"Vacuum Card",description:"Vacuum card allows you to control your robot vacuum.",start:"Clean",continue:"Continue",pause:"Pause",stop:"Stop",return_to_base:"Dock",locate:"Locate Vacuum",not_available:"Vacuum is not available"},Yo={invalid_config:"Invalid configuration",missing_entity:"Specifying entity is required!"},Qo={actions_array:"WARNING: 'actions' is reserved to override default actions for existing buttons. If your intention was to add additional actions, use the 'shortcuts' option instead."},Xo={entity:"Entity (Required)",battery_entity:"Battery Entity (Optional)",map:"Map Camera (Optional)",image:"Image (Optional)",compact_view:"Compact View",compact_view_aria_label_on:"Toggle compact view on",compact_view_aria_label_off:"Toggle compact view off",show_name:"Show Name",show_name_aria_label_on:"Toggle display name on",show_name_aria_label_off:"Toggle display name off",show_status:"Show Status",show_status_aria_label_on:"Toggle display status on",show_status_aria_label_off:"Toggle display status off",show_toolbar:"Show Toolbar",show_toolbar_aria_label_on:"Toggle display toolbar on",show_toolbar_aria_label_off:"Toggle display toolbar off",code_only_note:"Note: Setting actions and stats options are available exclusively using Code Editor."},tn={status:Wo,source:Go,common:Jo,error:Yo,warning:Qo,editor:Xo},en={cleaning:"Limpiando",auto:"Limpieza automática",spot:"Limpieza puntual",edge:"Limpieza de bordes",single_room:"Limpieza de una habitación",paused:"En pausa",idle:"Inactivo",stop:"Detenido",charging:"Cargando",returning:"Volviendo a la base",returning_home:"Volviendo a la base",docked:"En la base",unknown:"Desconocido",offline:"Sin conexión",error:"Fallo",charger_disconnected:"Cargador desconectado",remote_control_active:"Control remoto activo",manual_mode:"Modo manual",shutting_down:"Apagándose",updating:"Actualizando",going_to_target:"Dirigiéndose al objetivo",zoned_cleaning:"Limpieza por zonas",segment_cleaning:"Limpieza por segmentos"},an={gentle:"Delicado",silent:"Silencioso",standard:"Estándar",medium:"Medio",turbo:"Turbo",normal:"Normal",max:"Máx.",max_plus:"Máx.+",high:"Alto",strong:"Fuerte",quiet:"Silencioso",auto:"Automático",balanced:"Equilibrado",custom:"Personalizado",off:"Apagado"},on={name:"Tarjeta del aspirador",description:"La tarjeta del aspirador le permite controlar su robot aspirador.",start:"Comenzar",continue:"Con