Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,64 @@
function t(t,e,n,a){var o,i=arguments.length,r=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(i<3?o(r):i>3?o(e,n,r):o(e,n))||r);return i>3&&r&&Object.defineProperty(e,n,r),r}"function"==typeof SuppressedError&&SuppressedError;
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const e=globalThis,n=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),o=new WeakMap;let i=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&o.set(e,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const n=1===t.length?t[0]:e.reduce((e,n,a)=>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.")})(n)+t[a+1],t[0]);return new i(n,t,a)},s=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new i("string"==typeof t?t:t+"",void 0,a))(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:d,getOwnPropertyNames:u,getOwnPropertySymbols:h,getPrototypeOf:g}=Object,m=globalThis,p=m.trustedTypes,y=p?p.emptyScript:"",_=m.reactiveElementPolyfillSupport,f=(t,e)=>t,v={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},w=(t,e)=>!l(t,e),b={attribute:!0,type:String,converter:v,reflect:!1,useDefault:!1,hasChanged:w};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/Symbol.metadata??=Symbol("metadata"),m.litPropertyMetadata??=new WeakMap;let A=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=b){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 n=Symbol(),a=this.getPropertyDescriptor(t,n,e);void 0!==a&&c(this.prototype,t,a)}}static getPropertyDescriptor(t,e,n){const{get:a,set:o}=d(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:a,set(e){const i=a?.call(this);o?.call(this,e),this.requestUpdate(t,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...u(t),...h(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"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 n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,a)=>{if(n)t.adoptedStyleSheets=a.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const n of a){const a=document.createElement("style"),o=e.litNonce;void 0!==o&&a.setAttribute("nonce",o),a.textContent=n.cssText,t.appendChild(a)}})(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,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,n);if(void 0!==a&&!0===n.reflect){const o=(void 0!==n.converter?.toAttribute?n.converter:v).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$Em=null}}_$AK(t,e){const n=this.constructor,a=n._$Eh.get(t);if(void 0!==a&&this._$Em!==a){const t=n.getPropertyOptions(a),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:v;this._$Em=a;const i=o.fromAttribute(e,t.type);this[a]=i??this._$Ej?.get(a)??i,this._$Em=null}}requestUpdate(t,e,n,a=!1,o){if(void 0!==t){const i=this.constructor;if(!1===a&&(o=this[t]),n??=i.getPropertyOptions(t),!((n.hasChanged??w)(o,e)||n.useDefault&&n.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:a,wrapped:o},i){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),!0!==o||void 0!==i)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===a&&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,n]of t){const{wrapped:t}=n,a=this[e];!0!==t||this._$AL.has(e)||void 0===a||this.C(e,void 0,n,a)}}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.hosLine truncated
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const x=globalThis,P=t=>t,E=x.trustedTypes,L=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,T="?"+C,S=`<${T}>`,M=document,I=()=>M.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,D="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,z=/>/g,R=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,G=/"/g,H=/^(?:script|style|textarea|title)$/i,U=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),W=U(1),Z=U(2),Q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),F=new WeakMap,X=M.createTreeWalker(M,129);function J(t,e){if(!B(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}class K{constructor({strings:t,_$litType$:e},n){let a;this.parts=[];let o=0,i=0;const r=t.length-1,s=this.parts,[l,c]=((t,e)=>{const n=t.length-1,a=[];let o,i=2===e?"<svg>":3===e?"<math>":"",r=k;for(let e=0;e<n;e++){const n=t[e];let s,l,c=-1,d=0;for(;d<n.length&&(r.lastIndex=d,l=r.exec(n),null!==l);)d=r.lastIndex,r===k?"!--"===l[1]?r=V:void 0!==l[1]?r=z:void 0!==l[2]?(H.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=R):void 0!==l[3]&&(r=R):r===R?">"===l[0]?(r=o??k,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?R:'"'===l[3]?G:j):r===G||r===j?r=R:r===V||r===z?r=k:(r=R,o=void 0);const u=r===R&&t[e+1].startsWith("/>")?" ":"";i+=r===k?n+S:c>=0?(a.push(s),n.slice(0,c)+N+n.slice(c)+C+u):n+C+(-2===c?e:u)}return[J(t,i+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),a]})(t,e);if(this.el=K.createElement(l,n),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=X.nextNode())&&s.length<r;){if(1===a.nodeType){if(a.hasAttributes())for(const t of a.getAttributeNames())if(t.endsWith(N)){const e=c[i++],n=a.getAttribute(t).split(C),r=/([.?@])?(.*)/.exec(e);s.push({type:1,index:o,name:r[2],strings:n,ctor:"."===r[1]?nt:"?"===r[1]?at:"@"===r[1]?ot:et}),a.removeAttribute(t)}else t.startsWith(C)&&(s.push({type:6,index:o}),a.removeAttribute(t));if(H.test(a.tagName)){const t=a.textContent.split(C),e=t.length-1;if(e>0){a.textContent=E?E.emptyScript:"";for(let n=0;n<e;n++)a.append(t[n],I()),X.nextNode(),s.push({type:2,index:++o});a.append(t[e],I())}}}else if(8===a.nodeType)if(a.data===T)s.push({type:2,index:o});else{let t=-1;for(;-1!==(t=a.data.indexOf(C,t+1));)s.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const n=M.createElement("template");return n.innerHTML=t,n}}function q(t,e,n=t,a){if(e===Q)return e;let o=void 0!==a?n._$Co?.[a]:n._$Cl;const i=O(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(t),o._$AT(t,n,a)),void 0!==a?(n._$Co??=[])[a]=o:n._$Cl=o),void 0!==o&&(e=q(t,o._$AS(t,e.values),o,a)),e}class ${constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,a=(t?.creationScope??M).importNode(e,!0);X.currentNode=a;let o=X.nextNode(),i=0,r=0,s=n[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new tt(o,o.nextSibling,this,t):1===s.type?e=new s.ctor(o,s.name,s.strings,this,t):6===s.type&&(e=new it(o,this,t)),this._$AV.push(e),s=n[++r]}i!==s?.index&&(o=X.nextNode(),i++)}return X.currentNode=M,a}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,a){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=a,this._$Cv=a?.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=q(this,t,e),O(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Q&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>B(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!==Y&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(M.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,a="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=K.createElement(J(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(e);else{const t=new $(a,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new K(t)),e}k(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,a=0;for(const o of t)a===e.length?e.push(n=new tt(this.O(I()),this.O(I()),this,this.options)):n=e[a],n._$AI(o),a++;a<e.length&&(this._$AR(n&&n._$AB.nextSibling,a),e.length=a)}_$ALine truncated
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/},ct=globalThis;let dt=class extends A{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=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}};dt._$litElement$=!0,dt.finalized=!0,ct.litElementHydrateSupport?.({LitElement:dt});const ut=ct.litElementPolyfillSupport;ut?.({LitElement:dt}),(ct.litElementVersions??=[]).push("4.2.2");
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const ht=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});let mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const{I:pt}=rt,yt=t=>t,_t=(t,e)=>void 0!==t?._$litType$,ft=()=>document.createComment(""),vt=(t,e,n)=>{const a=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===n){const e=a.insertBefore(ft(),o),i=a.insertBefore(ft(),o);n=new pt(e,i,t,t.options)}else{const e=n._$AB.nextSibling,i=n._$AM,r=i!==t;if(r){let e;n._$AQ?.(t),n._$AM=t,void 0!==n._$AP&&(e=t._$AU)!==i._$AU&&n._$AP(e)}if(e!==o||r){let t=n._$AA;for(;t!==e;){const e=yt(t).nextSibling;yt(a).insertBefore(t,o),t=e}}}return n},wt=(t,e,n=t)=>(t._$AI(e,n),t),bt={},At=(t,e=bt)=>t._$AH=e,xt=t=>t._$AH,Pt=t=>{t._$AR(),t._$AA.remove()},Et=t=>(t=>null!=t?._$litType$?.h)(t)?t._$litType$.h:t.strings,Lt=gt(class extends mt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){const n=_t(this.it)?Et(this.it):null,a=_t(e)?Et(e):null;if(null!==n&&(null===a||n!==a)){const e=xt(t).pop();let a=this.et.get(n);if(void 0===a){const t=document.createDocumentFragment();a=lt(Y,t),a.setConnected(!1),this.et.set(n,a)}At(a,[e]),vt(a,void 0,e)}if(null!==a){if(null===n||n!==a){const e=this.et.get(a);if(void 0!==e){const n=xt(e).pop();(t=>{t._$AR()})(t),vt(t,void 0,n),At(t,[n])}}this.it=e}else this.it=void 0;return this.render(e)}}),Nt=gt(class extends mt{constructor(){super(...arguments),this.key=Y}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(At(t),this.key=e),n}}),Ct=t=>(e,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},Tt={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:w},St=(t=Tt,e,n)=>{const{kind:a,metadata:o}=n;let i=globalThis.litPropertyMetadata.get(o);if(void 0===i&&globalThis.litPropertyMetadata.set(o,i=new Map),"setter"===a&&((t=Object.create(t)).wrapped=!0),i.set(n.name,t),"accessor"===a){const{name:a}=n;return{set(n){const o=e.get.call(this);e.set.call(this,n),this.requestUpdate(a,o,t,!0,n)},init(e){return void 0!==e&&this.C(a,void 0,t,e),e}}}if("setter"===a){const{name:a}=n;return function(n){const o=this[a];e.call(this,n),this.requestUpdate(a,o,t,!0,n)}}throw Error("Unsupported decorator location: "+a)};
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/function Mt(t){return(e,n)=>"object"==typeof n?St(t,e,n):((t,e,n)=>{const a=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),a?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
function It(t,e){return(e,n,a)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}function Ot(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Bt,Dt;const kt=r(Bt||(Bt=Ot(["\n\t.container {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tpadding: 5px;\n\t}\n\n\t.card {\n\t\tborder-radius: var(--ha-card-border-radius, 10px);\n\t\tbox-shadow: var(\n\t\t\t--ha-card-box-shadow,\n\t\t\t0px 0px 0px 1px rgba(0, 0, 0, 0.12),\n\t\t\t0px 0px 0px 0px rgba(0, 0, 0, 0.12),\n\t\t\t0px 0px 0px 0px rgba(0, 0, 0, 0.12)\n\t\t);\n\t\tbackground: var(--ha-card-background, var(--card-background-color, white));\n\t\tborder-width: var(--ha-card-border-width);\n\t\tpadding: 0px;\n\t}\n\n\ttext {\n\t\ttext-anchor: middle;\n\t\tdominant-baseline: middle;\n\t}\n\n\t.left-align {\n\t\ttext-anchor: start;\n\t}\n\t.right-align {\n\t\ttext-anchor: end;\n\t}\n\t.st1 {\n\t\tfill: #ff9b30;\n\t}\n\t.st2 {\n\t\tfill: #f3b3ca;\n\t}\n\t.st3 {\n\t\tfont-size: 9px;\n\t}\n\t.st4 {\n\t\tfont-size: 14px;\n\t}\n\t.st5 {\n\t\tfill: #969696;\n\t}\n\t.st6 {\n\t\tfill: #5fb6ad;\n\t}\n\t.st7 {\n\t\tfill: #5490c2;\n\t}\n\t.st8 {\n\t\tfont-weight: 500;\n\t}\n\t.st9 {\n\t\tfill: #959595;\n\t}\n\t.st10 {\n\t\tfont-size: 16px;\n\t}\n\t.st11 {\n\t\tfill: transparent;\n\t}\n\t.st12 {\n\t\tdisplay: none;\n\t}\n\t.st13 {\n\t\tfont-size: 22px;\n\t}\n\t.st14 {\n\t\tfont-size: 12px;\n\t}\n\t.remaining-energy {\n\t\tfont-size: 9px;\n\t}\n"]))),Vt=t=>W(Dt||(Dt=Ot(["\n\t<style>\n\t\t.essload1-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.essload2-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.essload1-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload2-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload3-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload4-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload5-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.essload6-small-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 20px;\n\t\t}\n\n\t\t.grid-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 64px;\n\t\t}\n\n\t\t.essload1-icon-full {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 36px;\n\t\t}\n\n\t\t.aux-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.aux-small-icon-1 {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 24px;\n\t\t}\n\n\t\t.aux-small-icon-2 {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 24px;\n\t\t}\n\n\t\t.aux-off-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.nonessload1-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.nonessload2-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.nonessload3-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\n\t\t.noness-icon {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 70px;\n\t\t}\n\n\t\t.grid-icon-small {\n\t\t\tcolor: "," !important;\n\t\t\t--mdc-icon-size: 32px;\n\t\t}\n\t</style>\n"])),t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2,t.dynamicColourEssentialLoad1,t.dynamicColourEssentialLoad2,t.dynamicColourEssentialLoad3,t.dynamicColourEssentialLoad4,t.dynamicColourEssentialLoad5,t.dynamicColourEssentialLoad6,t.customGridIconColour,t.dynamicColourEssentialLoad1,t.auxDynamicColour,t.auxDynamicColourLoad1,t.auxDynamicColourLoad2,t.auxOffColour,t.dynamicColourNonEssentialLoad1,t.dynamicColourNonEssentialLoad2,t.dynamicColourNonEssentialLoad3,t.gridColour,t.customGridIconColour);var zt,Rt,jt;!function(t){t.Azzurro="azzurro",t.CESBatteryBox="ces-battery-box",t.Chisage="chisage",t.Deye="deye",t.DeyeNew="deye-new",t.E3dc="e3dc",t.Easun="easun",t.Ferroamp="ferroamp",t.FoxESS="foxess",t.Fronius="fronius",t.Goodwe="goodwe",t.GoodweGridMode="goodwe_gridmode",t.Growatt="growatt",t.Huawei="huawei",t.Linky="linky",t.Lux="lux",t.MakeSkyBlue="makeskyblue",t.MPPSolar="mppsolar",t.PowMr="powmr",t.Sigenergy="sigenergy",t.SMASolar="smasolar",t.Sofar="sofar",t.SolarEdge="solaredge",t.Solax="solax",t.Solis="solis",t.Solinteg="solinteg",t.SRNEHES="srne-hes",t.Sungrow="sungrow",t.Sunsynk="sunsynk",t.Victron="victron"}(zt||(zt={})),function(t){t.Compact="compact",t.Lite="lite",t.Full="full"}(Rt||(Rt={})),function(t){t.Energy="energy",t.Power="power",t.No="no"}(jt||(jt={}));var Gt={cardstyle:"lite",wide:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,center_no_grid:!1,card_height:"100%",card_width:"100%",decimal_places:2,decimal_places_eLine truncated
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/var ua;var ha,ga,ma,pa,ya,_a,fa,va,wa,ba,Aa,xa,Pa,Ea,La;function Na(t,e,n,a,o,i=30,r=30,s=!0){return e&&t?Z(ha||(ha=Ot(['\n <a href="#" @click=','>\n <foreignObject x="','" y="','" width="','" height="','" display="','">\n <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: ',"px; height: ",'px;">\n <ha-icon icon="','" class="','"></ha-icon>\n </div>\n </foreignObject>\n </a>'])),e=>kn.handlePopup(e,t),a,o,i,r,s?"":"none",i,r,e,n):e?Z(ga||(ga=Ot(['\n <foreignObject x="','" y="','" width="','" height="','" display="','">\n <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; width: ',"px; height: ",'px;">\n <ha-icon icon="','" class="','"></ha-icon>\n </div>\n </foreignObject>'])),a,o,i,r,s?"":"none",i,r,e,n):""}const Ca=(t,e)=>{const n=Ft.includes(t.gridStatus.toLowerCase()),a=Yt.includes(t.gridStatus.toLowerCase()),o=t.totalGridPower,i=t.gridColour,r=e.inverter.three_phase;return Z(ma||(ma=Ot(['\n <svg xmlns="http://www.w3.org/2000/svg" id="transmission_on"\n x="','"\n y="','"\n width="','"\n height="','" viewBox="0 0 24 24">\n <path class="','"\n fill="','"\n display="','"\n d="','"/>\n </svg>\n <svg xmlns="http://www.w3.org/2000/svg" id="transmission_off"\n x="','"\n y="','"\n width="','"\n height="','" viewBox="0 0 24 24">\n <path class="','"\n fill="','" display="','"\n d="','"/>\n </svg>\n <svg xmlns="http://www.w3.org/2000/svg" id="grid_export"\n x="','"\n y="','"\n width="','"\n height="','" viewBox="0 0 24 24">\n <path class="','"\n fill="','"\n display="','"\n d="','"/>\n </svg>\n '])),r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",a?"st12":"",i,o<0||e.grid.import_icon?"none":"",Vn.gridOn,r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",n?"st12":"",t.gridOffColour,e.grid.disconnected_icon?"none":"",Vn.gridOff,r?"404":"389",r?"339":"308",r?"34":"65",r?"34":"65",a?"st12":"",i,o>=0||e.grid.export_icon?"none":"",Vn.gridExport)},Ta=(t,e)=>{const{nonessentialLoads:n,showNonessential:a,decimalPlaces:o,gridColour:i,largeFont:r,totalGridPower:s,autoScaledGridPower:l}=t,{auto_scale:c,invert_flow:d}=e.grid,{three_phase:u}=e.inverter;return W(pa||(pa=Ot(['\n\t\t\x3c!-- Grid Elements --\x3e\n\t\t<svg\n\t\t\tid="Grid"\n\t\t\tstyle="overflow: visible; display: ',';"\n\t\t\tx="','"\n\t\t\ty="2.5%"\n\t\t>\n\t\t\t<svg id="nonessential3" style="overflow: visible">\n\t\t\t\t<rect\n\t\t\t\t\tid="noness3"\n\t\t\t\t\tx="266"\n\t\t\t\t\ty="310"\n\t\t\t\t\twidth="35"\n\t\t\t\t\theight="20"\n\t\t\t\t\trx="4.5"\n\t\t\t\t\try="4.5"\n\t\t\t\t\tdisplay="','"\n\t\t\t\t\tfill="none"\n\t\t\t\t\tstroke="','"\n\t\t\t\t\tpointer-events="all"\n\t\t\t\t\tclass="','"\n\t\t\t\t/>\n\t\t\t\t','\n\t\t\t\t<g\n\t\t\t\t\tdisplay="','"\n\t\t\t\t>\n\t\t\t\t\t',"\n\t\t\t\t</g>\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<rect\n\t\t\t\tx="234"\n\t\t\t\ty="153"\n\t\t\t\twidth="70"\n\t\t\t\theight="70"\n\t\t\t\trx="10.5"\n\t\t\t\try="10.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tx="386"\n\t\t\t\ty="265"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="nonesstotal"\n\t\t\t\tx="304"\n\t\t\t\ty="265"\n\t\t\t\twidth="70"\n\t\t\t\theight="30"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness1"\n\t\t\t\tx="304"\n\t\t\t\ty="310"\n\t\t\t\twidth="70"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness1"\n\t\t\t\tx="303"\n\t\t\t\ty="310"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t<rect\n\t\t\t\tid="noness2"\n\t\t\t\tx="340"\n\t\t\t\ty="310"\n\t\t\t\twidth="35"\n\t\t\t\theight="20"\n\t\t\t\trx="4.5"\n\t\t\t\try="4.5"\n\t\t\t\tdisplay="','"\n\t\t\t\tfill="none"\n\t\t\t\tstroke="','"\n\t\t\t\tpointer-events="all"\n\t\t\t\tclass="','"\n\t\t\t/>\n\t\t\t',"\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t","\n\t\t\t",'\n\t\t\t<svg id="grid-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",'\n\t\t\t</svg>\n\t\t\t<svg id="grid1-flow">\n\t\t\t\t',"\n\t\t\t\t","\n\t\t\t\t",Line truncated
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var bi,Ai,xi,Pi,Ei,Li,Ni=(vi||(vi=1,bi=wi,Ai=wi.exports,function(){var t,e="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",o=32,i=128,r=256,s=1/0,l=9007199254740991,c=NaN,d=4294967295,u=[["ary",i],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",r]],h="[object Arguments]",g="[object Array]",m="[object Boolean]",p="[object Date]",y="[object Error]",_="[object Function]",f="[object GeneratorFunction]",v="[object Map]",w="[object Number]",b="[object Object]",A="[object Promise]",x="[object RegExp]",P="[object Set]",E="[object String]",L="[object Symbol]",N="[object WeakMap]",C="[object ArrayBuffer]",T="[object DataView]",S="[object Float32Array]",M="[object Float64Array]",I="[object Int8Array]",O="[object Int16Array]",B="[object Int32Array]",D="[object Uint8Array]",k="[object Uint8ClampedArray]",V="[object Uint16Array]",z="[object Uint32Array]",R=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,W=RegExp(H.source),Z=RegExp(U.source),Q=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,K=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,q=/[\\^$.*+?()[\]{}|]/g,$=RegExp(q.source),tt=/^\s+/,et=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,it=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rt=/[()=,{}\[\]\/\s]/,st=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ct=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ut=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,mt=/^(?:0|[1-9]\d*)$/,pt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,_t=/['\n\r\u2028\u2029\\]/g,ft="\\ud800-\\udfff",vt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",wt="\\u2700-\\u27bf",bt="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",xt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Et="['’]",Lt="["+ft+"]",Nt="["+Pt+"]",Ct="["+vt+"]",Tt="\\d+",St="["+wt+"]",Mt="["+bt+"]",It="[^"+ft+Pt+Tt+wt+bt+At+"]",Ot="\\ud83c[\\udffb-\\udfff]",Bt="[^"+ft+"]",Dt="(?:\\ud83c[\\udde6-\\uddff]){2}",kt="[\\ud800-\\udbff][\\udc00-\\udfff]",Vt="["+At+"]",zt="\\u200d",Rt="(?:"+Mt+"|"+It+")",jt="(?:"+Vt+"|"+It+")",Gt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Ct+"|"+Ot+")?",Wt="["+xt+"]?",Zt=Wt+Ut+"(?:"+zt+"(?:"+[Bt,Dt,kt].join("|")+")"+Wt+Ut+")*",Qt="(?:"+[St,Dt,kt].join("|")+")"+Zt,Yt="(?:"+[Bt+Ct+"?",Ct,Dt,kt,Lt].join("|")+")",Ft=RegExp(Et,"g"),Xt=RegExp(Ct,"g"),Jt=RegExp(Ot+"(?="+Ot+")|"+Yt+Zt,"g"),Kt=RegExp([Vt+"?"+Mt+"+"+Gt+"(?="+[Nt,Vt,"$"].join("|")+")",jt+"+"+Ht+"(?="+[Nt,Vt+Rt,"$"].join("|")+")",Vt+"?"+Rt+"+"+Gt,Vt+"+"+Ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt,Qt].join("|"),"g"),qt=RegExp("["+zt+ft+vt+xt+"]"),$t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,te=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ee=-1,ne={};ne[S]=ne[M]=ne[I]=ne[O]=ne[B]=ne[D]=ne[k]=ne[V]=ne[z]=!0,ne[h]=ne[g]=ne[C]=ne[m]=ne[T]=ne[p]=ne[y]=ne[_]=ne[v]=ne[w]=ne[b]=ne[x]=ne[P]=ne[E]=ne[N]=!1;var ae={};ae[h]=ae[g]=ae[C]=ae[T]=ae[m]=ae[p]=ae[S]=ae[M]=ae[I]=ae[O]=ae[B]=ae[v]=ae[w]=ae[b]=ae[x]=ae[P]=ae[E]=ae[L]=ae[D]=ae[k]=ae[V]=ae[z]=!0,ae[y]=ae[_]=ae[N]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ie=parseFloat,re=parseInt,se="object"==typeof Nn&&Nn&&Nn.Object===Object&&Nn,le="object"==typeof self&&self&&self.Object===Object&&self,ce=se||le||Function("return this")(),de=Ai&&!Ai.nodeType&&Ai,ue=de&&bi&&!bi.nodeType&&bi,he=ue&&ue.exports===de,ge=he&&se.process,me=function(){try{var t=ue&&ue.require&&ue.require("util").types;return t||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),pe=me&&me.isArrayBuffer,ye=me&&me.isDate,_e=me&&me.isMap,fe=me&&me.isRegExp,ve=me&&me.isSet,we=me&&me.isTypedArray;function be(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ae(t,e,n,a){for(var o=-1,i=null==t?0:t.length;++o<i;){var r=t[o];e(a,r,n(r),t)}return a}function xe(t,e){for(var n=-1,a=null==t?0:t.length;++n<a&&!1!==e(t[n],n,t););return t}function Pe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ee(t,e){for(var n=-1,a=null==t?0:t.length;++n<a;)if(!e(t[n],n,Line truncated
//# sourceMappingURL=sunsynk-power-flow-card.js.map