diff --git a/dist/sunsynk-power-flow-card.js b/dist/sunsynk-power-flow-card.js index 6e58754b..9b84845b 100644 --- a/dist/sunsynk-power-flow-card.js +++ b/dist/sunsynk-power-flow-card.js @@ -15,7 +15,7 @@ const n=globalThis,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ -const L=globalThis,E=L.trustedTypes,C=E?E.createPolicy("lit-html",{createHTML:e=>e}):void 0,M="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,k="?"+N,S=`<${k}>`,D=document,O=()=>D.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,I=Array.isArray,G="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,z=/>/g,R=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,H=/"/g,W=/^(?:script|style|textarea|title)$/i,U=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Q=U(1),Z=U(2),F=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),X=new WeakMap,J=D.createTreeWalker(D,129);function K(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(t):t}const q=(e,t)=>{const n=e.length-1,o=[];let a,i=2===t?"":"",r=V;for(let t=0;t"===l[0]?(r=a??V,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?R:'"'===l[3]?H:j):r===H||r===j?r=R:r===B||r===z?r=V:(r=R,a=void 0);const u=r===R&&e[t+1].startsWith("/>")?" ":"";i+=r===V?n+S:d>=0?(o.push(s),n.slice(0,d)+M+n.slice(d)+N+u):n+N+(-2===d?t:u)}return[K(e,i+(e[n]||"")+(2===t?"":"")),o]};class ${constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let a=0,i=0;const r=e.length-1,s=this.parts,[l,d]=q(e,t);if(this.el=$.createElement(l,n),J.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=J.nextNode())&&s.length0){o.textContent=E?E.emptyScript:"";for(let n=0;nI(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!==Y&&T(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=$.createElement(K(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new te(o,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){I(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const a of e)o===t.length?t.push(n=new ne(this.S(O()),this.S(O()),this,this.options)):n=t[o],n._$AI(a),o++;o2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Y}_$AI(e,t=this,n,o){const a=this.strings;let i=!1;if(void 0===a)e=ee(this,e,t,0),i=!T(e)||e!==this._$AH&&e!==F,i&&(this._$AH=e);else{const o=e;let r,s;for(e=a[0],r=0;re}):void 0,M="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,k="?"+N,S=`<${k}>`,D=document,O=()=>D.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,I=Array.isArray,B="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,z=/>/g,R=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),j=/'/g,H=/"/g,W=/^(?:script|style|textarea|title)$/i,U=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Q=U(1),Z=U(2),F=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),X=new WeakMap,J=D.createTreeWalker(D,129);function K(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(t):t}const q=(e,t)=>{const n=e.length-1,o=[];let a,i=2===t?"":"",r=G;for(let t=0;t"===l[0]?(r=a??G,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?R:'"'===l[3]?H:j):r===H||r===j?r=R:r===V||r===z?r=G:(r=R,a=void 0);const u=r===R&&e[t+1].startsWith("/>")?" ":"";i+=r===G?n+S:d>=0?(o.push(s),n.slice(0,d)+M+n.slice(d)+N+u):n+N+(-2===d?t:u)}return[K(e,i+(e[n]||"")+(2===t?"":"")),o]};class ${constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let a=0,i=0;const r=e.length-1,s=this.parts,[l,d]=q(e,t);if(this.el=$.createElement(l,n),J.currentNode=this.el.content,2===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=J.nextNode())&&s.length0){o.textContent=L?L.emptyScript:"";for(let n=0;nI(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!==Y&&T(this._$AH)?this._$AA.nextSibling.data=e:this.T(D.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=$.createElement(K(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new te(o,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){I(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const a of e)o===t.length?t.push(n=new ne(this.S(O()),this.S(O()),this,this.options)):n=t[o],n._$AI(a),o++;o2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Y}_$AI(e,t=this,n,o){const a=this.strings;let i=!1;if(void 0===a)e=ee(this,e,t,0),i=!T(e)||e!==this._$AH&&e!==F,i&&(this._$AH=e);else{const o=e;let r,s;for(e=a[0],r=0;r(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"! * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */;function fe(e,t){return(n,o,a)=>{const i=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?n:a??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ge(n,o,{get(){let n=e.call(this);return void 0===n&&(n=i(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return ge(n,o,{get(){return i(this)}})}}function me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var we;const ve=s(we||(we=me(["\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 xe,_e,Ae;!function(e){e.Azzurro="azzurro",e.CESBatteryBox="ces-battery-box",e.Deye="deye",e.E3dc="e3dc",e.FoxESS="foxess",e.Fronius="fronius",e.Goodwe="goodwe",e.GoodweGridMode="goodwe_gridmode",e.Growatt="growatt",e.Huawei="huawei",e.Lux="lux",e.MPPSolar="mppsolar",e.PowMr="powmr",e.SMASolar="smasolar",e.Solax="solax",e.SolarEdge="solaredge",e.Sofar="sofar",e.Solis="solis",e.Sunsynk="sunsynk",e.Victron="victron"}(xe||(xe={})),function(e){e.Compact="compact",e.Lite="lite",e.Full="full"}(_e||(_e={})),function(e){e.Energy="energy",e.Power="power",e.No="no"}(Ae||(Ae={}));var be={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"Køretid til",battery_floating:"BATTERI SVÆVER",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG FORBRUG",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF EL",daily_grid_sell:"DAGLIG SALG AF EL",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RESTERENDE ENERGI",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:"Batteri Prioriteret",priority_load:"Forbrug Prioriteret",nonessential_name:"Uvæsentlig",aux_name:"Sekundær",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Aflader",charging:"Oplader",waiting:"Venter",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:"Slukket",offline:"Offline",running:"Kører",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit"},Pe={battery:{bat:"Ingen batteriattributter defineret",energy:"Angiv venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Angiv 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:"Angiv venligst day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen sol attributter defineret",mppts:"Angiv venligst attributten og værdien for sol-MPPT'er; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Angiv venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Angiv venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er ikke indstillet. Angiv venligst inverter_power_175-attribut og enheds-ID så kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Angiv venligst grid_power_169-attribut og enheds-ID så kortet kan beregne denne værdi.",missing_entity:"Angiv venligst attributten og enheds-ID'en"},Le={title:"Titel",title_colour:"Titel Farve",title_size:"Titel Størrelse (px)",card_height:"Card Højde (px)",card_width:"Card Bredde (px)",decimal_places:"Antal viste Decimaler",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Kortstil",large_font:"Stor Font",modern:"Moderne",show_solar:"Vis Solar",show_battery:"Vis Battery",show_grid:"Vis Grid",show_aux:"Vis Aux",dynamic_line_width:"Dynamisk Linje Bredde",max_line_width:"Max Linje Bredde",min_line_width:"Min Linje Bredde",solar:"Solar",mppts:"MPPTs",show_daily:"Vis Daglig",show_daily_aux:"Vis Daglig Aux",animation_speed:"Anim. Hast.",max_power:"Max Effekt",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Batteri",load1_name:"Load 1 Navn",load2_name:"Load 2 Navn",load3_name:"Load 3 Navn",load4_name:"Load 4 Navn",load1_icon:"Load 1 Ikon",load2_icon:"Load 2 Ikon",load3_icon:"Load 3 Ikon",load4_icon:"Load 4 Ikon",aux_load1_name:"Aux Load 1 Navn",aux_load2_name:"Aux Load 2 Navn",aux_load1_icon:"Aux Load 1 Ikon",aux_load2_icon:"Aux Load 2 Ikon",show_daily_buy:"Vis Daglig Køb",show_daily_sell:"Vis Daglig Salg",no_grid_colour:"Ingen Grid Farve",grid_off_colour:"Grid Off Farve",grid_name:"Grid Navn",colour:"Farve",charge_colour:"Ladnings Farve",linear_gradient:"Lineær Gradient",animate:"Animate Linear Gradient",aux_colour:"Farve",aux_dynamic_colour:"Aux Dynamisk Farve",aux_off_colour:"Off Farve",panel_mode:"Panel Mode",invert_grid:"Inverter Værdier",invert_load:"Inverter Værdier",shutdown_soc:"Nedluknings SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energi",auto_scale:"Auto Skalering",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Farve",dynamic_icon:"Dynamisk Ikon",invert_power:"Inverter Effekt",show_absolute:"Vis Absolut",hide_soc:"Skjul SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Vis Absolut",show_nonessential:"Vis ikke Essentiel",aux_name:"Aux Navn",aux_daily_name:"Daglig Aux Navn",aux_type:"Aux Ikon",aux_loads:"Aux belastning",essential_name:"Essentielt Navn",additional_loads:"Ekstra Belastninger",export_colour:"Eksport Farve",nonessential_name:"Ikke Essentielt Navn",nonessential_icon:"Ikke Essentielt Ikon",energy_cost_decimals:"Energiudgift Decimaler",show_remaining_energy:"Vis resterende Energi",cat_title:{title:"Titel Options",general:"Generelle Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Batteri Options",grid:"Grid Options",load:"Belastnings Options",entities:"Entities",aux:"Aux Options",energy:"Energi Entities",bat:"Batteri Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Belastnings Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Ee={common:be,errors:Pe,config:Le},Ce={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",limit:"Limit"},Me={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"},Ne={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energy",aux_dynamic_colour:"Aux Dynamic Colour",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},ke={common:Ce,errors:Me,config:Ne},Se={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},De={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"},Oe={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Te={common:Se,errors:De,config:Oe},Ie={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",limit:"Limit"},Ge={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"},Ve={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Be={common:Ie,errors:Ge,config:Ve},ze={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",limit:"Limit"},Re={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"},je={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},He={common:ze,errors:Re,config:je},We={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",limit:"Limit"},Ue={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é"},Qe={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Ze={common:We,errors:Ue,config:Qe},Fe={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",limit:"Limit"},Ye={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Je={common:Fe,errors:Ye,config:Xe},Ke={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:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ИТОГО СОЛНЕЧНАЯ ЭНЕРГИЯ",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:"Остановка",shutdown:"Отключение",offline:"Оффлайн",running:"Работает",sleepmode:"Спящий Режим",grid_name:"Сеть",limit:"Лимит"},qe={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_colour:"Цвет Заголовка",title_size:"Размер Заголовка (px)",card_height:"Высота Карточки (px)",card_width:"Ширина Карточки (px)",decimal_places:"Десятичные Знаки",decimal_places_energy:"Десятичные Знаки (Ежедневная Енергия)",model:"Модель",autarky:"Autarky",cardstyle:"Стиль Карточки",large_font:"Увеличенный Шрифт",modern:"Современный Инвертор",show_solar:"Показать PV",show_battery:"Показать Батарею",show_grid:"Показать Сеть",show_aux:"Показать Вспомогательный",dynamic_line_width:"Динамические линии",max_line_width:"Макс. Ширина Линий",min_line_width:"Мин. Ширина Линий",solar:"Solar",mppts:"MPPTs",show_daily:"Ежедневный Показатель",show_daily_aux:"Ежедневный показатель вспомогательный",animation_speed:"Скорость Анимации",max_power:"Макс. Мощность",pv1_max_power:"PV1 Макс. Мощность",pv2_max_power:"PV2 Макс. Мощность",pv3_max_power:"PV3 Макс. Мощность",pv4_max_power:"PV4 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",display_mode:"Режим Отображения",efficiency:"Режим Эффективности",battery:"Батарея",load1_name:"Нагрузка 1 Название",load2_name:"Нагрузка 2 Название",load3_name:"Нагрузка 3 Название",load4_name:"Нагрузка 4 Название",load1_icon:"Нагрузка 1 Иконка",load2_icon:"Нагрузка 2 Иконка",load3_icon:"Нагрузка 3 Иконка",load4_icon:"Нагрузка 4 Иконка",aux_load1_name:"Вспом. Нагр. 1 Название",aux_load2_name:"Вспом. Нагр. 2 Название",aux_load1_icon:"Вспом. Нагр. 2 Иконка",aux_load2_icon:"Вспом. Нагр. 2 Иконка",aux_dynamic_colour:"Вспом. Нагр. Динамический Цвет",show_daily_buy:"Показать Ежедневную Покупку",show_daily_sell:"Показать Ежедневную Продажу",no_grid_colour:"Нет Сети Цвет",grid_off_colour:"Сеть Отключена Цвет",grid_name:"Название Сети",colour:"Цвет",charge_colour:"Цвет Зарядки",linear_gradient:"Градиент",animate:"Анимированный Градиент",aux_colour:"Цвет",aux_off_colour:"Цвет выключенного",panel_mode:"Panel Mode",invert_grid:"Инвертировать показания",invert_load:"Инвертировать показания",shutdown_soc:"% Отключения",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Энергия",auto_scale:"Масштабирование",three_phase:"Три Фазы",dynamic_colour:"Динамический Цвет",dynamic_icon:"Динамическая Иконка",invert_power:"Инвертировать Мощность",show_absolute:"Убрать Отрицательные",hide_soc:"Скрыть SOC",invert_aux:"Инвертировать Вспомогательную",show_absolute_aux:"Убрать Отрицательные",show_nonessential:"Показать Не Обязательную Нагрузку",aux_name:"Название вспомогательного",aux_daily_name:"Название вспомогательного ежедневного",aux_type:"Тип вспомогательного",aux_loads:"Нагрузка вспомогательного",essential_name:"Название Обязательной Нагрузки",additional_loads:"Количество Нагрузок",export_colour:"Цвет Экспорта",nonessential_name:"Название Не Обязательной Нагрузки",nonessential_icon:"Иконка Не Обязательной Нагрузки",energy_cost_decimals:"Разрядность Стоимости Энергии",show_remaining_energy:"Показать Остаток Энергии",cat_title:{title:"Параметры Заголовка",general:"Общие Настройки",inverter:"Настройки Инвертора",solar:"Настройки Солнечного Поля",battery:"Настройки Батареи",grid:"Настройки Сети",load:"Настройки Нагрузки",entities:"Сущности",aux:"Настройки Всп. Нагрузки",energy:"Сущности Энергии",bat:"Сущности Батареи",sol:"Сущности Солнечного Поля",inv:"Сущности Инвертора",ld:"Сущности Нагрузки",gri:"Сущности Сети",sensor:"Optional Sensors"}},et={common:Ke,errors:qe,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",limit:"Omezení"},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"},ot={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",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",aux_dynamic_colour:"Aux Dynamic Colour",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},at={common:tt,errors:nt,config:ot},it={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",limit:"Limit"},rt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},lt={common:it,errors:rt,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",limit:"Limit"},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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",aux_dynamic_colour:"Aux 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_daily_name:"Daily 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",sensor:"Optional Sensors"}},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",limit:"Limit"},yt={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"},gt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},ft={common:pt,errors:yt,config:gt},mt={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",limit:"Limit"},wt={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"},vt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",efficiency:"Efficiency Mode",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",aux_dynamic_colour:"Aux Dynamic Colour",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",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily Aux Name",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",sensor:"Optional Sensors"}},xt={common:mt,errors:wt,config:vt};const _t={hass:null},At={da:Object.freeze({__proto__:null,common:be,config:Le,default:Ee,errors:Pe}),de:Object.freeze({__proto__:null,common:Ce,config:Ne,default:ke,errors:Me}),en:Object.freeze({__proto__:null,common:Se,config:Oe,default:Te,errors:De}),es:Object.freeze({__proto__:null,common:Ie,config:Ve,default:Be,errors:Ge}),et:Object.freeze({__proto__:null,common:ze,config:je,default:He,errors:Re}),fr:Object.freeze({__proto__:null,common:We,config:Qe,default:Ze,errors:Ue}),nl:Object.freeze({__proto__:null,common:Fe,config:Xe,default:Je,errors:Ye}),ru:Object.freeze({__proto__:null,common:Ke,config:$e,default:et,errors:qe}),cs:Object.freeze({__proto__:null,common:tt,config:ot,default:at,errors:nt}),it:Object.freeze({__proto__:null,common:it,config:st,default:lt,errors:rt}),ca:Object.freeze({__proto__:null,common:dt,config:ut,default:ht,errors:ct}),sk:Object.freeze({__proto__:null,common:pt,config:gt,default:ft,errors:yt}),pt_BR:Object.freeze({__proto__:null,common:mt,config:vt,default:xt,errors:wt})};function bt(e,t="",n=""){const o=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),a="".concat(_t.hass?.selectedLanguage||_t.hass?.locale?.language||_t.hass?.language||o);let i;try{i=e.split(".").reduce(((e,t)=>e[t]),At[a])}catch(t){i=e.split(".").reduce(((e,t)=>e[t]),At.en)}return void 0===i&&(i=e.split(".").reduce(((e,t)=>e[t]),At.en)),""!==t&&""!==n&&(i=i.replace(t,n)),i}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,decimal_places_energy:1,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:xe.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,animate:!0},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:bt("common.pv1_name"),pv2_name:bt("common.pv2_name"),pv3_name:bt("common.pv3_name"),pv4_name:bt("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0,efficiency:3},load:{colour:"#5fb6ad",dynamic_colour:!0,dynamic_icon:!0,aux_dynamic_colour:!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:bt("common.aux_name"),aux_daily_name:bt("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:bt("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:bt("common.load1_name"),load2_name:bt("common.load2_name"),auto_scale:!0},grid:{colour:"#5490c2",grid_name:bt("common.grid_name"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:bt("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,3,4],Et=[0,1,2,3],Ct=[!0,!1],Mt=[!0,!1],Nt=[0,1,2],kt=["off","0","off-grid","off grid","offgrid"],St=["on","1","on-grid","on grid","ongrid"];var Dt,Ot,Tt,It,Gt;!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"}(Dt||(Dt={})),function(e){e.WATT="W",e.KILO_WATT="kW",e.MEGA_WATT="MW",e.BTU_PER_HOUR="BTU/h"}(Ot||(Ot={})),function(e){e.GIGA_JOULE="GJ",e.KILO_WATT_HOUR="kWh",e.MEGA_JOULE="MJ",e.MEGA_WATT_HOUR="MWh",e.WATT_HOUR="Wh"}(Tt||(Tt={})),function(e){e.MILLIAMPERE="mA",e.AMPERE="A"}(It||(It={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(Gt||(Gt={}));const Vt={[Tt.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:Tt.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:Tt.KILO_WATT_HOUR,decimal:1}],[Tt.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:Tt.MEGA_WATT_HOUR,decimal:2}],[Tt.MEGA_WATT_HOUR]:[],[Tt.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:Tt.MEGA_JOULE}],[Tt.MEGA_JOULE]:[],[Ot.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:Ot.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:Ot.KILO_WATT}],[Ot.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:Ot.MEGA_WATT}],[Ot.MEGA_WATT]:[],[Ot.BTU_PER_HOUR]:[]};var Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object AsyncFunction]",r="[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*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[r]=y["[object Map]"]=y["[object Number]"]=y[d]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var g="object"==typeof Bt&&Bt&&Bt.Object===Object&&Bt,f="object"==typeof self&&self&&self.Object===Object&&self,m=g||f||Function("return this")(),w=t&&!t.nodeType&&t,v=w&&e&&!e.nodeType&&e,x=v&&v.exports===w,_=x&&g.process,A=function(){try{var e=v&&v.require&&v.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(e){}}(),b=A&&A.isTypedArray;var P,L,E,C=Array.prototype,M=Function.prototype,N=Object.prototype,k=m["__core-js_shared__"],S=M.toString,D=N.hasOwnProperty,O=(P=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",T=N.toString,I=S.call(Object),G=RegExp("^"+S.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=x?m.Buffer:void 0,B=m.Symbol,z=m.Uint8Array,R=V?V.allocUnsafe:void 0,j=(L=Object.getPrototypeOf,E=Object,function(e){return L(E(e))}),H=Object.create,W=N.propertyIsEnumerable,U=C.splice,Q=B?B.toStringTag:void 0,Z=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=V?V.isBuffer:void 0,Y=Math.max,X=Date.now,J=we(m,"Map"),K=we(Object,"create"),q=function(){function e(){}return function(t){if(!ke(t))return{};if(H)return H(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__,o=re(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(J||ee),string:new $}},te.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return me(this,e).get(e)},te.prototype.has=function(e){return me(this,e).has(e)},te.prototype.set=function(e,t){var n=me(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?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 o=n.__data__;if(!J||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(o)}return n.set(e,t),this.size=n.size,this};var le,de=function(e,t,n){for(var o=-1,a=Object(e),i=n(e),r=i.length;r--;){var s=i[le?r:++o];if(!1===t(a[s],s,a))break}return e};function ce(e){return null==e?void 0===e?u:l:Q&&Q in Object(e)?function(e){var t=D.call(e,Q),n=e[Q];try{e[Q]=void 0;var o=!0}catch(e){}var a=T.call(e);o&&(t?e[Q]=n:delete e[Q]);return a}(e):function(e){return T.call(e)}(e)}function ue(e){return Se(e)&&ce(e)==a}function he(e){return!(!ke(e)||function(e){return!!O&&O in e}(e))&&(Me(e)?G:h).test(function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!ke(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=xe(e),n=[];for(var o in e)("constructor"!=o||!t&&D.call(e,o))&&n.push(o);return n}function ye(e,t,n,o,a){e!==t&&de(t,(function(i,r){if(a||(a=new ne),ke(i))!function(e,t,n,o,a,i,r){var s=_e(e,n),l=_e(t,n),c=r.get(l);if(c)return void ae(e,n,c);var u=i?i(s,l,n+"",e,t,r):void 0,h=void 0===u;if(h){var p=Le(l),y=!p&&Ce(l),g=!p&&!y&&De(l);u=l,p||y||g?Le(s)?u=s:Se(x=s)&&Ee(x)?u=function(e,t){var n=-1,o=e.length;t||(t=Array(o));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function be(e,t){return e===t||e!=e&&t!=t}var Pe=ue(function(){return arguments}())?ue:function(e){return Se(e)&&D.call(e,"callee")&&!W.call(e,"callee")},Le=Array.isArray;function Ee(e){return null!=e&&Ne(e.length)&&!Me(e)}var Ce=F||function(){return!1};function Me(e){if(!ke(e))return!1;var t=ce(e);return t==r||t==s||t==i||t==c}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var De=b?function(e){return function(t){return e(t)}}(b):function(e){return Se(e)&&Ne(e.length)&&!!y[ce(e)]};function Oe(e){return Ee(e)?oe(e,!0):pe(e)}var Te,Ie=(Te=function(e,t,n){ye(e,t,n)},ge((function(e,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(a=Te.length>3&&"function"==typeof a?(o--,a):void 0,i&&function(e,t,n){if(!ke(n))return!1;var o=typeof t;return!!("number"==o?Ee(n)&&ve(t,n.length):"string"==o&&t in n)&&be(n[t],e)}(t[0],t[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n{const i=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?n:a??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ge(n,o,{get(){let n=e.call(this);return void 0===n&&(n=i(this),(null!==n||this.hasUpdated)&&t.call(this,n)),n}})}return ge(n,o,{get(){return i(this)}})}}function me(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var we;const ve=s(we||(we=me(["\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 xe,_e,Ae;!function(e){e.Azzurro="azzurro",e.CESBatteryBox="ces-battery-box",e.Deye="deye",e.E3dc="e3dc",e.FoxESS="foxess",e.Fronius="fronius",e.Goodwe="goodwe",e.GoodweGridMode="goodwe_gridmode",e.Growatt="growatt",e.Huawei="huawei",e.Lux="lux",e.MPPSolar="mppsolar",e.PowMr="powmr",e.SMASolar="smasolar",e.Solax="solax",e.SolarEdge="solaredge",e.Sofar="sofar",e.Solis="solis",e.Sunsynk="sunsynk",e.Victron="victron"}(xe||(xe={})),function(e){e.Compact="compact",e.Lite="lite",e.Full="full"}(_e||(_e={})),function(e){e.Energy="energy",e.Power="power",e.No="no"}(Ae||(Ae={}));var be={description:"Et Home Assistant-kort til at emulere Sunsynk-strømflowet, som vises på inverter-skærmen",version:"Version",runtime_to:"Køretid til",battery_floating:"BATTERI SVÆVER",charge:"OPLADNING",to:"TIL",daily_load:"DAGLIG FORBRUG",daily_aux:"DAGLIG AUX",daily_grid_buy:"DAGLIG KØB AF EL",daily_grid_sell:"DAGLIG SALG AF EL",daily_solar:"DAGLIG SOLAR",daily_solar_left:"DAGLIG SOLAR / RESTERENDE ENERGI",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:"Batteri Prioriteret",priority_load:"Forbrug Prioriteret",nonessential_name:"Uvæsentlig",aux_name:"Sekundær",pv1_name:"PV1",pv2_name:"PV2",pv3_name:"PV3",pv4_name:"PV4",essential:"Væsentlig",autarky:"Autarky",discharging:"Aflader",charging:"Oplader",waiting:"Venter",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:"Slukket",offline:"Offline",running:"Kører",sleepmode:"Sleep Mode",grid_name:"Grid",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Pe={battery:{bat:"Ingen batteriattributter defineret",energy:"Angiv venligst batterienergiattribut og værdi i Wh, f.eks. 5,32 Batterienergi: 5320",shutdown_soc:"Angiv 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:"Angiv venligst day_battery_charge_70 og day_battery_discharge_71 samt enheds-ID'er"},solar:{sol:"Ingen sol attributter defineret",mppts:"Angiv venligst attributten og værdien for sol-MPPT'er; 1,2,3 eller 4, f.eks. mppts: 2",show_daily:"Angiv venligst day_pv_energy_108-attributten og enheds-ID'en"},grid:{show_daily:"Angiv venligst day_grid_import_76 og day_grid_export_77-attributterne samt enheds-ID'er"},essential_power:"essential_power-attributten er ikke indstillet. Angiv venligst inverter_power_175-attribut og enheds-ID så kortet kan beregne denne værdi.",nonessential_power:"nonessential_power-attributten er indstillet til ingen. Angiv venligst grid_power_169-attribut og enheds-ID så kortet kan beregne denne værdi.",missing_entity:"Angiv venligst attributten og enheds-ID'en"},Ee={title:"Titel",title_colour:"Titel Farve",title_size:"Titel Størrelse (px)",card_height:"Card Højde (px)",card_width:"Card Bredde (px)",decimal_places:"Antal viste Decimaler",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Kortstil",large_font:"Stor Font",modern:"Moderne",show_solar:"Vis Solar",show_battery:"Vis Battery",show_grid:"Vis Grid",show_aux:"Vis Aux",dynamic_line_width:"Dynamisk Linje Bredde",max_line_width:"Max Linje Bredde",min_line_width:"Min Linje Bredde",solar:"Solar",mppts:"MPPTs",show_daily:"Vis Daglig",show_daily_aux:"Vis Daglig Aux",animation_speed:"Anim. Hast.",max_power:"Max Effekt",pv1_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Navn",pv2_name:"PV2 Navn",pv3_name:"PV3 Navn",pv4_name:"PV4 Navn",display_mode:"Display Mode",efficiency:"Efficiency Mode",battery:"Batteri",load1_name:"Load 1 Navn",load2_name:"Load 2 Navn",load3_name:"Load 3 Navn",load4_name:"Load 4 Navn",load1_icon:"Load 1 Ikon",load2_icon:"Load 2 Ikon",load3_icon:"Load 3 Ikon",load4_icon:"Load 4 Ikon",aux_load1_name:"Aux Load 1 Navn",aux_load2_name:"Aux Load 2 Navn",aux_load1_icon:"Aux Load 1 Ikon",aux_load2_icon:"Aux Load 2 Ikon",show_daily_buy:"Vis Daglig Køb",show_daily_sell:"Vis Daglig Salg",no_grid_colour:"Ingen Grid Farve",grid_off_colour:"Grid Off Farve",grid_name:"Grid Navn",colour:"Farve",charge_colour:"Ladnings Farve",linear_gradient:"Lineær Gradient",animate:"Animate Linear Gradient",aux_colour:"Farve",aux_dynamic_colour:"Aux Dynamisk Farve",aux_off_colour:"Off Farve",panel_mode:"Panel Mode",invert_grid:"Inverter Værdier",invert_load:"Inverter Værdier",shutdown_soc:"Nedluknings SOC",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energi",auto_scale:"Auto Skalering",three_phase:"Tre Faser",dynamic_colour:"Dynamisk Farve",dynamic_icon:"Dynamisk Ikon",invert_power:"Inverter Effekt",show_absolute:"Vis Absolut",hide_soc:"Skjul SOC",invert_aux:"Inverter Aux",show_absolute_aux:"Vis Absolut",show_nonessential:"Vis ikke Essentiel",aux_name:"Aux Navn",aux_daily_name:"Daglig Aux Navn",aux_type:"Aux Ikon",aux_loads:"Aux belastning",essential_name:"Essentielt Navn",additional_loads:"Ekstra Belastninger",export_colour:"Eksport Farve",nonessential_name:"Ikke Essentielt Navn",nonessential_icon:"Ikke Essentielt Ikon",energy_cost_decimals:"Energiudgift Decimaler",show_remaining_energy:"Vis resterende Energi",cat_title:{title:"Titel Options",general:"Generelle Options",inverter:"Inverter Options",solar:"Solar Options",battery:"Batteri Options",grid:"Grid Options",load:"Belastnings Options",entities:"Entities",aux:"Aux Options",energy:"Energi Entities",bat:"Batteri Entities",sol:"Solar Entities",inv:"Inverter Entities",ld:"Belastnings Entities",gri:"Grid Entities",sensor:"Optional Sensors"}},Le={common:be,errors:Pe,config:Ee},Ce={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Me={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"},Ne={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energy",aux_dynamic_colour:"Aux Dynamic Colour",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},ke={common:Ce,errors:Me,config:Ne},Se={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},De={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"},Oe={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Te={common:Se,errors:De,config:Oe},Ie={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Be={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"},Ge={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Ve={common:Ie,errors:Be,config:Ge},ze={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Re={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"},je={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},He={common:ze,errors:Re,config:je},We={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ue={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é"},Qe={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Ze={common:We,errors:Ue,config:Qe},Fe={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},Ye={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},Je={common:Fe,errors:Ye,config:Xe},Ke={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:"СОЛНЕЧНАЯ ЭНЕРГИЯ / ИТОГО СОЛНЕЧНАЯ ЭНЕРГИЯ",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:"Остановка",shutdown:"Отключение",offline:"Оффлайн",running:"Работает",sleepmode:"Спящий Режим",grid_name:"Сеть",limit:"Лимит",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},qe={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_colour:"Цвет Заголовка",title_size:"Размер Заголовка (px)",card_height:"Высота Карточки (px)",card_width:"Ширина Карточки (px)",decimal_places:"Десятичные Знаки",decimal_places_energy:"Десятичные Знаки (Ежедневная Енергия)",model:"Модель",autarky:"Autarky",cardstyle:"Стиль Карточки",large_font:"Увеличенный Шрифт",modern:"Современный Инвертор",show_solar:"Показать PV",show_battery:"Показать Батарею",show_grid:"Показать Сеть",show_aux:"Показать Вспомогательный",dynamic_line_width:"Динамические линии",max_line_width:"Макс. Ширина Линий",min_line_width:"Мин. Ширина Линий",solar:"Solar",mppts:"MPPTs",show_daily:"Ежедневный Показатель",show_daily_aux:"Ежедневный показатель вспомогательный",animation_speed:"Скорость Анимации",max_power:"Макс. Мощность",pv1_max_power:"PV1 Макс. Мощность",pv2_max_power:"PV2 Макс. Мощность",pv3_max_power:"PV3 Макс. Мощность",pv4_max_power:"PV4 Макс. Мощность",pv1_name:"PV1 Название",pv2_name:"PV2 Название",pv3_name:"PV3 Название",pv4_name:"PV4 Название",display_mode:"Режим Отображения",efficiency:"Режим Эффективности",battery:"Батарея",load1_name:"Нагрузка 1 Название",load2_name:"Нагрузка 2 Название",load3_name:"Нагрузка 3 Название",load4_name:"Нагрузка 4 Название",load1_icon:"Нагрузка 1 Иконка",load2_icon:"Нагрузка 2 Иконка",load3_icon:"Нагрузка 3 Иконка",load4_icon:"Нагрузка 4 Иконка",aux_load1_name:"Вспом. Нагр. 1 Название",aux_load2_name:"Вспом. Нагр. 2 Название",aux_load1_icon:"Вспом. Нагр. 2 Иконка",aux_load2_icon:"Вспом. Нагр. 2 Иконка",aux_dynamic_colour:"Вспом. Нагр. Динамический Цвет",show_daily_buy:"Показать Ежедневную Покупку",show_daily_sell:"Показать Ежедневную Продажу",no_grid_colour:"Нет Сети Цвет",grid_off_colour:"Сеть Отключена Цвет",grid_name:"Название Сети",colour:"Цвет",charge_colour:"Цвет Зарядки",linear_gradient:"Градиент",animate:"Анимированный Градиент",aux_colour:"Цвет",aux_off_colour:"Цвет выключенного",panel_mode:"Panel Mode",invert_grid:"Инвертировать показания",invert_load:"Инвертировать показания",shutdown_soc:"% Отключения",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Энергия",auto_scale:"Масштабирование",three_phase:"Три Фазы",dynamic_colour:"Динамический Цвет",dynamic_icon:"Динамическая Иконка",invert_power:"Инвертировать Мощность",show_absolute:"Убрать Отрицательные",hide_soc:"Скрыть SOC",invert_aux:"Инвертировать Вспомогательную",show_absolute_aux:"Убрать Отрицательные",show_nonessential:"Показать Не Обязательную Нагрузку",aux_name:"Название вспомогательного",aux_daily_name:"Название вспомогательного ежедневного",aux_type:"Тип вспомогательного",aux_loads:"Нагрузка вспомогательного",essential_name:"Название Обязательной Нагрузки",additional_loads:"Количество Нагрузок",export_colour:"Цвет Экспорта",nonessential_name:"Название Не Обязательной Нагрузки",nonessential_icon:"Иконка Не Обязательной Нагрузки",energy_cost_decimals:"Разрядность Стоимости Энергии",show_remaining_energy:"Показать Остаток Энергии",cat_title:{title:"Параметры Заголовка",general:"Общие Настройки",inverter:"Настройки Инвертора",solar:"Настройки Солнечного Поля",battery:"Настройки Батареи",grid:"Настройки Сети",load:"Настройки Нагрузки",entities:"Сущности",aux:"Настройки Всп. Нагрузки",energy:"Сущности Энергии",bat:"Сущности Батареи",sol:"Сущности Солнечного Поля",inv:"Сущности Инвертора",ld:"Сущности Нагрузки",gri:"Сущности Сети",sensor:"Optional Sensors"}},et={common:Ke,errors:qe,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",limit:"Omezení",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},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"},ot={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",decimal_places_energy:"Decimal Places (Daily Energy)",model:"Model",autarky:"Autarky",cardstyle:"Card Style",large_font:"Large Font",aux_dynamic_colour:"Aux Dynamic Colour",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},at={common:tt,errors:nt,config:ot},it={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:"Autoconsumo",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:"Autosuff.",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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},rt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},lt={common:it,errors:rt,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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux 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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",energy:"Energy",auto_scale:"Auto Scale",three_phase:"Three Phase",dynamic_colour:"Dynamic Colour",aux_dynamic_colour:"Aux 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_daily_name:"Daily 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",sensor:"Optional Sensors"}},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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},yt={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"},gt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PV1 Name",pv2_name:"PV2 Name",pv3_name:"PV3 Name",pv4_name:"PV4 Name",display_mode:"Display Mode",efficiency:"Efficiency 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:"Aux Load 1 Name",aux_load2_name:"Aux Load 2 Name",aux_load1_icon:"Aux Load 1 Icon",aux_load2_icon:"Aux Load 2 Icon",aux_dynamic_colour:"Aux Dynamic Colour",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",animate:"Animate 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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily 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",sensor:"Optional Sensors"}},ft={common:pt,errors:yt,config:gt},mt={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",limit:"Limit",off:"Off",lowpower:"Low Power",bulk:"Bulk",absorption:"Absorption",float:"Float",storage:"Storage",equalize:"Equalize",passthru:"Passthru",inverting:"Inverting",powerassist:"Power Assist",powersupply:"Power Supply",sustain:"Sustain",externalcontrol:"External Control"},wt={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"},vt={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",decimal_places_energy:"Decimal Places (Daily Energy)",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_max_power:"PV1 Max Power",pv2_max_power:"PV2 Max Power",pv3_max_power:"PV3 Max Power",pv4_max_power:"PV4 Max Power",pv1_name:"PFV1 Name",pv2_name:"PFV2 Name",pv3_name:"PFV3 Name",pv4_name:"PFV4 Name",display_mode:"Mode de Exibição",efficiency:"Efficiency Mode",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",aux_dynamic_colour:"Aux Dynamic Colour",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",linear_gradient:"Linear Gradient",animate:"Animate Linear Gradient",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",shutdown_soc_offgrid:"Shutdown SOC (Off Grid)",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_daily_name:"Daily Aux Name",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",sensor:"Optional Sensors"}},xt={common:mt,errors:wt,config:vt};const _t={hass:null},At={da:Object.freeze({__proto__:null,common:be,config:Ee,default:Le,errors:Pe}),de:Object.freeze({__proto__:null,common:Ce,config:Ne,default:ke,errors:Me}),en:Object.freeze({__proto__:null,common:Se,config:Oe,default:Te,errors:De}),es:Object.freeze({__proto__:null,common:Ie,config:Ge,default:Ve,errors:Be}),et:Object.freeze({__proto__:null,common:ze,config:je,default:He,errors:Re}),fr:Object.freeze({__proto__:null,common:We,config:Qe,default:Ze,errors:Ue}),nl:Object.freeze({__proto__:null,common:Fe,config:Xe,default:Je,errors:Ye}),ru:Object.freeze({__proto__:null,common:Ke,config:$e,default:et,errors:qe}),cs:Object.freeze({__proto__:null,common:tt,config:ot,default:at,errors:nt}),it:Object.freeze({__proto__:null,common:it,config:st,default:lt,errors:rt}),ca:Object.freeze({__proto__:null,common:dt,config:ut,default:ht,errors:ct}),sk:Object.freeze({__proto__:null,common:pt,config:gt,default:ft,errors:yt}),pt_BR:Object.freeze({__proto__:null,common:mt,config:vt,default:xt,errors:wt})};function bt(e,t="",n=""){const o=(localStorage.getItem("selectedLanguage")||"en").replace(/['"]+/g,"").replace("-","_"),a="".concat(_t.hass?.selectedLanguage||_t.hass?.locale?.language||_t.hass?.language||o);let i;try{i=e.split(".").reduce(((e,t)=>e[t]),At[a])}catch(t){i=e.split(".").reduce(((e,t)=>e[t]),At.en)}return void 0===i&&(i=e.split(".").reduce(((e,t)=>e[t]),At.en)),""!==t&&""!==n&&(i=i.replace(t,n)),i}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,decimal_places_energy:1,dynamic_line_width:!0,max_line_width:4,min_line_width:1,inverter:{modern:!0,colour:"grey",autarky:"power",model:xe.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,animate:!0},solar:{colour:"orange",show_daily:!1,mppts:2,animation_speed:9,max_power:8e3,pv1_name:bt("common.pv1_name"),pv2_name:bt("common.pv2_name"),pv3_name:bt("common.pv3_name"),pv4_name:bt("common.pv4_name"),auto_scale:!0,display_mode:1,dynamic_colour:!0,efficiency:3},load:{colour:"#5fb6ad",dynamic_colour:!0,dynamic_icon:!0,aux_dynamic_colour:!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:bt("common.aux_name"),aux_daily_name:bt("common.daily_aux"),aux_type:"default",additional_loads:0,aux_loads:0,aux_load1_name:"",aux_load2_name:"",essential_name:bt("common.essential"),load1_icon:"default",load2_icon:"default",load1_name:bt("common.load1_name"),load2_name:bt("common.load2_name"),auto_scale:!0},grid:{colour:"#5490c2",grid_name:bt("common.grid_name"),show_daily_buy:!1,show_daily_sell:!1,show_nonessential:!0,nonessential_icon:"default",nonessential_name:bt("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 Et=[0,1,2,3,4],Lt=[0,1,2,3],Ct=[!0,!1],Mt=[!0,!1],Nt=[0,1,2],kt=["off","0","off-grid","off grid","offgrid"],St=["on","1","on-grid","on grid","ongrid"];var Dt,Ot,Tt,It,Bt;!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"}(Dt||(Dt={})),function(e){e.WATT="W",e.KILO_WATT="kW",e.MEGA_WATT="MW",e.BTU_PER_HOUR="BTU/h"}(Ot||(Ot={})),function(e){e.GIGA_JOULE="GJ",e.KILO_WATT_HOUR="kWh",e.MEGA_JOULE="MJ",e.MEGA_WATT_HOUR="MWh",e.WATT_HOUR="Wh"}(Tt||(Tt={})),function(e){e.MILLIAMPERE="mA",e.AMPERE="A"}(It||(It={})),function(e){e.MILLIVOLT="mV",e.VOLT="V"}(Bt||(Bt={}));const Gt={[Tt.WATT_HOUR]:[{threshold:1e6,divisor:1e6,targetUnit:Tt.MEGA_WATT_HOUR},{threshold:1e3,divisor:1e3,targetUnit:Tt.KILO_WATT_HOUR,decimal:1}],[Tt.KILO_WATT_HOUR]:[{threshold:1e3,divisor:1e3,targetUnit:Tt.MEGA_WATT_HOUR,decimal:2}],[Tt.MEGA_WATT_HOUR]:[],[Tt.GIGA_JOULE]:[{threshold:1e3,divisor:1e3,targetUnit:Tt.MEGA_JOULE}],[Tt.MEGA_JOULE]:[],[Ot.WATT]:[{threshold:1e6,divisor:1e6,targetUnit:Ot.MEGA_WATT},{threshold:1e3,divisor:1e3,targetUnit:Ot.KILO_WATT}],[Ot.KILO_WATT]:[{threshold:1e3,divisor:1e3,targetUnit:Ot.MEGA_WATT}],[Ot.MEGA_WATT]:[],[Ot.BTU_PER_HOUR]:[]};var Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object AsyncFunction]",r="[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*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[a]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[r]=y["[object Map]"]=y["[object Number]"]=y[d]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var g="object"==typeof Vt&&Vt&&Vt.Object===Object&&Vt,f="object"==typeof self&&self&&self.Object===Object&&self,m=g||f||Function("return this")(),w=t&&!t.nodeType&&t,v=w&&e&&!e.nodeType&&e,x=v&&v.exports===w,_=x&&g.process,A=function(){try{var e=v&&v.require&&v.require("util").types;return e||_&&_.binding&&_.binding("util")}catch(e){}}(),b=A&&A.isTypedArray;var P,E,L,C=Array.prototype,M=Function.prototype,N=Object.prototype,k=m["__core-js_shared__"],S=M.toString,D=N.hasOwnProperty,O=(P=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",T=N.toString,I=S.call(Object),B=RegExp("^"+S.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=x?m.Buffer:void 0,V=m.Symbol,z=m.Uint8Array,R=G?G.allocUnsafe:void 0,j=(E=Object.getPrototypeOf,L=Object,function(e){return E(L(e))}),H=Object.create,W=N.propertyIsEnumerable,U=C.splice,Q=V?V.toStringTag:void 0,Z=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),F=G?G.isBuffer:void 0,Y=Math.max,X=Date.now,J=we(m,"Map"),K=we(Object,"create"),q=function(){function e(){}return function(t){if(!ke(t))return{};if(H)return H(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__,o=re(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(J||ee),string:new $}},te.prototype.delete=function(e){var t=me(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return me(this,e).get(e)},te.prototype.has=function(e){return me(this,e).has(e)},te.prototype.set=function(e,t){var n=me(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?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 o=n.__data__;if(!J||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(o)}return n.set(e,t),this.size=n.size,this};var le,de=function(e,t,n){for(var o=-1,a=Object(e),i=n(e),r=i.length;r--;){var s=i[le?r:++o];if(!1===t(a[s],s,a))break}return e};function ce(e){return null==e?void 0===e?u:l:Q&&Q in Object(e)?function(e){var t=D.call(e,Q),n=e[Q];try{e[Q]=void 0;var o=!0}catch(e){}var a=T.call(e);o&&(t?e[Q]=n:delete e[Q]);return a}(e):function(e){return T.call(e)}(e)}function ue(e){return Se(e)&&ce(e)==a}function he(e){return!(!ke(e)||function(e){return!!O&&O in e}(e))&&(Me(e)?B:h).test(function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!ke(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=xe(e),n=[];for(var o in e)("constructor"!=o||!t&&D.call(e,o))&&n.push(o);return n}function ye(e,t,n,o,a){e!==t&&de(t,(function(i,r){if(a||(a=new ne),ke(i))!function(e,t,n,o,a,i,r){var s=_e(e,n),l=_e(t,n),c=r.get(l);if(c)return void ae(e,n,c);var u=i?i(s,l,n+"",e,t,r):void 0,h=void 0===u;if(h){var p=Ee(l),y=!p&&Ce(l),g=!p&&!y&&De(l);u=l,p||y||g?Ee(s)?u=s:Se(x=s)&&Le(x)?u=function(e,t){var n=-1,o=e.length;t||(t=Array(o));for(;++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function be(e,t){return e===t||e!=e&&t!=t}var Pe=ue(function(){return arguments}())?ue:function(e){return Se(e)&&D.call(e,"callee")&&!W.call(e,"callee")},Ee=Array.isArray;function Le(e){return null!=e&&Ne(e.length)&&!Me(e)}var Ce=F||function(){return!1};function Me(e){if(!ke(e))return!1;var t=ce(e);return t==r||t==s||t==i||t==c}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var De=b?function(e){return function(t){return e(t)}}(b):function(e){return Se(e)&&Ne(e.length)&&!!y[ce(e)]};function Oe(e){return Le(e)?oe(e,!0):pe(e)}var Te,Ie=(Te=function(e,t,n){ye(e,t,n)},ge((function(e,t){var n=-1,o=t.length,a=o>1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(a=Te.length>3&&"function"==typeof a?(o--,a):void 0,i&&function(e,t,n){if(!ke(n))return!1;var o=typeof t;return!!("number"==o?Le(n)&&ve(t,n.length):"string"==o&&t in n)&&be(n[t],e)}(t[0],t[1],i)&&(a=o<3?void 0:a,o=1),e=Object(e);++n @@ -56,10 +56,10 @@ const ge=(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,o="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",r=16,s=32,l=64,d=128,c=256,u=1/0,h=9007199254740991,p=NaN,y=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",r],["flip",512],["partial",s],["partialRight",l],["rearg",c]],f="[object Arguments]",m="[object Array]",w="[object Boolean]",v="[object Date]",x="[object Error]",_="[object Function]",A="[object GeneratorFunction]",b="[object Map]",P="[object Number]",L="[object Object]",E="[object Promise]",C="[object RegExp]",M="[object Set]",N="[object String]",k="[object Symbol]",S="[object WeakMap]",D="[object ArrayBuffer]",O="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",G="[object Int8Array]",V="[object Int16Array]",B="[object Int32Array]",z="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,Y=RegExp(Z.source),X=RegExp(F.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ae=/^\s+/,ie=/\s/,re=/\{(?:\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*$/,ye=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\u2700-\\u27bf",Le="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Me="\\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",Ne="['’]",ke="["+Ae+"]",Se="["+Me+"]",De="["+be+"]",Oe="\\d+",Te="["+Pe+"]",Ie="["+Le+"]",Ge="[^"+Ae+Me+Oe+Pe+Le+Ee+"]",Ve="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ae+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Ee+"]",He="\\u200d",We="(?:"+Ie+"|"+Ge+")",Ue="(?:"+je+"|"+Ge+")",Qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+De+"|"+Ve+")"+"?",Ye="["+Ce+"]?",Xe=Ye+Fe+("(?:"+He+"(?:"+[Be,ze,Re].join("|")+")"+Ye+Fe+")*"),Je="(?:"+[Te,ze,Re].join("|")+")"+Xe,Ke="(?:"+[Be+De+"?",De,ze,Re,ke].join("|")+")",qe=RegExp(Ne,"g"),$e=RegExp(De,"g"),et=RegExp(Ve+"(?="+Ve+")|"+Ke+Xe,"g"),tt=RegExp([je+"?"+Ie+"+"+Qe+"(?="+[Se,je,"$"].join("|")+")",Ue+"+"+Ze+"(?="+[Se,je+We,"$"].join("|")+")",je+"?"+We+"+"+Qe,je+"+"+Ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Je].join("|"),"g"),nt=RegExp("["+He+Ae+be+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],it=-1,rt={};rt[T]=rt[I]=rt[G]=rt[V]=rt[B]=rt[z]=rt[R]=rt[j]=rt[H]=!0,rt[f]=rt[m]=rt[D]=rt[w]=rt[O]=rt[v]=rt[x]=rt[_]=rt[b]=rt[P]=rt[L]=rt[C]=rt[M]=rt[N]=rt[S]=!1;var st={};st[f]=st[m]=st[D]=st[O]=st[w]=st[v]=st[T]=st[I]=st[G]=st[V]=st[B]=st[b]=st[P]=st[L]=st[C]=st[M]=st[N]=st[k]=st[z]=st[R]=st[j]=st[H]=!0,st[x]=st[_]=st[S]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ct=parseInt,ut="object"==typeof Bt&&Bt&&Bt.Object===Object&&Bt,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ht||Function("return this")(),yt=t&&!t.nodeType&&t,gt=yt&&e&&!e.nodeType&&e,ft=gt&>.exports===yt,mt=ft&&ut.process,wt=function(){try{var e=gt&>.require&>.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=wt&&wt.isArrayBuffer,xt=wt&&wt.isDate,_t=wt&&wt.isMap,At=wt&&wt.isRegExp,bt=wt&&wt.isSet,Pt=wt&&wt.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 Et(e,t,n,o){for(var a=-1,i=null==e?0:e.length;++a-1}function Dt(e,t,n){for(var o=-1,a=null==e?0:e.length;++o-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Ft({"À":"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"}),an=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});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,o){n[++t]=[o,e]})),n}function dn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,o=e.length,a=0,r=[];++n",""":'"',"'":"'"});var mn=function e(t){var ie,Ae=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,at))).Array,be=t.Date,Pe=t.Error,Le=t.Function,Ee=t.Math,Ce=t.Object,Me=t.RegExp,Ne=t.String,ke=t.TypeError,Se=Ae.prototype,De=Le.prototype,Oe=Ce.prototype,Te=t["__core-js_shared__"],Ie=De.toString,Ge=Oe.hasOwnProperty,Ve=0,Be=(ie=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",ze=Oe.toString,Re=Ie.call(Ce),je=pt._,He=Me("^"+Ie.call(Ge).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ft?t.Buffer:n,Ue=t.Symbol,Qe=t.Uint8Array,Ze=We?We.allocUnsafe:n,Fe=dn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=Oe.propertyIsEnumerable,Je=Se.splice,Ke=Ue?Ue.isConcatSpreadable:n,et=Ue?Ue.iterator:n,nt=Ue?Ue.toStringTag:n,lt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=be&&be.now!==pt.Date.now&&be.now,yt=t.setTimeout!==pt.setTimeout&&t.setTimeout,gt=Ee.ceil,mt=Ee.floor,wt=Ce.getOwnPropertySymbols,Bt=We?We.isBuffer:n,zt=t.isFinite,Ft=Se.join,wn=dn(Ce.keys,Ce),vn=Ee.max,xn=Ee.min,_n=be.now,An=t.parseInt,bn=Ee.random,Pn=Se.reverse,Ln=pi(t,"DataView"),En=pi(t,"Map"),Cn=pi(t,"Promise"),Mn=pi(t,"Set"),Nn=pi(t,"WeakMap"),kn=pi(Ce,"create"),Sn=Nn&&new Nn,Dn={},On=zi(Ln),Tn=zi(En),In=zi(Cn),Gn=zi(Mn),Vn=zi(Nn),Bn=Ue?Ue.prototype:n,zn=Bn?Bn.valueOf:n,Rn=Bn?Bn.toString:n;function jn(e){if(ns(e)&&!Qr(e)&&!(e instanceof Qn)){if(e instanceof Un)return e;if(Ge.call(e,"__wrapped__"))return Ri(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function co(e,t,o,a,i,r){var s,l=1&t,d=2&t,c=4&t;if(o&&(s=i?o(e,a,i,r):o(e)),s!==n)return s;if(!ts(e))return e;var u=Qr(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ge.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Sa(e,s)}else{var h=fi(e),p=h==_||h==A;if(Xr(e))return La(e,l);if(h==L||h==f||p&&!i){if(s=d||p?{}:wi(e),!l)return d?function(e,t){return Da(e,gi(e),t)}(e,function(e,t){return e&&Da(t,Os(t),e)}(s,e)):function(e,t){return Da(e,yi(e),t)}(e,io(s,e))}else{if(!st[h])return i?e:{};s=function(e,t,n){var o=e.constructor;switch(t){case D:return Ea(e);case w:case v:return new o(+e);case O:return function(e,t){var n=t?Ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case I:case G:case V:case B:case z:case R:case j:case H:return Ca(e,n);case b:return new o;case P:case N:return new o(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new o;case k:return a=e,zn?Ce(zn.call(a)):{}}var a}(e,h,l)}}r||(r=new Jn);var y=r.get(e);if(y)return y;r.set(e,s),ss(e)?e.forEach((function(n){s.add(co(n,t,o,n,e,r))})):os(e)&&e.forEach((function(n,a){s.set(a,co(n,t,o,a,e,r))}));var g=u?n:(c?d?ri:ii:d?Os:Ds)(e);return Ct(g||e,(function(n,a){g&&(n=e[a=n]),no(s,a,co(n,t,o,a,e,r))})),s}function uo(e,t,o){var a=o.length;if(null==e)return!a;for(e=Ce(e);a--;){var i=o[a],r=t[i],s=e[i];if(s===n&&!(i in e)||!r(s))return!1}return!0}function ho(e,t,a){if("function"!=typeof e)throw new ke(o);return Di((function(){e.apply(n,a)}),t)}function po(e,t,n,o){var a=-1,i=St,r=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=Ot(t,qt(n))),o?(i=Dt,r=!1):t.length>=200&&(i=en,r=!1,t=new Xn(t));e:for(;++a-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=oo(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(En||Fn),string:new Zn}},Yn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ui(this,e).get(e)},Yn.prototype.has=function(e){return ui(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ui(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,a),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Fn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!En||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(o)}return n.set(e,t),this.size=n.size,this};var yo=Ia(Ao),go=Ia(bo,!0);function fo(e,t){var n=!0;return yo(e,(function(e,o,a){return n=!!t(e,o,a)})),n}function mo(e,t,o){for(var a=-1,i=e.length;++a0&&n(s)?t>1?vo(s,t-1,n,o,a):Tt(a,s):o||(a[a.length]=s)}return a}var xo=Ga(),_o=Ga(!0);function Ao(e,t){return e&&xo(e,t,Ds)}function bo(e,t){return e&&_o(e,t,Ds)}function Po(e,t){return kt(t,(function(t){return qr(e[t])}))}function Lo(e,t){for(var o=0,a=(t=_a(t,e)).length;null!=e&&ot}function No(e,t){return null!=e&&Ge.call(e,t)}function ko(e,t){return null!=e&&t in Ce(e)}function So(e,t,o){for(var a=o?Dt:St,i=e[0].length,r=e.length,s=r,l=Ae(r),d=1/0,c=[];s--;){var u=e[s];s&&t&&(u=Ot(u,qt(t))),d=xn(u.length,d),l[s]=!o&&(t||i>=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[o]?-1:1)}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,a=t.length,i={};++o-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Xo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==i){var i=a;xi(a)?Je.call(e,a,1):pa(e,a)}}return e}function Jo(e,t){return e+mt(bn()*(t-e+1))}function Ko(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function qo(e,t){return Oi(Mi(e,t,al),e+"")}function $o(e){return qn(js(e))}function ea(e,t){var n=js(e);return Gi(n,lo(t,0,n.length))}function ta(e,t,o,a){if(!ts(e))return e;for(var i=-1,r=(t=_a(t,e)).length,s=r-1,l=e;null!=l&&++ia?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Ae(a);++o>>1,r=e[i];null!==r&&!ds(r)&&(n?r<=t:r=200){var d=t?null:Ka(e);if(d)return un(d);r=!1,a=en,l=new Xn}else l=t?[]:s;e:for(;++o=a?e:ia(e,t,o)}var Pa=ut||function(e){return pt.clearTimeout(e)};function La(e,t){if(t)return e.slice();var n=e.length,o=Ze?Ze(n):new e.constructor(n);return e.copy(o),o}function Ea(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function Ca(e,t){var n=t?Ea(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ma(e,t){if(e!==t){var o=e!==n,a=null===e,i=e==e,r=ds(e),s=t!==n,l=null===t,d=t==t,c=ds(t);if(!l&&!c&&!r&&e>t||r&&s&&d&&!l&&!c||a&&s&&d||!o&&d||!i)return 1;if(!a&&!r&&!c&&e1?o[i-1]:n,s=i>2?o[2]:n;for(r=e.length>3&&"function"==typeof r?(i--,r):n,s&&_i(o[0],o[1],s)&&(r=i<3?n:r,i=1),t=Ce(t);++a-1?i[r?t[s]:s]:n}}function ja(e){return ai((function(t){var a=t.length,i=a,r=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new ke(o);if(r&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(i=l?i:a;++i1&&v.reverse(),h&&cl))return!1;var c=r.get(e),u=r.get(t);if(c&&u)return c==t&&u==e;var h=-1,p=!0,y=2&o?new Xn:n;for(r.set(e,t),r.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return Ct(g,(function(n){var o="_."+n[0];t&n[1]&&!St(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(o),n)))}function Ii(e){var t=0,o=0;return function(){var a=_n(),i=16-(a-o);if(o=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Gi(e,t){var o=-1,a=e.length,i=a-1;for(t=t===n?a:t;++o1?e[t-1]:n;return o="function"==typeof o?(e.pop(),o):n,rr(e,o)}));function pr(e){var t=jn(e);return t.__chain__=!0,t}function yr(e,t){return t(e)}var gr=ai((function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,i=function(t){return so(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Qn&&xi(o)?((a=a.slice(o,+o+(t?1:0))).__actions__.push({func:yr,args:[i],thisArg:n}),new Un(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var fr=Oa((function(e,t,n){Ge.call(e,n)?++e[n]:ro(e,n,1)}));var mr=Ra(Ui),wr=Ra(Qi);function vr(e,t){return(Qr(e)?Ct:yo)(e,ci(t,3))}function xr(e,t){return(Qr(e)?Mt:go)(e,ci(t,3))}var _r=Oa((function(e,t,n){Ge.call(e,n)?e[n].push(t):ro(e,n,[t])}));var Ar=qo((function(e,t,n){var o=-1,a="function"==typeof t,i=Fr(e)?Ae(e.length):[];return yo(e,(function(e){i[++o]=a?Lt(t,e,n):Do(e,t,n)})),i})),br=Oa((function(e,t,n){ro(e,n,t)}));function Pr(e,t){return(Qr(e)?Ot:jo)(e,ci(t,3))}var Lr=Oa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Er=qo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Zo(e,vo(t,1),[])})),Cr=ht||function(){return pt.Date.now()};function Mr(e,t,o){return t=o?n:t,t=e&&null==t?e.length:t,$a(e,d,n,n,n,n,t)}function Nr(e,t){var a;if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var kr=qo((function(e,t,n){var o=1;if(n.length){var a=cn(n,di(kr));o|=s}return $a(e,o,t,n,a)})),Sr=qo((function(e,t,n){var o=3;if(n.length){var a=cn(n,di(Sr));o|=s}return $a(t,o,e,n,a)}));function Dr(e,t,a){var i,r,s,l,d,c,u=0,h=!1,p=!1,y=!0;if("function"!=typeof e)throw new ke(o);function g(t){var o=i,a=r;return i=r=n,u=t,l=e.apply(a,o)}function f(e){var o=e-c;return c===n||o>=t||o<0||p&&e-u>=s}function m(){var e=Cr();if(f(e))return w(e);d=Di(m,function(e){var n=t-(e-c);return p?xn(n,s-(e-u)):n}(e))}function w(e){return d=n,y&&i?g(e):(i=r=n,l)}function v(){var e=Cr(),o=f(e);if(i=arguments,r=this,c=e,o){if(d===n)return function(e){return u=e,d=Di(m,t),h?g(e):l}(c);if(p)return Pa(d),d=Di(m,t),g(c)}return d===n&&(d=Di(m,t)),l}return t=ms(t)||0,ts(a)&&(h=!!a.leading,s=(p="maxWait"in a)?vn(ms(a.maxWait)||0,t):s,y="trailing"in a?!!a.trailing:y),v.cancel=function(){d!==n&&Pa(d),u=0,i=c=r=d=n},v.flush=function(){return d===n?l:w(Cr())},v}var Or=qo((function(e,t){return ho(e,1,t)})),Tr=qo((function(e,t,n){return ho(e,ms(t)||0,n)}));function Ir(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],i=n.cache;if(i.has(a))return i.get(a);var r=e.apply(this,o);return n.cache=i.set(a,r)||i,r};return n.cache=new(Ir.Cache||Yn),n}function Gr(e){if("function"!=typeof e)throw new ke(o);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)}}Ir.Cache=Yn;var Vr=Aa((function(e,t){var n=(t=1==t.length&&Qr(t[0])?Ot(t[0],qt(ci())):Ot(vo(t,1),qt(ci()))).length;return qo((function(o){for(var a=-1,i=xn(o.length,n);++a=t})),Ur=Oo(function(){return arguments}())?Oo:function(e){return ns(e)&&Ge.call(e,"callee")&&!Xe.call(e,"callee")},Qr=Ae.isArray,Zr=vt?qt(vt):function(e){return ns(e)&&Co(e)==D};function Fr(e){return null!=e&&es(e.length)&&!qr(e)}function Yr(e){return ns(e)&&Fr(e)}var Xr=Bt||ml,Jr=xt?qt(xt):function(e){return ns(e)&&Co(e)==v};function Kr(e){if(!ns(e))return!1;var t=Co(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function qr(e){if(!ts(e))return!1;var t=Co(e);return t==_||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $r(e){return"number"==typeof e&&e==gs(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 os=_t?qt(_t):function(e){return ns(e)&&fi(e)==b};function as(e){return"number"==typeof e||ns(e)&&Co(e)==P}function is(e){if(!ns(e)||Co(e)!=L)return!1;var t=Fe(e);if(null===t)return!0;var n=Ge.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Re}var rs=At?qt(At):function(e){return ns(e)&&Co(e)==C};var ss=bt?qt(bt):function(e){return ns(e)&&fi(e)==M};function ls(e){return"string"==typeof e||!Qr(e)&&ns(e)&&Co(e)==N}function ds(e){return"symbol"==typeof e||ns(e)&&Co(e)==k}var cs=Pt?qt(Pt):function(e){return ns(e)&&es(e.length)&&!!rt[Co(e)]};var us=Ya(Ro),hs=Ya((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Fr(e))return ls(e)?yn(e):Sa(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=fi(e);return(t==b?ln:t==M?un:js)(e)}function ys(e){return e?(e=ms(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ys(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?lo(gs(e),0,y):0}function ms(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=Kt(e);var n=ge.test(e);return n||me.test(e)?ct(e.slice(2),n?2:8):ye.test(e)?p:+e}function ws(e){return Da(e,Os(e))}function vs(e){return null==e?"":ua(e)}var xs=Ta((function(e,t){if(Li(t)||Fr(t))Da(t,Ds(t),e);else for(var n in t)Ge.call(t,n)&&no(e,n,t[n])})),_s=Ta((function(e,t){Da(t,Os(t),e)})),As=Ta((function(e,t,n,o){Da(t,Os(t),e,o)})),bs=Ta((function(e,t,n,o){Da(t,Ds(t),e,o)})),Ps=ai(so);var Ls=qo((function(e,t){e=Ce(e);var o=-1,a=t.length,i=a>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(a=1);++o1),t})),Da(e,ri(e),n),o&&(n=co(n,7,ni));for(var a=t.length;a--;)pa(n,t[a]);return n}));var Vs=ai((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return Ms(e,n)}))}(e,t)}));function Bs(e,t){if(null==e)return{};var n=Ot(ri(e),(function(e){return[e]}));return t=ci(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var zs=qa(Ds),Rs=qa(Os);function js(e){return null==e?[]:$t(e,Ds(e))}var Hs=Ba((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Ks(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ve,on).replace($e,"")}var Qs=Ba((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Ba((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fs=Va("toLowerCase");var Ys=Ba((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Ba((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Js=Ba((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Va("toUpperCase");function qs(e,t,o){return e=vs(e),(t=o?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=qo((function(e,t){try{return Lt(e,n,t)}catch(e){return Kr(e)?e:new Pe(e)}})),el=ai((function(e,t){return Ct(t,(function(t){t=Bi(t),ro(e,t,kr(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=ja(),ol=ja(!0);function al(e){return e}function il(e){return Vo("function"==typeof e?e:co(e,1))}var rl=qo((function(e,t){return function(n){return Do(n,e,t)}})),sl=qo((function(e,t){return function(n){return Do(e,n,t)}}));function ll(e,t,n){var o=Ds(t),a=Po(t,o);null!=n||ts(t)&&(a.length||!o.length)||(n=t,t=e,e=this,a=Po(t,Ds(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),r=qr(e);return Ct(a,(function(n){var o=t[n];e[n]=o,r&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Sa(this.__actions__)).push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,Tt([this.value()],arguments))})})),e}function dl(){}var cl=Qa(Ot),ul=Qa(Nt),hl=Qa(Vt);function pl(e){return Ai(e)?Zt(Bi(e)):function(e){return function(t){return Lo(t,e)}}(e)}var yl=Fa(),gl=Fa(!0);function fl(){return[]}function ml(){return!1}var wl=Ua((function(e,t){return e+t}),0),vl=Ja("ceil"),xl=Ua((function(e,t){return e/t}),1),_l=Ja("floor");var Al,bl=Ua((function(e,t){return e*t}),1),Pl=Ja("round"),Ll=Ua((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Mr,jn.assign=xs,jn.assignIn=_s,jn.assignInWith=As,jn.assignWith=bs,jn.at=Ps,jn.before=Nr,jn.bind=kr,jn.bindAll=el,jn.bindKey=Sr,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qr(e)?e:[e]},jn.chain=pr,jn.chunk=function(e,t,o){t=(o?_i(e,t,o):t===n)?1:vn(gs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,r=0,s=Ae(gt(a/t));ii?0:i+o),(a=a===n||a>i?i:gs(a))<0&&(a+=i),a=o>a?0:fs(a);o>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=ua(t))&&sn(e)?ba(yn(e),0,o):e.split(t,o):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(gs(t),0),qo((function(n){var o=n[t],a=ba(n,0,t);return o&&Tt(a,o),Lt(e,this,a)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ia(e,1,t):[]},jn.take=function(e,t,o){return e&&e.length?ia(e,0,(t=o||t===n?1:gs(t))<0?0:t):[]},jn.takeRight=function(e,t,o){var a=null==e?0:e.length;return a?ia(e,(t=a-(t=o||t===n?1:gs(t)))<0?0:t,a):[]},jn.takeRightWhile=function(e,t){return e&&e.length?ga(e,ci(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?ga(e,ci(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),Dr(e,t,{leading:a,maxWait:t,trailing:i})},jn.thru=yr,jn.toArray=ps,jn.toPairs=zs,jn.toPairsIn=Rs,jn.toPath=function(e){return Qr(e)?Ot(e,Bi):ds(e)?[e]:Sa(Vi(vs(e)))},jn.toPlainObject=ws,jn.transform=function(e,t,n){var o=Qr(e),a=o||Xr(e)||cs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=a?o?new i:[]:ts(e)&&qr(i)?Hn(Fe(e)):{}}return(a?Ct:Ao)(e,(function(e,o,a){return t(n,e,o,a)})),n},jn.unary=function(e){return Mr(e,1)},jn.union=nr,jn.unionBy=or,jn.unionWith=ar,jn.uniq=function(e){return e&&e.length?ha(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ha(e,ci(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ha(e,n,t):[]},jn.unset=function(e,t){return null==e||pa(e,t)},jn.unzip=ir,jn.unzipWith=rr,jn.update=function(e,t,n){return null==e?e:ya(e,t,xa(n))},jn.updateWith=function(e,t,o,a){return a="function"==typeof a?a:n,null==e?e:ya(e,t,xa(o),a)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:$t(e,Os(e))},jn.without=sr,jn.words=qs,jn.wrap=function(e,t){return Br(xa(t),e)},jn.xor=lr,jn.xorBy=dr,jn.xorWith=cr,jn.zip=ur,jn.zipObject=function(e,t){return wa(e||[],t||[],no)},jn.zipObjectDeep=function(e,t){return wa(e||[],t||[],ta)},jn.zipWith=hr,jn.entries=zs,jn.entriesIn=Rs,jn.extend=_s,jn.extendWith=As,ll(jn,jn),jn.add=wl,jn.attempt=$s,jn.camelCase=Hs,jn.capitalize=Ws,jn.ceil=vl,jn.clamp=function(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=(o=ms(o))==o?o:0),t!==n&&(t=(t=ms(t))==t?t:0),lo(ms(e),t,o)},jn.clone=function(e){return co(e,4)},jn.cloneDeep=function(e){return co(e,5)},jn.cloneDeepWith=function(e,t){return co(e,5,t="function"==typeof t?t:n)},jn.cloneWith=function(e,t){return co(e,4,t="function"==typeof t?t:n)},jn.conformsTo=function(e,t){return null==t||uo(e,t,Ds(t))},jn.deburr=Us,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=xl,jn.endsWith=function(e,t,o){e=vs(e),t=ua(t);var a=e.length,i=o=o===n?a:lo(gs(o),0,a);return(o-=t.length)>=0&&e.slice(o,i)==t},jn.eq=jr,jn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(F,an):e},jn.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},jn.every=function(e,t,o){var a=Qr(e)?Nt:fo;return o&&_i(e,t,o)&&(t=n),a(e,ci(t,3))},jn.find=mr,jn.findIndex=Ui,jn.findKey=function(e,t){return Rt(e,ci(t,3),Ao)},jn.findLast=wr,jn.findLastIndex=Qi,jn.findLastKey=function(e,t){return Rt(e,ci(t,3),bo)},jn.floor=_l,jn.forEach=vr,jn.forEachRight=xr,jn.forIn=function(e,t){return null==e?e:xo(e,ci(t,3),Os)},jn.forInRight=function(e,t){return null==e?e:_o(e,ci(t,3),Os)},jn.forOwn=function(e,t){return e&&Ao(e,ci(t,3))},jn.forOwnRight=function(e,t){return e&&bo(e,ci(t,3))},jn.get=Cs,jn.gt=Hr,jn.gte=Wr,jn.has=function(e,t){return null!=e&&mi(e,t,No)},jn.hasIn=Ms,jn.head=Fi,jn.identity=al,jn.includes=function(e,t,n,o){e=Fr(e)?e:js(e),n=n&&!o?gs(n):0;var a=e.length;return n<0&&(n=vn(a+n,0)),ls(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ht(e,t,n)>-1},jn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var a=null==n?0:gs(n);return a<0&&(a=vn(o+a,0)),Ht(e,t,a)},jn.inRange=function(e,t,o){return t=ys(t),o===n?(o=t,t=0):o=ys(o),function(e,t,n){return e>=xn(t,n)&&e=-9007199254740991&&e<=h},jn.isSet=ss,jn.isString=ls,jn.isSymbol=ds,jn.isTypedArray=cs,jn.isUndefined=function(e){return e===n},jn.isWeakMap=function(e){return ns(e)&&fi(e)==S},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Co(e)},jn.join=function(e,t){return null==e?"":Ft.call(e,t)},jn.kebabCase=Qs,jn.last=Ki,jn.lastIndexOf=function(e,t,o){var a=null==e?0:e.length;if(!a)return-1;var i=a;return o!==n&&(i=(i=gs(o))<0?vn(a+i,0):xn(i,a-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,i):jt(e,Ut,i,!0)},jn.lowerCase=Zs,jn.lowerFirst=Fs,jn.lt=us,jn.lte=hs,jn.max=function(e){return e&&e.length?mo(e,al,Mo):n},jn.maxBy=function(e,t){return e&&e.length?mo(e,ci(t,2),Mo):n},jn.mean=function(e){return Qt(e,al)},jn.meanBy=function(e,t){return Qt(e,ci(t,2))},jn.min=function(e){return e&&e.length?mo(e,al,Ro):n},jn.minBy=function(e,t){return e&&e.length?mo(e,ci(t,2),Ro):n},jn.stubArray=fl,jn.stubFalse=ml,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=bl,jn.nth=function(e,t){return e&&e.length?Qo(e,gs(t)):n},jn.noConflict=function(){return pt._===this&&(pt._=je),this},jn.noop=dl,jn.now=Cr,jn.pad=function(e,t,n){e=vs(e);var o=(t=gs(t))?pn(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Za(mt(a),n)+e+Za(gt(a),n)},jn.padEnd=function(e,t,n){e=vs(e);var o=(t=gs(t))?pn(e):0;return t&&ot){var a=e;e=t,t=a}if(o||e%1||t%1){var i=bn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Jo(e,t)},jn.reduce=function(e,t,n){var o=Qr(e)?It:Yt,a=arguments.length<3;return o(e,ci(t,4),n,a,yo)},jn.reduceRight=function(e,t,n){var o=Qr(e)?Gt:Yt,a=arguments.length<3;return o(e,ci(t,4),n,a,go)},jn.repeat=function(e,t,o){return t=(o?_i(e,t,o):t===n)?1:gs(t),Ko(vs(e),t)},jn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,o){var a=-1,i=(t=_a(t,e)).length;for(i||(i=1,e=n);++ah)return[];var n=y,o=xn(e,y);t=ci(t),e-=y;for(var a=Jt(o,t);++n=r)return e;var l=o-pn(a);if(l<1)return a;var d=s?ba(s,0,l).join(""):e.slice(0,l);if(i===n)return d+a;if(s&&(l+=d.length-l),rs(i)){if(e.slice(l).search(i)){var c,u=d;for(i.global||(i=Me(i.source,vs(pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var h=c.index;d=d.slice(0,h===n?l:h)}}else if(e.indexOf(ua(i),l)!=l){var p=d.lastIndexOf(i);p>-1&&(d=d.slice(0,p))}return d+a},jn.unescape=function(e){return(e=vs(e))&&Y.test(e)?e.replace(Z,fn):e},jn.uniqueId=function(e){var t=++Ve;return vs(e)+t},jn.upperCase=Js,jn.upperFirst=Ks,jn.each=vr,jn.eachRight=xr,jn.first=Fi,ll(jn,(Al={},Ao(jn,(function(e,t){Ge.call(jn.prototype,t)||(Al[t]=e)})),Al),{chain:!1}),jn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Ct(["drop","take"],(function(e,t){Qn.prototype[e]=function(o){o=o===n?1:vn(gs(o),0);var a=this.__filtered__&&!t?new Qn(this):this.clone();return a.__filtered__?a.__takeCount__=xn(o,a.__takeCount__):a.__views__.push({size:xn(o,y),type:e+(a.__dir__<0?"Right":"")}),a},Qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qn.prototype[e]=function(){return this.__filtered__?new Qn(this):this[n](1)}})),Qn.prototype.compact=function(){return this.filter(al)},Qn.prototype.find=function(e){return this.filter(e).head()},Qn.prototype.findLast=function(e){return this.reverse().find(e)},Qn.prototype.invokeMap=qo((function(e,t){return"function"==typeof e?new Qn(this):this.map((function(n){return Do(n,e,t)}))})),Qn.prototype.reject=function(e){return this.filter(Gr(ci(e)))},Qn.prototype.slice=function(e,t){e=gs(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Qn(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(o=(t=gs(t))<0?o.dropRight(-t):o.take(t-e)),o)},Qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qn.prototype.toArray=function(){return this.take(y)},Ao(Qn.prototype,(function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=jn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);i&&(jn.prototype[t]=function(){var t=this.__wrapped__,s=a?[1]:arguments,l=t instanceof Qn,d=s[0],c=l||Qr(t),u=function(e){var t=i.apply(jn,Tt([e],s));return a&&h?t[0]:t};c&&o&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,y=r&&!h,g=l&&!p;if(!r&&c){t=g?t:new Qn(this);var f=e.apply(t,s);return f.__actions__.push({func:yr,args:[u],thisArg:n}),new Un(f,h)}return y&&g?e.apply(this,s):(f=this.thru(u),y?a?f.value()[0]:f.value():f)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var a=this.value();return t.apply(Qr(a)?a:[],e)}return this[n]((function(n){return t.apply(Qr(n)?n:[],e)}))}})),Ao(Qn.prototype,(function(e,t){var n=jn[t];if(n){var o=n.name+"";Ge.call(Dn,o)||(Dn[o]=[]),Dn[o].push({name:t,func:n})}})),Dn[Ha(n,2).name]=[{name:"wrapper",func:n}],Qn.prototype.clone=function(){var e=new Qn(this.__wrapped__);return e.__actions__=Sa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Sa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Sa(this.__views__),e},Qn.prototype.reverse=function(){if(this.__filtered__){var e=new Qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qr(e),o=t<0,a=n?e.length:0,i=function(e,t,n){var o=-1,a=n.length;for(;++o=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,o=this;o instanceof Wn;){var a=Ri(o);a.__index__=0,a.__values__=n,t?i.__wrapped__=a:t=a;var i=a;o=o.__wrapped__}return i.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Qn){var t=e;return this.__actions__.length&&(t=new Qn(this)),(t=t.reverse()).__actions__.push({func:yr,args:[tr],thisArg:n}),new Un(t,this.__chain__)}return this.thru(tr)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,et&&(jn.prototype[et]=function(){return this}),jn}();gt?((gt.exports=mn)._=mn,yt._=mn):pt._=mn}).call(Bt)}(Ut,Ut.exports);var Qt,Zt,Ft,Yt=Ut.exports;let Xt=class extends( + */!function(e,t){(function(){var n,o="Expected a function",a="__lodash_hash_undefined__",i="__lodash_placeholder__",r=16,s=32,l=64,d=128,c=256,u=1/0,h=9007199254740991,p=NaN,y=4294967295,g=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",r],["flip",512],["partial",s],["partialRight",l],["rearg",c]],f="[object Arguments]",m="[object Array]",w="[object Boolean]",v="[object Date]",x="[object Error]",_="[object Function]",A="[object GeneratorFunction]",b="[object Map]",P="[object Number]",E="[object Object]",L="[object Promise]",C="[object RegExp]",M="[object Set]",N="[object String]",k="[object Symbol]",S="[object WeakMap]",D="[object ArrayBuffer]",O="[object DataView]",T="[object Float32Array]",I="[object Float64Array]",B="[object Int8Array]",G="[object Int16Array]",V="[object Int32Array]",z="[object Uint8Array]",R="[object Uint8ClampedArray]",j="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,Y=RegExp(Z.source),X=RegExp(F.source),J=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ae=/^\s+/,ie=/\s/,re=/\{(?:\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*$/,ye=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ae="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Le="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Me="\\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",Ne="['’]",ke="["+Ae+"]",Se="["+Me+"]",De="["+be+"]",Oe="\\d+",Te="["+Pe+"]",Ie="["+Ee+"]",Be="[^"+Ae+Me+Oe+Pe+Ee+Le+"]",Ge="\\ud83c[\\udffb-\\udfff]",Ve="[^"+Ae+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Le+"]",He="\\u200d",We="(?:"+Ie+"|"+Be+")",Ue="(?:"+je+"|"+Be+")",Qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+De+"|"+Ge+")"+"?",Ye="["+Ce+"]?",Xe=Ye+Fe+("(?:"+He+"(?:"+[Ve,ze,Re].join("|")+")"+Ye+Fe+")*"),Je="(?:"+[Te,ze,Re].join("|")+")"+Xe,Ke="(?:"+[Ve+De+"?",De,ze,Re,ke].join("|")+")",qe=RegExp(Ne,"g"),$e=RegExp(De,"g"),et=RegExp(Ge+"(?="+Ge+")|"+Ke+Xe,"g"),tt=RegExp([je+"?"+Ie+"+"+Qe+"(?="+[Se,je,"$"].join("|")+")",Ue+"+"+Ze+"(?="+[Se,je+We,"$"].join("|")+")",je+"?"+We+"+"+Qe,je+"+"+Ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Je].join("|"),"g"),nt=RegExp("["+He+Ae+be+Ce+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],it=-1,rt={};rt[T]=rt[I]=rt[B]=rt[G]=rt[V]=rt[z]=rt[R]=rt[j]=rt[H]=!0,rt[f]=rt[m]=rt[D]=rt[w]=rt[O]=rt[v]=rt[x]=rt[_]=rt[b]=rt[P]=rt[E]=rt[C]=rt[M]=rt[N]=rt[S]=!1;var st={};st[f]=st[m]=st[D]=st[O]=st[w]=st[v]=st[T]=st[I]=st[B]=st[G]=st[V]=st[b]=st[P]=st[E]=st[C]=st[M]=st[N]=st[k]=st[z]=st[R]=st[j]=st[H]=!0,st[x]=st[_]=st[S]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ct=parseInt,ut="object"==typeof Vt&&Vt&&Vt.Object===Object&&Vt,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ut||ht||Function("return this")(),yt=t&&!t.nodeType&&t,gt=yt&&e&&!e.nodeType&&e,ft=gt&>.exports===yt,mt=ft&&ut.process,wt=function(){try{var e=gt&>.require&>.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=wt&&wt.isArrayBuffer,xt=wt&&wt.isDate,_t=wt&&wt.isMap,At=wt&&wt.isRegExp,bt=wt&&wt.isSet,Pt=wt&&wt.isTypedArray;function Et(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 Lt(e,t,n,o){for(var a=-1,i=null==e?0:e.length;++a-1}function Dt(e,t,n){for(var o=-1,a=null==e?0:e.length;++o-1;);return n}function nn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Ft({"À":"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"}),an=Ft({"&":"&","<":"<",">":">",'"':""","'":"'"});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,o){n[++t]=[o,e]})),n}function dn(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,o=e.length,a=0,r=[];++n",""":'"',"'":"'"});var mn=function e(t){var ie,Ae=(t=null==t?pt:mn.defaults(pt.Object(),t,mn.pick(pt,at))).Array,be=t.Date,Pe=t.Error,Ee=t.Function,Le=t.Math,Ce=t.Object,Me=t.RegExp,Ne=t.String,ke=t.TypeError,Se=Ae.prototype,De=Ee.prototype,Oe=Ce.prototype,Te=t["__core-js_shared__"],Ie=De.toString,Be=Oe.hasOwnProperty,Ge=0,Ve=(ie=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",ze=Oe.toString,Re=Ie.call(Ce),je=pt._,He=Me("^"+Ie.call(Be).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=ft?t.Buffer:n,Ue=t.Symbol,Qe=t.Uint8Array,Ze=We?We.allocUnsafe:n,Fe=dn(Ce.getPrototypeOf,Ce),Ye=Ce.create,Xe=Oe.propertyIsEnumerable,Je=Se.splice,Ke=Ue?Ue.isConcatSpreadable:n,et=Ue?Ue.iterator:n,nt=Ue?Ue.toStringTag:n,lt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ht=be&&be.now!==pt.Date.now&&be.now,yt=t.setTimeout!==pt.setTimeout&&t.setTimeout,gt=Le.ceil,mt=Le.floor,wt=Ce.getOwnPropertySymbols,Vt=We?We.isBuffer:n,zt=t.isFinite,Ft=Se.join,wn=dn(Ce.keys,Ce),vn=Le.max,xn=Le.min,_n=be.now,An=t.parseInt,bn=Le.random,Pn=Se.reverse,En=pi(t,"DataView"),Ln=pi(t,"Map"),Cn=pi(t,"Promise"),Mn=pi(t,"Set"),Nn=pi(t,"WeakMap"),kn=pi(Ce,"create"),Sn=Nn&&new Nn,Dn={},On=zi(En),Tn=zi(Ln),In=zi(Cn),Bn=zi(Mn),Gn=zi(Nn),Vn=Ue?Ue.prototype:n,zn=Vn?Vn.valueOf:n,Rn=Vn?Vn.toString:n;function jn(e){if(ns(e)&&!Qr(e)&&!(e instanceof Qn)){if(e instanceof Un)return e;if(Be.call(e,"__wrapped__"))return Ri(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ye)return Ye(t);e.prototype=t;var o=new e;return e.prototype=n,o}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function co(e,t,o,a,i,r){var s,l=1&t,d=2&t,c=4&t;if(o&&(s=i?o(e,a,i,r):o(e)),s!==n)return s;if(!ts(e))return e;var u=Qr(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Sa(e,s)}else{var h=fi(e),p=h==_||h==A;if(Xr(e))return Ea(e,l);if(h==E||h==f||p&&!i){if(s=d||p?{}:wi(e),!l)return d?function(e,t){return Da(e,gi(e),t)}(e,function(e,t){return e&&Da(t,Os(t),e)}(s,e)):function(e,t){return Da(e,yi(e),t)}(e,io(s,e))}else{if(!st[h])return i?e:{};s=function(e,t,n){var o=e.constructor;switch(t){case D:return La(e);case w:case v:return new o(+e);case O:return function(e,t){var n=t?La(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case I:case B:case G:case V:case z:case R:case j:case H:return Ca(e,n);case b:return new o;case P:case N:return new o(e);case C:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new o;case k:return a=e,zn?Ce(zn.call(a)):{}}var a}(e,h,l)}}r||(r=new Jn);var y=r.get(e);if(y)return y;r.set(e,s),ss(e)?e.forEach((function(n){s.add(co(n,t,o,n,e,r))})):os(e)&&e.forEach((function(n,a){s.set(a,co(n,t,o,a,e,r))}));var g=u?n:(c?d?ri:ii:d?Os:Ds)(e);return Ct(g||e,(function(n,a){g&&(n=e[a=n]),no(s,a,co(n,t,o,a,e,r))})),s}function uo(e,t,o){var a=o.length;if(null==e)return!a;for(e=Ce(e);a--;){var i=o[a],r=t[i],s=e[i];if(s===n&&!(i in e)||!r(s))return!1}return!0}function ho(e,t,a){if("function"!=typeof e)throw new ke(o);return Di((function(){e.apply(n,a)}),t)}function po(e,t,n,o){var a=-1,i=St,r=!0,s=e.length,l=[],d=t.length;if(!s)return l;n&&(t=Ot(t,qt(n))),o?(i=Dt,r=!1):t.length>=200&&(i=en,r=!1,t=new Xn(t));e:for(;++a-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=oo(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Zn,map:new(Ln||Fn),string:new Zn}},Yn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ui(this,e).get(e)},Yn.prototype.has=function(e){return ui(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ui(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Xn.prototype.add=Xn.prototype.push=function(e){return this.__data__.set(e,a),this},Xn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Fn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!Ln||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(o)}return n.set(e,t),this.size=n.size,this};var yo=Ia(Ao),go=Ia(bo,!0);function fo(e,t){var n=!0;return yo(e,(function(e,o,a){return n=!!t(e,o,a)})),n}function mo(e,t,o){for(var a=-1,i=e.length;++a0&&n(s)?t>1?vo(s,t-1,n,o,a):Tt(a,s):o||(a[a.length]=s)}return a}var xo=Ba(),_o=Ba(!0);function Ao(e,t){return e&&xo(e,t,Ds)}function bo(e,t){return e&&_o(e,t,Ds)}function Po(e,t){return kt(t,(function(t){return qr(e[t])}))}function Eo(e,t){for(var o=0,a=(t=_a(t,e)).length;null!=e&&ot}function No(e,t){return null!=e&&Be.call(e,t)}function ko(e,t){return null!=e&&t in Ce(e)}function So(e,t,o){for(var a=o?Dt:St,i=e[0].length,r=e.length,s=r,l=Ae(r),d=1/0,c=[];s--;){var u=e[s];s&&t&&(u=Ot(u,qt(t))),d=xn(u.length,d),l[s]=!o&&(t||i>=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[o]?-1:1)}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,a=t.length,i={};++o-1;)s!==e&&Je.call(s,l,1),Je.call(e,l,1);return e}function Xo(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==i){var i=a;xi(a)?Je.call(e,a,1):pa(e,a)}}return e}function Jo(e,t){return e+mt(bn()*(t-e+1))}function Ko(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function qo(e,t){return Oi(Mi(e,t,al),e+"")}function $o(e){return qn(js(e))}function ea(e,t){var n=js(e);return Bi(n,lo(t,0,n.length))}function ta(e,t,o,a){if(!ts(e))return e;for(var i=-1,r=(t=_a(t,e)).length,s=r-1,l=e;null!=l&&++ia?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Ae(a);++o>>1,r=e[i];null!==r&&!ds(r)&&(n?r<=t:r=200){var d=t?null:Ka(e);if(d)return un(d);r=!1,a=en,l=new Xn}else l=t?[]:s;e:for(;++o=a?e:ia(e,t,o)}var Pa=ut||function(e){return pt.clearTimeout(e)};function Ea(e,t){if(t)return e.slice();var n=e.length,o=Ze?Ze(n):new e.constructor(n);return e.copy(o),o}function La(e){var t=new e.constructor(e.byteLength);return new Qe(t).set(new Qe(e)),t}function Ca(e,t){var n=t?La(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ma(e,t){if(e!==t){var o=e!==n,a=null===e,i=e==e,r=ds(e),s=t!==n,l=null===t,d=t==t,c=ds(t);if(!l&&!c&&!r&&e>t||r&&s&&d&&!l&&!c||a&&s&&d||!o&&d||!i)return 1;if(!a&&!r&&!c&&e1?o[i-1]:n,s=i>2?o[2]:n;for(r=e.length>3&&"function"==typeof r?(i--,r):n,s&&_i(o[0],o[1],s)&&(r=i<3?n:r,i=1),t=Ce(t);++a-1?i[r?t[s]:s]:n}}function ja(e){return ai((function(t){var a=t.length,i=a,r=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new ke(o);if(r&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(i=l?i:a;++i1&&v.reverse(),h&&cl))return!1;var c=r.get(e),u=r.get(t);if(c&&u)return c==t&&u==e;var h=-1,p=!0,y=2&o?new Xn:n;for(r.set(e,t),r.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return Ct(g,(function(n){var o="_."+n[0];t&n[1]&&!St(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(le):[]}(o),n)))}function Ii(e){var t=0,o=0;return function(){var a=_n(),i=16-(a-o);if(o=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Bi(e,t){var o=-1,a=e.length,i=a-1;for(t=t===n?a:t;++o1?e[t-1]:n;return o="function"==typeof o?(e.pop(),o):n,rr(e,o)}));function pr(e){var t=jn(e);return t.__chain__=!0,t}function yr(e,t){return t(e)}var gr=ai((function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,i=function(t){return so(t,e)};return!(t>1||this.__actions__.length)&&a instanceof Qn&&xi(o)?((a=a.slice(o,+o+(t?1:0))).__actions__.push({func:yr,args:[i],thisArg:n}),new Un(a,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var fr=Oa((function(e,t,n){Be.call(e,n)?++e[n]:ro(e,n,1)}));var mr=Ra(Ui),wr=Ra(Qi);function vr(e,t){return(Qr(e)?Ct:yo)(e,ci(t,3))}function xr(e,t){return(Qr(e)?Mt:go)(e,ci(t,3))}var _r=Oa((function(e,t,n){Be.call(e,n)?e[n].push(t):ro(e,n,[t])}));var Ar=qo((function(e,t,n){var o=-1,a="function"==typeof t,i=Fr(e)?Ae(e.length):[];return yo(e,(function(e){i[++o]=a?Et(t,e,n):Do(e,t,n)})),i})),br=Oa((function(e,t,n){ro(e,n,t)}));function Pr(e,t){return(Qr(e)?Ot:jo)(e,ci(t,3))}var Er=Oa((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Lr=qo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Zo(e,vo(t,1),[])})),Cr=ht||function(){return pt.Date.now()};function Mr(e,t,o){return t=o?n:t,t=e&&null==t?e.length:t,$a(e,d,n,n,n,n,t)}function Nr(e,t){var a;if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){return--e>0&&(a=t.apply(this,arguments)),e<=1&&(t=n),a}}var kr=qo((function(e,t,n){var o=1;if(n.length){var a=cn(n,di(kr));o|=s}return $a(e,o,t,n,a)})),Sr=qo((function(e,t,n){var o=3;if(n.length){var a=cn(n,di(Sr));o|=s}return $a(t,o,e,n,a)}));function Dr(e,t,a){var i,r,s,l,d,c,u=0,h=!1,p=!1,y=!0;if("function"!=typeof e)throw new ke(o);function g(t){var o=i,a=r;return i=r=n,u=t,l=e.apply(a,o)}function f(e){var o=e-c;return c===n||o>=t||o<0||p&&e-u>=s}function m(){var e=Cr();if(f(e))return w(e);d=Di(m,function(e){var n=t-(e-c);return p?xn(n,s-(e-u)):n}(e))}function w(e){return d=n,y&&i?g(e):(i=r=n,l)}function v(){var e=Cr(),o=f(e);if(i=arguments,r=this,c=e,o){if(d===n)return function(e){return u=e,d=Di(m,t),h?g(e):l}(c);if(p)return Pa(d),d=Di(m,t),g(c)}return d===n&&(d=Di(m,t)),l}return t=ms(t)||0,ts(a)&&(h=!!a.leading,s=(p="maxWait"in a)?vn(ms(a.maxWait)||0,t):s,y="trailing"in a?!!a.trailing:y),v.cancel=function(){d!==n&&Pa(d),u=0,i=c=r=d=n},v.flush=function(){return d===n?l:w(Cr())},v}var Or=qo((function(e,t){return ho(e,1,t)})),Tr=qo((function(e,t,n){return ho(e,ms(t)||0,n)}));function Ir(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(o);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],i=n.cache;if(i.has(a))return i.get(a);var r=e.apply(this,o);return n.cache=i.set(a,r)||i,r};return n.cache=new(Ir.Cache||Yn),n}function Br(e){if("function"!=typeof e)throw new ke(o);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)}}Ir.Cache=Yn;var Gr=Aa((function(e,t){var n=(t=1==t.length&&Qr(t[0])?Ot(t[0],qt(ci())):Ot(vo(t,1),qt(ci()))).length;return qo((function(o){for(var a=-1,i=xn(o.length,n);++a=t})),Ur=Oo(function(){return arguments}())?Oo:function(e){return ns(e)&&Be.call(e,"callee")&&!Xe.call(e,"callee")},Qr=Ae.isArray,Zr=vt?qt(vt):function(e){return ns(e)&&Co(e)==D};function Fr(e){return null!=e&&es(e.length)&&!qr(e)}function Yr(e){return ns(e)&&Fr(e)}var Xr=Vt||ml,Jr=xt?qt(xt):function(e){return ns(e)&&Co(e)==v};function Kr(e){if(!ns(e))return!1;var t=Co(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function qr(e){if(!ts(e))return!1;var t=Co(e);return t==_||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $r(e){return"number"==typeof e&&e==gs(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 os=_t?qt(_t):function(e){return ns(e)&&fi(e)==b};function as(e){return"number"==typeof e||ns(e)&&Co(e)==P}function is(e){if(!ns(e)||Co(e)!=E)return!1;var t=Fe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Re}var rs=At?qt(At):function(e){return ns(e)&&Co(e)==C};var ss=bt?qt(bt):function(e){return ns(e)&&fi(e)==M};function ls(e){return"string"==typeof e||!Qr(e)&&ns(e)&&Co(e)==N}function ds(e){return"symbol"==typeof e||ns(e)&&Co(e)==k}var cs=Pt?qt(Pt):function(e){return ns(e)&&es(e.length)&&!!rt[Co(e)]};var us=Ya(Ro),hs=Ya((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Fr(e))return ls(e)?yn(e):Sa(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=fi(e);return(t==b?ln:t==M?un:js)(e)}function ys(e){return e?(e=ms(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ys(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?lo(gs(e),0,y):0}function ms(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=Kt(e);var n=ge.test(e);return n||me.test(e)?ct(e.slice(2),n?2:8):ye.test(e)?p:+e}function ws(e){return Da(e,Os(e))}function vs(e){return null==e?"":ua(e)}var xs=Ta((function(e,t){if(Ei(t)||Fr(t))Da(t,Ds(t),e);else for(var n in t)Be.call(t,n)&&no(e,n,t[n])})),_s=Ta((function(e,t){Da(t,Os(t),e)})),As=Ta((function(e,t,n,o){Da(t,Os(t),e,o)})),bs=Ta((function(e,t,n,o){Da(t,Ds(t),e,o)})),Ps=ai(so);var Es=qo((function(e,t){e=Ce(e);var o=-1,a=t.length,i=a>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(a=1);++o1),t})),Da(e,ri(e),n),o&&(n=co(n,7,ni));for(var a=t.length;a--;)pa(n,t[a]);return n}));var Gs=ai((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return Ms(e,n)}))}(e,t)}));function Vs(e,t){if(null==e)return{};var n=Ot(ri(e),(function(e){return[e]}));return t=ci(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var zs=qa(Ds),Rs=qa(Os);function js(e){return null==e?[]:$t(e,Ds(e))}var Hs=Va((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Ks(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(ve,on).replace($e,"")}var Qs=Va((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zs=Va((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Fs=Ga("toLowerCase");var Ys=Va((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Va((function(e,t,n){return e+(n?" ":"")+Ks(t)}));var Js=Va((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ks=Ga("toUpperCase");function qs(e,t,o){return e=vs(e),(t=o?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var $s=qo((function(e,t){try{return Et(e,n,t)}catch(e){return Kr(e)?e:new Pe(e)}})),el=ai((function(e,t){return Ct(t,(function(t){t=Vi(t),ro(e,t,kr(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=ja(),ol=ja(!0);function al(e){return e}function il(e){return Go("function"==typeof e?e:co(e,1))}var rl=qo((function(e,t){return function(n){return Do(n,e,t)}})),sl=qo((function(e,t){return function(n){return Do(e,n,t)}}));function ll(e,t,n){var o=Ds(t),a=Po(t,o);null!=n||ts(t)&&(a.length||!o.length)||(n=t,t=e,e=this,a=Po(t,Ds(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),r=qr(e);return Ct(a,(function(n){var o=t[n];e[n]=o,r&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Sa(this.__actions__)).push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,Tt([this.value()],arguments))})})),e}function dl(){}var cl=Qa(Ot),ul=Qa(Nt),hl=Qa(Gt);function pl(e){return Ai(e)?Zt(Vi(e)):function(e){return function(t){return Eo(t,e)}}(e)}var yl=Fa(),gl=Fa(!0);function fl(){return[]}function ml(){return!1}var wl=Ua((function(e,t){return e+t}),0),vl=Ja("ceil"),xl=Ua((function(e,t){return e/t}),1),_l=Ja("floor");var Al,bl=Ua((function(e,t){return e*t}),1),Pl=Ja("round"),El=Ua((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new ke(o);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Mr,jn.assign=xs,jn.assignIn=_s,jn.assignInWith=As,jn.assignWith=bs,jn.at=Ps,jn.before=Nr,jn.bind=kr,jn.bindAll=el,jn.bindKey=Sr,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qr(e)?e:[e]},jn.chain=pr,jn.chunk=function(e,t,o){t=(o?_i(e,t,o):t===n)?1:vn(gs(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,r=0,s=Ae(gt(a/t));ii?0:i+o),(a=a===n||a>i?i:gs(a))<0&&(a+=i),a=o>a?0:fs(a);o>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!rs(t))&&!(t=ua(t))&&sn(e)?ba(yn(e),0,o):e.split(t,o):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new ke(o);return t=null==t?0:vn(gs(t),0),qo((function(n){var o=n[t],a=ba(n,0,t);return o&&Tt(a,o),Et(e,this,a)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ia(e,1,t):[]},jn.take=function(e,t,o){return e&&e.length?ia(e,0,(t=o||t===n?1:gs(t))<0?0:t):[]},jn.takeRight=function(e,t,o){var a=null==e?0:e.length;return a?ia(e,(t=a-(t=o||t===n?1:gs(t)))<0?0:t,a):[]},jn.takeRightWhile=function(e,t){return e&&e.length?ga(e,ci(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?ga(e,ci(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new ke(o);return ts(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),Dr(e,t,{leading:a,maxWait:t,trailing:i})},jn.thru=yr,jn.toArray=ps,jn.toPairs=zs,jn.toPairsIn=Rs,jn.toPath=function(e){return Qr(e)?Ot(e,Vi):ds(e)?[e]:Sa(Gi(vs(e)))},jn.toPlainObject=ws,jn.transform=function(e,t,n){var o=Qr(e),a=o||Xr(e)||cs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=a?o?new i:[]:ts(e)&&qr(i)?Hn(Fe(e)):{}}return(a?Ct:Ao)(e,(function(e,o,a){return t(n,e,o,a)})),n},jn.unary=function(e){return Mr(e,1)},jn.union=nr,jn.unionBy=or,jn.unionWith=ar,jn.uniq=function(e){return e&&e.length?ha(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ha(e,ci(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?ha(e,n,t):[]},jn.unset=function(e,t){return null==e||pa(e,t)},jn.unzip=ir,jn.unzipWith=rr,jn.update=function(e,t,n){return null==e?e:ya(e,t,xa(n))},jn.updateWith=function(e,t,o,a){return a="function"==typeof a?a:n,null==e?e:ya(e,t,xa(o),a)},jn.values=js,jn.valuesIn=function(e){return null==e?[]:$t(e,Os(e))},jn.without=sr,jn.words=qs,jn.wrap=function(e,t){return Vr(xa(t),e)},jn.xor=lr,jn.xorBy=dr,jn.xorWith=cr,jn.zip=ur,jn.zipObject=function(e,t){return wa(e||[],t||[],no)},jn.zipObjectDeep=function(e,t){return wa(e||[],t||[],ta)},jn.zipWith=hr,jn.entries=zs,jn.entriesIn=Rs,jn.extend=_s,jn.extendWith=As,ll(jn,jn),jn.add=wl,jn.attempt=$s,jn.camelCase=Hs,jn.capitalize=Ws,jn.ceil=vl,jn.clamp=function(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=(o=ms(o))==o?o:0),t!==n&&(t=(t=ms(t))==t?t:0),lo(ms(e),t,o)},jn.clone=function(e){return co(e,4)},jn.cloneDeep=function(e){return co(e,5)},jn.cloneDeepWith=function(e,t){return co(e,5,t="function"==typeof t?t:n)},jn.cloneWith=function(e,t){return co(e,4,t="function"==typeof t?t:n)},jn.conformsTo=function(e,t){return null==t||uo(e,t,Ds(t))},jn.deburr=Us,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=xl,jn.endsWith=function(e,t,o){e=vs(e),t=ua(t);var a=e.length,i=o=o===n?a:lo(gs(o),0,a);return(o-=t.length)>=0&&e.slice(o,i)==t},jn.eq=jr,jn.escape=function(e){return(e=vs(e))&&X.test(e)?e.replace(F,an):e},jn.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},jn.every=function(e,t,o){var a=Qr(e)?Nt:fo;return o&&_i(e,t,o)&&(t=n),a(e,ci(t,3))},jn.find=mr,jn.findIndex=Ui,jn.findKey=function(e,t){return Rt(e,ci(t,3),Ao)},jn.findLast=wr,jn.findLastIndex=Qi,jn.findLastKey=function(e,t){return Rt(e,ci(t,3),bo)},jn.floor=_l,jn.forEach=vr,jn.forEachRight=xr,jn.forIn=function(e,t){return null==e?e:xo(e,ci(t,3),Os)},jn.forInRight=function(e,t){return null==e?e:_o(e,ci(t,3),Os)},jn.forOwn=function(e,t){return e&&Ao(e,ci(t,3))},jn.forOwnRight=function(e,t){return e&&bo(e,ci(t,3))},jn.get=Cs,jn.gt=Hr,jn.gte=Wr,jn.has=function(e,t){return null!=e&&mi(e,t,No)},jn.hasIn=Ms,jn.head=Fi,jn.identity=al,jn.includes=function(e,t,n,o){e=Fr(e)?e:js(e),n=n&&!o?gs(n):0;var a=e.length;return n<0&&(n=vn(a+n,0)),ls(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ht(e,t,n)>-1},jn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var a=null==n?0:gs(n);return a<0&&(a=vn(o+a,0)),Ht(e,t,a)},jn.inRange=function(e,t,o){return t=ys(t),o===n?(o=t,t=0):o=ys(o),function(e,t,n){return e>=xn(t,n)&&e=-9007199254740991&&e<=h},jn.isSet=ss,jn.isString=ls,jn.isSymbol=ds,jn.isTypedArray=cs,jn.isUndefined=function(e){return e===n},jn.isWeakMap=function(e){return ns(e)&&fi(e)==S},jn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Co(e)},jn.join=function(e,t){return null==e?"":Ft.call(e,t)},jn.kebabCase=Qs,jn.last=Ki,jn.lastIndexOf=function(e,t,o){var a=null==e?0:e.length;if(!a)return-1;var i=a;return o!==n&&(i=(i=gs(o))<0?vn(a+i,0):xn(i,a-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,i):jt(e,Ut,i,!0)},jn.lowerCase=Zs,jn.lowerFirst=Fs,jn.lt=us,jn.lte=hs,jn.max=function(e){return e&&e.length?mo(e,al,Mo):n},jn.maxBy=function(e,t){return e&&e.length?mo(e,ci(t,2),Mo):n},jn.mean=function(e){return Qt(e,al)},jn.meanBy=function(e,t){return Qt(e,ci(t,2))},jn.min=function(e){return e&&e.length?mo(e,al,Ro):n},jn.minBy=function(e,t){return e&&e.length?mo(e,ci(t,2),Ro):n},jn.stubArray=fl,jn.stubFalse=ml,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=bl,jn.nth=function(e,t){return e&&e.length?Qo(e,gs(t)):n},jn.noConflict=function(){return pt._===this&&(pt._=je),this},jn.noop=dl,jn.now=Cr,jn.pad=function(e,t,n){e=vs(e);var o=(t=gs(t))?pn(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Za(mt(a),n)+e+Za(gt(a),n)},jn.padEnd=function(e,t,n){e=vs(e);var o=(t=gs(t))?pn(e):0;return t&&ot){var a=e;e=t,t=a}if(o||e%1||t%1){var i=bn();return xn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Jo(e,t)},jn.reduce=function(e,t,n){var o=Qr(e)?It:Yt,a=arguments.length<3;return o(e,ci(t,4),n,a,yo)},jn.reduceRight=function(e,t,n){var o=Qr(e)?Bt:Yt,a=arguments.length<3;return o(e,ci(t,4),n,a,go)},jn.repeat=function(e,t,o){return t=(o?_i(e,t,o):t===n)?1:gs(t),Ko(vs(e),t)},jn.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,o){var a=-1,i=(t=_a(t,e)).length;for(i||(i=1,e=n);++ah)return[];var n=y,o=xn(e,y);t=ci(t),e-=y;for(var a=Jt(o,t);++n=r)return e;var l=o-pn(a);if(l<1)return a;var d=s?ba(s,0,l).join(""):e.slice(0,l);if(i===n)return d+a;if(s&&(l+=d.length-l),rs(i)){if(e.slice(l).search(i)){var c,u=d;for(i.global||(i=Me(i.source,vs(pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var h=c.index;d=d.slice(0,h===n?l:h)}}else if(e.indexOf(ua(i),l)!=l){var p=d.lastIndexOf(i);p>-1&&(d=d.slice(0,p))}return d+a},jn.unescape=function(e){return(e=vs(e))&&Y.test(e)?e.replace(Z,fn):e},jn.uniqueId=function(e){var t=++Ge;return vs(e)+t},jn.upperCase=Js,jn.upperFirst=Ks,jn.each=vr,jn.eachRight=xr,jn.first=Fi,ll(jn,(Al={},Ao(jn,(function(e,t){Be.call(jn.prototype,t)||(Al[t]=e)})),Al),{chain:!1}),jn.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),Ct(["drop","take"],(function(e,t){Qn.prototype[e]=function(o){o=o===n?1:vn(gs(o),0);var a=this.__filtered__&&!t?new Qn(this):this.clone();return a.__filtered__?a.__takeCount__=xn(o,a.__takeCount__):a.__views__.push({size:xn(o,y),type:e+(a.__dir__<0?"Right":"")}),a},Qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;Qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),Ct(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Qn.prototype[e]=function(){return this[n](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Qn.prototype[e]=function(){return this.__filtered__?new Qn(this):this[n](1)}})),Qn.prototype.compact=function(){return this.filter(al)},Qn.prototype.find=function(e){return this.filter(e).head()},Qn.prototype.findLast=function(e){return this.reverse().find(e)},Qn.prototype.invokeMap=qo((function(e,t){return"function"==typeof e?new Qn(this):this.map((function(n){return Do(n,e,t)}))})),Qn.prototype.reject=function(e){return this.filter(Br(ci(e)))},Qn.prototype.slice=function(e,t){e=gs(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Qn(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(o=(t=gs(t))<0?o.dropRight(-t):o.take(t-e)),o)},Qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qn.prototype.toArray=function(){return this.take(y)},Ao(Qn.prototype,(function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),i=jn[a?"take"+("last"==t?"Right":""):t],r=a||/^find/.test(t);i&&(jn.prototype[t]=function(){var t=this.__wrapped__,s=a?[1]:arguments,l=t instanceof Qn,d=s[0],c=l||Qr(t),u=function(e){var t=i.apply(jn,Tt([e],s));return a&&h?t[0]:t};c&&o&&"function"==typeof d&&1!=d.length&&(l=c=!1);var h=this.__chain__,p=!!this.__actions__.length,y=r&&!h,g=l&&!p;if(!r&&c){t=g?t:new Qn(this);var f=e.apply(t,s);return f.__actions__.push({func:yr,args:[u],thisArg:n}),new Un(f,h)}return y&&g?e.apply(this,s):(f=this.thru(u),y?a?f.value()[0]:f.value():f)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var a=this.value();return t.apply(Qr(a)?a:[],e)}return this[n]((function(n){return t.apply(Qr(n)?n:[],e)}))}})),Ao(Qn.prototype,(function(e,t){var n=jn[t];if(n){var o=n.name+"";Be.call(Dn,o)||(Dn[o]=[]),Dn[o].push({name:t,func:n})}})),Dn[Ha(n,2).name]=[{name:"wrapper",func:n}],Qn.prototype.clone=function(){var e=new Qn(this.__wrapped__);return e.__actions__=Sa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Sa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Sa(this.__views__),e},Qn.prototype.reverse=function(){if(this.__filtered__){var e=new Qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qr(e),o=t<0,a=n?e.length:0,i=function(e,t,n){var o=-1,a=n.length;for(;++o=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,o=this;o instanceof Wn;){var a=Ri(o);a.__index__=0,a.__values__=n,t?i.__wrapped__=a:t=a;var i=a;o=o.__wrapped__}return i.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Qn){var t=e;return this.__actions__.length&&(t=new Qn(this)),(t=t.reverse()).__actions__.push({func:yr,args:[tr],thisArg:n}),new Un(t,this.__chain__)}return this.thru(tr)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,et&&(jn.prototype[et]=function(){return this}),jn}();gt?((gt.exports=mn)._=mn,yt._=mn):pt._=mn}).call(Vt)}(Ut,Ut.exports);var Qt,Zt,Ft,Yt=Ut.exports;let Xt=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:o}=e;n&&!t&&(e.registry=new CustomElementRegistry,Object.entries(n).forEach((([t,n])=>e.registry.define(t,n))));const a=this.renderOptions.creationScope=this.attachShadow({...o,customElements:e.registry});return l(a,this.constructor.elementStyles),a}}}(de)){constructor(){super(...arguments),this._computeLabelCallback=e=>bt("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this.hass&&this._config?Q(Zt||(Zt=me(["\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(_e).map((e=>({label:Yt.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:"decimal_places_energy",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("sensor"),schema:[{type:"grid",schema:[{name:"card_height",selector:{entity:{}}},{name:"card_width",selector:{entity:{}}}]}]}]},{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(xe).map((e=>({label:Yt.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(Ae).map((e=>({label:Yt.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:1,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:{}}},{name:"pv1_max_power",selector:{number:{}}},{name:"pv2_max_power",selector:{number:{}}},{name:"pv3_max_power",selector:{number:{}}},{name:"pv4_max_power",selector:{number:{}}},{name:"efficiency",selector:{number:{mode:"box",min:0,max:3}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"solar",type:"grid",schema:[{name:"max_power",selector:{entity:{}}},{name:"pv1_max_power",selector:{entity:{}}},{name:"pv2_max_power",selector:{entity:{}}},{name:"pv3_max_power",selector:{entity:{}}},{name:"pv4_max_power",selector:{entity:{}}}]}]}]},{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:"shutdown_soc_offgrid",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:"animate",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("sensor"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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_daily_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_dynamic_colour",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("sensor"),schema:[{name:"load",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"load4_icon",selector:{entity:{}}},{name:"aux_load1_icon",selector:{entity:{}}},{name:"aux_load2_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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("sensor"),schema:[{name:"grid",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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:Dt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Dt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Dt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Dt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Dt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Dt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Dt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Dt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Dt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Dt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Dt.BATTERY}}},{name:"day_battery_charge_70",selector:{entity:{device_class:Dt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Dt.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:Dt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Dt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Dt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Dt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Dt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1_extra",selector:{entity:{}}},{name:"non_essential_load2_extra",selector:{entity:{}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}},{name:"max_sell_power",selector:{entity:{device_class:Dt.POWER}}}]}]}]}],(e=>this._valueChanged(e))):Q(Qt||(Qt=me([""])))}_title(e){return bt("config.cat_title.".concat(e))??e}_valueChanged(e){!function(e,t,n,o){o=o||{},n=null==n?{}:n;var a=new Event(t,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});a.detail=n,e.dispatchEvent(a)}(this,"config-changed",{config:e.detail.value})}};Xt.styles=s(Ft||(Ft=me(["\n\n "]))),t([ye({attribute:!1})],Xt.prototype,"hass",void 0),t([function(e){return ye({...e,state:!0,attribute:!1})}()],Xt.prototype,"_config",void 0),Xt=t([ue("content-card-editor")],Xt);class Jt{static toNum(e,t=-1,n=!1){let o=Number(e);return Number.isNaN(o)?0:(t>=0&&(o=parseFloat(o.toFixed(t))),n&&(o*=-1),o)}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 o=Number(e);if(isNaN(o))return 0;const a=Vt[t];if(!a)return"".concat(Math.round(o)," ").concat(t);if(t===Ot.WATT&&Math.abs(o)<1e3)return"".concat(Math.round(o)," ").concat(t);if(t===Ot.KILO_WATT&&Math.abs(o)<1)return"".concat(Math.round(1e3*o)," W");if(t===Ot.MEGA_WATT&&Math.abs(o)<1)return"".concat((1e3*o).toFixed(n)," kW");for(const e of a)if(Math.abs(o)>=e.threshold){const t=(o/e.divisor).toFixed(e.decimal||n);return"".concat(t," ").concat(e.targetUnit)}return"".concat(o.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 o;if(e.stopPropagation(),"more-info"===t.action)o=new Event("hass-more-info",{composed:!0}),o.detail={entityId:n},e.target.dispatchEvent(o)}}const Kt="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",qt="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",$t="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",en="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",tn="M9.3 10.775q0 .475.163.925t.462.825q.05-.3.2-.588t.375-.487L12 10l1.475 1.475q.225.2.375.475t.2.575q.275-.375.487-.8t.213-.9q0-.475-.15-.913t-.45-.812q-.275.125-.563.2T13 9.375q-.75 0-1.375-.425t-.95-1.125q-.3.3-.55.637t-.438.713Q9.5 9.55 9.4 9.95t-.1.825ZM12 12.1l-.425.425q-.1.1-.138.2t-.037.225q0 .25.175.4t.425.15q.25 0 .425-.15t.175-.4q0-.125-.037-.225t-.138-.2L12 12.1ZM12 5v1.9q0 .425.3.713t.725.287q.275 0 .5-.162t.4-.388l.175-.25q1.025.575 1.588 1.563t.562 2.162q0 1.75-1.25 2.963T12 15q-1.75 0-2.975-1.225T7.8 10.8q0-1.925 1.225-3.425T12 5ZM6 22q-.825 0-1.413-.588T4 20V6q0-1.65 1.175-2.825T8 2h8q1.65 0 2.825 1.175T20 6v14q0 .825-.588 1.413T18 22H6Zm0-4v2h12v-2q-.75 0-1.2.5T15 19q-1.35 0-1.763-.5T12 18q-.825 0-1.238.5T9 19q-1.35 0-1.763-.5T6 18Zm3-1q.825 0 1.238-.5T12 16q1.35 0 1.8.5t1.2.5q.75 0 1.2-.5T18 16V6q0-.825-.588-1.413T16 4H8q-.825 0-1.413.588T6 6v10q1.35 0 1.763.5T9 17Z",nn="M3 7.5A4.5 4.5 0 0 1 7.5 3h17A4.5 4.5 0 0 1 29 7.5v17a4.5 4.5 0 0 1-4.5 4.5h-17A4.5 4.5 0 0 1 3 24.5v-17Zm24 0A2.5 2.5 0 0 0 24.5 5h-17A2.5 2.5 0 0 0 5 7.5V11h22V7.5Zm0 17V13H5v11.5A2.5 2.5 0 0 0 7.5 27h17a2.5 2.5 0 0 0 2.5-2.5Zm-17-15a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3ZM23.5 8a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0ZM9 23v-6h14v6H9Zm-.5-8A1.5 1.5 0 0 0 7 16.5v7A1.5 1.5 0 0 0 8.5 25h15a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-15Z",on="M6.59.66c2.34-1.81 4.88.4 5.45 3.84c.43 0 .85.12 1.23.34c.52-.6.98-1.42.8-2.34c-.42-2.15 1.99-3.89 4.28-.92c1.81 2.34-.4 4.88-3.85 5.45c0 .43-.11.86-.34 1.24c.6.51 1.42.97 2.34.79c2.13-.42 3.88 1.98.91 4.28c-2.34 1.81-4.88-.4-5.45-3.84c-.43 0-.85-.13-1.22-.35c-.52.6-.99 1.43-.81 2.35c.42 2.14-1.99 3.89-4.28.92c-1.82-2.35.4-4.89 3.85-5.45c0-.43.13-.85.35-1.23c-.6-.51-1.42-.98-2.35-.8c-2.13.42-3.88-1.98-.91-4.28M5 16h2a2 2 0 0 1 2 2v6H7v-2H5v2H3v-6a2 2 0 0 1 2-2m0 2v2h2v-2H5m7.93-2H15l-2.93 8H10l2.93-8M18 16h3v2h-3v4h3v2h-3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z",an="M3 17h4.1q-.425-.425-.787-.925T5.675 15H3v2Zm9 0q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7Q9.925 7 8.462 8.463T7 12q0 2.075 1.463 3.538T12 17Zm6.325-8H21V7h-4.1q.425.425.788.925T18.325 9ZM1 20v-8h2v1h2.075q-.05-.25-.063-.488T5 12q0-2.925 2.038-4.963T12 5h9V4h2v8h-2v-1h-2.075q.05.25.063.488T19 12q0 2.925-2.038 4.963T12 19H3v1H1Zm2-3v-2v2Zm18-8V7v2Zm-9 3Zm0 3q-.825 0-1.413-.588T10 13q0-.575.238-1.137t.912-1.613L12 9l.85 1.25q.675 1.05.913 1.613T14 13q0 .825-.588 1.413T12 15Z",rn="M35 887 l-27 -23 0 -404 0 -404 27 -23 c26 -23 28 -23 329 -23 284 0 305 1 327 19 l24 19 0 412 0 412 -24 19 c-22 18 -43 19 -327 19 -301 0 -303 0 -329 -23z m585 -157 l0 -80 -255 0 -255 0 0 80 0 80 255 0 255 0 0 -80z m-242 -229 c44 -34 40 -46 -14 -46 -60 0 -97 -38 -93 -94 5 -64 -23 -80 -35 -20 -9 44 24 113 63 134 35 18 34 15 21 50 -11 29 -14 30 58 -24z m110 -129 c4 -51 -19 -97 -59 -117 -27 -14 -30 -20 -23 -48 l6 -31 -51 43 c-29 24 -49 46 -46 49 3 4 23 5 44 3 58 -4 95 32 97 95 3 60 1 57 17 52 6 -3 13 -23 15 -46z",sn="M6 3a2 2 0 0 0-2 2v11h2v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h2V5a2 2 0 0 0-2-2H6m6 4V5h6v2h-6m0 2h6v2h-6V9M8 5v4h2l-3 6v-4H5l3-6m14 15v2H2v-2h20Z",ln="M5 20v-8H2l10-9l10 9h-3v8H5m7-14.31l-5 4.5V18h10v-7.81l-5-4.5M11.5 18v-4H9l3.5-7v4H15l-3.5 7Z",dn="M 12 3 z z M 19 20 v -8 h 3 L 12 3 L 2 12 h 3 v 8 z M 12 5.7 l 5 4.5 V 18 H 7 v -7.8 z",cn="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7z",un="m19.95 17.15l-1.5-1.5q.275-.675.413-1.337T19 13q0-2.9-2.05-4.95T12 6q-.6 0-1.275.125t-1.4.4l-1.5-1.5q.95-.5 2.012-.763T12 4q1.5 0 2.938.5t2.712 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.95 1.275 1.45 2.713T21 13q0 1.05-.263 2.087t-.787 2.063ZM13 10.2V8h-2v.2l2 2Zm6.8 12.4l-2.4-2.4q-1.2.875-2.588 1.338T12 22q-1.85 0-3.488-.713T5.65 19.35q-1.225-1.225-1.938-2.863T3 13q0-1.5.463-2.888T4.8 7.6L1.4 4.2l1.4-1.4l18.4 18.4l-1.4 1.4ZM12 20q1.05 0 2.05-.325t1.875-.925L6.2 9.025q-.6.875-.9 1.875T5 13q0 2.9 2.05 4.95T12 20ZM9 3V1h6v2H9Zm2.075 10.875Zm2.825-2.8Z",hn="m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z",pn="M 26 16 L 22 12 L 22 15 L 18 15 L 18 17 L 22 17 L 22 20 L 26 16 Z M 22.1 21.5 L 2.4 1.7 L 1.1 3 L 6.1 8 L 5.4 8 L 4.1 10.5 L 5.9 11.4 L 6.6 10 L 8.1 10 L 9.1 11 L 6.2 22 L 8.3 22 L 8.5 21.1 L 12 15.9 L 15.5 21.1 L 15.7 22 L 17.8 22 L 17 18.8 L 20.9 22.7 L 22.1 21.5 M 9.3 18.1 L 10.5 13.6 L 11.4 14.9 L 9.3 18.1 M 14.7 18.1 L 12.6 15 L 12.8 14.7 L 14.1 16 L 14.7 18.1 M 14.2 11 L 14.9 11 L 15.1 11.9 L 14.2 11 M 14.1 8 L 18.6 8 L 19.9 10.6 L 18.1 11.5 L 17.4 10 L 13.2 10 L 10.2 7 L 10.7 5 L 13.3 5 L 14.1 8 M 8.4 5.2 L 6.9 3.7 L 7.8 2 L 16.3 2 L 17.6 4.5 L 15.8 5.4 L 15 4 L 9 4 L 8.4 5.2 Z",yn="M15.95 21.175L13.1 18.35l1.425-1.4l1.425 1.4l3.525-3.525l1.425 1.4l-4.95 4.95ZM8 22q-.425 0-.713-.288T7 21V5q0-.425.288-.713T8 4h2V2h4v2h2q.425 0 .713.288T17 5v7q-.525 0-1.025.088T15 12.35V6H9v14h2.35q.2.575.488 1.075t.687.925H8Zm1-2h2.35H11h.35H9Z",gn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",fn="M11.5 19h1v-1.85l3.5-3.5V9H8v4.65l3.5 3.5V19Zm-2 2v-3L6 14.5V9q0-.825.588-1.413T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3h-5Zm2.5-7Z",mn="M10 3H8v1.88l2 2zm6 6v3.88l1.8 1.8l.2-.2V9c0-1.1-.9-2-2-2V3h-2v4h-3.88l2 2H16zM4.12 3.84L2.71 5.25L6 8.54v5.96L9.5 18v3h5v-3l.48-.48l4.47 4.47l1.41-1.41L4.12 3.84zm8.38 13.33V19h-1v-1.83L8 13.65v-3.11l5.57 5.57l-1.07 1.06z",wn="m5.39 5.45-1.78-.9L4.87 2h8.47l1.27 2.55-1.78.89L12.11 4h-6zM15.73 8H11.2l-.79-3h-2.6L7 8H2.5l-1.29 2.55 1.79.89.73-1.44H14.5l.71 1.45 1.79-.89zm-.85 14h-2.07l-.24-.9-3.46-5.2-3.47 5.2-.23.9H3.34l2.89-11h2.07l-.36 1.35 1.17 1.75 1.16-1.75-.35-1.35H12zm-6.38-7-.89-1.35-1.18 4.48zm3.29 3.12-1.18-4.48-.9 1.36zM15 16l4-4v3H23v2h-4v3z",vn="m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6zM21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89zm-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18zm-6.38-7l-.89-1.35l-1.18 4.48zm3.29 3.12l-1.18-4.48l-.9 1.36zM9 16l-4-4v3H1v2h4v3z",xn="M22.1 21.5L2.4 1.7L1.1 3l5 5h-.7l-1.3 2.5l1.8.9l.7-1.4h1.5l1 1l-2.9 11h2.1l.2-.9l3.5-5.2l3.5 5.2l.2.9h2.1l-.8-3.2l3.9 3.9l1.2-1.2M9.3 18.1l1.2-4.5l.9 1.3l-2.1 3.2m5.4 0L12.6 15l.2-.3l1.3 1.3l.6 2.1m-.5-7.1h.7l.2.9l-.9-.9m-.1-3h4.5l1.3 2.6l-1.8.9l-.7-1.5h-4.2l-3-3l.5-2h2.6l.8 3M8.4 5.2L6.9 3.7L7.8 2h8.5l1.3 2.5l-1.8.9L15 4H9l-.6 1.2Z",_n="m8.28 5.45l-1.78-.9L7.76 2h8.47l1.27 2.55l-1.78.89L15 4H9l-.72 1.45M18.62 8h-4.53l-.79-3h-2.6l-.79 3H5.38L4.1 10.55l1.79.89l.73-1.44h10.76l.72 1.45l1.79-.89L18.62 8m-.85 14H15.7l-.24-.9L12 15.9l-3.47 5.2l-.23.9H6.23l2.89-11h2.07l-.36 1.35L12 14.1l1.16-1.75l-.35-1.35h2.07l2.89 11m-6.37-7l-.9-1.35l-1.18 4.48L11.4 15m3.28 3.12l-1.18-4.48l-.9 1.36l2.08 3.12Z",An="M11.45 2v3.55L15 3.77L11.45 2m-1 6L8 10.46l3.75 1.25L10.45 8M2 11.45L3.77 15l1.78-3.55H2M10 2H2v8c.57.17 1.17.25 1.77.25c3.58.01 6.49-2.9 6.5-6.5c-.01-.59-.1-1.18-.27-1.75m7 20v-6h-3l5-9v6h3l-5 9Z";var bn,Pn,Ln,En,Cn,Mn,Nn,kn,Sn,Dn,On,Tn,In,Gn,Vn;var Bn,zn,Rn,jn,Hn,Wn,Un,Qn,Zn,Fn,Yn;class Xn{constructor(){}getBatteryCapacity(e,t,n,o,a){let i=0;return e>0?i="off"===t||"0"===t||"off-grid"===t.toLowerCase()||!o.show||parseInt(a.state)<=o.capacity?n:o.capacity:e<0&&("off"===t||"0"===t||"off-grid"===t.toLowerCase()||!o.show||parseInt(a.state)>=o.capacity?i=100:parseInt(a.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",o="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",a="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",o="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",a="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",o="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",a="#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",o="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",a="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",o="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",a="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",o="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",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",a="orange";break;case 0<=parseInt(e.state)&&parseInt(e.state)<10:default:n=t,o=t,a="red"}return{batteryIcon:n,batteryCharge:o,stopColour:a,battery0:t}}}function xo(e){return{...e,toNum:(t,n)=>Jt.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?Jt.toNum(1e3*(e?.state||"0"),0,t):"mw"===n?Jt.toNum(1e6*(e?.state||"0"),0,t):Jt.toNum(e?.state||"0",0,t)||0},toPowerString:(t,n,o)=>t?Jt.convertValueNew(e?.state,e?.attributes?.unit_of_measurement,n||0):"".concat(Jt.toNum(e?.state,0,o)," ").concat(e?.attributes?.unit_of_measurement||""),toString:()=>e?.state?.toString()||"",getUOM:()=>e?.attributes?.unit_of_measurement||""}}console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(bt("common.version"),": ").concat("4.37.2"," "),"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 ve}static getConfigElement(){return document.createElement("content-card-editor")}static getStubConfig(){return{cardstyle:_e.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(){_t.hass=this.hass;const e=this._config,t=this.getEntity("entities.day_battery_discharge_71"),n=this.getEntity("entities.day_battery_charge_70"),o=this.getEntity("entities.day_load_energy_84"),a=this.getEntity("entities.day_grid_import_76"),i=this.getEntity("entities.day_pv_energy_108"),r=this.getEntity("entities.day_grid_export_77"),s=this.getEntity("entities.day_aux_energy"),l=this.getEntity("entities.inverter_voltage_154"),d=this.getEntity("entities.load_frequency_192"),c=this.getEntity("entities.inverter_current_164"),u=this.getEntity("entities.inverter_status_59",{state:""}),h=this.getEntity("entities.inverter_power_175"),p=this.getEntity("entities.priority_load_243",{state:e.entities.priority_load_243?.toString()??"false"}),y=this.getEntity("entities.use_timer_248",{state:e.entities.use_timer_248?.toString()??"false"}),g=this.getEntity("entities.dc_transformer_temp_90",{state:""}),f=this.getEntity("entities.radiator_temp_91",{state:""}),m=this.getEntity("entities.inverter_voltage_L2",{state:""}),w=this.getEntity("entities.inverter_voltage_L3",{state:""}),v=this.getEntity("entities.inverter_current_L2",{state:""}),x=this.getEntity("entities.inverter_current_L3",{state:""}),_=this.getEntity("entities.environment_temp",{state:""}),A=this.getEntity("entities.battery_voltage_183"),b=this.getEntity("entities.battery_soc_184"),P=this.getEntity("entities.battery_power_190"),L=this.getEntity("entities.battery_current_191"),E=this.getEntity("entities.battery_temp_182",{state:""}),C=this.getEntity("entities.battery_status",{state:""}),M=this.getEntity("entities.battery_current_direction",{state:""}),N=this.getEntity("entities.battery_rated_capacity",{state:""}),k=this.getEntity("battery.shutdown_soc",{state:e.battery.shutdown_soc?.toString()??""}),S=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),D=this.getEntity("entities.essential_power"),O=this.getEntity("entities.aux_power_166"),T=this.getEntity("entities.nonessential_power"),I=this.getEntity("entities.non_essential_load1"),G=this.getEntity("entities.non_essential_load2"),V=this.getEntity("entities.non_essential_load3"),B=this.getEntity("entities.non_essential_load1_extra"),z=this.getEntity("entities.non_essential_load2_extra"),R=this.getEntity("entities.essential_load1"),j=this.getEntity("entities.essential_load2"),H=this.getEntity("entities.essential_load3"),W=this.getEntity("entities.essential_load4"),U=this.getEntity("entities.aux_connected_status",{state:"on"}),F=this.getEntity("entities.aux_load1"),Y=this.getEntity("entities.aux_load2"),X=this.getEntity("entities.essential_load1_extra"),J=this.getEntity("entities.essential_load2_extra"),K=this.getEntity("entities.load_power_L1"),q=this.getEntity("entities.load_power_L2"),$=this.getEntity("entities.load_power_L3"),ee=this.getEntity("entities.aux_load1_extra"),te=this.getEntity("entities.aux_load2_extra"),ne=this.getEntity("entities.grid_ct_power_172"),oe=this.getEntity("entities.grid_ct_power_L2"),ae=this.getEntity("entities.grid_ct_power_L3"),ie=this.getEntity("entities.grid_ct_power_total"),re=this.getEntity("entities.grid_connected_status_194",{state:"on"}),se=this.getEntity("entities.grid_power_169"),le=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),de=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),ce=this.getEntity("entities.grid_voltage",null),ue=this.getEntity("entities.prepaid_units"),he=this.getEntity("entities.max_sell_power"),pe=this.getEntity("entities.pv1_voltage_109"),ye=this.getEntity("entities.pv1_current_110"),ge=this.getEntity("entities.pv2_voltage_111"),fe=this.getEntity("entities.pv2_current_112"),we=this.getEntity("entities.pv3_voltage_113"),ve=this.getEntity("entities.pv3_current_114"),_e=this.getEntity("entities.pv4_voltage_115"),be=this.getEntity("entities.pv4_current_116"),Pe=this.getEntity("entities.pv1_power_186"),Le=this.getEntity("entities.pv2_power_187"),Ee=this.getEntity("entities.pv3_power_188"),Ce=this.getEntity("entities.pv4_power_189"),Me=this.getEntity("entities.remaining_solar"),Ne=this.getEntity("entities.solar_sell_247",{state:"undefined"}),ke=this.getEntity("entities.pv_total"),Se=this.getEntity("entities.total_pv_generation");let{invert_aux:De}=e.load,Oe=O.toPower(De),{invert_grid:Te}=e.grid,Ie=ne.toPower(Te),Ge=oe.toPower(Te),Ve=ae.toPower(Te),Be=ie.toPower(Te),ze=e.entities?.grid_ct_power_total?Be:Ie+Ge+Ve,Re=e.inverter.three_phase?ze:Ie,je=ce.isNaN()?null:ce.toNum(0),He=M.isNaN()?null:M.toNum(0),We=e.inverter?.modern,Ue=this.colourConvert(e.load?.colour),Qe=this.calculateAuxLoadColour(O,0)||Ue,Ze=this.colourConvert(e.load?.aux_off_colour||Qe),Fe=this.calculateAuxLoadColour(F,0)||Ue,Ye=this.calculateAuxLoadColour(Y,0)||Ue;e.title_colour=this.colourConvert(e.title_colour);let Xe=e.load?.show_daily,Je=e.grid?.show_nonessential,Ke=e.entities?.grid_connected_status_194?re.state:"on";St.includes(Ke.toLowerCase())||kt.includes(Ke.toLowerCase())||(Ke="on");let qe=e.entities?.aux_connected_status?U.state:"on",$e=e.entities?.load_frequency_192?d.toNum(2):0,et=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?l.toNum(0):l.toNum(1):0,tt=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?m.toNum(0):m.toNum(1):"",nt=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",ot=e.entities?.inverter_current_164?c.toNum(1):0,at=e.entities?.inverter_current_L2?v.toNum(1):"",it=e.entities?.inverter_current_L3?x.toNum(1):"",rt=e.entities?.battery_voltage_183?A.toNum(1):0,st=e.entities?.inverter_power_175?h.toPower():0,lt=e.entities?.grid_power_169?se.toPower():0,{invert_load:dt}=e.load,ct=e.entities?.load_power_L1?K.toPower(dt):"",ut=e.entities?.load_power_L2?q.toPower(dt):"",ht=e.entities?.load_power_L3?$.toPower(dt):"";const pt=this.colourConvert(e.grid?.colour),yt=this.colourConvert(e.grid?.export_colour||pt),gt=this.colourConvert(e.grid?.no_grid_colour||pt);let ft;switch(!0){case Re<0:ft=yt;break;case 0===Re:ft=gt;break;default:ft=pt}const mt=this.colourConvert(e.grid?.grid_off_colour||ft);let wt=e.grid?.additional_loads;Et.includes(wt)||(wt=0),e.solar?.efficiency;let vt=e.grid?.show_daily_buy,xt=e.grid?.show_daily_sell,At=this.colourConvert(e.battery?.colour),Pt=this.colourConvert(e.battery?.charge_colour||At),Dt=e.battery?.show_daily,Vt=e.solar?.show_daily,Bt=e.load?.show_aux;Mt.includes(Bt)||(Bt=!1);let zt=e.load?.show_daily_aux,Rt=e.load?.additional_loads;(!Lt.includes(Rt)||this.isFullCard&&[3,4].includes(Rt)&&Bt||this.isFullCard&&[3].includes(Rt))&&(Rt=0);let jt=e.load?.aux_loads;Nt.includes(jt)||(jt=0);let Ht=e.load?.aux_type;const Wt=this.getEntity("load.load1_icon",{state:e.load?.load1_icon?.toString()??""}).state,Ut=this.getEntity("load.load2_icon",{state:e.load?.load2_icon?.toString()??""}).state,Qt=this.getEntity("load.load3_icon",{state:e.load?.load3_icon?.toString()??""}).state,Zt=this.getEntity("load.load4_icon",{state:e.load?.load4_icon?.toString()??""}).state,Ft=this.getEntity("load.aux_load1_icon",{state:e.load?.aux_load1_icon?.toString()??""}).state,Yt=this.getEntity("load.aux_load2_icon",{state:e.load?.aux_load2_icon?.toString()??""}).state,Xt=this.getEntity("grid.nonessential_icon",{state:e.grid?.nonessential_icon?.toString()??""}).state,Xn=this.getEntity("grid.load1_icon",{state:e.grid?.load1_icon?.toString()??""}).state,Jn=this.getEntity("grid.load2_icon",{state:e.grid?.load2_icon?.toString()??""}).state,Kn=this.getEntity("grid.load3_icon",{state:e.grid?.load3_icon?.toString()??""}).state;let qn=e.decimal_places,$n=e.decimal_places_energy,eo=!!e.entities.remaining_solar&&Jt.convertValueNew(Me.state,Me.attributes?.unit_of_measurement,qn),to=!!e.entities.total_pv_generation&&Jt.convertValueNew(Se.state,Se.attributes?.unit_of_measurement,2),no=e.large_font,oo=e.panel_mode,ao=this.colourConvert(e.inverter?.colour),io=e.inverter?.autarky,ro=!!e.entities.use_timer_248&&y.state,so=!!e.entities.priority_load_243&&p.state,lo=P.toPower(e.battery?.invert_power);const co=this.getEntity("card_height",{state:e.card_height?.toString()??""}).state,uo=this.getEntity("card_width",{state:e.card_width?.toString()??""}).state;let ho=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,po=Re>=0?le.toNum(ho):de.toNum(ho),yo=xe.Sunsynk;Object.values(xe).includes(e.inverter.model)&&(yo=e.inverter.model);let go="";const fo=wo.getInstance(yo);We||(go=fo.image);let mo=!1;this.isCompactCard&&(mo=!0);let xo,_o,Ao=Pe.toPower(),bo=Le.toPower(),Po=Ee.toPower(),Lo=Ce.toPower(),Eo=Ao+bo+Po+Lo,Co=e.entities?.pv_total?ke.toNum():Eo,Mo=e.solar.dynamic_colour?Jt.toNum(Co,0)>10?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour),No=e.inverter?.three_phase;Ct.includes(No)||(No=!1);const{essential_power:ko,nonessential_power:So}=e.entities;_o=!1===No?"none"!==So&&So?T.toPower():Ie-lt:"none"!==So&&So?T.toPower():Ie+Ge+Ve-lt,xo="none"!==ko&&ko?D.toPower(dt):!0===No&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(ct)+Number(ut)+Number(ht):st+lt-Oe;const Do={time:this.getEntity("entities.prog1_time",{state:e.entities.prog1_time??""}),capacity:this.getEntity("entities.prog1_capacity",{state:e.entities.prog1_capacity??""}),charge:this.getEntity("entities.prog1_charge",{state:e.entities.prog1_charge??""})},Oo={time:this.getEntity("entities.prog2_time",{state:e.entities.prog2_time??""}),capacity:this.getEntity("entities.prog2_capacity",{state:e.entities.prog2_capacity??""}),charge:this.getEntity("entities.prog2_charge",{state:e.entities.prog2_charge??""})},To={time:this.getEntity("entities.prog3_time",{state:e.entities.prog3_time??""}),capacity:this.getEntity("entities.prog3_capacity",{state:e.entities.prog3_capacity??""}),charge:this.getEntity("entities.prog3_charge",{state:e.entities.prog3_charge??""})},Io={time:this.getEntity("entities.prog4_time",{state:e.entities.prog4_time??""}),capacity:this.getEntity("entities.prog4_capacity",{state:e.entities.prog4_capacity??""}),charge:this.getEntity("entities.prog4_charge",{state:e.entities.prog4_charge??""})},Go={time:this.getEntity("entities.prog5_time",{state:e.entities.prog5_time??""}),capacity:this.getEntity("entities.prog5_capacity",{state:e.entities.prog5_capacity??""}),charge:this.getEntity("entities.prog5_charge",{state:e.entities.prog5_charge??""})},Vo={time:this.getEntity("entities.prog6_time",{state:e.entities.prog6_time??""}),capacity:this.getEntity("entities.prog6_capacity",{state:e.entities.prog6_capacity??""}),charge:this.getEntity("entities.prog6_charge",{state:e.entities.prog6_charge??""})};let Bo=S.toNum(),zo=k.toNum(),Ro={capacity:zo,entityID:""};switch(!0){case"off"===y.state:case!ro:case!e.entities.prog1_time:case!e.entities.prog2_time:case!e.entities.prog3_time:case!e.entities.prog4_time:case!e.entities.prog5_time:case!e.entities.prog6_time:Ro.show=!1;break;default:Ro.show=!0;const oi=new Date,ai=[];[Do,Oo,To,Io,Go,Vo].forEach(((e,t)=>{const[n,o]=e.time.state.split(":").map((e=>parseInt(e,10)));ai[t]=new Date(oi.getTime()),ai[t].setHours(n),ai[t].setMinutes(o)}));const[ii,ri,si,li,di,ci]=ai;function ui(e,t){"No Grid or Gen"===e.charge.state||"0"===e.charge.state||"off"===e.charge.state?Ro.charge="none":Ro.charge="both",Ro.capacity=parseInt(e.capacity.state),Ro.entityID=t}oi>=ci||oi=ii&&oi=ri&&oi=si&&oi=li&&oi=di&&oi50?"on":"off"),null!=He&&yo==xe.Solis&&0===He&&(lo=-lo);let jo=0;if(e.show_battery)switch(yo){case xe.GoodweGridMode:case xe.Goodwe:case xe.Huawei:lo>0?jo="on"!==Ke&&"1"!==Ke&&"on-grid"!==Ke.toLowerCase()||Ro.show?"off"!==Ke&&"0"!==Ke&&"off-grid"!==Ke.toLowerCase()||!S.notEmpty()||Ro.show?zo:Bo:zo:lo<0&&(jo=100);break;default:jo=fo.getBatteryCapacity(lo,Ke,zo,Ro,b)}let Ho=0,Wo="",Uo="";let Qo=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}).toNum(0);if(rt&&N.notEmpty()&&(Qo=Jt.toNum(rt*N.toNum(0),0)),e.show_battery||0!==Qo){0===lo?Ho=(b.toNum()-zo)/100*Qo*60*60:lo>0?Ho=(b.toNum()-jo)/100*Qo/lo*60*60:lo<0&&(Ho=(jo-b.toNum(0))/100*Qo/lo*60*60*-1);const hi=new Date,pi=1e3*Ho,yi=new Date(hi.getTime()+pi),gi=yi.getHours(),fi=yi.getMinutes().toString().padStart(2,"0"),mi=gi.toString().padStart(2,"0");Wo="".concat(mi,":").concat(fi);const wi=Math.floor(Ho/86400),vi=Math.floor(Ho%86400/3600),xi=Math.floor(Ho%3600/60);wi>0&&(Uo+="".concat(wi," ").concat(bt("common.days"),",")),(vi>0||wi>0)&&(Uo+="".concat(vi," ").concat(bt("common.hrs"),",")),Uo+="".concat(xi," ").concat(bt("common.min"))}let Zo,Fo=-2<=L.toNum(0)&&L.toNum(0)<=2&&b.toNum(0)>=99;Zo=lo<0&&!Fo?Pt:At;let Yo="",Xo="",Jo=u.state,Ko=!1;yo==xe.Solis&&(Jo=u.isNaN()?u.toString():u.toNum(0).toString());let qo=fo.statusGroups;if(qo)for(const _i of Object.keys(qo)){const Ai=qo[_i],{states:bi,color:Pi,message:Li}=Ai;if(bi.includes(Jo.toLowerCase())){Yo=Pi,Xo=Li,Ko=!0;break}}Ko||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(Yo="transparent",Xo="Status"):(Yo="transparent",Xo=""));let $o="transparent",ea="";if([xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(yo)){let Ei=fo.batteryStatusGroups;if(Ei)for(const Ci of Object.keys(Ei)){const Mi=Ei[Ci],{states:Ni,color:ki,message:Si}=Mi;if(Ni.includes(C.state.toLowerCase())){$o=ki,ea=Si,Ko=!0;break}}Ko||("none"!==e.entities?.battery_status&&e.entities?.battery_status?($o="transparent",ea="Status"):($o="transparent",ea=""))}let ta=i.toNum()+t.toNum(),na=o.toNum()+n.toNum(),oa=0!=na?Math.max(Math.min(Math.round(100*ta/na),100),0):0,aa=0!=ta?Math.max(Math.min(Math.round(100*na/ta),100),0):0,ia=Co+Jt.toNum("".concat(lo>0?lo:0))+Jt.toNum("".concat(Oe<0?-1*Oe:0)),ra=xo+Math.max(_o,0)+Jt.toNum("".concat(Oe>0?Oe:0))+Jt.toNum("".concat(lo<0?-1*lo:0)),sa=0!=ra?Math.max(Math.min(Math.round(100*ia/ra),100),0):0,la=0!=ia?Math.max(Math.min(Math.round(100*ra/ia),100),0):0,da=(Jt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,ca=Jt.toNum(e.min_line_width)||1;let ua=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(0);const ha=this.getEntity("solar.max_power",{state:e.solar.max_power?.toString()??""}),pa=this.getEntity("load.max_power",{state:e.load.max_power?.toString()??""}),ya=this.getEntity("grid.max_power",{state:e.grid.max_power?.toString()??""});let ga=e.solar.max_power?this.dynamicLineWidth(Ao,ha.toNum()||Ao,da,ca):ca,fa=e.solar.max_power?this.dynamicLineWidth(bo,ha.toNum()||bo,da,ca):ca,ma=e.solar.max_power?this.dynamicLineWidth(Po,ha.toNum()||Po,da,ca):ca,wa=e.solar.max_power?this.dynamicLineWidth(Lo,ha.toNum()||Lo,da,ca):ca,va=e.battery.max_power?this.dynamicLineWidth(Math.abs(lo),ua||Math.abs(lo),da,ca):ca,xa=e.load.max_power?this.dynamicLineWidth(Math.abs(xo),pa.toNum()||Math.abs(xo),da,ca):ca,_a=e.load.max_power?this.dynamicLineWidth(Math.abs(Oe),pa.toNum()||Math.abs(Oe),da,ca):ca,Aa=e.grid.max_power?this.dynamicLineWidth(Math.abs(Re),ya.toNum()||Math.abs(Re),da,ca):ca,ba=e.grid.max_power?this.dynamicLineWidth(Math.abs(lt),ya.toNum()||Math.abs(lt),da,ca):ca,Pa=e.grid.max_power?this.dynamicLineWidth(Math.abs(_o),ya.toNum()||Math.abs(_o),da,ca):ca,La=e.solar.max_power?this.dynamicLineWidth(Co,ha.toNum()||Co,da,ca):ca;if(e&&e.solar&&e.solar.animation_speed){const Di=e.solar.animation_speed-(e.solar.animation_speed-1)*(Co/(ha.toNum()||Co));this.changeAnimationSpeed("solar",Di)}if(e&&e.solar&&e.solar.animation_speed){const Oi=e.solar.animation_speed-(e.solar.animation_speed-1)*(Ao/(ha.toNum()||Ao));this.changeAnimationSpeed("pv1",Oi)}if(e&&e.solar&&e.solar.animation_speed){const Ti=e.solar.animation_speed-(e.solar.animation_speed-1)*(bo/(ha.toNum()||bo));this.changeAnimationSpeed("pv2",Ti)}if(e&&e.solar&&e.solar.animation_speed){const Ii=e.solar.animation_speed-(e.solar.animation_speed-1)*(Po/(ha.toNum()||Po));this.changeAnimationSpeed("pv3",Ii)}if(e&&e.solar&&e.solar.animation_speed){const Gi=e.solar.animation_speed-(e.solar.animation_speed-1)*(Lo/(ha.toNum()||Lo));this.changeAnimationSpeed("pv4",Gi)}if(e&&e.battery&&e.battery.animation_speed){const Vi=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(lo)/(ua||Math.abs(lo)));this.changeAnimationSpeed("battery",Vi)}if(e&&e.load&&e.load.animation_speed){const Bi=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(xo)/(pa.toNum()||Math.abs(xo)));this.changeAnimationSpeed("load",Bi),this.changeAnimationSpeed("load1",Bi)}if(e&&e.load&&e.load.animation_speed){const zi=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Oe)/(pa.toNum()||Math.abs(Oe)));this.changeAnimationSpeed("aux",zi),this.changeAnimationSpeed("aux1",zi)}if(e&&e.grid&&e.grid.animation_speed){const Ri=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Re)/(ya.toNum()||Math.abs(Re)));this.changeAnimationSpeed("grid1",Ri),this.changeAnimationSpeed("grid",Ri),this.changeAnimationSpeed("grid2",Ri)}if(e&&e.grid&&e.grid.animation_speed){const ji=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(_o)/(ya.toNum()||Math.abs(_o)));this.changeAnimationSpeed("ne",ji)}const Ea=0===Co?0:"off"!==so&&so||lo>0?Co/(No?xo+Math.max(Oe,0):xo)*100:(Co-Math.abs(lo))/(No?xo+Math.max(Oe,0):xo)*100,Ca=lo<=0?0:Math.abs(lo)/(No?xo+Math.max(Oe,0):xo)*100,Ma=Ea+Ca,Na=0===Ma?0:Ea/Ma*100,ka=0===Ma?0:Ca/Ma*100;let Sa=0,Da=0,Oa=0;Ma>100?(Sa=Jt.toNum(Na,0),Da=Jt.toNum(ka,0)):(Sa=Jt.toNum(Math.min(Ea,100),0),Da=Jt.toNum(Math.min(Ca,100),0),Oa=100-(Sa+Da));const Ta=0===Co||lo>=0?0:"off"!==so&&so?(Co-xo)/Math.abs(lo)*100:Co/Math.abs(lo)*100,Ia=lo>=0||Re<=0?0:"on"===so?Co-xo>=Math.abs(lo)?0:(Re-Math.max(xo-Co,0))/Math.abs(lo)*100:Co>=Math.abs(lo)?0:(Math.abs(lo)-Co)/Math.abs(lo)*100,Ga=Ta+Ia,Va=0===Ga?0:Ta/Ga*100,Ba=0===Ga?0:Ia/Ga*100;let za,Ra,ja=0,Ha=0;switch(Ga>100?(ja=Jt.toNum(Va,0),Ha=Jt.toNum(Ba,0)):(ja=Jt.toNum(Math.min(Ta,100),0),Ha=Jt.toNum(Math.min(Ia,100),0)),!0){case Ea>=100&&Ca<=5&&Re-_o<50&&e.load.dynamic_icon:za=en,Ra=1;break;case Ca>=100&&Ea<=5&&Re-_o<50&&e.load.dynamic_icon:za=qt,Ra=0;break;case Ea<5&&Ca<5&&Oa>0&&e.load.dynamic_icon:za=$t,Ra=0;break;default:za=Kt,Ra=0}const{batteryIcon:Wa,batteryCharge:Ua,stopColour:Qa,battery0:Za}=vo.convert(b),Fa=this.getEntity("solar.pv1_max_power",{state:e.solar.pv1_max_power?.toString()??""}),Ya=this.getEntity("solar.pv2_max_power",{state:e.solar.pv2_max_power?.toString()??""}),Xa=this.getEntity("solar.pv3_max_power",{state:e.solar.pv3_max_power?.toString()??""}),Ja=this.getEntity("solar.pv4_max_power",{state:e.solar.pv4_max_power?.toString()??""}),Ka=e.solar.max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Co/ha.toNum()*100,200),0):100,qa=e.solar.pv1_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Ao/Fa.toNum()*100,200),0):100,$a=e.solar.pv2_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(bo/Ya.toNum()*100,200),0):100,ei=e.solar.pv3_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Po/Xa.toNum()*100,200),0):100,ti=e.solar.pv4_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Lo/Ja.toNum()*100,200),0):100,ni={config:e,panelMode:oo,compactMode:mo,cardHeight:co,cardWidth:uo,loadColour:Ue,batteryColour:Zo,gridColour:ft,isFloating:Fo,inverterColour:ao,solarColour:Mo,auxOffColour:Ze,batteryEnergy:Qo,largeFont:no,batteryPower:lo,batteryDuration:Uo,batteryCapacity:jo,additionalLoad:Rt,essIconSize:Ra,essIcon:za,stateUseTimer:y,batteryStateMsg:ea,stateBatterySoc:b,inverterProg:Ro,solarShowDaily:Vt,batteryPercentage:Da,pvPercentage:Sa,loadShowDaily:Xe,stateEnergyCostSell:de,stateEnergyCostBuy:le,loadPowerL1:ct,loadPowerL2:ut,loadPowerL3:ht,durationCur:this.durationCur,stateEssentialLoad1:R,stateEssentialLoad2:j,stateEssentialLoad3:H,stateEssentialLoad4:W,gridPower:Ie,gridPowerL2:Ge,gridPowerL3:Ve,decimalPlaces:qn,decimalPlacesEnergy:$n,stateEssentialLoad1Extra:X,stateEssentialLoad2Extra:J,stateNonEssentialLoad1Extra:B,stateNonEssentialLoad2Extra:z,loadFrequency:$e,statePV4Current:be,gridShowDailyBuy:vt,gridShowDailySell:xt,batteryShowDaily:Dt,inverterModel:yo,batteryShutdown:zo,enableAutarky:io,autarkyPower:sa,ratioPower:la,ratioEnergy:aa,autarkyEnergy:oa,shutdownOffGrid:Bo,statePV1Current:ye,statePV2Current:fe,statePV3Current:ve,energyCost:po,inverterCurrent:ot,inverterCurrentL2:at,inverterCurrentL3:it,stateRadiatorTemp:f,inverterVoltage:et,inverterVoltageL2:tt,inverterVoltageL3:nt,batteryVoltage:rt,stateBatteryCurrent:L,batLineWidth:va,totalGridPower:Re,solarLineWidth:La,totalPV:Co,loadLineWidth:xa,pvPercentageBat:ja,gridPercentageBat:Ha,genericInverterImage:We,battery0:Za,essentialPower:xo,pv1LineWidth:ga,pv2LineWidth:fa,pv3LineWidth:ma,pv4LineWidth:wa,gridLineWidth:Aa,pv1PowerWatts:Ao,pv2PowerWatts:bo,pv3PowerWatts:Po,pv4PowerWatts:Lo,stateEnvironmentTemp:_,statePV1Voltage:pe,statePV2Voltage:ge,statePV3Voltage:we,statePV4Voltage:_e,batteryStateColour:$o,inverterStateColour:Yo,stateBatteryTemp:E,statePrepaidUnits:ue,stateDCTransformerTemp:g,iconEssentialLoad1:Wt,iconEssentialLoad2:Ut,iconEssentialLoad3:Qt,iconEssentialLoad4:Zt,enableTimer:ro,stateSolarSell:Ne,priorityLoad:so,inverterImg:go,stateDayPVEnergy:i,statePV2Power:Le,statePV3Power:Ee,statePV4Power:Ce,remainingSolar:eo,totalSolarGeneration:to,stateDayLoadEnergy:o,stateDayBatteryDischarge:t,stateDayGridImport:a,stateDayBatteryCharge:n,stateDayGridExport:r,statePVTotal:ke,statePV1Power:Pe,minLineWidth:ca,stopColour:Qa,gridStatus:Ke,batteryCharge:Ua,gridOffColour:mt,batteryIcon:Wa,formattedResultTime:Wo,showAux:Bt,nonessentialIcon:Xt,showNonessential:Je,auxStatus:qe,nonessentialLoads:wt,additionalAuxLoad:jt,stateAuxLoad1Extra:ee,stateAuxLoad2Extra:te,iconNonessentialLoad1:Xn,iconNonessentialLoad2:Jn,iconNonessentialLoad3:Kn,inverterStateMsg:Xo,auxType:Ht,showDailyAux:zt,nonessentialPower:_o,auxPower:Oe,nonessLineWidth:Pa,grid169LineWidth:ba,auxLineWidth:_a,iconAuxLoad1:Ft,iconAuxLoad2:Yt,stateDayAuxEnergy:s,stateAuxLoad1:F,stateAuxLoad2:Y,stateNonessentialLoad1:I,stateNonessentialLoad2:G,stateNonessentialLoad3:V,autoScaledInverterPower:st,autoScaledGridPower:lt,auxDynamicColour:Qe,auxDynamicColourLoad1:Fe,auxDynamicColourLoad2:Ye,stateMaxSellPower:he,totalPVEfficiency:Ka,PV1Efficiency:qa,PV2Efficiency:$a,PV3Efficiency:ei,PV4Efficiency:ti,gridPercentage:Oa};return this.isFullCard?((e,t,n)=>Q(bn||(bn=me(["\n \n \n
\n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ",'\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ","\n ","\n ",'\n \n \n ','%\n \n \n ','%\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 \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 ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \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 \n \n \n \n ',"\n ",'\n \n \n \n \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,n.auxDynamicColour,n.auxDynamicColourLoad1,n.auxDynamicColourLoad2,n.auxOffColour,n.gridColour,n.gridColour,e.title?Q(Pn||(Pn=me(['\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%",[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,n.batteryColour,e.show_battery?"":"none",n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",n.auxDynamicColour,n.showAux?"":"st12",n.loadColour,e.inverter.three_phase?60:50,n.inverterColour,[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,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,4].includes(n.additionalLoad)?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.loadColour,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3].includes(n.additionalLoad)?"":"none",n.auxDynamicColourLoad1,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxDynamicColourLoad2,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),bt("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),bt("common.to"),n.batteryCapacity,bt("common.charge"),n.formattedResultTime,e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",bt("common.battery_floating"),e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.totalPVEfficiency,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,Jt.toNum(n.batteryEnergy*(n.stateBatterySoc?.toNum()/100)/1e3,2),Tt.KILO_WATT_HOUR,[0].includes(n.additionalLoad)||!n.showAux&&[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name,[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name,n.showAux?181:70,1===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?402:405,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load2_name,[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load3_name,[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load4_name,2===n.additionalAuxLoad?"238":"306",n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",bt("common.daily_load"),0===n.additionalLoad?"377":"306",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),bt("common.daily_load"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.total_solar_generation"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_charge"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_discharge"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"256":"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"225":"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_sell"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".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===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.autarky"),n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.ratio"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxDynamicColourLoad1,e.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxDynamicColourLoad2,e.load.aux_load2_name,[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux?"":"none",n.auxDynamicColour,e.load.aux_daily_name,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:"",Ot.WATT,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.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",[xe.GoodweGridMode,xe.Goodwe,xe.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":"",[4].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.loadColour,n.showAux?"none":"",[2,4].includes(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.auxDynamicColour,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.auxDynamicColour),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.auxDynamicColour),n.durationCur.aux,n.showAux?"":"st12",n.auxDynamicColour,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.auxDynamicColour),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.auxDynamicColour),n.durationCur.aux,n.gridColour,n.grid169LineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower<0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower>0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,e.inverter.three_phase?"M 180 223 L 180 235":"M 180 212 L 180 235",n.inverterColour,n.minLineWidth,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,n.loadColour,n.loadLineWidth,n.genericInverterImage?1:0,n.inverterColour,rn,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),n.batteryColour,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.battery.animate?"y2":"none",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,An,(t=>Jt.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",kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",_n,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",St.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",xn,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",vn,"default"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"oven"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"boiler"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"aircon"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,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,dn,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"boiler"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"oven"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"aircon"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,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,dn,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,(t=>Jt.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.auxDynamicColour):"".concat(n.auxOffColour),ln,"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),sn,"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),rn,"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),nn,"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),tn,"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),on,"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),an,!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].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"aircon"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&[2,3,4].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,on,"pump"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,an,"oven"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,nn,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad3,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad4,[1].includes(n.additionalLoad)?"":"none",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(t=>Jt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=Ae.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,cn,n.enableAutarky!=Ae.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,un,n.enableAutarky!=Ae.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_on"),n.enableAutarky!=Ae.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_off"),(t=>Jt.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,hn,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,pn,(t=>Jt.handlePopup(t,e.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,yn,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,gn,n.enableAutarky!=Ae.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_load"),n.enableAutarky!=Ae.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_batt"),n.genericInverterImage?"st12":"",t,(e=>Jt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=Ae.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,fn,n.enableAutarky!=Ae.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,mn,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy),n.remainingSolar,(t=>Jt.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,n.decimalPlacesEnergy),n.totalSolarGeneration,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"242":"239":"354",e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"212":"209":"323",e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.max_sell_power)),n.showNonessential?"347":"311",n.showNonessential?"198":"309",["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",bt("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.day_aux_energy)),[1,2].includes(n.additionalAuxLoad)?"238":"306",n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxDynamicColour,n.stateDayAuxEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.non_essential_load1_extra)),e.entities?.non_essential_load1_extra&&[1,2].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad1Extra.isValid()&&e.show_grid?"":"none",n.gridColour,n.stateNonEssentialLoad1Extra.toNum(1),n.stateNonEssentialLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.non_essential_load2_extra)),e.entities?.non_essential_load2_extra&&2===n.nonessentialLoads&&n.stateNonEssentialLoad2Extra.isValid()&&e.show_grid?"":"none",n.gridColour,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),e.inverter.three_phase?e.entities?.grid_ct_power_total?Z(Ln||(Ln=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(En||(En=me(['\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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(Cn||(Cn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))),e.entities?.pv_total?Z(Mn||(Mn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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?Jt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)):Z(Nn||(Nn=me(['\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?Jt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(kn||(kn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)):Z(Sn||(Sn=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)),e.entities?.nonessential_power&&"none"!==e.entities.nonessential_power?Z(Dn||(Dn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.nonessential_power)),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Jt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ot.WATT)):Z(On||(On=me(['\n \n ',"\n "])),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Jt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ot.WATT)),e.entities?.aux_power_166?Z(Tn||(Tn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Jt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ot.WATT)):Z(In||(In=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Jt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ot.WATT)),(t=>Jt.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?Jt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv1PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv2PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv3PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv4PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load3)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load4)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.loadColour,n.stateEssentialLoad4.toPowerString(e.load.auto_scale,n.decimalPlaces),n.totalGridPower>=0?Z(Gn||(Gn=me(['\n \n \n '," ","\n "])),(t=>Jt.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()):Z(Vn||(Vn=me(['\n \n \n '," ","\n \n "])),(t=>Jt.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=>Jt.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,Gt.VOLT,(t=>Jt.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,Gt.VOLT,(t=>Jt.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,Gt.VOLT,(t=>Jt.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=>Jt.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,It.AMPERE,(t=>Jt.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,It.AMPERE,(t=>Jt.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,It.AMPERE,(t=>Jt.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,Gt.VOLT,(t=>Jt.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(0),(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",(t=>Jt.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(Jt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ot.WATT):"".concat(n.batteryPower||0," ").concat(Ot.WATT)),(t=>Jt.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(Jt.toNum(n.stateBatteryCurrent.state,1)):Jt.toNum(n.stateBatteryCurrent.state,1),It.AMPERE,(t=>Jt.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(Jt.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(Ot.WATT),(t=>Jt.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(Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(Ot.WATT):"".concat(n.autoScaledGridPower||0," ").concat(Ot.WATT)),(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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=>Jt.handlePopup(t,e.entities.radiator_temp_91)),4===e.solar?.mppts?"110":"134",4===e.solar?.mppts?"237":"153",n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Jt.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=>Jt.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=>Jt.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),(t=>Jt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&![1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&[1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.aux_load2_extra)),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&e.entities.aux_load2_extra?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Jt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L2)),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(Jt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L3)),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(Jt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ot.WATT)))(e,go,ni):this.isLiteCard||this.isCompactCard?((e,t,n)=>Q(Bn||(Bn=me(["\n \n \n
\n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ",'\n \n \n ','%\n \n \n ','%\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \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 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 \n \n \n \n ','\n \n \n \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?Q(zn||(zn=me(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.show_solar?1:0===n.additionalLoad&&e.show_battery?145.33:80,e.show_solar?e.show_battery?408:[2,3,4].includes(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,3,4].includes(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,[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,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",[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,n.loadColour,[1,2,3].includes(n.additionalLoad)?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,[3,4].includes(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),bt("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),bt("common.to"),n.batteryCapacity,bt("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",bt("common.battery_floating"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_charge"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_discharge"),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",bt("common.daily_load"),!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_sell"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.total_solar_generation"),1===e.solar.mppts?"230":"179",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,1===e.solar.mppts?"230":"179",[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8":"st12",1===e.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.autarky"),n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.ratio"),[1,2,3].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):"",3===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",3===n.additionalLoad?"":"none",n.loadColour,e.load?.load3_name?"".concat(e.load.load3_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(Jt.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(Ot.WATT),e.inverter.three_phase&&e.entities?.load_power_L2?"":"none",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(Ot.WATT),e.inverter.three_phase&&e.entities?.load_power_L3?"":"none",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(Ot.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,Jt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum(2)/100)/1e3,2),Tt.KILO_WATT_HOUR,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.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,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,[2,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,nn,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,an,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,an,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,on,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,tn,[0,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,[0,1,3,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,3===n.additionalLoad?"":"none",n.iconEssentialLoad2,3===n.additionalLoad?"":"none",n.iconEssentialLoad3,e.show_solar?"":"st12",n.solarColour,An,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),n.batteryColour,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.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,(t=>Jt.handlePopup(t,e.entities.grid_connected_status_194)),kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",_n,St.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",xn,kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",wn,1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.genericInverterImage?1:0,n.inverterColour,rn,(t=>Jt.handlePopup(t,e.entities.use_timer_248)),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,cn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,un,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_on"),(t=>Jt.handlePopup(t,e.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,yn,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,gn,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_load"),(t=>Jt.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,hn,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,pn,n.genericInverterImage?"st12":"",t,(e=>Jt.handlePopup(e,n.inverterProg.entityID)),!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,fn,!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,mn,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy)+" / "+n.remainingSolar,(t=>Jt.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,n.decimalPlacesEnergy)+" / "+n.totalSolarGeneration,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_load_energy_84)),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_import_76)),e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_export_77)),e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.max_sell_power)),["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",bt("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Jt.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:"",Gt.VOLT,(t=>Jt.handlePopup(t,e.entities.load_frequency_192)),"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(t=>Jt.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:"",It.AMPERE,(t=>Jt.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,Gt.VOLT,(t=>Jt.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,Gt.VOLT,(t=>Jt.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=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery.shutdown_soc_offgrid?"":"none",(t=>Jt.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(Jt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ot.WATT):"".concat(n.batteryPower||0," ").concat(Ot.WATT)),(t=>Jt.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),It.AMPERE,(t=>Jt.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),It.AMPERE,e.inverter.three_phase?e.entities?.grid_ct_power_total?Z(Rn||(Rn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(jn||(jn=me(['\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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(Hn||(Hn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))),(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Gt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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=>Jt.handlePopup(t,e.entities.radiator_temp_91)),n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>Jt.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?Z(Wn||(Wn=me(['\n \n \n '," ","\n \n "])),(t=>Jt.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()):Z(Un||(Un=me(['\n \n \n '," ","\n \n "])),(t=>Jt.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?Z(Qn||(Qn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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?Jt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)):Z(Zn||(Zn=me(['\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?Jt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)),(t=>Jt.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?Jt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv1PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv2PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv3PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv4PowerWatts||0,0)," ").concat(Ot.WATT),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(Fn||(Fn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)):Z(Yn||(Yn=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)),(t=>Jt.handlePopup(t,e.entities.essential_load1)),[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load2)),3===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load3)),3===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Jt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L2)),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(Jt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L3)),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(Jt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ot.WATT)))(e,go,ni):void 0}getEntity(e,t={state:"0",attributes:{unit_of_measurement:""}}){let n;const o=String(e).split(".");o.length>1?n=this._config[o[0]][o[1]]:o.length>0&&(n=this._config[o[0]]);const a=n?this.hass.states[n]:void 0;return xo(void 0!==a?a:t||{state:void 0})}changeAnimationSpeed(e,t){const n=t>=1?Jt.toNum(t,3):1,o=this["".concat(e,"Flow")];this.durationCur[e]=n,o&&this.durationPrev[e]!=n&&o.setCurrentTime(o.getCurrentTime()*(n/this.durationPrev[e])),this.durationPrev[e]=this.durationCur[e]}get isCompactCard(){return this._config.cardstyle==_e.Compact}get isLiteCard(){return this._config.cardstyle==_e.Lite}get isFullCard(){return this._config.cardstyle==_e.Full}colourConvert(e){return e&&Array.isArray(e)?"rgb(".concat(e,")"):e}dynamicLineWidth(e,t,n,o=1){let a;return a=this._config.dynamic_line_width?Math.min(o+Math.min(e/t,1)*n,8):Math.min(o,8),a}calculateAuxLoadColour(e,t){return this._config.load.aux_dynamic_colour?Math.abs(e.toNum(0))>t?this.colourConvert(this._config.load?.aux_colour):"grey":this.colourConvert(this._config.load?.aux_colour)}setConfig(e){if(e.show_battery&&!e.battery)throw Error(bt("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(bt("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(bt("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(bt("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(bt("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(bt("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(bt("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(bt("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(bt("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(bt("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=Wt({},Pt,n)}getCardSize(){return 2}},t([ye()],e.SunsynkPowerFlowCard.prototype,"hass",void 0),t([ye()],e.SunsynkPowerFlowCard.prototype,"_config",void 0),t([fe("#grid-flow")],e.SunsynkPowerFlowCard.prototype,"gridFlow",void 0),t([fe("#grid1-flow")],e.SunsynkPowerFlowCard.prototype,"grid1Flow",void 0),t([fe("#solar-flow")],e.SunsynkPowerFlowCard.prototype,"solarFlow",void 0),t([fe("#pv1-flow")],e.SunsynkPowerFlowCard.prototype,"pv1Flow",void 0),t([fe("#pv2-flow")],e.SunsynkPowerFlowCard.prototype,"pv2Flow",void 0),t([fe("#pv3-flow")],e.SunsynkPowerFlowCard.prototype,"pv3Flow",void 0),t([fe("#pv4-flow")],e.SunsynkPowerFlowCard.prototype,"pv4Flow",void 0),t([fe("#battery-flow")],e.SunsynkPowerFlowCard.prototype,"batteryFlow",void 0),t([fe("#load-flow")],e.SunsynkPowerFlowCard.prototype,"loadFlow",void 0),t([fe("#aux-flow")],e.SunsynkPowerFlowCard.prototype,"auxFlow",void 0),t([fe("#ne-flow")],e.SunsynkPowerFlowCard.prototype,"neFlow",void 0),t([fe("#ne1-flow")],e.SunsynkPowerFlowCard.prototype,"ne1Flow",void 0),e.SunsynkPowerFlowCard=t([ue("sunsynk-power-flow-card")],e.SunsynkPowerFlowCard);try{customElements.define("content-card-editor",Xt)}catch(e){}window.customCards=window.customCards||[],window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:bt("common.description"),configurable:!0})})); +function(e){return class extends e{createRenderRoot(){const e=this.constructor,{registry:t,elementDefinitions:n,shadowRootOptions:o}=e;n&&!t&&(e.registry=new CustomElementRegistry,Object.entries(n).forEach((([t,n])=>e.registry.define(t,n))));const a=this.renderOptions.creationScope=this.attachShadow({...o,customElements:e.registry});return l(a,this.constructor.elementStyles),a}}}(de)){constructor(){super(...arguments),this._computeLabelCallback=e=>bt("config.".concat(e.name))??e.name}setConfig(e){this._config={...this._config,...e}}render(){return this.hass&&this._config?Q(Zt||(Zt=me(["\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(_e).map((e=>({label:Yt.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:"decimal_places_energy",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("sensor"),schema:[{type:"grid",schema:[{name:"card_height",selector:{entity:{}}},{name:"card_width",selector:{entity:{}}}]}]}]},{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(xe).map((e=>({label:Yt.capitalize(e),value:e})))}}},{name:"modern",selector:{boolean:{}}},{name:"autarky",selector:{select:{options:Object.values(Ae).map((e=>({label:Yt.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:1,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:{}}},{name:"pv1_max_power",selector:{number:{}}},{name:"pv2_max_power",selector:{number:{}}},{name:"pv3_max_power",selector:{number:{}}},{name:"pv4_max_power",selector:{number:{}}},{name:"efficiency",selector:{number:{mode:"box",min:0,max:3}}}]},{type:"expandable",title:this._title("sensor"),schema:[{name:"solar",type:"grid",schema:[{name:"max_power",selector:{entity:{}}},{name:"pv1_max_power",selector:{entity:{}}},{name:"pv2_max_power",selector:{entity:{}}},{name:"pv3_max_power",selector:{entity:{}}},{name:"pv4_max_power",selector:{entity:{}}}]}]}]},{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:"shutdown_soc_offgrid",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:"animate",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("sensor"),schema:[{name:"battery",type:"grid",schema:[{name:"energy",selector:{entity:{}}},{name:"shutdown_soc",selector:{entity:{}}},{name:"shutdown_soc_offgrid",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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_daily_name",selector:{text:{}}},{name:"aux_type",selector:{icon:{}}},{name:"invert_aux",selector:{boolean:{}}},{name:"show_absolute_aux",selector:{boolean:{}}},{name:"aux_dynamic_colour",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("sensor"),schema:[{name:"load",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"load4_icon",selector:{entity:{}}},{name:"aux_load1_icon",selector:{entity:{}}},{name:"aux_load2_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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("sensor"),schema:[{name:"grid",type:"grid",schema:[{name:"load1_icon",selector:{entity:{}}},{name:"load2_icon",selector:{entity:{}}},{name:"load3_icon",selector:{entity:{}}},{name:"max_power",selector:{entity:{}}}]}]}]},{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:Dt.ENERGY}}},{name:"pv1_power_186",selector:{entity:{device_class:Dt.POWER}}},{name:"pv2_power_187",selector:{entity:{device_class:Dt.POWER}}},{name:"pv3_power_188",selector:{entity:{device_class:Dt.POWER}}},{name:"pv4_power_189",selector:{entity:{device_class:Dt.POWER}}},{name:"pv1_voltage_109",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv1_current_110",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv2_voltage_111",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv2_current_112",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv3_voltage_113",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv3_current_114",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv4_voltage_115",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"pv4_current_116",selector:{entity:{device_class:Dt.CURRENT}}},{name:"pv_total",selector:{entity:{device_class:Dt.POWER}}},{name:"solar_sell_247",selector:{entity:{}}},{name:"total_pv_generation",selector:{entity:{device_class:Dt.ENERGY}}},{name:"remaining_solar",selector:{entity:{device_class:Dt.ENERGY}}},{name:"environment_temp",selector:{entity:{device_class:Dt.TEMPERATURE}}}]}]},{type:"expandable",title:this._title("bat"),schema:[{name:"entities",type:"grid",schema:[{name:"battery_power_190",selector:{entity:{device_class:Dt.POWER}}},{name:"battery_current_191",selector:{entity:{device_class:Dt.CURRENT}}},{name:"battery_temp_182",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"battery_voltage_183",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"battery_soc_184",selector:{entity:{device_class:Dt.BATTERY}}},{name:"day_battery_charge_70",selector:{entity:{device_class:Dt.ENERGY}}},{name:"day_battery_discharge_71",selector:{entity:{device_class:Dt.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:Dt.VOLTAGE}}},{name:"inverter_voltage_L2",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"inverter_voltage_L3",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"load_frequency_192",selector:{entity:{device_class:Dt.FREQUENCY}}},{name:"inverter_current_164",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L2",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_current_L3",selector:{entity:{device_class:Dt.CURRENT}}},{name:"inverter_power_175",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_power_169",selector:{entity:{device_class:Dt.POWER}}},{name:"dc_transformer_temp_90",selector:{entity:{device_class:Dt.TEMPERATURE}}},{name:"radiator_temp_91",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_aux_energy",selector:{entity:{device_class:Dt.ENERGY}}},{name:"essential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load4",selector:{entity:{device_class:Dt.POWER}}},{name:"essential_load1_extra",selector:{entity:{}}},{name:"essential_load2_extra",selector:{entity:{}}},{name:"load_power_L1",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"load_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_power_166",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"aux_load2",selector:{entity:{device_class:Dt.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:Dt.ENERGY}}},{name:"day_grid_export_77",selector:{entity:{device_class:Dt.ENERGY}}},{name:"grid_ct_power_172",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L2",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_L3",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_ct_power_total",selector:{entity:{device_class:Dt.POWER}}},{name:"grid_voltage",selector:{entity:{device_class:Dt.VOLTAGE}}},{name:"nonessential_power",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load2",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load3",selector:{entity:{device_class:Dt.POWER}}},{name:"non_essential_load1_extra",selector:{entity:{}}},{name:"non_essential_load2_extra",selector:{entity:{}}},{name:"grid_connected_status_194",selector:{entity:{}}},{name:"energy_cost_buy",selector:{entity:{}}},{name:"energy_cost_sell",selector:{entity:{}}},{name:"prepaid_units",selector:{entity:{}}},{name:"max_sell_power",selector:{entity:{device_class:Dt.POWER}}}]}]}]}],(e=>this._valueChanged(e))):Q(Qt||(Qt=me([""])))}_title(e){return bt("config.cat_title.".concat(e))??e}_valueChanged(e){!function(e,t,n,o){o=o||{},n=null==n?{}:n;var a=new Event(t,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});a.detail=n,e.dispatchEvent(a)}(this,"config-changed",{config:e.detail.value})}};Xt.styles=s(Ft||(Ft=me(["\n\n "]))),t([ye({attribute:!1})],Xt.prototype,"hass",void 0),t([function(e){return ye({...e,state:!0,attribute:!1})}()],Xt.prototype,"_config",void 0),Xt=t([ue("content-card-editor")],Xt);class Jt{static toNum(e,t=-1,n=!1){let o=Number(e);return Number.isNaN(o)?0:(t>=0&&(o=parseFloat(o.toFixed(t))),n&&(o*=-1),o)}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 o=Number(e);if(isNaN(o))return 0;const a=Gt[t];if(!a)return"".concat(Math.round(o)," ").concat(t);if(t===Ot.WATT&&Math.abs(o)<1e3)return"".concat(Math.round(o)," ").concat(t);if(t===Ot.KILO_WATT&&Math.abs(o)<1)return"".concat(Math.round(1e3*o)," W");if(t===Ot.MEGA_WATT&&Math.abs(o)<1)return"".concat((1e3*o).toFixed(n)," kW");for(const e of a)if(Math.abs(o)>=e.threshold){const t=(o/e.divisor).toFixed(e.decimal||n);return"".concat(t," ").concat(e.targetUnit)}return"".concat(o.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 o;if(e.stopPropagation(),"more-info"===t.action)o=new Event("hass-more-info",{composed:!0}),o.detail={entityId:n},e.target.dispatchEvent(o)}}const Kt="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",qt="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",$t="M5 20v-8H2l10-9l10 9h-3v8zm7-14.31l-5 4.5V18h10v-7.81zM11.5 18v-4H9l3.5-7v4H15z",en="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",tn="M9.3 10.775q0 .475.163.925t.462.825q.05-.3.2-.588t.375-.487L12 10l1.475 1.475q.225.2.375.475t.2.575q.275-.375.487-.8t.213-.9q0-.475-.15-.913t-.45-.812q-.275.125-.563.2T13 9.375q-.75 0-1.375-.425t-.95-1.125q-.3.3-.55.637t-.438.713Q9.5 9.55 9.4 9.95t-.1.825ZM12 12.1l-.425.425q-.1.1-.138.2t-.037.225q0 .25.175.4t.425.15q.25 0 .425-.15t.175-.4q0-.125-.037-.225t-.138-.2L12 12.1ZM12 5v1.9q0 .425.3.713t.725.287q.275 0 .5-.162t.4-.388l.175-.25q1.025.575 1.588 1.563t.562 2.162q0 1.75-1.25 2.963T12 15q-1.75 0-2.975-1.225T7.8 10.8q0-1.925 1.225-3.425T12 5ZM6 22q-.825 0-1.413-.588T4 20V6q0-1.65 1.175-2.825T8 2h8q1.65 0 2.825 1.175T20 6v14q0 .825-.588 1.413T18 22H6Zm0-4v2h12v-2q-.75 0-1.2.5T15 19q-1.35 0-1.763-.5T12 18q-.825 0-1.238.5T9 19q-1.35 0-1.763-.5T6 18Zm3-1q.825 0 1.238-.5T12 16q1.35 0 1.8.5t1.2.5q.75 0 1.2-.5T18 16V6q0-.825-.588-1.413T16 4H8q-.825 0-1.413.588T6 6v10q1.35 0 1.763.5T9 17Z",nn="M3 7.5A4.5 4.5 0 0 1 7.5 3h17A4.5 4.5 0 0 1 29 7.5v17a4.5 4.5 0 0 1-4.5 4.5h-17A4.5 4.5 0 0 1 3 24.5v-17Zm24 0A2.5 2.5 0 0 0 24.5 5h-17A2.5 2.5 0 0 0 5 7.5V11h22V7.5Zm0 17V13H5v11.5A2.5 2.5 0 0 0 7.5 27h17a2.5 2.5 0 0 0 2.5-2.5Zm-17-15a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3Zm6 0a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3ZM23.5 8a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0ZM9 23v-6h14v6H9Zm-.5-8A1.5 1.5 0 0 0 7 16.5v7A1.5 1.5 0 0 0 8.5 25h15a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5h-15Z",on="M6.59.66c2.34-1.81 4.88.4 5.45 3.84c.43 0 .85.12 1.23.34c.52-.6.98-1.42.8-2.34c-.42-2.15 1.99-3.89 4.28-.92c1.81 2.34-.4 4.88-3.85 5.45c0 .43-.11.86-.34 1.24c.6.51 1.42.97 2.34.79c2.13-.42 3.88 1.98.91 4.28c-2.34 1.81-4.88-.4-5.45-3.84c-.43 0-.85-.13-1.22-.35c-.52.6-.99 1.43-.81 2.35c.42 2.14-1.99 3.89-4.28.92c-1.82-2.35.4-4.89 3.85-5.45c0-.43.13-.85.35-1.23c-.6-.51-1.42-.98-2.35-.8c-2.13.42-3.88-1.98-.91-4.28M5 16h2a2 2 0 0 1 2 2v6H7v-2H5v2H3v-6a2 2 0 0 1 2-2m0 2v2h2v-2H5m7.93-2H15l-2.93 8H10l2.93-8M18 16h3v2h-3v4h3v2h-3a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2Z",an="M3 17h4.1q-.425-.425-.787-.925T5.675 15H3v2Zm9 0q2.075 0 3.538-1.463T17 12q0-2.075-1.463-3.538T12 7Q9.925 7 8.462 8.463T7 12q0 2.075 1.463 3.538T12 17Zm6.325-8H21V7h-4.1q.425.425.788.925T18.325 9ZM1 20v-8h2v1h2.075q-.05-.25-.063-.488T5 12q0-2.925 2.038-4.963T12 5h9V4h2v8h-2v-1h-2.075q.05.25.063.488T19 12q0 2.925-2.038 4.963T12 19H3v1H1Zm2-3v-2v2Zm18-8V7v2Zm-9 3Zm0 3q-.825 0-1.413-.588T10 13q0-.575.238-1.137t.912-1.613L12 9l.85 1.25q.675 1.05.913 1.613T14 13q0 .825-.588 1.413T12 15Z",rn="M35 887 l-27 -23 0 -404 0 -404 27 -23 c26 -23 28 -23 329 -23 284 0 305 1 327 19 l24 19 0 412 0 412 -24 19 c-22 18 -43 19 -327 19 -301 0 -303 0 -329 -23z m585 -157 l0 -80 -255 0 -255 0 0 80 0 80 255 0 255 0 0 -80z m-242 -229 c44 -34 40 -46 -14 -46 -60 0 -97 -38 -93 -94 5 -64 -23 -80 -35 -20 -9 44 24 113 63 134 35 18 34 15 21 50 -11 29 -14 30 58 -24z m110 -129 c4 -51 -19 -97 -59 -117 -27 -14 -30 -20 -23 -48 l6 -31 -51 43 c-29 24 -49 46 -46 49 3 4 23 5 44 3 58 -4 95 32 97 95 3 60 1 57 17 52 6 -3 13 -23 15 -46z",sn="M6 3a2 2 0 0 0-2 2v11h2v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h2V5a2 2 0 0 0-2-2H6m6 4V5h6v2h-6m0 2h6v2h-6V9M8 5v4h2l-3 6v-4H5l3-6m14 15v2H2v-2h20Z",ln="M5 20v-8H2l10-9l10 9h-3v8H5m7-14.31l-5 4.5V18h10v-7.81l-5-4.5M11.5 18v-4H9l3.5-7v4H15l-3.5 7Z",dn="M 12 3 z z M 19 20 v -8 h 3 L 12 3 L 2 12 h 3 v 8 z M 12 5.7 l 5 4.5 V 18 H 7 v -7.8 z",cn="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42A8.962 8.962 0 0 0 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9a8.994 8.994 0 0 0 7.03-14.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7z",un="m19.95 17.15l-1.5-1.5q.275-.675.413-1.337T19 13q0-2.9-2.05-4.95T12 6q-.6 0-1.275.125t-1.4.4l-1.5-1.5q.95-.5 2.012-.763T12 4q1.5 0 2.938.5t2.712 1.45l1.4-1.4l1.4 1.4l-1.4 1.4q.95 1.275 1.45 2.713T21 13q0 1.05-.263 2.087t-.787 2.063ZM13 10.2V8h-2v.2l2 2Zm6.8 12.4l-2.4-2.4q-1.2.875-2.588 1.338T12 22q-1.85 0-3.488-.713T5.65 19.35q-1.225-1.225-1.938-2.863T3 13q0-1.5.463-2.888T4.8 7.6L1.4 4.2l1.4-1.4l18.4 18.4l-1.4 1.4ZM12 20q1.05 0 2.05-.325t1.875-.925L6.2 9.025q-.6.875-.9 1.875T5 13q0 2.9 2.05 4.95T12 20ZM9 3V1h6v2H9Zm2.075 10.875Zm2.825-2.8Z",hn="m5.18 5.45l-1.78-.9L4.66 2h8.47l1.27 2.55l-1.78.89L11.9 4h-6l-.72 1.45M15.5 8H11l-.8-3H7.6l-.79 3H2.28L1 10.55l1.79.89L3.5 10h10.78l.72 1.45l1.79-.89L15.5 8m-.83 14H12.6l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H3.13L6 11h2.09l-.36 1.35L8.9 14.1l1.16-1.75L9.71 11h2.07l2.89 11M8.3 15l-.9-1.35l-1.18 4.48L8.3 15m3.28 3.12l-1.18-4.48L9.5 15l2.08 3.12M23 16l-4-4v3h-4v2h4v3l4-4Z",pn="M 26 16 L 22 12 L 22 15 L 18 15 L 18 17 L 22 17 L 22 20 L 26 16 Z M 22.1 21.5 L 2.4 1.7 L 1.1 3 L 6.1 8 L 5.4 8 L 4.1 10.5 L 5.9 11.4 L 6.6 10 L 8.1 10 L 9.1 11 L 6.2 22 L 8.3 22 L 8.5 21.1 L 12 15.9 L 15.5 21.1 L 15.7 22 L 17.8 22 L 17 18.8 L 20.9 22.7 L 22.1 21.5 M 9.3 18.1 L 10.5 13.6 L 11.4 14.9 L 9.3 18.1 M 14.7 18.1 L 12.6 15 L 12.8 14.7 L 14.1 16 L 14.7 18.1 M 14.2 11 L 14.9 11 L 15.1 11.9 L 14.2 11 M 14.1 8 L 18.6 8 L 19.9 10.6 L 18.1 11.5 L 17.4 10 L 13.2 10 L 10.2 7 L 10.7 5 L 13.3 5 L 14.1 8 M 8.4 5.2 L 6.9 3.7 L 7.8 2 L 16.3 2 L 17.6 4.5 L 15.8 5.4 L 15 4 L 9 4 L 8.4 5.2 Z",yn="M15.95 21.175L13.1 18.35l1.425-1.4l1.425 1.4l3.525-3.525l1.425 1.4l-4.95 4.95ZM8 22q-.425 0-.713-.288T7 21V5q0-.425.288-.713T8 4h2V2h4v2h2q.425 0 .713.288T17 5v7q-.525 0-1.025.088T15 12.35V6H9v14h2.35q.2.575.488 1.075t.687.925H8Zm1-2h2.35H11h.35H9Z",gn="m15 13l-4 4v-3H2v-2h9V9l4 4M5 20v-4h2v2h10v-7.81l-5-4.5L7.21 10H4.22L12 3l10 9h-3v8H5Z",fn="M11.5 19h1v-1.85l3.5-3.5V9H8v4.65l3.5 3.5V19Zm-2 2v-3L6 14.5V9q0-.825.588-1.413T8 7h1L8 8V3h2v4h4V3h2v5l-1-1h1q.825 0 1.413.588T18 9v5.5L14.5 18v3h-5Zm2.5-7Z",mn="M10 3H8v1.88l2 2zm6 6v3.88l1.8 1.8l.2-.2V9c0-1.1-.9-2-2-2V3h-2v4h-3.88l2 2H16zM4.12 3.84L2.71 5.25L6 8.54v5.96L9.5 18v3h5v-3l.48-.48l4.47 4.47l1.41-1.41L4.12 3.84zm8.38 13.33V19h-1v-1.83L8 13.65v-3.11l5.57 5.57l-1.07 1.06z",wn="m5.39 5.45-1.78-.9L4.87 2h8.47l1.27 2.55-1.78.89L12.11 4h-6zM15.73 8H11.2l-.79-3h-2.6L7 8H2.5l-1.29 2.55 1.79.89.73-1.44H14.5l.71 1.45 1.79-.89zm-.85 14h-2.07l-.24-.9-3.46-5.2-3.47 5.2-.23.9H3.34l2.89-11h2.07l-.36 1.35 1.17 1.75 1.16-1.75-.35-1.35H12zm-6.38-7-.89-1.35-1.18 4.48zm3.29 3.12-1.18-4.48-.9 1.36zM15 16l4-4v3H23v2h-4v3z",vn="m11.39 5.45l-1.78-.9L10.87 2h8.47l1.27 2.55l-1.78.89L18.11 4h-6zM21.73 8H17.2l-.79-3h-2.6L13 8H8.5l-1.29 2.55l1.79.89l.73-1.44H20.5l.71 1.45l1.79-.89zm-.85 14h-2.07l-.24-.9l-3.46-5.2l-3.47 5.2l-.23.9H9.34l2.89-11h2.07l-.36 1.35l1.17 1.75l1.16-1.75l-.35-1.35H18zm-6.38-7l-.89-1.35l-1.18 4.48zm3.29 3.12l-1.18-4.48l-.9 1.36zM9 16l-4-4v3H1v2h4v3z",xn="M22.1 21.5L2.4 1.7L1.1 3l5 5h-.7l-1.3 2.5l1.8.9l.7-1.4h1.5l1 1l-2.9 11h2.1l.2-.9l3.5-5.2l3.5 5.2l.2.9h2.1l-.8-3.2l3.9 3.9l1.2-1.2M9.3 18.1l1.2-4.5l.9 1.3l-2.1 3.2m5.4 0L12.6 15l.2-.3l1.3 1.3l.6 2.1m-.5-7.1h.7l.2.9l-.9-.9m-.1-3h4.5l1.3 2.6l-1.8.9l-.7-1.5h-4.2l-3-3l.5-2h2.6l.8 3M8.4 5.2L6.9 3.7L7.8 2h8.5l1.3 2.5l-1.8.9L15 4H9l-.6 1.2Z",_n="m8.28 5.45l-1.78-.9L7.76 2h8.47l1.27 2.55l-1.78.89L15 4H9l-.72 1.45M18.62 8h-4.53l-.79-3h-2.6l-.79 3H5.38L4.1 10.55l1.79.89l.73-1.44h10.76l.72 1.45l1.79-.89L18.62 8m-.85 14H15.7l-.24-.9L12 15.9l-3.47 5.2l-.23.9H6.23l2.89-11h2.07l-.36 1.35L12 14.1l1.16-1.75l-.35-1.35h2.07l2.89 11m-6.37-7l-.9-1.35l-1.18 4.48L11.4 15m3.28 3.12l-1.18-4.48l-.9 1.36l2.08 3.12Z",An="M11.45 2v3.55L15 3.77L11.45 2m-1 6L8 10.46l3.75 1.25L10.45 8M2 11.45L3.77 15l1.78-3.55H2M10 2H2v8c.57.17 1.17.25 1.77.25c3.58.01 6.49-2.9 6.5-6.5c-.01-.59-.1-1.18-.27-1.75m7 20v-6h-3l5-9v6h3l-5 9Z";var bn,Pn,En,Ln,Cn,Mn,Nn,kn,Sn,Dn,On,Tn,In,Bn,Gn;var Vn,zn,Rn,jn,Hn,Wn,Un,Qn,Zn,Fn,Yn;class Xn{constructor(){}getBatteryCapacity(e,t,n,o,a){let i=0;return e>0?i="off"===t||"0"===t||"off-grid"===t.toLowerCase()||!o.show||parseInt(a.state)<=o.capacity?n:o.capacity:e<0&&("off"===t||"0"===t||"off-grid"===t.toLowerCase()||!o.show||parseInt(a.state)>=o.capacity?i=100:parseInt(a.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",o="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",a="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",o="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",a="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",o="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",a="#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",o="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",a="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",o="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",a="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",o="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",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 16.5 11 16.5 11 15.5H5zH5z",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 18 11 18 11 17H5zM5 17z",a="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",o="M11 19M5.02 18.5v1L11 19.5 11 18.5zM5 19z",a="orange";break;case 0<=parseInt(e.state)&&parseInt(e.state)<10:default:n=t,o=t,a="red"}return{batteryIcon:n,batteryCharge:o,stopColour:a,battery0:t}}}function xo(e){return{...e,toNum:(t,n)=>Jt.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||"kwh"===n?Jt.toNum(1e3*(e?.state||"0"),0,t):"mw"===n||"mwh"===n?Jt.toNum(1e6*(e?.state||"0"),0,t):Jt.toNum(e?.state||"0",0,t)||0},toPowerString:(t,n,o)=>t?Jt.convertValueNew(e?.state,e?.attributes?.unit_of_measurement,n||0):"".concat(Jt.toNum(e?.state,0,o)," ").concat(e?.attributes?.unit_of_measurement||""),toString:()=>e?.state?.toString()||"",getUOM:()=>e?.attributes?.unit_of_measurement||""}}console.groupCollapsed("%c ⚡ SUNSYNK-POWER-FLOW-CARD %c ".concat(bt("common.version"),": ").concat("4.38.0"," "),"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 ve}static getConfigElement(){return document.createElement("content-card-editor")}static getStubConfig(){return{cardstyle:_e.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(){_t.hass=this.hass;const e=this._config,t=this.getEntity("entities.day_battery_discharge_71"),n=this.getEntity("entities.day_battery_charge_70"),o=this.getEntity("entities.day_load_energy_84"),a=this.getEntity("entities.day_grid_import_76"),i=this.getEntity("entities.day_pv_energy_108"),r=this.getEntity("entities.day_grid_export_77"),s=this.getEntity("entities.day_aux_energy"),l=this.getEntity("entities.inverter_voltage_154"),d=this.getEntity("entities.load_frequency_192"),c=this.getEntity("entities.inverter_current_164"),u=this.getEntity("entities.inverter_status_59",{state:""}),h=this.getEntity("entities.inverter_power_175"),p=this.getEntity("entities.priority_load_243",{state:e.entities.priority_load_243?.toString()??"false"}),y=this.getEntity("entities.use_timer_248",{state:e.entities.use_timer_248?.toString()??"false"}),g=this.getEntity("entities.dc_transformer_temp_90",{state:""}),f=this.getEntity("entities.radiator_temp_91",{state:""}),m=this.getEntity("entities.inverter_voltage_L2",{state:""}),w=this.getEntity("entities.inverter_voltage_L3",{state:""}),v=this.getEntity("entities.inverter_current_L2",{state:""}),x=this.getEntity("entities.inverter_current_L3",{state:""}),_=this.getEntity("entities.environment_temp",{state:""}),A=this.getEntity("entities.battery_voltage_183"),b=this.getEntity("entities.battery_soc_184"),P=this.getEntity("entities.battery_power_190"),E=this.getEntity("entities.battery_current_191"),L=this.getEntity("entities.battery_temp_182",{state:""}),C=this.getEntity("entities.battery_status",{state:""}),M=this.getEntity("entities.battery_current_direction",{state:""}),N=this.getEntity("entities.battery_rated_capacity",{state:""}),k=this.getEntity("battery.shutdown_soc",{state:e.battery.shutdown_soc?.toString()??""}),S=this.getEntity("battery.shutdown_soc_offgrid",{state:e.battery.shutdown_soc_offgrid?.toString()??""}),D=this.getEntity("entities.essential_power"),O=this.getEntity("entities.aux_power_166"),T=this.getEntity("entities.nonessential_power"),I=this.getEntity("entities.non_essential_load1"),B=this.getEntity("entities.non_essential_load2"),G=this.getEntity("entities.non_essential_load3"),V=this.getEntity("entities.non_essential_load1_extra"),z=this.getEntity("entities.non_essential_load2_extra"),R=this.getEntity("entities.essential_load1"),j=this.getEntity("entities.essential_load2"),H=this.getEntity("entities.essential_load3"),W=this.getEntity("entities.essential_load4"),U=this.getEntity("entities.aux_connected_status",{state:"on"}),F=this.getEntity("entities.aux_load1"),Y=this.getEntity("entities.aux_load2"),X=this.getEntity("entities.essential_load1_extra"),J=this.getEntity("entities.essential_load2_extra"),K=this.getEntity("entities.load_power_L1"),q=this.getEntity("entities.load_power_L2"),$=this.getEntity("entities.load_power_L3"),ee=this.getEntity("entities.aux_load1_extra"),te=this.getEntity("entities.aux_load2_extra"),ne=this.getEntity("entities.grid_ct_power_172"),oe=this.getEntity("entities.grid_ct_power_L2"),ae=this.getEntity("entities.grid_ct_power_L3"),ie=this.getEntity("entities.grid_ct_power_total"),re=this.getEntity("entities.grid_connected_status_194",{state:"on"}),se=this.getEntity("entities.grid_power_169"),le=this.getEntity("entities.energy_cost_buy",{state:"",attributes:{unit_of_measurement:""}}),de=this.getEntity("entities.energy_cost_sell",{state:"",attributes:{unit_of_measurement:""}}),ce=this.getEntity("entities.grid_voltage",null),ue=this.getEntity("entities.prepaid_units"),he=this.getEntity("entities.max_sell_power"),pe=this.getEntity("entities.pv1_voltage_109"),ye=this.getEntity("entities.pv1_current_110"),ge=this.getEntity("entities.pv2_voltage_111"),fe=this.getEntity("entities.pv2_current_112"),we=this.getEntity("entities.pv3_voltage_113"),ve=this.getEntity("entities.pv3_current_114"),_e=this.getEntity("entities.pv4_voltage_115"),be=this.getEntity("entities.pv4_current_116"),Pe=this.getEntity("entities.pv1_power_186"),Ee=this.getEntity("entities.pv2_power_187"),Le=this.getEntity("entities.pv3_power_188"),Ce=this.getEntity("entities.pv4_power_189"),Me=this.getEntity("entities.remaining_solar"),Ne=this.getEntity("entities.solar_sell_247",{state:"undefined"}),ke=this.getEntity("entities.pv_total"),Se=this.getEntity("entities.total_pv_generation");let{invert_aux:De}=e.load,Oe=O.toPower(De),{invert_grid:Te}=e.grid,Ie=ne.toPower(Te),Be=oe.toPower(Te),Ge=ae.toPower(Te),Ve=ie.toPower(Te),ze=e.entities?.grid_ct_power_total?Ve:Ie+Be+Ge,Re=e.inverter.three_phase?ze:Ie,je=ce.isNaN()?null:ce.toNum(0),He=M.isNaN()?null:M.toNum(0),We=e.inverter?.modern,Ue=this.colourConvert(e.load?.colour),Qe=this.calculateAuxLoadColour(O,0)||Ue,Ze=this.colourConvert(e.load?.aux_off_colour||Qe),Fe=this.calculateAuxLoadColour(F,0)||Ue,Ye=this.calculateAuxLoadColour(Y,0)||Ue;e.title_colour=this.colourConvert(e.title_colour);let Xe=e.load?.show_daily,Je=e.grid?.show_nonessential,Ke=e.entities?.grid_connected_status_194?re.state:"on";St.includes(Ke.toLowerCase())||kt.includes(Ke.toLowerCase())||(Ke="on");let qe=e.entities?.aux_connected_status?U.state:"on",$e=e.entities?.load_frequency_192?d.toNum(2):0,et=e.entities?.inverter_voltage_154?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?l.toNum(0):l.toNum(1):0,tt=e.entities?.inverter_voltage_L2?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?m.toNum(0):m.toNum(1):"",nt=e.entities?.inverter_voltage_L3?e.inverter.three_phase&&(this.isLiteCard||this.isCompactCard)?w.toNum(0):w.toNum(1):"",ot=e.entities?.inverter_current_164?c.toNum(1):0,at=e.entities?.inverter_current_L2?v.toNum(1):"",it=e.entities?.inverter_current_L3?x.toNum(1):"",rt=e.entities?.battery_voltage_183?A.toNum(1):0,st=e.entities?.inverter_power_175?h.toPower():0,lt=e.entities?.grid_power_169?se.toPower():0,{invert_load:dt}=e.load,ct=e.entities?.load_power_L1?K.toPower(dt):"",ut=e.entities?.load_power_L2?q.toPower(dt):"",ht=e.entities?.load_power_L3?$.toPower(dt):"";const pt=this.colourConvert(e.grid?.colour),yt=this.colourConvert(e.grid?.export_colour||pt),gt=this.colourConvert(e.grid?.no_grid_colour||pt);let ft;switch(!0){case Re<0:ft=yt;break;case 0===Re:ft=gt;break;default:ft=pt}const mt=this.colourConvert(e.grid?.grid_off_colour||ft);let wt=e.grid?.additional_loads;Lt.includes(wt)||(wt=0),e.solar?.efficiency;let vt=e.grid?.show_daily_buy,xt=e.grid?.show_daily_sell,At=this.colourConvert(e.battery?.colour),Pt=this.colourConvert(e.battery?.charge_colour||At),Dt=e.battery?.show_daily,Gt=e.solar?.show_daily,Vt=e.load?.show_aux;Mt.includes(Vt)||(Vt=!1);let zt=e.load?.show_daily_aux,Rt=e.load?.additional_loads;(!Et.includes(Rt)||this.isFullCard&&[3,4].includes(Rt)&&Vt||this.isFullCard&&[3].includes(Rt))&&(Rt=0);let jt=e.load?.aux_loads;Nt.includes(jt)||(jt=0);let Ht=e.load?.aux_type;const Wt=this.getEntity("load.load1_icon",{state:e.load?.load1_icon?.toString()??""}).state,Ut=this.getEntity("load.load2_icon",{state:e.load?.load2_icon?.toString()??""}).state,Qt=this.getEntity("load.load3_icon",{state:e.load?.load3_icon?.toString()??""}).state,Zt=this.getEntity("load.load4_icon",{state:e.load?.load4_icon?.toString()??""}).state,Ft=this.getEntity("load.aux_load1_icon",{state:e.load?.aux_load1_icon?.toString()??""}).state,Yt=this.getEntity("load.aux_load2_icon",{state:e.load?.aux_load2_icon?.toString()??""}).state,Xt=this.getEntity("grid.nonessential_icon",{state:e.grid?.nonessential_icon?.toString()??""}).state,Xn=this.getEntity("grid.load1_icon",{state:e.grid?.load1_icon?.toString()??""}).state,Jn=this.getEntity("grid.load2_icon",{state:e.grid?.load2_icon?.toString()??""}).state,Kn=this.getEntity("grid.load3_icon",{state:e.grid?.load3_icon?.toString()??""}).state;let qn=e.decimal_places,$n=e.decimal_places_energy,eo=!!e.entities.remaining_solar&&Jt.convertValueNew(Me.state,Me.attributes?.unit_of_measurement,qn),to=!!e.entities.total_pv_generation&&Jt.convertValueNew(Se.state,Se.attributes?.unit_of_measurement,2),no=e.large_font,oo=e.panel_mode,ao=this.colourConvert(e.inverter?.colour),io=e.inverter?.autarky,ro=!!e.entities.use_timer_248&&y.state,so=!!e.entities.priority_load_243&&p.state,lo=P.toPower(e.battery?.invert_power);const co=this.getEntity("card_height",{state:e.card_height?.toString()??""}).state,uo=this.getEntity("card_width",{state:e.card_width?.toString()??""}).state;let ho=0===e.grid?.energy_cost_decimals?0:e.grid?.energy_cost_decimals||2,po=Re>=0?le.toNum(ho):de.toNum(ho),yo=xe.Sunsynk;Object.values(xe).includes(e.inverter.model)&&(yo=e.inverter.model);let go="";const fo=wo.getInstance(yo);We||(go=fo.image);let mo=!1;this.isCompactCard&&(mo=!0);let xo,_o,Ao=Pe.toPower(),bo=Ee.toPower(),Po=Le.toPower(),Eo=Ce.toPower(),Lo=Ao+bo+Po+Eo,Co=e.entities?.pv_total?ke.toNum():Lo,Mo=e.solar.dynamic_colour?Jt.toNum(Co,0)>10?this.colourConvert(e.solar?.colour):"grey":this.colourConvert(e.solar?.colour),No=e.inverter?.three_phase;Ct.includes(No)||(No=!1);const{essential_power:ko,nonessential_power:So}=e.entities;_o=!1===No?"none"!==So&&So?T.toPower():Ie-lt:"none"!==So&&So?T.toPower():Ie+Be+Ge-lt,xo="none"!==ko&&ko?D.toPower(dt):!0===No&&e.entities.load_power_L1&&e.entities.load_power_L2?Number(ct)+Number(ut)+Number(ht):st+lt-Oe;const Do={time:this.getEntity("entities.prog1_time",{state:e.entities.prog1_time??""}),capacity:this.getEntity("entities.prog1_capacity",{state:e.entities.prog1_capacity??""}),charge:this.getEntity("entities.prog1_charge",{state:e.entities.prog1_charge??""})},Oo={time:this.getEntity("entities.prog2_time",{state:e.entities.prog2_time??""}),capacity:this.getEntity("entities.prog2_capacity",{state:e.entities.prog2_capacity??""}),charge:this.getEntity("entities.prog2_charge",{state:e.entities.prog2_charge??""})},To={time:this.getEntity("entities.prog3_time",{state:e.entities.prog3_time??""}),capacity:this.getEntity("entities.prog3_capacity",{state:e.entities.prog3_capacity??""}),charge:this.getEntity("entities.prog3_charge",{state:e.entities.prog3_charge??""})},Io={time:this.getEntity("entities.prog4_time",{state:e.entities.prog4_time??""}),capacity:this.getEntity("entities.prog4_capacity",{state:e.entities.prog4_capacity??""}),charge:this.getEntity("entities.prog4_charge",{state:e.entities.prog4_charge??""})},Bo={time:this.getEntity("entities.prog5_time",{state:e.entities.prog5_time??""}),capacity:this.getEntity("entities.prog5_capacity",{state:e.entities.prog5_capacity??""}),charge:this.getEntity("entities.prog5_charge",{state:e.entities.prog5_charge??""})},Go={time:this.getEntity("entities.prog6_time",{state:e.entities.prog6_time??""}),capacity:this.getEntity("entities.prog6_capacity",{state:e.entities.prog6_capacity??""}),charge:this.getEntity("entities.prog6_charge",{state:e.entities.prog6_charge??""})};let Vo=S.toNum(),zo=k.toNum(),Ro={capacity:zo,entityID:""};switch(!0){case"off"===y.state:case!ro:case!e.entities.prog1_time:case!e.entities.prog2_time:case!e.entities.prog3_time:case!e.entities.prog4_time:case!e.entities.prog5_time:case!e.entities.prog6_time:Ro.show=!1;break;default:Ro.show=!0;const ii=new Date,ri=[];[Do,Oo,To,Io,Bo,Go].forEach(((e,t)=>{const[n,o]=e.time.state.split(":").map((e=>parseInt(e,10)));ri[t]=new Date(ii.getTime()),ri[t].setHours(n),ri[t].setMinutes(o)}));const[si,li,di,ci,ui,hi]=ri;function pi(e,t){"No Grid or Gen"===e.charge.state||"0"===e.charge.state||"off"===e.charge.state?Ro.charge="none":Ro.charge="both",Ro.capacity=parseInt(e.capacity.state),Ro.entityID=t}ii>=hi||ii=si&&ii=li&&ii=di&&ii=ci&&ii=ui&&ii50?"on":"off"),null!=He&&yo==xe.Solis&&0===He&&(lo=-lo);let jo=0;if(e.show_battery)switch(yo){case xe.GoodweGridMode:case xe.Goodwe:case xe.Huawei:lo>0?jo="on"!==Ke&&"1"!==Ke&&"on-grid"!==Ke.toLowerCase()||Ro.show?"off"!==Ke&&"0"!==Ke&&"off-grid"!==Ke.toLowerCase()||!S.notEmpty()||Ro.show?zo:Vo:zo:lo<0&&(jo=100);break;default:jo=fo.getBatteryCapacity(lo,Ke,zo,Ro,b)}let Ho=0,Wo="",Uo="";let Qo=this.getEntity("battery.energy",{state:e.battery.energy?.toString()??""}).toPower(!1);if(rt&&N.notEmpty()&&(Qo=Jt.toNum(rt*N.toNum(0),0)),e.show_battery||0!==Qo){0===lo?Ho=(b.toNum()-zo)/100*Qo*60*60:lo>0?Ho=(b.toNum()-jo)/100*Qo/lo*60*60:lo<0&&(Ho=(jo-b.toNum(0))/100*Qo/lo*60*60*-1);const yi=new Date,gi=1e3*Ho,fi=new Date(yi.getTime()+gi),mi=fi.getHours(),wi=fi.getMinutes().toString().padStart(2,"0"),vi=mi.toString().padStart(2,"0");Wo="".concat(vi,":").concat(wi);const xi=Math.floor(Ho/86400),_i=Math.floor(Ho%86400/3600),Ai=Math.floor(Ho%3600/60);xi>0&&(Uo+="".concat(xi," ").concat(bt("common.days"),",")),(_i>0||xi>0)&&(Uo+="".concat(_i," ").concat(bt("common.hrs"),",")),Uo+="".concat(Ai," ").concat(bt("common.min"))}let Zo,Fo=-2<=E.toNum(0)&&E.toNum(0)<=2&&b.toNum(0)>=99;Zo=lo<0&&!Fo?Pt:At;let Yo="",Xo="",Jo=u.state,Ko=!1;yo==xe.Solis&&(Jo=u.isNaN()?u.toString():u.toNum(0).toString());let qo=fo.statusGroups;if(qo)for(const bi of Object.keys(qo)){const Pi=qo[bi],{states:Ei,color:Li,message:Ci}=Pi;if(Ei.includes(Jo.toLowerCase())){Yo=Li,Xo=Ci,Ko=!0;break}}Ko||("none"!==e.entities?.inverter_status_59&&e.entities?.inverter_status_59?(Yo="transparent",Xo="Status"):(Yo="transparent",Xo=""));let $o="transparent",ea="";if([xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(yo)){let Mi=fo.batteryStatusGroups;if(Mi)for(const Ni of Object.keys(Mi)){const ki=Mi[Ni],{states:Si,color:Di,message:Oi}=ki;if(Si.includes(C.state.toLowerCase())){$o=Di,ea=Oi,Ko=!0;break}}Ko||("none"!==e.entities?.battery_status&&e.entities?.battery_status?($o="transparent",ea="Status"):($o="transparent",ea=""))}let ta=i.toNum()+t.toNum(),na=o.toNum()+n.toNum(),oa=0!=na?Math.max(Math.min(Math.round(100*ta/na),100),0):0,aa=0!=ta?Math.max(Math.min(Math.round(100*na/ta),100),0):0,ia=Co+Jt.toNum("".concat(lo>0?lo:0))+Jt.toNum("".concat(Oe<0?-1*Oe:0)),ra=xo+Math.max(_o,0)+Jt.toNum("".concat(Oe>0?Oe:0))+Jt.toNum("".concat(lo<0?-1*lo:0)),sa=0!=ra?Math.max(Math.min(Math.round(100*ia/ra),100),0):0,la=0!=ia?Math.max(Math.min(Math.round(100*ra/ia),100),0):0,da=(Jt.toNum(e.max_line_width)<1?1:e.max_line_width)-1,ca=Jt.toNum(e.min_line_width)||1;let ua=this.getEntity("battery.max_power",{state:e.battery.max_power?.toString()??""}).toNum(0);const ha=this.getEntity("solar.max_power",{state:e.solar.max_power?.toString()??""}),pa=this.getEntity("load.max_power",{state:e.load.max_power?.toString()??""}),ya=this.getEntity("grid.max_power",{state:e.grid.max_power?.toString()??""});let ga=e.solar.max_power?this.dynamicLineWidth(Ao,ha.toNum()||Ao,da,ca):ca,fa=e.solar.max_power?this.dynamicLineWidth(bo,ha.toNum()||bo,da,ca):ca,ma=e.solar.max_power?this.dynamicLineWidth(Po,ha.toNum()||Po,da,ca):ca,wa=e.solar.max_power?this.dynamicLineWidth(Eo,ha.toNum()||Eo,da,ca):ca,va=e.battery.max_power?this.dynamicLineWidth(Math.abs(lo),ua||Math.abs(lo),da,ca):ca,xa=e.load.max_power?this.dynamicLineWidth(Math.abs(xo),pa.toNum()||Math.abs(xo),da,ca):ca,_a=e.load.max_power?this.dynamicLineWidth(Math.abs(Oe),pa.toNum()||Math.abs(Oe),da,ca):ca,Aa=e.grid.max_power?this.dynamicLineWidth(Math.abs(Re),ya.toNum()||Math.abs(Re),da,ca):ca,ba=e.grid.max_power?this.dynamicLineWidth(Math.abs(lt),ya.toNum()||Math.abs(lt),da,ca):ca,Pa=e.grid.max_power?this.dynamicLineWidth(Math.abs(_o),ya.toNum()||Math.abs(_o),da,ca):ca,Ea=e.solar.max_power?this.dynamicLineWidth(Co,ha.toNum()||Co,da,ca):ca;if(e&&e.solar&&e.solar.animation_speed){const Ti=e.solar.animation_speed-(e.solar.animation_speed-1)*(Co/(ha.toNum()||Co));this.changeAnimationSpeed("solar",Ti)}if(e&&e.solar&&e.solar.animation_speed){const Ii=e.solar.animation_speed-(e.solar.animation_speed-1)*(Ao/(ha.toNum()||Ao));this.changeAnimationSpeed("pv1",Ii)}if(e&&e.solar&&e.solar.animation_speed){const Bi=e.solar.animation_speed-(e.solar.animation_speed-1)*(bo/(ha.toNum()||bo));this.changeAnimationSpeed("pv2",Bi)}if(e&&e.solar&&e.solar.animation_speed){const Gi=e.solar.animation_speed-(e.solar.animation_speed-1)*(Po/(ha.toNum()||Po));this.changeAnimationSpeed("pv3",Gi)}if(e&&e.solar&&e.solar.animation_speed){const Vi=e.solar.animation_speed-(e.solar.animation_speed-1)*(Eo/(ha.toNum()||Eo));this.changeAnimationSpeed("pv4",Vi)}if(e&&e.battery&&e.battery.animation_speed){const zi=e.battery.animation_speed-(e.battery.animation_speed-1)*(Math.abs(lo)/(ua||Math.abs(lo)));this.changeAnimationSpeed("battery",zi)}if(e&&e.load&&e.load.animation_speed){const Ri=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(xo)/(pa.toNum()||Math.abs(xo)));this.changeAnimationSpeed("load",Ri),this.changeAnimationSpeed("load1",Ri)}if(e&&e.load&&e.load.animation_speed){const ji=e.load.animation_speed-(e.load.animation_speed-1)*(Math.abs(Oe)/(pa.toNum()||Math.abs(Oe)));this.changeAnimationSpeed("aux",ji),this.changeAnimationSpeed("aux1",ji)}if(e&&e.grid&&e.grid.animation_speed){const Hi=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(Re)/(ya.toNum()||Math.abs(Re)));this.changeAnimationSpeed("grid1",Hi),this.changeAnimationSpeed("grid",Hi),this.changeAnimationSpeed("grid2",Hi)}if(e&&e.grid&&e.grid.animation_speed){const Wi=e.grid.animation_speed-(e.grid.animation_speed-1)*(Math.abs(_o)/(ya.toNum()||Math.abs(_o)));this.changeAnimationSpeed("ne",Wi)}const La=0===Co?0:"off"!==so&&so||lo>0?Co/(No?xo+Math.max(Oe,0):xo)*100:(Co-Math.abs(lo))/(No?xo+Math.max(Oe,0):xo)*100,Ca=lo<=0?0:Math.abs(lo)/(No?xo+Math.max(Oe,0):xo)*100,Ma=La+Ca,Na=0===Ma?0:La/Ma*100,ka=0===Ma?0:Ca/Ma*100;let Sa=0,Da=0,Oa=0;Ma>100?(Sa=Jt.toNum(Na,0),Da=Jt.toNum(ka,0)):(Sa=Jt.toNum(Math.min(La,100),0),Da=Jt.toNum(Math.min(Ca,100),0),Oa=100-(Sa+Da));const Ta=0===Co||lo>=0?0:"off"!==so&&so?(Co-xo)/Math.abs(lo)*100:Co/Math.abs(lo)*100,Ia=lo>=0||Re<=0?0:"on"===so?Co-xo>=Math.abs(lo)?0:(Re-Math.max(xo-Co,0))/Math.abs(lo)*100:Co>=Math.abs(lo)?0:(Math.abs(lo)-Co)/Math.abs(lo)*100,Ba=Ta+Ia,Ga=0===Ba?0:Ta/Ba*100,Va=0===Ba?0:Ia/Ba*100;let za,Ra,ja,Ha,Wa=0,Ua=0;switch(Ba>100?(Wa=Jt.toNum(Ga,0),Ua=Jt.toNum(Va,0)):(Wa=Jt.toNum(Math.min(Ta,100),0),Ua=Jt.toNum(Math.min(Ia,100),0)),!0){case 100===Wa:za=Mo;break;case 100===Ua:za=ft;break;default:za=Zo}switch(!0){case La>=100&&Ca<=5&&Re-_o<50&&e.load.dynamic_icon:Ra=en,ja=1,Ha=Mo;break;case Ca>=100&&La<=5&&Re-_o<50&&e.load.dynamic_icon:Ra=qt,ja=0,Ha=Zo;break;case La<5&&Ca<5&&Oa>0&&e.load.dynamic_icon:Ra=$t,ja=0,Ha=ft;break;default:Ra=Kt,ja=0,Ha=Ue}const{batteryIcon:Qa,batteryCharge:Za,stopColour:Fa,battery0:Ya}=vo.convert(b),Xa=this.getEntity("solar.pv1_max_power",{state:e.solar.pv1_max_power?.toString()??""}),Ja=this.getEntity("solar.pv2_max_power",{state:e.solar.pv2_max_power?.toString()??""}),Ka=this.getEntity("solar.pv3_max_power",{state:e.solar.pv3_max_power?.toString()??""}),qa=this.getEntity("solar.pv4_max_power",{state:e.solar.pv4_max_power?.toString()??""}),$a=e.solar.max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Co/ha.toNum()*100,200),0):100,ei=e.solar.pv1_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Ao/Xa.toNum()*100,200),0):100,ti=e.solar.pv2_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(bo/Ja.toNum()*100,200),0):100,ni=e.solar.pv3_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Po/Ka.toNum()*100,200),0):100,oi=e.solar.pv4_max_power&&0!==e.solar.efficiency?Jt.toNum(Math.min(Eo/qa.toNum()*100,200),0):100,ai={config:e,panelMode:oo,compactMode:mo,cardHeight:co,cardWidth:uo,loadColour:Ue,batteryColour:Zo,gridColour:ft,isFloating:Fo,inverterColour:ao,solarColour:Mo,auxOffColour:Ze,batteryEnergy:Qo,largeFont:no,batteryPower:lo,batteryDuration:Uo,batteryCapacity:jo,additionalLoad:Rt,essIconSize:ja,essIcon:Ra,stateUseTimer:y,batteryStateMsg:ea,stateBatterySoc:b,inverterProg:Ro,solarShowDaily:Gt,batteryPercentage:Da,pvPercentage:Sa,loadShowDaily:Xe,stateEnergyCostSell:de,stateEnergyCostBuy:le,loadPowerL1:ct,loadPowerL2:ut,loadPowerL3:ht,durationCur:this.durationCur,stateEssentialLoad1:R,stateEssentialLoad2:j,stateEssentialLoad3:H,stateEssentialLoad4:W,gridPower:Ie,gridPowerL2:Be,gridPowerL3:Ge,decimalPlaces:qn,decimalPlacesEnergy:$n,stateEssentialLoad1Extra:X,stateEssentialLoad2Extra:J,stateNonEssentialLoad1Extra:V,stateNonEssentialLoad2Extra:z,loadFrequency:$e,statePV4Current:be,gridShowDailyBuy:vt,gridShowDailySell:xt,batteryShowDaily:Dt,inverterModel:yo,batteryShutdown:zo,enableAutarky:io,autarkyPower:sa,ratioPower:la,ratioEnergy:aa,autarkyEnergy:oa,shutdownOffGrid:Vo,statePV1Current:ye,statePV2Current:fe,statePV3Current:ve,energyCost:po,inverterCurrent:ot,inverterCurrentL2:at,inverterCurrentL3:it,stateRadiatorTemp:f,inverterVoltage:et,inverterVoltageL2:tt,inverterVoltageL3:nt,batteryVoltage:rt,stateBatteryCurrent:E,batLineWidth:va,totalGridPower:Re,solarLineWidth:Ea,totalPV:Co,loadLineWidth:xa,pvPercentageBat:Wa,gridPercentageBat:Ua,genericInverterImage:We,battery0:Ya,essentialPower:xo,pv1LineWidth:ga,pv2LineWidth:fa,pv3LineWidth:ma,pv4LineWidth:wa,gridLineWidth:Aa,pv1PowerWatts:Ao,pv2PowerWatts:bo,pv3PowerWatts:Po,pv4PowerWatts:Eo,stateEnvironmentTemp:_,statePV1Voltage:pe,statePV2Voltage:ge,statePV3Voltage:we,statePV4Voltage:_e,batteryStateColour:$o,inverterStateColour:Yo,stateBatteryTemp:L,statePrepaidUnits:ue,stateDCTransformerTemp:g,iconEssentialLoad1:Wt,iconEssentialLoad2:Ut,iconEssentialLoad3:Qt,iconEssentialLoad4:Zt,enableTimer:ro,stateSolarSell:Ne,priorityLoad:so,inverterImg:go,stateDayPVEnergy:i,statePV2Power:Ee,statePV3Power:Le,statePV4Power:Ce,remainingSolar:eo,totalSolarGeneration:to,stateDayLoadEnergy:o,stateDayBatteryDischarge:t,stateDayGridImport:a,stateDayBatteryCharge:n,stateDayGridExport:r,statePVTotal:ke,statePV1Power:Pe,minLineWidth:ca,stopColour:Fa,gridStatus:Ke,batteryCharge:Za,gridOffColour:mt,batteryIcon:Qa,formattedResultTime:Wo,showAux:Vt,nonessentialIcon:Xt,showNonessential:Je,auxStatus:qe,nonessentialLoads:wt,additionalAuxLoad:jt,stateAuxLoad1Extra:ee,stateAuxLoad2Extra:te,iconNonessentialLoad1:Xn,iconNonessentialLoad2:Jn,iconNonessentialLoad3:Kn,inverterStateMsg:Xo,auxType:Ht,showDailyAux:zt,nonessentialPower:_o,auxPower:Oe,nonessLineWidth:Pa,grid169LineWidth:ba,auxLineWidth:_a,iconAuxLoad1:Ft,iconAuxLoad2:Yt,stateDayAuxEnergy:s,stateAuxLoad1:F,stateAuxLoad2:Y,stateNonessentialLoad1:I,stateNonessentialLoad2:B,stateNonessentialLoad3:G,autoScaledInverterPower:st,autoScaledGridPower:lt,auxDynamicColour:Qe,auxDynamicColourLoad1:Fe,auxDynamicColourLoad2:Ye,stateMaxSellPower:he,totalPVEfficiency:$a,PV1Efficiency:ei,PV2Efficiency:ti,PV3Efficiency:ni,PV4Efficiency:oi,gridPercentage:Oa,flowColour:Ha,flowBatColour:za};return this.isFullCard?((e,t,n)=>Q(bn||(bn=me(["\n \n \n
\n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ",'\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n ','\n \n ','\n \n \n ',"\n ","\n ","\n ",'\n \n \n ','%\n \n \n ','%\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \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 \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 ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \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 \n \n \n \n ',"\n ",'\n \n \n \n \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,n.auxDynamicColour,n.auxDynamicColourLoad1,n.auxDynamicColourLoad2,n.auxOffColour,n.gridColour,n.gridColour,e.title?Q(Pn||(Pn=me(['\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%",[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,n.batteryColour,e.show_battery?"":"none",n.gridColour,e.show_grid?"":"none",n.gridColour,e.show_grid?"":"none",n.auxDynamicColour,n.showAux?"":"st12",n.loadColour,e.inverter.three_phase?60:50,n.inverterColour,[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,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,4].includes(n.additionalLoad)?"":"none",n.showAux?"410":"413",n.showAux?"149":"30",n.loadColour,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,!n.showAux&&[3].includes(n.additionalLoad)?"":"none",n.auxDynamicColourLoad1,n.showAux?"":"none",[1,2].includes(n.additionalAuxLoad)?"":"st12",n.auxDynamicColourLoad2,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),bt("common.runtime_to"),n.batteryCapacity,n.formattedResultTime,e.show_battery?"":"none",0===n.batteryEnergy||n.batteryPower>=0||n.isFloating?"transparent":"".concat(n.batteryColour),bt("common.to"),n.batteryCapacity,bt("common.charge"),n.formattedResultTime,e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",bt("common.battery_floating"),e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8 left-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.totalPVEfficiency,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,Jt.toNum(n.batteryEnergy*(n.stateBatterySoc?.toNum()/100)/1e3,2),Tt.KILO_WATT_HOUR,[0].includes(n.additionalLoad)||!n.showAux&&[1,2].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name,[1,2].includes(n.additionalLoad)&&n.showAux||!n.showAux&&[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.essential_name,n.showAux?181:70,1===n.additionalLoad?"":"none",n.loadColour,e.load.load1_name,n.showAux?402:405,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load1_name,n.showAux?415:418,n.showAux?178:59,[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load2_name,[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load3_name,[4].includes(n.additionalLoad)?"":"none",n.loadColour,e.load.load4_name,(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux?"".concat(n.loadColour):"transparent",bt("common.daily_load"),0===n.additionalLoad?"377":"238",0===n.additionalLoad?71:93,!n.loadShowDaily||n.showAux?"transparent":"".concat(n.loadColour),bt("common.daily_load"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.total_solar_generation"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_charge"),!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_discharge"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"256":"253":"368",!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_buy"),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"225":"222":"337",!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_sell"),!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".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===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.autarky"),n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.ratio"),1===n.additionalAuxLoad?53:14,n.showAux&&0!==n.additionalAuxLoad?"":"none",n.auxDynamicColourLoad1,e.load.aux_load1_name,!n.showAux||[0,1].includes(n.additionalAuxLoad)?"none":"",n.auxDynamicColourLoad2,e.load.aux_load2_name,([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux?"":"none",n.auxDynamicColour,e.load.aux_daily_name,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:"",Ot.WATT,n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.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",[xe.GoodweGridMode,xe.Goodwe,xe.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":"",[4].includes(n.additionalLoad)?"":"st12",n.loadColour,n.showAux?"none":"",1===n.additionalLoad?"":"st12",n.loadColour,n.showAux?"none":"",[2,4].includes(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",e.battery.dynamic_colour?n.flowBatColour: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(e.battery.dynamic_colour?n.flowBatColour: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.auxDynamicColour,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.auxDynamicColour),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.auxDynamicColour),n.durationCur.aux,n.showAux?"":"st12",n.auxDynamicColour,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.auxDynamicColour),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.auxDynamicColour),n.durationCur.aux,n.gridColour,n.grid169LineWidth,e.show_grid?"":"none",Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower<0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,Math.min(2+n.gridLineWidth+Math.max(n.minLineWidth-2,0),8),n.autoScaledGridPower>0||0===n.autoScaledGridPower?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",n.durationCur.grid,e.inverter.three_phase?"M 180 223 L 180 235":"M 180 212 L 180 235",n.inverterColour,n.minLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,n.genericInverterImage?1:0,n.inverterColour,rn,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),n.batteryColour,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.battery.animate?"y2":"none",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,An,(t=>Jt.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",kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",_n,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",St.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",xn,e.inverter.three_phase?"404":"389",e.inverter.three_phase?"339":"308",e.inverter.three_phase?"34":"65",e.inverter.three_phase?"34":"65",kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",vn,"default"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"oven"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"boiler"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"aircon"===n.nonessentialIcon?"1":"0",e.show_grid&&n.showNonessential&&![1,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,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,dn,"default"===n.iconNonessentialLoad1&&"default"!=n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"default"!=n.iconNonessentialLoad1&&"default"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,dn,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"boiler"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"pump"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"oven"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,"aircon"===n.iconNonessentialLoad2?"1":"0",e.show_grid&&n.showNonessential&&![0,1].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,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,dn,"boiler"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,tn,"pump"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,an,"oven"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,nn,"aircon"===n.iconNonessentialLoad1?"1":"0",e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.gridColour,on,e.show_grid&&n.showNonessential&&![0,2,3].includes(n.nonessentialLoads)?"":"none",n.iconNonessentialLoad1,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2].includes(n.additionalLoad)&&n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[4].includes(n.additionalLoad)&&!n.showAux?"":"none",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,1===n.essIconSize?"82.5":"78.5",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,[1,2,3,4].includes(n.additionalLoad)?"none":"",e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,(t=>Jt.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.auxDynamicColour):"".concat(n.auxOffColour),ln,"gen"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),sn,"inverter"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),rn,"oven"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),nn,"boiler"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),tn,"aircon"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),on,"pump"===n.auxType?"":"st12",!n.showAux||[1,2].includes(n.additionalAuxLoad)?"none":"","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),an,!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].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"boiler"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,tn,"aircon"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&[2,3,4].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,on,"aircon"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,on,"pump"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,an,"pump"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,an,"oven"===n.iconEssentialLoad1&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&[2].includes(n.additionalLoad)?"1":"0",n.showAux&&[2].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad1&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&[2,4].includes(n.additionalLoad)&&!n.showAux?"1":"0",[2,4].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"!==n.iconEssentialLoad1||1!==n.additionalLoad||n.showAux?"0":"1",[1].includes(n.additionalLoad)?"":"none",n.loadColour,nn,"oven"===n.iconEssentialLoad1&&1===n.additionalLoad?"1":"0",n.showAux&&[1].includes(n.additionalLoad)?"":"none",n.loadColour,nn,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"371":"384",n.showAux?"123":"5",n.iconEssentialLoad1,[2,4].includes(n.additionalLoad)?"":"none",n.showAux?"429":"421",n.showAux?"123":"5",n.iconEssentialLoad2,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad3,[4].includes(n.additionalLoad)?"":"none",n.iconEssentialLoad4,[1].includes(n.additionalLoad)?"":"none",(n.showAux,"336"),n.showAux?"140":"27",n.iconEssentialLoad1,(t=>Jt.handlePopup(t,e.entities.use_timer_248)),n.enableAutarky!=Ae.No?"232":"249","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,cn,n.enableAutarky!=Ae.No?"232":"249","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,un,n.enableAutarky!=Ae.No?"243":"260","on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_on"),n.enableAutarky!=Ae.No?"243":"260","off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_off"),(t=>Jt.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,hn,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,pn,(t=>Jt.handlePopup(t,e.entities.priority_load_243)),"no"!=n.enableAutarky?"251":"268","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,yn,"no"!=n.enableAutarky?"251":"268","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,gn,n.enableAutarky!=Ae.No?"262":"280","on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_load"),n.enableAutarky!=Ae.No?"262":"280","off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_batt"),n.genericInverterImage?"st12":"",t,(e=>Jt.handlePopup(e,n.inverterProg.entityID)),n.enableAutarky!=Ae.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,fn,n.enableAutarky!=Ae.No?"232":"249",!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,mn,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy),n.remainingSolar,(t=>Jt.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,n.decimalPlacesEnergy),n.totalSolarGeneration,(t=>Jt.handlePopup(t,e.entities.day_load_energy_84)),(n.additionalAuxLoad,"238"),n.loadShowDaily&&n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_load_energy_84)),0===n.additionalLoad?"377":"238",0===n.additionalLoad?"57":"80",n.loadShowDaily&&!n.showAux&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_battery_charge_70)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryCharge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryCharge.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_battery_discharge_71)),!0===n.batteryShowDaily&&e.show_battery&&n.stateDayBatteryDischarge.isValid()?"":"none",n.batteryColour,n.stateDayBatteryDischarge.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_import_76)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"242":"239":"354",e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_export_77)),n.showNonessential?"347":"311",n.showNonessential?e.entities?.max_sell_power?"212":"209":"323",e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.max_sell_power)),n.showNonessential?"347":"311",n.showNonessential?"198":"309",["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",bt("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.day_aux_energy)),([1,2].includes(n.additionalAuxLoad),"238"),n.showAux&&!0===n.showDailyAux&&n.stateDayAuxEnergy.isValid()?"":"none",n.auxDynamicColour,n.stateDayAuxEnergy.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.essential_load2_extra)),e.entities?.essential_load2_extra&&[2,4].includes(n.additionalLoad)&&!n.showAux&&n.stateEssentialLoad2Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2Extra.toNum(1),n.stateEssentialLoad2Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.non_essential_load1_extra)),e.entities?.non_essential_load1_extra&&[1,2].includes(n.nonessentialLoads)&&n.stateNonEssentialLoad1Extra.isValid()&&e.show_grid?"":"none",n.gridColour,n.stateNonEssentialLoad1Extra.toNum(1),n.stateNonEssentialLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.non_essential_load2_extra)),e.entities?.non_essential_load2_extra&&2===n.nonessentialLoads&&n.stateNonEssentialLoad2Extra.isValid()&&e.show_grid?"":"none",n.gridColour,n.stateNonEssentialLoad2Extra.toNum(1),n.stateNonEssentialLoad2Extra?.getUOM(),e.inverter.three_phase?e.entities?.grid_ct_power_total?Z(En||(En=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(Ln||(Ln=me(['\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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(Cn||(Cn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))),e.entities?.pv_total?Z(Mn||(Mn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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?Jt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)):Z(Nn||(Nn=me(['\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?Jt.convertValueNew(n.totalPV,n.statePVTotal?.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(kn||(kn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)):Z(Sn||(Sn=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)),e.entities?.nonessential_power&&"none"!==e.entities.nonessential_power?Z(Dn||(Dn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.nonessential_power)),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Jt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ot.WATT)):Z(On||(On=me(['\n \n ',"\n "])),e.show_grid&&n.showNonessential?"":"none",!0!==n.largeFont?"st14":"st4",n.gridColour,e.grid.auto_scale?"".concat(Jt.convertValue(n.nonessentialPower,n.decimalPlaces)||0):"".concat(n.nonessentialPower||0," ").concat(Ot.WATT)),e.entities?.aux_power_166?Z(Tn||(Tn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.aux_power_166)),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Jt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ot.WATT)):Z(In||(In=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.showAux?"":"none",n.auxDynamicColour,e.load.auto_scale?"".concat(e.load.show_absolute_aux?"".concat(Math.abs(parseFloat(Jt.convertValue(n.auxPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.auxPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.auxPower,n.decimalPlaces)||"0"):"".concat(e.load.show_absolute_aux?"".concat(Math.abs(n.auxPower)):n.auxPower||0," ").concat(Ot.WATT)),(t=>Jt.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?Jt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv1PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv2PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv3PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv4PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.aux_load1)),!0!==n.largeFont?"st14":"st4",n.showAux&&0!==n.additionalAuxLoad&&n.stateAuxLoad1.isValid()?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.aux_load2)),!0!==n.largeFont?"st14":"st4",n.showAux&&![0,1].includes(n.additionalAuxLoad)&&n.stateAuxLoad2.isValid()?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1)),n.showAux?"391":"394",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load2)),n.showAux?"427":"430",n.showAux?"160":"41",[2,4].includes(n.additionalLoad)&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load3)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load4)),[4].includes(n.additionalLoad)&&n.stateEssentialLoad4.isValid()?"":"none",n.loadColour,n.stateEssentialLoad4.toPowerString(e.load.auto_scale,n.decimalPlaces),n.totalGridPower>=0?Z(Bn||(Bn=me(['\n \n \n ','\n \n \n ',"\n \n "])),(t=>Jt.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,e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_buy&&n.stateEnergyCostBuy.isValid()?"":"none",n.stateEnergyCostBuy?.getUOM()):Z(Gn||(Gn=me(['\n \n \n ','}\n \n \n ',"\n \n "])),(t=>Jt.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,e.show_grid?"st3 right-align":"st12",n.gridColour,e.entities?.energy_cost_sell&&n.stateEnergyCostSell.isValid()?"":"none",n.stateEnergyCostSell?.getUOM()),(t=>Jt.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,Bt.VOLT,(t=>Jt.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,Bt.VOLT,(t=>Jt.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,Bt.VOLT,(t=>Jt.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=>Jt.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,It.AMPERE,(t=>Jt.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,It.AMPERE,(t=>Jt.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,It.AMPERE,(t=>Jt.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,Bt.VOLT,(t=>Jt.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(0),(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",(t=>Jt.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(Jt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ot.WATT):"".concat(n.batteryPower||0," ").concat(Ot.WATT)),(t=>Jt.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(Jt.toNum(n.stateBatteryCurrent.state,1)):Jt.toNum(n.stateBatteryCurrent.state,1),It.AMPERE,(t=>Jt.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(Jt.convertValue(n.autoScaledInverterPower,n.decimalPlaces)||0):"".concat(n.autoScaledInverterPower," ").concat(Ot.WATT),(t=>Jt.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(Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.autoScaledGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.autoScaledGridPower)," ").concat(Ot.WATT):"".concat(n.autoScaledGridPower||0," ").concat(Ot.WATT)),(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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=>Jt.handlePopup(t,e.entities.radiator_temp_91)),4===e.solar?.mppts?"110":"134",4===e.solar?.mppts?"237":"153",n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Jt.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=>Jt.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=>Jt.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),(t=>Jt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&![1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none","on"===n.auxStatus||"1"===n.auxStatus?"".concat(n.auxDynamicColour):"".concat(n.auxOffColour),n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.aux_load1_extra)),n.showAux&&[1,2].includes(n.additionalAuxLoad)&&e.entities.aux_load1_extra?"":"none",n.auxDynamicColourLoad1,n.stateAuxLoad1Extra.toNum(1),n.stateAuxLoad1Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.aux_load2_extra)),n.showAux&&![0,1].includes(n.additionalAuxLoad)&&e.entities.aux_load2_extra?"":"none",n.auxDynamicColourLoad2,n.stateAuxLoad2Extra.toNum(1),n.stateAuxLoad2Extra?.getUOM(),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Jt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L2)),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(Jt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L3)),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(Jt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ot.WATT)))(e,go,ai):this.isLiteCard||this.isCompactCard?((e,t,n)=>Q(Vn||(Vn=me(["\n \n \n
\n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n ','\n \n \n '," ","% @",'\n \n \n '," ","% ","\n @",'\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','%\n \n ','\n \n ','\n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ','\n \n \n ',"\n ",'\n \n \n ','%\n \n \n ','%\n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n
\n \n
\n \n
\n
\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n ','\n \n ','\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \n \n \n ','\n \n \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 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 \n \n \n \n ','\n \n \n \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?Q(zn||(zn=me(['\n ',""])),e.title_colour||"inherit",e.title_size||"32px",e.title):"",e.show_solar?1:0===n.additionalLoad&&e.show_battery?145.33:80,e.show_solar?e.show_battery?408:[2,3,4].includes(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,3,4].includes(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,[1,3].includes(e.solar.efficiency)?"url(#SlG)":n.solarColour,1===e.solar.mppts?"none":"",e.show_solar?"":"st12",0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,0===n.totalPVEfficiency?"grey":n.solarColour,n.totalPVEfficiency,n.totalPVEfficiency<100?"grey":n.solarColour,n.totalPVEfficiency<100?"grey":n.solarColour,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",[1,3].includes(e.solar.efficiency)?"url(#PV1LG)":n.solarColour,e.show_solar?"":"st12",0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,0===n.PV1Efficiency?"grey":n.solarColour,n.PV1Efficiency,n.PV1Efficiency<100?"grey":n.solarColour,n.PV1Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV2LG)":n.solarColour,e.show_solar&&1!==e.solar.mppts?"":"st12",0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,0===n.PV2Efficiency?"grey":n.solarColour,n.PV2Efficiency,n.PV2Efficiency<100?"grey":n.solarColour,n.PV2Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV3LG)":n.solarColour,!e.show_solar||[1,2].includes(e.solar.mppts)?"st12":"",0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,0===n.PV3Efficiency?"grey":n.solarColour,n.PV3Efficiency,n.PV3Efficiency<100?"grey":n.solarColour,n.PV3Efficiency<100?"grey":n.solarColour,[1,3].includes(e.solar.efficiency)?"url(#PV4LG)":n.solarColour,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"st12":"",0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,0===n.PV4Efficiency?"grey":n.solarColour,n.PV4Efficiency,n.PV4Efficiency<100?"grey":n.solarColour,n.PV4Efficiency<100?"grey":n.solarColour,n.loadColour,[1,2,3].includes(n.additionalLoad)?"":"none",n.loadColour,2===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,4===n.additionalLoad?"":"none",n.loadColour,[3,4].includes(n.additionalLoad)?"":"none",n.loadColour,[3,4].includes(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),bt("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),bt("common.to"),n.batteryCapacity,bt("common.charge"),n.formattedResultTime,n.compactMode?"270":"290",e.show_battery?"":"none",0!==n.batteryEnergy&&n.isFloating?"".concat(n.batteryColour):"transparent",bt("common.battery_floating"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_charge"),n.compactMode?"132":"77.2",!0===n.batteryShowDaily&&e.show_battery?"".concat(n.batteryColour):"transparent",bt("common.daily_discharge"),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"189":"282.1",n.loadShowDaily?"".concat(n.loadColour):"transparent",bt("common.daily_load"),!0!==n.gridShowDailyBuy?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_buy"),!0!==n.gridShowDailySell?"transparent":"".concat(n.gridColour),e.show_grid?"":"none",bt("common.daily_grid_sell"),1===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar"),2===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.daily_solar_left"),3===e.solar.display_mode?"":"none",n.solarShowDaily&&e.show_solar?"".concat(n.solarColour):"transparent",bt("common.total_solar_generation"),1===e.solar.mppts?"230":"179",e.show_solar?"":"none",n.solarColour,e.solar.pv1_name,1===e.solar.mppts?"230":"179",[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV1Efficiency,e.show_solar&&1!==e.solar.mppts?"":"none",n.solarColour,e.solar.pv2_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||1===e.solar.mppts||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV2Efficiency,!e.show_solar||[1,2].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv3_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV3Efficiency,!e.show_solar||[1,2,3].includes(e.solar.mppts)?"none":"",n.solarColour,e.solar.pv4_name,[2,3].includes(e.solar.efficiency)?"st3 st8 right-align":"st12",!e.show_solar||[1,2,3].includes(e.solar.mppts)||[0,1].includes(e.solar.efficiency)?"none":"",n.solarColour,n.PV4Efficiency,[2,3].includes(e.solar.efficiency)?"st3 st8":"st12",1===e.solar.mppts?"none":"",n.solarColour,n.totalPVEfficiency,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Energy?"st4 st8 left-align":"st12",n.inverterColour,n.ratioEnergy,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.autarkyPower,n.enableAutarky===Ae.No?"none":"",n.enableAutarky===Ae.Power?"st4 st8 left-align":"st12",n.inverterColour,n.ratioPower,n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.autarky"),n.enableAutarky===Ae.No?"none":"",n.inverterColour,bt("common.ratio"),[1,2,3].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):"",3===n.additionalLoad?"":"none",n.loadColour,e.load?.load2_name?"".concat(e.load.load2_name):"",3===n.additionalLoad?"":"none",n.loadColour,e.load?.load3_name?"".concat(e.load.load3_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(Jt.convertValue(n.loadPowerL1,n.decimalPlaces)||0):"".concat(n.loadPowerL1||0," ").concat(Ot.WATT),e.inverter.three_phase&&e.entities?.load_power_L2?"":"none",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.loadPowerL2,n.decimalPlaces)||0):"".concat(n.loadPowerL2||0," ").concat(Ot.WATT),e.inverter.three_phase&&e.entities?.load_power_L3?"":"none",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.loadPowerL3,n.decimalPlaces)||0):"".concat(n.loadPowerL3||0," ").concat(Ot.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,Jt.toNum(n.batteryEnergy*(n.stateBatterySoc.toNum(2)/100)/1e3,2),Tt.KILO_WATT_HOUR,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown,n.compactMode?"343":"363",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st14 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.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",e.battery.dynamic_colour?n.flowBatColour: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(e.battery.dynamic_colour?n.flowBatColour: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,e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,e.load.dynamic_colour?n.flowColour:n.loadColour,n.loadLineWidth,Math.min(2+n.loadLineWidth+Math.max(n.minLineWidth-2,0),8),0===n.essentialPower?"transparent":"".concat(e.load.dynamic_colour?n.flowColour:n.loadColour),n.durationCur.load,1===n.additionalLoad?"":"st12",n.loadColour,[2,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,[2,3,4].includes(n.additionalLoad)?"":"st12",n.loadColour,"oven"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,nn,"oven"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,nn,"pump"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,an,"pump"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,an,"aircon"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,on,"aircon"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,on,"boiler"===n.iconEssentialLoad1&&[1,2].includes(n.additionalLoad)?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,tn,"boiler"===n.iconEssentialLoad2&&2===n.additionalLoad?"1":"0",0===n.additionalLoad?"none":"",n.loadColour,tn,[0,4].includes(n.additionalLoad)?"none":"",n.iconEssentialLoad1,[0,1,3,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,3===n.additionalLoad?"":"none",n.iconEssentialLoad2,3===n.additionalLoad?"":"none",n.iconEssentialLoad3,e.show_solar?"":"st12",n.solarColour,An,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),n.batteryColour,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.battery.animate?"y2":"none",e.show_battery?"":"st12",e.battery.linear_gradient?"url(#sLg)":n.batteryColour,e.battery.linear_gradient?"":"none",n.batteryCharge,(t=>Jt.handlePopup(t,e.entities.grid_connected_status_194)),kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower<0?"none":"",_n,St.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridOffColour,e.show_grid?"":"none",xn,kt.includes(n.gridStatus.toLowerCase())?"st12":"",n.gridColour,!e.show_grid||n.totalGridPower>=0?"none":"",wn,1===n.essIconSize?"405":"402",1===n.essIconSize?"186":"177.5",1===n.essIconSize?"75":"79",1===n.essIconSize?"75":"79",n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.gridPercentage>0?n.gridColour:n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.batteryPercentage>0?n.batteryColour:n.solarColour,n.gridPercentage+n.batteryPercentage,n.solarColour,n.solarColour,e.load.dynamic_colour?"url(#Lg)":n.loadColour,n.essIcon,n.genericInverterImage?1:0,n.inverterColour,rn,(t=>Jt.handlePopup(t,e.entities.use_timer_248)),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,cn,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,un,"off"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_off"),"on"==n.stateUseTimer.state&&"no"!==n.enableTimer?"":"none",n.inverterColour,bt("common.timer_on"),(t=>Jt.handlePopup(t,e.entities.priority_load_243)),"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,yn,"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,gn,"off"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_batt"),"on"!==n.priorityLoad||"no"===n.priorityLoad&&n.priorityLoad?"none":"",n.inverterColour,bt("common.priority_load"),(t=>Jt.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,hn,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,pn,n.genericInverterImage?"st12":"",t,(e=>Jt.handlePopup(e,n.inverterProg.entityID)),!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"===n.inverterProg.charge||"off"!=n.stateUseTimer.state&&"on"!=n.stateUseTimer.state?"st12":"",n.inverterColour,fn,!1===n.inverterProg.show||"no"===n.enableTimer?"none":"","none"!==n.inverterProg.charge||"off"!==n.stateUseTimer.state&&"on"!==n.stateUseTimer.state?"st12":"",n.inverterColour,mn,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.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,n.decimalPlacesEnergy)+" / "+n.remainingSolar,(t=>Jt.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,n.decimalPlacesEnergy)+" / "+n.totalSolarGeneration,(t=>Jt.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,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_load_energy_84)),[2,3,4].includes(n.additionalLoad)?"365":"412",[2,3,4].includes(n.additionalLoad)?"175":"267.9",n.loadShowDaily&&n.stateDayLoadEnergy.isValid()?"":"none",n.loadColour,n.stateDayLoadEnergy?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_import_76)),e.show_grid&&!0===n.gridShowDailyBuy&&n.stateDayGridImport.isValid()?"":"none",n.gridColour,n.stateDayGridImport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.day_grid_export_77)),e.show_grid&&!0===n.gridShowDailySell&&n.stateDayGridExport.isValid()?"":"none",n.gridColour,n.stateDayGridExport?.toPowerString(!0,n.decimalPlacesEnergy),(t=>Jt.handlePopup(t,e.entities.max_sell_power)),["off","0"].includes(n.stateSolarSell.state)?"grey":n.gridColour,e.show_grid&&n.stateMaxSellPower.isValid&&e.entities?.max_sell_power?"":"none",bt("common.limit"),n.stateMaxSellPower.toPowerString(e.grid.auto_scale,n.decimalPlaces),(t=>Jt.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:"",Bt.VOLT,(t=>Jt.handlePopup(t,e.entities.load_frequency_192)),"none"!==e.entities.load_frequency_192&&e.entities.load_frequency_192?"":"none",n.inverterColour,n.loadFrequency,(t=>Jt.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:"",It.AMPERE,(t=>Jt.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,Bt.VOLT,(t=>Jt.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,Bt.VOLT,(t=>Jt.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=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,!1===n.inverterProg.show||"none"===e.entities.battery_soc_184||!e.show_battery||[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)||e.battery.hide_soc?"none":"",n.inverterProg.capacity||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery?.shutdown_soc&&!e.battery?.shutdown_soc_offgrid?"":"none",n.batteryShutdown||0,(t=>Jt.handlePopup(t,e.entities.battery_soc_184)),n.compactMode?"330":"350",n.batteryColour,e.battery.hide_soc||!e.show_battery?"st12":"st13 st8 left-align",[xe.GoodweGridMode,xe.Goodwe,xe.Huawei].includes(n.inverterModel)&&e.battery.shutdown_soc_offgrid?"":"none",(t=>Jt.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(Jt.convertValue(n.batteryPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.batteryPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.batteryPower,n.decimalPlaces)||"0"):"".concat(e.battery.show_absolute?"".concat(Math.abs(n.batteryPower)," ").concat(Ot.WATT):"".concat(n.batteryPower||0," ").concat(Ot.WATT)),(t=>Jt.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),It.AMPERE,(t=>Jt.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),It.AMPERE,e.inverter.three_phase?e.entities?.grid_ct_power_total?Z(Rn||(Rn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(jn||(jn=me(['\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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))):Z(Hn||(Hn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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(Jt.convertValue(n.totalGridPower,n.decimalPlaces)))," ").concat(Jt.convertValue(n.totalGridPower,n.decimalPlaces).split(" ")[1]):Jt.convertValue(n.totalGridPower,n.decimalPlaces)||0):"".concat(e.grid.show_absolute?"".concat(Math.abs(n.totalGridPower)," ").concat(Ot.WATT):"".concat(n.totalGridPower||0," ").concat(Ot.WATT))),(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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),Bt.VOLT,(t=>Jt.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),It.AMPERE,(t=>Jt.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=>Jt.handlePopup(t,e.entities.radiator_temp_91)),n.inverterColour,e.entities?.radiator_temp_91&&n.stateRadiatorTemp.isValid()?"":"none",n.stateRadiatorTemp.toNum(1),(t=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load1_extra)),e.entities?.essential_load1_extra&&[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1Extra.isValid()?"":"none",n.loadColour,n.stateEssentialLoad1Extra.toNum(1),n.stateEssentialLoad1Extra.getUOM(),(t=>Jt.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?Z(Wn||(Wn=me(['\n \n \n '," ","\n \n "])),(t=>Jt.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()):Z(Un||(Un=me(['\n \n \n '," ","\n \n "])),(t=>Jt.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?Z(Qn||(Qn=me(['\n \n \n ',"\n \n "])),(t=>Jt.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?Jt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)):Z(Zn||(Zn=me(['\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?Jt.convertValueNew(n.totalPV,n.statePVTotal.getUOM(),n.decimalPlaces):Jt.convertValue(n.totalPV,n.decimalPlaces)||0:"".concat(Jt.toNum(n.totalPV||0,0)," ").concat(Ot.WATT)),(t=>Jt.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?Jt.convertValue(n.pv1PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv1PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv2PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv2PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv3PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv3PowerWatts||0,0)," ").concat(Ot.WATT),(t=>Jt.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?Jt.convertValue(n.pv4PowerWatts,n.decimalPlaces)||0:"".concat(Jt.toNum(n.pv4PowerWatts||0,0)," ").concat(Ot.WATT),e.entities?.essential_power&&"none"!==e.entities.essential_power?Z(Fn||(Fn=me(['\n \n \n ',"\n \n "])),(t=>Jt.handlePopup(t,e.entities.essential_power)),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)):Z(Yn||(Yn=me(['\n \n ',"\n "])),!0!==n.largeFont?"st14":"st4",n.loadColour,e.load.auto_scale?"".concat(Jt.convertValue(n.essentialPower,n.decimalPlaces)||0):"".concat(n.essentialPower||0," ").concat(Ot.WATT)),(t=>Jt.handlePopup(t,e.entities.essential_load1)),[1,2,3].includes(n.additionalLoad)&&n.stateEssentialLoad1.isValid()?"":"none",!0!==n.largeFont?"st14":"st4",n.loadColour,n.stateEssentialLoad1?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.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=>Jt.handlePopup(t,e.entities.essential_load2)),3===n.additionalLoad&&n.stateEssentialLoad2.isValid()?"":"none",n.loadColour,n.stateEssentialLoad2?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.handlePopup(t,e.entities.essential_load3)),3===n.additionalLoad&&n.stateEssentialLoad3.isValid()?"":"none",n.loadColour,n.stateEssentialLoad3?.toPowerString(e.load.auto_scale,n.decimalPlaces),(t=>Jt.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),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_172)),e.inverter.three_phase?"":"none",e.show_grid?"st3 left-align":"st12",n.gridColour,e.load.auto_scale?"".concat(Jt.convertValue(n.gridPower,n.decimalPlaces)||0):"".concat(n.gridPower||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L2)),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(Jt.convertValue(n.gridPowerL2,n.decimalPlaces)||0):"".concat(n.gridPowerL2||0," ").concat(Ot.WATT),(t=>Jt.handlePopup(t,e.entities.grid_ct_power_L3)),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(Jt.convertValue(n.gridPowerL3,n.decimalPlaces)||0):"".concat(n.gridPowerL3||0," ").concat(Ot.WATT)))(e,go,ai):void 0}getEntity(e,t={state:"0",attributes:{unit_of_measurement:""}}){let n;const o=String(e).split(".");o.length>1?n=this._config[o[0]][o[1]]:o.length>0&&(n=this._config[o[0]]);const a=n?this.hass.states[n]:void 0;return xo(void 0!==a?a:t||{state:void 0})}changeAnimationSpeed(e,t){const n=t>=1?Jt.toNum(t,3):1,o=this["".concat(e,"Flow")];this.durationCur[e]=n,o&&this.durationPrev[e]!=n&&o.setCurrentTime(o.getCurrentTime()*(n/this.durationPrev[e])),this.durationPrev[e]=this.durationCur[e]}get isCompactCard(){return this._config.cardstyle==_e.Compact}get isLiteCard(){return this._config.cardstyle==_e.Lite}get isFullCard(){return this._config.cardstyle==_e.Full}colourConvert(e){return e&&Array.isArray(e)?"rgb(".concat(e,")"):e}dynamicLineWidth(e,t,n,o=1){let a;return a=this._config.dynamic_line_width?Math.min(o+Math.min(e/t,1)*n,8):Math.min(o,8),a}calculateAuxLoadColour(e,t){return this._config.load.aux_dynamic_colour?Math.abs(e.toNum(0))>t?this.colourConvert(this._config.load?.aux_colour):"grey":this.colourConvert(this._config.load?.aux_colour)}setConfig(e){if(e.show_battery&&!e.battery)throw Error(bt("errors.battery.bat"));if(e.show_battery&&!e.battery.shutdown_soc)throw new Error(bt("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(bt("errors.battery.show_daily"));if(e.show_solar&&!e.solar)throw Error(bt("errors.solar.sol"));if(e.show_solar&&!e.solar.mppts)throw Error(bt("errors.solar.mppts"));if(e&&e.solar&&e.show_solar&&e.solar.show_daily&&!e.entities.day_pv_energy_108)throw Error(bt("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(bt("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(bt("errors.essential_power"));if(e&&e.entities&&"none"===e.entities.nonessential_power&&!e.entities.grid_power_169)throw Error(bt("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(bt("errors.missing_entity")," e.g: ").concat(n,": sensor.example"));const n=e;this._config=Wt({},Pt,n)}getCardSize(){return 2}},t([ye()],e.SunsynkPowerFlowCard.prototype,"hass",void 0),t([ye()],e.SunsynkPowerFlowCard.prototype,"_config",void 0),t([fe("#grid-flow")],e.SunsynkPowerFlowCard.prototype,"gridFlow",void 0),t([fe("#grid1-flow")],e.SunsynkPowerFlowCard.prototype,"grid1Flow",void 0),t([fe("#solar-flow")],e.SunsynkPowerFlowCard.prototype,"solarFlow",void 0),t([fe("#pv1-flow")],e.SunsynkPowerFlowCard.prototype,"pv1Flow",void 0),t([fe("#pv2-flow")],e.SunsynkPowerFlowCard.prototype,"pv2Flow",void 0),t([fe("#pv3-flow")],e.SunsynkPowerFlowCard.prototype,"pv3Flow",void 0),t([fe("#pv4-flow")],e.SunsynkPowerFlowCard.prototype,"pv4Flow",void 0),t([fe("#battery-flow")],e.SunsynkPowerFlowCard.prototype,"batteryFlow",void 0),t([fe("#load-flow")],e.SunsynkPowerFlowCard.prototype,"loadFlow",void 0),t([fe("#aux-flow")],e.SunsynkPowerFlowCard.prototype,"auxFlow",void 0),t([fe("#ne-flow")],e.SunsynkPowerFlowCard.prototype,"neFlow",void 0),t([fe("#ne1-flow")],e.SunsynkPowerFlowCard.prototype,"ne1Flow",void 0),e.SunsynkPowerFlowCard=t([ue("sunsynk-power-flow-card")],e.SunsynkPowerFlowCard);try{customElements.define("content-card-editor",Xt)}catch(e){}window.customCards=window.customCards||[],window.customCards.push({type:"sunsynk-power-flow-card",name:"Sunsynk Power Flow Card",preview:!0,description:bt("common.description"),configurable:!0})})); diff --git a/package.json b/package.json index 4b9a423c..f2b62bbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sunsynk-power-flow-card", - "version": "4.38.0", + "version": "4.39.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/cards/compact-card.ts b/src/cards/compact-card.ts index 870040cc..a2324245 100644 --- a/src/cards/compact-card.ts +++ b/src/cards/compact-card.ts @@ -437,9 +437,9 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - @@ -448,10 +448,10 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - + fill="${data.batteryPower > 0 || data.batteryPower === 0 ? 'transparent' : `${config.battery.dynamic_colour ? data.flowBatColour : data.batteryColour}`}"> @@ -526,11 +526,11 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - + fill="${data.essentialPower === 0 ? 'transparent' : `${config.load.dynamic_colour ? data.flowColour : data.loadColour}`}"> @@ -539,11 +539,11 @@ export const compactCard = (config: sunsynkPowerFlowCardConfig, inverterImg: str - + fill="${data.essentialPower === 0 ? 'transparent' : `${config.load.dynamic_colour ? data.flowColour : data.loadColour}`}"> diff --git a/src/cards/full-card.ts b/src/cards/full-card.ts index 97491b47..334e70b9 100644 --- a/src/cards/full-card.ts +++ b/src/cards/full-card.ts @@ -323,12 +323,12 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string display="${[4].includes(data.additionalLoad) ? '' : 'none'}" fill="${data.loadColour}"> ${config.load.load4_name} - ${localize('common.daily_load')} - ${localize('common.daily_load')} @@ -437,7 +437,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string fill="${data.auxDynamicColourLoad2}">${config.load.aux_load2_name} ${config.load.aux_daily_name} @@ -568,9 +568,9 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string - @@ -579,10 +579,10 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string - + fill="${data.batteryPower > 0 || data.batteryPower === 0 ? 'transparent' : `${config.battery.dynamic_colour ? data.flowBatColour : data.batteryColour}`}"> @@ -758,20 +758,20 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string + fill="${data.essentialPower === 0 ? 'transparent' : `${config.load.dynamic_colour ? data.flowColour : data.loadColour}`}"> - + fill="${data.essentialPower === 0 ? 'transparent' : `${config.load.dynamic_colour ? data.flowColour : data.loadColour}`}"> @@ -779,7 +779,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string Utils.handlePopup(e, config.entities.day_load_energy_84)}> - @@ -1599,7 +1599,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string Utils.handlePopup(e, config.entities.day_load_energy_84)}> - @@ -1654,7 +1654,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string Utils.handlePopup(e, config.entities.day_aux_energy)}> @@ -1694,7 +1694,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string Utils.handlePopup(e, config.entities.non_essential_load1_extra)}> - ${data.stateNonEssentialLoad1Extra.toNum(1)} @@ -1702,7 +1702,7 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string Utils.handlePopup(e, config.entities.non_essential_load2_extra)}> - ${data.stateNonEssentialLoad2Extra.toNum(1)} @@ -1965,14 +1965,25 @@ export const fullCard = (config: sunsynkPowerFlowCardConfig, inverterImg: string - ${data.energyCost} ${data.stateEnergyCostBuy?.getUOM()} + ${data.energyCost} + + + ${data.stateEnergyCostBuy?.getUOM()} + ` : svg` Utils.handlePopup(e, config.entities.energy_cost_sell)}> - ${data.energyCost} ${data.stateEnergyCostSell?.getUOM()} + ${data.energyCost}} + + + ${data.stateEnergyCostSell?.getUOM()} ` } diff --git a/src/index.ts b/src/index.ts index 7a58fd8b..c44f1f29 100644 --- a/src/index.ts +++ b/src/index.ts @@ -590,7 +590,7 @@ export class SunsynkPowerFlowCard extends LitElement { let batteryDuration = ''; const battenergy = this.getEntity('battery.energy', {state: config.battery.energy?.toString() ?? ''}); - let batteryEnergy = battenergy.toNum(0); + let batteryEnergy = battenergy.toPower(false); if (batteryVoltage && stateBatteryRatedCapacity.notEmpty()) { batteryEnergy = Utils.toNum(batteryVoltage * stateBatteryRatedCapacity.toNum(0), 0) } @@ -904,26 +904,44 @@ export class SunsynkPowerFlowCard extends LitElement { gridPercentageBat = Utils.toNum(Math.min(gridPercentageRawBat, 100), 0); } + let flowBatColour: string; + switch (true) { + case pvPercentageBat === 100: + flowBatColour = solarColour; + break; + case gridPercentageBat === 100: + flowBatColour = gridColour; + break; + default: + flowBatColour = batteryColour; + break; + } + //console.log(`${pvPercentageBat} % PV to charge battery, ${gridPercentageBat} % Grid to charge battery`); let essIcon: string; let essIconSize: number; + let flowColour: string; switch (true) { case pvPercentageRaw >= 100 && batteryPercentageRaw <= 5 && (totalGridPower - nonessentialPower) < 50 && config.load.dynamic_icon: essIcon = icons.essPv; essIconSize = 1; + flowColour = solarColour; break; case batteryPercentageRaw >= 100 && pvPercentageRaw <= 5 && (totalGridPower - nonessentialPower) < 50 && config.load.dynamic_icon: essIcon = icons.essBat; essIconSize = 0; + flowColour =batteryColour; break; case pvPercentageRaw < 5 && batteryPercentageRaw < 5 && gridPercentage > 0 && config.load.dynamic_icon: essIcon = icons.essGrid; essIconSize = 0; + flowColour = gridColour; break; default: essIcon = icons.ess; essIconSize = 0; + flowColour = loadColour; break; } @@ -1114,7 +1132,9 @@ export class SunsynkPowerFlowCard extends LitElement { PV2Efficiency, PV3Efficiency, PV4Efficiency, - gridPercentage + gridPercentage, + flowColour, + flowBatColour }; if (this.isFullCard) { diff --git a/src/inverters/dto/custom-entity.ts b/src/inverters/dto/custom-entity.ts index e81c16f4..b7926fe3 100644 --- a/src/inverters/dto/custom-entity.ts +++ b/src/inverters/dto/custom-entity.ts @@ -57,9 +57,9 @@ export function convertToCustomEntity(entity: any): CustomEntity { isNaN: () => entity?.state === null || Number.isNaN(entity?.state), toPower: (invert?: boolean) => { const unit = (entity.attributes?.unit_of_measurement || '').toLowerCase(); - if (unit === 'kw') { + if (unit === 'kw' || unit === 'kwh') { return Utils.toNum(((entity?.state || '0') * 1000), 0, invert); - } else if (unit === 'mw') { + } else if (unit === 'mw' || unit === 'mwh') { return Utils.toNum(((entity?.state || '0') * 1000000), 0, invert); } else { return Utils.toNum((entity?.state || '0'), 0, invert) || 0; diff --git a/src/types.ts b/src/types.ts index 1b4d3d20..337da74a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -443,5 +443,7 @@ export interface DataDto { PV2Efficiency, PV3Efficiency, PV4Efficiency, - gridPercentage + gridPercentage, + flowColour, + flowBatColour }