diff --git a/dist/sunsynk-power-flow-card.js b/dist/sunsynk-power-flow-card.js
index ce318fdd..347c8593 100644
--- a/dist/sunsynk-power-flow-card.js
+++ b/dist/sunsynk-power-flow-card.js
@@ -15,13 +15,13 @@ const n=globalThis,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const L=globalThis,T=L.trustedTypes,E=T?T.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,N="?"+M,k=`<${N}>`,S=document,I=()=>S.createComment(""),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,D=Array.isArray,H="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,G=/>/g,V=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,q=/"/g,j=/^(?:script|style|textarea|title)$/i,Z=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),W=Z(1),U=Z(2),Q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),X=new WeakMap,Y=S.createTreeWalker(S,129);function J(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(t):t}const K=(e,t)=>{const n=e.length-1,a=[];let o,r=2===t?"":"",i=z;for(let t=0;t"===l[0]?(i=o??z,d=-1):void 0===l[1]?d=-2:(d=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?V:'"'===l[3]?q:R):i===q||i===R?i=V:i===B||i===G?i=z:(i=V,o=void 0);const u=i===V&&e[t+1].startsWith("/>")?" ":"";r+=i===z?n+k:d>=0?(a.push(s),n.slice(0,d)+C+n.slice(d)+M+u):n+M+(-2===d?t:u)}return[J(e,r+(e[n]||">")+(2===t?" ":"")),a]};class ${constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let o=0,r=0;const i=e.length-1,s=this.parts,[l,d]=K(e,t);if(this.el=$.createElement(l,n),Y.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=Y.nextNode())&&s.length0){a.textContent=T?T.emptyScript:"";for(let n=0;nD(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==F&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(S.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,a="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=$.createElement(J(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{const e=new te(a,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=X.get(e.strings);return void 0===t&&X.set(e.strings,t=new $(e)),t}k(e){D(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,a=0;for(const o of e)a===t.length?t.push(n=new ne(this.S(I()),this.S(I()),this,this.options)):n=t[a],n._$AI(o),a++;a2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(e,t=this,n,a){const o=this.strings;let r=!1;if(void 0===o)e=ee(this,e,t,0),r=!O(e)||e!==this._$AH&&e!==Q,r&&(this._$AH=e);else{const a=e;let i,s;for(e=o[0],i=0;ie}):void 0,C="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,N="?"+M,k=`<${N}>`,I=document,S=()=>I.createComment(""),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,D=Array.isArray,H="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,V=/>/g,G=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,j=/"/g,q=/^(?:script|style|textarea|title)$/i,Z=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),W=Z(1),U=Z(2),Q=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),X=new WeakMap,Y=I.createTreeWalker(I,129);function J(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(t):t}const K=(e,t)=>{const n=e.length-1,a=[];let o,r=2===t?"":"",i=z;for(let t=0;t"===l[0]?(i=o??z,d=-1):void 0===l[1]?d=-2:(d=i.lastIndex-l[2].length,s=l[1],i=void 0===l[3]?G:'"'===l[3]?j:R):i===j||i===R?i=G:i===B||i===V?i=z:(i=G,o=void 0);const u=i===G&&e[t+1].startsWith("/>")?" ":"";r+=i===z?n+k:d>=0?(a.push(s),n.slice(0,d)+C+n.slice(d)+M+u):n+M+(-2===d?t:u)}return[J(e,r+(e[n]||">")+(2===t?" ":"")),a]};class ${constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let o=0,r=0;const i=e.length-1,s=this.parts,[l,d]=K(e,t);if(this.el=$.createElement(l,n),Y.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=Y.nextNode())&&s.length0){a.textContent=T?T.emptyScript:"";for(let n=0;nD(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==F&&O(this._$AH)?this._$AA.nextSibling.data=e:this.T(I.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,a="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=$.createElement(J(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(t);else{const e=new te(a,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=X.get(e.strings);return void 0===t&&X.set(e.strings,t=new $(e)),t}k(e){D(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,a=0;for(const o of e)a===t.length?t.push(n=new ne(this.S(S()),this.S(S()),this,this.options)):n=t[a],n._$AI(o),a++;a2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=F}_$AI(e,t=this,n,a){const o=this.strings;let r=!1;if(void 0===o)e=ee(this,e,t,0),r=!O(e)||e!==this._$AH&&e!==Q,r&&(this._$AH=e);else{const a=e;let i,s;for(e=o[0],i=0;i{const a=n?.renderBefore??t;let o=a._$litPart$;if(void 0===o){const e=n?.renderBefore??null;a._$litPart$=o=new ne(t.insertBefore(I(),e),e,void 0,n??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}}de._$litElement$=!0,de.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:de});const ce=globalThis.litElementPolyfillSupport;ce?.({LitElement:de}),(globalThis.litElementVersions??=[]).push("4.0.4");
+class de extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,n)=>{const a=n?.renderBefore??t;let o=a._$litPart$;if(void 0===o){const e=n?.renderBefore??null;a._$litPart$=o=new ne(t.insertBefore(S(),e),e,void 0,n??{})}return o._$AI(e),o})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}}de._$litElement$=!0,de.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:de});const ce=globalThis.litElementPolyfillSupport;ce?.({LitElement:de}),(globalThis.litElementVersions??=[]).push("4.0.4");
/**
* @license
* Copyright 2017 Google LLC
@@ -48,7 +48,7 @@ const ye=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
- */;function me(e,t){return(n,a,o)=>{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof a?n:o??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ye(n,a,{get(){let n=e.call(this);return void 0===n&&(n=r(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return ye(n,a,{get(){return r(this)}})}}function fe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ve;const we=s(ve||(ve=fe(["\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 5px;\n }\n\n .card {\n border-radius: var(--ha-card-border-radius, 10px);\n box-shadow: var(--ha-card-box-shadow, 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));\n background: var(--ha-card-background, var(--card-background-color, white));\n border-width: var(--ha-card-border-width);\n padding: 0px;\n }\n\n text { text-anchor: middle; dominant-baseline: middle; }\n\n .left-align {text-anchor: start;}\n .right-align {text-anchor: end;}\n .st1{fill:#ff9b30;}\n .st2{fill:#f3b3ca;}\n .st3{font-size:9px;}\n .st4{font-size:14px;}\n .st5{fill:#969696;}\n .st6{fill:#5fb6ad;}\n .st7{fill:#5490c2;}\n .st8{font-weight:500}\n .st9{fill:#959595;}\n .st10{font-size:16px;}\n .st11{fill:transparent;}\n .st12{display:none;}\n .st13{font-size:22px;}\n .st14{font-size:12px;}\n\n "])));var _e,xe,be;!function(e){e.Sunsynk="sunsynk",e.Lux="lux",e.GoodweGridMode="goodwe_gridmode",e.Goodwe="goodwe",e.Solis="solis",e.Huawei="huawei",e.FoxESS="foxess",e.Solax="solax",e.Victron="victron",e.Fronius="fronius",e.SolarEdge="solaredge",e.Growatt="growatt",e.Sofar="sofar",e.CESBatteryBox="ces-battery-box"}(_e||(_e={})),function(e){e.Compact="compact",e.Lite="lite",e.Full="full"}(xe||(xe={})),function(e){e.Energy="energy",e.Power="power",e.No="no"}(be||(be={}));var Ae={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"KØRSTID TIL",battery_floating:"BATTERI FLYDENDE",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG BELASTNING",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF ELEKTRICITET FRA NETTET",daily_grid_sell:"DAGLIG SALG AF ELEKTRICITET TIL NETTET",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RENT I DAG",total_solar_generation:"DAGLIG SOLAR / TOTAL SOLAR",daily_charge:"DAGLIG OPLADNING",daily_discharge:"DAGLIG AFLADNING",ratio:"Forhold",timer_off:"Timer slukket",timer_on:"Timer tændt",priority_batt:"Prioritet Batteri",priority_load:"Prioritet Belastning",nonessential_name:"Ikke Væsentlig",aux_name:"Hjælpe",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Afladning",charging:"Opladning",waiting:"Ventende",standby:"Standby",no_battery:"Ingen batteri",selftest:"Selvtest",normal:"Normal",alarm:"Alarm",fault:"Fejl",days:"dage",hrs:"timer",min:"min",flash:"Flash",check:"Check",idle:"Inaktiv",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Pe={battery:{bat:"Ingen batteriattributter defineret",energy:"Inkluder venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Inkluder venligst batteri shutdown_soc-attribut og værdi, f.eks. shutdown_soc: 20",full_capacity:"Fuld kapacitet skal være mellem 80 og 100",empty_capacity:"Tom kapacitet skal være <= 40",show_daily:"Inkluder venligst attributterne day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen solattributter defineret",mppts:"Inkluder venligst solens mppts-attribut og værdi; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Inkluder venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Inkluder venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er indstillet til ingen. Inkluder venligst inverter_power_175-attribut og enheds-ID for, at kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Inkluder venligst grid_power_169-attribut og enheds-ID for, at kortet kan beregne denne værdi.",missing_entity:"Inkluder venligst attributten og enheds-ID'en"},Le={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Te={common:Ae,errors:Pe,config:Le},Ee={description:"Eine Home Assistant-Karte zur Emulation des Sunsynk-Stromflusses, der auf dem Inverter-Bildschirm angezeigt wird",version:"Version",runtime_to:"LAUFZEIT BIS",battery_floating:"BATTERIE haltend",charge:"AUFLADEN",to:"ZU",daily_load:"ENERGIE heute",daily_aux:"HILFSANTRIEB heute",daily_grid_buy:"NETZEINKAUF heute",daily_grid_sell:"NETZVERKAUF heute",daily_solar:"SOLAR heute",daily_solar_left:"SOLAR heute / VERBLEIBEND heute",total_solar_generation:"SOLAR heute / TOTAL SOLAR",daily_charge:"AUFLADUNG heute",daily_discharge:"ENTNAHME heute",ratio:"Verhältnis",timer_off:"Timer aus",timer_on:"Timer ein",priority_batt:"Batteriepriorität",priority_load:"Lastpriorität",nonessential_name:"Nebenverbraucher",aux_name:"Hilfsantrieb",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Hauptverbraucher",autarky:"Autark",discharging:"Entladen",charging:"Laden",waiting:"Warten",standby:"Bereitschaft",no_battery:"Keine Batterie",selftest:"Selbsttest",normal:"Normal",alarm:"Alarm",fault:"Fehler",days:"Tage",hrs:"Std",min:"Min",flash:"Flash",check:"Check",idle:"Leerlauf",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ce={battery:{bat:"Keine Batterieattribute definiert",energy:"Bitte fügen Sie das Batterieenergieattribut und den Wert in Wh hinzu, z.B. 5.32 Batterieenergie: 5320",shutdown_soc:"Bitte fügen Sie das Batterie-Shutdown-SOC-Attribut und den Wert hinzu, z.B. shutdown_soc: 20",full_capacity:"Die volle Kapazität muss zwischen 80 und 100 liegen",empty_capacity:"Die leere Kapazität muss <= 40 sein",show_daily:"Bitte fügen Sie die Tages-Batterieladung_70- und Tages-Batterieentladung_71-Attribute und die Entity-IDs hinzu"},solar:{sol:"Keine Solarattribute definiert",mppts:"Bitte fügen Sie das Solar-MPPT-Attribut und den Wert hinzu; 1,2,3 oder 4 z.B. mppts: 2",show_daily:"Bitte fügen Sie das Tages-PV-Energie_108-Attribut und die Entity-ID hinzu"},grid:{show_daily:"Bitte fügen Sie die Tages-Grideinspeisung_76- und Tages-Gridexport_77-Attribute und die Entity-IDs hinzu"},essential_power:"Das Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Inverter-Power_175-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",nonessential_power:"Das Nicht-Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Grid-Power_169-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",missing_entity:"Bitte fügen Sie das Attribut und die Entity-ID hinzu"},Me={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ne={common:Ee,errors:Ce,config:Me},ke={description:"A Home Assistant card to emulate the Sunsynk power flow that's shown on the Inverter screen",version:"Version",runtime_to:"RUNTIME TO",battery_floating:"BATTERY FLOATING",charge:"CHARGE",to:"TO",daily_load:"DAILY LOAD",daily_aux:"DAILY AUX",daily_grid_buy:"DAILY GRID BUY",daily_grid_sell:"DAILY GRID SELL",daily_solar:"DAILY SOLAR",daily_solar_left:"DAILY SOLAR / LEFT TODAY",total_solar_generation:"DAILY SOLAR / TOTAL SOLAR",daily_charge:"DAILY CHARGE",daily_discharge:"DAILY DISCHARGE",ratio:"Ratio",timer_off:"Timer off",timer_on:"Timer on",priority_batt:"Priority Batt",priority_load:"Priority Load",nonessential_name:"Non Essential",aux_name:"Auxiliary",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essential",autarky:"Autarky",discharging:"Discharging",charging:"Charging",waiting:"Waiting",standby:"Standby",no_battery:"No Battery",selftest:"Selftest",normal:"Normal",alarm:"Alarm",fault:"Fault",days:"days",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Idle",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Se={battery:{bat:"No battery attributes defined",energy:"Please include the battery energy attribute and value in Wh e.g. 5.32 Battery energy: 5320",shutdown_soc:"Please include the battery shutdown_soc attribute and value e.g shutdown_soc: 20",full_capacity:"Full capacity needs to be between 80 and 100",empty_capacity:"Empty capacity needs to be <= 40",show_daily:"Please include the day_battery_charge_70 and day_battery_discharge_71 attributes and entity IDs"},solar:{sol:"No solar attributes defined",mppts:"Please include the solar mppts attribute and value; 1,2,3 or 4 e.g. mppts: 2",show_daily:"Please include the day_pv_energy_108 attribute and entity ID"},grid:{show_daily:"Please include the day_grid_import_76 and day_grid_export_77 attributes and entity IDs"},essential_power:"The essential_power attribute is set to none. Please include the inverter_power_175 attribute and entity ID in order for the card to calculate this value.",nonessential_power:"The nonessential_power attribute is set to none. Please include the grid_power_169 attribute and entity ID in order for the card to calculate this value.",missing_entity:"`Please include the attribute and entity ID"},Ie={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Oe={common:ke,errors:Se,config:Ie},De={description:"Una tarjeta de Home Assistant para emular el flujo de energía Sunsynk que se muestra en la pantalla del inversor",version:"Versión",runtime_to:"TIEMPO DE FUNCIONAMIENTO HASTA",battery_floating:"BATERÍA EN FLOTACIÓN",charge:"CARGA",to:"A",daily_load:"CARGA DIARIA",daily_aux:"AUXILIAR DIARIO",daily_grid_buy:"COMPRA DIARIA DE LA RED",daily_grid_sell:"VENTA DIARIA A LA RED",daily_solar:"SOLAR DIARIO",daily_solar_left:"SOLAR DIARIO / LO QUE QUEDA HOY",total_solar_generation:"SOLAR DIARIO / TOTAL SOLAR",daily_charge:"CARGA DIARIA",daily_discharge:"DESCARGA DIARIA",ratio:"Relación",timer_off:"Temporizador apagado",timer_on:"Temporizador encendido",priority_batt:"Prioridad de la Batería",priority_load:"Prioridad de la Carga",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarky",discharging:"Descargando",charging:"Cargando",waiting:"Esperando",standby:"En Espera",no_battery:"Sin Batería",selftest:"Autoevaluación",normal:"Normal",alarm:"Alarma",fault:"Fallo",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inactivo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},He={battery:{bat:"No se han definido atributos de la batería",energy:"Por favor, incluye el atributo de energía de la batería y su valor en Wh, por ejemplo, 5.32 Energía de la batería: 5320",shutdown_soc:"Por favor, incluye el atributo shutdown_soc de la batería y su valor, por ejemplo shutdown_soc: 20",full_capacity:"La capacidad completa debe estar entre 80 y 100",empty_capacity:"La capacidad vacía debe ser <= 40",show_daily:"Por favor, incluye los atributos day_battery_charge_70 y day_battery_discharge_71 y las IDs de las entidades"},solar:{sol:"No se han definido atributos solares",mppts:"Por favor, incluye el atributo mppts solares y su valor; 1,2,3 o 4, por ejemplo, mppts: 2",show_daily:"Por favor, incluye el atributo day_pv_energy_108 y la ID de la entidad"},grid:{show_daily:"Por favor, incluye los atributos day_grid_import_76 y day_grid_export_77 y las IDs de las entidades"},essential_power:"El atributo essential_power está configurado como ninguno. Por favor, incluye el atributo inverter_power_175 y la ID de la entidad para que la tarjeta pueda calcular este valor.",nonessential_power:"El atributo nonessential_power está configurado como ninguno. Por favor, incluye el atributo grid_power_169 y la ID de la entidad para que la tarjeta pueda calcular este valor.",missing_entity:"Por favor, incluye el atributo y la ID de la entidad"},ze={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Be={common:De,errors:He,config:ze},Ge={description:"Home Assistant kaart Sunsynk võimsusvoogu emuleerimiseks, mis kuvatakse inverteri ekraanil",version:"Versioon",runtime_to:"TÖÖAEG KUNI",battery_floating:"UJUV AKU",charge:"LAADIMINE",to:"KUNI",daily_load:"PÄEVA KOORMUS",daily_aux:"PÄEVA ABISTAV",daily_grid_buy:"PÄEVA VÕRGUST OST",daily_grid_sell:"PÄEVA VÕRGU MÜÜK",daily_solar:"PÄEVA PÄIKE",daily_solar_left:"PÄEVA PÄIKE / TÄNA JÄÄNUD",total_solar_generation:"PÄEVA PÄIKE / TOTAL SOLAR",daily_charge:"PÄEVA LAADIMINE",daily_discharge:"PÄEVA TÜHJENDAMINE",ratio:"Suhe",timer_off:"Ajastus välja",timer_on:"Ajastus sisse",priority_batt:"Akuprioriteet",priority_load:"Koormuse prioriteet",nonessential_name:"Mitteoluline",aux_name:"Abiseadmed",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Oluline",autarky:"Autarky",discharging:"Tühjenemine",charging:"Laadimine",waiting:"Ootamine",standby:"Ooterežiim",no_battery:"Puudub aku",selftest:"Eneseanalüüs",normal:"Tavaline",alarm:"Häire",fault:"Rike",days:"päeva",hrs:"tundi",min:"min",flash:"Flash",check:"Check",idle:"Tühikäik",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ve={battery:{bat:"Aku atribuute pole määratletud",energy:"Palun sisestage aku energiat atribuut ja väärtus Wh-s, näiteks 5,32 Aku energia: 5320",shutdown_soc:"Palun sisestage aku shutdown_soc atribuut ja väärtus, näiteks shutdown_soc: 20",full_capacity:"Täiskasvanu maht peab olema vahemikus 80 kuni 100",empty_capacity:"Tühi mahutavus peab olema <= 40",show_daily:"Palun sisestage päeva_battery_charge_70 ja päeva_battery_discharge_71 atribuudid ning seadmete ID-d"},solar:{sol:"Päikesepaneelide atribuute pole määratletud",mppts:"Palun sisestage päikesepaneelide mppts atribuut ja väärtus; 1,2,3 või 4, näiteks mppts: 2",show_daily:"Palun sisestage päeva_pv_energy_108 atribuut ja seadme ID"},grid:{show_daily:"Palun sisestage päeva_grid_import_76 ja päeva_grid_export_77 atribuudid ning seadmete ID-d"},essential_power:"Olulise võimsuse atribuut on määratud puuduvaks. Palun sisestage inverteri_power_175 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",nonessential_power:"Mittetähtsa võimsuse atribuut on määratud puuduvaks. Palun sisestage võrgu_power_169 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",missing_entity:"Sisestage palun atribuut ja seadme ID"},Re={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},qe={common:Ge,errors:Ve,config:Re},je={description:"Une carte Home Assistant pour émuler les flux d'énergie affichés à l'écran des onduleurs Sunsynk ",version:"Version",runtime_to:"DÉCHARGÉE À",battery_floating:"BATTERIE FLOTTANTE",charge:"CHARGE",to:"À",daily_load:"CHARGE (JOUR)",daily_aux:"CHARGE AUX (JOUR)",daily_grid_buy:"ACHAT (JOUR)",daily_grid_sell:"VENTE (JOUR)",daily_solar:"PRODUCTION (JOUR)",daily_solar_left:"PRODUCTION / RESTANT (JOUR)",total_solar_generation:"PRODUCTION / TOTAL SOLAR",daily_charge:"CHARGE (JOUR)",daily_discharge:"DÉCHARGE (JOUR)",ratio:"Ratio",timer_off:"Prog. Off",timer_on:"Prog. On",priority_batt:"Batterie en 1er",priority_load:"Charges en 1er",nonessential_name:"Non Essentielles",aux_name:"Auxiliaire",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentielles",autarky:"AutoConso",discharging:"Décharge",charging:"Charge",waiting:"En attente",standby:"Veille",no_battery:"Pas de batterie",selftest:"Auto-test",normal:"Normal",alarm:"Alarme",fault:"Défaut",days:"jours",hrs:"heures",min:"min",flash:"Flash",check:"Check",idle:"Inactif",exporting:"Exportation",importing:"Importation",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Réseau"},Ze={battery:{bat:"Aucun attribut de batterie défini",energy:"Veuillez inclure l'attribut d'énergie de la batterie et la valeur en Wh, par exemple 5.32 Énergie de la batterie : 5320",shutdown_soc:"Veuillez inclure l'attribut de batterie shutdown_soc et la valeur, par exemple shutdown_soc : 20",full_capacity:"La capacité totale doit être comprise entre 80 et 100",empty_capacity:"La capacité vide doit être <= 40",show_daily:"Veuillez inclure les attributs day_battery_charge_70 et day_battery_discharge_71 ainsi que les ID d'entité"},solar:{sol:"Aucun attribut solaire défini",mppts:"Veuillez inclure l'attribut solaire mppts et la valeur ; 1,2,3 ou 4 par exemple mppts : 2",show_daily:"Veuillez inclure l'attribut day_pv_energy_108 et l'ID d'entité"},grid:{show_daily:"Veuillez inclure les attributs day_grid_import_76 et day_grid_export_77 ainsi que les ID d'entité"},essential_power:"L'attribut essential_power est réglé sur 'none'. Veuillez inclure l'attribut inverter_power_175 et l'ID d'entité afin que la carte puisse calculer cette valeur.",nonessential_power:"L'attribut nonessential_power est réglé sur 'none'. Veuillez inclure l'attribut grid_power_169 et l'ID d'entité afin que la carte puisse calculer cette valeur.",missing_entity:"Veuillez inclure l'attribut et l'ID d'entité"},We={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ue={common:je,errors:Ze,config:We},Qe={description:"Een Home Assistant-kaart om de Sunsynk energiestroom te emuleren die op het omvormerscherm wordt weergegeven",version:"Versie",runtime_to:"WERKTIJD TOT",battery_floating:"DRIJVENDE BATTERIJ",charge:"LADEN",to:"TOT",daily_load:"DAGELIJKSE BELASTING",daily_aux:"DAGELIJKSE HULP",daily_grid_buy:"DAGELIJKS NETSTROOM KOPEN",daily_grid_sell:"DAGELIJKSE NETSTROOM VERKOPEN",daily_solar:"DAGELIJKSE ZONNE-ENERGIE",daily_solar_left:"DAGELIJKSE ZONNE-ENERGIE / OVER VANDAAG",total_solar_generation:"DAGELIJKSE ZONNE-ENERGIE / TOTAL SOLAR",daily_charge:"DAGELIJKSE LADING",daily_discharge:"DAGELIJKSE ONTLADING",ratio:"Verhouding",timer_off:"Timer uit",timer_on:"Timer aan",priority_batt:"Batterijprioriteit",priority_load:"Belastingsprioriteit",nonessential_name:"Niet-Essentieel",aux_name:"Hulp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentieel",autarky:"Autarky",discharging:"Ontladen",charging:"Opladen",waiting:"Wachten",standby:"Standby",no_battery:"Geen batterij",selftest:"Zelftest",normal:"Normaal",alarm:"Alarm",fault:"Fout",days:"dagen",hrs:"uren",min:"minuten",flash:"Flash",check:"Check",idle:"Inactief",exporting:"Exporteren",importing:"Importeren",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Fe={battery:{bat:"Geen batterijattributen gedefinieerd",energy:"Voeg alstublieft het batterij-energieattribuut en de waarde in Wh toe, bijvoorbeeld 5.32 Batterij-energie: 5320",shutdown_soc:"Voeg alstublieft het batterij-shutdown_soc-attribuut en de waarde toe, bijvoorbeeld shutdown_soc: 20",full_capacity:"De volledige capaciteit moet tussen 80 en 100 liggen",empty_capacity:"De lege capaciteit moet <= 40 zijn",show_daily:"Voeg alstublieft de attributen day_battery_charge_70 en day_battery_discharge_71 toe, evenals de entiteits-ID's"},solar:{sol:"Geen zonne-attributen gedefinieerd",mppts:"Voeg alstublieft het zonne-mppts-attribuut en de waarde toe; 1,2,3 of 4 bijvoorbeeld mppts: 2",show_daily:"Voeg alstublieft het day_pv_energy_108-attribuut en de entiteits-ID toe"},grid:{show_daily:"Voeg alstublieft de attributen day_grid_import_76 en day_grid_export_77 toe, evenals de entiteits-ID's"},essential_power:"Het essential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het inverter_power_175-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",nonessential_power:"Het nonessential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het grid_power_169-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",missing_entity:"Voeg alstublieft het attribuut en de entiteits-ID toe"},Xe={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ye={common:Qe,errors:Fe,config:Xe},Je={description:"Карта Home Assistant для эмуляции потока энергии Sunsynk, отображаемого на экране инвертора",version:"Версия",runtime_to:"ВРЕМЯ ДО",battery_floating:"ПЛАВАЮЩАЯ БАТАРЕЯ",charge:"ЗАРЯД",to:"ДО",daily_load:"ЕЖЕДНЕВНАЯ НАГРУЗКА",daily_aux:"ЕЖЕДНЕВНАЯ ВСПОМОГАТЕЛЬНАЯ",daily_grid_buy:"ЕЖЕДНЕВНАЯ ПОКУПКА ИЗ СЕТИ",daily_grid_sell:"ЕЖЕДНЕВНАЯ ПРОДАЖА В СЕТЬ",daily_solar:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_solar_left:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ / ОСТАЛОСЬ СЕГОДНЯ",total_solar_generation:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ / TOTAL SOLAR",daily_charge:"ЕЖЕДНЕВНАЯ ЗАРЯДКА",daily_discharge:"ЕЖЕДНЕВНАЯ РАЗРЯДКА",ratio:"Соотношение",timer_off:"Таймер выключен",timer_on:"Таймер включен",priority_batt:"Приоритет батареи",priority_load:"Приоритет нагрузки",nonessential_name:"Не существенное",aux_name:"Вспомогательное",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Существенное",autarky:"Autarky",discharging:"Разряд",charging:"Зарядка",waiting:"Ожидание",standby:"Режим ожидания",no_battery:"Без батареи",selftest:"Самодиагностика",normal:"Нормально",alarm:"Авария",fault:"Неисправность",days:"дни",hrs:"часов",min:"мин",flash:"Flash",check:"Check",idle:"Бездействие",exporting:"Экспорт",importing:"Импорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ke={battery:{bat:"Не определены атрибуты батареи",energy:"Пожалуйста, включите атрибут батарейной энергии и значение в Втч, например, 5.32 Энергия батареи: 5320",shutdown_soc:"Пожалуйста, включите атрибут батарейного shutdown_soc и значение, например, shutdown_soc: 20",full_capacity:"Полная емкость должна быть в диапазоне от 80 до 100",empty_capacity:"Пустая емкость должна быть <= 40",show_daily:"Пожалуйста, включите атрибуты day_battery_charge_70 и day_battery_discharge_71 и идентификаторы сущностей"},solar:{sol:"Не определены атрибуты солнечной энергии",mppts:"Пожалуйста, включите атрибут солнечных mppts и значение; 1,2,3 или 4, например, mppts: 2",show_daily:"Пожалуйста, включите атрибут day_pv_energy_108 и идентификатор сущности"},grid:{show_daily:"Пожалуйста, включите атрибуты day_grid_import_76 и day_grid_export_77 и идентификаторы сущностей"},essential_power:"Атрибут essential_power установлен на 'none'. Пожалуйста, включите атрибут inverter_power_175 и идентификатор сущности, чтобы карта могла вычислить это значение.",nonessential_power:"Атрибут nonessential_power установлен на 'none'. Пожалуйста, включите атрибут grid_power_169 и идентификатор сущности, чтобы карта могла вычислить это значение.",missing_entity:"Пожалуйста, включите атрибут и идентификатор сущности"},$e={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},et={common:Je,errors:Ke,config:$e},tt={description:"Karta Home Assistant pro emulaci toku energie, který je zobrazen na displeji měniče Sunsynk",version:"Verze",runtime_to:"ČAS DO",battery_floating:"BATERIE JE NABITÁ",charge:"NABÍT",to:"DO",daily_load:"DNES SPOTŘEBA",daily_aux:"DENNÍ VSTUP",daily_grid_buy:"DNES NÁKUP",daily_grid_sell:"DNES PRODEJ",daily_solar:"DNES VÝROBA",daily_solar_left:"DNES VÝROBA / OČEKÁVANÁ VÝROBA",total_solar_generation:"DNES VÝROBA / CELKOVÁ VÝROBA",daily_charge:"DNES NABÍJENÍ",daily_discharge:"DNES VYBÍJENÍ",ratio:"Poměr",timer_off:"Časovač off",timer_on:"Časovač on",priority_batt:"Nabít Baterii z DS",priority_load:"Nabíjím Baterii z DS",nonessential_name:"Nedostupné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nezbytný",autarky:"Vlastní",discharging:"Vybíjí se",charging:"Nabíjí se",waiting:"Čeká",standby:"Standby",no_battery:"Není baterie",selftest:"Vlastní test",normal:"Normální",alarm:"Alarm",fault:"Chyba",days:"dní",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinný",exporting:"Odesílání",importing:"Příjem",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},nt={battery:{bat:"Nejsou definovány žádné atributy baterie",energy:"Uveďte prosím atribut energie baterie a hodnotu ve Wh, např. 5,32 Energie baterie: 5320",shutdown_soc:"Uveďte atribut battery shut down_soc a hodnotu, např. shutdown_soc: 20 shutdown_soc: 20",full_capacity:"Plná kapacita musí být mezi 80 a 100",empty_capacity:"Prázdná kapacita musí být <= 40",show_daily:"Uveďte prosím atributy day_battery_charge_70 a day_battery_discharge_71 a ID entit"},solar:{sol:"Nejsou definovány žádné solar atributy",mppts:"Uveďte prosím atribut a hodnotu solar mppts; 1,2,3 nebo 4 např. mppts: 2",show_daily:"Uveďte prosím atribut day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte prosím atributy day_grid_import_76 a day_grid_export_77 a ID entit"},essential_power:"Atribut essential_power je nastaven na hodnotu none. Uveďte prosím atribut inverter_power_175 a ID entity, aby karta mohla vypočítat tuto hodnotu.",nonessential_power:"Atribut neesenciální_výkon je nastaven na hodnotu none. Uveďte prosím atribut grid_power_169 a ID entity, aby karta mohla vypočítat tuto hodnotu.",missing_entity:"Uveďte prosím atribut a ID entity"},at={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},ot={common:tt,errors:nt,config:at},rt={description:"Una scheda Home Assistant per emulare il flusso di potenza Sunsynk visualizzato sullo schermo dell'inverter",version:"Versione",runtime_to:"DURATA AL",battery_floating:"BATTERY CARICA",charge:"CARICA",to:"A",daily_load:"CONSUMO OGGI",daily_aux:"AUX OGGI",daily_grid_buy:"PRELIEVO OGGI DA RETE",daily_grid_sell:"CESSIONE OGGI IN RETE",daily_solar:"ENERGIA SOLARE OGGI",daily_solar_left:"ENERGIA SOLARE OGGI / STIMA RIMANENTE",total_solar_generation:"ENERGIA SOLARE OGGI / TOTAL SOLAR",daily_charge:"CARICA OGGI",daily_discharge:"SCARICA OGGI",ratio:"Rapporto",timer_off:"Spegnimento timer",timer_on:"Accensione timer",priority_batt:"Priorità batteria",priority_load:"Priorità carico",nonessential_name:" Non Essenziale",aux_name:"Ausiliario",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essenziale",autarky:"Autarky",discharging:"Scarica",charging:"Carica",waiting:"In attesa",standby:"Standby",no_battery:"Nessuna batteria",selftest:"Auto-test",normal:"Normale",alarm:"Allarme",fault:"Guasto",days:"giorni",hrs:"ore",min:"min",flash:"Flash",check:"Check",idle:"Inattivo",exporting:"Esportazione",importing:"Importazione",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},it={battery:{bat:"Nessun attributo della batteria definito",energy:"Si prega di includere l'attributo dell'energia della batteria e il valore in Wh, ad esempio 5,32 Energia della batteria: 5320",shutdown_soc:"Si prega di includere l'attributo di spegnimento della batteria e il valore, ad esempio spegnimento_soc: 20",full_capacity:"La capacità massima deve essere compresa tra 80 e 100",empty_capacity:"La capacità vuota deve essere <= 40",show_daily:"Si prega di includere gli attributi day_battery_charge_70 e day_battery_discharge_71 e gli ID delle entità"},solar:{sol:"Nessun attributo solare definito",mppts:"Si prega di includere l'attributo solare mppts e il valore; 1,2,3 o 4, ad esempio mppts: 2",show_daily:"Si prega di includere l'attributo day_pv_energy_108 e l'ID dell'entità"},grid:{show_daily:"Si prega di includere gli attributi day_grid_import_76 e day_grid_export_77 e gli ID delle entità"},essential_power:"L'attributo essential_power è impostato su none. Si prega di includere l'attributo inverter_power_175 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",nonessential_power:"L'attributo nonessential_power è impostato su none. Si prega di includere l'attributo grid_power_169 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",missing_entity:"Si prega di includere l'attributo e l'ID dell'entità"},st={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},lt={common:rt,errors:it,config:st},dt={description:"Una tarjeta de Home Assistant per emular el flxue d'energoa Sunsynk que es mostra a la pantalla de l'inversor",version:"Versió",runtime_to:"TEMPS DE FUNCIONAMENT FINS",battery_floating:"BATERIA EN FLOTACIÓ",charge:"CÀRREGA",to:"A",daily_load:"CÀRREGA DIÀRIA",daily_aux:"AUXILIAR DIARI",daily_grid_buy:"COMPRA DIÀRIA DE LA XARXA",daily_grid_sell:"VENDA DIÀRIA A LA XARXA",daily_solar:"SOLAR DIARI",daily_solar_left:"SOLAR DIARI / RESTA AVUI",total_solar_generation:"SOLAR DIARI / TOTAL SOLAR",daily_charge:"CÀRREGA DIÀRIA",daily_discharge:"DESCÀRREGA DIÀRIA",ratio:"Relació",timer_off:"Temporitzador apagat",timer_on:"Temporitzador encès",priority_batt:"Prioritat de la Bateria",priority_load:"Prioritat de la Càrrega",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essencial",autarky:"Autarky",discharging:"Descàrrega",charging:"Càrrega",waiting:"Esperant",standby:"En espera",no_battery:"Sense bateria",selftest:"Prova automàtica",normal:"Normal",alarm:"Alarma",fault:"Avaria",days:"dies",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Inactiu",exporting:"Exportació",importing:"Importació",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},ct={battery:{bat:"No s'han definit atributs de la bateria",energy:"Si us plau, inclou l'atribut d'energia de la bateria i el seu valor a Wh, per exemple, 5.32 Energia de la bateria: 5320",shutdown_soc:"Si us plau, inclou l'atribut shutdown_soc de la bateria i el seu valor, per exemple shutdown_soc: 20",full_capacity:"La capacitat completa ha d'estar entre 80 i 100",empty_capacity:"La capacitat buida ha de ser <= 40",show_daily:"Si us plau, inclou els atributs day_battery_charge_70 i day_battery_discharge_71 i les IDs de les entitats"},solar:{sol:"No s'han definit cap atribut solar",mppts:"Si us plau, inclou l'atribut mppts solars i el seu valor; 1,2,3 o 4, per exemple, mppts: 2",show_daily:"Si us plau, inclou l'atribut day_pv_energy_108 i la ID de l'entitat"},grid:{show_daily:"Si us plau, inclou els atributs day_grid_import_76 i day_grid_export_77 i les IDs de les entitats"},essential_power:"L'atribut essential_power està configurat com a cap. Inclou l'atribut inverter_power_175 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",nonessential_power:"L'atribut nonessential_power està configurat com a cap. Inclou l'atribut grid_power_169 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",missing_entity:"Si us plau, inclou l'atribut i la ID de l'entitat"},ut={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",decimal_places:"Decimal Places",card_height:"Card Height (px)",card_width:"Card Width (px)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},ht={common:dt,errors:ct,config:ut},pt={description:"Karta Home Assistant na emuláciu Sunsynk power flow, ktorý sa zobrazuje na obrazovke invertora",version:"Verzia",runtime_to:"RUNTIME DO",battery_floating:"PLÁVAJÚCA BATÉRIA",charge:"NABÍJANIE",to:"DO",daily_load:"DENNÁ ZÁŤAŽ",daily_aux:"DAILY POM",daily_grid_buy:"SIEŤ DENNÝ NÁKUP",daily_grid_sell:"SIEŤ DENNÝ PREDAJ",daily_solar:"DENNÝ SLNKO",daily_solar_left:"DENNÉ SLNKO / ZOSTÁVA DNES",total_solar_generation:"DENNÉ SLNKO / CELKOVO SLNKO",daily_charge:"DENNÉ NABÍJANIE",daily_discharge:"DENNÉ VYBÍJANIE",ratio:"Pomer",timer_off:"Časovač vypnutý",timer_on:"Časovač zapnutý",priority_batt:"Priorita Bat",priority_load:"Priorita Záťaž",nonessential_name:"Nepodstatné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Podstatné",autarky:"Autarky",discharging:"Vykladanie",charging:"Nabíjanie",waiting:"Čakanie",standby:"Pohotovostný režim",no_battery:"Žiadna batéria",selftest:"Samotest",normal:"Normálny",alarm:"Poplach",fault:"Porucha",days:"dni",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinnosť",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},gt={battery:{bat:"Nie sú definované žiadne atribúty batérie",energy:"Uveďte atribút energie batérie a hodnotu vo Wh, napr. 5,32 Energia batérie: 5320",shutdown_soc:"Uveďte atribút vypnutia batérie a hodnotu, napr. shutdown_soc: 20",full_capacity:"Plná kapacita musí byť medzi 80 a 100",empty_capacity:"Prázdna kapacita musí byť <= 40",show_daily:"Uveďte atribúty day_battery_charge_70 a day_battery_discharge_71 a ID entity"},solar:{sol:"Nie sú definované žiadne solárne atribúty",mppts:"Uveďte atribút a hodnotu solar mppts; 1,2,3 alebo 4 napr. mppts: 2",show_daily:"Uveďte atribút day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte atribúty day_grid_import_76 a day_grid_export_77 a ID entity"},essential_power:"Atribút essential_power je nastavený na hodnotu none. Uveďte atribút inverter_power_175 a ID entity, aby karta vypočítala túto hodnotu.",nonessential_power:"Atribút noesential_power je nastavený na hodnotu none. Uveďte atribút grid_power_169 a ID entity, aby karta vypočítala túto hodnotu.",missing_entity:"`Uveďte atribút a ID entity"},yt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},mt={common:pt,errors:gt,config:yt},ft={description:"Um Card para o Home Assistant que ajuda a emular o fluxo de energia exibido na tela do inversor",version:"Versão",runtime_to:"TEMPO DE ATIVIDADE",battery_floating:"FLUTUAÇÃO DA BATERIA",charge:"CARGA",to:"PARA",daily_load:"USO DIÁRIO",daily_aux:"AUXILIAR DIÁRIO",daily_grid_buy:"CONSUMO DIÁRIO",daily_grid_sell:"ENVIO DIÁRIO",daily_solar:"SOLAR DIÁRIO",daily_solar_left:"PRODUÇÃO DIÁRIA / RESTANTE DIÁRIO",total_solar_generation:"PRODUÇÃO DIÁRIA / PREVISÃO SOLAR",daily_charge:"CARGA DIÁRIA",daily_discharge:"DESCARGA DIÁRIA",ratio:"Proporção",timer_off:"Temporizador desligado",timer_on:"Temporizador ligado",priority_batt:"Prioridade da Bateria",priority_load:"Prioridade de Uso",nonessential_name:"Desnecessário",aux_name:"Auxiliar",pv1_name:"PFV1",pv2_name:"PFV2",pv3_name:"PFV3",pv4_name:"PFV4",essential:"Essencial",autarky:"Autoconsumo",discharging:"Descaregando",charging:"Caregando",waiting:"Aguardando",standby:"Em espera",no_battery:"Sem Bateria",selftest:"Autoteste",normal:"Normal",alarm:"Alarme",fault:"Falta",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inativo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Parado",shutdown:"Desligar",offline:"Offline",running:"Rodando",sleepmode:"Dormindo",grid_name:"Rede"},vt={battery:{bat:"Nenhum atributo de bateria definido",energy:"Inclua o atributo de energia da bateria e seu valor em Wh, por exemplo: 5,32 Potência da bateria: 5320",shutdown_soc:"Inclua o atributo shutdown_soc da bateria e seu valor, por exemplo shutdown_soc: 20",full_capacity:"A capacidade total deve estar entre 80 e 100",empty_capacity:"A capacidade vazia deve ser <= 40",show_daily:"Por favor, inclua os atributos day_battery_charge_70 e day_battery_discharge_71 e os IDs das entidade"},solar:{sol:"Nenhum atributo solar definido",mppts:"Por favor, inclua o atributo solar mppts e seu valor; 1,2,3 ou 4, por exemplo, mppts: 2",show_daily:"Por favor, inclua o atributo day_pv_energy_108 e o ID da entidade"},grid:{show_daily:"Por favor, inclua os atributos day_grid_import_76 e day_grid_export_77 e os IDs das entidade"},essential_power:"O atributo Essential_Power está definido como nenhum. Inclua o atributo inverter_power_175 e o ID da entidade para que o cartão possa calcular esse valor.",nonessential_power:"O atributo nonessential_power está configurado como nenhum. Inclua o atributo grid_power_169 e o ID da entidade para que o cartão possa calcular esse valor.",missing_entity:"Por favor, inclua o atributo e o ID da entidade"},wt={title:"Título",title_colour:"Cor do Título",title_size:"Tamanho do Título (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Casas decimais",model:"Modelo",autarky:"Autoconsumo",cardstyle:"Estilo do Cartão",large_font:"Largura da fonte",modern:"Moderno",show_solar:"Exibir Solar",show_battery:"Exibir Bateria",show_grid:"Exibir Rede",show_aux:"Exibir Aux",dynamic_line_width:"Largura da linha dinâmica",max_line_width:"Largura máxima da linha",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Exibir Diário",show_daily_aux:"Exibir Diário Aux",animation_speed:"Velocidade de Animação",max_power:"Potência Max",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",battery:"Bateria",load1_name:"Nome Uso1",load2_name:"Nome Uso2",load3_name:"Nome Uso3",load4_name:"Nome Uso4",load1_icon:"Icone Uso1",load2_icon:"Icone Uso2",load3_icon:"Icone Uso3",load4_icon:"Icone Uso4",aux_load1_name:"Nome Aux_Uso1",aux_load2_name:"Nome Aux_Uso2",aux_load1_icon:"Nome Aux_Uso3",aux_load2_icon:"Nome Aux_Uso4",show_daily_buy:"Consumo Diário",show_daily_sell:"Produção Diária",no_grid_colour:"Cor No_Grid",grid_off_colour:"Cor Grid_Off",grid_name:"Nome Grid",colour:"Cor",charge_colour:"Cor Charge",aux_colour:"Cor",aux_off_colour:"Cor Off",panel_mode:"Modo do Painel",invert_grid:"Inverter Valores",invert_load:"Inverter Valores",shutdown_soc:"Desligamento do SOC",energy:"Energia",auto_scale:"Escala automática",three_phase:"Trifásico",dynamic_colour:"Cor Dinâmica",dynamic_icon:"Ícone Dinâmico",invert_power:"Potência do Inversor",show_absolute:"Exibir valor absoluto",hide_soc:"Ocultar SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Exibir absoluto_aux",show_nonessential:"Exibir Desnecessário",aux_name:"Nome Aux",aux_type:"Icone Aux",aux_loads:"Aux Loads",essential_name:"Nome Essencial",additional_loads:"Uso Adicional",export_colour:"Cor Expor",nonessential_name:"Nome Desnecessário",nonessential_icon:"Icone Desnecessário",energy_cost_decimals:"Decimais do custo de energia",show_remaining_energy:"Exibir energia restante",cat_title:{title:"Opções de título",general:"Opções gerais",inverter:"Opções do inversor",solar:"Opções Solar",battery:"Opções da Bateria",grid:"Opções da Rede",load:"Opções Load",entities:"Entidades",aux:"Opções do Aux",energy:"Entidade de Enêrgia",bat:"Entidades da Bateria ",sol:"Entidades de Solar",inv:"Entidades do Inversor",ld:"Entidade do Load",gri:"Entidade da Rede"}},_t={common:ft,errors:vt,config:wt};const xt={hass:null},bt={da:Object.freeze({__proto__:null,common:Ae,config:Le,default:Te,errors:Pe}),de:Object.freeze({__proto__:null,common:Ee,config:Me,default:Ne,errors:Ce}),en:Object.freeze({__proto__:null,common:ke,config:Ie,default:Oe,errors:Se}),es:Object.freeze({__proto__:null,common:De,config:ze,default:Be,errors:He}),et:Object.freeze({__proto__:null,common:Ge,config:Re,default:qe,errors:Ve}),fr:Object.freeze({__proto__:null,common:je,config:We,default:Ue,errors:Ze}),nl:Object.freeze({__proto__:null,common:Qe,config:Xe,default:Ye,errors:Fe}),ru:Object.freeze({__proto__:null,common:Je,config:$e,default:et,errors:Ke}),cs:Object.freeze({__proto__:null,common:tt,config:at,default:ot,errors:nt}),it:Object.freeze({__proto__:null,common:rt,config:st,default:lt,errors:it}),ca:Object.freeze({__proto__:null,common:dt,config:ut,default:ht,errors:ct}),sk:Object.freeze({__proto__:null,common:pt,config:yt,default:mt,errors:gt}),pt_BR:Object.freeze({__proto__:null,common:ft,config:wt,default:_t,errors:vt})};function At(e,t="",n=""){const a=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),o="".concat(xt.hass?.selectedLanguage||xt.hass?.locale?.language||xt.hass?.language||a);let r;try{r=e.split(".").reduce(((e,t)=>e[t]),bt[o])}catch(t){r=e.split(".").reduce(((e,t)=>e[t]),bt.en)}return void 0===r&&(r=e.split(".").reduce(((e,t)=>e[t]),bt.en)),""!==t&&""!==n&&(r=r.replace(t,n)),r}var Pt={cardstyle:"lite",panel_mode:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,card_height:"396px",card_width:"100%",decimal_places:2,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:_e.Sunsynk,auto_scale:!0,three_phase:!1},battery:{energy:0,shutdown_soc:20,invert_power:!1,hide_soc:!1,colour:"pink",show_daily:!1,show_remaining_energy:!0,animation_speed:6,max_power:4500,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:At("common.pv1_name"),pv2_name:At("common.pv2_name"),pv3_name:At("common.pv3_name"),pv4_name:At("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0},load:{colour:"#5fb6ad",dynamic_colour:!0,dynamic_icon:!0,show_daily:!1,show_aux:!1,show_daily_aux:!1,invert_aux:!1,invert_load:!1,show_absolute_aux:!1,animation_speed:4,max_power:8e3,aux_name:At("common.aux_name"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:At("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:At("common.load1_name"),load2_name:At("common.load2_name"),auto_scale:!0},grid:{colour:"#5490c2",grid_name:At("common.grid_name"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:At("common.nonessential_name"),additional_loads:0,load1_name:"",load2_name:"",load3_name:"",load1_icon:"default",load2_icon:"default",load3_icon:"default",invert_grid:!1,animation_speed:8,max_power:8e3,auto_scale:!0,energy_cost_decimals:2,show_absolute:!1}};const Lt=[0,1,2,4],Tt=[0,1,2,3],Et=[!0,!1],Ct=[!0,!1],Mt=["off","0","off-grid","off grid","offgrid"],Nt=["on","1","on-grid","on grid","ongrid"];var kt,St,It,Ot,Dt;!function(e){e.DATE="date",e.ENUM="enum",e.TIMESTAMP="timestamp",e.APPARENT_POWER="apparent_power",e.ATMOSPHERIC_PRESSURE="atmospheric_pressure",e.BATTERY="battery",e.CO="carbon_monoxide",e.CO2="carbon_dioxide",e.CURRENT="current",e.ENERGY="energy",e.ENERGY_STORAGE="energy_storage",e.FREQUENCY="frequency",e.IRRADIANCE="irradiance",e.MONETARY="monetary",e.POWER_FACTOR="power_factor",e.POWER="power",e.REACTIVE_POWER="reactive_power",e.TEMPERATURE="temperature",e.VOLTAGE="voltage"}(kt||(kt={})),function(e){e.WATT="W",e.KILO_WATT="kW",e.MEGA_WATT="MW",e.BTU_PER_HOUR="BTU/h"}(St||(St={})),function(e){e.GIGA_JOULE="GJ",e.KILO_WATT_HOUR="kWh",e.MEGA_JOULE="MJ",e.MEGA_WATT_HOUR="MWh",e.WATT_HOUR="Wh"}(It||(It={})),function(e){e.MILLIAMPERE="mA",e.AMPERE="A"}(Ot||(Ot={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(Dt||(Dt={}));const Ht={[It.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:It.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:It.KILO_WATT_HOUR,decimal:1}],[It.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:It.MEGA_WATT_HOUR,decimal:2}],[It.MEGA_WATT_HOUR]:[],[It.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:It.MEGA_JOULE}],[It.MEGA_JOULE]:[],[St.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:St.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:St.KILO_WATT}],[St.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:St.MEGA_WATT}],[St.MEGA_WATT]:[],[St.BTU_PER_HOUR]:[]};var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",l="[object Null]",d="[object Object]",c="[object Proxy]",u="[object Undefined]",h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[o]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[i]=g["[object Map]"]=g["[object Number]"]=g[d]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var y="object"==typeof zt&&zt&&zt.Object===Object&&zt,m="object"==typeof self&&self&&self.Object===Object&&self,f=y||m||Function("return this")(),v=t&&!t.nodeType&&t,w=v&&e&&!e.nodeType&&e,_=w&&w.exports===v,x=_&&y.process,b=function(){try{var e=w&&w.require&&w.require("util").types;return e||x&&x.binding&&x.binding("util")}catch(e){}}(),A=b&&b.isTypedArray;var P,L,T,E=Array.prototype,C=Function.prototype,M=Object.prototype,N=f["__core-js_shared__"],k=C.toString,S=M.hasOwnProperty,I=(P=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",O=M.toString,D=k.call(Object),H=RegExp("^"+k.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=_?f.Buffer:void 0,B=f.Symbol,G=f.Uint8Array,V=z?z.allocUnsafe:void 0,R=(L=Object.getPrototypeOf,T=Object,function(e){return L(T(e))}),q=Object.create,j=M.propertyIsEnumerable,Z=E.splice,W=B?B.toStringTag:void 0,U=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=z?z.isBuffer:void 0,F=Math.max,X=Date.now,Y=ve(f,"Map"),J=ve(Object,"create"),K=function(){function e(){}return function(t){if(!Ne(t))return{};if(q)return q(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var n=this.__data__,a=ie(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(Y||ee),string:new $}},te.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return fe(this,e).get(e)},te.prototype.has=function(e){return fe(this,e).has(e)},te.prototype.set=function(e,t){var n=fe(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var a=n.__data__;if(!Y||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(a)}return n.set(e,t),this.size=n.size,this};var le,de=function(e,t,n){for(var a=-1,o=Object(e),r=n(e),i=r.length;i--;){var s=r[le?i:++a];if(!1===t(o[s],s,o))break}return e};function ce(e){return null==e?void 0===e?u:l:W&&W in Object(e)?function(e){var t=S.call(e,W),n=e[W];try{e[W]=void 0;var a=!0}catch(e){}var o=O.call(e);a&&(t?e[W]=n:delete e[W]);return o}(e):function(e){return O.call(e)}(e)}function ue(e){return ke(e)&&ce(e)==o}function he(e){return!(!Ne(e)||function(e){return!!I&&I in e}(e))&&(Ce(e)?H:h).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ne(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=_e(e),n=[];for(var a in e)("constructor"!=a||!t&&S.call(e,a))&&n.push(a);return n}function ge(e,t,n,a,o){e!==t&&de(t,(function(r,i){if(o||(o=new ne),Ne(r))!function(e,t,n,a,o,r,i){var s=xe(e,n),l=xe(t,n),c=i.get(l);if(c)return void oe(e,n,c);var u=r?r(s,l,n+"",e,t,i):void 0,h=void 0===u;if(h){var p=Le(l),g=!p&&Ee(l),y=!p&&!g&&Se(l);u=l,p||g||y?Le(s)?u=s:ke(_=s)&&Te(_)?u=function(e,t){var n=-1,a=e.length;t||(t=Array(a));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(me);function Ae(e,t){return e===t||e!=e&&t!=t}var Pe=ue(function(){return arguments}())?ue:function(e){return ke(e)&&S.call(e,"callee")&&!j.call(e,"callee")},Le=Array.isArray;function Te(e){return null!=e&&Me(e.length)&&!Ce(e)}var Ee=Q||function(){return!1};function Ce(e){if(!Ne(e))return!1;var t=ce(e);return t==i||t==s||t==r||t==c}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var Se=A?function(e){return function(t){return e(t)}}(A):function(e){return ke(e)&&Me(e.length)&&!!g[ce(e)]};function Ie(e){return Te(e)?ae(e,!0):pe(e)}var Oe,De=(Oe=function(e,t,n){ge(e,t,n)},ye((function(e,t){var n=-1,a=t.length,o=a>1?t[a-1]:void 0,r=a>2?t[2]:void 0;for(o=Oe.length>3&&"function"==typeof o?(a--,o):void 0,r&&function(e,t,n){if(!Ne(n))return!1;var a=typeof t;return!!("number"==a?Te(n)&&we(t,n.length):"string"==a&&t in n)&&Ae(n[t],e)}(t[0],t[1],r)&&(o=a<3?void 0:o,a=1),e=Object(e);++n{const r=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof a?n:o??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ye(n,a,{get(){let n=e.call(this);return void 0===n&&(n=r(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return ye(n,a,{get(){return r(this)}})}}function fe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ve;const we=s(ve||(ve=fe(["\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n padding: 5px;\n }\n\n .card {\n border-radius: var(--ha-card-border-radius, 10px);\n box-shadow: var(--ha-card-box-shadow, 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));\n background: var(--ha-card-background, var(--card-background-color, white));\n border-width: var(--ha-card-border-width);\n padding: 0px;\n }\n\n text { text-anchor: middle; dominant-baseline: middle; }\n\n .left-align {text-anchor: start;}\n .right-align {text-anchor: end;}\n .st1{fill:#ff9b30;}\n .st2{fill:#f3b3ca;}\n .st3{font-size:9px;}\n .st4{font-size:14px;}\n .st5{fill:#969696;}\n .st6{fill:#5fb6ad;}\n .st7{fill:#5490c2;}\n .st8{font-weight:500}\n .st9{fill:#959595;}\n .st10{font-size:16px;}\n .st11{fill:transparent;}\n .st12{display:none;}\n .st13{font-size:22px;}\n .st14{font-size:12px;}\n\n "])));var _e,xe,be;!function(e){e.Azzurro="azzurro",e.Sunsynk="sunsynk",e.Lux="lux",e.GoodweGridMode="goodwe_gridmode",e.Goodwe="goodwe",e.Solis="solis",e.Huawei="huawei",e.FoxESS="foxess",e.Solax="solax",e.Victron="victron",e.Fronius="fronius",e.SolarEdge="solaredge",e.Growatt="growatt",e.Sofar="sofar",e.Deye="deye",e.CESBatteryBox="ces-battery-box"}(_e||(_e={})),function(e){e.Compact="compact",e.Lite="lite",e.Full="full"}(xe||(xe={})),function(e){e.Energy="energy",e.Power="power",e.No="no"}(be||(be={}));var Ae={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"KØRSTID TIL",battery_floating:"BATTERI FLYDENDE",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG BELASTNING",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF ELEKTRICITET FRA NETTET",daily_grid_sell:"DAGLIG SALG AF ELEKTRICITET TIL NETTET",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RENT I DAG",total_solar_generation:"DAGLIG SOLAR / TOTAL SOLAR",daily_charge:"DAGLIG OPLADNING",daily_discharge:"DAGLIG AFLADNING",ratio:"Forhold",timer_off:"Timer slukket",timer_on:"Timer tændt",priority_batt:"Prioritet Batteri",priority_load:"Prioritet Belastning",nonessential_name:"Ikke Væsentlig",aux_name:"Hjælpe",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Afladning",charging:"Opladning",waiting:"Ventende",standby:"Standby",no_battery:"Ingen batteri",selftest:"Selvtest",normal:"Normal",alarm:"Alarm",fault:"Fejl",days:"dage",hrs:"timer",min:"min",flash:"Flash",check:"Check",idle:"Inaktiv",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Pe={battery:{bat:"Ingen batteriattributter defineret",energy:"Inkluder venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Inkluder venligst batteri shutdown_soc-attribut og værdi, f.eks. shutdown_soc: 20",full_capacity:"Fuld kapacitet skal være mellem 80 og 100",empty_capacity:"Tom kapacitet skal være <= 40",show_daily:"Inkluder venligst attributterne day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen solattributter defineret",mppts:"Inkluder venligst solens mppts-attribut og værdi; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Inkluder venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Inkluder venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er indstillet til ingen. Inkluder venligst inverter_power_175-attribut og enheds-ID for, at kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Inkluder venligst grid_power_169-attribut og enheds-ID for, at kortet kan beregne denne værdi.",missing_entity:"Inkluder venligst attributten og enheds-ID'en"},Le={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Te={common:Ae,errors:Pe,config:Le},Ee={description:"Eine Home Assistant-Karte zur Emulation des Sunsynk-Stromflusses, der auf dem Inverter-Bildschirm angezeigt wird",version:"Version",runtime_to:"LAUFZEIT BIS",battery_floating:"BATTERIE haltend",charge:"AUFLADEN",to:"ZU",daily_load:"ENERGIE heute",daily_aux:"HILFSANTRIEB heute",daily_grid_buy:"NETZEINKAUF heute",daily_grid_sell:"NETZVERKAUF heute",daily_solar:"SOLAR heute",daily_solar_left:"SOLAR heute / VERBLEIBEND heute",total_solar_generation:"SOLAR heute / TOTAL SOLAR",daily_charge:"AUFLADUNG heute",daily_discharge:"ENTNAHME heute",ratio:"Verhältnis",timer_off:"Timer aus",timer_on:"Timer ein",priority_batt:"Batteriepriorität",priority_load:"Lastpriorität",nonessential_name:"Nebenverbraucher",aux_name:"Hilfsantrieb",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Hauptverbraucher",autarky:"Autark",discharging:"Entladen",charging:"Laden",waiting:"Warten",standby:"Bereitschaft",no_battery:"Keine Batterie",selftest:"Selbsttest",normal:"Normal",alarm:"Alarm",fault:"Fehler",days:"Tage",hrs:"Std",min:"Min",flash:"Flash",check:"Check",idle:"Leerlauf",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ce={battery:{bat:"Keine Batterieattribute definiert",energy:"Bitte fügen Sie das Batterieenergieattribut und den Wert in Wh hinzu, z.B. 5.32 Batterieenergie: 5320",shutdown_soc:"Bitte fügen Sie das Batterie-Shutdown-SOC-Attribut und den Wert hinzu, z.B. shutdown_soc: 20",full_capacity:"Die volle Kapazität muss zwischen 80 und 100 liegen",empty_capacity:"Die leere Kapazität muss <= 40 sein",show_daily:"Bitte fügen Sie die Tages-Batterieladung_70- und Tages-Batterieentladung_71-Attribute und die Entity-IDs hinzu"},solar:{sol:"Keine Solarattribute definiert",mppts:"Bitte fügen Sie das Solar-MPPT-Attribut und den Wert hinzu; 1,2,3 oder 4 z.B. mppts: 2",show_daily:"Bitte fügen Sie das Tages-PV-Energie_108-Attribut und die Entity-ID hinzu"},grid:{show_daily:"Bitte fügen Sie die Tages-Grideinspeisung_76- und Tages-Gridexport_77-Attribute und die Entity-IDs hinzu"},essential_power:"Das Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Inverter-Power_175-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",nonessential_power:"Das Nicht-Essenziell-Stromattribut ist auf 'none' gesetzt. Bitte fügen Sie das Grid-Power_169-Attribut und die Entity-ID hinzu, damit die Karte diesen Wert berechnen kann.",missing_entity:"Bitte fügen Sie das Attribut und die Entity-ID hinzu"},Me={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ne={common:Ee,errors:Ce,config:Me},ke={description:"A Home Assistant card to emulate the Sunsynk power flow that's shown on the Inverter screen",version:"Version",runtime_to:"RUNTIME TO",battery_floating:"BATTERY FLOATING",charge:"CHARGE",to:"TO",daily_load:"DAILY LOAD",daily_aux:"DAILY AUX",daily_grid_buy:"DAILY GRID BUY",daily_grid_sell:"DAILY GRID SELL",daily_solar:"DAILY SOLAR",daily_solar_left:"DAILY SOLAR / LEFT TODAY",total_solar_generation:"DAILY SOLAR / TOTAL SOLAR",daily_charge:"DAILY CHARGE",daily_discharge:"DAILY DISCHARGE",ratio:"Ratio",timer_off:"Timer off",timer_on:"Timer on",priority_batt:"Priority Batt",priority_load:"Priority Load",nonessential_name:"Non Essential",aux_name:"Auxiliary",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essential",autarky:"Autarky",discharging:"Discharging",charging:"Charging",waiting:"Waiting",standby:"Standby",no_battery:"No Battery",selftest:"Selftest",normal:"Normal",alarm:"Alarm",fault:"Fault",days:"days",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Idle",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ie={battery:{bat:"No battery attributes defined",energy:"Please include the battery energy attribute and value in Wh e.g. 5.32 Battery energy: 5320",shutdown_soc:"Please include the battery shutdown_soc attribute and value e.g shutdown_soc: 20",full_capacity:"Full capacity needs to be between 80 and 100",empty_capacity:"Empty capacity needs to be <= 40",show_daily:"Please include the day_battery_charge_70 and day_battery_discharge_71 attributes and entity IDs"},solar:{sol:"No solar attributes defined",mppts:"Please include the solar mppts attribute and value; 1,2,3 or 4 e.g. mppts: 2",show_daily:"Please include the day_pv_energy_108 attribute and entity ID"},grid:{show_daily:"Please include the day_grid_import_76 and day_grid_export_77 attributes and entity IDs"},essential_power:"The essential_power attribute is set to none. Please include the inverter_power_175 attribute and entity ID in order for the card to calculate this value.",nonessential_power:"The nonessential_power attribute is set to none. Please include the grid_power_169 attribute and entity ID in order for the card to calculate this value.",missing_entity:"`Please include the attribute and entity ID"},Se={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Oe={common:ke,errors:Ie,config:Se},De={description:"Una tarjeta de Home Assistant para emular el flujo de energía Sunsynk que se muestra en la pantalla del inversor",version:"Versión",runtime_to:"TIEMPO DE FUNCIONAMIENTO HASTA",battery_floating:"BATERÍA EN FLOTACIÓN",charge:"CARGA",to:"A",daily_load:"CARGA DIARIA",daily_aux:"AUXILIAR DIARIO",daily_grid_buy:"COMPRA DIARIA DE LA RED",daily_grid_sell:"VENTA DIARIA A LA RED",daily_solar:"SOLAR DIARIO",daily_solar_left:"SOLAR DIARIO / LO QUE QUEDA HOY",total_solar_generation:"SOLAR DIARIO / TOTAL SOLAR",daily_charge:"CARGA DIARIA",daily_discharge:"DESCARGA DIARIA",ratio:"Relación",timer_off:"Temporizador apagado",timer_on:"Temporizador encendido",priority_batt:"Prioridad de la Batería",priority_load:"Prioridad de la Carga",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Esencial",autarky:"Autarky",discharging:"Descargando",charging:"Cargando",waiting:"Esperando",standby:"En Espera",no_battery:"Sin Batería",selftest:"Autoevaluación",normal:"Normal",alarm:"Alarma",fault:"Fallo",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inactivo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},He={battery:{bat:"No se han definido atributos de la batería",energy:"Por favor, incluye el atributo de energía de la batería y su valor en Wh, por ejemplo, 5.32 Energía de la batería: 5320",shutdown_soc:"Por favor, incluye el atributo shutdown_soc de la batería y su valor, por ejemplo shutdown_soc: 20",full_capacity:"La capacidad completa debe estar entre 80 y 100",empty_capacity:"La capacidad vacía debe ser <= 40",show_daily:"Por favor, incluye los atributos day_battery_charge_70 y day_battery_discharge_71 y las IDs de las entidades"},solar:{sol:"No se han definido atributos solares",mppts:"Por favor, incluye el atributo mppts solares y su valor; 1,2,3 o 4, por ejemplo, mppts: 2",show_daily:"Por favor, incluye el atributo day_pv_energy_108 y la ID de la entidad"},grid:{show_daily:"Por favor, incluye los atributos day_grid_import_76 y day_grid_export_77 y las IDs de las entidades"},essential_power:"El atributo essential_power está configurado como ninguno. Por favor, incluye el atributo inverter_power_175 y la ID de la entidad para que la tarjeta pueda calcular este valor.",nonessential_power:"El atributo nonessential_power está configurado como ninguno. Por favor, incluye el atributo grid_power_169 y la ID de la entidad para que la tarjeta pueda calcular este valor.",missing_entity:"Por favor, incluye el atributo y la ID de la entidad"},ze={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Be={common:De,errors:He,config:ze},Ve={description:"Home Assistant kaart Sunsynk võimsusvoogu emuleerimiseks, mis kuvatakse inverteri ekraanil",version:"Versioon",runtime_to:"TÖÖAEG KUNI",battery_floating:"UJUV AKU",charge:"LAADIMINE",to:"KUNI",daily_load:"PÄEVA KOORMUS",daily_aux:"PÄEVA ABISTAV",daily_grid_buy:"PÄEVA VÕRGUST OST",daily_grid_sell:"PÄEVA VÕRGU MÜÜK",daily_solar:"PÄEVA PÄIKE",daily_solar_left:"PÄEVA PÄIKE / TÄNA JÄÄNUD",total_solar_generation:"PÄEVA PÄIKE / TOTAL SOLAR",daily_charge:"PÄEVA LAADIMINE",daily_discharge:"PÄEVA TÜHJENDAMINE",ratio:"Suhe",timer_off:"Ajastus välja",timer_on:"Ajastus sisse",priority_batt:"Akuprioriteet",priority_load:"Koormuse prioriteet",nonessential_name:"Mitteoluline",aux_name:"Abiseadmed",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Oluline",autarky:"Autarky",discharging:"Tühjenemine",charging:"Laadimine",waiting:"Ootamine",standby:"Ooterežiim",no_battery:"Puudub aku",selftest:"Eneseanalüüs",normal:"Tavaline",alarm:"Häire",fault:"Rike",days:"päeva",hrs:"tundi",min:"min",flash:"Flash",check:"Check",idle:"Tühikäik",exporting:"Eksport",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ge={battery:{bat:"Aku atribuute pole määratletud",energy:"Palun sisestage aku energiat atribuut ja väärtus Wh-s, näiteks 5,32 Aku energia: 5320",shutdown_soc:"Palun sisestage aku shutdown_soc atribuut ja väärtus, näiteks shutdown_soc: 20",full_capacity:"Täiskasvanu maht peab olema vahemikus 80 kuni 100",empty_capacity:"Tühi mahutavus peab olema <= 40",show_daily:"Palun sisestage päeva_battery_charge_70 ja päeva_battery_discharge_71 atribuudid ning seadmete ID-d"},solar:{sol:"Päikesepaneelide atribuute pole määratletud",mppts:"Palun sisestage päikesepaneelide mppts atribuut ja väärtus; 1,2,3 või 4, näiteks mppts: 2",show_daily:"Palun sisestage päeva_pv_energy_108 atribuut ja seadme ID"},grid:{show_daily:"Palun sisestage päeva_grid_import_76 ja päeva_grid_export_77 atribuudid ning seadmete ID-d"},essential_power:"Olulise võimsuse atribuut on määratud puuduvaks. Palun sisestage inverteri_power_175 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",nonessential_power:"Mittetähtsa võimsuse atribuut on määratud puuduvaks. Palun sisestage võrgu_power_169 atribuut ja seadme ID, et kaart saaks selle väärtuse arvutada.",missing_entity:"Sisestage palun atribuut ja seadme ID"},Re={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},je={common:Ve,errors:Ge,config:Re},qe={description:"Une carte Home Assistant pour émuler les flux d'énergie affichés à l'écran des onduleurs Sunsynk ",version:"Version",runtime_to:"DÉCHARGÉE À",battery_floating:"BATTERIE FLOTTANTE",charge:"CHARGE",to:"À",daily_load:"CHARGE (JOUR)",daily_aux:"CHARGE AUX (JOUR)",daily_grid_buy:"ACHAT (JOUR)",daily_grid_sell:"VENTE (JOUR)",daily_solar:"PRODUCTION (JOUR)",daily_solar_left:"PRODUCTION / RESTANT (JOUR)",total_solar_generation:"PRODUCTION / TOTAL SOLAR",daily_charge:"CHARGE (JOUR)",daily_discharge:"DÉCHARGE (JOUR)",ratio:"Ratio",timer_off:"Prog. Off",timer_on:"Prog. On",priority_batt:"Batterie en 1er",priority_load:"Charges en 1er",nonessential_name:"Non Essentielles",aux_name:"Auxiliaire",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentielles",autarky:"AutoConso",discharging:"Décharge",charging:"Charge",waiting:"En attente",standby:"Veille",no_battery:"Pas de batterie",selftest:"Auto-test",normal:"Normal",alarm:"Alarme",fault:"Défaut",days:"jours",hrs:"heures",min:"min",flash:"Flash",check:"Check",idle:"Inactif",exporting:"Exportation",importing:"Importation",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Réseau"},Ze={battery:{bat:"Aucun attribut de batterie défini",energy:"Veuillez inclure l'attribut d'énergie de la batterie et la valeur en Wh, par exemple 5.32 Énergie de la batterie : 5320",shutdown_soc:"Veuillez inclure l'attribut de batterie shutdown_soc et la valeur, par exemple shutdown_soc : 20",full_capacity:"La capacité totale doit être comprise entre 80 et 100",empty_capacity:"La capacité vide doit être <= 40",show_daily:"Veuillez inclure les attributs day_battery_charge_70 et day_battery_discharge_71 ainsi que les ID d'entité"},solar:{sol:"Aucun attribut solaire défini",mppts:"Veuillez inclure l'attribut solaire mppts et la valeur ; 1,2,3 ou 4 par exemple mppts : 2",show_daily:"Veuillez inclure l'attribut day_pv_energy_108 et l'ID d'entité"},grid:{show_daily:"Veuillez inclure les attributs day_grid_import_76 et day_grid_export_77 ainsi que les ID d'entité"},essential_power:"L'attribut essential_power est réglé sur 'none'. Veuillez inclure l'attribut inverter_power_175 et l'ID d'entité afin que la carte puisse calculer cette valeur.",nonessential_power:"L'attribut nonessential_power est réglé sur 'none'. Veuillez inclure l'attribut grid_power_169 et l'ID d'entité afin que la carte puisse calculer cette valeur.",missing_entity:"Veuillez inclure l'attribut et l'ID d'entité"},We={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ue={common:qe,errors:Ze,config:We},Qe={description:"Een Home Assistant-kaart om de Sunsynk energiestroom te emuleren die op het omvormerscherm wordt weergegeven",version:"Versie",runtime_to:"WERKTIJD TOT",battery_floating:"DRIJVENDE BATTERIJ",charge:"LADEN",to:"TOT",daily_load:"DAGELIJKSE BELASTING",daily_aux:"DAGELIJKSE HULP",daily_grid_buy:"DAGELIJKS NETSTROOM KOPEN",daily_grid_sell:"DAGELIJKSE NETSTROOM VERKOPEN",daily_solar:"DAGELIJKSE ZONNE-ENERGIE",daily_solar_left:"DAGELIJKSE ZONNE-ENERGIE / OVER VANDAAG",total_solar_generation:"DAGELIJKSE ZONNE-ENERGIE / TOTAL SOLAR",daily_charge:"DAGELIJKSE LADING",daily_discharge:"DAGELIJKSE ONTLADING",ratio:"Verhouding",timer_off:"Timer uit",timer_on:"Timer aan",priority_batt:"Batterijprioriteit",priority_load:"Belastingsprioriteit",nonessential_name:"Niet-Essentieel",aux_name:"Hulp",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essentieel",autarky:"Autarky",discharging:"Ontladen",charging:"Opladen",waiting:"Wachten",standby:"Standby",no_battery:"Geen batterij",selftest:"Zelftest",normal:"Normaal",alarm:"Alarm",fault:"Fout",days:"dagen",hrs:"uren",min:"minuten",flash:"Flash",check:"Check",idle:"Inactief",exporting:"Exporteren",importing:"Importeren",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Fe={battery:{bat:"Geen batterijattributen gedefinieerd",energy:"Voeg alstublieft het batterij-energieattribuut en de waarde in Wh toe, bijvoorbeeld 5.32 Batterij-energie: 5320",shutdown_soc:"Voeg alstublieft het batterij-shutdown_soc-attribuut en de waarde toe, bijvoorbeeld shutdown_soc: 20",full_capacity:"De volledige capaciteit moet tussen 80 en 100 liggen",empty_capacity:"De lege capaciteit moet <= 40 zijn",show_daily:"Voeg alstublieft de attributen day_battery_charge_70 en day_battery_discharge_71 toe, evenals de entiteits-ID's"},solar:{sol:"Geen zonne-attributen gedefinieerd",mppts:"Voeg alstublieft het zonne-mppts-attribuut en de waarde toe; 1,2,3 of 4 bijvoorbeeld mppts: 2",show_daily:"Voeg alstublieft het day_pv_energy_108-attribuut en de entiteits-ID toe"},grid:{show_daily:"Voeg alstublieft de attributen day_grid_import_76 en day_grid_export_77 toe, evenals de entiteits-ID's"},essential_power:"Het essential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het inverter_power_175-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",nonessential_power:"Het nonessential_power-attribuut is ingesteld op 'geen'. Voeg alstublieft het grid_power_169-attribuut en de entiteits-ID toe zodat de kaart deze waarde kan berekenen.",missing_entity:"Voeg alstublieft het attribuut en de entiteits-ID toe"},Xe={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},Ye={common:Qe,errors:Fe,config:Xe},Je={description:"Карта Home Assistant для эмуляции потока энергии Sunsynk, отображаемого на экране инвертора",version:"Версия",runtime_to:"ВРЕМЯ ДО",battery_floating:"ПЛАВАЮЩАЯ БАТАРЕЯ",charge:"ЗАРЯД",to:"ДО",daily_load:"ЕЖЕДНЕВНАЯ НАГРУЗКА",daily_aux:"ЕЖЕДНЕВНАЯ ВСПОМОГАТЕЛЬНАЯ",daily_grid_buy:"ЕЖЕДНЕВНАЯ ПОКУПКА ИЗ СЕТИ",daily_grid_sell:"ЕЖЕДНЕВНАЯ ПРОДАЖА В СЕТЬ",daily_solar:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ",daily_solar_left:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ / ОСТАЛОСЬ СЕГОДНЯ",total_solar_generation:"ЕЖЕДНЕВНАЯ СОЛНЕЧНАЯ ЭНЕРГИЯ / TOTAL SOLAR",daily_charge:"ЕЖЕДНЕВНАЯ ЗАРЯДКА",daily_discharge:"ЕЖЕДНЕВНАЯ РАЗРЯДКА",ratio:"Соотношение",timer_off:"Таймер выключен",timer_on:"Таймер включен",priority_batt:"Приоритет батареи",priority_load:"Приоритет нагрузки",nonessential_name:"Не существенное",aux_name:"Вспомогательное",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Существенное",autarky:"Autarky",discharging:"Разряд",charging:"Зарядка",waiting:"Ожидание",standby:"Режим ожидания",no_battery:"Без батареи",selftest:"Самодиагностика",normal:"Нормально",alarm:"Авария",fault:"Неисправность",days:"дни",hrs:"часов",min:"мин",flash:"Flash",check:"Check",idle:"Бездействие",exporting:"Экспорт",importing:"Импорт",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},Ke={battery:{bat:"Не определены атрибуты батареи",energy:"Пожалуйста, включите атрибут батарейной энергии и значение в Втч, например, 5.32 Энергия батареи: 5320",shutdown_soc:"Пожалуйста, включите атрибут батарейного shutdown_soc и значение, например, shutdown_soc: 20",full_capacity:"Полная емкость должна быть в диапазоне от 80 до 100",empty_capacity:"Пустая емкость должна быть <= 40",show_daily:"Пожалуйста, включите атрибуты day_battery_charge_70 и day_battery_discharge_71 и идентификаторы сущностей"},solar:{sol:"Не определены атрибуты солнечной энергии",mppts:"Пожалуйста, включите атрибут солнечных mppts и значение; 1,2,3 или 4, например, mppts: 2",show_daily:"Пожалуйста, включите атрибут day_pv_energy_108 и идентификатор сущности"},grid:{show_daily:"Пожалуйста, включите атрибуты day_grid_import_76 и day_grid_export_77 и идентификаторы сущностей"},essential_power:"Атрибут essential_power установлен на 'none'. Пожалуйста, включите атрибут inverter_power_175 и идентификатор сущности, чтобы карта могла вычислить это значение.",nonessential_power:"Атрибут nonessential_power установлен на 'none'. Пожалуйста, включите атрибут grid_power_169 и идентификатор сущности, чтобы карта могла вычислить это значение.",missing_entity:"Пожалуйста, включите атрибут и идентификатор сущности"},$e={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},et={common:Je,errors:Ke,config:$e},tt={description:"Karta Home Assistant pro emulaci toku energie, který je zobrazen na displeji měniče Sunsynk",version:"Verze",runtime_to:"ČAS DO",battery_floating:"BATERIE JE NABITÁ",charge:"NABÍT",to:"DO",daily_load:"DNES SPOTŘEBA",daily_aux:"DENNÍ VSTUP",daily_grid_buy:"DNES NÁKUP",daily_grid_sell:"DNES PRODEJ",daily_solar:"DNES VÝROBA",daily_solar_left:"DNES VÝROBA / OČEKÁVANÁ VÝROBA",total_solar_generation:"DNES VÝROBA / CELKOVÁ VÝROBA",daily_charge:"DNES NABÍJENÍ",daily_discharge:"DNES VYBÍJENÍ",ratio:"Poměr",timer_off:"Časovač off",timer_on:"Časovač on",priority_batt:"Nabít Baterii z DS",priority_load:"Nabíjím Baterii z DS",nonessential_name:"Nedostupné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Nezbytný",autarky:"Vlastní",discharging:"Vybíjí se",charging:"Nabíjí se",waiting:"Čeká",standby:"Standby",no_battery:"Není baterie",selftest:"Vlastní test",normal:"Normální",alarm:"Alarm",fault:"Chyba",days:"dní",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinný",exporting:"Odesílání",importing:"Příjem",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},nt={battery:{bat:"Nejsou definovány žádné atributy baterie",energy:"Uveďte prosím atribut energie baterie a hodnotu ve Wh, např. 5,32 Energie baterie: 5320",shutdown_soc:"Uveďte atribut battery shut down_soc a hodnotu, např. shutdown_soc: 20 shutdown_soc: 20",full_capacity:"Plná kapacita musí být mezi 80 a 100",empty_capacity:"Prázdná kapacita musí být <= 40",show_daily:"Uveďte prosím atributy day_battery_charge_70 a day_battery_discharge_71 a ID entit"},solar:{sol:"Nejsou definovány žádné solar atributy",mppts:"Uveďte prosím atribut a hodnotu solar mppts; 1,2,3 nebo 4 např. mppts: 2",show_daily:"Uveďte prosím atribut day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte prosím atributy day_grid_import_76 a day_grid_export_77 a ID entit"},essential_power:"Atribut essential_power je nastaven na hodnotu none. Uveďte prosím atribut inverter_power_175 a ID entity, aby karta mohla vypočítat tuto hodnotu.",nonessential_power:"Atribut neesenciální_výkon je nastaven na hodnotu none. Uveďte prosím atribut grid_power_169 a ID entity, aby karta mohla vypočítat tuto hodnotu.",missing_entity:"Uveďte prosím atribut a ID entity"},at={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},ot={common:tt,errors:nt,config:at},rt={description:"Una scheda Home Assistant per emulare il flusso di potenza Sunsynk visualizzato sullo schermo dell'inverter",version:"Versione",runtime_to:"DURATA AL",battery_floating:"BATTERY CARICA",charge:"CARICA",to:"A",daily_load:"CONSUMO OGGI",daily_aux:"AUX OGGI",daily_grid_buy:"PRELIEVO OGGI DA RETE",daily_grid_sell:"CESSIONE OGGI IN RETE",daily_solar:"ENERGIA SOLARE OGGI",daily_solar_left:"ENERGIA SOLARE OGGI / STIMA RIMANENTE",total_solar_generation:"ENERGIA SOLARE OGGI / TOTAL SOLAR",daily_charge:"CARICA OGGI",daily_discharge:"SCARICA OGGI",ratio:"Rapporto",timer_off:"Spegnimento timer",timer_on:"Accensione timer",priority_batt:"Priorità batteria",priority_load:"Priorità carico",nonessential_name:" Non Essenziale",aux_name:"Ausiliario",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essenziale",autarky:"Autarky",discharging:"Scarica",charging:"Carica",waiting:"In attesa",standby:"Standby",no_battery:"Nessuna batteria",selftest:"Auto-test",normal:"Normale",alarm:"Allarme",fault:"Guasto",days:"giorni",hrs:"ore",min:"min",flash:"Flash",check:"Check",idle:"Inattivo",exporting:"Esportazione",importing:"Importazione",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},it={battery:{bat:"Nessun attributo della batteria definito",energy:"Si prega di includere l'attributo dell'energia della batteria e il valore in Wh, ad esempio 5,32 Energia della batteria: 5320",shutdown_soc:"Si prega di includere l'attributo di spegnimento della batteria e il valore, ad esempio spegnimento_soc: 20",full_capacity:"La capacità massima deve essere compresa tra 80 e 100",empty_capacity:"La capacità vuota deve essere <= 40",show_daily:"Si prega di includere gli attributi day_battery_charge_70 e day_battery_discharge_71 e gli ID delle entità"},solar:{sol:"Nessun attributo solare definito",mppts:"Si prega di includere l'attributo solare mppts e il valore; 1,2,3 o 4, ad esempio mppts: 2",show_daily:"Si prega di includere l'attributo day_pv_energy_108 e l'ID dell'entità"},grid:{show_daily:"Si prega di includere gli attributi day_grid_import_76 e day_grid_export_77 e gli ID delle entità"},essential_power:"L'attributo essential_power è impostato su none. Si prega di includere l'attributo inverter_power_175 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",nonessential_power:"L'attributo nonessential_power è impostato su none. Si prega di includere l'attributo grid_power_169 e l'ID dell'entità in modo che la scheda possa calcolare questo valore.",missing_entity:"Si prega di includere l'attributo e l'ID dell'entità"},st={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},lt={common:rt,errors:it,config:st},dt={description:"Una tarjeta de Home Assistant per emular el flxue d'energoa Sunsynk que es mostra a la pantalla de l'inversor",version:"Versió",runtime_to:"TEMPS DE FUNCIONAMENT FINS",battery_floating:"BATERIA EN FLOTACIÓ",charge:"CÀRREGA",to:"A",daily_load:"CÀRREGA DIÀRIA",daily_aux:"AUXILIAR DIARI",daily_grid_buy:"COMPRA DIÀRIA DE LA XARXA",daily_grid_sell:"VENDA DIÀRIA A LA XARXA",daily_solar:"SOLAR DIARI",daily_solar_left:"SOLAR DIARI / RESTA AVUI",total_solar_generation:"SOLAR DIARI / TOTAL SOLAR",daily_charge:"CÀRREGA DIÀRIA",daily_discharge:"DESCÀRREGA DIÀRIA",ratio:"Relació",timer_off:"Temporitzador apagat",timer_on:"Temporitzador encès",priority_batt:"Prioritat de la Bateria",priority_load:"Prioritat de la Càrrega",nonessential_name:"No Esencial",aux_name:"Auxiliar",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Essencial",autarky:"Autarky",discharging:"Descàrrega",charging:"Càrrega",waiting:"Esperant",standby:"En espera",no_battery:"Sense bateria",selftest:"Prova automàtica",normal:"Normal",alarm:"Alarma",fault:"Avaria",days:"dies",hrs:"hrs",min:"min",flash:"Flash",check:"Check",idle:"Inactiu",exporting:"Exportació",importing:"Importació",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},ct={battery:{bat:"No s'han definit atributs de la bateria",energy:"Si us plau, inclou l'atribut d'energia de la bateria i el seu valor a Wh, per exemple, 5.32 Energia de la bateria: 5320",shutdown_soc:"Si us plau, inclou l'atribut shutdown_soc de la bateria i el seu valor, per exemple shutdown_soc: 20",full_capacity:"La capacitat completa ha d'estar entre 80 i 100",empty_capacity:"La capacitat buida ha de ser <= 40",show_daily:"Si us plau, inclou els atributs day_battery_charge_70 i day_battery_discharge_71 i les IDs de les entitats"},solar:{sol:"No s'han definit cap atribut solar",mppts:"Si us plau, inclou l'atribut mppts solars i el seu valor; 1,2,3 o 4, per exemple, mppts: 2",show_daily:"Si us plau, inclou l'atribut day_pv_energy_108 i la ID de l'entitat"},grid:{show_daily:"Si us plau, inclou els atributs day_grid_import_76 i day_grid_export_77 i les IDs de les entitats"},essential_power:"L'atribut essential_power està configurat com a cap. Inclou l'atribut inverter_power_175 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",nonessential_power:"L'atribut nonessential_power està configurat com a cap. Inclou l'atribut grid_power_169 i l'ID de l'entitat perquè la targeta pugui calcular aquest valor.",missing_entity:"Si us plau, inclou l'atribut i la ID de l'entitat"},ut={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",decimal_places:"Decimal Places",card_height:"Card Height (px)",card_width:"Card Width (px)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},ht={common:dt,errors:ct,config:ut},pt={description:"Karta Home Assistant na emuláciu Sunsynk power flow, ktorý sa zobrazuje na obrazovke invertora",version:"Verzia",runtime_to:"RUNTIME DO",battery_floating:"PLÁVAJÚCA BATÉRIA",charge:"NABÍJANIE",to:"DO",daily_load:"DENNÁ ZÁŤAŽ",daily_aux:"DAILY POM",daily_grid_buy:"SIEŤ DENNÝ NÁKUP",daily_grid_sell:"SIEŤ DENNÝ PREDAJ",daily_solar:"DENNÝ SLNKO",daily_solar_left:"DENNÉ SLNKO / ZOSTÁVA DNES",total_solar_generation:"DENNÉ SLNKO / CELKOVO SLNKO",daily_charge:"DENNÉ NABÍJANIE",daily_discharge:"DENNÉ VYBÍJANIE",ratio:"Pomer",timer_off:"Časovač vypnutý",timer_on:"Časovač zapnutý",priority_batt:"Priorita Bat",priority_load:"Priorita Záťaž",nonessential_name:"Nepodstatné",aux_name:"Pomocné",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Podstatné",autarky:"Autarky",discharging:"Vykladanie",charging:"Nabíjanie",waiting:"Čakanie",standby:"Pohotovostný režim",no_battery:"Žiadna batéria",selftest:"Samotest",normal:"Normálny",alarm:"Poplach",fault:"Porucha",days:"dni",hrs:"hod",min:"min",flash:"Flash",check:"Check",idle:"Nečinnosť",exporting:"Export",importing:"Import",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Stop",shutdown:"Shutdown",offline:"Offline",running:"Running",sleepmode:"Sleep Mode",grid_name:"Grid"},gt={battery:{bat:"Nie sú definované žiadne atribúty batérie",energy:"Uveďte atribút energie batérie a hodnotu vo Wh, napr. 5,32 Energia batérie: 5320",shutdown_soc:"Uveďte atribút vypnutia batérie a hodnotu, napr. shutdown_soc: 20",full_capacity:"Plná kapacita musí byť medzi 80 a 100",empty_capacity:"Prázdna kapacita musí byť <= 40",show_daily:"Uveďte atribúty day_battery_charge_70 a day_battery_discharge_71 a ID entity"},solar:{sol:"Nie sú definované žiadne solárne atribúty",mppts:"Uveďte atribút a hodnotu solar mppts; 1,2,3 alebo 4 napr. mppts: 2",show_daily:"Uveďte atribút day_pv_energy_108 a ID entity"},grid:{show_daily:"Uveďte atribúty day_grid_import_76 a day_grid_export_77 a ID entity"},essential_power:"Atribút essential_power je nastavený na hodnotu none. Uveďte atribút inverter_power_175 a ID entity, aby karta vypočítala túto hodnotu.",nonessential_power:"Atribút noesential_power je nastavený na hodnotu none. Uveďte atribút grid_power_169 a ID entity, aby karta vypočítala túto hodnotu.",missing_entity:"`Uveďte atribút a ID entity"},yt={title:"Title",title_colour:"Title Colour",title_size:"Title Size (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Decimal Places",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",modern:"Modern",show_solar:"Show Solar",show_battery:"Show Battery",show_grid:"Show Grid",show_aux:"Show Aux",solar:"Solar",mppts:"MPPTs",show_daily:"Show Daily",show_daily_aux:"Show Daily Aux",dynamic_line_width:"Dynamic Line Width",max_line_width:"Max Line Width",min_line_width:"Min Line Width",animation_speed:"Anim. Speed",max_power:"Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",battery:"Battery",load1_name:"Load 1 Name",load2_name:"Load 2 Name",load3_name:"Load 3 Name",load4_name:"Load 4 Name",load1_icon:"Load 1 Icon",load2_icon:"Load 2 Icon",load3_icon:"Load 3 Icon",load4_icon:"Load 4 Icon",aux_load1_name:"Load 1 Name",aux_load2_name:"Load 2 Name",aux_load1_icon:"Load 1 Icon",aux_load2_icon:"Load 2 Icon",show_daily_buy:"Show Daily Buy",show_daily_sell:"Show Daily Sell",no_grid_colour:"No Grid Colour",grid_off_colour:"Grid Off Colour",grid_name:"Grid Name",colour:"Colour",charge_colour:"Charge Colour",linear_gradient:"Linear Gradient",aux_colour:"Colour",aux_off_colour:"Off Colour",panel_mode:"Panel Mode",invert_grid:"Invert Values",invert_load:"Invert Values",shutdown_soc:"Shutdown SOC",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",dynamic_icon:"Dynamic Icon",invert_power:"Invert Power",show_absolute:"Show Absolute",hide_soc:"Hide SOC",invert_aux:"Invert Aux",show_absolute_aux:"Show Absolute",show_nonessential:"Show Non Essential",aux_name:"Aux Name",aux_type:"Aux Icon",aux_loads:"Aux Loads",essential_name:"Essential Name",additional_loads:"Additional Loads",export_colour:"Export Colour",nonessential_name:"Non Essential Name",nonessential_icon:"Non Essential Icon",energy_cost_decimals:"Energy Cost Decimals",show_remaining_energy:"Show Remaining Energy",cat_title:{title:"Title Options",general:"General Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Battery Options",grid:"Grid Options",load:"Load Options",entities:"Entities",aux:"Aux Options",energy:"Energy Entities",bat:"Battery Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Load Entities",gri:"Grid Entities"}},mt={common:pt,errors:gt,config:yt},ft={description:"Um Card para o Home Assistant que ajuda a emular o fluxo de energia exibido na tela do inversor",version:"Versão",runtime_to:"TEMPO DE ATIVIDADE",battery_floating:"FLUTUAÇÃO DA BATERIA",charge:"CARGA",to:"PARA",daily_load:"USO DIÁRIO",daily_aux:"AUXILIAR DIÁRIO",daily_grid_buy:"CONSUMO DIÁRIO",daily_grid_sell:"ENVIO DIÁRIO",daily_solar:"SOLAR DIÁRIO",daily_solar_left:"PRODUÇÃO DIÁRIA / RESTANTE DIÁRIO",total_solar_generation:"PRODUÇÃO DIÁRIA / PREVISÃO SOLAR",daily_charge:"CARGA DIÁRIA",daily_discharge:"DESCARGA DIÁRIA",ratio:"Proporção",timer_off:"Temporizador desligado",timer_on:"Temporizador ligado",priority_batt:"Prioridade da Bateria",priority_load:"Prioridade de Uso",nonessential_name:"Desnecessário",aux_name:"Auxiliar",pv1_name:"PFV1",pv2_name:"PFV2",pv3_name:"PFV3",pv4_name:"PFV4",essential:"Essencial",autarky:"Autoconsumo",discharging:"Descaregando",charging:"Caregando",waiting:"Aguardando",standby:"Em espera",no_battery:"Sem Bateria",selftest:"Autoteste",normal:"Normal",alarm:"Alarme",fault:"Falta",days:"dìas",hrs:"horas",min:"min",flash:"Flash",check:"Check",idle:"Inativo",exporting:"Exportando",importing:"Importando",ongrid:"On-Grid",offgrid:"Off-Grid",normalstop:" Normal Parado",shutdown:"Desligar",offline:"Offline",running:"Rodando",sleepmode:"Dormindo",grid_name:"Rede"},vt={battery:{bat:"Nenhum atributo de bateria definido",energy:"Inclua o atributo de energia da bateria e seu valor em Wh, por exemplo: 5,32 Potência da bateria: 5320",shutdown_soc:"Inclua o atributo shutdown_soc da bateria e seu valor, por exemplo shutdown_soc: 20",full_capacity:"A capacidade total deve estar entre 80 e 100",empty_capacity:"A capacidade vazia deve ser <= 40",show_daily:"Por favor, inclua os atributos day_battery_charge_70 e day_battery_discharge_71 e os IDs das entidade"},solar:{sol:"Nenhum atributo solar definido",mppts:"Por favor, inclua o atributo solar mppts e seu valor; 1,2,3 ou 4, por exemplo, mppts: 2",show_daily:"Por favor, inclua o atributo day_pv_energy_108 e o ID da entidade"},grid:{show_daily:"Por favor, inclua os atributos day_grid_import_76 e day_grid_export_77 e os IDs das entidade"},essential_power:"O atributo Essential_Power está definido como nenhum. Inclua o atributo inverter_power_175 e o ID da entidade para que o cartão possa calcular esse valor.",nonessential_power:"O atributo nonessential_power está configurado como nenhum. Inclua o atributo grid_power_169 e o ID da entidade para que o cartão possa calcular esse valor.",missing_entity:"Por favor, inclua o atributo e o ID da entidade"},wt={title:"Título",title_colour:"Cor do Título",title_size:"Tamanho do Título (px)",card_height:"Card Height (px)",card_width:"Card Width (px)",decimal_places:"Casas decimais",model:"Modelo",autarky:"Autoconsumo",cardstyle:"Estilo do Cartão",large_font:"Largura da fonte",modern:"Moderno",show_solar:"Exibir Solar",show_battery:"Exibir Bateria",show_grid:"Exibir Rede",show_aux:"Exibir Aux",dynamic_line_width:"Largura da linha dinâmica",max_line_width:"Largura máxima da linha",min_line_width:"Min Line Width",solar:"Solar",mppts:"MPPTs",show_daily:"Exibir Diário",show_daily_aux:"Exibir Diário Aux",animation_speed:"Velocidade de Animação",max_power:"Potência Max",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",battery:"Bateria",load1_name:"Nome Uso1",load2_name:"Nome Uso2",load3_name:"Nome Uso3",load4_name:"Nome Uso4",load1_icon:"Icone Uso1",load2_icon:"Icone Uso2",load3_icon:"Icone Uso3",load4_icon:"Icone Uso4",aux_load1_name:"Nome Aux_Uso1",aux_load2_name:"Nome Aux_Uso2",aux_load1_icon:"Nome Aux_Uso3",aux_load2_icon:"Nome Aux_Uso4",show_daily_buy:"Consumo Diário",show_daily_sell:"Produção Diária",no_grid_colour:"Cor No_Grid",grid_off_colour:"Cor Grid_Off",grid_name:"Nome Grid",colour:"Cor",charge_colour:"Cor Charge",aux_colour:"Cor",aux_off_colour:"Cor Off",panel_mode:"Modo do Painel",invert_grid:"Inverter Valores",invert_load:"Inverter Valores",shutdown_soc:"Desligamento do SOC",energy:"Energia",auto_scale:"Escala automática",three_phase:"Trifásico",dynamic_colour:"Cor Dinâmica",dynamic_icon:"Ícone Dinâmico",invert_power:"Potência do Inversor",show_absolute:"Exibir valor absoluto",hide_soc:"Ocultar SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Exibir absoluto_aux",show_nonessential:"Exibir Desnecessário",aux_name:"Nome Aux",aux_type:"Icone Aux",aux_loads:"Aux Loads",essential_name:"Nome Essencial",additional_loads:"Uso Adicional",export_colour:"Cor Expor",nonessential_name:"Nome Desnecessário",nonessential_icon:"Icone Desnecessário",energy_cost_decimals:"Decimais do custo de energia",show_remaining_energy:"Exibir energia restante",cat_title:{title:"Opções de título",general:"Opções gerais",inverter:"Opções do inversor",solar:"Opções Solar",battery:"Opções da Bateria",grid:"Opções da Rede",load:"Opções Load",entities:"Entidades",aux:"Opções do Aux",energy:"Entidade de Enêrgia",bat:"Entidades da Bateria ",sol:"Entidades de Solar",inv:"Entidades do Inversor",ld:"Entidade do Load",gri:"Entidade da Rede"}},_t={common:ft,errors:vt,config:wt};const xt={hass:null},bt={da:Object.freeze({__proto__:null,common:Ae,config:Le,default:Te,errors:Pe}),de:Object.freeze({__proto__:null,common:Ee,config:Me,default:Ne,errors:Ce}),en:Object.freeze({__proto__:null,common:ke,config:Se,default:Oe,errors:Ie}),es:Object.freeze({__proto__:null,common:De,config:ze,default:Be,errors:He}),et:Object.freeze({__proto__:null,common:Ve,config:Re,default:je,errors:Ge}),fr:Object.freeze({__proto__:null,common:qe,config:We,default:Ue,errors:Ze}),nl:Object.freeze({__proto__:null,common:Qe,config:Xe,default:Ye,errors:Fe}),ru:Object.freeze({__proto__:null,common:Je,config:$e,default:et,errors:Ke}),cs:Object.freeze({__proto__:null,common:tt,config:at,default:ot,errors:nt}),it:Object.freeze({__proto__:null,common:rt,config:st,default:lt,errors:it}),ca:Object.freeze({__proto__:null,common:dt,config:ut,default:ht,errors:ct}),sk:Object.freeze({__proto__:null,common:pt,config:yt,default:mt,errors:gt}),pt_BR:Object.freeze({__proto__:null,common:ft,config:wt,default:_t,errors:vt})};function At(e,t="",n=""){const a=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),o="".concat(xt.hass?.selectedLanguage||xt.hass?.locale?.language||xt.hass?.language||a);let r;try{r=e.split(".").reduce(((e,t)=>e[t]),bt[o])}catch(t){r=e.split(".").reduce(((e,t)=>e[t]),bt.en)}return void 0===r&&(r=e.split(".").reduce(((e,t)=>e[t]),bt.en)),""!==t&&""!==n&&(r=r.replace(t,n)),r}var Pt={cardstyle:"lite",panel_mode:!1,large_font:!1,show_solar:!0,show_battery:!0,show_grid:!0,card_height:"396px",card_width:"100%",decimal_places:2,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:_e.Sunsynk,auto_scale:!0,three_phase:!1},battery:{energy:0,shutdown_soc:20,invert_power:!1,hide_soc:!1,colour:"pink",show_daily:!1,show_remaining_energy:!0,animation_speed:6,max_power:4500,show_absolute:!1,auto_scale:!0,dynamic_colour:!0,linear_gradient:!0},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:At("common.pv1_name"),pv2_name:At("common.pv2_name"),pv3_name:At("common.pv3_name"),pv4_name:At("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0},load:{colour:"#5fb6ad",dynamic_colour:!0,dynamic_icon:!0,show_daily:!1,show_aux:!1,show_daily_aux:!1,invert_aux:!1,invert_load:!1,show_absolute_aux:!1,animation_speed:4,max_power:8e3,aux_name:At("common.aux_name"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:At("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:At("common.load1_name"),load2_name:At("common.load2_name"),auto_scale:!0},grid:{colour:"#5490c2",grid_name:At("common.grid_name"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:At("common.nonessential_name"),additional_loads:0,load1_name:"",load2_name:"",load3_name:"",load1_icon:"default",load2_icon:"default",load3_icon:"default",invert_grid:!1,animation_speed:8,max_power:8e3,auto_scale:!0,energy_cost_decimals:2,show_absolute:!1}};const Lt=[0,1,2,4],Tt=[0,1,2,3],Et=[!0,!1],Ct=[!0,!1],Mt=["off","0","off-grid","off grid","offgrid"],Nt=["on","1","on-grid","on grid","ongrid"];var kt,It,St,Ot,Dt;!function(e){e.DATE="date",e.ENUM="enum",e.TIMESTAMP="timestamp",e.APPARENT_POWER="apparent_power",e.ATMOSPHERIC_PRESSURE="atmospheric_pressure",e.BATTERY="battery",e.CO="carbon_monoxide",e.CO2="carbon_dioxide",e.CURRENT="current",e.ENERGY="energy",e.ENERGY_STORAGE="energy_storage",e.FREQUENCY="frequency",e.IRRADIANCE="irradiance",e.MONETARY="monetary",e.POWER_FACTOR="power_factor",e.POWER="power",e.REACTIVE_POWER="reactive_power",e.TEMPERATURE="temperature",e.VOLTAGE="voltage"}(kt||(kt={})),function(e){e.WATT="W",e.KILO_WATT="kW",e.MEGA_WATT="MW",e.BTU_PER_HOUR="BTU/h"}(It||(It={})),function(e){e.GIGA_JOULE="GJ",e.KILO_WATT_HOUR="kWh",e.MEGA_JOULE="MJ",e.MEGA_WATT_HOUR="MWh",e.WATT_HOUR="Wh"}(St||(St={})),function(e){e.MILLIAMPERE="mA",e.AMPERE="A"}(Ot||(Ot={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(Dt||(Dt={}));const Ht={[St.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:St.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:St.KILO_WATT_HOUR,decimal:1}],[St.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:St.MEGA_WATT_HOUR,decimal:2}],[St.MEGA_WATT_HOUR]:[],[St.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:St.MEGA_JOULE}],[St.MEGA_JOULE]:[],[It.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:It.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:It.KILO_WATT}],[It.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:It.MEGA_WATT}],[It.MEGA_WATT]:[],[It.BTU_PER_HOUR]:[]};var zt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",a=9007199254740991,o="[object Arguments]",r="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",l="[object Null]",d="[object Object]",c="[object Proxy]",u="[object Undefined]",h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[o]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g["[object Error]"]=g[i]=g["[object Map]"]=g["[object Number]"]=g[d]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var y="object"==typeof zt&&zt&&zt.Object===Object&&zt,m="object"==typeof self&&self&&self.Object===Object&&self,f=y||m||Function("return this")(),v=t&&!t.nodeType&&t,w=v&&e&&!e.nodeType&&e,_=w&&w.exports===v,x=_&&y.process,b=function(){try{var e=w&&w.require&&w.require("util").types;return e||x&&x.binding&&x.binding("util")}catch(e){}}(),A=b&&b.isTypedArray;var P,L,T,E=Array.prototype,C=Function.prototype,M=Object.prototype,N=f["__core-js_shared__"],k=C.toString,I=M.hasOwnProperty,S=(P=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",O=M.toString,D=k.call(Object),H=RegExp("^"+k.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=_?f.Buffer:void 0,B=f.Symbol,V=f.Uint8Array,G=z?z.allocUnsafe:void 0,R=(L=Object.getPrototypeOf,T=Object,function(e){return L(T(e))}),j=Object.create,q=M.propertyIsEnumerable,Z=E.splice,W=B?B.toStringTag:void 0,U=function(){try{var e=ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=z?z.isBuffer:void 0,F=Math.max,X=Date.now,Y=ve(f,"Map"),J=ve(Object,"create"),K=function(){function e(){}return function(t){if(!Ne(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var n=this.__data__,a=ie(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(Y||ee),string:new $}},te.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return fe(this,e).get(e)},te.prototype.has=function(e){return fe(this,e).has(e)},te.prototype.set=function(e,t){var n=fe(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var a=n.__data__;if(!Y||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(a)}return n.set(e,t),this.size=n.size,this};var le,de=function(e,t,n){for(var a=-1,o=Object(e),r=n(e),i=r.length;i--;){var s=r[le?i:++a];if(!1===t(o[s],s,o))break}return e};function ce(e){return null==e?void 0===e?u:l:W&&W in Object(e)?function(e){var t=I.call(e,W),n=e[W];try{e[W]=void 0;var a=!0}catch(e){}var o=O.call(e);a&&(t?e[W]=n:delete e[W]);return o}(e):function(e){return O.call(e)}(e)}function ue(e){return ke(e)&&ce(e)==o}function he(e){return!(!Ne(e)||function(e){return!!S&&S in e}(e))&&(Ce(e)?H:h).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ne(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=_e(e),n=[];for(var a in e)("constructor"!=a||!t&&I.call(e,a))&&n.push(a);return n}function ge(e,t,n,a,o){e!==t&&de(t,(function(r,i){if(o||(o=new ne),Ne(r))!function(e,t,n,a,o,r,i){var s=xe(e,n),l=xe(t,n),c=i.get(l);if(c)return void oe(e,n,c);var u=r?r(s,l,n+"",e,t,i):void 0,h=void 0===u;if(h){var p=Le(l),g=!p&&Ee(l),y=!p&&!g&&Ie(l);u=l,p||g||y?Le(s)?u=s:ke(_=s)&&Te(_)?u=function(e,t){var n=-1,a=e.length;t||(t=Array(a));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(me);function Ae(e,t){return e===t||e!=e&&t!=t}var Pe=ue(function(){return arguments}())?ue:function(e){return ke(e)&&I.call(e,"callee")&&!q.call(e,"callee")},Le=Array.isArray;function Te(e){return null!=e&&Me(e.length)&&!Ce(e)}var Ee=Q||function(){return!1};function Ce(e){if(!Ne(e))return!1;var t=ce(e);return t==i||t==s||t==r||t==c}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var Ie=A?function(e){return function(t){return e(t)}}(A):function(e){return ke(e)&&Me(e.length)&&!!g[ce(e)]};function Se(e){return Te(e)?ae(e,!0):pe(e)}var Oe,De=(Oe=function(e,t,n){ge(e,t,n)},ye((function(e,t){var n=-1,a=t.length,o=a>1?t[a-1]:void 0,r=a>2?t[2]:void 0;for(o=Oe.length>3&&"function"==typeof o?(a--,o):void 0,r&&function(e,t,n){if(!Ne(n))return!1;var a=typeof t;return!!("number"==a?Te(n)&&we(t,n.length):"string"==a&&t in n)&&Ae(n[t],e)}(t[0],t[1],r)&&(o=a<3?void 0:o,a=1),e=Object(e);++n
@@ -56,10 +56,10 @@ const ye=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */!function(e,t){(function(){var n,a="Expected a function",o="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,s=32,l=64,d=128,c=256,u=1/0,h=9007199254740991,p=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",s],["partialRight",l],["rearg",c]],m="[object Arguments]",f="[object Array]",v="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",b="[object GeneratorFunction]",A="[object Map]",P="[object Number]",L="[object Object]",T="[object Promise]",E="[object RegExp]",C="[object Set]",M="[object String]",N="[object Symbol]",k="[object WeakMap]",S="[object ArrayBuffer]",I="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",H="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",G="[object Uint8Array]",V="[object Uint8ClampedArray]",R="[object Uint16Array]",q="[object Uint32Array]",j=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,F=RegExp(U.source),X=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ne.source),oe=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\u2700-\\u27bf",Le="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\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",Me="['’]",Ne="["+be+"]",ke="["+Ce+"]",Se="["+Ae+"]",Ie="\\d+",Oe="["+Pe+"]",De="["+Le+"]",He="[^"+be+Ce+Ie+Pe+Le+Te+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+be+"]",Ge="(?:\\ud83c[\\udde6-\\uddff]){2}",Ve="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Te+"]",qe="\\u200d",je="(?:"+De+"|"+He+")",Ze="(?:"+Re+"|"+He+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Se+"|"+ze+")"+"?",Fe="["+Ee+"]?",Xe=Fe+Qe+("(?:"+qe+"(?:"+[Be,Ge,Ve].join("|")+")"+Fe+Qe+")*"),Ye="(?:"+[Oe,Ge,Ve].join("|")+")"+Xe,Je="(?:"+[Be+Se+"?",Se,Ge,Ve,Ne].join("|")+")",Ke=RegExp(Me,"g"),$e=RegExp(Se,"g"),et=RegExp(ze+"(?="+ze+")|"+Je+Xe,"g"),tt=RegExp([Re+"?"+De+"+"+We+"(?="+[ke,Re,"$"].join("|")+")",Ze+"+"+Ue+"(?="+[ke,Re+je,"$"].join("|")+")",Re+"?"+je+"+"+We,Re+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),nt=RegExp("["+qe+be+Ae+Ee+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],rt=-1,it={};it[O]=it[D]=it[H]=it[z]=it[B]=it[G]=it[V]=it[R]=it[q]=!0,it[m]=it[f]=it[S]=it[v]=it[I]=it[w]=it[_]=it[x]=it[A]=it[P]=it[L]=it[E]=it[C]=it[M]=it[k]=!1;var st={};st[m]=st[f]=st[S]=st[I]=st[v]=st[w]=st[O]=st[D]=st[H]=st[z]=st[B]=st[A]=st[P]=st[L]=st[E]=st[C]=st[M]=st[N]=st[G]=st[V]=st[R]=st[q]=!0,st[_]=st[x]=st[k]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ct=parseInt,ut="object"==typeof zt&&zt&&zt.Object===Object&&zt,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ht||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,mt=yt&&yt.exports===gt,ft=mt&&ut.process,vt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(e){}}(),wt=vt&&vt.isArrayBuffer,_t=vt&&vt.isDate,xt=vt&&vt.isMap,bt=vt&&vt.isRegExp,At=vt&&vt.isSet,Pt=vt&&vt.isTypedArray;function Lt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,a){for(var o=-1,r=null==e?0:e.length;++o-1}function St(e,t,n){for(var a=-1,o=null==e?0:e.length;++a-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var an=Qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}function dn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,a=e.length,o=0,i=[];++n",""":'"',"'":"'"});var fn=function e(t){var re,be=(t=null==t?pt:fn.defaults(pt.Object(),t,fn.pick(pt,ot))).Array,Ae=t.Date,Pe=t.Error,Le=t.Function,Te=t.Math,Ee=t.Object,Ce=t.RegExp,Me=t.String,Ne=t.TypeError,ke=be.prototype,Se=Le.prototype,Ie=Ee.prototype,Oe=t["__core-js_shared__"],De=Se.toString,He=Ie.hasOwnProperty,ze=0,Be=(re=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Ge=Ie.toString,Ve=De.call(Ee),Re=pt._,qe=Ce("^"+De.call(He).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=mt?t.Buffer:n,Ze=t.Symbol,We=t.Uint8Array,Ue=je?je.allocUnsafe:n,Qe=dn(Ee.getPrototypeOf,Ee),Fe=Ee.create,Xe=Ie.propertyIsEnumerable,Ye=ke.splice,Je=Ze?Ze.isConcatSpreadable:n,et=Ze?Ze.iterator:n,nt=Ze?Ze.toStringTag:n,lt=function(){try{var e=pr(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=Ae&&Ae.now!==pt.Date.now&&Ae.now,gt=t.setTimeout!==pt.setTimeout&&t.setTimeout,yt=Te.ceil,ft=Te.floor,vt=Ee.getOwnPropertySymbols,zt=je?je.isBuffer:n,Gt=t.isFinite,Qt=ke.join,vn=dn(Ee.keys,Ee),wn=Te.max,_n=Te.min,xn=Ae.now,bn=t.parseInt,An=Te.random,Pn=ke.reverse,Ln=pr(t,"DataView"),Tn=pr(t,"Map"),En=pr(t,"Promise"),Cn=pr(t,"Set"),Mn=pr(t,"WeakMap"),Nn=pr(Ee,"create"),kn=Mn&&new Mn,Sn={},In=Gr(Ln),On=Gr(Tn),Dn=Gr(En),Hn=Gr(Cn),zn=Gr(Mn),Bn=Ze?Ze.prototype:n,Gn=Bn?Bn.valueOf:n,Vn=Bn?Bn.toString:n;function Rn(e){if(ns(e)&&!Wi(e)&&!(e instanceof Wn)){if(e instanceof Zn)return e;if(He.call(e,"__wrapped__"))return Vr(e)}return new Zn(e)}var qn=function(){function e(){}return function(t){if(!ts(t))return{};if(Fe)return Fe(t);e.prototype=t;var a=new e;return e.prototype=n,a}}();function jn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function da(e,t,a,o,r,i){var s,l=1&t,d=2&t,c=4&t;if(a&&(s=r?a(e,o,r,i):a(e)),s!==n)return s;if(!ts(e))return e;var u=Wi(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&He.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ko(e,s)}else{var h=mr(e),p=h==x||h==b;if(Xi(e))return Lo(e,l);if(h==L||h==m||p&&!r){if(s=d||p?{}:vr(e),!l)return d?function(e,t){return So(e,yr(e),t)}(e,function(e,t){return e&&So(t,Is(t),e)}(s,e)):function(e,t){return So(e,gr(e),t)}(e,ra(s,e))}else{if(!st[h])return r?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case S:return To(e);case v:case w:return new a(+e);case I:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case D:case H:case z:case B:case G:case V:case R:case q:return Eo(e,n);case A:return new a;case P:case M:return new a(e);case E:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new a;case N:return o=e,Gn?Ee(Gn.call(o)):{}}var o}(e,h,l)}}i||(i=new Yn);var g=i.get(e);if(g)return g;i.set(e,s),ss(e)?e.forEach((function(n){s.add(da(n,t,a,n,e,i))})):as(e)&&e.forEach((function(n,o){s.set(o,da(n,t,a,o,e,i))}));var y=u?n:(c?d?ir:rr:d?Is:Ss)(e);return Et(y||e,(function(n,o){y&&(n=e[o=n]),na(s,o,da(n,t,a,o,e,i))})),s}function ca(e,t,a){var o=a.length;if(null==e)return!o;for(e=Ee(e);o--;){var r=a[o],i=t[r],s=e[r];if(s===n&&!(r in e)||!i(s))return!1}return!0}function ua(e,t,o){if("function"!=typeof e)throw new Ne(a);return Sr((function(){e.apply(n,o)}),t)}function ha(e,t,n,a){var o=-1,r=kt,i=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=It(t,Kt(n))),a?(r=St,i=!1):t.length>=200&&(r=en,i=!1,t=new Xn(t));e:for(;++o-1},Qn.prototype.set=function(e,t){var n=this.__data__,a=aa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Tn||Qn),string:new Un}},Fn.prototype.delete=function(e){var t=ur(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return ur(this,e).get(e)},Fn.prototype.has=function(e){return ur(this,e).has(e)},Fn.prototype.set=function(e,t){var n=ur(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var a=n.__data__;if(!Tn||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(a)}return n.set(e,t),this.size=n.size,this};var pa=Do(xa),ga=Do(ba,!0);function ya(e,t){var n=!0;return pa(e,(function(e,a,o){return n=!!t(e,a,o)})),n}function ma(e,t,a){for(var o=-1,r=e.length;++o0&&n(s)?t>1?va(s,t-1,n,a,o):Ot(o,s):a||(o[o.length]=s)}return o}var wa=Ho(),_a=Ho(!0);function xa(e,t){return e&&wa(e,t,Ss)}function ba(e,t){return e&&_a(e,t,Ss)}function Aa(e,t){return Nt(t,(function(t){return Ki(e[t])}))}function Pa(e,t){for(var a=0,o=(t=xo(t,e)).length;null!=e&&at}function Ca(e,t){return null!=e&&He.call(e,t)}function Ma(e,t){return null!=e&&t in Ee(e)}function Na(e,t,a){for(var o=a?St:kt,r=e[0].length,i=e.length,s=i,l=be(i),d=1/0,c=[];s--;){var u=e[s];s&&t&&(u=It(u,Kt(t))),d=_n(u.length,d),l[s]=!a&&(t||r>=120&&u.length>=120)?new Xn(s&&u):n}u=e[0];var h=-1,p=l[0];e:for(;++h=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ua(e,t,n){for(var a=-1,o=t.length,r={};++a-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Fa(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==r){var r=o;_r(o)?Ye.call(e,o,1):po(e,o)}}return e}function Xa(e,t){return e+ft(An()*(t-e+1))}function Ya(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ja(e,t){return Ir(Cr(e,t,ol),e+"")}function Ka(e){return Kn(Rs(e))}function $a(e,t){var n=Rs(e);return Hr(n,la(t,0,n.length))}function eo(e,t,a,o){if(!ts(e))return e;for(var r=-1,i=(t=xo(t,e)).length,s=i-1,l=e;null!=l&&++ro?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=be(o);++a>>1,i=e[r];null!==i&&!ds(i)&&(n?i<=t:i=200){var d=t?null:Jo(e);if(d)return un(d);i=!1,o=en,l=new Xn}else l=t?[]:s;e:for(;++a=o?e:oo(e,t,a)}var Po=ut||function(e){return pt.clearTimeout(e)};function Lo(e,t){if(t)return e.slice();var n=e.length,a=Ue?Ue(n):new e.constructor(n);return e.copy(a),a}function To(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Eo(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var a=e!==n,o=null===e,r=e==e,i=ds(e),s=t!==n,l=null===t,d=t==t,c=ds(t);if(!l&&!c&&!i&&e>t||i&&s&&d&&!l&&!c||o&&s&&d||!a&&d||!r)return 1;if(!o&&!i&&!c&&e1?a[r-1]:n,s=r>2?a[2]:n;for(i=e.length>3&&"function"==typeof i?(r--,i):n,s&&xr(a[0],a[1],s)&&(i=r<3?n:i,r=1),t=Ee(t);++o-1?r[i?t[s]:s]:n}}function Ro(e){return or((function(t){var o=t.length,r=o,i=Zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ne(a);if(i&&!l&&"wrapper"==lr(s))var l=new Zn([],!0)}for(r=l?r:o;++r1&&w.reverse(),h&&cl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var h=-1,p=!0,g=2&a?new Xn:n;for(i.set(e,t),i.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Et(y,(function(n){var a="_."+n[0];t&n[1]&&!kt(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(a),n)))}function Dr(e){var t=0,a=0;return function(){var o=xn(),r=16-(o-a);if(a=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Hr(e,t){var a=-1,o=e.length,r=o-1;for(t=t===n?o:t;++a1?e[t-1]:n;return a="function"==typeof a?(e.pop(),a):n,ii(e,a)}));function pi(e){var t=Rn(e);return t.__chain__=!0,t}function gi(e,t){return t(e)}var yi=or((function(e){var t=e.length,a=t?e[0]:0,o=this.__wrapped__,r=function(t){return sa(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&_r(a)?((o=o.slice(a,+a+(t?1:0))).__actions__.push({func:gi,args:[r],thisArg:n}),new Zn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(r)}));var mi=Io((function(e,t,n){He.call(e,n)?++e[n]:ia(e,n,1)}));var fi=Vo(Zr),vi=Vo(Wr);function wi(e,t){return(Wi(e)?Et:pa)(e,cr(t,3))}function _i(e,t){return(Wi(e)?Ct:ga)(e,cr(t,3))}var xi=Io((function(e,t,n){He.call(e,n)?e[n].push(t):ia(e,n,[t])}));var bi=Ja((function(e,t,n){var a=-1,o="function"==typeof t,r=Qi(e)?be(e.length):[];return pa(e,(function(e){r[++a]=o?Lt(t,e,n):ka(e,t,n)})),r})),Ai=Io((function(e,t,n){ia(e,n,t)}));function Pi(e,t){return(Wi(e)?It:Va)(e,cr(t,3))}var Li=Io((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ti=Ja((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xr(e,t[0],t[1])?t=[]:n>2&&xr(t[0],t[1],t[2])&&(t=[t[0]]),Wa(e,va(t,1),[])})),Ei=ht||function(){return pt.Date.now()};function Ci(e,t,a){return t=a?n:t,t=e&&null==t?e.length:t,$o(e,d,n,n,n,n,t)}function Mi(e,t){var o;if("function"!=typeof t)throw new Ne(a);return e=ys(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ni=Ja((function(e,t,n){var a=1;if(n.length){var o=cn(n,dr(Ni));a|=s}return $o(e,a,t,n,o)})),ki=Ja((function(e,t,n){var a=3;if(n.length){var o=cn(n,dr(ki));a|=s}return $o(t,a,e,n,o)}));function Si(e,t,o){var r,i,s,l,d,c,u=0,h=!1,p=!1,g=!0;if("function"!=typeof e)throw new Ne(a);function y(t){var a=r,o=i;return r=i=n,u=t,l=e.apply(o,a)}function m(e){var a=e-c;return c===n||a>=t||a<0||p&&e-u>=s}function f(){var e=Ei();if(m(e))return v(e);d=Sr(f,function(e){var n=t-(e-c);return p?_n(n,s-(e-u)):n}(e))}function v(e){return d=n,g&&r?y(e):(r=i=n,l)}function w(){var e=Ei(),a=m(e);if(r=arguments,i=this,c=e,a){if(d===n)return function(e){return u=e,d=Sr(f,t),h?y(e):l}(c);if(p)return Po(d),d=Sr(f,t),y(c)}return d===n&&(d=Sr(f,t)),l}return t=fs(t)||0,ts(o)&&(h=!!o.leading,s=(p="maxWait"in o)?wn(fs(o.maxWait)||0,t):s,g="trailing"in o?!!o.trailing:g),w.cancel=function(){d!==n&&Po(d),u=0,r=c=i=d=n},w.flush=function(){return d===n?l:v(Ei())},w}var Ii=Ja((function(e,t){return ua(e,1,t)})),Oi=Ja((function(e,t,n){return ua(e,fs(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(a);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],r=n.cache;if(r.has(o))return r.get(o);var i=e.apply(this,a);return n.cache=r.set(o,i)||r,i};return n.cache=new(Di.Cache||Fn),n}function Hi(e){if("function"!=typeof e)throw new Ne(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=Fn;var zi=bo((function(e,t){var n=(t=1==t.length&&Wi(t[0])?It(t[0],Kt(cr())):It(va(t,1),Kt(cr()))).length;return Ja((function(a){for(var o=-1,r=_n(a.length,n);++o=t})),Zi=Sa(function(){return arguments}())?Sa:function(e){return ns(e)&&He.call(e,"callee")&&!Xe.call(e,"callee")},Wi=be.isArray,Ui=wt?Kt(wt):function(e){return ns(e)&&Ta(e)==S};function Qi(e){return null!=e&&es(e.length)&&!Ki(e)}function Fi(e){return ns(e)&&Qi(e)}var Xi=zt||fl,Yi=_t?Kt(_t):function(e){return ns(e)&&Ta(e)==w};function Ji(e){if(!ns(e))return!1;var t=Ta(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ki(e){if(!ts(e))return!1;var t=Ta(e);return t==x||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $i(e){return"number"==typeof e&&e==ys(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var as=xt?Kt(xt):function(e){return ns(e)&&mr(e)==A};function os(e){return"number"==typeof e||ns(e)&&Ta(e)==P}function rs(e){if(!ns(e)||Ta(e)!=L)return!1;var t=Qe(e);if(null===t)return!0;var n=He.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ve}var is=bt?Kt(bt):function(e){return ns(e)&&Ta(e)==E};var ss=At?Kt(At):function(e){return ns(e)&&mr(e)==C};function ls(e){return"string"==typeof e||!Wi(e)&&ns(e)&&Ta(e)==M}function ds(e){return"symbol"==typeof e||ns(e)&&Ta(e)==N}var cs=Pt?Kt(Pt):function(e){return ns(e)&&es(e.length)&&!!it[Ta(e)]};var us=Fo(Ga),hs=Fo((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Qi(e))return ls(e)?gn(e):ko(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=mr(e);return(t==A?ln:t==C?un:Rs)(e)}function gs(e){return e?(e=fs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ys(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?la(ys(e),0,g):0}function fs(e){if("number"==typeof e)return e;if(ds(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||fe.test(e)?ct(e.slice(2),n?2:8):ge.test(e)?p:+e}function vs(e){return So(e,Is(e))}function ws(e){return null==e?"":uo(e)}var _s=Oo((function(e,t){if(Lr(t)||Qi(t))So(t,Ss(t),e);else for(var n in t)He.call(t,n)&&na(e,n,t[n])})),xs=Oo((function(e,t){So(t,Is(t),e)})),bs=Oo((function(e,t,n,a){So(t,Is(t),e,a)})),As=Oo((function(e,t,n,a){So(t,Ss(t),e,a)})),Ps=or(sa);var Ls=Ja((function(e,t){e=Ee(e);var a=-1,o=t.length,r=o>2?t[2]:n;for(r&&xr(t[0],t[1],r)&&(o=1);++a1),t})),So(e,ir(e),n),a&&(n=da(n,7,nr));for(var o=t.length;o--;)po(n,t[o]);return n}));var zs=or((function(e,t){return null==e?{}:function(e,t){return Ua(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=It(ir(e),(function(e){return[e]}));return t=cr(t),Ua(e,n,(function(e,n){return t(e,n[0])}))}var Gs=Ko(Ss),Vs=Ko(Is);function Rs(e){return null==e?[]:$t(e,Ss(e))}var qs=Bo((function(e,t,n){return t=t.toLowerCase(),e+(n?js(t):t)}));function js(e){return Js(ws(e).toLowerCase())}function Zs(e){return(e=ws(e))&&e.replace(we,an).replace($e,"")}var Ws=Bo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=Bo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=zo("toLowerCase");var Fs=Bo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Bo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Ys=Bo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=zo("toUpperCase");function Ks(e,t,a){return e=ws(e),(t=a?n:t)===n?function(e){return at.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=Ja((function(e,t){try{return Lt(e,n,t)}catch(e){return Ji(e)?e:new Pe(e)}})),el=or((function(e,t){return Et(t,(function(t){t=Br(t),ia(e,t,Ni(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Ro(),al=Ro(!0);function ol(e){return e}function rl(e){return Ha("function"==typeof e?e:da(e,1))}var il=Ja((function(e,t){return function(n){return ka(n,e,t)}})),sl=Ja((function(e,t){return function(n){return ka(e,n,t)}}));function ll(e,t,n){var a=Ss(t),o=Aa(t,a);null!=n||ts(t)&&(o.length||!a.length)||(n=t,t=e,e=this,o=Aa(t,Ss(t)));var r=!(ts(n)&&"chain"in n&&!n.chain),i=Ki(e);return Et(o,(function(n){var a=t[n];e[n]=a,i&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=ko(this.__actions__)).push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Ot([this.value()],arguments))})})),e}function dl(){}var cl=Wo(It),ul=Wo(Mt),hl=Wo(Bt);function pl(e){return br(e)?Ut(Br(e)):function(e){return function(t){return Pa(t,e)}}(e)}var gl=Qo(),yl=Qo(!0);function ml(){return[]}function fl(){return!1}var vl=Zo((function(e,t){return e+t}),0),wl=Yo("ceil"),_l=Zo((function(e,t){return e/t}),1),xl=Yo("floor");var bl,Al=Zo((function(e,t){return e*t}),1),Pl=Yo("round"),Ll=Zo((function(e,t){return e-t}),0);return Rn.after=function(e,t){if("function"!=typeof t)throw new Ne(a);return e=ys(e),function(){if(--e<1)return t.apply(this,arguments)}},Rn.ary=Ci,Rn.assign=_s,Rn.assignIn=xs,Rn.assignInWith=bs,Rn.assignWith=As,Rn.at=Ps,Rn.before=Mi,Rn.bind=Ni,Rn.bindAll=el,Rn.bindKey=ki,Rn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Rn.chain=pi,Rn.chunk=function(e,t,a){t=(a?xr(e,t,a):t===n)?1:wn(ys(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var r=0,i=0,s=be(yt(o/t));rr?0:r+a),(o=o===n||o>r?r:ys(o))<0&&(o+=r),o=a>o?0:ms(o);a>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=uo(t))&&sn(e)?Ao(gn(e),0,a):e.split(t,a):[]},Rn.spread=function(e,t){if("function"!=typeof e)throw new Ne(a);return t=null==t?0:wn(ys(t),0),Ja((function(n){var a=n[t],o=Ao(n,0,t);return a&&Ot(o,a),Lt(e,this,o)}))},Rn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Rn.take=function(e,t,a){return e&&e.length?oo(e,0,(t=a||t===n?1:ys(t))<0?0:t):[]},Rn.takeRight=function(e,t,a){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=a||t===n?1:ys(t)))<0?0:t,o):[]},Rn.takeRightWhile=function(e,t){return e&&e.length?yo(e,cr(t,3),!1,!0):[]},Rn.takeWhile=function(e,t){return e&&e.length?yo(e,cr(t,3)):[]},Rn.tap=function(e,t){return t(e),e},Rn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new Ne(a);return ts(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Si(e,t,{leading:o,maxWait:t,trailing:r})},Rn.thru=gi,Rn.toArray=ps,Rn.toPairs=Gs,Rn.toPairsIn=Vs,Rn.toPath=function(e){return Wi(e)?It(e,Br):ds(e)?[e]:ko(zr(ws(e)))},Rn.toPlainObject=vs,Rn.transform=function(e,t,n){var a=Wi(e),o=a||Xi(e)||cs(e);if(t=cr(t,4),null==n){var r=e&&e.constructor;n=o?a?new r:[]:ts(e)&&Ki(r)?qn(Qe(e)):{}}return(o?Et:xa)(e,(function(e,a,o){return t(n,e,a,o)})),n},Rn.unary=function(e){return Ci(e,1)},Rn.union=ni,Rn.unionBy=ai,Rn.unionWith=oi,Rn.uniq=function(e){return e&&e.length?ho(e):[]},Rn.uniqBy=function(e,t){return e&&e.length?ho(e,cr(t,2)):[]},Rn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ho(e,n,t):[]},Rn.unset=function(e,t){return null==e||po(e,t)},Rn.unzip=ri,Rn.unzipWith=ii,Rn.update=function(e,t,n){return null==e?e:go(e,t,_o(n))},Rn.updateWith=function(e,t,a,o){return o="function"==typeof o?o:n,null==e?e:go(e,t,_o(a),o)},Rn.values=Rs,Rn.valuesIn=function(e){return null==e?[]:$t(e,Is(e))},Rn.without=si,Rn.words=Ks,Rn.wrap=function(e,t){return Bi(_o(t),e)},Rn.xor=li,Rn.xorBy=di,Rn.xorWith=ci,Rn.zip=ui,Rn.zipObject=function(e,t){return vo(e||[],t||[],na)},Rn.zipObjectDeep=function(e,t){return vo(e||[],t||[],eo)},Rn.zipWith=hi,Rn.entries=Gs,Rn.entriesIn=Vs,Rn.extend=xs,Rn.extendWith=bs,ll(Rn,Rn),Rn.add=vl,Rn.attempt=$s,Rn.camelCase=qs,Rn.capitalize=js,Rn.ceil=wl,Rn.clamp=function(e,t,a){return a===n&&(a=t,t=n),a!==n&&(a=(a=fs(a))==a?a:0),t!==n&&(t=(t=fs(t))==t?t:0),la(fs(e),t,a)},Rn.clone=function(e){return da(e,4)},Rn.cloneDeep=function(e){return da(e,5)},Rn.cloneDeepWith=function(e,t){return da(e,5,t="function"==typeof t?t:n)},Rn.cloneWith=function(e,t){return da(e,4,t="function"==typeof t?t:n)},Rn.conformsTo=function(e,t){return null==t||ca(e,t,Ss(t))},Rn.deburr=Zs,Rn.defaultTo=function(e,t){return null==e||e!=e?t:e},Rn.divide=_l,Rn.endsWith=function(e,t,a){e=ws(e),t=uo(t);var o=e.length,r=a=a===n?o:la(ys(a),0,o);return(a-=t.length)>=0&&e.slice(a,r)==t},Rn.eq=Ri,Rn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace(Q,on):e},Rn.escapeRegExp=function(e){return(e=ws(e))&&ae.test(e)?e.replace(ne,"\\$&"):e},Rn.every=function(e,t,a){var o=Wi(e)?Mt:ya;return a&&xr(e,t,a)&&(t=n),o(e,cr(t,3))},Rn.find=fi,Rn.findIndex=Zr,Rn.findKey=function(e,t){return Vt(e,cr(t,3),xa)},Rn.findLast=vi,Rn.findLastIndex=Wr,Rn.findLastKey=function(e,t){return Vt(e,cr(t,3),ba)},Rn.floor=xl,Rn.forEach=wi,Rn.forEachRight=_i,Rn.forIn=function(e,t){return null==e?e:wa(e,cr(t,3),Is)},Rn.forInRight=function(e,t){return null==e?e:_a(e,cr(t,3),Is)},Rn.forOwn=function(e,t){return e&&xa(e,cr(t,3))},Rn.forOwnRight=function(e,t){return e&&ba(e,cr(t,3))},Rn.get=Es,Rn.gt=qi,Rn.gte=ji,Rn.has=function(e,t){return null!=e&&fr(e,t,Ca)},Rn.hasIn=Cs,Rn.head=Qr,Rn.identity=ol,Rn.includes=function(e,t,n,a){e=Qi(e)?e:Rs(e),n=n&&!a?ys(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},Rn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:ys(n);return o<0&&(o=wn(a+o,0)),qt(e,t,o)},Rn.inRange=function(e,t,a){return t=gs(t),a===n?(a=t,t=0):a=gs(a),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=h},Rn.isSet=ss,Rn.isString=ls,Rn.isSymbol=ds,Rn.isTypedArray=cs,Rn.isUndefined=function(e){return e===n},Rn.isWeakMap=function(e){return ns(e)&&mr(e)==k},Rn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ta(e)},Rn.join=function(e,t){return null==e?"":Qt.call(e,t)},Rn.kebabCase=Ws,Rn.last=Jr,Rn.lastIndexOf=function(e,t,a){var o=null==e?0:e.length;if(!o)return-1;var r=o;return a!==n&&(r=(r=ys(a))<0?wn(o+r,0):_n(r,o-1)),t==t?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(e,t,r):Rt(e,Zt,r,!0)},Rn.lowerCase=Us,Rn.lowerFirst=Qs,Rn.lt=us,Rn.lte=hs,Rn.max=function(e){return e&&e.length?ma(e,ol,Ea):n},Rn.maxBy=function(e,t){return e&&e.length?ma(e,cr(t,2),Ea):n},Rn.mean=function(e){return Wt(e,ol)},Rn.meanBy=function(e,t){return Wt(e,cr(t,2))},Rn.min=function(e){return e&&e.length?ma(e,ol,Ga):n},Rn.minBy=function(e,t){return e&&e.length?ma(e,cr(t,2),Ga):n},Rn.stubArray=ml,Rn.stubFalse=fl,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=Al,Rn.nth=function(e,t){return e&&e.length?Za(e,ys(t)):n},Rn.noConflict=function(){return pt._===this&&(pt._=Re),this},Rn.noop=dl,Rn.now=Ei,Rn.pad=function(e,t,n){e=ws(e);var a=(t=ys(t))?pn(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Uo(ft(o),n)+e+Uo(yt(o),n)},Rn.padEnd=function(e,t,n){e=ws(e);var a=(t=ys(t))?pn(e):0;return t&&at){var o=e;e=t,t=o}if(a||e%1||t%1){var r=An();return _n(e+r*(t-e+dt("1e-"+((r+"").length-1))),t)}return Xa(e,t)},Rn.reduce=function(e,t,n){var a=Wi(e)?Dt:Ft,o=arguments.length<3;return a(e,cr(t,4),n,o,pa)},Rn.reduceRight=function(e,t,n){var a=Wi(e)?Ht:Ft,o=arguments.length<3;return a(e,cr(t,4),n,o,ga)},Rn.repeat=function(e,t,a){return t=(a?xr(e,t,a):t===n)?1:ys(t),Ya(ws(e),t)},Rn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Rn.result=function(e,t,a){var o=-1,r=(t=xo(t,e)).length;for(r||(r=1,e=n);++oh)return[];var n=g,a=_n(e,g);t=cr(t),e-=g;for(var o=Yt(a,t);++n=i)return e;var l=a-pn(o);if(l<1)return o;var d=s?Ao(s,0,l).join(""):e.slice(0,l);if(r===n)return d+o;if(s&&(l+=d.length-l),is(r)){if(e.slice(l).search(r)){var c,u=d;for(r.global||(r=Ce(r.source,ws(pe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var h=c.index;d=d.slice(0,h===n?l:h)}}else if(e.indexOf(uo(r),l)!=l){var p=d.lastIndexOf(r);p>-1&&(d=d.slice(0,p))}return d+o},Rn.unescape=function(e){return(e=ws(e))&&F.test(e)?e.replace(U,mn):e},Rn.uniqueId=function(e){var t=++ze;return ws(e)+t},Rn.upperCase=Ys,Rn.upperFirst=Js,Rn.each=wi,Rn.eachRight=_i,Rn.first=Qr,ll(Rn,(bl={},xa(Rn,(function(e,t){He.call(Rn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Rn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rn[e].placeholder=Rn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(a){a=a===n?1:wn(ys(a),0);var o=this.__filtered__&&!t?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(a,o.__takeCount__):o.__views__.push({size:_n(a,g),type:e+(o.__dir__<0?"Right":"")}),o},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:cr(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ol)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Ja((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return ka(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Hi(cr(e)))},Wn.prototype.slice=function(e,t){e=ys(e);var a=this;return a.__filtered__&&(e>0||t<0)?new Wn(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==n&&(a=(t=ys(t))<0?a.dropRight(-t):a.take(t-e)),a)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},xa(Wn.prototype,(function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=Rn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(Rn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Wn,d=s[0],c=l||Wi(t),u=function(e){var t=r.apply(Rn,Ot([e],s));return o&&h?t[0]:t};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,g=i&&!h,y=l&&!p;if(!i&&c){t=y?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:gi,args:[u],thisArg:n}),new Zn(m,h)}return g&&y?e.apply(this,s):(m=this.thru(u),g?o?m.value()[0]:m.value():m)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Rn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[n]((function(n){return t.apply(Wi(n)?n:[],e)}))}})),xa(Wn.prototype,(function(e,t){var n=Rn[t];if(n){var a=n.name+"";He.call(Sn,a)||(Sn[a]=[]),Sn[a].push({name:t,func:n})}})),Sn[qo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wi(e),a=t<0,o=n?e.length:0,r=function(e,t,n){var a=-1,o=n.length;for(;++a=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Rn.prototype.plant=function(e){for(var t,a=this;a instanceof jn;){var o=Vr(a);o.__index__=0,o.__values__=n,t?r.__wrapped__=o:t=o;var r=o;a=a.__wrapped__}return r.__wrapped__=e,t},Rn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:gi,args:[ti],thisArg:n}),new Zn(t,this.__chain__)}return this.thru(ti)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,et&&(Rn.prototype[et]=function(){return this}),Rn}();yt?((yt.exports=fn)._=fn,gt._=fn):pt._=fn}).call(zt)}(jt,jt.exports);var Zt,Wt,Ut,Qt=jt.exports;let Ft=class extends(
+ */!function(e,t){(function(){var n,a="Expected a function",o="__lodash_hash_undefined__",r="__lodash_placeholder__",i=16,s=32,l=64,d=128,c=256,u=1/0,h=9007199254740991,p=NaN,g=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",i],["flip",512],["partial",s],["partialRight",l],["rearg",c]],m="[object Arguments]",f="[object Array]",v="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",b="[object GeneratorFunction]",A="[object Map]",P="[object Number]",L="[object Object]",T="[object Promise]",E="[object RegExp]",C="[object Set]",M="[object String]",N="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",S="[object DataView]",O="[object Float32Array]",D="[object Float64Array]",H="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",R="[object Uint16Array]",j="[object Uint32Array]",q=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,F=RegExp(U.source),X=RegExp(Q.source),Y=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(ne.source),oe=/^\s+/,re=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\u2700-\\u27bf",Le="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\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",Me="['’]",Ne="["+be+"]",ke="["+Ce+"]",Ie="["+Ae+"]",Se="\\d+",Oe="["+Pe+"]",De="["+Le+"]",He="[^"+be+Ce+Se+Pe+Le+Te+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+be+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",Re="["+Te+"]",je="\\u200d",qe="(?:"+De+"|"+He+")",Ze="(?:"+Re+"|"+He+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Ie+"|"+ze+")"+"?",Fe="["+Ee+"]?",Xe=Fe+Qe+("(?:"+je+"(?:"+[Be,Ve,Ge].join("|")+")"+Fe+Qe+")*"),Ye="(?:"+[Oe,Ve,Ge].join("|")+")"+Xe,Je="(?:"+[Be+Ie+"?",Ie,Ve,Ge,Ne].join("|")+")",Ke=RegExp(Me,"g"),$e=RegExp(Ie,"g"),et=RegExp(ze+"(?="+ze+")|"+Je+Xe,"g"),tt=RegExp([Re+"?"+De+"+"+We+"(?="+[ke,Re,"$"].join("|")+")",Ze+"+"+Ue+"(?="+[ke,Re+qe,"$"].join("|")+")",Re+"?"+qe+"+"+We,Re+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Se,Ye].join("|"),"g"),nt=RegExp("["+je+be+Ae+Ee+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],rt=-1,it={};it[O]=it[D]=it[H]=it[z]=it[B]=it[V]=it[G]=it[R]=it[j]=!0,it[m]=it[f]=it[I]=it[v]=it[S]=it[w]=it[_]=it[x]=it[A]=it[P]=it[L]=it[E]=it[C]=it[M]=it[k]=!1;var st={};st[m]=st[f]=st[I]=st[S]=st[v]=st[w]=st[O]=st[D]=st[H]=st[z]=st[B]=st[A]=st[P]=st[L]=st[E]=st[C]=st[M]=st[N]=st[V]=st[G]=st[R]=st[j]=!0,st[_]=st[x]=st[k]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ct=parseInt,ut="object"==typeof zt&&zt&&zt.Object===Object&&zt,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ht||Function("return this")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,mt=yt&&yt.exports===gt,ft=mt&&ut.process,vt=function(){try{var e=yt&&yt.require&&yt.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(e){}}(),wt=vt&&vt.isArrayBuffer,_t=vt&&vt.isDate,xt=vt&&vt.isMap,bt=vt&&vt.isRegExp,At=vt&&vt.isSet,Pt=vt&&vt.isTypedArray;function Lt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,a){for(var o=-1,r=null==e?0:e.length;++o-1}function It(e,t,n){for(var a=-1,o=null==e?0:e.length;++a-1;);return n}function nn(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var an=Qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rn(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}function dn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,a=e.length,o=0,i=[];++n",""":'"',"'":"'"});var fn=function e(t){var re,be=(t=null==t?pt:fn.defaults(pt.Object(),t,fn.pick(pt,ot))).Array,Ae=t.Date,Pe=t.Error,Le=t.Function,Te=t.Math,Ee=t.Object,Ce=t.RegExp,Me=t.String,Ne=t.TypeError,ke=be.prototype,Ie=Le.prototype,Se=Ee.prototype,Oe=t["__core-js_shared__"],De=Ie.toString,He=Se.hasOwnProperty,ze=0,Be=(re=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Ve=Se.toString,Ge=De.call(Ee),Re=pt._,je=Ce("^"+De.call(He).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=mt?t.Buffer:n,Ze=t.Symbol,We=t.Uint8Array,Ue=qe?qe.allocUnsafe:n,Qe=dn(Ee.getPrototypeOf,Ee),Fe=Ee.create,Xe=Se.propertyIsEnumerable,Ye=ke.splice,Je=Ze?Ze.isConcatSpreadable:n,et=Ze?Ze.iterator:n,nt=Ze?Ze.toStringTag:n,lt=function(){try{var e=pr(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=Ae&&Ae.now!==pt.Date.now&&Ae.now,gt=t.setTimeout!==pt.setTimeout&&t.setTimeout,yt=Te.ceil,ft=Te.floor,vt=Ee.getOwnPropertySymbols,zt=qe?qe.isBuffer:n,Vt=t.isFinite,Qt=ke.join,vn=dn(Ee.keys,Ee),wn=Te.max,_n=Te.min,xn=Ae.now,bn=t.parseInt,An=Te.random,Pn=ke.reverse,Ln=pr(t,"DataView"),Tn=pr(t,"Map"),En=pr(t,"Promise"),Cn=pr(t,"Set"),Mn=pr(t,"WeakMap"),Nn=pr(Ee,"create"),kn=Mn&&new Mn,In={},Sn=Vr(Ln),On=Vr(Tn),Dn=Vr(En),Hn=Vr(Cn),zn=Vr(Mn),Bn=Ze?Ze.prototype:n,Vn=Bn?Bn.valueOf:n,Gn=Bn?Bn.toString:n;function Rn(e){if(ns(e)&&!Wi(e)&&!(e instanceof Wn)){if(e instanceof Zn)return e;if(He.call(e,"__wrapped__"))return Gr(e)}return new Zn(e)}var jn=function(){function e(){}return function(t){if(!ts(t))return{};if(Fe)return Fe(t);e.prototype=t;var a=new e;return e.prototype=n,a}}();function qn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function da(e,t,a,o,r,i){var s,l=1&t,d=2&t,c=4&t;if(a&&(s=r?a(e,o,r,i):a(e)),s!==n)return s;if(!ts(e))return e;var u=Wi(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&He.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return ko(e,s)}else{var h=mr(e),p=h==x||h==b;if(Xi(e))return Lo(e,l);if(h==L||h==m||p&&!r){if(s=d||p?{}:vr(e),!l)return d?function(e,t){return Io(e,yr(e),t)}(e,function(e,t){return e&&Io(t,Ss(t),e)}(s,e)):function(e,t){return Io(e,gr(e),t)}(e,ra(s,e))}else{if(!st[h])return r?e:{};s=function(e,t,n){var a=e.constructor;switch(t){case I:return To(e);case v:case w:return new a(+e);case S:return function(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case D:case H:case z:case B:case V:case G:case R:case j:return Eo(e,n);case A:return new a;case P:case M:return new a(e);case E:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new a;case N:return o=e,Vn?Ee(Vn.call(o)):{}}var o}(e,h,l)}}i||(i=new Yn);var g=i.get(e);if(g)return g;i.set(e,s),ss(e)?e.forEach((function(n){s.add(da(n,t,a,n,e,i))})):as(e)&&e.forEach((function(n,o){s.set(o,da(n,t,a,o,e,i))}));var y=u?n:(c?d?ir:rr:d?Ss:Is)(e);return Et(y||e,(function(n,o){y&&(n=e[o=n]),na(s,o,da(n,t,a,o,e,i))})),s}function ca(e,t,a){var o=a.length;if(null==e)return!o;for(e=Ee(e);o--;){var r=a[o],i=t[r],s=e[r];if(s===n&&!(r in e)||!i(s))return!1}return!0}function ua(e,t,o){if("function"!=typeof e)throw new Ne(a);return Ir((function(){e.apply(n,o)}),t)}function ha(e,t,n,a){var o=-1,r=kt,i=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=St(t,Kt(n))),a?(r=It,i=!1):t.length>=200&&(r=en,i=!1,t=new Xn(t));e:for(;++o-1},Qn.prototype.set=function(e,t){var n=this.__data__,a=aa(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},Fn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Tn||Qn),string:new Un}},Fn.prototype.delete=function(e){var t=ur(this,e).delete(e);return this.size-=t?1:0,t},Fn.prototype.get=function(e){return ur(this,e).get(e)},Fn.prototype.has=function(e){return ur(this,e).has(e)},Fn.prototype.set=function(e,t){var n=ur(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,o),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var a=n.__data__;if(!Tn||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(a)}return n.set(e,t),this.size=n.size,this};var pa=Do(xa),ga=Do(ba,!0);function ya(e,t){var n=!0;return pa(e,(function(e,a,o){return n=!!t(e,a,o)})),n}function ma(e,t,a){for(var o=-1,r=e.length;++o0&&n(s)?t>1?va(s,t-1,n,a,o):Ot(o,s):a||(o[o.length]=s)}return o}var wa=Ho(),_a=Ho(!0);function xa(e,t){return e&&wa(e,t,Is)}function ba(e,t){return e&&_a(e,t,Is)}function Aa(e,t){return Nt(t,(function(t){return Ki(e[t])}))}function Pa(e,t){for(var a=0,o=(t=xo(t,e)).length;null!=e&&at}function Ca(e,t){return null!=e&&He.call(e,t)}function Ma(e,t){return null!=e&&t in Ee(e)}function Na(e,t,a){for(var o=a?It:kt,r=e[0].length,i=e.length,s=i,l=be(i),d=1/0,c=[];s--;){var u=e[s];s&&t&&(u=St(u,Kt(t))),d=_n(u.length,d),l[s]=!a&&(t||r>=120&&u.length>=120)?new Xn(s&&u):n}u=e[0];var h=-1,p=l[0];e:for(;++h=s?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ua(e,t,n){for(var a=-1,o=t.length,r={};++a-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Fa(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==r){var r=o;_r(o)?Ye.call(e,o,1):po(e,o)}}return e}function Xa(e,t){return e+ft(An()*(t-e+1))}function Ya(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ja(e,t){return Sr(Cr(e,t,ol),e+"")}function Ka(e){return Kn(Rs(e))}function $a(e,t){var n=Rs(e);return Hr(n,la(t,0,n.length))}function eo(e,t,a,o){if(!ts(e))return e;for(var r=-1,i=(t=xo(t,e)).length,s=i-1,l=e;null!=l&&++ro?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=be(o);++a>>1,i=e[r];null!==i&&!ds(i)&&(n?i<=t:i=200){var d=t?null:Jo(e);if(d)return un(d);i=!1,o=en,l=new Xn}else l=t?[]:s;e:for(;++a=o?e:oo(e,t,a)}var Po=ut||function(e){return pt.clearTimeout(e)};function Lo(e,t){if(t)return e.slice();var n=e.length,a=Ue?Ue(n):new e.constructor(n);return e.copy(a),a}function To(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Eo(e,t){var n=t?To(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Co(e,t){if(e!==t){var a=e!==n,o=null===e,r=e==e,i=ds(e),s=t!==n,l=null===t,d=t==t,c=ds(t);if(!l&&!c&&!i&&e>t||i&&s&&d&&!l&&!c||o&&s&&d||!a&&d||!r)return 1;if(!o&&!i&&!c&&e1?a[r-1]:n,s=r>2?a[2]:n;for(i=e.length>3&&"function"==typeof i?(r--,i):n,s&&xr(a[0],a[1],s)&&(i=r<3?n:i,r=1),t=Ee(t);++o-1?r[i?t[s]:s]:n}}function Ro(e){return or((function(t){var o=t.length,r=o,i=Zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ne(a);if(i&&!l&&"wrapper"==lr(s))var l=new Zn([],!0)}for(r=l?r:o;++r1&&w.reverse(),h&&cl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var h=-1,p=!0,g=2&a?new Xn:n;for(i.set(e,t),i.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(a,function(e,t){return Et(y,(function(n){var a="_."+n[0];t&n[1]&&!kt(e,a)&&e.push(a)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(a),n)))}function Dr(e){var t=0,a=0;return function(){var o=xn(),r=16-(o-a);if(a=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Hr(e,t){var a=-1,o=e.length,r=o-1;for(t=t===n?o:t;++a1?e[t-1]:n;return a="function"==typeof a?(e.pop(),a):n,ii(e,a)}));function pi(e){var t=Rn(e);return t.__chain__=!0,t}function gi(e,t){return t(e)}var yi=or((function(e){var t=e.length,a=t?e[0]:0,o=this.__wrapped__,r=function(t){return sa(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Wn&&_r(a)?((o=o.slice(a,+a+(t?1:0))).__actions__.push({func:gi,args:[r],thisArg:n}),new Zn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(r)}));var mi=So((function(e,t,n){He.call(e,n)?++e[n]:ia(e,n,1)}));var fi=Go(Zr),vi=Go(Wr);function wi(e,t){return(Wi(e)?Et:pa)(e,cr(t,3))}function _i(e,t){return(Wi(e)?Ct:ga)(e,cr(t,3))}var xi=So((function(e,t,n){He.call(e,n)?e[n].push(t):ia(e,n,[t])}));var bi=Ja((function(e,t,n){var a=-1,o="function"==typeof t,r=Qi(e)?be(e.length):[];return pa(e,(function(e){r[++a]=o?Lt(t,e,n):ka(e,t,n)})),r})),Ai=So((function(e,t,n){ia(e,n,t)}));function Pi(e,t){return(Wi(e)?St:Ga)(e,cr(t,3))}var Li=So((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ti=Ja((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xr(e,t[0],t[1])?t=[]:n>2&&xr(t[0],t[1],t[2])&&(t=[t[0]]),Wa(e,va(t,1),[])})),Ei=ht||function(){return pt.Date.now()};function Ci(e,t,a){return t=a?n:t,t=e&&null==t?e.length:t,$o(e,d,n,n,n,n,t)}function Mi(e,t){var o;if("function"!=typeof t)throw new Ne(a);return e=ys(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ni=Ja((function(e,t,n){var a=1;if(n.length){var o=cn(n,dr(Ni));a|=s}return $o(e,a,t,n,o)})),ki=Ja((function(e,t,n){var a=3;if(n.length){var o=cn(n,dr(ki));a|=s}return $o(t,a,e,n,o)}));function Ii(e,t,o){var r,i,s,l,d,c,u=0,h=!1,p=!1,g=!0;if("function"!=typeof e)throw new Ne(a);function y(t){var a=r,o=i;return r=i=n,u=t,l=e.apply(o,a)}function m(e){var a=e-c;return c===n||a>=t||a<0||p&&e-u>=s}function f(){var e=Ei();if(m(e))return v(e);d=Ir(f,function(e){var n=t-(e-c);return p?_n(n,s-(e-u)):n}(e))}function v(e){return d=n,g&&r?y(e):(r=i=n,l)}function w(){var e=Ei(),a=m(e);if(r=arguments,i=this,c=e,a){if(d===n)return function(e){return u=e,d=Ir(f,t),h?y(e):l}(c);if(p)return Po(d),d=Ir(f,t),y(c)}return d===n&&(d=Ir(f,t)),l}return t=fs(t)||0,ts(o)&&(h=!!o.leading,s=(p="maxWait"in o)?wn(fs(o.maxWait)||0,t):s,g="trailing"in o?!!o.trailing:g),w.cancel=function(){d!==n&&Po(d),u=0,r=c=i=d=n},w.flush=function(){return d===n?l:v(Ei())},w}var Si=Ja((function(e,t){return ua(e,1,t)})),Oi=Ja((function(e,t,n){return ua(e,fs(t)||0,n)}));function Di(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(a);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],r=n.cache;if(r.has(o))return r.get(o);var i=e.apply(this,a);return n.cache=r.set(o,i)||r,i};return n.cache=new(Di.Cache||Fn),n}function Hi(e){if("function"!=typeof e)throw new Ne(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Di.Cache=Fn;var zi=bo((function(e,t){var n=(t=1==t.length&&Wi(t[0])?St(t[0],Kt(cr())):St(va(t,1),Kt(cr()))).length;return Ja((function(a){for(var o=-1,r=_n(a.length,n);++o=t})),Zi=Ia(function(){return arguments}())?Ia:function(e){return ns(e)&&He.call(e,"callee")&&!Xe.call(e,"callee")},Wi=be.isArray,Ui=wt?Kt(wt):function(e){return ns(e)&&Ta(e)==I};function Qi(e){return null!=e&&es(e.length)&&!Ki(e)}function Fi(e){return ns(e)&&Qi(e)}var Xi=zt||fl,Yi=_t?Kt(_t):function(e){return ns(e)&&Ta(e)==w};function Ji(e){if(!ns(e))return!1;var t=Ta(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Ki(e){if(!ts(e))return!1;var t=Ta(e);return t==x||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $i(e){return"number"==typeof e&&e==ys(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var as=xt?Kt(xt):function(e){return ns(e)&&mr(e)==A};function os(e){return"number"==typeof e||ns(e)&&Ta(e)==P}function rs(e){if(!ns(e)||Ta(e)!=L)return!1;var t=Qe(e);if(null===t)return!0;var n=He.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ge}var is=bt?Kt(bt):function(e){return ns(e)&&Ta(e)==E};var ss=At?Kt(At):function(e){return ns(e)&&mr(e)==C};function ls(e){return"string"==typeof e||!Wi(e)&&ns(e)&&Ta(e)==M}function ds(e){return"symbol"==typeof e||ns(e)&&Ta(e)==N}var cs=Pt?Kt(Pt):function(e){return ns(e)&&es(e.length)&&!!it[Ta(e)]};var us=Fo(Va),hs=Fo((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Qi(e))return ls(e)?gn(e):ko(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=mr(e);return(t==A?ln:t==C?un:Rs)(e)}function gs(e){return e?(e=fs(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ys(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?la(ys(e),0,g):0}function fs(e){if("number"==typeof e)return e;if(ds(e))return p;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ye.test(e);return n||fe.test(e)?ct(e.slice(2),n?2:8):ge.test(e)?p:+e}function vs(e){return Io(e,Ss(e))}function ws(e){return null==e?"":uo(e)}var _s=Oo((function(e,t){if(Lr(t)||Qi(t))Io(t,Is(t),e);else for(var n in t)He.call(t,n)&&na(e,n,t[n])})),xs=Oo((function(e,t){Io(t,Ss(t),e)})),bs=Oo((function(e,t,n,a){Io(t,Ss(t),e,a)})),As=Oo((function(e,t,n,a){Io(t,Is(t),e,a)})),Ps=or(sa);var Ls=Ja((function(e,t){e=Ee(e);var a=-1,o=t.length,r=o>2?t[2]:n;for(r&&xr(t[0],t[1],r)&&(o=1);++a1),t})),Io(e,ir(e),n),a&&(n=da(n,7,nr));for(var o=t.length;o--;)po(n,t[o]);return n}));var zs=or((function(e,t){return null==e?{}:function(e,t){return Ua(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=St(ir(e),(function(e){return[e]}));return t=cr(t),Ua(e,n,(function(e,n){return t(e,n[0])}))}var Vs=Ko(Is),Gs=Ko(Ss);function Rs(e){return null==e?[]:$t(e,Is(e))}var js=Bo((function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)}));function qs(e){return Js(ws(e).toLowerCase())}function Zs(e){return(e=ws(e))&&e.replace(we,an).replace($e,"")}var Ws=Bo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Us=Bo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=zo("toLowerCase");var Fs=Bo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Bo((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Ys=Bo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=zo("toUpperCase");function Ks(e,t,a){return e=ws(e),(t=a?n:t)===n?function(e){return at.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=Ja((function(e,t){try{return Lt(e,n,t)}catch(e){return Ji(e)?e:new Pe(e)}})),el=or((function(e,t){return Et(t,(function(t){t=Br(t),ia(e,t,Ni(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Ro(),al=Ro(!0);function ol(e){return e}function rl(e){return Ha("function"==typeof e?e:da(e,1))}var il=Ja((function(e,t){return function(n){return ka(n,e,t)}})),sl=Ja((function(e,t){return function(n){return ka(e,n,t)}}));function ll(e,t,n){var a=Is(t),o=Aa(t,a);null!=n||ts(t)&&(o.length||!a.length)||(n=t,t=e,e=this,o=Aa(t,Is(t)));var r=!(ts(n)&&"chain"in n&&!n.chain),i=Ki(e);return Et(o,(function(n){var a=t[n];e[n]=a,i&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=ko(this.__actions__)).push({func:a,args:arguments,thisArg:e}),n.__chain__=t,n}return a.apply(e,Ot([this.value()],arguments))})})),e}function dl(){}var cl=Wo(St),ul=Wo(Mt),hl=Wo(Bt);function pl(e){return br(e)?Ut(Br(e)):function(e){return function(t){return Pa(t,e)}}(e)}var gl=Qo(),yl=Qo(!0);function ml(){return[]}function fl(){return!1}var vl=Zo((function(e,t){return e+t}),0),wl=Yo("ceil"),_l=Zo((function(e,t){return e/t}),1),xl=Yo("floor");var bl,Al=Zo((function(e,t){return e*t}),1),Pl=Yo("round"),Ll=Zo((function(e,t){return e-t}),0);return Rn.after=function(e,t){if("function"!=typeof t)throw new Ne(a);return e=ys(e),function(){if(--e<1)return t.apply(this,arguments)}},Rn.ary=Ci,Rn.assign=_s,Rn.assignIn=xs,Rn.assignInWith=bs,Rn.assignWith=As,Rn.at=Ps,Rn.before=Mi,Rn.bind=Ni,Rn.bindAll=el,Rn.bindKey=ki,Rn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},Rn.chain=pi,Rn.chunk=function(e,t,a){t=(a?xr(e,t,a):t===n)?1:wn(ys(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var r=0,i=0,s=be(yt(o/t));rr?0:r+a),(o=o===n||o>r?r:ys(o))<0&&(o+=r),o=a>o?0:ms(o);a>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=uo(t))&&sn(e)?Ao(gn(e),0,a):e.split(t,a):[]},Rn.spread=function(e,t){if("function"!=typeof e)throw new Ne(a);return t=null==t?0:wn(ys(t),0),Ja((function(n){var a=n[t],o=Ao(n,0,t);return a&&Ot(o,a),Lt(e,this,o)}))},Rn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Rn.take=function(e,t,a){return e&&e.length?oo(e,0,(t=a||t===n?1:ys(t))<0?0:t):[]},Rn.takeRight=function(e,t,a){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=a||t===n?1:ys(t)))<0?0:t,o):[]},Rn.takeRightWhile=function(e,t){return e&&e.length?yo(e,cr(t,3),!1,!0):[]},Rn.takeWhile=function(e,t){return e&&e.length?yo(e,cr(t,3)):[]},Rn.tap=function(e,t){return t(e),e},Rn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new Ne(a);return ts(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Ii(e,t,{leading:o,maxWait:t,trailing:r})},Rn.thru=gi,Rn.toArray=ps,Rn.toPairs=Vs,Rn.toPairsIn=Gs,Rn.toPath=function(e){return Wi(e)?St(e,Br):ds(e)?[e]:ko(zr(ws(e)))},Rn.toPlainObject=vs,Rn.transform=function(e,t,n){var a=Wi(e),o=a||Xi(e)||cs(e);if(t=cr(t,4),null==n){var r=e&&e.constructor;n=o?a?new r:[]:ts(e)&&Ki(r)?jn(Qe(e)):{}}return(o?Et:xa)(e,(function(e,a,o){return t(n,e,a,o)})),n},Rn.unary=function(e){return Ci(e,1)},Rn.union=ni,Rn.unionBy=ai,Rn.unionWith=oi,Rn.uniq=function(e){return e&&e.length?ho(e):[]},Rn.uniqBy=function(e,t){return e&&e.length?ho(e,cr(t,2)):[]},Rn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ho(e,n,t):[]},Rn.unset=function(e,t){return null==e||po(e,t)},Rn.unzip=ri,Rn.unzipWith=ii,Rn.update=function(e,t,n){return null==e?e:go(e,t,_o(n))},Rn.updateWith=function(e,t,a,o){return o="function"==typeof o?o:n,null==e?e:go(e,t,_o(a),o)},Rn.values=Rs,Rn.valuesIn=function(e){return null==e?[]:$t(e,Ss(e))},Rn.without=si,Rn.words=Ks,Rn.wrap=function(e,t){return Bi(_o(t),e)},Rn.xor=li,Rn.xorBy=di,Rn.xorWith=ci,Rn.zip=ui,Rn.zipObject=function(e,t){return vo(e||[],t||[],na)},Rn.zipObjectDeep=function(e,t){return vo(e||[],t||[],eo)},Rn.zipWith=hi,Rn.entries=Vs,Rn.entriesIn=Gs,Rn.extend=xs,Rn.extendWith=bs,ll(Rn,Rn),Rn.add=vl,Rn.attempt=$s,Rn.camelCase=js,Rn.capitalize=qs,Rn.ceil=wl,Rn.clamp=function(e,t,a){return a===n&&(a=t,t=n),a!==n&&(a=(a=fs(a))==a?a:0),t!==n&&(t=(t=fs(t))==t?t:0),la(fs(e),t,a)},Rn.clone=function(e){return da(e,4)},Rn.cloneDeep=function(e){return da(e,5)},Rn.cloneDeepWith=function(e,t){return da(e,5,t="function"==typeof t?t:n)},Rn.cloneWith=function(e,t){return da(e,4,t="function"==typeof t?t:n)},Rn.conformsTo=function(e,t){return null==t||ca(e,t,Is(t))},Rn.deburr=Zs,Rn.defaultTo=function(e,t){return null==e||e!=e?t:e},Rn.divide=_l,Rn.endsWith=function(e,t,a){e=ws(e),t=uo(t);var o=e.length,r=a=a===n?o:la(ys(a),0,o);return(a-=t.length)>=0&&e.slice(a,r)==t},Rn.eq=Ri,Rn.escape=function(e){return(e=ws(e))&&X.test(e)?e.replace(Q,on):e},Rn.escapeRegExp=function(e){return(e=ws(e))&&ae.test(e)?e.replace(ne,"\\$&"):e},Rn.every=function(e,t,a){var o=Wi(e)?Mt:ya;return a&&xr(e,t,a)&&(t=n),o(e,cr(t,3))},Rn.find=fi,Rn.findIndex=Zr,Rn.findKey=function(e,t){return Gt(e,cr(t,3),xa)},Rn.findLast=vi,Rn.findLastIndex=Wr,Rn.findLastKey=function(e,t){return Gt(e,cr(t,3),ba)},Rn.floor=xl,Rn.forEach=wi,Rn.forEachRight=_i,Rn.forIn=function(e,t){return null==e?e:wa(e,cr(t,3),Ss)},Rn.forInRight=function(e,t){return null==e?e:_a(e,cr(t,3),Ss)},Rn.forOwn=function(e,t){return e&&xa(e,cr(t,3))},Rn.forOwnRight=function(e,t){return e&&ba(e,cr(t,3))},Rn.get=Es,Rn.gt=ji,Rn.gte=qi,Rn.has=function(e,t){return null!=e&&fr(e,t,Ca)},Rn.hasIn=Cs,Rn.head=Qr,Rn.identity=ol,Rn.includes=function(e,t,n,a){e=Qi(e)?e:Rs(e),n=n&&!a?ys(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Rn.indexOf=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var o=null==n?0:ys(n);return o<0&&(o=wn(a+o,0)),jt(e,t,o)},Rn.inRange=function(e,t,a){return t=gs(t),a===n?(a=t,t=0):a=gs(a),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=h},Rn.isSet=ss,Rn.isString=ls,Rn.isSymbol=ds,Rn.isTypedArray=cs,Rn.isUndefined=function(e){return e===n},Rn.isWeakMap=function(e){return ns(e)&&mr(e)==k},Rn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Ta(e)},Rn.join=function(e,t){return null==e?"":Qt.call(e,t)},Rn.kebabCase=Ws,Rn.last=Jr,Rn.lastIndexOf=function(e,t,a){var o=null==e?0:e.length;if(!o)return-1;var r=o;return a!==n&&(r=(r=ys(a))<0?wn(o+r,0):_n(r,o-1)),t==t?function(e,t,n){for(var a=n+1;a--;)if(e[a]===t)return a;return a}(e,t,r):Rt(e,Zt,r,!0)},Rn.lowerCase=Us,Rn.lowerFirst=Qs,Rn.lt=us,Rn.lte=hs,Rn.max=function(e){return e&&e.length?ma(e,ol,Ea):n},Rn.maxBy=function(e,t){return e&&e.length?ma(e,cr(t,2),Ea):n},Rn.mean=function(e){return Wt(e,ol)},Rn.meanBy=function(e,t){return Wt(e,cr(t,2))},Rn.min=function(e){return e&&e.length?ma(e,ol,Va):n},Rn.minBy=function(e,t){return e&&e.length?ma(e,cr(t,2),Va):n},Rn.stubArray=ml,Rn.stubFalse=fl,Rn.stubObject=function(){return{}},Rn.stubString=function(){return""},Rn.stubTrue=function(){return!0},Rn.multiply=Al,Rn.nth=function(e,t){return e&&e.length?Za(e,ys(t)):n},Rn.noConflict=function(){return pt._===this&&(pt._=Re),this},Rn.noop=dl,Rn.now=Ei,Rn.pad=function(e,t,n){e=ws(e);var a=(t=ys(t))?pn(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return Uo(ft(o),n)+e+Uo(yt(o),n)},Rn.padEnd=function(e,t,n){e=ws(e);var a=(t=ys(t))?pn(e):0;return t&&at){var o=e;e=t,t=o}if(a||e%1||t%1){var r=An();return _n(e+r*(t-e+dt("1e-"+((r+"").length-1))),t)}return Xa(e,t)},Rn.reduce=function(e,t,n){var a=Wi(e)?Dt:Ft,o=arguments.length<3;return a(e,cr(t,4),n,o,pa)},Rn.reduceRight=function(e,t,n){var a=Wi(e)?Ht:Ft,o=arguments.length<3;return a(e,cr(t,4),n,o,ga)},Rn.repeat=function(e,t,a){return t=(a?xr(e,t,a):t===n)?1:ys(t),Ya(ws(e),t)},Rn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Rn.result=function(e,t,a){var o=-1,r=(t=xo(t,e)).length;for(r||(r=1,e=n);++oh)return[];var n=g,a=_n(e,g);t=cr(t),e-=g;for(var o=Yt(a,t);++n=i)return e;var l=a-pn(o);if(l<1)return o;var d=s?Ao(s,0,l).join(""):e.slice(0,l);if(r===n)return d+o;if(s&&(l+=d.length-l),is(r)){if(e.slice(l).search(r)){var c,u=d;for(r.global||(r=Ce(r.source,ws(pe.exec(r))+"g")),r.lastIndex=0;c=r.exec(u);)var h=c.index;d=d.slice(0,h===n?l:h)}}else if(e.indexOf(uo(r),l)!=l){var p=d.lastIndexOf(r);p>-1&&(d=d.slice(0,p))}return d+o},Rn.unescape=function(e){return(e=ws(e))&&F.test(e)?e.replace(U,mn):e},Rn.uniqueId=function(e){var t=++ze;return ws(e)+t},Rn.upperCase=Ys,Rn.upperFirst=Js,Rn.each=wi,Rn.eachRight=_i,Rn.first=Qr,ll(Rn,(bl={},xa(Rn,(function(e,t){He.call(Rn.prototype,t)||(bl[t]=e)})),bl),{chain:!1}),Rn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Rn[e].placeholder=Rn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(a){a=a===n?1:wn(ys(a),0);var o=this.__filtered__&&!t?new Wn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(a,o.__takeCount__):o.__views__.push({size:_n(a,g),type:e+(o.__dir__<0?"Right":"")}),o},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,a=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:cr(e,3),type:n}),t.__filtered__=t.__filtered__||a,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ol)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Ja((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return ka(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Hi(cr(e)))},Wn.prototype.slice=function(e,t){e=ys(e);var a=this;return a.__filtered__&&(e>0||t<0)?new Wn(a):(e<0?a=a.takeRight(-e):e&&(a=a.drop(e)),t!==n&&(a=(t=ys(t))<0?a.dropRight(-t):a.take(t-e)),a)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},xa(Wn.prototype,(function(e,t){var a=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=Rn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(Rn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Wn,d=s[0],c=l||Wi(t),u=function(e){var t=r.apply(Rn,Ot([e],s));return o&&h?t[0]:t};c&&a&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,g=i&&!h,y=l&&!p;if(!i&&c){t=y?t:new Wn(this);var m=e.apply(t,s);return m.__actions__.push({func:gi,args:[u],thisArg:n}),new Zn(m,h)}return g&&y?e.apply(this,s):(m=this.thru(u),g?o?m.value()[0]:m.value():m)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ke[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);Rn.prototype[e]=function(){var e=arguments;if(a&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[n]((function(n){return t.apply(Wi(n)?n:[],e)}))}})),xa(Wn.prototype,(function(e,t){var n=Rn[t];if(n){var a=n.name+"";He.call(In,a)||(In[a]=[]),In[a].push({name:t,func:n})}})),In[jo(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=ko(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ko(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ko(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wi(e),a=t<0,o=n?e.length:0,r=function(e,t,n){var a=-1,o=n.length;for(;++a=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Rn.prototype.plant=function(e){for(var t,a=this;a instanceof qn;){var o=Gr(a);o.__index__=0,o.__values__=n,t?r.__wrapped__=o:t=o;var r=o;a=a.__wrapped__}return r.__wrapped__=e,t},Rn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:gi,args:[ti],thisArg:n}),new Zn(t,this.__chain__)}return this.thru(ti)},Rn.prototype.toJSON=Rn.prototype.valueOf=Rn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Rn.prototype.first=Rn.prototype.head,et&&(Rn.prototype[et]=function(){return this}),Rn}();yt?((yt.exports=fn)._=fn,gt._=fn):pt._=fn}).call(zt)}(qt,qt.exports);var Zt,Wt,Ut,Qt=qt.exports;let Ft=class extends(
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-function(e){return class extends e{createRenderRoot(){const e=this.constructor,{registry:t,elementDefinitions:n,shadowRootOptions:a}=e;n&&!t&&(e.registry=new CustomElementRegistry,Object.entries(n).forEach((([t,n])=>e.registry.define(t,n))));const o=this.renderOptions.creationScope=this.attachShadow({...a,customElements:e.registry});return l(o,this.constructor.elementStyles),o}}}(de)){constructor(){super(...arguments),this._computeLabelCallback=e=>At("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this.hass&&this._config?W(Wt||(Wt=fe(["\n \n "])),this.hass,this._config,this._computeLabelCallback,[{type:"expandable",title:this._title("title"),schema:[{type:"grid",schema:[{name:"title",selector:{text:{}}},{name:"title_colour",selector:{color_rgb:{}}},{name:"title_size",selector:{text:{}}}]}]},{name:"cardstyle",selector:{select:{options:Object.values(xe).map((e=>({label:Qt.capitalize(e),value:e})))}}},{type:"expandable",title:this._title("general"),schema:[{type:"grid",schema:[{name:"large_font",selector:{boolean:{}}},{name:"panel_mode",selector:{boolean:{}}},{name:"card_height",selector:{text:{}}},{name:"card_width",selector:{text:{}}},{name:"show_solar",selector:{boolean:{}}},{name:"show_battery",selector:{boolean:{}}},{name:"show_grid",selector:{boolean:{}}},{name:"decimal_places",selector:{number:{}}},{name:"dynamic_line_width",selector:{boolean:{}}},{name:"max_line_width",selector:{number:{}}},{name:"min_line_width",selector:{number:{}}}]}]},{type:"expandable",title:this._title("inverter"),schema:[{name:"inverter",type:"grid",schema:[{name:"three_phase",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"model",selector:{select:{options:Object.values(_e).map((e=>({label:Qt.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(be).map((e=>({label:Qt.capitalize(e),value:e})))}}},{name:"colour",selector:{color_rgb:{}}}]}]},{type:"expandable",title:this._title("solar"),schema:[{name:"solar",type:"grid",schema:[{name:"mppts",selector:{number:{min:0,max:4}}},{name:"show_daily",selector:{boolean:{}}},{name:"pv1_name",selector:{text:{}}},{name:"pv2_name",selector:{text:{}}},{name:"pv3_name",selector:{text:{}}},{name:"pv4_name",selector:{text:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"display_mode",selector:{number:{mode:"box",min:1,max:3}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("battery"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("load"),schema:[{name:"load",type:"grid",schema:[{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"dynamic_icon",selector:{boolean:{}}},{name:"invert_load",selector:{boolean:{}}},{name:"essential_name",selector:{text:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:4}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]},{type:"expandable",title:this._title("aux"),schema:[{name:"load",type:"grid",schema:[{name:"show_aux",selector:{boolean:{}}},{name:"aux_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_colour",selector:{color_rgb:{}}},{name:"aux_off_colour",selector:{color_rgb:{}}},{name:"aux_loads",selector:{number:{mode:"box",min:0,max:2}}},{name:"aux_load1_name",selector:{text:{}}},{name:"aux_load1_icon",selector:{icon:{}}},{name:"aux_load2_name",selector:{text:{}}},{name:"aux_load2_icon",selector:{icon:{}}},{name:"show_daily_aux",selector:{boolean:{}}}]}]}]},{type:"expandable",title:this._title("grid"),schema:[{name:"grid",type:"grid",schema:[{name:"show_daily_buy",selector:{boolean:{}}},{name:"show_daily_sell",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_grid",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"no_grid_colour",selector:{color_rgb:{}}},{name:"export_colour",selector:{color_rgb:{}}},{name:"grid_off_colour",selector:{color_rgb:{}}},{name:"grid_name",selector:{text:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"energy_cost_decimals",selector:{number:{mode:"box",min:0,max:3}}},{name:"show_nonessential",selector:{boolean:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:3}}},{name:"nonessential_name",selector:{text:{}}},{name:"nonessential_icon",selector:{icon:{}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("entities"),schema:[{type:"expandable",title:this._title("sol"),schema:[{name:"entities",type:"grid",schema:[{name:"day_pv_energy_108",selector:{entity:{device_class:kt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:kt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:kt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:kt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:kt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:kt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:kt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:kt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:kt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:kt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:kt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:kt.BATTERY}}},{name:"day_battery_charge_70",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:kt.ENERGY}}},{name:"battery_rated_capacity",selector:{entity:{}}},{name:"battery_current_direction",selector:{entity:{}}},{name:"battery_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("inv"),schema:[{name:"entities",type:"grid",schema:[{name:"inverter_status_59",selector:{entity:{}}},{name:"use_timer_248",selector:{entity:{}}},{name:"priority_load_243",selector:{entity:{}}},{name:"inverter_voltage_154",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:kt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:kt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:kt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"prog1_time",selector:{entity:{}}},{name:"prog1_capacity",selector:{entity:{}}},{name:"prog1_charge",selector:{entity:{}}},{name:"prog2_time",selector:{entity:{}}},{name:"prog2_capacity",selector:{entity:{}}},{name:"prog2_charge",selector:{entity:{}}},{name:"prog3_time",selector:{entity:{}}},{name:"prog3_capacity",selector:{entity:{}}},{name:"prog3_charge",selector:{entity:{}}},{name:"prog4_time",selector:{entity:{}}},{name:"prog4_capacity",selector:{entity:{}}},{name:"prog4_charge",selector:{entity:{}}},{name:"prog5_time",selector:{entity:{}}},{name:"prog5_capacity",selector:{entity:{}}},{name:"prog5_charge",selector:{entity:{}}},{name:"prog6_time",selector:{entity:{}}},{name:"prog6_capacity",selector:{entity:{}}},{name:"prog6_charge",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("ld"),schema:[{name:"entities",type:"grid",schema:[{name:"day_load_energy_84",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:kt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:kt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:kt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:kt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load1_extra",selector:{entity:{}}},{name:"aux_load2_extra",selector:{entity:{}}},{name:"aux_connected_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("gri"),schema:[{name:"entities",type:"grid",schema:[{name:"day_grid_import_76",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:kt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:kt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:kt.POWER}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}}]}]}]}],(e=>this._valueChanged(e))):W(Zt||(Zt=fe([""])))}_title(e){return At("config.cat_title.".concat(e))??e}_valueChanged(e){!function(e,t,n,a){a=a||{},n=null==n?{}:n;var o=new Event(t,{bubbles:void 0===a.bubbles||a.bubbles,cancelable:Boolean(a.cancelable),composed:void 0===a.composed||a.composed});o.detail=n,e.dispatchEvent(o)}(this,"config-changed",{config:e.detail.value})}};Ft.styles=s(Ut||(Ut=fe(["\n\n "]))),t([ge({attribute:!1})],Ft.prototype,"hass",void 0),t([function(e){return ge({...e,state:!0,attribute:!1})}()],Ft.prototype,"_config",void 0),Ft=t([ue("content-card-editor")],Ft);class Xt{static toNum(e,t=-1,n=!1){let a=Number(e);return Number.isNaN(a)?0:(t>=0&&(a=parseFloat(a.toFixed(t))),n&&(a*=-1),a)}static convertValue(e,t=2){return t=Number.isNaN(t)?2:t,Math.abs(e)>=1e6?"".concat((e/1e6).toFixed(t)," MW"):Math.abs(e)>=1e3?"".concat((e/1e3).toFixed(t)," kW"):"".concat(Math.round(e)," W")}static convertValueNew(e,t="",n=2){n=isNaN(n)?2:n;const a=Number(e);if(isNaN(a))return 0;const o=Ht[t];if(!o)return"".concat(Math.round(a)," ").concat(t);if(t===St.WATT&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").concat(t);for(const e of o)if(Math.abs(a)>=e.threshold){const t=(a/e.divisor).toFixed(e.decimal||n);return"".concat(t," ").concat(e.targetUnit)}return"".concat(a.toFixed(n)," ").concat(t)}static handlePopup(e,t){t&&this._handleClick(e,{action:"more-info"},t)}static _handleClick(e,t,n){if(!n||!e)return;let a;if(e.stopPropagation(),"more-info"===t.action)a=new Event("hass-more-info",{composed:!0}),a.detail={entityId:n},e.target.dispatchEvent(a)}}var Yt,Jt,Kt,$t,en,tn,nn,an,on,rn,sn,ln,dn,cn,un;var hn,pn,gn,yn,mn,fn,vn,wn,_n,xn,bn;class An{constructor(){}getBatteryCapacity(e,t,n,a,o){let r=0;return e>0?r="off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)<=a.capacity?n:a.capacity:e<0&&("off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)>=a.capacity?r=100:parseInt(o.state)=95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",o="green";break;case 85<=parseInt(e.state)&&parseInt(e.state)<95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",o="green";break;case 75<=parseInt(e.state)&&parseInt(e.state)<85:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zH5z",o="#9ACD32";break;case 65<=parseInt(e.state)&&parseInt(e.state)<75:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 11z",o="yellow";break;case 55<=parseInt(e.state)&&parseInt(e.state)<65:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",o="yellow";break;case 45<=parseInt(e.state)&&parseInt(e.state)<55:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zH5z",o="yellow";break;case 35<=parseInt(e.state)&&parseInt(e.state)<45:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",o="orange";break;case 25<=parseInt(e.state)&&parseInt(e.state)<35:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",o="orange";break;case 10<=parseInt(e.state)&&parseInt(e.state)<25:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",o="orange";break;case 0<=parseInt(e.state)&&parseInt(e.state)<10:default:n=t,a=t,o="red"}return{batteryIcon:n,batteryCharge:a,stopColour:o,battery0:t}}}function Rn(e){return{...e,toNum:(t,n)=>Xt.toNum(e?.state,t,n),isValid:()=>null!==e?.state&&void 0!==e.state&&"unknown"!==e.state||!1,notEmpty:()=>""!==e?.state??!1,isNaN:()=>Number.isNaN(e?.state)??!0,toPower:t=>{const n=(e.attributes?.unit_of_measurement||"").toLowerCase();return"kw"===n?Xt.toNum(1e3*(e?.state||"0"),0,t):"mw"===n?Xt.toNum(1e6*(e?.state||"0"),0,t):Xt.toNum(e?.state||"0",0,t)||0},toPowerString:(t,n,a)=>t?Xt.convertValueNew(e?.state,e?.attributes?.unit_of_measurement,n||0):"".concat(Xt.toNum(e?.state,0,a)," ").concat(e?.attributes?.unit_of_measurement||""),toString:()=>e?.state?.toString()||"",getUOM:()=>e?.attributes?.unit_of_measurement||""}}const qn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",jn="M15 9h1V7.5h4V9h1c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-6c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1m1 2v3h4v-3h-4m-4-5.31l-5 4.5V18h5v2H5v-8H2l10-9l2.78 2.5H14v1.67l-.24.1L12 5.69Z",Zn="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",Wn="M11.6 3.45zM18.25 19.6v-7.6h2.85L11.6 3.45 2.1 12h2.85v7.6zM11.6 6.015l4.75 4.275V17.7H6.85v-7.41zM6.58 2.8v1.42L8 3.508zm-.4 2.4L5.2 6.184l1.5.5zM2.8 6.58 3.508 8l.712-1.42zM6 2.8H2.8v3.2c.228.068.468.1.708.1 1.432.004 2.596-1.16 2.6-2.6-.004-.236-.04-.472-.108-.7M12.5 3.844l2.25 2.026.5-.5-2.24-2.04zM17.71 8.53 18.2 8.04 15.76 5.84 15.26 6.34ZM20.52 11.09l.48-.49-2.31-2.14-.5.5z M18.1299 5.1169 17.318 4.6482l2.4492-1.6171-.75 1.299.8119.4687-2.4492 1.6171z";console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(At("common.version"),": ").concat("4.24.6"," "),"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),console.log("Readme:","https://github.com/slipx06/sunsynk-power-flow-card"),console.groupEnd(),e.SunsynkPowerFlowCard=class extends de{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return we}static getConfigElement(){return document.createElement("content-card-editor")}static getStubConfig(){return{cardstyle:xe.Lite,show_solar:!0,battery:{energy:0,shutdown_soc:20,show_daily:!0},solar:{show_daily:!0,mppts:2},load:{show_daily:!0},grid:{show_daily_buy:!0,show_daily_sell:!1,show_nonessential:!0},entities:{use_timer_248:"switch.sunsynk_toggle_system_timer",priority_load_243:"switch.sunsynk_toggle_priority_load",inverter_voltage_154:"sensor.sunsynk_inverter_voltage",load_frequency_192:"sensor.sunsynk_load_frequency",inverter_current_164:"sensor.sunsynk_inverter_current",inverter_power_175:"sensor.sunsynk_inverter_power",grid_connected_status_194:"binary_sensor.sunsynk_grid_connected_status",inverter_status_59:"sensor.sunsynk_overall_state",day_battery_charge_70:"sensor.sunsynk_day_battery_charge",day_battery_discharge_71:"sensor.sunsynk_day_battery_discharge",battery_voltage_183:"sensor.sunsynk_battery_voltage",battery_soc_184:"sensor.sunsynk_battery_soc",battery_power_190:"sensor.sunsynk_battery_power",battery_current_191:"sensor.sunsynk_battery_current",grid_power_169:"sensor.sunsynk_grid_power",day_grid_import_76:"sensor.sunsynk_day_grid_import",day_grid_export_77:"sensor.sunsynk_day_grid_export",grid_ct_power_172:"sensor.sunsynk_grid_ct_power",day_load_energy_84:"sensor.sunsynk_day_load_energy",essential_power:"none",nonessential_power:"none",aux_power_166:"sensor.sunsynk_aux_power",day_pv_energy_108:"sensor.sunsynk_day_pv_energy",pv1_power_186:"sensor.sunsynk_pv1_power",pv2_power_187:"sensor.sunsynk_pv2_power",pv1_voltage_109:"sensor.sunsynk_pv1_voltage",pv1_current_110:"sensor.sunsynk_pv1_current",pv2_voltage_111:"sensor.sunsynk_pv2_voltage",pv2_current_112:"sensor.sunsynk_pv2_current"}}}render(){xt.hass=this.hass;const e=this._config,t=this.getEntity("day_battery_discharge_71"),n=this.getEntity("day_battery_charge_70"),a=this.getEntity("day_load_energy_84"),o=this.getEntity("day_grid_import_76"),r=this.getEntity("day_pv_energy_108"),i=this.getEntity("day_grid_export_77"),s=this.getEntity("day_aux_energy"),l=this.getEntity("inverter_voltage_154"),d=this.getEntity("load_frequency_192"),c=this.getEntity("inverter_current_164"),u=this.getEntity("inverter_status_59",{state:""}),h=this.getEntity("inverter_power_175"),p=this.getEntity("priority_load_243",{state:"undefined"}),g=this.getEntity("use_timer_248",{state:"undefined"}),y=this.getEntity("dc_transformer_temp_90",{state:""}),m=this.getEntity("radiator_temp_91",{state:""}),f=this.getEntity("inverter_voltage_L2",{state:""}),v=this.getEntity("inverter_voltage_L3",{state:""}),w=this.getEntity("inverter_current_L2",{state:""}),_=this.getEntity("inverter_current_L3",{state:""}),x=this.getEntity("environment_temp",{state:""}),b=this.getEntity("battery_voltage_183"),A=this.getEntity("battery_soc_184"),P=this.getEntity("battery_power_190"),L=this.getEntity("battery_current_191"),T=this.getEntity("battery_temp_182",{state:""}),E=this.getEntity("battery_status",{state:""}),C=this.getEntity("battery_current_direction",{state:""}),M=this.getEntity("battery_rated_capacity",{state:""}),N=this.getEntity("battery.shutdown_soc",{state:e.battery.shutdown_soc?.toString()??""}),k=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),S=this.getEntity("essential_power"),I=this.getEntity("aux_power_166"),O=this.getEntity("nonessential_power"),D=this.getEntity("non_essential_load1"),H=this.getEntity("non_essential_load2"),z=this.getEntity("non_essential_load3"),B=this.getEntity("essential_load1"),G=this.getEntity("essential_load2"),V=this.getEntity("essential_load3"),R=this.getEntity("essential_load4"),q=this.getEntity("aux_connected_status",{state:"on"}),j=this.getEntity("aux_load1"),Z=this.getEntity("aux_load2"),Q=this.getEntity("essential_load1_extra"),F=this.getEntity("essential_load2_extra"),X=this.getEntity("load_power_L1"),Y=this.getEntity("load_power_L2"),J=this.getEntity("load_power_L3"),K=this.getEntity("aux_load1_extra"),$=this.getEntity("aux_load2_extra"),ee=this.getEntity("grid_ct_power_172"),te=this.getEntity("grid_ct_power_L2"),ne=this.getEntity("grid_ct_power_L3"),ae=this.getEntity("grid_ct_power_total"),oe=this.getEntity("grid_connected_status_194",{state:"on"}),re=this.getEntity("grid_power_169"),ie=this.getEntity("energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),se=this.getEntity("energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),le=this.getEntity("grid_voltage",null),de=this.getEntity("prepaid_units"),ce=this.getEntity("pv1_voltage_109"),ue=this.getEntity("pv1_current_110"),he=this.getEntity("pv2_voltage_111"),pe=this.getEntity("pv2_current_112"),ge=this.getEntity("pv3_voltage_113"),ye=this.getEntity("pv3_current_114"),me=this.getEntity("pv4_voltage_115"),ve=this.getEntity("pv4_current_116"),we=this.getEntity("pv1_power_186"),xe=this.getEntity("pv2_power_187"),Ae=this.getEntity("pv3_power_188"),Pe=this.getEntity("pv4_power_189"),Le=this.getEntity("remaining_solar"),Te=this.getEntity("solar_sell_247",{state:"undefined"}),Ee=this.getEntity("pv_total"),Ce=this.getEntity("total_pv_generation");let{invert_aux:Me}=e.load,Ne=I.toPower(Me),{invert_grid:ke}=e.grid,Se=ee.toPower(ke),Ie=te.toPower(ke),Oe=ne.toPower(ke),De=ae.toPower(ke),He=e.entities?.grid_ct_power_total?De:Se+Ie+Oe,ze=e.inverter.three_phase?He:Se,Be=le.isNaN()?null:le.toNum(0),Ge=C.isNaN()?null:C.toNum(0),Ve=e.inverter?.modern,Re=this.colourConvert(e.load?.colour),qe=this.colourConvert(e.load?.aux_colour||Re),je=this.colourConvert(e.load?.aux_off_colour||Re);e.title_colour=this.colourConvert(e.title_colour);let Ze=e.load?.show_daily,We=e.grid?.show_nonessential,Ue=e.entities?.grid_connected_status_194?oe.state:"on";Nt.includes(Ue.toLowerCase())||Mt.includes(Ue.toLowerCase())||(Ue="on");let Qe=e.entities?.aux_connected_status?q.state:"on",Fe=e.entities?.load_frequency_192?d.toNum(2):0,Xe=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?l.toNum(0):l.toNum(1):0,Ye=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?f.toNum(0):f.toNum(1):"",Je=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",Ke=e.entities?.inverter_current_164?c.toNum(1):0,$e=e.entities?.inverter_current_L2?w.toNum(1):"",et=e.entities?.inverter_current_L3?_.toNum(1):"",tt=e.entities?.battery_voltage_183?b.toNum(1):0,nt=e.entities?.inverter_power_175?h.toPower():0,at=e.entities?.grid_power_169?re.toPower():0,{invert_load:ot}=e.load,rt=e.entities?.load_power_L1?X.toPower(ot):"",it=e.entities?.load_power_L2?Y.toPower(ot):"",st=e.entities?.load_power_L3?J.toPower(ot):"";const lt=this.colourConvert(e.grid?.colour),dt=this.colourConvert(e.grid?.export_colour||lt),ct=this.colourConvert(e.grid?.no_grid_colour||lt);let ut;switch(!0){case ze<0:ut=dt;break;case 0===ze:ut=ct;break;default:ut=lt}const ht=this.colourConvert(e.grid?.grid_off_colour||ut);let pt=e.grid?.additional_loads;Tt.includes(pt)||(pt=0);let gt=e.grid?.show_daily_buy,yt=e.grid?.show_daily_sell,mt=this.colourConvert(e.battery?.colour),ft=this.colourConvert(e.battery?.charge_colour||mt),vt=e.battery?.show_daily,wt=e.solar?.show_daily,_t=e.load?.show_aux;Ct.includes(_t)||(_t=!1);let bt=e.load?.show_daily_aux,Pt=e.load?.additional_loads;(!Lt.includes(Pt)||this.isFullCard&&4===Pt)&&(Pt=0);let kt=e.load?.aux_loads;Lt.includes(kt)||(kt=0);let Ht=e.load?.aux_type,zt=e.load?.aux_load1_icon,Bt=e.load?.aux_load2_icon,Gt=e.grid?.nonessential_icon,Vt=e.grid?.load1_icon,Rt=e.grid?.load2_icon,qt=e.grid?.load3_icon,jt=e.load?.load1_icon,Zt=e.load?.load2_icon,Wt=e.load?.load3_icon,Ut=e.load?.load4_icon,Qt=!!e.entities.remaining_solar&&Xt.convertValueNew(Le.state,Le.attributes?.unit_of_measurement,1),Ft=!!e.entities.total_pv_generation&&Xt.convertValueNew(Ce.state,Ce.attributes?.unit_of_measurement,2),An=e.large_font,Pn=e.panel_mode,Ln=this.colourConvert(e.inverter?.colour),Tn=e.inverter?.autarky,En=!(!1===e.entities.use_timer_248||!e.entities.use_timer_248)&&g.state,Cn=!(!1===e.entities.priority_load_243||!e.entities.priority_load_243)&&p.state,Mn=P.toPower(e.battery?.invert_power);const Nn=(e.card_height?this.hass.states[e.card_height]:null)||{state:""};let kn="unavailable"===Nn.state||"unknown"===Nn.state||""===Nn.state?e.card_height:Nn.state,Sn=e.card_width,In=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,On=ze>=0?ie.toNum(In):se.toNum(In),Dn=_e.Sunsynk;Object.values(_e).includes(e.inverter.model)&&(Dn=e.inverter.model);let Hn="";const zn=Gn.getInstance(Dn);Ve||(Hn=zn.image);let Bn=!1;this.isCompactCard&&(Bn=!0);let Rn,Un,Qn=we.toPower(),Fn=xe.toPower(),Xn=Ae.toPower(),Yn=Pe.toPower(),Jn=Qn+Fn+Xn+Yn,Kn=e.entities?.pv_total?Ee.toNum():Jn,$n=e.solar.dynamic_colour?Xt.toNum(Kn,0)>10?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour),ea=e.inverter?.three_phase;Et.includes(ea)||(ea=!1);const{essential_power:ta,nonessential_power:na}=e.entities;Un=!1===ea?"none"!==na&&na?O.toPower():Se-at:"none"!==na&&na?O.toPower():Se+Ie+Oe-at,Rn="none"!==ta&&ta?S.toPower(ot):!0===ea&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(rt)+Number(it)+Number(st):nt+at-Ne;const aa={time:this.getEntity("prog1_time",{state:e.entities.prog1_time??""}),capacity:this.getEntity("prog1_capacity",{state:e.entities.prog1_capacity??""}),charge:this.getEntity("prog1_charge",{state:e.entities.prog1_charge??""})},oa={time:this.getEntity("prog2_time",{state:e.entities.prog2_time??""}),capacity:this.getEntity("prog2_capacity",{state:e.entities.prog2_capacity??""}),charge:this.getEntity("prog2_charge",{state:e.entities.prog2_charge??""})},ra={time:this.getEntity("prog3_time",{state:e.entities.prog3_time??""}),capacity:this.getEntity("prog3_capacity",{state:e.entities.prog3_capacity??""}),charge:this.getEntity("prog3_charge",{state:e.entities.prog3_charge??""})},ia={time:this.getEntity("prog4_time",{state:e.entities.prog4_time??""}),capacity:this.getEntity("prog4_capacity",{state:e.entities.prog4_capacity??""}),charge:this.getEntity("prog4_charge",{state:e.entities.prog4_charge??""})},sa={time:this.getEntity("prog5_time",{state:e.entities.prog5_time??""}),capacity:this.getEntity("prog5_capacity",{state:e.entities.prog5_capacity??""}),charge:this.getEntity("prog5_charge",{state:e.entities.prog5_charge??""})},la={time:this.getEntity("prog6_time",{state:e.entities.prog6_time??""}),capacity:this.getEntity("prog6_capacity",{state:e.entities.prog6_capacity??""}),charge:this.getEntity("prog6_charge",{state:e.entities.prog6_charge??""})};let da=k.toNum(),ca=N.toNum(),ua={capacity:ca,entityID:""};if(!1===En||"off"===g.state)ua.show=!1;else if(e.entities.prog1_time&&e.entities.prog2_time&&e.entities.prog3_time&&e.entities.prog4_time&&e.entities.prog5_time&&e.entities.prog6_time){ua.show=!0;const fo=new Date,vo=[];[aa,oa,ra,ia,sa,la].forEach(((e,t)=>{const[n,a]=e.time.state.split(":").map((function(e){return parseInt(e,10)}));vo[t]=new Date(fo.getTime()),vo[t].setHours(n),vo[t].setMinutes(a)}));const[wo,_o,xo,bo,Ao,Po]=vo;function Lo(e,t){"No Grid or Gen"===e.charge.state||"0"===e.charge.state||"off"===e.charge.state?ua.charge="none":ua.charge="both",ua.capacity=parseInt(e.capacity.state),ua.entityID=t}fo>=Po||fo=wo&&fo<_o?Lo(aa,e.entities.prog1_charge):fo>=_o&&fo=xo&&fo=bo&&fo=Ao&&fo50?"on":"off"),null!=Ge&&Dn==_e.Solis&&0===Ge&&(Mn=-Mn);let ha=0;if(e.show_battery)switch(Dn){case _e.GoodweGridMode:case _e.Goodwe:case _e.Huawei:Mn>0?ha="on"!==Ue&&"1"!==Ue&&"on-grid"!==Ue.toLowerCase()||ua.show?"off"!==Ue&&"0"!==Ue&&"off-grid"!==Ue.toLowerCase()||!k.notEmpty()||ua.show?ca:da:ca:Mn<0&&(ha=100);break;default:ha=zn.getBatteryCapacity(Mn,Ue,ca,ua,A)}let pa=0,ga="",ya="";let ma=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}).toNum(0);if(tt&&M.notEmpty()&&(ma=Xt.toNum(tt*M.toNum(0),0)),e.show_battery||0!==ma){0===Mn?pa=(A.toNum()-ca)/100*ma*60*60:Mn>0?pa=(A.toNum()-ha)/100*ma/Mn*60*60:Mn<0&&(pa=(ha-A.toNum(0))/100*ma/Mn*60*60*-1);const To=new Date,Eo=1e3*pa,Co=new Date(To.getTime()+Eo),Mo=Co.getHours(),No=Co.getMinutes().toString().padStart(2,"0"),ko=Mo.toString().padStart(2,"0");ga="".concat(ko,":").concat(No);const So=Math.floor(pa/86400),Io=Math.floor(pa%86400/3600),Oo=Math.floor(pa%3600/60);So>0&&(ya+="".concat(So," ").concat(At("common.days"),",")),(Io>0||So>0)&&(ya+="".concat(Io," ").concat(At("common.hrs"),",")),ya+="".concat(Oo," ").concat(At("common.min"))}let fa,va=-2<=L.toNum(0)&&L.toNum(0)<=2&&A.toNum(0)>=99;fa=Mn<0&&!va?ft:mt;let wa="",_a="",xa=u.state,ba=!1;Dn==_e.Solis&&(xa=u.isNaN()?u.toString():u.toNum(0).toString());let Aa=zn.statusGroups;if(Aa)for(const Do of Object.keys(Aa)){const Ho=Aa[Do],{states:zo,color:Bo,message:Go}=Ho;if(zo.includes(xa.toLowerCase())){wa=Bo,_a=Go,ba=!0;break}}ba||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(wa="transparent",_a="Status"):(wa="transparent",_a=""));let Pa="transparent",La="";if([_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(Dn)){let Vo=zn.batteryStatusGroups;if(Vo)for(const Ro of Object.keys(Vo)){const qo=Vo[Ro],{states:jo,color:Zo,message:Wo}=qo;if(jo.includes(E.state.toLowerCase())){Pa=Zo,La=Wo,ba=!0;break}}ba||("none"!==e.entities?.battery_status&&e.entities?.battery_status?(Pa="transparent",La="Status"):(Pa="transparent",La=""))}let Ta=r.toNum()+t.toNum(),Ea=a.toNum()+n.toNum(),Ca=0!=Ea?Math.max(Math.min(Math.round(100*Ta/Ea),100),0):0,Ma=0!=Ta?Math.max(Math.min(Math.round(100*Ea/Ta),100),0):0,Na=Kn+Xt.toNum("".concat(Mn>0?Mn:0))+Xt.toNum("".concat(Ne<0?-1*Ne:0)),ka=Rn+Un+Xt.toNum("".concat(Ne>0?Ne:0))+Xt.toNum("".concat(Mn<0?-1*Mn:0)),Sa=0!=ka?Math.max(Math.min(Math.round(100*Na/ka),100),0):0,Ia=0!=Na?Math.max(Math.min(Math.round(100*ka/Na),100),0):0,Oa=(Xt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,Da=Xt.toNum(e.min_line_width)||1;let Ha=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(),za=e.solar.max_power?this.dynamicLineWidth(Qn,e.solar.max_power||Qn,Oa,Da):Da,Ba=e.solar.max_power?this.dynamicLineWidth(Fn,e.solar.max_power||Fn,Oa,Da):Da,Ga=e.solar.max_power?this.dynamicLineWidth(Xn,e.solar.max_power||Xn,Oa,Da):Da,Va=e.solar.max_power?this.dynamicLineWidth(Yn,e.solar.max_power||Yn,Oa,Da):Da,Ra=e.battery.max_power?this.dynamicLineWidth(Math.abs(Mn),Ha||Math.abs(Mn),Oa,Da):Da,qa=e.load.max_power?this.dynamicLineWidth(Math.abs(Rn),e.load.max_power||Math.abs(Rn),Oa,Da):Da,ja=e.load.max_power?this.dynamicLineWidth(Math.abs(Ne),e.load.max_power||Math.abs(Ne),Oa,Da):Da,Za=e.grid.max_power?this.dynamicLineWidth(Math.abs(ze),e.grid.max_power||Math.abs(ze),Oa,Da):Da,Wa=e.grid.max_power?this.dynamicLineWidth(Math.abs(at),e.grid.max_power||Math.abs(at),Oa,Da):Da,Ua=e.grid.max_power?this.dynamicLineWidth(Math.abs(Un),e.grid.max_power||Math.abs(Un),Oa,Da):Da,Qa=e.solar.max_power?this.dynamicLineWidth(Kn,e.solar.max_power||Kn,Oa,Da):Da;if(e&&e.solar&&e.solar.animation_speed){const Uo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Kn/(e.solar.max_power||Kn));this.changeAnimationSpeed("solar",Uo)}if(e&&e.solar&&e.solar.animation_speed){const Qo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Qn/(e.solar.max_power||Qn));this.changeAnimationSpeed("pv1",Qo)}if(e&&e.solar&&e.solar.animation_speed){const Fo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Fn/(e.solar.max_power||Fn));this.changeAnimationSpeed("pv2",Fo)}if(e&&e.solar&&e.solar.animation_speed){const Xo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Xn/(e.solar.max_power||Xn));this.changeAnimationSpeed("pv3",Xo)}if(e&&e.solar&&e.solar.animation_speed){const Yo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Yn/(e.solar.max_power||Yn));this.changeAnimationSpeed("pv4",Yo)}if(e&&e.battery&&e.battery.animation_speed){const Jo=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(Mn)/(e.battery.max_power||Math.abs(Mn)));this.changeAnimationSpeed("battery",Jo)}if(e&&e.load&&e.load.animation_speed){const Ko=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Rn)/(e.load.max_power||Math.abs(Rn)));this.changeAnimationSpeed("load",Ko)}if(e&&e.load&&e.load.animation_speed){const $o=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Ne)/(e.load.max_power||Math.abs(Ne)));this.changeAnimationSpeed("aux",$o)}if(e&&e.grid&&e.grid.animation_speed){const er=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(ze)/(e.grid.max_power||Math.abs(ze)));this.changeAnimationSpeed("grid1",er),this.changeAnimationSpeed("grid",er)}if(e&&e.grid&&e.grid.animation_speed){const tr=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Un)/(e.grid.max_power||Math.abs(Un)));this.changeAnimationSpeed("ne",tr)}let Fa=e.decimal_places;const Xa=0===Kn?0:"off"!==Cn&&Cn||Mn>0?Kn/(ea?Rn+Math.max(Ne,0):Rn)*100:(Kn-Math.abs(Mn))/(ea?Rn+Math.max(Ne,0):Rn)*100,Ya=Mn<=0?0:Math.abs(Mn)/(ea?Rn+Math.max(Ne,0):Rn)*100,Ja=Xa+Ya,Ka=0===Ja?0:Xa/Ja*100,$a=0===Ja?0:Ya/Ja*100;let eo=0,to=0;Ja>100?(eo=Xt.toNum(Ka,0),to=Xt.toNum($a,0)):(eo=Xt.toNum(Math.min(Xa,100),0),to=Xt.toNum(Math.min(Ya,100),0));const no=0===Kn||Mn>=0?0:"off"!==Cn&&Cn?(Kn-Rn)/Math.abs(Mn)*100:Kn/Math.abs(Mn)*100,ao=Mn>=0||ze<=0?0:"on"===Cn?Kn-Rn>=Math.abs(Mn)?0:(ze-Math.max(Rn-Kn,0))/Math.abs(Mn)*100:Kn>=Math.abs(Mn)?0:(Math.abs(Mn)-Kn)/Math.abs(Mn)*100,oo=no+ao,ro=0===oo?0:no/oo*100,io=0===oo?0:ao/oo*100;let so,lo,co=0,uo=0;switch(oo>100?(co=Xt.toNum(ro,0),uo=Xt.toNum(io,0)):(co=Xt.toNum(Math.min(no,100),0),uo=Xt.toNum(Math.min(ao,100),0)),!0){case Xa>=100&&Ya<=5&&ze-Un<50&&e.load.dynamic_icon:so=Wn,lo=1;break;case Ya>=100&&Xa<=5&&ze-Un<50&&e.load.dynamic_icon:so=jn,lo=0;break;case Xa<5&&Ya<5&&e.load.dynamic_icon:so=Zn,lo=0;break;default:so=qn,lo=0}const{batteryIcon:ho,batteryCharge:po,stopColour:go,battery0:yo}=Vn.convert(A),mo={config:e,panelMode:Pn,compactMode:Bn,cardHeight:kn,cardWidth:Sn,loadColour:Re,batteryColour:fa,gridColour:ut,isFloating:va,inverterColour:Ln,solarColour:$n,auxColour:qe,auxOffColour:je,batteryEnergy:ma,largeFont:An,batteryPower:Mn,batteryDuration:ya,batteryCapacity:ha,additionalLoad:Pt,essIconSize:lo,essIcon:so,stateUseTimer:g,batteryStateMsg:La,stateBatterySoc:A,inverterProg:ua,solarShowDaily:wt,batteryPercentage:to,pvPercentage:eo,loadShowDaily:Ze,stateEnergyCostSell:se,stateEnergyCostBuy:ie,loadPowerL1:rt,loadPowerL2:it,loadPowerL3:st,durationCur:this.durationCur,stateEssentialLoad1:B,stateEssentialLoad2:G,stateEssentialLoad3:V,stateEssentialLoad4:R,gridPower:Se,gridPowerL2:Ie,gridPowerL3:Oe,decimalPlaces:Fa,stateEssentialLoad1Extra:Q,stateEssentialLoad2Extra:F,loadFrequency:Fe,statePV4Current:ve,gridShowDailyBuy:gt,gridShowDailySell:yt,batteryShowDaily:vt,inverterModel:Dn,batteryShutdown:ca,enableAutarky:Tn,autarkyPower:Sa,ratioPower:Ia,ratioEnergy:Ma,autarkyEnergy:Ca,shutdownOffGrid:da,statePV1Current:ue,statePV2Current:pe,statePV3Current:ye,energyCost:On,inverterCurrent:Ke,inverterCurrentL2:$e,inverterCurrentL3:et,stateRadiatorTemp:m,inverterVoltage:Xe,inverterVoltageL2:Ye,inverterVoltageL3:Je,batteryVoltage:tt,stateBatteryCurrent:L,batLineWidth:Ra,totalGridPower:ze,solarLineWidth:Qa,totalPV:Kn,loadLineWidth:qa,pvPercentageBat:co,gridPercentageBat:uo,genericInverterImage:Ve,battery0:yo,essentialPower:Rn,pv1LineWidth:za,pv2LineWidth:Ba,pv3LineWidth:Ga,pv4LineWidth:Va,gridLineWidth:Za,pv1PowerWatts:Qn,pv2PowerWatts:Fn,pv3PowerWatts:Xn,pv4PowerWatts:Yn,stateEnvironmentTemp:x,statePV1Voltage:ce,statePV2Voltage:he,statePV3Voltage:ge,statePV4Voltage:me,batteryStateColour:Pa,inverterStateColour:wa,stateBatteryTemp:T,statePrepaidUnits:de,stateDCTransformerTemp:y,iconEssentialLoad1:jt,iconEssentialLoad2:Zt,iconEssentialLoad3:Wt,iconEssentialLoad4:Ut,enableTimer:En,stateSolarSell:Te,priorityLoad:Cn,inverterImg:Hn,stateDayPVEnergy:r,statePV2Power:xe,statePV3Power:Ae,statePV4Power:Pe,remainingSolar:Qt,totalSolarGeneration:Ft,stateDayLoadEnergy:a,stateDayBatteryDischarge:t,stateDayGridImport:o,stateDayBatteryCharge:n,stateDayGridExport:i,statePVTotal:Ee,statePV1Power:we,minLineWidth:Da,stopColour:go,gridStatus:Ue,batteryCharge:po,gridOffColour:ht,batteryIcon:ho,formattedResultTime:ga,showAux:_t,nonessentialIcon:Gt,showNonessential:We,auxStatus:Qe,nonessentialLoads:pt,additionalAuxLoad:kt,stateAuxLoad1Extra:K,stateAuxLoad2Extra:$,iconNonessentialLoad1:Vt,iconNonessentialLoad2:Rt,iconNonessentialLoad3:qt,inverterStateMsg:_a,auxType:Ht,showDailyAux:bt,nonessentialPower:Un,auxPower:Ne,nonessLineWidth:Ua,grid169LineWidth:Wa,auxLineWidth:ja,iconAuxLoad1:zt,iconAuxLoad2:Bt,stateDayAuxEnergy:s,stateAuxLoad1:j,stateAuxLoad2:Z,stateNonessentialLoad1:D,stateNonessentialLoad2:H,stateNonessentialLoad3:z,autoScaledInverterPower:nt,autoScaledGridPower:at};return this.isFullCard?((e,t,n)=>W(Yt||(Yt=fe(["\n \n \n \n ','\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ",'\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n \n ','\n \n \n ',"\n ","\n ","\n ",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',' %\n \n \n ',' %\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Nonessential Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Nonessential Load Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Essential Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Aux Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Essential Boiler Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Aircon Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Pump Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Oven Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n '," / ",'\n \n \n \n \n '," /\n ",'\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n ","\n ","\n ","\n ","\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n ",'\n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' Hz\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' %\n \n \n \n \n | ',' %\n \n \n \n \n | ',' %\n \n \n \n \n |\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n AC:\n ','°\n \n \n \n DC:\n ','°\n \n \n \n \n ','°\n \n \n \n \n ',"\n \n \n \n
\n \n "])),n.loadColour,n.loadColour,n.auxColour,n.auxColour,n.auxOffColour,n.gridColour,n.gridColour,e.title?W(Jt||(Jt=fe(['\n '," "])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",!0!==n.panelMode?"".concat(n.cardHeight):"100%",!0===n.panelMode?"".concat(n.cardWidth):"100%",n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",n.batteryColour,e.show_battery?"":"none",n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",n.auxColour,n.showAux?"":"st12",n.loadColour,e.inverter.three_phase?60:50,n.inverterColour,n.solarColour,e.show_solar?"":"st12",n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.gridColour,n.showNonessential?"":"st12",e.show_grid?"":"none",1===n.nonessentialLoads?"":"none",n.gridColour,e.show_grid&&n.showNonessential?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",3===n.nonessentialLoads&&e.battery.hide_soc?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",n.showAux?"143":"30",n.loadColour,1===n.additionalLoad?"":"none",n.showAux?"373":"376",n.showAux?"149":"30",n.loadColour,2===n.additionalLoad?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.loadColour,2===n.additionalLoad?"":"none",n.auxColour,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxColour,n.showAux?"":"none",2===n.additionalAuxLoad?"":"st12",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower<=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.to"),n.batteryCapacity,At("common.charge"),n.formattedResultTime,e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",At("common.battery_floating"),e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,n.gridColour,e.show_grid?"":"none",e.grid.grid_name,n.inverterColour,n.inverterStateMsg,e.battery.show_remaining_energy?"15":"80",e.show_battery?"":"none",n.batteryColour,n.batteryStateMsg,e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,Xt.toNum(n.batteryEnergy*(n.stateBatterySoc?.toNum()/100)/1e3,2),It.KILO_WATT_HOUR,[1,2].includes(n.additionalLoad)&&n.showAux?"none":"",n.loadColour,e.load.essential_name,0!==n.additionalLoad&&n.showAux?"":"none",n.loadColour,e.load.essential_name,n.showAux?181:70,1===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?390:393,n.showAux?178:59,2===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?426:429,n.showAux?178:59,2===n.additionalLoad?"":"none",n.loadColour,e.load.load2_name,2===n.additionalAuxLoad?"238":"306",n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",At("common.daily_load"),0===n.additionalLoad?"377":"306",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),At("common.daily_load"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.total_solar_generation"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_charge"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_discharge"),n.showNonessential?"347":"311",n.showNonessential?"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_sell"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),e.load.aux_name,e.show_grid&&n.showNonessential?"":"none",n.gridColour,e.grid.nonessential_name,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load2_name,e.battery.hide_soc?"st3 st8":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load3_name,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.autarky"),n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.ratio"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxColour,e.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxColour,e.load.aux_load2_name,n.showAux&&0!==n.additionalAuxLoad&&e.entities.aux_load1_extra?"":"none",n.auxColour,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&e.entities.aux_load2_extra?"":"none",n.auxColour,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux?"":"none",n.auxColour,At("common.daily_aux"),e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.inverter.three_phase&&e.entities?.load_power_L1?n.loadPowerL1:"0",e.inverter.three_phase&&e.entities?.load_power_L2?"| "+n.loadPowerL2:"",e.inverter.three_phase&&e.entities?.load_power_L3?"| "+n.loadPowerL3:"",St.WATT,e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(St.WATT),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,n.inverterStateColour,e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,n.showAux?"":"none",[1,2].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.loadColour,n.showAux?"none":"",2===n.additionalLoad?"":"st12",n.loadColour,1===e.solar.mppts?"M 86 175 M 155 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 162 L 86 56 Q 86 56 86 56 L 70 56",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,e.show_battery?"":"st12",n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,e.inverter.three_phase?"M 421 295 L 421 337":"M 421 295 L 421 310.5",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),8),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne/1.5,n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),5),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne,n.showAux?"":"st12",n.auxColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxColour),n.durationCur.aux,n.showAux?"":"st12",n.auxColour,n.auxLineWidth,n.gridColour,n.grid169LineWidth,e.show_grid?"":"none",e.inverter.three_phase?"M 180.15 223 L 180.15 235":"M 180.15 212 L 180.15 235",n.inverterColour,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,n.loadColour,n.loadLineWidth,n.genericInverterImage?1:0,n.inverterColour,e.battery?.show_remaining_energy?"294":"296.25",Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),Number(n.gridPercentageBat)>0?"".concat(n.gridColour):"".concat(n.batteryColour),Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,e.battery?.show_remaining_energy?"294":"296.25",n.stopColour,e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,e.show_solar?"":"st12",n.solarColour,(t=>Xt.handlePopup(t,e.entities.grid_connected_status_194)),e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Nt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"","default"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.nonessentialIcon,"default"===n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad2,e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&e.battery.hide_soc?"":"none",e.battery.hide_soc?1:0,n.iconNonessentialLoad3,"default"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,1===n.essIconSize?"82.5":"78.5",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,(t=>Xt.handlePopup(t,e.entities.aux_connected_status)),"default"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"",n.auxType,"on"===n.auxStatus||"1"===n.auxStatus?"aux-icon":"aux-off-icon",n.showAux&&0!==n.additionalAuxLoad?"":"none",n.iconAuxLoad1,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.iconAuxLoad2,"boiler"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,[0,1].includes(n.additionalLoad)?"none":"",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[0,1].includes(n.additionalLoad)?"none":"",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[0,2].includes(n.additionalLoad)?"none":"",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(t=>Xt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=be.No?"232":"249","on"==n.stateUseTimer.state&&n.enableTimer!==be.No?"":"none",n.inverterColour,n.enableAutarky!=be.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,n.enableAutarky!=be.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_on"),n.enableAutarky!=be.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_off"),(t=>Xt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,(t=>Xt.handlePopup(t,e.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,n.enableAutarky!=be.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_load"),n.enableAutarky!=be.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_batt"),n.genericInverterImage?"st12":"",t,(e=>Xt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=be.No?"232":"249",!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"st12":"",n.inverterColour,n.enableAutarky!=be.No?"232":"249",!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"":"st12",n.inverterColour,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),n.remainingSolar,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),n.totalSolarGeneration,(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),2===n.additionalAuxLoad?"238":"306",n.loadShowDaily&&n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),0===n.additionalLoad?"377":"306",0===n.additionalLoad?"57":"80",n.loadShowDaily&&!n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?"239":"354",e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?"209":"323",e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_aux_energy)),[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxColour,n.stateDayAuxEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&1===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&2===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&2===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),e.inverter.three_phase?e.entities?.grid_ct_power_total?U(Kt||(Kt=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))):U($t||($t=fe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))):U(en||(en=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))),e.entities?.pv_total?U(tn||(tn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(St.WATT)):U(nn||(nn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(St.WATT)),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(an||(an=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(St.WATT)):U(on||(on=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(St.WATT)),e.entities?.nonessential_power?U(rn||(rn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.nonessential_power)),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Xt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(St.WATT)):U(sn||(sn=fe(['\n \n ',"\n "])),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Xt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(St.WATT)),e.entities?.aux_power_166?U(ln||(ln=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Xt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(St.WATT)):U(dn||(dn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Xt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_power_186)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv1PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv2PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv3PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv4PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxColour,n.stateAuxLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxColour,n.stateAuxLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load2)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad2.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad2.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load3)),e.battery.hide_soc?"st3":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&n.stateNonessentialLoad3.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad3.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),n.showAux?"158":"47",1===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"42",2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"42",2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),n.totalGridPower>=0?U(cn||(cn=fe(['\n \n \n '," "," \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy?.getUOM()):U(un||(un=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell?.getUOM()),(t=>Xt.handlePopup(t,e.entities.inverter_voltage_154)),e.inverter.three_phase?"164":"170.4",e.show_grid&&"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.inverterVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.inverter_voltage_L2)),e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL2,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.inverter_voltage_L3)),e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL3,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.load_frequency_192)),e.inverter.three_phase?"203":"189.5",e.show_grid&&"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.loadFrequency,(t=>Xt.handlePopup(t,e.entities.inverter_current_164)),e.inverter.three_phase?"188":"199","none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrent,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_current_L2)),e.inverter.three_phase&&e.entities?.inverter_current_L2?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL2,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_current_L3)),e.inverter.three_phase&&e.entities?.inverter_current_L3?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL3,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(),(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",(t=>Xt.handlePopup(t,e.entities.battery_power_190)),"none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(St.WATT):"".concat(n.batteryPower||0," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.battery_current_191)),"none"!==e.entities.battery_current_191&&e.show_battery&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(Xt.toNum(n.stateBatteryCurrent.state,1)):Xt.toNum(n.stateBatteryCurrent.state,1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_power_175)),e.inverter.three_phase?"174":"178","none"===e.entities.inverter_power_175?"none":"",!0!==n.largeFont?"st14":"st4",n.inverterColour,e.inverter.auto_scale?"".concat(Xt.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.grid_power_169)),e.inverter.three_phase?"216":"209",e.show_grid&&"none"!==e.entities.grid_power_169?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(St.WATT):"".concat(n.autoScaledGridPower||0," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_voltage_109)),e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv1_current_110)),e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_temp_182)),e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.radiator_temp_91)),4===e.solar?.mppts?"110":"158",4===e.solar?.mppts?"237":"153",n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3 left-align":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1)))(e,Hn,mo):this.isLiteCard||this.isCompactCard?((e,t,n)=>W(hn||(hn=fe(["\n \n \n \n ','\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ",'\n \n \n ',' %\n \n \n ',' %\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n ',' Hz\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' %\n \n \n \n \n | ',' %\n \n \n \n \n | ',' %\n \n \n \n \n |\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ',"\n ","\n \n \n ",'\n \n ',' V\n \n \n \n ',' A\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n \n AC:\n ','°\n \n \n \n \n DC:\n ','°\n \n \n \n \n ','°\n \n \n \n \n \n \n \n \n ","\n\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n \n
\n \n "])),n.loadColour,n.loadColour,e.title?W(pn||(pn=fe(['\n '," "])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.show_solar?-.5:0===n.additionalLoad&&e.show_battery?145.33:80,e.show_solar?e.show_battery?406:2===n.additionalLoad?350:300:e.show_battery&&0!==n.additionalLoad?350:270.67,!1===n.panelMode?"".concat(e.show_solar||e.show_battery?e.show_solar?e.show_solar&&!e.show_battery?2===n.additionalLoad?"350px":"300px":"".concat(n.cardHeight):0!==n.additionalLoad?"330px":"246px":"270px"):"".concat(e.show_solar?"100%":"75%"),!0===n.panelMode?"".concat(n.cardWidth):"100%",n.loadColour,n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",n.batteryColour,e.show_battery?"":"none",n.compactMode?"":"st12",n.compactMode?"348":"329.75",n.compactMode?"50":"70",n.compactMode?"7.5":"10.5",n.compactMode?"7.5":"10.5",n.batteryColour,e.show_battery?"":"none",n.compactMode?"st12":"",n.gridColour,e.show_grid?"":"none",1===e.solar.mppts?"205":"154",n.solarColour,e.show_solar?"":"st12",n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.loadColour,1===n.additionalLoad?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.compactMode?"270":"290",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower<=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.to"),n.batteryCapacity,At("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",At("common.battery_floating"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_charge"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_discharge"),[2,4].includes(n.additionalLoad)?"365":"412",[2,4].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",At("common.daily_load"),!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_sell"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.total_solar_generation"),1===e.solar.mppts?"212.7":"162",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.autarky"),n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.ratio"),[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,e.load?.load1_name?"".concat(e.load.load1_name):"",2===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load1_name?"".concat(e.load.load1_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load3_name?"".concat(e.load.load3_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load4_name?"".concat(e.load.load4_name):"",e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.load_power_L2?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.load_power_L3?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(St.WATT),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(St.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(St.WATT),e.battery.show_remaining_energy?"311":"320",!e.show_battery||n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,n.compactMode?"270":e.entities?.battery_status?"169":"193",n.compactMode?"338":"323",e.entities?.battery_status||n.compactMode?"st3 left-align":"st3",e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,Xt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum(2)/100)/1e3,2),It.KILO_WATT_HOUR,n.compactMode?"348.5":"368.5",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"348.5":"368.5",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,n.inverterStateColour,n.compactMode?"238.5":"162",n.compactMode?"326":e.battery.show_remaining_energy?"310":"319","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,1===e.solar.mppts?"M 239.23 84 L 239 190":"M 187 84 L 187 122 Q 187 132 195 132 L 205 132.03",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,n.compactMode?"M 239 250 L 239 290":"M 239 250 L 239 324",e.show_battery?"":"st12",n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,1===n.additionalLoad?"":"st12",n.loadColour,[2,4].includes(n.additionalLoad)?"":"st12",n.loadColour,[2,4].includes(n.additionalLoad)?"":"st12",n.loadColour,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,[0,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,[0,1,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad1,4===n.additionalLoad?"":"none",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad3,4===n.additionalLoad?"":"none",n.iconEssentialLoad4,e.show_solar?"":"st12",n.solarColour,n.compactMode?"212.5":"232.5",Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),Number(n.gridPercentageBat)>0?"".concat(n.gridColour):"".concat(n.batteryColour),Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode?"212.5":"232.5",n.stopColour,e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,(t=>Xt.handlePopup(t,e.entities.grid_connected_status_194)),Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",Nt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.genericInverterImage?1:0,n.inverterColour,(t=>Xt.handlePopup(t,e.entities.use_timer_248)),"on"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,"off"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,"off"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_off"),"on"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_on"),(t=>Xt.handlePopup(t,e.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_load"),(t=>Xt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,n.genericInverterImage?"st12":"",t,(e=>Xt.handlePopup(e,n.inverterProg.entityID)),!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"st12":"",n.inverterColour,!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"":"st12",n.inverterColour,(t=>Xt.handlePopup(t,e.entities.day_battery_charge_70)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1)+" / "+n.remainingSolar,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1)+" / "+n.totalSolarGeneration,(t=>Xt.handlePopup(t,e.entities.day_battery_discharge_71)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),[2,4].includes(n.additionalLoad)?"365":"412",[2,4].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_import_76)),e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_export_77)),e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.inverter_voltage_154)),"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",n.inverterColour,n.inverterVoltage,e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"| "+n.inverterVoltageL2:"",e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"| "+n.inverterVoltageL3:"",Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.load_frequency_192)),"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(t=>Xt.handlePopup(t,e.entities.inverter_current_164)),"none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",n.inverterColour,n.inverterCurrent,e.inverter.three_phase&&e.entities?.inverter_current_L2?"| "+n.inverterCurrentL2:"",e.inverter.three_phase&&e.entities?.inverter_current_L3?"| "+n.inverterCurrentL3:"",Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&!n.compactMode?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&n.compactMode?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"270":"290","none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery.shutdown_soc_offgrid?"":"none",(t=>Xt.handlePopup(t,e.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(St.WATT):"".concat(n.batteryPower||0," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&!n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Ot.AMPERE,e.inverter.three_phase?e.entities?.grid_ct_power_total?U(gn||(gn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))):U(yn||(yn=fe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))):U(mn||(mn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(St.WATT):"".concat(n.totalGridPower||0," ").concat(St.WATT))),(t=>Xt.handlePopup(t,e.entities.pv1_voltage_109)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),(t=>Xt.handlePopup(t,e.entities.pv1_current_110)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),(t=>Xt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_temp_182)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.radiator_temp_91)),n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[1,2].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&2===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),n.totalGridPower>=0?U(fn||(fn=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy.getUOM()):U(vn||(vn=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell.getUOM()),e.entities?.pv_total?U(wn||(wn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(St.WATT)):U(_n||(_n=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_power_186)),1===e.solar.mppts?"238.8":"188.1",!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv1PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv2PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv3PowerWatts||0,0)," ").concat(St.WATT),(t=>Xt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv4PowerWatts||0,0)," ").concat(St.WATT),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(xn||(xn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(St.WATT)):U(bn||(bn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(St.WATT)),(t=>Xt.handlePopup(t,e.entities.essential_load1)),[1,2].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),4===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),4===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load3)),4===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load4)),4===n.additionalLoad&&n.stateEssentialLoad4.isValid()?"":"none",n.loadColour,n.stateEssentialLoad4?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1)))(e,Hn,mo):void 0}getEntity(e,t={state:"0",attributes:{unit_of_measurement:""}}){let n;const a=String(e).split(".");a.length>1?n=this._config[a[0]][a[1]]:a.length>0&&(n=this._config.entities[a[0]]);const o=n?this.hass.states[n]:void 0;return Rn(void 0!==o?o:t||{state:void 0})}changeAnimationSpeed(e,t){const n=t>=1?Xt.toNum(t,3):1,a=this["".concat(e,"Flow")];this.durationCur[e]=n,a&&this.durationPrev[e]!=n&&a.setCurrentTime(a.getCurrentTime()*(n/this.durationPrev[e])),this.durationPrev[e]=this.durationCur[e]}get isCompactCard(){return this._config.cardstyle==xe.Compact}get isLiteCard(){return this._config.cardstyle==xe.Lite}get isFullCard(){return this._config.cardstyle==xe.Full}colourConvert(e){return e&&Array.isArray(e)?"rgb(".concat(e,")"):e}dynamicLineWidth(e,t,n,a=1){let o;return o=this._config.dynamic_line_width?Math.min(a+Math.min(e/t,1)*n,8):Math.min(a,8),o}setConfig(e){if(e.show_battery&&!e.battery)throw Error(At("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(At("errors.battery.shutdown_soc"));if(e.show_battery&&e.battery.show_daily&&(!e.entities.day_battery_charge_70||!e.entities.day_battery_discharge_71))throw Error(At("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(At("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(At("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(At("errors.solar.show_daily"));if(e&&e.grid&&e.grid.show_daily_buy&&!e.entities.day_grid_import_76||e&&e.grid&&e.grid.show_daily_sell&&!e.entities.day_grid_export_77)throw Error(At("errors.grid.show_daily"));if(e&&e.entities&&"none"===e.entities.essential_power&&!e.entities.inverter_power_175||e&&e.entities&&"none"===e.entities.essential_power&&"none"===e.entities.inverter_power_175)throw Error(At("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(At("errors.nonessential_power"));const t=["battery_soc_184","battery_power_190","battery_current_191","grid_ct_power_172","pv1_power_186"];for(const n of t)if("pv1_power_186"===n&&e.show_solar&&!e.entities[n]&&!e.entities[n])throw new Error("".concat(At("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=qt({},Pt,n)}getCardSize(){return 2}},t([ge()],e.SunsynkPowerFlowCard.prototype,"hass",void 0),t([ge()],e.SunsynkPowerFlowCard.prototype,"_config",void 0),t([me("#grid-flow")],e.SunsynkPowerFlowCard.prototype,"gridFlow",void 0),t([me("#grid1-flow")],e.SunsynkPowerFlowCard.prototype,"grid1Flow",void 0),t([me("#solar-flow")],e.SunsynkPowerFlowCard.prototype,"solarFlow",void 0),t([me("#pv1-flow")],e.SunsynkPowerFlowCard.prototype,"pv1Flow",void 0),t([me("#pv2-flow")],e.SunsynkPowerFlowCard.prototype,"pv2Flow",void 0),t([me("#pv3-flow")],e.SunsynkPowerFlowCard.prototype,"pv3Flow",void 0),t([me("#pv4-flow")],e.SunsynkPowerFlowCard.prototype,"pv4Flow",void 0),t([me("#battery-flow")],e.SunsynkPowerFlowCard.prototype,"batteryFlow",void 0),t([me("#load-flow")],e.SunsynkPowerFlowCard.prototype,"loadFlow",void 0),t([me("#aux-flow")],e.SunsynkPowerFlowCard.prototype,"auxFlow",void 0),t([me("#ne-flow")],e.SunsynkPowerFlowCard.prototype,"neFlow",void 0),t([me("#ne1-flow")],e.SunsynkPowerFlowCard.prototype,"ne1Flow",void 0),e.SunsynkPowerFlowCard=t([ue("sunsynk-power-flow-card")],e.SunsynkPowerFlowCard);try{customElements.define("content-card-editor",Ft)}catch(e){}window.customCards=window.customCards||[],window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:At("common.description"),configurable:!0})}));
+function(e){return class extends e{createRenderRoot(){const e=this.constructor,{registry:t,elementDefinitions:n,shadowRootOptions:a}=e;n&&!t&&(e.registry=new CustomElementRegistry,Object.entries(n).forEach((([t,n])=>e.registry.define(t,n))));const o=this.renderOptions.creationScope=this.attachShadow({...a,customElements:e.registry});return l(o,this.constructor.elementStyles),o}}}(de)){constructor(){super(...arguments),this._computeLabelCallback=e=>At("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this.hass&&this._config?W(Wt||(Wt=fe(["\n \n "])),this.hass,this._config,this._computeLabelCallback,[{type:"expandable",title:this._title("title"),schema:[{type:"grid",schema:[{name:"title",selector:{text:{}}},{name:"title_colour",selector:{color_rgb:{}}},{name:"title_size",selector:{text:{}}}]}]},{name:"cardstyle",selector:{select:{options:Object.values(xe).map((e=>({label:Qt.capitalize(e),value:e})))}}},{type:"expandable",title:this._title("general"),schema:[{type:"grid",schema:[{name:"large_font",selector:{boolean:{}}},{name:"panel_mode",selector:{boolean:{}}},{name:"card_height",selector:{text:{}}},{name:"card_width",selector:{text:{}}},{name:"show_solar",selector:{boolean:{}}},{name:"show_battery",selector:{boolean:{}}},{name:"show_grid",selector:{boolean:{}}},{name:"decimal_places",selector:{number:{}}},{name:"dynamic_line_width",selector:{boolean:{}}},{name:"max_line_width",selector:{number:{}}},{name:"min_line_width",selector:{number:{}}}]}]},{type:"expandable",title:this._title("inverter"),schema:[{name:"inverter",type:"grid",schema:[{name:"three_phase",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"model",selector:{select:{options:Object.values(_e).map((e=>({label:Qt.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(be).map((e=>({label:Qt.capitalize(e),value:e})))}}},{name:"colour",selector:{color_rgb:{}}}]}]},{type:"expandable",title:this._title("solar"),schema:[{name:"solar",type:"grid",schema:[{name:"mppts",selector:{number:{min:0,max:4}}},{name:"show_daily",selector:{boolean:{}}},{name:"pv1_name",selector:{text:{}}},{name:"pv2_name",selector:{text:{}}},{name:"pv3_name",selector:{text:{}}},{name:"pv4_name",selector:{text:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"display_mode",selector:{number:{mode:"box",min:1,max:3}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("battery"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{number:{min:0}}},{name:"shutdown_soc",selector:{number:{mode:"box",min:0,max:100}}},{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_power",selector:{boolean:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"charge_colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"linear_gradient",selector:{boolean:{}}},{name:"hide_soc",selector:{boolean:{}}},{name:"show_remaining_energy",selector:{boolean:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("load"),schema:[{name:"load",type:"grid",schema:[{name:"show_daily",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"dynamic_colour",selector:{boolean:{}}},{name:"dynamic_icon",selector:{boolean:{}}},{name:"invert_load",selector:{boolean:{}}},{name:"essential_name",selector:{text:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:4}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"load4_name",selector:{text:{}}},{name:"load4_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]},{type:"expandable",title:this._title("aux"),schema:[{name:"load",type:"grid",schema:[{name:"show_aux",selector:{boolean:{}}},{name:"aux_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_colour",selector:{color_rgb:{}}},{name:"aux_off_colour",selector:{color_rgb:{}}},{name:"aux_loads",selector:{number:{mode:"box",min:0,max:2}}},{name:"aux_load1_name",selector:{text:{}}},{name:"aux_load1_icon",selector:{icon:{}}},{name:"aux_load2_name",selector:{text:{}}},{name:"aux_load2_icon",selector:{icon:{}}},{name:"show_daily_aux",selector:{boolean:{}}}]}]}]},{type:"expandable",title:this._title("grid"),schema:[{name:"grid",type:"grid",schema:[{name:"show_daily_buy",selector:{boolean:{}}},{name:"show_daily_sell",selector:{boolean:{}}},{name:"auto_scale",selector:{boolean:{}}},{name:"invert_grid",selector:{boolean:{}}},{name:"colour",selector:{color_rgb:{}}},{name:"no_grid_colour",selector:{color_rgb:{}}},{name:"export_colour",selector:{color_rgb:{}}},{name:"grid_off_colour",selector:{color_rgb:{}}},{name:"grid_name",selector:{text:{}}},{name:"show_absolute",selector:{boolean:{}}},{name:"energy_cost_decimals",selector:{number:{mode:"box",min:0,max:3}}},{name:"show_nonessential",selector:{boolean:{}}},{name:"additional_loads",selector:{number:{mode:"box",min:0,max:3}}},{name:"nonessential_name",selector:{text:{}}},{name:"nonessential_icon",selector:{icon:{}}},{name:"load1_name",selector:{text:{}}},{name:"load1_icon",selector:{icon:{}}},{name:"load2_name",selector:{text:{}}},{name:"load2_icon",selector:{icon:{}}},{name:"load3_name",selector:{text:{}}},{name:"load3_icon",selector:{icon:{}}},{name:"animation_speed",selector:{number:{}}},{name:"max_power",selector:{number:{}}}]}]},{type:"expandable",title:this._title("entities"),schema:[{type:"expandable",title:this._title("sol"),schema:[{name:"entities",type:"grid",schema:[{name:"day_pv_energy_108",selector:{entity:{device_class:kt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:kt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:kt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:kt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:kt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:kt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:kt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:kt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:kt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:kt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:kt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:kt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:kt.BATTERY}}},{name:"day_battery_charge_70",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:kt.ENERGY}}},{name:"battery_rated_capacity",selector:{entity:{}}},{name:"battery_current_direction",selector:{entity:{}}},{name:"battery_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("inv"),schema:[{name:"entities",type:"grid",schema:[{name:"inverter_status_59",selector:{entity:{}}},{name:"use_timer_248",selector:{entity:{}}},{name:"priority_load_243",selector:{entity:{}}},{name:"inverter_voltage_154",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:kt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:kt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:kt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:kt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:kt.TEMPERATURE}}},{name:"prog1_time",selector:{entity:{}}},{name:"prog1_capacity",selector:{entity:{}}},{name:"prog1_charge",selector:{entity:{}}},{name:"prog2_time",selector:{entity:{}}},{name:"prog2_capacity",selector:{entity:{}}},{name:"prog2_charge",selector:{entity:{}}},{name:"prog3_time",selector:{entity:{}}},{name:"prog3_capacity",selector:{entity:{}}},{name:"prog3_charge",selector:{entity:{}}},{name:"prog4_time",selector:{entity:{}}},{name:"prog4_capacity",selector:{entity:{}}},{name:"prog4_charge",selector:{entity:{}}},{name:"prog5_time",selector:{entity:{}}},{name:"prog5_capacity",selector:{entity:{}}},{name:"prog5_charge",selector:{entity:{}}},{name:"prog6_time",selector:{entity:{}}},{name:"prog6_capacity",selector:{entity:{}}},{name:"prog6_charge",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("ld"),schema:[{name:"entities",type:"grid",schema:[{name:"day_load_energy_84",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:kt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:kt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:kt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:kt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:kt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:kt.POWER}}},{name:"aux_load1_extra",selector:{entity:{}}},{name:"aux_load2_extra",selector:{entity:{}}},{name:"aux_connected_status",selector:{entity:{}}}]}]},{type:"expandable",title:this._title("gri"),schema:[{name:"entities",type:"grid",schema:[{name:"day_grid_import_76",selector:{entity:{device_class:kt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:kt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:kt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:kt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:kt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:kt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:kt.POWER}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}}]}]}]}],(e=>this._valueChanged(e))):W(Zt||(Zt=fe([""])))}_title(e){return At("config.cat_title.".concat(e))??e}_valueChanged(e){!function(e,t,n,a){a=a||{},n=null==n?{}:n;var o=new Event(t,{bubbles:void 0===a.bubbles||a.bubbles,cancelable:Boolean(a.cancelable),composed:void 0===a.composed||a.composed});o.detail=n,e.dispatchEvent(o)}(this,"config-changed",{config:e.detail.value})}};Ft.styles=s(Ut||(Ut=fe(["\n\n "]))),t([ge({attribute:!1})],Ft.prototype,"hass",void 0),t([function(e){return ge({...e,state:!0,attribute:!1})}()],Ft.prototype,"_config",void 0),Ft=t([ue("content-card-editor")],Ft);class Xt{static toNum(e,t=-1,n=!1){let a=Number(e);return Number.isNaN(a)?0:(t>=0&&(a=parseFloat(a.toFixed(t))),n&&(a*=-1),a)}static convertValue(e,t=2){return t=Number.isNaN(t)?2:t,Math.abs(e)>=1e6?"".concat((e/1e6).toFixed(t)," MW"):Math.abs(e)>=1e3?"".concat((e/1e3).toFixed(t)," kW"):"".concat(Math.round(e)," W")}static convertValueNew(e,t="",n=2){n=isNaN(n)?2:n;const a=Number(e);if(isNaN(a))return 0;const o=Ht[t];if(!o)return"".concat(Math.round(a)," ").concat(t);if(t===It.WATT&&Math.abs(a)<1e3)return"".concat(Math.round(a)," ").concat(t);if(t===It.KILO_WATT&&Math.abs(a)<1)return"".concat(Math.round(1e3*a)," W");if(t===It.MEGA_WATT&&Math.abs(a)<1)return"".concat((1e3*a).toFixed(n)," kW");for(const e of o)if(Math.abs(a)>=e.threshold){const t=(a/e.divisor).toFixed(e.decimal||n);return"".concat(t," ").concat(e.targetUnit)}return"".concat(a.toFixed(n)," ").concat(t)}static handlePopup(e,t){t&&this._handleClick(e,{action:"more-info"},t)}static _handleClick(e,t,n){if(!n||!e)return;let a;if(e.stopPropagation(),"more-info"===t.action)a=new Event("hass-more-info",{composed:!0}),a.detail={entityId:n},e.target.dispatchEvent(a)}}var Yt,Jt,Kt,$t,en,tn,nn,an,on,rn,sn,ln,dn,cn,un;var hn,pn,gn,yn,mn,fn,vn,wn,_n,xn,bn;class An{constructor(){}getBatteryCapacity(e,t,n,a,o){let r=0;return e>0?r="off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)<=a.capacity?n:a.capacity:e<0&&("off"===t||"0"===t||"off-grid"===t.toLowerCase()||!a.show||parseInt(o.state)>=a.capacity?r=100:parseInt(o.state)=95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5zM5 6.5 11 6.5 11 7.5H5z",o="green";break;case 85<=parseInt(e.state)&&parseInt(e.state)<95:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zM5 8 11 8 11 9H5z",o="green";break;case 75<=parseInt(e.state)&&parseInt(e.state)<85:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 9.5 11 9.5 11 10.5H5zH5z",o="#9ACD32";break;case 65<=parseInt(e.state)&&parseInt(e.state)<75:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5zM5 11 11 11 11 12H5zM5 11z",o="yellow";break;case 55<=parseInt(e.state)&&parseInt(e.state)<65:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zM5 12.5 11 12.5 11 13.5H5z",o="yellow";break;case 45<=parseInt(e.state)&&parseInt(e.state)<55:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zM5 14 11 14 11 15H5zH5z",o="yellow";break;case 35<=parseInt(e.state)&&parseInt(e.state)<45:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",o="orange";break;case 25<=parseInt(e.state)&&parseInt(e.state)<35:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",o="orange";break;case 10<=parseInt(e.state)&&parseInt(e.state)<25:n="M12 20H4V6h8L12 20m.67-16H11V2H5v2H3.33C2.6 4 2 4.6 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.74 0 1.33-.59 1.33-1.33V5.33C14 4.6 13.4 4 12.67 4M5.02 18.5v1L11 19.5 11 18.5z",a="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",o="orange";break;case 0<=parseInt(e.state)&&parseInt(e.state)<10:default:n=t,a=t,o="red"}return{batteryIcon:n,batteryCharge:a,stopColour:o,battery0:t}}}function qn(e){return{...e,toNum:(t,n)=>Xt.toNum(e?.state,t,n),isValid:()=>null!==e?.state&&void 0!==e.state&&"unknown"!==e.state||!1,notEmpty:()=>""!==e?.state&&null!==e?.state&&"unknown"!==e?.state&&void 0!==e.state||!1,isNaN:()=>null===e?.state||Number.isNaN(e?.state),toPower:t=>{const n=(e.attributes?.unit_of_measurement||"").toLowerCase();return"kw"===n?Xt.toNum(1e3*(e?.state||"0"),0,t):"mw"===n?Xt.toNum(1e6*(e?.state||"0"),0,t):Xt.toNum(e?.state||"0",0,t)||0},toPowerString:(t,n,a)=>t?Xt.convertValueNew(e?.state,e?.attributes?.unit_of_measurement,n||0):"".concat(Xt.toNum(e?.state,0,a)," ").concat(e?.attributes?.unit_of_measurement||""),toString:()=>e?.state?.toString()||"",getUOM:()=>e?.attributes?.unit_of_measurement||""}}const Zn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",Wn="M15 9h1V7.5h4V9h1c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-6c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1m1 2v3h4v-3h-4m-4-5.31l-5 4.5V18h5v2H5v-8H2l10-9l2.78 2.5H14v1.67l-.24.1L12 5.69Z",Un="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",Qn="M11.6 3.45zM18.25 19.6v-7.6h2.85L11.6 3.45 2.1 12h2.85v7.6zM11.6 6.015l4.75 4.275V17.7H6.85v-7.41zM6.58 2.8v1.42L8 3.508zm-.4 2.4L5.2 6.184l1.5.5zM2.8 6.58 3.508 8l.712-1.42zM6 2.8H2.8v3.2c.228.068.468.1.708.1 1.432.004 2.596-1.16 2.6-2.6-.004-.236-.04-.472-.108-.7M12.5 3.844l2.25 2.026.5-.5-2.24-2.04zM17.71 8.53 18.2 8.04 15.76 5.84 15.26 6.34ZM20.52 11.09l.48-.49-2.31-2.14-.5.5z M18.1299 5.1169 17.318 4.6482l2.4492-1.6171-.75 1.299.8119.4687-2.4492 1.6171z";console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(At("common.version"),": ").concat("4.24.6"," "),"color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray"),console.log("Readme:","https://github.com/slipx06/sunsynk-power-flow-card"),console.groupEnd(),e.SunsynkPowerFlowCard=class extends de{constructor(){super(...arguments),this.durationPrev={},this.durationCur={}}static get styles(){return we}static getConfigElement(){return document.createElement("content-card-editor")}static getStubConfig(){return{cardstyle:xe.Lite,show_solar:!0,battery:{energy:0,shutdown_soc:20,show_daily:!0},solar:{show_daily:!0,mppts:2},load:{show_daily:!0},grid:{show_daily_buy:!0,show_daily_sell:!1,show_nonessential:!0},entities:{use_timer_248:"switch.sunsynk_toggle_system_timer",priority_load_243:"switch.sunsynk_toggle_priority_load",inverter_voltage_154:"sensor.sunsynk_inverter_voltage",load_frequency_192:"sensor.sunsynk_load_frequency",inverter_current_164:"sensor.sunsynk_inverter_current",inverter_power_175:"sensor.sunsynk_inverter_power",grid_connected_status_194:"binary_sensor.sunsynk_grid_connected_status",inverter_status_59:"sensor.sunsynk_overall_state",day_battery_charge_70:"sensor.sunsynk_day_battery_charge",day_battery_discharge_71:"sensor.sunsynk_day_battery_discharge",battery_voltage_183:"sensor.sunsynk_battery_voltage",battery_soc_184:"sensor.sunsynk_battery_soc",battery_power_190:"sensor.sunsynk_battery_power",battery_current_191:"sensor.sunsynk_battery_current",grid_power_169:"sensor.sunsynk_grid_power",day_grid_import_76:"sensor.sunsynk_day_grid_import",day_grid_export_77:"sensor.sunsynk_day_grid_export",grid_ct_power_172:"sensor.sunsynk_grid_ct_power",day_load_energy_84:"sensor.sunsynk_day_load_energy",essential_power:"none",nonessential_power:"none",aux_power_166:"sensor.sunsynk_aux_power",day_pv_energy_108:"sensor.sunsynk_day_pv_energy",pv1_power_186:"sensor.sunsynk_pv1_power",pv2_power_187:"sensor.sunsynk_pv2_power",pv1_voltage_109:"sensor.sunsynk_pv1_voltage",pv1_current_110:"sensor.sunsynk_pv1_current",pv2_voltage_111:"sensor.sunsynk_pv2_voltage",pv2_current_112:"sensor.sunsynk_pv2_current"}}}render(){xt.hass=this.hass;const e=this._config,t=this.getEntity("day_battery_discharge_71"),n=this.getEntity("day_battery_charge_70"),a=this.getEntity("day_load_energy_84"),o=this.getEntity("day_grid_import_76"),r=this.getEntity("day_pv_energy_108"),i=this.getEntity("day_grid_export_77"),s=this.getEntity("day_aux_energy"),l=this.getEntity("inverter_voltage_154"),d=this.getEntity("load_frequency_192"),c=this.getEntity("inverter_current_164"),u=this.getEntity("inverter_status_59",{state:""}),h=this.getEntity("inverter_power_175"),p=this.getEntity("priority_load_243",{state:"undefined"}),g=this.getEntity("use_timer_248",{state:"undefined"}),y=this.getEntity("dc_transformer_temp_90",{state:""}),m=this.getEntity("radiator_temp_91",{state:""}),f=this.getEntity("inverter_voltage_L2",{state:""}),v=this.getEntity("inverter_voltage_L3",{state:""}),w=this.getEntity("inverter_current_L2",{state:""}),_=this.getEntity("inverter_current_L3",{state:""}),x=this.getEntity("environment_temp",{state:""}),b=this.getEntity("battery_voltage_183"),A=this.getEntity("battery_soc_184"),P=this.getEntity("battery_power_190"),L=this.getEntity("battery_current_191"),T=this.getEntity("battery_temp_182",{state:""}),E=this.getEntity("battery_status",{state:""}),C=this.getEntity("battery_current_direction",{state:""}),M=this.getEntity("battery_rated_capacity",{state:""}),N=this.getEntity("battery.shutdown_soc",{state:e.battery.shutdown_soc?.toString()??""}),k=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),I=this.getEntity("essential_power"),S=this.getEntity("aux_power_166"),O=this.getEntity("nonessential_power"),D=this.getEntity("non_essential_load1"),H=this.getEntity("non_essential_load2"),z=this.getEntity("non_essential_load3"),B=this.getEntity("essential_load1"),V=this.getEntity("essential_load2"),G=this.getEntity("essential_load3"),R=this.getEntity("essential_load4"),j=this.getEntity("aux_connected_status",{state:"on"}),q=this.getEntity("aux_load1"),Z=this.getEntity("aux_load2"),Q=this.getEntity("essential_load1_extra"),F=this.getEntity("essential_load2_extra"),X=this.getEntity("load_power_L1"),Y=this.getEntity("load_power_L2"),J=this.getEntity("load_power_L3"),K=this.getEntity("aux_load1_extra"),$=this.getEntity("aux_load2_extra"),ee=this.getEntity("grid_ct_power_172"),te=this.getEntity("grid_ct_power_L2"),ne=this.getEntity("grid_ct_power_L3"),ae=this.getEntity("grid_ct_power_total"),oe=this.getEntity("grid_connected_status_194",{state:"on"}),re=this.getEntity("grid_power_169"),ie=this.getEntity("energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),se=this.getEntity("energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),le=this.getEntity("grid_voltage",null),de=this.getEntity("prepaid_units"),ce=this.getEntity("pv1_voltage_109"),ue=this.getEntity("pv1_current_110"),he=this.getEntity("pv2_voltage_111"),pe=this.getEntity("pv2_current_112"),ge=this.getEntity("pv3_voltage_113"),ye=this.getEntity("pv3_current_114"),me=this.getEntity("pv4_voltage_115"),ve=this.getEntity("pv4_current_116"),we=this.getEntity("pv1_power_186"),xe=this.getEntity("pv2_power_187"),Ae=this.getEntity("pv3_power_188"),Pe=this.getEntity("pv4_power_189"),Le=this.getEntity("remaining_solar"),Te=this.getEntity("solar_sell_247",{state:"undefined"}),Ee=this.getEntity("pv_total"),Ce=this.getEntity("total_pv_generation");let{invert_aux:Me}=e.load,Ne=S.toPower(Me),{invert_grid:ke}=e.grid,Ie=ee.toPower(ke),Se=te.toPower(ke),Oe=ne.toPower(ke),De=ae.toPower(ke),He=e.entities?.grid_ct_power_total?De:Ie+Se+Oe,ze=e.inverter.three_phase?He:Ie,Be=le.isNaN()?null:le.toNum(0),Ve=C.isNaN()?null:C.toNum(0),Ge=e.inverter?.modern,Re=this.colourConvert(e.load?.colour),je=this.colourConvert(e.load?.aux_colour||Re),qe=this.colourConvert(e.load?.aux_off_colour||Re);e.title_colour=this.colourConvert(e.title_colour);let Ze=e.load?.show_daily,We=e.grid?.show_nonessential,Ue=e.entities?.grid_connected_status_194?oe.state:"on";Nt.includes(Ue.toLowerCase())||Mt.includes(Ue.toLowerCase())||(Ue="on");let Qe=e.entities?.aux_connected_status?j.state:"on",Fe=e.entities?.load_frequency_192?d.toNum(2):0,Xe=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?l.toNum(0):l.toNum(1):0,Ye=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?f.toNum(0):f.toNum(1):"",Je=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?v.toNum(0):v.toNum(1):"",Ke=e.entities?.inverter_current_164?c.toNum(1):0,$e=e.entities?.inverter_current_L2?w.toNum(1):"",et=e.entities?.inverter_current_L3?_.toNum(1):"",tt=e.entities?.battery_voltage_183?b.toNum(1):0,nt=e.entities?.inverter_power_175?h.toPower():0,at=e.entities?.grid_power_169?re.toPower():0,{invert_load:ot}=e.load,rt=e.entities?.load_power_L1?X.toPower(ot):"",it=e.entities?.load_power_L2?Y.toPower(ot):"",st=e.entities?.load_power_L3?J.toPower(ot):"";const lt=this.colourConvert(e.grid?.colour),dt=this.colourConvert(e.grid?.export_colour||lt),ct=this.colourConvert(e.grid?.no_grid_colour||lt);let ut;switch(!0){case ze<0:ut=dt;break;case 0===ze:ut=ct;break;default:ut=lt}const ht=this.colourConvert(e.grid?.grid_off_colour||ut);let pt=e.grid?.additional_loads;Tt.includes(pt)||(pt=0);let gt=e.grid?.show_daily_buy,yt=e.grid?.show_daily_sell,mt=this.colourConvert(e.battery?.colour),ft=this.colourConvert(e.battery?.charge_colour||mt),vt=e.battery?.show_daily,wt=e.solar?.show_daily,_t=e.load?.show_aux;Ct.includes(_t)||(_t=!1);let bt=e.load?.show_daily_aux,Pt=e.load?.additional_loads;(!Lt.includes(Pt)||this.isFullCard&&4===Pt)&&(Pt=0);let kt=e.load?.aux_loads;Lt.includes(kt)||(kt=0);let Ht=e.load?.aux_type,zt=e.load?.aux_load1_icon,Bt=e.load?.aux_load2_icon,Vt=e.grid?.nonessential_icon,Gt=e.grid?.load1_icon,Rt=e.grid?.load2_icon,jt=e.grid?.load3_icon,qt=e.load?.load1_icon,Zt=e.load?.load2_icon,Wt=e.load?.load3_icon,Ut=e.load?.load4_icon,Qt=!!e.entities.remaining_solar&&Xt.convertValueNew(Le.state,Le.attributes?.unit_of_measurement,1),Ft=!!e.entities.total_pv_generation&&Xt.convertValueNew(Ce.state,Ce.attributes?.unit_of_measurement,2),An=e.large_font,Pn=e.panel_mode,Ln=this.colourConvert(e.inverter?.colour),Tn=e.inverter?.autarky,En=!(!1===e.entities.use_timer_248||!e.entities.use_timer_248)&&g.state,Cn=!(!1===e.entities.priority_load_243||!e.entities.priority_load_243)&&p.state,Mn=P.toPower(e.battery?.invert_power);const Nn=(e.card_height?this.hass.states[e.card_height]:null)||{state:""};let kn="unavailable"===Nn.state||"unknown"===Nn.state||""===Nn.state?e.card_height:Nn.state,In=e.card_width,Sn=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,On=ze>=0?ie.toNum(Sn):se.toNum(Sn),Dn=_e.Sunsynk;Object.values(_e).includes(e.inverter.model)&&(Dn=e.inverter.model);let Hn="";const zn=Rn.getInstance(Dn);Ge||(Hn=zn.image);let Bn=!1;this.isCompactCard&&(Bn=!0);let Vn,Gn,qn=we.toPower(),Fn=xe.toPower(),Xn=Ae.toPower(),Yn=Pe.toPower(),Jn=qn+Fn+Xn+Yn,Kn=e.entities?.pv_total?Ee.toNum():Jn,$n=e.solar.dynamic_colour?Xt.toNum(Kn,0)>10?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour),ea=e.inverter?.three_phase;Et.includes(ea)||(ea=!1);const{essential_power:ta,nonessential_power:na}=e.entities;Gn=!1===ea?"none"!==na&&na?O.toPower():Ie-at:"none"!==na&&na?O.toPower():Ie+Se+Oe-at,Vn="none"!==ta&&ta?I.toPower(ot):!0===ea&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(rt)+Number(it)+Number(st):nt+at-Ne;const aa={time:this.getEntity("prog1_time",{state:e.entities.prog1_time??""}),capacity:this.getEntity("prog1_capacity",{state:e.entities.prog1_capacity??""}),charge:this.getEntity("prog1_charge",{state:e.entities.prog1_charge??""})},oa={time:this.getEntity("prog2_time",{state:e.entities.prog2_time??""}),capacity:this.getEntity("prog2_capacity",{state:e.entities.prog2_capacity??""}),charge:this.getEntity("prog2_charge",{state:e.entities.prog2_charge??""})},ra={time:this.getEntity("prog3_time",{state:e.entities.prog3_time??""}),capacity:this.getEntity("prog3_capacity",{state:e.entities.prog3_capacity??""}),charge:this.getEntity("prog3_charge",{state:e.entities.prog3_charge??""})},ia={time:this.getEntity("prog4_time",{state:e.entities.prog4_time??""}),capacity:this.getEntity("prog4_capacity",{state:e.entities.prog4_capacity??""}),charge:this.getEntity("prog4_charge",{state:e.entities.prog4_charge??""})},sa={time:this.getEntity("prog5_time",{state:e.entities.prog5_time??""}),capacity:this.getEntity("prog5_capacity",{state:e.entities.prog5_capacity??""}),charge:this.getEntity("prog5_charge",{state:e.entities.prog5_charge??""})},la={time:this.getEntity("prog6_time",{state:e.entities.prog6_time??""}),capacity:this.getEntity("prog6_capacity",{state:e.entities.prog6_capacity??""}),charge:this.getEntity("prog6_charge",{state:e.entities.prog6_charge??""})};let da=k.toNum(),ca=N.toNum(),ua={capacity:ca,entityID:""};if(!1===En||"off"===g.state)ua.show=!1;else if(e.entities.prog1_time&&e.entities.prog2_time&&e.entities.prog3_time&&e.entities.prog4_time&&e.entities.prog5_time&&e.entities.prog6_time){ua.show=!0;const fo=new Date,vo=[];[aa,oa,ra,ia,sa,la].forEach(((e,t)=>{const[n,a]=e.time.state.split(":").map((function(e){return parseInt(e,10)}));vo[t]=new Date(fo.getTime()),vo[t].setHours(n),vo[t].setMinutes(a)}));const[wo,_o,xo,bo,Ao,Po]=vo;function Lo(e,t){"No Grid or Gen"===e.charge.state||"0"===e.charge.state||"off"===e.charge.state?ua.charge="none":ua.charge="both",ua.capacity=parseInt(e.capacity.state),ua.entityID=t}fo>=Po||fo=wo&&fo<_o?Lo(aa,e.entities.prog1_charge):fo>=_o&&fo=xo&&fo=bo&&fo=Ao&&fo50?"on":"off"),null!=Ve&&Dn==_e.Solis&&0===Ve&&(Mn=-Mn);let ha=0;if(e.show_battery)switch(Dn){case _e.GoodweGridMode:case _e.Goodwe:case _e.Huawei:Mn>0?ha="on"!==Ue&&"1"!==Ue&&"on-grid"!==Ue.toLowerCase()||ua.show?"off"!==Ue&&"0"!==Ue&&"off-grid"!==Ue.toLowerCase()||!k.notEmpty()||ua.show?ca:da:ca:Mn<0&&(ha=100);break;default:ha=zn.getBatteryCapacity(Mn,Ue,ca,ua,A)}let pa=0,ga="",ya="";let ma=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}).toNum(0);if(tt&&M.notEmpty()&&(ma=Xt.toNum(tt*M.toNum(0),0)),e.show_battery||0!==ma){0===Mn?pa=(A.toNum()-ca)/100*ma*60*60:Mn>0?pa=(A.toNum()-ha)/100*ma/Mn*60*60:Mn<0&&(pa=(ha-A.toNum(0))/100*ma/Mn*60*60*-1);const To=new Date,Eo=1e3*pa,Co=new Date(To.getTime()+Eo),Mo=Co.getHours(),No=Co.getMinutes().toString().padStart(2,"0"),ko=Mo.toString().padStart(2,"0");ga="".concat(ko,":").concat(No);const Io=Math.floor(pa/86400),So=Math.floor(pa%86400/3600),Oo=Math.floor(pa%3600/60);Io>0&&(ya+="".concat(Io," ").concat(At("common.days"),",")),(So>0||Io>0)&&(ya+="".concat(So," ").concat(At("common.hrs"),",")),ya+="".concat(Oo," ").concat(At("common.min"))}let fa,va=-2<=L.toNum(0)&&L.toNum(0)<=2&&A.toNum(0)>=99;fa=Mn<0&&!va?ft:mt;let wa="",_a="",xa=u.state,ba=!1;Dn==_e.Solis&&(xa=u.isNaN()?u.toString():u.toNum(0).toString());let Aa=zn.statusGroups;if(Aa)for(const Do of Object.keys(Aa)){const Ho=Aa[Do],{states:zo,color:Bo,message:Vo}=Ho;if(zo.includes(xa.toLowerCase())){wa=Bo,_a=Vo,ba=!0;break}}ba||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(wa="transparent",_a="Status"):(wa="transparent",_a=""));let Pa="transparent",La="";if([_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(Dn)){let Go=zn.batteryStatusGroups;if(Go)for(const Ro of Object.keys(Go)){const jo=Go[Ro],{states:qo,color:Zo,message:Wo}=jo;if(qo.includes(E.state.toLowerCase())){Pa=Zo,La=Wo,ba=!0;break}}ba||("none"!==e.entities?.battery_status&&e.entities?.battery_status?(Pa="transparent",La="Status"):(Pa="transparent",La=""))}let Ta=r.toNum()+t.toNum(),Ea=a.toNum()+n.toNum(),Ca=0!=Ea?Math.max(Math.min(Math.round(100*Ta/Ea),100),0):0,Ma=0!=Ta?Math.max(Math.min(Math.round(100*Ea/Ta),100),0):0,Na=Kn+Xt.toNum("".concat(Mn>0?Mn:0))+Xt.toNum("".concat(Ne<0?-1*Ne:0)),ka=Vn+Gn+Xt.toNum("".concat(Ne>0?Ne:0))+Xt.toNum("".concat(Mn<0?-1*Mn:0)),Ia=0!=ka?Math.max(Math.min(Math.round(100*Na/ka),100),0):0,Sa=0!=Na?Math.max(Math.min(Math.round(100*ka/Na),100),0):0,Oa=(Xt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,Da=Xt.toNum(e.min_line_width)||1;let Ha=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(),za=e.solar.max_power?this.dynamicLineWidth(qn,e.solar.max_power||qn,Oa,Da):Da,Ba=e.solar.max_power?this.dynamicLineWidth(Fn,e.solar.max_power||Fn,Oa,Da):Da,Va=e.solar.max_power?this.dynamicLineWidth(Xn,e.solar.max_power||Xn,Oa,Da):Da,Ga=e.solar.max_power?this.dynamicLineWidth(Yn,e.solar.max_power||Yn,Oa,Da):Da,Ra=e.battery.max_power?this.dynamicLineWidth(Math.abs(Mn),Ha||Math.abs(Mn),Oa,Da):Da,ja=e.load.max_power?this.dynamicLineWidth(Math.abs(Vn),e.load.max_power||Math.abs(Vn),Oa,Da):Da,qa=e.load.max_power?this.dynamicLineWidth(Math.abs(Ne),e.load.max_power||Math.abs(Ne),Oa,Da):Da,Za=e.grid.max_power?this.dynamicLineWidth(Math.abs(ze),e.grid.max_power||Math.abs(ze),Oa,Da):Da,Wa=e.grid.max_power?this.dynamicLineWidth(Math.abs(at),e.grid.max_power||Math.abs(at),Oa,Da):Da,Ua=e.grid.max_power?this.dynamicLineWidth(Math.abs(Gn),e.grid.max_power||Math.abs(Gn),Oa,Da):Da,Qa=e.solar.max_power?this.dynamicLineWidth(Kn,e.solar.max_power||Kn,Oa,Da):Da;if(e&&e.solar&&e.solar.animation_speed){const Uo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Kn/(e.solar.max_power||Kn));this.changeAnimationSpeed("solar",Uo)}if(e&&e.solar&&e.solar.animation_speed){const Qo=e.solar.animation_speed-(e.solar.animation_speed-1)*(qn/(e.solar.max_power||qn));this.changeAnimationSpeed("pv1",Qo)}if(e&&e.solar&&e.solar.animation_speed){const Fo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Fn/(e.solar.max_power||Fn));this.changeAnimationSpeed("pv2",Fo)}if(e&&e.solar&&e.solar.animation_speed){const Xo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Xn/(e.solar.max_power||Xn));this.changeAnimationSpeed("pv3",Xo)}if(e&&e.solar&&e.solar.animation_speed){const Yo=e.solar.animation_speed-(e.solar.animation_speed-1)*(Yn/(e.solar.max_power||Yn));this.changeAnimationSpeed("pv4",Yo)}if(e&&e.battery&&e.battery.animation_speed){const Jo=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(Mn)/(e.battery.max_power||Math.abs(Mn)));this.changeAnimationSpeed("battery",Jo)}if(e&&e.load&&e.load.animation_speed){const Ko=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Vn)/(e.load.max_power||Math.abs(Vn)));this.changeAnimationSpeed("load",Ko)}if(e&&e.load&&e.load.animation_speed){const $o=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Ne)/(e.load.max_power||Math.abs(Ne)));this.changeAnimationSpeed("aux",$o)}if(e&&e.grid&&e.grid.animation_speed){const er=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(ze)/(e.grid.max_power||Math.abs(ze)));this.changeAnimationSpeed("grid1",er),this.changeAnimationSpeed("grid",er)}if(e&&e.grid&&e.grid.animation_speed){const tr=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Gn)/(e.grid.max_power||Math.abs(Gn)));this.changeAnimationSpeed("ne",tr)}let Fa=e.decimal_places;const Xa=0===Kn?0:"off"!==Cn&&Cn||Mn>0?Kn/(ea?Vn+Math.max(Ne,0):Vn)*100:(Kn-Math.abs(Mn))/(ea?Vn+Math.max(Ne,0):Vn)*100,Ya=Mn<=0?0:Math.abs(Mn)/(ea?Vn+Math.max(Ne,0):Vn)*100,Ja=Xa+Ya,Ka=0===Ja?0:Xa/Ja*100,$a=0===Ja?0:Ya/Ja*100;let eo=0,to=0;Ja>100?(eo=Xt.toNum(Ka,0),to=Xt.toNum($a,0)):(eo=Xt.toNum(Math.min(Xa,100),0),to=Xt.toNum(Math.min(Ya,100),0));const no=0===Kn||Mn>=0?0:"off"!==Cn&&Cn?(Kn-Vn)/Math.abs(Mn)*100:Kn/Math.abs(Mn)*100,ao=Mn>=0||ze<=0?0:"on"===Cn?Kn-Vn>=Math.abs(Mn)?0:(ze-Math.max(Vn-Kn,0))/Math.abs(Mn)*100:Kn>=Math.abs(Mn)?0:(Math.abs(Mn)-Kn)/Math.abs(Mn)*100,oo=no+ao,ro=0===oo?0:no/oo*100,io=0===oo?0:ao/oo*100;let so,lo,co=0,uo=0;switch(oo>100?(co=Xt.toNum(ro,0),uo=Xt.toNum(io,0)):(co=Xt.toNum(Math.min(no,100),0),uo=Xt.toNum(Math.min(ao,100),0)),!0){case Xa>=100&&Ya<=5&&ze-Gn<50&&e.load.dynamic_icon:so=Qn,lo=1;break;case Ya>=100&&Xa<=5&&ze-Gn<50&&e.load.dynamic_icon:so=Wn,lo=0;break;case Xa<5&&Ya<5&&e.load.dynamic_icon:so=Un,lo=0;break;default:so=Zn,lo=0}const{batteryIcon:ho,batteryCharge:po,stopColour:go,battery0:yo}=jn.convert(A),mo={config:e,panelMode:Pn,compactMode:Bn,cardHeight:kn,cardWidth:In,loadColour:Re,batteryColour:fa,gridColour:ut,isFloating:va,inverterColour:Ln,solarColour:$n,auxColour:je,auxOffColour:qe,batteryEnergy:ma,largeFont:An,batteryPower:Mn,batteryDuration:ya,batteryCapacity:ha,additionalLoad:Pt,essIconSize:lo,essIcon:so,stateUseTimer:g,batteryStateMsg:La,stateBatterySoc:A,inverterProg:ua,solarShowDaily:wt,batteryPercentage:to,pvPercentage:eo,loadShowDaily:Ze,stateEnergyCostSell:se,stateEnergyCostBuy:ie,loadPowerL1:rt,loadPowerL2:it,loadPowerL3:st,durationCur:this.durationCur,stateEssentialLoad1:B,stateEssentialLoad2:V,stateEssentialLoad3:G,stateEssentialLoad4:R,gridPower:Ie,gridPowerL2:Se,gridPowerL3:Oe,decimalPlaces:Fa,stateEssentialLoad1Extra:Q,stateEssentialLoad2Extra:F,loadFrequency:Fe,statePV4Current:ve,gridShowDailyBuy:gt,gridShowDailySell:yt,batteryShowDaily:vt,inverterModel:Dn,batteryShutdown:ca,enableAutarky:Tn,autarkyPower:Ia,ratioPower:Sa,ratioEnergy:Ma,autarkyEnergy:Ca,shutdownOffGrid:da,statePV1Current:ue,statePV2Current:pe,statePV3Current:ye,energyCost:On,inverterCurrent:Ke,inverterCurrentL2:$e,inverterCurrentL3:et,stateRadiatorTemp:m,inverterVoltage:Xe,inverterVoltageL2:Ye,inverterVoltageL3:Je,batteryVoltage:tt,stateBatteryCurrent:L,batLineWidth:Ra,totalGridPower:ze,solarLineWidth:Qa,totalPV:Kn,loadLineWidth:ja,pvPercentageBat:co,gridPercentageBat:uo,genericInverterImage:Ge,battery0:yo,essentialPower:Vn,pv1LineWidth:za,pv2LineWidth:Ba,pv3LineWidth:Va,pv4LineWidth:Ga,gridLineWidth:Za,pv1PowerWatts:qn,pv2PowerWatts:Fn,pv3PowerWatts:Xn,pv4PowerWatts:Yn,stateEnvironmentTemp:x,statePV1Voltage:ce,statePV2Voltage:he,statePV3Voltage:ge,statePV4Voltage:me,batteryStateColour:Pa,inverterStateColour:wa,stateBatteryTemp:T,statePrepaidUnits:de,stateDCTransformerTemp:y,iconEssentialLoad1:qt,iconEssentialLoad2:Zt,iconEssentialLoad3:Wt,iconEssentialLoad4:Ut,enableTimer:En,stateSolarSell:Te,priorityLoad:Cn,inverterImg:Hn,stateDayPVEnergy:r,statePV2Power:xe,statePV3Power:Ae,statePV4Power:Pe,remainingSolar:Qt,totalSolarGeneration:Ft,stateDayLoadEnergy:a,stateDayBatteryDischarge:t,stateDayGridImport:o,stateDayBatteryCharge:n,stateDayGridExport:i,statePVTotal:Ee,statePV1Power:we,minLineWidth:Da,stopColour:go,gridStatus:Ue,batteryCharge:po,gridOffColour:ht,batteryIcon:ho,formattedResultTime:ga,showAux:_t,nonessentialIcon:Vt,showNonessential:We,auxStatus:Qe,nonessentialLoads:pt,additionalAuxLoad:kt,stateAuxLoad1Extra:K,stateAuxLoad2Extra:$,iconNonessentialLoad1:Gt,iconNonessentialLoad2:Rt,iconNonessentialLoad3:jt,inverterStateMsg:_a,auxType:Ht,showDailyAux:bt,nonessentialPower:Gn,auxPower:Ne,nonessLineWidth:Ua,grid169LineWidth:Wa,auxLineWidth:qa,iconAuxLoad1:zt,iconAuxLoad2:Bt,stateDayAuxEnergy:s,stateAuxLoad1:q,stateAuxLoad2:Z,stateNonessentialLoad1:D,stateNonessentialLoad2:H,stateNonessentialLoad3:z,autoScaledInverterPower:nt,autoScaledGridPower:at};return this.isFullCard?((e,t,n)=>W(Yt||(Yt=fe(["\n \n \n \n ','\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ",'\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n \n ','\n \n \n ',"\n ","\n ","\n ",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',' %\n \n \n ',' %\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Nonessential Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Nonessential Load Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Essential Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Aux Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \x3c!-- Essential Boiler Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Aircon Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Pump Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \x3c!-- Essential Oven Icon --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n '," / ",'\n \n \n \n \n '," /\n ",'\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n \n \n \n \n \n \n \n ","\n ","\n ","\n ","\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n ",'\n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' Hz\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' %\n \n \n \n \n | ',' %\n \n \n \n \n | ',' %\n \n \n \n \n |\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n AC:\n ','°\n \n \n \n DC:\n ','°\n \n \n \n \n ','°\n \n \n \n \n ',"\n \n \n \n
\n \n "])),n.loadColour,n.loadColour,n.auxColour,n.auxColour,n.auxOffColour,n.gridColour,n.gridColour,e.title?W(Jt||(Jt=fe(['\n '," "])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",!0!==n.panelMode?"".concat(n.cardHeight):"100%",!0===n.panelMode?"".concat(n.cardWidth):"100%",n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",n.batteryColour,e.show_battery?"":"none",n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",n.auxColour,n.showAux?"":"st12",n.loadColour,e.inverter.three_phase?60:50,n.inverterColour,n.solarColour,e.show_solar?"":"st12",n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.gridColour,n.showNonessential?"":"st12",e.show_grid?"":"none",1===n.nonessentialLoads?"":"none",n.gridColour,e.show_grid&&n.showNonessential?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",[2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",3===n.nonessentialLoads&&e.battery.hide_soc?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&1!==n.nonessentialLoads?"":"st12",n.showAux?"143":"30",n.loadColour,1===n.additionalLoad?"":"none",n.showAux?"373":"376",n.showAux?"149":"30",n.loadColour,2===n.additionalLoad?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.loadColour,2===n.additionalLoad?"":"none",n.auxColour,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxColour,n.showAux?"":"none",2===n.additionalAuxLoad?"":"st12",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower<=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.to"),n.batteryCapacity,At("common.charge"),n.formattedResultTime,e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",At("common.battery_floating"),e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,n.gridColour,e.show_grid?"":"none",e.grid.grid_name,n.inverterColour,n.inverterStateMsg,e.battery.show_remaining_energy?"15":"80",e.show_battery?"":"none",n.batteryColour,n.batteryStateMsg,e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,Xt.toNum(n.batteryEnergy*(n.stateBatterySoc?.toNum()/100)/1e3,2),St.KILO_WATT_HOUR,[1,2].includes(n.additionalLoad)&&n.showAux?"none":"",n.loadColour,e.load.essential_name,0!==n.additionalLoad&&n.showAux?"":"none",n.loadColour,e.load.essential_name,n.showAux?181:70,1===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?390:393,n.showAux?178:59,2===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?426:429,n.showAux?178:59,2===n.additionalLoad?"":"none",n.loadColour,e.load.load2_name,2===n.additionalAuxLoad?"238":"306",n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",At("common.daily_load"),0===n.additionalLoad?"377":"306",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),At("common.daily_load"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.total_solar_generation"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_charge"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_discharge"),n.showNonessential?"347":"311",n.showNonessential?"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_sell"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),e.load.aux_name,e.show_grid&&n.showNonessential?"":"none",n.gridColour,e.grid.nonessential_name,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load1_name,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load2_name,e.battery.hide_soc?"st3 st8":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.grid.load3_name,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.autarky"),n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.ratio"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxColour,e.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxColour,e.load.aux_load2_name,n.showAux&&0!==n.additionalAuxLoad&&e.entities.aux_load1_extra?"":"none",n.auxColour,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&e.entities.aux_load2_extra?"":"none",n.auxColour,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux?"":"none",n.auxColour,At("common.daily_aux"),e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.inverter.three_phase&&e.entities?.load_power_L1?n.loadPowerL1:"0",e.inverter.three_phase&&e.entities?.load_power_L2?"| "+n.loadPowerL2:"",e.inverter.three_phase&&e.entities?.load_power_L3?"| "+n.loadPowerL3:"",It.WATT,e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(It.WATT),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,n.inverterStateColour,e.battery.show_remaining_energy?"8":"73","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,n.showAux?"":"none",[1,2].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.loadColour,n.showAux?"none":"",2===n.additionalLoad?"":"st12",n.loadColour,1===e.solar.mppts?"M 86 175 M 155 250 L 96 250 Q 86 250 86 240 L 86 56 H 70":"M 86 162 L 86 56 Q 86 56 86 56 L 70 56",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,e.show_battery?"":"st12",n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,e.inverter.three_phase?"M 421 295 L 421 337":"M 421 295 L 421 310.5",n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid/1.5,n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),8),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne/1.5,n.gridColour,n.nonessLineWidth,e.show_grid?"":"none",n.showNonessential?"":"st12",Math.min(2+n.nonessLineWidth+Math.max(n.minLineWidth-2,0),5),n.showNonessential?"":"st12",n.nonessentialPower<=0?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.ne,n.showAux?"":"st12",n.auxColour,n.auxLineWidth,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower<0?"transparent":"".concat(n.auxColour),n.durationCur.aux,Math.min(2+n.auxLineWidth+Math.max(n.minLineWidth-2,0),8),n.showAux&&0!==n.auxPower?"":"st12",n.auxPower>0?"transparent":"".concat(n.auxColour),n.durationCur.aux,n.showAux?"":"st12",n.auxColour,n.auxLineWidth,n.gridColour,n.grid169LineWidth,e.show_grid?"":"none",e.inverter.three_phase?"M 180.15 223 L 180.15 235":"M 180.15 212 L 180.15 235",n.inverterColour,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,n.loadColour,n.loadLineWidth,n.genericInverterImage?1:0,n.inverterColour,e.battery?.show_remaining_energy?"294":"296.25",Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),Number(n.gridPercentageBat)>0?"".concat(n.gridColour):"".concat(n.batteryColour),Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,e.battery?.show_remaining_energy?"294":"296.25",n.stopColour,e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,e.show_solar?"":"st12",n.solarColour,(t=>Xt.handlePopup(t,e.entities.grid_connected_status_194)),e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Nt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"","default"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.nonessentialIcon,"default"===n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad2,e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&e.battery.hide_soc?"":"none",e.battery.hide_soc?1:0,n.iconNonessentialLoad3,"default"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,1===n.essIconSize?"82.5":"78.5",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,[1,2].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,(t=>Xt.handlePopup(t,e.entities.aux_connected_status)),"default"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxColour):"".concat(n.auxOffColour),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"",n.auxType,"on"===n.auxStatus||"1"===n.auxStatus?"aux-icon":"aux-off-icon",n.showAux&&0!==n.additionalAuxLoad?"":"none",n.iconAuxLoad1,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.iconAuxLoad2,"boiler"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad1&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",!n.showAux||[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad1||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad2||2!==n.additionalLoad||n.showAux?"0":"1",[0,1].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",!n.showAux||[0,2].includes(n.additionalLoad)?"none":"",n.loadColour,[0,1].includes(n.additionalLoad)?"none":"",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[0,1].includes(n.additionalLoad)?"none":"",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[0,2].includes(n.additionalLoad)?"none":"",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(t=>Xt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=be.No?"232":"249","on"==n.stateUseTimer.state&&n.enableTimer!==be.No?"":"none",n.inverterColour,n.enableAutarky!=be.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,n.enableAutarky!=be.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_on"),n.enableAutarky!=be.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_off"),(t=>Xt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,e.entities.solar_sell_247&&"none"!==e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,(t=>Xt.handlePopup(t,e.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,n.enableAutarky!=be.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_load"),n.enableAutarky!=be.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_batt"),n.genericInverterImage?"st12":"",t,(e=>Xt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=be.No?"232":"249",!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"st12":"",n.inverterColour,n.enableAutarky!=be.No?"232":"249",!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"":"st12",n.inverterColour,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),n.remainingSolar,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy.toPowerString(!0,1),n.totalSolarGeneration,(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),2===n.additionalAuxLoad?"238":"306",n.loadShowDaily&&n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),0===n.additionalLoad?"377":"306",0===n.additionalLoad?"57":"80",n.loadShowDaily&&!n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?"239":"354",e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?"209":"323",e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_aux_energy)),[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxColour,n.stateDayAuxEnergy.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&1===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&2===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&2===n.additionalLoad&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),e.inverter.three_phase?e.entities?.grid_ct_power_total?U(Kt||(Kt=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))):U($t||($t=fe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))):U(en||(en=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))),e.entities?.pv_total?U(tn||(tn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(It.WATT)):U(nn||(nn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(It.WATT)),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(an||(an=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(It.WATT)):U(on||(on=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(It.WATT)),e.entities?.nonessential_power?U(rn||(rn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.nonessential_power)),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Xt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(It.WATT)):U(sn||(sn=fe(['\n \n ',"\n "])),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Xt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(It.WATT)),e.entities?.aux_power_166?U(ln||(ln=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Xt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(It.WATT)):U(dn||(dn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Xt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_power_186)),!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv1PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv2PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv3PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv4PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxColour,n.stateAuxLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxColour,n.stateAuxLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load1)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad1.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad1.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load2)),e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)&&n.stateNonessentialLoad2.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad2.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.non_essential_load3)),e.battery.hide_soc?"st3":"st12",e.show_grid&&n.showNonessential&&![0,1,2].includes(n.nonessentialLoads)&&n.stateNonessentialLoad3.isValid()?"":"none",n.gridColour,n.stateNonessentialLoad3.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),n.showAux?"158":"47",1===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"42",2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"42",2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),n.totalGridPower>=0?U(cn||(cn=fe(['\n \n \n '," "," \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy?.getUOM()):U(un||(un=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell?.getUOM()),(t=>Xt.handlePopup(t,e.entities.inverter_voltage_154)),e.inverter.three_phase?"164":"170.4",e.show_grid&&"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.inverterVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.inverter_voltage_L2)),e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL2,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.inverter_voltage_L3)),e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"":"none",e.show_grid?"".concat(!0!==n.largeFont?"st14 st8":"st4 st8"):"st12",n.gridColour,n.inverterVoltageL3,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.load_frequency_192)),e.inverter.three_phase?"203":"189.5",e.show_grid&&"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,n.loadFrequency,(t=>Xt.handlePopup(t,e.entities.inverter_current_164)),e.inverter.three_phase?"188":"199","none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrent,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_current_L2)),e.inverter.three_phase&&e.entities?.inverter_current_L2?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL2,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_current_L3)),e.inverter.three_phase&&e.entities?.inverter_current_L3?"":"none",!0!==n.largeFont?"st14":"st4",n.inverterColour,n.inverterCurrentL3,Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),"none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(),(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",(t=>Xt.handlePopup(t,e.entities.battery_power_190)),"none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(It.WATT):"".concat(n.batteryPower||0," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.battery_current_191)),"none"!==e.entities.battery_current_191&&e.show_battery&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(Xt.toNum(n.stateBatteryCurrent.state,1)):Xt.toNum(n.stateBatteryCurrent.state,1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.inverter_power_175)),e.inverter.three_phase?"174":"178","none"===e.entities.inverter_power_175?"none":"",!0!==n.largeFont?"st14":"st4",n.inverterColour,e.inverter.auto_scale?"".concat(Xt.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.grid_power_169)),e.inverter.three_phase?"216":"209",e.show_grid&&"none"!==e.entities.grid_power_169?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(It.WATT):"".concat(n.autoScaledGridPower||0," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_voltage_109)),e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv1_current_110)),e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_temp_182)),e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.radiator_temp_91)),4===e.solar?.mppts?"110":"158",4===e.solar?.mppts?"237":"153",n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3 left-align":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1)))(e,Hn,mo):this.isLiteCard||this.isCompactCard?((e,t,n)=>W(hn||(hn=fe(["\n \n \n \n ','\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ",'\n \n \n ',' %\n \n \n ',' %\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n
\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n ',' Hz\n \n \n \n ',"\n ","\n ","\n ",'\n \n \n \n \n '," ",'\n \n \n \n \n '," ",'\n \n \n \n \n ',' %\n \n \n \n \n | ',' %\n \n \n \n \n | ',' %\n \n \n \n \n |\n \n \n \n \n ','\n \n \n \n \n ',"\n ",'\n \n \n \n \n ',"\n ","\n \n \n ",'\n \n ',' V\n \n \n \n ',' A\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n ',"\n ",'\n \n \n \n \n ','°\n \n \n \n \n AC:\n ','°\n \n \n \n \n DC:\n ','°\n \n \n \n \n ','°\n \n \n \n \n \n \n \n \n ","\n\n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n ",'\n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ',"\n \n \n \n
\n \n "])),n.loadColour,n.loadColour,e.title?W(pn||(pn=fe(['\n '," "])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.show_solar?-.5:0===n.additionalLoad&&e.show_battery?145.33:80,e.show_solar?e.show_battery?406:2===n.additionalLoad?350:300:e.show_battery&&0!==n.additionalLoad?350:270.67,!1===n.panelMode?"".concat(e.show_solar||e.show_battery?e.show_solar?e.show_solar&&!e.show_battery?2===n.additionalLoad?"350px":"300px":"".concat(n.cardHeight):0!==n.additionalLoad?"330px":"246px":"270px"):"".concat(e.show_solar?"100%":"75%"),!0===n.panelMode?"".concat(n.cardWidth):"100%",n.loadColour,n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",n.batteryColour,e.show_battery?"":"none",n.compactMode?"":"st12",n.compactMode?"348":"329.75",n.compactMode?"50":"70",n.compactMode?"7.5":"10.5",n.compactMode?"7.5":"10.5",n.batteryColour,e.show_battery?"":"none",n.compactMode?"st12":"",n.gridColour,e.show_grid?"":"none",1===e.solar.mppts?"205":"154",n.solarColour,e.show_solar?"":"st12",n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.loadColour,1===n.additionalLoad?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.compactMode?"270":"290",!0!==n.largeFont?"st14":"st4",e.show_battery?"":"none",0===n.batteryEnergy||n.isFloating||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.batteryDuration,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower<=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),At("common.to"),n.batteryCapacity,At("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",At("common.battery_floating"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_charge"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",At("common.daily_discharge"),[2,4].includes(n.additionalLoad)?"365":"412",[2,4].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",At("common.daily_load"),!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",At("common.daily_grid_sell"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",At("common.total_solar_generation"),1===e.solar.mppts?"212.7":"162",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===be.No?"none":"",n.enableAutarky===be.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.autarky"),n.enableAutarky===be.No?"none":"",n.inverterColour,At("common.ratio"),[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,e.load?.load1_name?"".concat(e.load.load1_name):"",2===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load1_name?"".concat(e.load.load1_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load3_name?"".concat(e.load.load3_name):"",4===n.additionalLoad?"":"none",n.loadColour,e.load?.load4_name?"".concat(e.load.load4_name):"",e.inverter.three_phase&&e.entities?.load_power_L1?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.load_power_L2?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.load_power_L3?"":"none",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(It.WATT),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L2?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(It.WATT),e.inverter.three_phase&&e.entities?.grid_ct_power_L3?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Xt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(It.WATT),e.battery.show_remaining_energy?"311":"320",!e.show_battery||n.compactMode?"none":"",n.batteryColour,n.batteryStateMsg,n.compactMode?"270":e.entities?.battery_status?"169":"193",n.compactMode?"338":"323",e.entities?.battery_status||n.compactMode?"st3 left-align":"st3",e.show_battery&&e.battery.show_remaining_energy?"":"none",n.batteryColour,Xt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum(2)/100)/1e3,2),St.KILO_WATT_HOUR,n.compactMode?"348.5":"368.5",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"348.5":"368.5",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.shutdownOffGrid,n.inverterStateColour,n.compactMode?"238.5":"162",n.compactMode?"326":e.battery.show_remaining_energy?"310":"319","none"!==e.entities?.battery_status&&e.entities?.battery_status&&e.show_battery?"":"none",n.batteryStateColour,1===e.solar.mppts?"M 239.23 84 L 239 190":"M 187 84 L 187 122 Q 187 132 195 132 L 205 132.03",e.show_solar?"":"st12",n.solarColour,n.pv1LineWidth,Math.min(2+n.pv1LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar?"":"st12",Math.round(n.pv1PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv1,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.pv2LineWidth,Math.min(2+n.pv2LineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",Math.round(n.pv2PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv2,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv3LineWidth,Math.min(2+n.pv3LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",Math.round(n.pv3PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv3,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",n.solarColour,n.pv4LineWidth,Math.min(2+n.pv4LineWidth+Math.max(n.minLineWidth-2,0),8),!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",Math.round(n.pv4PowerWatts)<=0?"transparent":"".concat(n.solarColour),n.durationCur.pv4,n.compactMode?"M 239 250 L 239 290":"M 239 250 L 239 324",e.show_battery?"":"st12",n.batteryColour,n.batLineWidth,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower<0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,Math.min(2+n.batLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_battery?"":"st12",n.batteryPower>0||0===n.batteryPower?"transparent":"".concat(n.batteryColour),n.durationCur.battery,e.show_solar&&1!==e.solar.mppts?"":"st12",n.solarColour,n.solarLineWidth,Math.min(2+n.solarLineWidth+Math.max(n.minLineWidth-2,0),8),e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.totalPV?"transparent":"".concat(n.solarColour),n.durationCur.solar,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,n.gridColour,n.gridLineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower<0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.totalGridPower>0||0===n.totalGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(n.loadColour),n.durationCur.load,1===n.additionalLoad?"":"st12",n.loadColour,[2,4].includes(n.additionalLoad)?"":"st12",n.loadColour,[2,4].includes(n.additionalLoad)?"":"st12",n.loadColour,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,[0,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,[0,1,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad1,4===n.additionalLoad?"":"none",n.iconEssentialLoad2,4===n.additionalLoad?"":"none",n.iconEssentialLoad3,4===n.additionalLoad?"":"none",n.iconEssentialLoad4,e.show_solar?"":"st12",n.solarColour,n.compactMode?"212.5":"232.5",Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.pvPercentageBat)>0?n.solarColour:Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,n.pvPercentageBat<2?0:n.pvPercentageBat,Number(n.gridPercentageBat)>0?n.gridColour:n.batteryColour,Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),Number(n.gridPercentageBat)>0?"".concat(n.gridColour):"".concat(n.batteryColour),Number(n.pvPercentageBat<2?0:n.pvPercentageBat)+Number(n.gridPercentageBat<2?0:n.gridPercentageBat),100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,100===Number(n.pvPercentageBat)?n.solarColour:100===Number(n.gridPercentageBat)?n.gridColour:n.batteryColour,e.show_battery?"":"st12",e.battery.dynamic_colour?"url(#bLg)":n.batteryColour,e.battery.linear_gradient?n.battery0:n.batteryIcon,n.compactMode?"212.5":"232.5",n.stopColour,e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,(t=>Xt.handlePopup(t,e.entities.grid_connected_status_194)),Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",Nt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",Mt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.batteryPercentage)>0?n.batteryColour:Number(n.pvPercentage)>0?n.solarColour:n.gridColour,n.batteryPercentage<2?0:n.batteryPercentage,Number(n.pvPercentage)>0?n.solarColour:n.gridColour,Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),Number(n.pvPercentage)>0?"".concat(n.solarColour):"".concat(n.gridColour),Number(n.batteryPercentage<2?0:n.batteryPercentage)+Number(n.pvPercentage<2?0:n.pvPercentage),100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,100===Number(n.batteryPercentage)?n.batteryColour:100===Number(n.pvPercentage)?n.solarColour:n.gridColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.genericInverterImage?1:0,n.inverterColour,(t=>Xt.handlePopup(t,e.entities.use_timer_248)),"on"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,"off"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,"off"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_off"),"on"==n.stateUseTimer.state&&!1!==n.enableTimer?"":"none",n.inverterColour,At("common.timer_on"),(t=>Xt.handlePopup(t,e.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,At("common.priority_load"),(t=>Xt.handlePopup(t,e.entities.solar_sell_247)),e.entities.solar_sell_247&&"off"!==n.stateSolarSell.state&&"0"!==n.stateSolarSell.state&&e.show_solar&&["1","on"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,e.entities.solar_sell_247&&"on"!==n.stateSolarSell.state&&"1"!==n.stateSolarSell.state&&e.show_solar&&["0","off"].includes(n.stateSolarSell.state)?"":"none",n.solarColour,n.genericInverterImage?"st12":"",t,(e=>Xt.handlePopup(e,n.inverterProg.entityID)),!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"st12":"",n.inverterColour,!1===n.inverterProg.show||"none"===e.entities.use_timer_248?"none":"","none"===n.inverterProg.charge?"":"st12",n.inverterColour,(t=>Xt.handlePopup(t,e.entities.day_battery_charge_70)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),1===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),2===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1)+" / "+n.remainingSolar,(t=>Xt.handlePopup(t,e.entities.day_pv_energy_108)),3===e.solar.display_mode&&n.stateDayPVEnergy.isValid()?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",n.stateDayPVEnergy?.toPowerString(!0,1)+" / "+n.totalSolarGeneration,(t=>Xt.handlePopup(t,e.entities.day_battery_discharge_71)),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_load_energy_84)),[2,4].includes(n.additionalLoad)?"365":"412",[2,4].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_import_76)),e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.day_grid_export_77)),e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,1),(t=>Xt.handlePopup(t,e.entities.inverter_voltage_154)),"none"!==e.entities.inverter_voltage_154&&e.entities.inverter_voltage_154?"":"none",n.inverterColour,n.inverterVoltage,e.inverter.three_phase&&e.entities?.inverter_voltage_L2?"| "+n.inverterVoltageL2:"",e.inverter.three_phase&&e.entities?.inverter_voltage_L3?"| "+n.inverterVoltageL3:"",Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.load_frequency_192)),"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(t=>Xt.handlePopup(t,e.entities.inverter_current_164)),"none"!==e.entities.inverter_current_164&&e.entities.inverter_current_164?"":"none",n.inverterColour,n.inverterCurrent,e.inverter.three_phase&&e.entities?.inverter_current_L2?"| "+n.inverterCurrentL2:"",e.inverter.three_phase&&e.entities?.inverter_current_L3?"| "+n.inverterCurrentL3:"",Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&!n.compactMode?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_voltage_183)),"none"!==e.entities.battery_voltage_183&&e.entities.battery_voltage_183&&e.show_battery&&n.compactMode?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",n.batteryVoltage,Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"270":"290","none"!==e.entities.battery_soc_184&&e.show_battery&&n.stateBatterySoc.isValid()?"":"none",n.batteryColour,n.stateBatterySoc.toNum(0),(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Xt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"335":"355",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[_e.GoodweGridMode,_e.Goodwe,_e.Huawei].includes(n.inverterModel)&&e.battery.shutdown_soc_offgrid?"":"none",(t=>Xt.handlePopup(t,e.entities.battery_power_190)),n.compactMode?"239":"193",n.compactMode?"307":"386","none"!==e.entities.battery_power_190&&e.show_battery?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.auto_scale?"".concat(e.battery.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(It.WATT):"".concat(n.batteryPower||0," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&!n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,!0!==n.largeFont?"st14":"st4",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_current_191)),e.entities.battery_current_191&&"none"!==e.entities.battery_current_191&&e.show_battery&&n.compactMode&&n.stateBatteryCurrent.isValid()?"":"none",n.batteryColour,n.compactMode?"st3 left-align":"st12",e.battery.show_absolute?Math.abs(n.stateBatteryCurrent.toNum(1)):n.stateBatteryCurrent.toNum(1),Ot.AMPERE,e.inverter.three_phase?e.entities?.grid_ct_power_total?U(gn||(gn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_total)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))):U(yn||(yn=fe(['\n \n ',"\n "])),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))):U(mn||(mn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.grid_ct_power_172)),e.show_grid&&"none"!==e.entities.grid_ct_power_172?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(e.grid.show_absolute?"".concat(Math.abs(parseFloat(Xt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Xt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Xt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(It.WATT):"".concat(n.totalGridPower||0," ").concat(It.WATT))),(t=>Xt.handlePopup(t,e.entities.pv1_voltage_109)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_voltage_109&&"none"!==e.entities.pv1_voltage_109&&n.statePV1Voltage.isValid()?"":"none",n.solarColour,n.statePV1Voltage.toNum(1),(t=>Xt.handlePopup(t,e.entities.pv1_current_110)),1===e.solar.mppts?"244.7":"194",e.show_solar&&e.entities.pv1_current_110&&"none"!==e.entities.pv1_current_110&&n.statePV1Current.isValid()?"":"none",n.solarColour,n.statePV1Current.toNum(1),(t=>Xt.handlePopup(t,e.entities.pv2_voltage_111)),e.show_solar&&e.entities.pv2_voltage_111&&"none"!==e.entities.pv2_voltage_111&&1!==e.solar.mppts&&n.statePV2Voltage.isValid()?"":"none",n.solarColour,n.statePV2Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv2_current_112)),e.show_solar&&e.entities.pv2_current_112&&"none"!==e.entities.pv2_current_112&&1!==e.solar.mppts&&n.statePV2Current.isValid()?"":"none",n.solarColour,n.statePV2Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv3_voltage_113)),e.show_solar&&e.entities.pv3_voltage_113&&"none"!==e.entities.pv3_voltage_113&&![1,2].includes(e.solar.mppts)&&n.statePV3Voltage.isValid()?"":"none",n.solarColour,n.statePV3Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv3_current_114)),e.show_solar&&e.entities.pv3_current_114&&"none"!==e.entities.pv3_current_114&&![1,2].includes(e.solar.mppts)&&n.statePV3Current.isValid()?"":"none",n.solarColour,n.statePV3Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.pv4_voltage_115)),e.show_solar&&e.entities.pv4_voltage_115&&"none"!==e.entities.pv4_voltage_115&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Voltage.isValid()?"":"none",n.solarColour,n.statePV4Voltage.toNum(1),Dt.VOLT,(t=>Xt.handlePopup(t,e.entities.pv4_current_116)),e.show_solar&&e.entities.pv4_current_116&&"none"!==e.entities.pv4_current_116&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Current.isValid()?"":"none",n.solarColour,n.statePV4Current.toNum(1),Ot.AMPERE,(t=>Xt.handlePopup(t,e.entities.battery_temp_182)),n.compactMode?"205":"250",n.compactMode?"332":"324.5",e.entities?.battery_temp_182?"st3 left-align":"st12",n.batteryColour,e.show_battery&&n.stateBatteryTemp.isValid()?"":"none",n.stateBatteryTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.radiator_temp_91)),n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.dc_transformer_temp_90)),n.inverterColour,e.entities?.dc_transformer_temp_90&&n.stateDCTransformerTemp.isValid()?"":"none",n.stateDCTransformerTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.environment_temp)),e.entities?.environment_temp?"st3 left-align":"st12",n.solarColour,e.show_solar&&n.stateEnvironmentTemp.isValid()?"":"none",n.stateEnvironmentTemp.toNum(1),(t=>Xt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[1,2].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>Xt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&2===n.additionalLoad&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra.getUOM(),n.totalGridPower>=0?U(fn||(fn=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_buy)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.energyCost,n.stateEnergyCostBuy.getUOM()):U(vn||(vn=fe(['\n \n \n '," ","\n \n "])),(t=>Xt.handlePopup(t,e.entities.energy_cost_sell)),e.show_grid?"st3 left-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.energyCost,n.stateEnergyCostSell.getUOM()),e.entities?.pv_total?U(wn||(wn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.pv_total)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(It.WATT)):U(_n||(_n=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePVTotal.isValid()?"":"none",n.solarColour,e.solar.auto_scale?e.entities?.pv_total?Xt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Xt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Xt.toNum(n.totalPV||0,0)," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.pv1_power_186)),1===e.solar.mppts?"238.8":"188.1",!0!==n.largeFont?"st14":"st4",e.show_solar&&n.statePV1Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv1PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv2_power_187)),!0!==n.largeFont?"st14":"st4",e.show_solar&&1!==e.solar.mppts&&n.statePV2Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv2PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv3_power_188)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2].includes(e.solar.mppts)&&n.statePV3Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv3PowerWatts||0,0)," ").concat(It.WATT),(t=>Xt.handlePopup(t,e.entities.pv4_power_189)),!0!==n.largeFont?"st14":"st4",e.show_solar&&![1,2,3].includes(e.solar.mppts)&&n.statePV4Power.isValid()?"":"none",n.solarColour,e.solar.auto_scale?Xt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Xt.toNum(n.pv4PowerWatts||0,0)," ").concat(It.WATT),e.entities?.essential_power&&"none"!==e.entities.essential_power?U(xn||(xn=fe(['\n \n \n ',"\n \n "])),(t=>Xt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(It.WATT)):U(bn||(bn=fe(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Xt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(It.WATT)),(t=>Xt.handlePopup(t,e.entities.essential_load1)),[1,2].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),2===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load1)),4===n.additionalLoad&&n.stateEssentialLoad1.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load2)),4===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load3)),4===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.essential_load4)),4===n.additionalLoad&&n.stateEssentialLoad4.isValid()?"":"none",n.loadColour,n.stateEssentialLoad4?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Xt.handlePopup(t,e.entities.prepaid_units)),e.entities?.prepaid_units?"st3":"st12",n.gridColour,e.show_grid&&n.statePrepaidUnits.isValid()?"":"none",n.statePrepaidUnits.toNum(1)))(e,Hn,mo):void 0}getEntity(e,t={state:"0",attributes:{unit_of_measurement:""}}){let n;const a=String(e).split(".");a.length>1?n=this._config[a[0]][a[1]]:a.length>0&&(n=this._config.entities[a[0]]);const o=n?this.hass.states[n]:void 0;return qn(void 0!==o?o:t||{state:void 0})}changeAnimationSpeed(e,t){const n=t>=1?Xt.toNum(t,3):1,a=this["".concat(e,"Flow")];this.durationCur[e]=n,a&&this.durationPrev[e]!=n&&a.setCurrentTime(a.getCurrentTime()*(n/this.durationPrev[e])),this.durationPrev[e]=this.durationCur[e]}get isCompactCard(){return this._config.cardstyle==xe.Compact}get isLiteCard(){return this._config.cardstyle==xe.Lite}get isFullCard(){return this._config.cardstyle==xe.Full}colourConvert(e){return e&&Array.isArray(e)?"rgb(".concat(e,")"):e}dynamicLineWidth(e,t,n,a=1){let o;return o=this._config.dynamic_line_width?Math.min(a+Math.min(e/t,1)*n,8):Math.min(a,8),o}setConfig(e){if(e.show_battery&&!e.battery)throw Error(At("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(At("errors.battery.shutdown_soc"));if(e.show_battery&&e.battery.show_daily&&(!e.entities.day_battery_charge_70||!e.entities.day_battery_discharge_71))throw Error(At("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(At("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(At("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(At("errors.solar.show_daily"));if(e&&e.grid&&e.grid.show_daily_buy&&!e.entities.day_grid_import_76||e&&e.grid&&e.grid.show_daily_sell&&!e.entities.day_grid_export_77)throw Error(At("errors.grid.show_daily"));if(e&&e.entities&&"none"===e.entities.essential_power&&!e.entities.inverter_power_175||e&&e.entities&&"none"===e.entities.essential_power&&"none"===e.entities.inverter_power_175)throw Error(At("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(At("errors.nonessential_power"));const t=["battery_soc_184","battery_power_190","battery_current_191","grid_ct_power_172","pv1_power_186"];for(const n of t)if("pv1_power_186"===n&&e.show_solar&&!e.entities[n]&&!e.entities[n])throw new Error("".concat(At("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=jt({},Pt,n)}getCardSize(){return 2}},t([ge()],e.SunsynkPowerFlowCard.prototype,"hass",void 0),t([ge()],e.SunsynkPowerFlowCard.prototype,"_config",void 0),t([me("#grid-flow")],e.SunsynkPowerFlowCard.prototype,"gridFlow",void 0),t([me("#grid1-flow")],e.SunsynkPowerFlowCard.prototype,"grid1Flow",void 0),t([me("#solar-flow")],e.SunsynkPowerFlowCard.prototype,"solarFlow",void 0),t([me("#pv1-flow")],e.SunsynkPowerFlowCard.prototype,"pv1Flow",void 0),t([me("#pv2-flow")],e.SunsynkPowerFlowCard.prototype,"pv2Flow",void 0),t([me("#pv3-flow")],e.SunsynkPowerFlowCard.prototype,"pv3Flow",void 0),t([me("#pv4-flow")],e.SunsynkPowerFlowCard.prototype,"pv4Flow",void 0),t([me("#battery-flow")],e.SunsynkPowerFlowCard.prototype,"batteryFlow",void 0),t([me("#load-flow")],e.SunsynkPowerFlowCard.prototype,"loadFlow",void 0),t([me("#aux-flow")],e.SunsynkPowerFlowCard.prototype,"auxFlow",void 0),t([me("#ne-flow")],e.SunsynkPowerFlowCard.prototype,"neFlow",void 0),t([me("#ne1-flow")],e.SunsynkPowerFlowCard.prototype,"ne1Flow",void 0),e.SunsynkPowerFlowCard=t([ue("sunsynk-power-flow-card")],e.SunsynkPowerFlowCard);try{customElements.define("content-card-editor",Ft)}catch(e){}window.customCards=window.customCards||[],window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:At("common.description"),configurable:!0})}));
diff --git a/docs/configuration.md b/docs/configuration.md
index c9fa9e82..41fafc8f 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -39,7 +39,7 @@ The card can be configured through the following attributes:
| modern: | Optional | `true` | Display the inverter using the modern image. Set to `false` to display an image of the inverter based on the `model` attribute below. |
| colour: | Optional | `grey` | Sets the colour of the inverter and data. Hex codes (`'#66ff00'` etc) or names (`red`, `green`, `blue` etc) |
| autarky: | Optional | `power` | Display autarky and ratio as a percentage using either realtime power or daily energy values. Set to `no` to hide (`energy/power/no`). Autarky is the percentage of self sufficiency through Home Production. Ratio is the percentage of produced electricity used by the home. It is calculated based on the formula below and borrowed from the [Power Distribution Card](https://github.com/JonahKr/power-distribution-card) Autarky in Percent = Home Production / Home Consumption Ratio in Percent = Home Consumption / Home Production |
-| model: | Optional | `sunsynk` | Selects which status codes to use. Options are `lux`, `solis`, `goodwe`, `goodwe_gridmode`, `foxess`, `solax`, `sunsynk`, `victron`, `fronius`, `solaredge`, `growatt`, `sofar`, `ces-battery-box` and `huawei`. |
+| model: | Optional | `sunsynk` | Selects which status codes to use. Options are `lux`, `solis`, `goodwe`, `goodwe_gridmode`, `foxess`, `solax`, `sunsynk`, `victron`, `fronius`, `solaredge`, `growatt`, `sofar`, `ces-battery-box`, `deye`, `azzurro` and `huawei`. |
| auto_scale: | Optional | `true` | If set to `true` the card will use the entities `unit_of_measurement` attribute to perform the correct scaling (i,e, power values greater than 999W will be displayed as kW e.g. 1.23kW) and display the correct unit. The number of decimal places can be changed using the `decimal_places` card attribute apart from the daily energy values which are rounded to 1 decimal place |
| three_phase: | Optional | `false` | If set to `true` additional 3 phase sensors will be displayed. Requires entity attributes to be defined i.e. `inverter_current_L2`, `inverter_current_L3`, `inverter_voltage_L2`, `inverter_voltage_L3` , `grid_ct_power_L2`, `grid_ct_power_L3`, `load_power_L1`, `load_power_L2`, `load_power_L3`
diff --git a/package.json b/package.json
index e776588f..33a3b060 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sunsynk-power-flow-card",
- "version": "4.24.6",
+ "version": "4.25.0",
"description": "A customizable Home Assistant card to emulate the Sunsynk System flow that's displayed on the Inverter screen.",
"main": "sunsynk-power-flow-card.js",
"scripts": {
diff --git a/src/inverters/brands/azzurro.ts b/src/inverters/brands/azzurro.ts
new file mode 100644
index 00000000..c256e66a
--- /dev/null
+++ b/src/inverters/brands/azzurro.ts
@@ -0,0 +1,15 @@
+import {InverterSettingsDto} from '../dto/inverter-settings.dto';
+import {InverterModel} from '../../types';
+import {localize} from '../../localize/localize';
+
+export class Azzurro extends InverterSettingsDto {
+ brand = InverterModel.Azzurro;
+ statusGroups = {
+ standby: {states: ['0', 'standby', 'stand-by'], color: 'blue', message: localize('common.standby')},
+ selftest: {states: ['1', 'selftest', 'self-checking'], color: 'yellow', message: localize('common.selftest')},
+ normal: {states: ['2', 'normal', 'ok'], color: 'green', message: localize('common.normal')},
+ alarm: {states: ['3', 'alarm'], color: 'orange', message: localize('common.alarm')},
+ fault: {states: ['4', 'fault'], color: 'red', message: localize('common.fault')},
+ };
+ image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAABICAYAAAC9bQZsAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABENSURBVGhDzVtpbFzXdT5v3uzDGW4SSdFaLNGyZFOxFKmSZSmKLbl1GwNu3CKxjaBOkAVG4KT5XaQ/avRHf/RnugBBCzRomwKRHDiFjbSOHddFHLdoKxu2IjmyRFIiKSqUxX2ZfabnO/feN/fNvDccygWazzi827lnueeub2Tn2a98/RnHdf+ByImSRr1e17kg1L12x4lIqsogR8rcIKWNAf4mTiNGZGp5Wl9dFwHHp5OpXpVSxKEfOfXIH7gHjxz9Z4q4/UQ1zWQ6tIcD45sdIjjKecfIag/0hxwDU24MHAaI82Dx2JBhPrR4+hU/wLn9tVp1MMKddzMHV3GHhg4fIMAmU6egFCnoNnGwcxi5tpNAQ0cDTp0HTfOHoVqvfzECcbBH/vBf/GfDViipnn4KhlenEOXv3hEgF2QctOGYIurRDjubePyQ9likK52mzz35BFewRTWMBqZRA0YhoFImOCcER+CJbpe/m4NxptkhG3BOBl5HKwy7dm6no4cPSz5SqVZpYXHJMy28mwZCAkOQVTVcpaK42WCZmdAOdQmZf7DDAJ+jMbUHOl/82jfETDsyzWipF3uUM8rFzboUIDMEsvtxpDrhFj/YrkqlTLzGuEsbpwx8gwtWUajzmwD0dOQU82CjqHfoFKD2B8WNhdLWOGOE+MFTrkFYX9xgeSxroY0swEy/wGkIJbzOVZQ6G4AwHj7PfLb5gE62AbKAm2CcAcnyC5Fl0BgovyyxAwQZsoH52zuBLZMjtvHItFvknThj0E4PWrAsNrKlGcY208+kvMbaA4yeMk7CfOgkUu0GyI8wq7BhYfWgXe0Lnm0WUKe2tia0dIBBsq7CVW4EONViBMqG5Aw17f4BUOsZdSDww+zGQAU5J2usGb6R5az47wm+MwQ7BWc02UNm6VJnpBjBMHxq4IMcMgidiso5CORNlG/OMESp2hzQJ5NKU19vL7mRwAnSgoYmP7+KGkwJd8igRZPphFTJQRn74cbCguC6UVrP52lxaYkGtvTLgMkuquU2YPKqXU0/tkGrldYaP006NKPtEDZGRo1hhzJ9qFQrVOOpVuM1dHt+gZKJhFiZzWYpmUxqLjhiUpXBWQby6mW6cr1u3wgtjqGjOAQBIgQEts4EGqTTKUrE474RLlcqlOfo1dnJ5ZVVyuWyvCe52hmzQdhOavO0U4BxcCP4HINDXpQk0Ro46SRapi8Gp5Av0KFPjFJXV4a6MmmK8+U0w86mU0mmFGW4bmlpmdu70EP6iUeeeuTZCdktVd1m4B48fPQFZJRNLExGCetLKVO3a614A9jTZHhokE4/fJK62fBUKkHdPPUeOHCAdu/ayW1DHM0YFUtlUVwoFlUnqIcXMAaixKjOdNvAtPciJkYxqUUtrqGWyRfUtmisSaKDB0ZpbGyC9t97Dz0weoAePHaUujhi3dkuid7gwAAV4RD0Wv3u9DrVDOfZrz3vkyK3acfVpc5hOxXhAdl+1zBN3pihe0d2U093TgYKQ1TlnQ3TdI2pVCrR7EcfydpTzjFZcu4UFZbnOSbyECAt1yzkjWA7ZBDhvtmuLEVcdoXbI9ggeHo4PK3BjS7xWJynYpEW+BgQoLLDjWEjlMtlduyrz9fFCSYYKe5w+nEcA9BbpjdmgKrSxnMd33dqkuc6MGKDEATLMjrsNWxD7LbaELGIbK3oKMIxopzvwCkIC3QKddoZGF+rMR8Tx4ub2CEWLU4BnhqUA2R1AOOUscfYxMvBbA6IFjSZ7SMcRljYCEpUbFvBBqXI2/WANiQMxtAgmLZmHpT5ys4KYQe81g2dAJ0DlcJZcZjb0I68YUO1IQDtIeuqWb4ZxECdAdDhsrV9DMBOUaymohc4bVQzwow09faMQJ2pt/Nh2PCh2YxQgVCmQ6O3oHBABlPYVDbTfCPj26Hz05fRzim40wnkIiOOcVQ5bZZpyh/HKaAjx5SSVkXGMNW6QZQ0DDdgr2ojy+QbgNzOZNsQx9LW88GGURA2LcKmUhCkf6sIT0aoLKkO6BgA13UpgWcRI9Lb001Pf+73pWAAI4wjjbxSbOoBOx8I08x86ihR+SC0yGJ2mQUt7JBjyIZD9+3fT4+ePqNKzz73h3Xc5eYXFqUC2MjgDR0KAfrJz0AWPFmwU90WOI9JqgyXr8ESTR4aT63JKF5VrFMsFqM4vwGX+JoWwRXfOAUld2q0D5CBmwzfOIQgMsApH0St/PESwDilIIJUVmCcUsAdcW1tTfIR40w7h7w2Tto6btqFhwlDLMPMDuGDkGWFx2bBXmcm50gUFUwUDVSTX4jI5VQ2j843AUsIS8AdELd2RB13QtwB4RiOZ3NP9IitkCCaQIoI8CPlNi5XpV7lDSy/xFu5IYm9sAV58zsCp+yO+V3c+QLf7iUXAij3HIchKkdZfuIPbumV9kgEAvm9xYRvGBDuglDPN3mbIlwfQZ5TEYuUk0KhQFNTU8ZeiqdS/J77lbQHQf24DnZOodcbgTq/7/jZ0oljQejLpum/3n5LFquhRDxByVSaoskUv7ewkBOqjfNY2CD8MBeNgthx3p5dHgiqlen73/9HOn/+vJZO9MjpR2lg54gMWBDMLzImisiozaUma803HMYJNUUUhQFT0PBAeS6Xoyyop4+pn7qEeinT3cPUTRluS/PjM53JUirTRcl0lilDCY7M1bFxmp6epm7mM6iwcd70CACa6hx5rDv5VMfzW/2nBkI2DwMzOmGjZMM4BRoYGJDHXZmf+sXVJSot3aby8hync5zOU2l5gYpMpdVFKq4sUBk8K4tMy3RjYoxePPcDmYp9fX0SZQFsaGeGjhIgTspfhrYd/xxCMgbG2I2ATcDw4qPM8vIyrayu0OrqqhC+Z6i1xLqwtnQenwtQhimr6yv0k5/9mKrVmkzZubk5SYFOBpeVqxTr0Bxyus4XsU4cMs7go4/aDf1U1emuXbvo4dMP06mHT9GJkw/R8RPH6djxY3T02G/Q4SOfpN0ju+mtn79FY+MTvN5cXn86UmbkgTB7dLVaWwzWR+YDlO4ja8wYuxFsHtMHTtj5Wq3q1dkwZWnj/27N3qI3Xv83Wri5RLOzszQzMy3tBm0jppskSEyyIfJA85yQeiB4L22CMdxbg7qu1SkVMXxik894ATxIy6UyXbr4AS/+OvUMZamvt182HxtKVcNQO5Ae0CzTWhF0wkY42pFjxiEYJanOG2PFoaqKlOQ1NfMYvsnrU7S+vibmpNJx2Q23bNnii5KMfqPog2eHThv9oI+d4+q2jhnDjIAG/MbaRnsU0A5a4Hvp7Y9uswyHqpUq3Ryfo4lr4zQ+Pu7XZTkpaCp6fJJyPymACUdAiGOtjjQDAlojYRPWmjEUBB7sntOTU558l43v5k0jzYc6Dmsb4leIGYiQkC6zcDnL1NVK1YZGDMrtqQGYHZUbRantVLNz6+vrND83r2h+nrfyeXrn/Ls0ydemmZkZqcO1qjeTobvuusv3W5kC6/ar98EMjkDbKQe1bCKcf+bLX2cn/RJsp2wBcAwLE3Up16GfvflTuSZt27aNFhcX1ZVJrktRuV4lEnHOcx1H49r1Cbpw4X1vyiCimIqwwujAWsNBj6fH6TO/SVu379FnXgg809RUlBiyrHKZz1DVoAAFRomdN5BtlSFO88iYKOE5Dmdw78OUirkxNjJHVRaf7h+kvJOgydk5SvJ1Kp3toe6BYRocHKKBoUHaNrRNaPv2HXL2yS8wYfCbo9yBKWyPmpiKAeZ5jsGJ5siFAk5zYqYi7nnY1bZu3coGD1P/rhHK7bmfarl+KvHZ+Yvzb1O9lKfkwA51GCczlL7vIcoMjVA0lRVLcKW6cuWKRMygxZyG7QLYK3bjnijTSTUikakopRAEOYy6BMfjp6/9K08/TDdzY1fk8rXJjfKtnjeFm1PX6Pr1a9IPzxtEWPRHolSrlCBN2pqBqTiwY0+Ld832oOwHpmIlfPOwgc42GVSrFSFZL3rTwIjLDxGcn5+9yWfWddWHCdGFUZiuUbYNaxCbBijFt/x0Oi2EH95z1k3fRrNTzYOOwGHDD41YcyfbIaC/O8vbNXjUgxLiIryhmAckHpT4CRaXYUw/OI01iH9BAEA2BgCpJxt5dt5F1Hkm/OrWHMR6MDbZqQftEFDmmeA5ZpjsjkCgEANfnX/kANMqolCwUw2IkKK0caQly4UAXsC20/ALLN5Kqdj5VAwEhHuEsp/EIdYo/SXPMKmG8HhtiDgXQnhtQKbPKs2rzlr1s7DAjlAQTPtmgX6b7RtmQ+gAt4DX8eihIy+EKb5TZwAYYfe3jQqSa/iD+Exdkjeb+/btpSd++7fkn1N8+uQJ2trXI/8CYXrmpvAgcjV+uPKDNiL/9sIWaBBU1ymMkZuRAV70M9Tc/9AnDtC994zIl97enl569fU3ZAedujEj7T28k+4duYdzdYr09/fTqRMn2k3nULQz2m4zBhsYg22ynTE8zSjxOw7PnXU+zHHE4J80Xbh4iQ4duF/ak1xOJvESr5O7Z9/9L1z65WV5HG4WtrGbgd3P5G2nDJrlLy4uUSwVp7v33s2v7lt0/MhhGuI76fTkJN2YX6DVtVV5meO8jOBhVuJL4/8VTATaAe3NRgf1aa7L87n48yvv0J+++te0FivS6uIyzfzF31Dx9X/XM079xVvQefpLz+VZS/APZAGwjbIV23VBo9+MMJ5O+ooD4FEq9RaPKhz+dVpbX7ka4TfMS7pa+ORKIm8T3UuAMieW0UY5l5jfrBUug1W3tQU+4AdA9bV1K7v8gCKdCpCqOp6GBarUvuWOHjj4BlszzPK6mVb5yrPMTEts7LJbKcSj5QLfh0r8corMcNelYiHfxe+dCN8F83ypvcHyFvlqtF4uFdPlUqleLBQiruvMV8plF8RlGFuqVipuKZ+ncrFUjcWiY9VqrVyvVda5cZaP0wke7Vt8n7pZLhT7+SI9vb6+QrFo/Bds8TTrmGKLp1lWorC+nmYbyolY/H/4QjrJgZgqVypz+fz60PLiQtGl+mdf+dG5V73BeOKJz0fquS6i1XksPLmlD187/6W7nZXj85Xawfd3fOrkjZmbsatXxi47rrszHo3/4JFHTn6hwhfa1YXVRLVS+97Fixd2FAr5h3K53KntO3a9wPvco+NjV+q7R0bOJZLJp8b4WcKb1H/u3nvvyVwykYgmko4TdwovnztXe+qppxw8XZbXyu8ePvrQd146+0+HJsZ/+S1tnuBTn370jyvl2ldW1pYLF98/P6qraXh4597+/q2Xl1eWVuq16vDk5MSa978vvvzyOXU7tfDnJ3c6p7Zt7X73o4XCn73ySnXPnj01fhkvpLPZnRyd4osvvmj65M+c+cwQT4MjHMVaIZ+/zedjSX3HqPEAr/9OJpPBB9u1RCzx4dtvvoZ+eempcfbsWZlXj33myf/48IML3850pV+TBgvJRGq6Gq0uVmqlq7pKwC+MWaYf8nY/y6ezvFTb3hU/u2/b8b192adzCfWhJRPJ0OjogdrWwUHKdGV9A8HT6yWmv4pFo9/g1TaeTKdu4OtuNBb7Njv133LrJ+cvE4nYd3SXQFRLhT8pl8tP8hn1R7rKQyzq/n0iHjnWm+t6RlcJZmdnli9deu/zlz+89M3LVy/LS7V1XVqYee7kd/ti1ef+ZWLmzd/78eTpBw8+6GS39J5fLRQ+uTA//73LH7z/Zc3agscff/KrsXj80IUL7/3d/n377oklkifGx6+evfDeO29rlv8/zD1/6rulb56o/+R3d7+B8oNHjjiPPfb4OydOnanvH33gb4Xp1xRtp2I0nqjXIm49keyaR7laZqrIPl3jbX4Fdb+eIPpf0BVqpTZQ8C4AAAAASUVORK5CYII='
+}
diff --git a/src/inverters/inverter-factory.ts b/src/inverters/inverter-factory.ts
index 17ddd5be..2482fc99 100644
--- a/src/inverters/inverter-factory.ts
+++ b/src/inverters/inverter-factory.ts
@@ -15,6 +15,7 @@ import {Sunsynk} from './brands/sunsynk';
import {CesBatteryBox} from './brands/ces-battery-box';
import {SolarEdge} from './brands/solar-edge';
import {Deye} from './brands/deye';
+import {Azzurro} from './brands/azzurro';
export class InverterFactory {
@@ -29,6 +30,8 @@ export class InverterFactory {
private static createInstance(brand: InverterModel): InverterSettingsDto {
switch (brand) {
+ case InverterModel.Azzurro:
+ return new Azzurro();
case InverterModel.Solis:
return new Solis();
case InverterModel.Lux:
diff --git a/src/types.ts b/src/types.ts
index 1f668ca4..4261f59e 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -9,6 +9,7 @@ declare global {
export enum InverterModel {
+ Azzurro = 'azzurro',
Sunsynk = 'sunsynk',
Lux = 'lux',
GoodweGridMode = 'goodwe_gridmode',