const _0x236d40=_0xa532;(function(_0x422cca,_0x485ef1){const _0x273ba7=_0xa532,_0x58dc5c=_0x422cca();while(!![]){try{const _0x137c3f=parseInt(_0x273ba7(0xc5f))/0x1+-parseInt(_0x273ba7(0x9b1))/0x2+parseInt(_0x273ba7(0x992))/0x3*(parseInt(_0x273ba7(0x4ac))/0x4)+-parseInt(_0x273ba7(0x1b7))/0x5+parseInt(_0x273ba7(0x4c4))/0x6+-parseInt(_0x273ba7(0x263))/0x7*(parseInt(_0x273ba7(0x5e6))/0x8)+parseInt(_0x273ba7(0xa78))/0x9*(-parseInt(_0x273ba7(0x791))/0xa);if(_0x137c3f===_0x485ef1)break;else _0x58dc5c['push'](_0x58dc5c['shift']());}catch(_0x268c9d){_0x58dc5c['push'](_0x58dc5c['shift']());}}}(_0x1195,0x86044));const VERSION='3.24',INTERVAL_PICKER_OPTIONS=Object[_0x236d40(0xad8)]([{'hours':0x1,'label':'1H'},{'hours':0x2,'label':'2H'},{'hours':0x4,'label':'4H'},{'hours':0x8,'label':'8H'},{'hours':0xc,'label':_0x236d40(0xc3e)},{'hours':0x18,'label':_0x236d40(0x611)},{'hours':0x48,'label':'3D'},{'hours':0xa8,'label':'7D'},{'hours':0x150,'label':_0x236d40(0x703)},{'hours':0x2d0,'label':_0x236d40(0xc29)},{'hours':0x870,'label':_0x236d40(0x516)},{'hours':0x10e0,'label':'6M'},{'hours':0x2238,'label':'1Y'}]),INTERVAL_PICKER_DEFAULT_LABELS=Object[_0x236d40(0xad8)](['1H','2H','4H','8H','12H','24H','7D']),DATE_PICKER_VALID_MODES=Object[_0x236d40(0xad8)]([_0x236d40(0xa49),_0x236d40(0x677),_0x236d40(0x74c),_0x236d40(0x40e)]),DATE_PICKER_RELATIVE_MODES=Object['freeze']({'last_24h':{'hours':0x18,'label':_0x236d40(0xcd0),'btn':_0x236d40(0x611)},'last_3d':{'days':0x3,'label':_0x236d40(0x237),'btn':'3D'},'last_7d':{'days':0x7,'label':'Last\x207\x20days','btn':'7D'},'last_15d':{'days':0xf,'label':_0x236d40(0x4f1),'btn':_0x236d40(0x3c3)},'last_30d':{'days':0x1e,'label':_0x236d40(0x44d),'btn':_0x236d40(0xc29)},'last_90d':{'days':0x5a,'label':_0x236d40(0x7be),'btn':_0x236d40(0x516)},'last_180d':{'days':0xb4,'label':'Last\x20180\x20days','btn':_0x236d40(0xcf7)},'last_12m':{'months':0xc,'label':'Last\x2012\x20months','btn':_0x236d40(0x8a0)}}),LIVE_FLUSH_DEBOUNCE_MS=0x3e8,LIVE_SLIDE_INTERVAL_MS=0x7530,CARD_DEFAULTS=Object[_0x236d40(0xad8)]({'card_header':'','card_icon':null,'card_icon_color':null,'card_icon_image':null,'card_header_size':null,'card_background_color':null,'card_shadow':!![],'card_border':!![],'card_padding':null,'card_border_radius':null,'card_border_color':null,'card_border_width':null,'card_background_image':null,'card_background_blur':null,'card_header_color':null,'card_header_weight':null,'card_header_letter_spacing':null,'card_icon_size':null,'card_icon_position':_0x236d40(0xa72),'align_header':_0x236d40(0xa72),'chart_mode':'timeline','chart_align':_0x236d40(0x2fc),'sparkline':![],'height':0x96,'animate_graph':![],'brush_zoom':!![],'stacked':![],'enable_zoom':!![],'hours_to_show':0x18,'points_per_hour':0x2,'auto_scale_points':![],'group_by':_0x236d40(0x4d3),'time_zone':_0x236d40(0x54e),'language':_0x236d40(0x54e),'update_interval':null,'cache':!![],'graph_start':null,'graph_start_hour':null,'graph_end_hour':null,'show_full_period':![],'max_visible_interval':null,'scroll_mode':_0x236d40(0xa0e),'show_grid':!![],'show_tooltip':!![],'show_tooltip_total':!![],'tooltip_stacked_total':!![],'show_x_axis':!![],'show_y_axis':!![],'show_y2_axis':![],'show_x_ticks':![],'show_y_ticks':![],'logarithmic':![],'lower_bound':null,'upper_bound':null,'lower_bound_secondary':null,'upper_bound_secondary':null,'min_bound_range':null,'min_bound_range_secondary':null,'y_axis_ticks':null,'y_axis_decimals':null,'y_axis_number_format':_0x236d40(0xa88),'y_axis_round_ticks':!![],'y_axis_label':null,'y2_axis_label':null,'show_y_axis_label':![],'y_axis_font_size':null,'y_axis_font_opacity':null,'y_axis_color':null,'x_axis_font_size':null,'x_axis_font_opacity':null,'x_axis_color':null,'x_axis_date_color':null,'x_axis_interval':null,'datetime_format':'system','x_grid_color':null,'x_grid_width':null,'x_grid_style':null,'x_grid_opacity':0.15,'y_grid_color':null,'y_grid_width':null,'y_grid_style':null,'y_grid_opacity':0.15,'bar_spacing':0x4,'period_highlight':![],'period_highlight_color':null,'state_timeline_corner_radius':0x3,'pie_style':'donut','pie_spacing':0x0,'pie_3d':![],'pie_label_font_size':null,'pie_label_color':null,'pie_label_format':_0x236d40(0x4be),'pie_center_font_size':null,'pie_center_color':null,'show_legend':![],'legend_position':_0x236d40(0x2fc),'show_interval_picker':![],'interval_picker_position':_0x236d40(0xa72),'show_attribute_list':![],'attribute_list_position':_0x236d40(0xa72),'show_pph_picker':![],'pph_picker_position':'left','show_group_by_picker':![],'group_by_picker_position':_0x236d40(0xa72),'pph_picker_group':null,'group_by_picker_group':null,'show_date_picker':![],'date_picker_position':_0x236d40(0xaca),'date_picker_nav_position':'left','date_picker_shortcuts_position':'right','auto_hide_entities':![],'y_axis_format':'','y2_axis_format':'','duration_unit':'s','date_picker_group':null,'interval_picker_group':null,'date_picker_step':0x1,'date_picker_default_mode':null,'tooltip_sync':![],'tooltip_sync_group':null,'zoom_sync':![],'zoom_sync_group':null,'scroll_sync':![],'scroll_sync_group':null,'energy_date_sync':![],'state_map':null,'state_layout':_0x236d40(0x6c6),'annotations':[],'show_now_line':!![],'now_line_color':null,'now_line_opacity':null,'now_line_width':null,'now_line_style':null}),ENTITY_DEFAULTS=Object[_0x236d40(0xad8)]({'entity':'','statistic_id':null,'name':null,'icon':null,'icon_color':null,'color':null,'graph_type':_0x236d40(0xb90),'y_axis':'primary','line_width':2.5,'line_style':_0x236d40(0x99b),'smooth':!![],'show_line':!![],'show_fill':!![],'show_range_band':![],'gradient':!![],'show_points':![],'point_colors':null,'stack_group':null,'invert':![],'attribute':null,'points_per_hour':null,'aggregate_func':_0x236d40(0x7ae),'value_factor':0x0,'value_transform':null,'fixed_value':![],'offset':0x0,'forecast_horizon':null,'state_map':null,'lower_bound':null,'upper_bound':null,'rise_fall_colors':null,'moving_averages':null,'color_thresholds':null,'state_adaptive_color':![],'state_color':null,'show_extrema':'click','extrema_show_timestamp':!![],'show_extrema_min':!![],'show_extrema_max':!![],'extrema_color':null,'extrema_font_size':null,'extrema_bg_color':null,'extrema_bg_opacity':null,'show_average':![],'break_on_null':![],'carry_forward_ms':null,'show_state':!![],'show_state_last':![],'primary_state_as':null,'show_timestamp':![],'show_range_values':![],'name_position':null,'show_graph':!![],'auto_hide':undefined,'show_in_legend':![],'legend_stats':[_0x236d40(0x9f4),_0x236d40(0x7ae),_0x236d40(0x6fe)],'decimals':0x1,'number_format':'system','align_state':_0x236d40(0xa72),'trend_period_hours':0x1,'show_trend_icon':!![],'trend_up_color':null,'trend_down_color':null,'trend_stable_color':null,'name_size':null,'icon_size':null,'state_size':null,'trend_icon_size':null,'tap_action':null}),PALETTE=Object[_0x236d40(0xad8)]([_0x236d40(0x336),_0x236d40(0x7b8),_0x236d40(0xb6e),_0x236d40(0x9e3),_0x236d40(0x2a6),_0x236d40(0x390),'#e74c3c',_0x236d40(0xca2),_0x236d40(0x895),_0x236d40(0x4ee),_0x236d40(0x54d),_0x236d40(0x64a),_0x236d40(0x53b),_0x236d40(0x470),_0x236d40(0x642),_0x236d40(0x28d)]);function pickName(_0x12da04,_0xc2bec9,_0xacc05c){const _0x2701ce=_0x236d40,_0x48c167=typeof _0x12da04===_0x2701ce(0xc00)&&(_0x12da04[_0x2701ce(0x2cf)]('{{')||_0x12da04[_0x2701ce(0x2cf)]('{%'));if(_0x48c167)return _0xc2bec9!==undefined&&_0xc2bec9!==null&&_0xc2bec9!==''?_0xc2bec9:_0xacc05c?.[_0x2701ce(0xa43)]??undefined;if(_0x12da04!==undefined&&_0x12da04!==null)return _0x12da04;return _0xacc05c?.[_0x2701ce(0xa43)]??undefined;}function normalizeTemplateResult(_0xfb7ed9){const _0x310f3c=_0x236d40;if(_0xfb7ed9===null||_0xfb7ed9===undefined)return'';const _0x45d87b=typeof _0xfb7ed9===_0x310f3c(0xc00)?_0xfb7ed9:String(_0xfb7ed9);return _0x45d87b[_0x310f3c(0x900)]();}const isNum=_0x3c9f03=>typeof _0x3c9f03==='number'&&Number[_0x236d40(0x726)](_0x3c9f03),clamp=(_0x523e8a,_0x11d8cf,_0x4c1842)=>Math[_0x236d40(0x6fe)](_0x11d8cf,Math[_0x236d40(0x9f4)](_0x4c1842,_0x523e8a)),toNum=_0x54e240=>{const _0x347381=_0x236d40;if(_0x54e240===null||_0x54e240===undefined||_0x54e240==='')return null;const _0x15717a=typeof _0x54e240==='number'?_0x54e240:parseFloat(_0x54e240);return Number[_0x347381(0x726)](_0x15717a)?_0x15717a:null;};function resolveOffsetHours(_0x293fac,_0x44b9c4){const _0x497370=_0x236d40;if(_0x293fac===null||_0x293fac===undefined||_0x293fac==='')return 0x0;if(typeof _0x293fac===_0x497370(0x7ad))return Number[_0x497370(0x726)](_0x293fac)?_0x293fac:0x0;const _0x65a7b8=String(_0x293fac)[_0x497370(0x900)]();if(_0x65a7b8==='')return 0x0;const _0x1d3656=parseFloat(_0x65a7b8);if(!isNaN(_0x1d3656)&&/^-?[\d.]+$/[_0x497370(0x1b8)](_0x65a7b8))return _0x1d3656;const _0xefa99e=_0x44b9c4?.[_0x497370(0x869)]?.[_0x65a7b8];if(_0xefa99e){const _0x3a936a=parseFloat(_0xefa99e[_0x497370(0xb91)]);return Number['isFinite'](_0x3a936a)?_0x3a936a:0x0;}return 0x0;}const _tzFmtCache=new Map(),_tzPartsCache=new Map();function _tzFmt(_0x1b8f69){const _0x5c7932=_0x236d40;let _0x2c6016=_tzFmtCache[_0x5c7932(0x66a)](_0x1b8f69);return!_0x2c6016&&(_0x2c6016=new Intl[(_0x5c7932(0x250))](_0x5c7932(0x978),{'timeZone':_0x1b8f69,'hour12':![],'year':_0x5c7932(0xb68),'month':'2-digit','day':_0x5c7932(0xc9a),'hour':_0x5c7932(0xc9a),'minute':_0x5c7932(0xc9a),'second':'2-digit','weekday':_0x5c7932(0x70a)}),_tzFmtCache[_0x5c7932(0x907)](_0x1b8f69,_0x2c6016)),_0x2c6016;}function tzParts(_0x2d70c3,_0x34a14d){const _0x3d6bcd=_0x236d40;if(!_0x34a14d){const _0x223511=new Date(_0x2d70c3);return{'y':_0x223511[_0x3d6bcd(0x64b)](),'mo':_0x223511[_0x3d6bcd(0x6c4)](),'d':_0x223511[_0x3d6bcd(0x9b0)](),'h':_0x223511[_0x3d6bcd(0x69b)](),'mi':_0x223511['getMinutes'](),'wd':_0x223511[_0x3d6bcd(0xc13)]()||0x7};}const _0x181e75=_0x34a14d+'|'+_0x2d70c3,_0xc958a0=_tzPartsCache[_0x3d6bcd(0x66a)](_0x181e75);if(_0xc958a0)return _0xc958a0;let _0x37ad96;try{const _0x47e836={};for(const _0x37718b of _tzFmt(_0x34a14d)[_0x3d6bcd(0xad7)](_0x2d70c3))_0x47e836[_0x37718b[_0x3d6bcd(0x604)]]=_0x37718b[_0x3d6bcd(0x4be)];const _0x2cf18f={'Mon':0x1,'Tue':0x2,'Wed':0x3,'Thu':0x4,'Fri':0x5,'Sat':0x6,'Sun':0x7};_0x37ad96={'y':+_0x47e836['year'],'mo':+_0x47e836[_0x3d6bcd(0x74c)]-0x1,'d':+_0x47e836['day'],'h':_0x47e836[_0x3d6bcd(0xc1c)]==='24'?0x0:+_0x47e836['hour'],'mi':+_0x47e836[_0x3d6bcd(0x5f8)],'wd':_0x2cf18f[_0x47e836[_0x3d6bcd(0xb47)]]||0x1};}catch(_0xf7c9d8){const _0x367952=new Date(_0x2d70c3);_0x37ad96={'y':_0x367952[_0x3d6bcd(0x64b)](),'mo':_0x367952[_0x3d6bcd(0x6c4)](),'d':_0x367952[_0x3d6bcd(0x9b0)](),'h':_0x367952[_0x3d6bcd(0x69b)](),'mi':_0x367952[_0x3d6bcd(0x5ef)](),'wd':_0x367952[_0x3d6bcd(0xc13)]()||0x7};}if(_tzPartsCache[_0x3d6bcd(0x9c5)]>0x186a0)_tzPartsCache[_0x3d6bcd(0x9c9)]();return _tzPartsCache[_0x3d6bcd(0x907)](_0x181e75,_0x37ad96),_0x37ad96;}function zonedWallToMs(_0x331f7c,_0x427d51,_0xe9b5f2,_0x59ab15,_0x3ca9e2,_0x17cb0b,_0xab7f4e){const _0xa9c548=_0x236d40;if(!_0xab7f4e)return new Date(_0x331f7c,_0x427d51,_0xe9b5f2,_0x59ab15,_0x3ca9e2,_0x17cb0b)[_0xa9c548(0x3f2)]();const _0x43552f=Date[_0xa9c548(0xb9f)](_0x331f7c,_0x427d51,_0xe9b5f2,_0x59ab15,_0x3ca9e2,_0x17cb0b),_0x32271b=tzParts(_0x43552f,_0xab7f4e),_0x4ca0d7=Date['UTC'](_0x32271b['y'],_0x32271b['mo'],_0x32271b['d'],_0x32271b['h'],_0x3ca9e2,_0x17cb0b);return _0x43552f-(_0x4ca0d7-_0x43552f);}function tzStartOfDayMs(_0x160674,_0x3249a5){const _0x129e7e=tzParts(_0x160674,_0x3249a5);return zonedWallToMs(_0x129e7e['y'],_0x129e7e['mo'],_0x129e7e['d'],0x0,0x0,0x0,_0x3249a5);}const _tzInvalidWarned=new Set();function isValidTimeZone(_0x87d169){const _0x2b5d1d=_0x236d40;try{return new Intl[(_0x2b5d1d(0x250))]('en',{'timeZone':_0x87d169}),!![];}catch{return![];}}function resolveDisplayTimeZone(_0x3314cd,_0x29d539){const _0x4957e0=_0x236d40,_0x4a925a=String(_0x29d539?.[_0x4957e0(0x3cb)]??'auto')[_0x4957e0(0x900)]();let _0x15be32=null;if(_0x4a925a===''||_0x4a925a==='local')return null;if(_0x4a925a===_0x4957e0(0x705))_0x15be32=_0x3314cd?.[_0x4957e0(0x7f5)]?.[_0x4957e0(0x3cb)]||null;else _0x4a925a===_0x4957e0(0x54e)?_0x15be32=_0x3314cd?.[_0x4957e0(0xc77)]?.[_0x4957e0(0x3cb)]===_0x4957e0(0x705)?_0x3314cd?.[_0x4957e0(0x7f5)]?.[_0x4957e0(0x3cb)]||null:null:_0x15be32=_0x4a925a;if(!_0x15be32)return null;if(!isValidTimeZone(_0x15be32))return!_tzInvalidWarned[_0x4957e0(0x620)](_0x15be32)&&(_tzInvalidWarned['add'](_0x15be32),console[_0x4957e0(0x6ac)](_0x4957e0(0xadf)+_0x15be32+_0x4957e0(0x727))),null;try{const _0x1d2988=Intl[_0x4957e0(0x250)]()[_0x4957e0(0x83e)]()[_0x4957e0(0x823)];if(_0x1d2988&&_0x1d2988===_0x15be32)return null;}catch{}return _0x15be32;}const LANG_NAMES={'en':_0x236d40(0xb42)},I18N={'en':{}};try{const _tr=await import(new URL(_0x236d40(0xb1c),import.meta.url));if(_tr?.[_0x236d40(0x7f4)]){for(const [lang,table]of Object['entries'](_tr[_0x236d40(0x7f4)]))I18N[lang]=table;}if(_tr?.[_0x236d40(0x962)])Object[_0x236d40(0x793)](LANG_NAMES,_tr[_0x236d40(0x962)]);_tr?.[_0x236d40(0x2ee)]&&_tr['T_VERSION']!==VERSION&&console['warn'](_0x236d40(0x82e)+_tr['T_VERSION']+_0x236d40(0x4aa)+VERSION+_0x236d40(0x31a));}catch(_0x409085){console['info']('[statistics-graph-chart-card]\x20translations.js\x20not\x20found\x20next\x20to\x20the\x20card\x20file\x20-\x20UI\x20will\x20be\x20English\x20only.\x20Install\x20both\x20files\x20side\x20by\x20side\x20to\x20enable\x20the\x2016\x20bundled\x20languages.');}function resolveCardLanguage(_0x4de516,_0x53f06d){const _0x92d388=_0x236d40,_0x5d56b2=String(_0x53f06d?.[_0x92d388(0x737)]??_0x92d388(0x54e))[_0x92d388(0x900)]();if(_0x5d56b2&&_0x5d56b2!==_0x92d388(0x54e))return _0x5d56b2;return _0x4de516?.[_0x92d388(0xc77)]?.[_0x92d388(0x737)]||typeof navigator!==_0x92d388(0xcf5)&&navigator[_0x92d388(0x737)]||'en';}function cardT(_0x40fcde,_0x26bbbd,_0x4d899d){const _0x4222af=_0x236d40;let _0x547940=resolveCardLanguage(_0x40fcde,_0x26bbbd)[_0x4222af(0x2b9)]();if(_0x547940==='no'||_0x547940[_0x4222af(0x43e)](_0x4222af(0x197)))_0x547940='nb';const _0x145f4b=I18N[_0x547940]||I18N[_0x547940[_0x4222af(0xa6d)]('-')[0x0]];return _0x145f4b&&_0x145f4b[_0x4d899d]||_0x4d899d;}function localizeEntityState(_0x92f725,_0x9e1fb6,_0x1f0d5d){const _0x2a3d44=_0x236d40,_0x5f4f29=_0x1f0d5d??_0x9e1fb6?.['state'];if(_0x5f4f29==null)return'';try{if(_0x9e1fb6&&typeof _0x92f725?.[_0x2a3d44(0x9f1)]==='function'){const _0x581a6d=_0x1f0d5d!=null?_0x92f725[_0x2a3d44(0x9f1)](_0x9e1fb6,String(_0x1f0d5d)):_0x92f725[_0x2a3d44(0x9f1)](_0x9e1fb6);if(_0x581a6d)return _0x581a6d;}}catch(_0x1b4375){}return String(_0x5f4f29);}function niceYTicks(_0x38e076,_0x537e08,_0x2ebfb6=0x4,_0x5de52f=0x0){const _0x1a3e85=_0x236d40;if(!isFinite(_0x38e076)||!isFinite(_0x537e08)||_0x537e08<=_0x38e076)return null;const _0x531905=_0x537e08-_0x38e076,_0x21f9cb=_0x531905/Math[_0x1a3e85(0x6fe)](0x1,_0x2ebfb6);let _0x5f4569;if(_0x5de52f>0x0&&_0x531905>=_0x5de52f){const _0x1d91b2=_0x21f9cb/_0x5de52f,_0x500d10=[0x1,0x2,0x5,0xa,0xf,0x1e,0x3c,0x78,0xb4,0x168,0x2d0,0x5a0,0xb40,0x10e0,0x2760,0xa8c0,0x15180];let _0x646dd3=_0x500d10[_0x500d10[_0x1a3e85(0x2d1)]-0x1];for(let _0x4703a5=0x0;_0x4703a5<_0x500d10[_0x1a3e85(0x2d1)];_0x4703a5++){const _0x4a7b7b=_0x500d10[_0x4703a5+0x1];if(_0x4a7b7b===undefined||_0x1d91b2_0x537e08+_0x5f4569*0.000001)break;if(_0x59aeb8>=_0x38e076-_0x5f4569*0.000001)_0x199b8d[_0x1a3e85(0x2c1)](_0x59aeb8);}return _0x199b8d[_0x1a3e85(0x2d1)]>=0x2?_0x199b8d:null;}function applyStateMap(_0x2eb312,_0x4a963e){const _0x53818d=_0x236d40;if(!_0x4a963e||!Array['isArray'](_0x4a963e))return{'value':parseFloat(_0x2eb312),'mapped':![]};const _0x5093d9=_0x4a963e[_0x53818d(0xaad)](_0x1078ff=>String(_0x1078ff['value'])===String(_0x2eb312));if(_0x5093d9!==-0x1)return{'value':_0x5093d9,'mapped':!![],'label':_0x4a963e[_0x5093d9][_0x53818d(0x4c6)]};return{'value':parseFloat(_0x2eb312),'mapped':![]};}function autoStateMap(_0x244bae,_0x441325,_0x430bf1){const _0x41bfe9=_0x236d40;if(!_0x244bae)return null;if(_0x244bae[_0x41bfe9(0x295)])return _0x244bae[_0x41bfe9(0x295)];const _0x699a72=_0x244bae[_0x41bfe9(0xcad)]===_0x41bfe9(0x5f9)||_0x430bf1===_0x41bfe9(0x979);if(!_0x699a72)return null;if(_0x244bae[_0x41bfe9(0x490)]||_0x244bae[_0x41bfe9(0x204)]||_0x244bae['fixed_value'])return null;const _0x51dd2a=_0x244bae[_0x41bfe9(0xaa5)]?.['split']('.')[0x0];if(_0x51dd2a===_0x41bfe9(0x493)||_0x51dd2a===_0x41bfe9(0xc9b))return[{'value':_0x41bfe9(0x232)},{'value':'on'}];const _0x482b36=_0x441325?.[_0x41bfe9(0x869)]?.[_0x244bae['entity']];if(_0x482b36&&isNaN(parseFloat(_0x482b36[_0x41bfe9(0xb91)]))&&_0x482b36[_0x41bfe9(0xb91)]!=='unknown'&&_0x482b36['state']!=='unavailable'){const _0x3b521=new Set();_0x482b36[_0x41bfe9(0xbb4)]?.[_0x41bfe9(0x59b)]?_0x482b36['attributes']['options'][_0x41bfe9(0x366)](_0x25f673=>_0x3b521[_0x41bfe9(0x412)](_0x25f673)):_0x3b521['add'](_0x482b36[_0x41bfe9(0xb91)]);if(_0x3b521[_0x41bfe9(0x9c5)]>0x0)return[..._0x3b521][_0x41bfe9(0x5f7)](_0x2df5ed=>({'value':_0x2df5ed}));}return null;}function escapeHtml(_0x9ce44){const _0x27b6c1=_0x236d40;return String(_0x9ce44??'')[_0x27b6c1(0x3de)](/&/g,_0x27b6c1(0x58e))[_0x27b6c1(0x3de)](//g,_0x27b6c1(0x99d))[_0x27b6c1(0x3de)](/"/g,_0x27b6c1(0xc5d))[_0x27b6c1(0x3de)](/'/g,_0x27b6c1(0x6f0));}function hashString(_0x4eed72){const _0x144436=_0x236d40;let _0x1288dc=0x1505;for(let _0x51f9b1=0x0;_0x51f9b1<_0x4eed72[_0x144436(0x2d1)];_0x51f9b1++)_0x1288dc=(_0x1288dc<<0x5)+_0x1288dc+_0x4eed72['charCodeAt'](_0x51f9b1)>>>0x0;return _0x1288dc[_0x144436(0x421)](0x24);}const lsGet=_0x422f13=>{const _0xa3c711=_0x236d40;try{return localStorage[_0xa3c711(0x246)](_0x422f13);}catch{return null;}},lsSet=(_0x28e126,_0x50ff5a)=>{const _0x5c46eb=_0x236d40;try{localStorage[_0x5c46eb(0x8d5)](_0x28e126,_0x50ff5a);}catch{}},lsDel=_0x3a32e8=>{const _0x3c8a0f=_0x236d40;try{localStorage[_0x3c8a0f(0x2fd)](_0x3a32e8);}catch{}};function parseColor(_0x3a60c0){const _0xb451ec=_0x236d40;if(!_0x3a60c0)return{'r':0x88,'g':0x88,'b':0x88};const _0x4e779c=String(_0x3a60c0)['trim']();if(_0x4e779c[_0xb451ec(0x43e)]('#')){const _0x5d29f3=_0x4e779c[_0xb451ec(0x2d1)]===0x4?_0x4e779c[_0xb451ec(0x670)](0x1)[_0xb451ec(0xa6d)]('')[_0xb451ec(0x5f7)](_0x15d630=>_0x15d630+_0x15d630)[_0xb451ec(0x358)](''):_0x4e779c['slice'](0x1);return{'r':parseInt(_0x5d29f3[_0xb451ec(0x670)](0x0,0x2),0x10),'g':parseInt(_0x5d29f3[_0xb451ec(0x670)](0x2,0x4),0x10),'b':parseInt(_0x5d29f3[_0xb451ec(0x670)](0x4,0x6),0x10)};}const _0x366630=_0x4e779c['match'](/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x366630)return{'r':+_0x366630[0x1],'g':+_0x366630[0x2],'b':+_0x366630[0x3]};return{'r':0x88,'g':0x88,'b':0x88};}const rgba=(_0x361acc,_0x44a616)=>{const _0x3687be=_0x236d40,{r:_0x508047,g:_0x44226c,b:_0x56fcc6}=parseColor(_0x361acc);return _0x3687be(0x95f)+_0x508047+','+_0x44226c+','+_0x56fcc6+','+_0x44a616+')';},_dateTimeFormatterCache=new Map();function getCachedDateTimeFormatter(_0x4a9288,_0x89359){const _0x390ed9=_0x236d40,_0x55eeb2=_0x4a9288+'|'+JSON[_0x390ed9(0x569)](_0x89359);let _0xb21d9e=_dateTimeFormatterCache[_0x390ed9(0x66a)](_0x55eeb2);if(_0xb21d9e)return _0xb21d9e;if(_dateTimeFormatterCache['size']>=0x1e){const _0x511a66=_dateTimeFormatterCache['keys']()[_0x390ed9(0xa47)]()['value'];if(_0x511a66!==undefined)_dateTimeFormatterCache[_0x390ed9(0xacc)](_0x511a66);}try{_0xb21d9e=new Intl[(_0x390ed9(0x250))](_0x4a9288,_0x89359);}catch{return null;}return _dateTimeFormatterCache[_0x390ed9(0x907)](_0x55eeb2,_0xb21d9e),_0xb21d9e;}const _numberFormatterCache=new Map();function getCachedNumberFormatter(_0x21cb1c,_0x53bf69){const _0x545b26=_0x236d40,_0x392ef6=_0x21cb1c+'|'+_0x53bf69;let _0xc0ecf8=_numberFormatterCache['get'](_0x392ef6);if(_0xc0ecf8)return _0xc0ecf8;if(_numberFormatterCache['size']>=0x32){const _0x171b08=_numberFormatterCache[_0x545b26(0x27d)]()[_0x545b26(0xa47)]()['value'];if(_0x171b08!==undefined)_numberFormatterCache[_0x545b26(0xacc)](_0x171b08);}try{_0xc0ecf8=new Intl[(_0x545b26(0x7cd))](_0x21cb1c,{'minimumFractionDigits':_0x53bf69,'maximumFractionDigits':_0x53bf69});}catch{return null;}return _numberFormatterCache[_0x545b26(0x907)](_0x392ef6,_0xc0ecf8),_0xc0ecf8;}function compileLabelFormat(_0xec3b02,_0x13671d){const _0x3d47dc=_0x236d40;if(typeof _0xec3b02!==_0x3d47dc(0xc00))return null;const _0x207d58=_0xec3b02[_0x3d47dc(0x900)]();if(!_0x207d58)return null;const _0x2e4475={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0x13671d||'s')[_0x3d47dc(0x2b9)]()]??0x1,_0x51fccf=_0x469ccf=>String(Math[_0x3d47dc(0xa1e)](_0x469ccf))[_0x3d47dc(0x290)](0x2,'0'),_0x169df6={'h:mm':_0x1b63d2=>Math[_0x3d47dc(0xa1e)](_0x1b63d2/0xe10)+':'+_0x51fccf(_0x1b63d2%0xe10/0x3c),'h:mm:ss':_0x44bf4d=>Math[_0x3d47dc(0xa1e)](_0x44bf4d/0xe10)+':'+_0x51fccf(_0x44bf4d%0xe10/0x3c)+':'+_0x51fccf(_0x44bf4d%0x3c),'mm:ss':_0x128dd6=>_0x51fccf(_0x128dd6/0x3c)+':'+_0x51fccf(_0x128dd6%0x3c),'d\x20h:mm':_0x30baa0=>{const _0xcfc79f=_0x3d47dc,_0x4fc77a=Math[_0xcfc79f(0xa1e)](_0x30baa0/0x15180),_0x48ef6c=_0x30baa0%0x15180,_0x506912=Math[_0xcfc79f(0xa1e)](_0x48ef6c/0xe10)+':'+_0x51fccf(_0x48ef6c%0xe10/0x3c);return _0x4fc77a>0x0?_0x4fc77a+'d\x20'+_0x506912:_0x506912;}},_0x92d136=_0x169df6[_0x207d58['toLowerCase']()];if(_0x92d136)return _0x2ccb09=>{const _0x5a976a=_0x3d47dc;if(!isNum(_0x2ccb09))return null;return(_0x2ccb09<0x0?'-':'')+_0x92d136(Math[_0x5a976a(0x971)](_0x2ccb09)*_0x2e4475);};if(!_0x207d58[_0x3d47dc(0x2cf)]('{'))return null;const _0x42a8ed={'floor':Math[_0x3d47dc(0xa1e)],'ceil':Math[_0x3d47dc(0xa31)],'round':Math[_0x3d47dc(0x1db)],'abs':Math[_0x3d47dc(0x971)],'sqrt':Math[_0x3d47dc(0x2b3)]},_0x333b0f={'min':Math['min'],'max':Math[_0x3d47dc(0x6fe)]},_0x4fa76d={'pad2':_0xa3888f=>String(Math['floor'](_0xa3888f))[_0x3d47dc(0x290)](0x2,'0'),'pad':(_0x33226b,_0x29aba8)=>String(Math[_0x3d47dc(0xa1e)](_0x33226b))[_0x3d47dc(0x290)](Math[_0x3d47dc(0x6fe)](0x0,Math[_0x3d47dc(0xa1e)](_0x29aba8)),'0'),'fixed':(_0x27ee91,_0x503292)=>Number(_0x27ee91)[_0x3d47dc(0x669)](Math['min'](0x14,Math[_0x3d47dc(0x6fe)](0x0,Math[_0x3d47dc(0xa1e)](_0x503292))))},_0x16fc6f=_0x377f83=>{const _0x5e23a7=_0x3d47dc,_0xe7684a=[];let _0x48e671=0x0;while(_0x48e671<_0x377f83[_0x5e23a7(0x2d1)]){const _0x450ffd=_0x377f83[_0x48e671];if(_0x450ffd==='\x20'||_0x450ffd==='\x09'){_0x48e671++;continue;}if(/[0-9]/[_0x5e23a7(0x1b8)](_0x450ffd)){let _0x16f85e=_0x48e671;while(_0x16f85e<_0x377f83[_0x5e23a7(0x2d1)]&&/[0-9.]/[_0x5e23a7(0x1b8)](_0x377f83[_0x16f85e]))_0x16f85e++;const _0x2c1e0d=Number(_0x377f83[_0x5e23a7(0x670)](_0x48e671,_0x16f85e));if(!Number[_0x5e23a7(0x726)](_0x2c1e0d))throw new Error(_0x5e23a7(0x98c));_0xe7684a['push']({'t':_0x5e23a7(0xd0a),'v':_0x2c1e0d}),_0x48e671=_0x16f85e;continue;}if(/[a-zA-Z_]/['test'](_0x450ffd)){let _0x2b5b64=_0x48e671;while(_0x2b5b64<_0x377f83[_0x5e23a7(0x2d1)]&&/[a-zA-Z0-9_]/[_0x5e23a7(0x1b8)](_0x377f83[_0x2b5b64]))_0x2b5b64++;_0xe7684a[_0x5e23a7(0x2c1)]({'t':'id','v':_0x377f83[_0x5e23a7(0x670)](_0x48e671,_0x2b5b64)}),_0x48e671=_0x2b5b64;continue;}if(_0x5e23a7(0x5aa)[_0x5e23a7(0x2cf)](_0x450ffd)){_0xe7684a['push']({'t':_0x450ffd}),_0x48e671++;continue;}throw new Error('unexpected\x20\x27'+_0x450ffd+'\x27');}let _0x2f7212=0x0;const _0x217f7d=()=>_0xe7684a[_0x2f7212],_0x1e5e21=_0x480f19=>{const _0x178e55=_0x5e23a7;if(!_0xe7684a[_0x2f7212]||_0xe7684a[_0x2f7212]['t']!==_0x480f19)throw new Error(_0x178e55(0x38d)+_0x480f19);return _0xe7684a[_0x2f7212++];},_0x34f9da=()=>{const _0x1ad752=_0x5e23a7,_0x86d9df=_0x217f7d();if(!_0x86d9df)throw new Error('unexpected\x20end');if(_0x86d9df['t']===_0x1ad752(0xd0a)){_0x2f7212++;const _0x1b36e8=_0x86d9df['v'];return{'fn':()=>_0x1b36e8,'str':![]};}if(_0x86d9df['t']==='('){_0x2f7212++;const _0x50744e=_0x5b3487();return _0x1e5e21(')'),_0x50744e;}if(_0x86d9df['t']==='-'){_0x2f7212++;const _0x47e153=_0x34f9da();if(_0x47e153[_0x1ad752(0x4a2)])throw new Error(_0x1ad752(0x9f9));return{'fn':_0x389657=>-_0x47e153['fn'](_0x389657),'str':![]};}if(_0x86d9df['t']==='id'){_0x2f7212++;const _0x4421c2=_0x86d9df['v'];if(_0x217f7d()&&_0x217f7d()['t']==='('){_0x2f7212++;const _0x44081f=[];if(_0x217f7d()&&_0x217f7d()['t']!==')'){_0x44081f[_0x1ad752(0x2c1)](_0x5b3487());while(_0x217f7d()&&_0x217f7d()['t']===','){_0x2f7212++,_0x44081f[_0x1ad752(0x2c1)](_0x5b3487());}}_0x1e5e21(')');if(_0x44081f['some'](_0x523623=>_0x523623[_0x1ad752(0x4a2)]))throw new Error(_0x1ad752(0x378));if(_0x42a8ed[_0x4421c2]){if(_0x44081f[_0x1ad752(0x2d1)]!==0x1)throw new Error(_0x4421c2+_0x1ad752(0x80a));const _0xbf9f9c=_0x42a8ed[_0x4421c2],_0x34f2b5=_0x44081f[0x0];return{'fn':_0x382945=>_0xbf9f9c(_0x34f2b5['fn'](_0x382945)),'str':![]};}if(_0x333b0f[_0x4421c2]){if(_0x44081f[_0x1ad752(0x2d1)]<0x2)throw new Error(_0x4421c2+_0x1ad752(0x5b1));const _0x599e9=_0x333b0f[_0x4421c2];return{'fn':_0x5e0326=>_0x599e9(..._0x44081f[_0x1ad752(0x5f7)](_0x3e85f0=>_0x3e85f0['fn'](_0x5e0326))),'str':![]};}if(_0x4fa76d[_0x4421c2]){const _0x4c4235=_0x4421c2==='pad2'?0x1:0x2;if(_0x44081f[_0x1ad752(0x2d1)]!==_0x4c4235)throw new Error(_0x4421c2+_0x1ad752(0x938)+_0x4c4235+_0x1ad752(0x4b3));const _0x3a4ec3=_0x4fa76d[_0x4421c2];return{'fn':_0xc77dcf=>_0x3a4ec3(..._0x44081f['map'](_0x282872=>_0x282872['fn'](_0xc77dcf))),'str':!![]};}throw new Error(_0x1ad752(0xb36)+_0x4421c2);}if(_0x4421c2===_0x1ad752(0x4be))return{'fn':_0x1b78c6=>_0x1b78c6,'str':![]};throw new Error('unknown\x20identifier\x20'+_0x4421c2);}throw new Error('unexpected\x20'+_0x86d9df['t']);},_0x465e8e=()=>{const _0xba769d=_0x5e23a7;let _0x2dd31a=_0x34f9da();while(_0x217f7d()&&(_0x217f7d()['t']==='*'||_0x217f7d()['t']==='/'||_0x217f7d()['t']==='%')){const _0x13b29c=_0xe7684a[_0x2f7212++]['t'],_0x1e4b99=_0x34f9da();if(_0x2dd31a['str']||_0x1e4b99[_0xba769d(0x4a2)])throw new Error(_0xba769d(0x9f9));const _0x1ca7e1=_0x2dd31a['fn'],_0x2eaec7=_0x1e4b99['fn'];_0x2dd31a={'fn':_0x13b29c==='*'?_0x4c1da9=>_0x1ca7e1(_0x4c1da9)*_0x2eaec7(_0x4c1da9):_0x13b29c==='/'?_0x51d60e=>_0x1ca7e1(_0x51d60e)/_0x2eaec7(_0x51d60e):_0x114483=>_0x1ca7e1(_0x114483)%_0x2eaec7(_0x114483),'str':![]};}return _0x2dd31a;},_0x5b3487=()=>{const _0x25ba3a=_0x5e23a7;let _0x5b7dee=_0x465e8e();while(_0x217f7d()&&(_0x217f7d()['t']==='+'||_0x217f7d()['t']==='-')){const _0x5967bf=_0xe7684a[_0x2f7212++]['t'],_0x2d3bff=_0x465e8e();if(_0x5b7dee[_0x25ba3a(0x4a2)]||_0x2d3bff['str'])throw new Error(_0x25ba3a(0x9f9));const _0x203929=_0x5b7dee['fn'],_0x4b812d=_0x2d3bff['fn'];_0x5b7dee={'fn':_0x5967bf==='+'?_0x19c5c5=>_0x203929(_0x19c5c5)+_0x4b812d(_0x19c5c5):_0xe89f53=>_0x203929(_0xe89f53)-_0x4b812d(_0xe89f53),'str':![]};}return _0x5b7dee;},_0x2bc503=_0x5b3487();if(_0x2f7212!==_0xe7684a[_0x5e23a7(0x2d1)])throw new Error(_0x5e23a7(0xb92));return _0x2bc503;};try{const _0x1d7857=[];let _0x5a77b4=0x0;while(_0x5a77b4<_0x207d58[_0x3d47dc(0x2d1)]){const _0x5db24a=_0x207d58['indexOf']('{',_0x5a77b4);if(_0x5db24a<0x0){_0x1d7857['push'](_0x207d58[_0x3d47dc(0x670)](_0x5a77b4));break;}if(_0x5db24a>_0x5a77b4)_0x1d7857['push'](_0x207d58[_0x3d47dc(0x670)](_0x5a77b4,_0x5db24a));const _0x451146=_0x207d58['indexOf']('}',_0x5db24a);if(_0x451146<0x0)throw new Error(_0x3d47dc(0x919));const _0x21752a=_0x207d58[_0x3d47dc(0x670)](_0x5db24a+0x1,_0x451146)[_0x3d47dc(0x900)]();if(!_0x21752a)throw new Error(_0x3d47dc(0xb54));_0x1d7857[_0x3d47dc(0x2c1)](_0x16fc6f(_0x21752a)),_0x5a77b4=_0x451146+0x1;}const _0x4bced2=_0x2dea2c=>{const _0x207df2=_0x3d47dc;if(!Number[_0x207df2(0x726)](_0x2dea2c))return String(_0x2dea2c);if(Number[_0x207df2(0x5f6)](_0x2dea2c))return String(_0x2dea2c);return String(+_0x2dea2c['toFixed'](0x6));};return _0x2312f6=>{const _0x411e89=_0x3d47dc;if(!isNum(_0x2312f6))return null;let _0x2d3a04='';for(const _0x52b80a of _0x1d7857){if(typeof _0x52b80a===_0x411e89(0xc00)){_0x2d3a04+=_0x52b80a;continue;}const _0x4e145b=_0x52b80a['fn'](_0x2312f6);_0x2d3a04+=_0x52b80a[_0x411e89(0x4a2)]?String(_0x4e145b):_0x4bced2(_0x4e145b);}return _0x2d3a04;};}catch(_0x52f989){return console['warn'](_0x3d47dc(0x438),_0x207d58,'—',_0x52f989?.[_0x3d47dc(0x9d2)]||_0x52f989),null;}}const _axisFmtMemo=new WeakMap(),_axisStepMemo=new WeakMap();function axisMinLabelStep(_0xc829ea,_0x4c19db){const _0x49ecf7=_0x236d40;if(!_0xc829ea||typeof _0xc829ea!==_0x49ecf7(0x89c))return 0x0;let _0x25d495=_axisStepMemo[_0x49ecf7(0x66a)](_0xc829ea);!_0x25d495&&(_0x25d495={},_axisStepMemo[_0x49ecf7(0x907)](_0xc829ea,_0x25d495));if(_0x4c19db in _0x25d495)return _0x25d495[_0x4c19db];const _0x5a7f6c=String((_0x4c19db===_0x49ecf7(0x372)?_0xc829ea[_0x49ecf7(0x81d)]:_0xc829ea[_0x49ecf7(0x9fd)])||'')['trim']()[_0x49ecf7(0x2b9)](),_0x2fc9a1={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0xc829ea['duration_unit']||'s')['toLowerCase']()]??0x1;let _0x4846e6=0x0;if(_0x5a7f6c===_0x49ecf7(0x28f)||_0x5a7f6c===_0x49ecf7(0x8a5))_0x4846e6=0x3c;else{if(_0x5a7f6c==='h:mm:ss'||_0x5a7f6c==='mm:ss')_0x4846e6=0x1;}const _0xa6ca3d=_0x4846e6>0x0?_0x4846e6/_0x2fc9a1:0x0;return _0x25d495[_0x4c19db]=_0xa6ca3d,_0xa6ca3d;}function axisLabelFormatter(_0x558df9,_0x489436){const _0x140ac1=_0x236d40;if(!_0x558df9||typeof _0x558df9!==_0x140ac1(0x89c))return null;let _0x157f65=_axisFmtMemo[_0x140ac1(0x66a)](_0x558df9);return!_0x157f65&&(_0x157f65={'primary':compileLabelFormat(_0x558df9['y_axis_format'],_0x558df9[_0x140ac1(0x911)]),'secondary':compileLabelFormat(_0x558df9[_0x140ac1(0x81d)],_0x558df9[_0x140ac1(0x911)])},_axisFmtMemo[_0x140ac1(0x907)](_0x558df9,_0x157f65)),_0x157f65[_0x489436]||null;}function formatNumber(_0x12b06b,_0x216410,_0x2c8959){const _0x2d31c4=_0x236d40;if(!isNum(_0x12b06b))return'—';if(_0x216410?.[_0x2d31c4(0x8cb)])_0x12b06b=Math[_0x2d31c4(0x971)](_0x12b06b);if(typeof _0x216410?.[_0x2d31c4(0x271)]===_0x2d31c4(0xd24))try{const _0x1ad49a=_0x216410[_0x2d31c4(0x271)](_0x12b06b);if(typeof _0x1ad49a==='string')return _0x1ad49a;}catch(_0x59512e){}const _0x30f12d=toNum(_0x216410?.['decimals'])??0x1,_0x141d02=_0x216410?.['number_format']||_0x2d31c4(0xa88),_0xe3d1ac=_0x141d02==='comma'?_0x2d31c4(0x49f):_0x141d02===_0x2d31c4(0x50a)?_0x2d31c4(0x978):_0x2c8959?.[_0x2d31c4(0xc77)]?.[_0x2d31c4(0x737)]||navigator[_0x2d31c4(0x737)]||'en',_0x190912=getCachedNumberFormatter(_0xe3d1ac,_0x30f12d);if(_0x190912)return _0x190912[_0x2d31c4(0xc90)](_0x12b06b);return _0x12b06b[_0x2d31c4(0x669)](_0x30f12d);}function formatShortNumber(_0x147113){const _0x178e7d=_0x236d40;if(!isNum(_0x147113))return'';const _0x40b44e=Math['abs'](_0x147113);if(_0x40b44e>=0xf4240)return(_0x147113/0xf4240)['toFixed'](0x1)+'M';if(_0x40b44e>=0x3e8)return(_0x147113/0x3e8)[_0x178e7d(0x669)](0x1)+'k';if(_0x40b44e>=0x64)return _0x147113['toFixed'](0x0);if(_0x40b44e>=0xa)return _0x147113[_0x178e7d(0x669)](0x1);return _0x147113[_0x178e7d(0x669)](0x2);}function _resolveHourCycle(_0x127069){const _0xd129ee=_0x236d40,_0x394b84=_0x127069?.['locale']?.['time_format'];if(_0x394b84==='24')return _0xd129ee(0x71b);if(_0x394b84==='12')return _0xd129ee(0xad2);return undefined;}function _localeTimeOpts(_0x4fb980,_0x8abc56){const _0x3a673f=_resolveHourCycle(_0x4fb980);if(!_0x3a673f)return _0x8abc56;return{..._0x8abc56,'hourCycle':_0x3a673f};}function resolveBucketPrecision(_0x44c80c){const _0x56ca3b=_0x236d40;if(!_0x44c80c||_0x44c80c[_0x56ca3b(0x2d1)]<0x2)return'raw';const _0xfc3cac=[];for(let _0x3a9577=0x1;_0x3a9577<_0x44c80c[_0x56ca3b(0x2d1)];_0x3a9577++){const _0x300498=_0x44c80c[_0x3a9577]['t']-_0x44c80c[_0x3a9577-0x1]['t'];if(_0x300498>0x0)_0xfc3cac[_0x56ca3b(0x2c1)](_0x300498);}if(!_0xfc3cac['length'])return _0x56ca3b(0x447);_0xfc3cac[_0x56ca3b(0xc70)]((_0x372911,_0x254ab5)=>_0x372911-_0x254ab5);const _0x2ac313=_0xfc3cac[Math[_0x56ca3b(0xa1e)](_0xfc3cac[_0x56ca3b(0x2d1)]/0x2)];if(_0x2ac313>=0x1c*0x5265c00)return _0x56ca3b(0x74c);if(_0x2ac313>=0x6*0x5265c00)return'week';if(_0x2ac313>=0x17*0x36ee80)return'day';if(_0x2ac313>=0x32*0xea60)return _0x56ca3b(0xc1c);if(_0x2ac313>=0x4*0xea60)return'5minute';if(_0x2ac313>=0x32*0x3e8)return _0x56ca3b(0x5f8);return _0x56ca3b(0x447);}function bucketPrecisionToMs(_0x148283){const _0x3cccd5=_0x236d40;switch(_0x148283){case _0x3cccd5(0x40e):return 0x16e*0x5265c00;case _0x3cccd5(0x74c):return 0x1f*0x5265c00;case _0x3cccd5(0x677):return 0x7*0x5265c00;case _0x3cccd5(0xa49):return 0x5265c00;case _0x3cccd5(0xc1c):return 0x36ee80;case _0x3cccd5(0x68d):return 0x5*0xea60;case _0x3cccd5(0x5f8):return 0xea60;default:return 0x0;}}function capGroupByForAggregate(_0x529591,_0x167791){const _0x217665=_0x236d40;if(_0x529591!=='change')return _0x167791;if(_0x167791===_0x217665(0x677)||_0x167791==='month'||_0x167791===_0x217665(0x40e))return'date';return _0x167791;}function applyDatetimePattern(_0x252b89,_0x459701,_0x262ed6,_0x4dd943){const _0x171875=_0x236d40,_0x3b3b1c=(_0x32efaf,_0x289593=0x2)=>String(_0x32efaf)[_0x171875(0x290)](_0x289593,'0');let _0x22248b,_0x212dbd,_0x5a36ac,_0x3d437f,_0x3c1a6f;if(_0x4dd943){const _0x306678=tzParts(_0x252b89[_0x171875(0x3f2)](),_0x4dd943);_0x22248b=_0x306678['y'],_0x212dbd=_0x306678['mo']+0x1,_0x5a36ac=_0x306678['d'],_0x3d437f=_0x306678['h'],_0x3c1a6f=_0x306678['mi'];}else _0x22248b=_0x252b89['getFullYear'](),_0x212dbd=_0x252b89['getMonth']()+0x1,_0x5a36ac=_0x252b89[_0x171875(0x9b0)](),_0x3d437f=_0x252b89[_0x171875(0x69b)](),_0x3c1a6f=_0x252b89[_0x171875(0x5ef)]();const _0x12d5eb=_0x4dd943?_0x252b89[_0x171875(0x6a9)]():_0x252b89[_0x171875(0xca4)](),_0x5d06ae=_0x3d437f%0xc,_0x31436d=_0x5d06ae===0x0?0xc:_0x5d06ae,_0x28614d=_0x3d437f<0xc?'AM':'PM',_0x3c576e=_0x262ed6||typeof navigator!==_0x171875(0xcf5)&&navigator['language']||'en',_0x637bb5=_0x3f297b=>{const _0x28cd04=_0x171875,_0x46d55d=getCachedDateTimeFormatter(_0x3c576e,_0x4dd943?{'month':_0x3f297b,'timeZone':_0x4dd943}:{'month':_0x3f297b});return _0x46d55d?_0x46d55d[_0x28cd04(0xc90)](_0x252b89):String(_0x212dbd);},_0x2ddc6d=_0x2082b2=>{const _0x19d67d=_0x171875,_0x1cddd2=getCachedDateTimeFormatter(_0x3c576e,_0x4dd943?{'weekday':_0x2082b2,'timeZone':_0x4dd943}:{'weekday':_0x2082b2});return _0x1cddd2?_0x1cddd2[_0x19d67d(0xc90)](_0x252b89):'';},_0x1a0988=[[_0x171875(0x370),_0x2ddc6d(_0x171875(0x41b))],[_0x171875(0x815),_0x2ddc6d('short')],[_0x171875(0x601),String(_0x22248b)],['YY',String(_0x22248b)[_0x171875(0x670)](-0x2)],[_0x171875(0x22e),_0x637bb5('long')],[_0x171875(0x3e1),_0x637bb5(_0x171875(0x70a))],['MM',_0x3b3b1c(_0x212dbd)],['DD',_0x3b3b1c(_0x5a36ac)],['HH',_0x3b3b1c(_0x3d437f)],['hh',_0x3b3b1c(_0x31436d)],['mm',_0x3b3b1c(_0x3c1a6f)],['ss',_0x3b3b1c(_0x12d5eb)],['A',_0x28614d],['a',_0x28614d[_0x171875(0x2b9)]()]],_0x9f83c9=_0x1a0988[_0x171875(0x5f7)]((_0x3c0f43,_0x4ac257)=>'\x00'+_0x4ac257+'\x00');let _0x4dcb58=_0x459701;return _0x1a0988['forEach'](([_0x26dc69],_0x47be01)=>{const _0xab90f2=_0x171875;_0x4dcb58=_0x4dcb58[_0xab90f2(0xa6d)](_0x26dc69)['join'](_0x9f83c9[_0x47be01]);}),_0x1a0988[_0x171875(0x366)](([,_0xda855c],_0x5edfcc)=>{const _0x1657dc=_0x171875;_0x4dcb58=_0x4dcb58[_0x1657dc(0xa6d)](_0x9f83c9[_0x5edfcc])[_0x1657dc(0x358)](_0xda855c);}),_0x4dcb58;}function formatDateTime(_0x5575fd,_0x28d987,_0x36e172,_0x36ab80){const _0x1e2d0c=_0x236d40,_0x559b6b=_0x36ab80&&_0x36ab80[_0x1e2d0c(0x711)]||null,_0x69aa15=resolveDisplayTimeZone(_0x36e172,_0x28d987),_0x419076=_0x28d987?.[_0x1e2d0c(0x31b)];if(_0x419076&&_0x419076!==_0x1e2d0c(0xa88))return applyDatetimePattern(_0x5575fd,_0x419076,resolveCardLanguage(_0x36e172,_0x28d987),_0x69aa15);const _0x14733e=resolveCardLanguage(_0x36e172,_0x28d987);let _0x1ed408;switch(_0x559b6b){case'year':_0x1ed408={'year':_0x1e2d0c(0xb68)};break;case _0x1e2d0c(0x74c):_0x1ed408={'month':'short','year':_0x1e2d0c(0xb68)};break;case'week':case _0x1e2d0c(0xa49):_0x1ed408={'month':'short','day':_0x1e2d0c(0xb68)};break;case'hour':_0x1ed408=_localeTimeOpts(_0x36e172,{'month':_0x1e2d0c(0x70a),'day':_0x1e2d0c(0xb68),'hour':'2-digit'});break;default:_0x1ed408=_localeTimeOpts(_0x36e172,{'month':_0x1e2d0c(0x70a),'day':_0x1e2d0c(0xb68),'hour':'2-digit','minute':_0x1e2d0c(0xc9a)});}const _0x15912f=getCachedDateTimeFormatter(_0x14733e,_0x69aa15?{..._0x1ed408,'timeZone':_0x69aa15}:_0x1ed408);if(_0x15912f)return _0x15912f[_0x1e2d0c(0xc90)](_0x5575fd);return _0x5575fd[_0x1e2d0c(0x2f0)]();}function formatTimeShort(_0x2b8b28,_0x5af864,_0x3168d0,_0x5bbf49){const _0x43b6d1=_0x236d40,_0x4dcaa3=resolveDisplayTimeZone(_0x3168d0,_0x5bbf49),_0x2af318=_0x5bbf49?.[_0x43b6d1(0x31b)];if(_0x2af318&&_0x2af318!==_0x43b6d1(0xa88))return applyDatetimePattern(_0x2b8b28,_0x2af318,resolveCardLanguage(_0x3168d0,_0x5bbf49),_0x4dcaa3);const _0x4f1b98=resolveCardLanguage(_0x3168d0,_0x5bbf49);let _0x218f4f;if(_0x5af864<0x2*0x15180*0x3e8)_0x218f4f=_localeTimeOpts(_0x3168d0,{'hour':_0x43b6d1(0xc9a),'minute':'2-digit'});else _0x5af864<0x1f*0x15180*0x3e8?_0x218f4f={'month':_0x43b6d1(0x70a),'day':_0x43b6d1(0xb68)}:_0x218f4f={'month':'short','year':_0x43b6d1(0xc9a)};const _0x233d40=getCachedDateTimeFormatter(_0x4f1b98,_0x4dcaa3?{..._0x218f4f,'timeZone':_0x4dcaa3}:_0x218f4f);if(_0x233d40)return _0x233d40[_0x43b6d1(0xc90)](_0x2b8b28);return _0x2b8b28['toLocaleString']();}function parseGraphStart(_0x5902d8,_0x490333,_0x195427){const _0x17e09d=_0x236d40,_0x725f3c=tzParts(_0x490333[_0x17e09d(0x3f2)](),_0x195427),_0x265335=(_0x5df710,_0x261ce2,_0x24cdb4)=>new Date(zonedWallToMs(_0x5df710,_0x261ce2,_0x24cdb4,0x0,0x0,0x0,_0x195427));switch(_0x5902d8){case'day':case'today':return _0x265335(_0x725f3c['y'],_0x725f3c['mo'],_0x725f3c['d']);case _0x17e09d(0x60c):return _0x265335(_0x725f3c['y'],_0x725f3c['mo'],_0x725f3c['d']+0x1);case'week':return _0x265335(_0x725f3c['y'],_0x725f3c['mo'],_0x725f3c['d']-(_0x725f3c['wd']-0x1));case _0x17e09d(0x74c):return _0x265335(_0x725f3c['y'],_0x725f3c['mo'],0x1);case'year':return _0x265335(_0x725f3c['y'],0x0,0x1);default:return _0x265335(_0x725f3c['y'],_0x725f3c['mo'],_0x725f3c['d']);}}function endOfPeriodFromGraphStart(_0x306475,_0x216eaa,_0x2664b7){const _0x3e6205=_0x236d40,_0x23a61e=tzParts(_0x216eaa[_0x3e6205(0x3f2)](),_0x2664b7),_0x2c2821=(_0x444624,_0x12277b,_0x3220d5)=>new Date(zonedWallToMs(_0x444624,_0x12277b,_0x3220d5,0x0,0x0,0x0,_0x2664b7));switch(_0x306475){case _0x3e6205(0xa49):case _0x3e6205(0x236):return _0x2c2821(_0x23a61e['y'],_0x23a61e['mo'],_0x23a61e['d']+0x1);case'tomorrow':return _0x2c2821(_0x23a61e['y'],_0x23a61e['mo'],_0x23a61e['d']+0x2);case _0x3e6205(0x677):return _0x2c2821(_0x23a61e['y'],_0x23a61e['mo'],_0x23a61e['d']+(0x8-_0x23a61e['wd']));case'month':return _0x2c2821(_0x23a61e['y'],_0x23a61e['mo']+0x1,0x1);case _0x3e6205(0x40e):return _0x2c2821(_0x23a61e['y']+0x1,0x0,0x1);default:return _0x2c2821(_0x23a61e['y'],_0x23a61e['mo'],_0x23a61e['d']+0x1);}}function resolveAnchorWindow(_0x52c77d,_0x370ca6,_0x34c365){const _0x43911a=_0x236d40,_0xa5178b=new Date();let _0xc36643=_0xa5178b,_0x1d7e73;if(isNum(_0x370ca6))return _0x1d7e73=new Date(_0xa5178b['getTime']()-_0x370ca6*0xe10*0x3e8),{'start':_0x1d7e73,'end':_0xc36643};if(_0x52c77d[_0x43911a(0x278)])_0x1d7e73=parseGraphStart(_0x52c77d[_0x43911a(0x278)],_0xa5178b,resolveDisplayTimeZone(_0x34c365,_0x52c77d));else{const _0x191b5c=toNum(_0x52c77d['hours_to_show'])??0x18;_0x1d7e73=new Date(_0xa5178b[_0x43911a(0x3f2)]()-_0x191b5c*0xe10*0x3e8);}return{'start':_0x1d7e73,'end':_0xc36643};}function groupBucketMs(_0x20e5c5,_0x5cf6d5,_0x493ff6){const _0x28e4f7=_0x236d40,_0xb413bc=/^([0-9]+)h$/i[_0x28e4f7(0x909)](String(_0x20e5c5||''));if(_0xb413bc&&Number(_0xb413bc[0x1])>0x0)return Number(_0xb413bc[0x1])*0xe10*0x3e8;switch(_0x20e5c5){case _0x28e4f7(0xc1c):return 0xe10*0x3e8;case _0x28e4f7(0x93a):case _0x28e4f7(0xa49):return 0x15180*0x3e8;case'week':return 0x7*0x15180*0x3e8;case _0x28e4f7(0x74c):return 0x1e*0x15180*0x3e8;case _0x28e4f7(0x40e):return 0x16d*0x15180*0x3e8;case _0x28e4f7(0x447):return 0x0;case _0x28e4f7(0x4d3):default:{const _0x235d67=toNum(_0x493ff6);if(isNum(_0x235d67)&&_0x235d67>0x0)return 0x36ee80/_0x235d67;const _0x542e0b=(_0x5cf6d5||0x18)*0xe10*0x3e8;return _0x542e0b/0x3c;}}}function _isAutoScaleSafe(_0x375114){const _0x4f8de1=_0x236d40,_0x4c867a=_0x375114?.[_0x4f8de1(0x4bd)]||[];for(const _0x23d188 of _0x4c867a){if(!_0x23d188||typeof _0x23d188!==_0x4f8de1(0x89c))continue;const _0x5c15f7=_0x23d188[_0x4f8de1(0x632)];if(_0x5c15f7!==undefined&&_0x5c15f7!==null&&_0x5c15f7!==''&&_0x5c15f7!==0x0&&_0x5c15f7!=='0')return![];const _0x30bf2c=toNum(_0x23d188[_0x4f8de1(0x586)]);if(isNum(_0x30bf2c)&&_0x30bf2c!==0x0)return![];if(_0x23d188[_0x4f8de1(0x204)])return![];}return!![];}function resolveAutoScale(_0x1b432c){const _0x1474a6=_0x236d40,_0x436c91=_0x1b432c;if(!isNum(_0x436c91)||_0x436c91<=0x0)return null;if(_0x436c91<=0x4)return{'group_by':_0x1474a6(0x4d3),'points_per_hour':0xc};if(_0x436c91<=0xc)return{'group_by':_0x1474a6(0x4d3),'points_per_hour':0x4};if(_0x436c91<=0x30)return{'group_by':_0x1474a6(0x4d3),'points_per_hour':0x2};const _0x3de176=Math['round'](_0x436c91/0x18);if(_0x3de176<=0x6)return{'group_by':_0x1474a6(0xc1c),'points_per_hour':0x1};if(_0x3de176<=0x3b)return{'group_by':_0x1474a6(0x93a),'points_per_hour':null};if(_0x3de176<=0xb4)return{'group_by':_0x1474a6(0x677),'points_per_hour':null};return{'group_by':'month','points_per_hour':null};}function resolvePointsPerHour(_0x123820,_0x37c890,_0x57f91b){const _0x5f5dbb=_0x236d40,_0x2dfc39=toNum(_0x37c890?.[_0x5f5dbb(0x641)]);if(isNum(_0x2dfc39)&&_0x2dfc39>0x0)return _0x2dfc39;let _0x1ddbe9=toNum(_0x123820?.[_0x5f5dbb(0x641)]);if(!isNum(_0x1ddbe9)||_0x1ddbe9<=0x0)return null;const _0x16c6a5=toNum(_0x123820?.['__sgcDecisionHours']),_0x2921bc=isNum(_0x16c6a5)&&_0x16c6a5>0x0?_0x16c6a5:_0x57f91b;if(_0x123820?.['auto_scale_points']&&isNum(_0x2921bc)&&_0x2921bc>0x0){if(_isAutoScaleSafe(_0x123820)){const _0x4bfe3a=resolveAutoScale(_0x2921bc);if(_0x4bfe3a&&_0x4bfe3a[_0x5f5dbb(0x641)]!==null)return _0x4bfe3a[_0x5f5dbb(0x641)];if(_0x4bfe3a)return 0x1;}const _0x24df59=toNum(_0x123820?.['hours_to_show'])||0x18,_0x3840b8=_0x1ddbe9*(_0x24df59/_0x2921bc);_0x1ddbe9=Math[_0x5f5dbb(0x9bb)](0x2,Math[_0x5f5dbb(0xa31)](Math[_0x5f5dbb(0x6f5)](Math[_0x5f5dbb(0x6fe)](0.5,_0x3840b8))));}return _0x1ddbe9;}function resolveGroupBy(_0x270143,_0x1ee58f){const _0x3a128d=_0x236d40,_0x553d32=toNum(_0x270143?.[_0x3a128d(0x417)]),_0x35197f=isNum(_0x553d32)&&_0x553d32>0x0?_0x553d32:_0x1ee58f;if(_0x270143?.[_0x3a128d(0x592)]&&isNum(_0x35197f)&&_0x35197f>0x0&&_isAutoScaleSafe(_0x270143)){const _0x233e26=resolveAutoScale(_0x35197f);if(_0x233e26)return _0x233e26['group_by'];}return _0x270143?.['group_by']||_0x3a128d(0x4d3);}function computeTrend(_0x11acae,_0x291ca3){const _0xe1d2f=_0x236d40;if(!_0x11acae||_0x11acae[_0xe1d2f(0x2d1)]<0x2)return _0xe1d2f(0x6e7);const _0x56e751=_0x11acae[_0xe1d2f(0x56d)](_0x4c0f56=>_0x4c0f56&&_0x4c0f56['v']!==null&&_0x4c0f56['v']!==undefined&&!Number[_0xe1d2f(0x757)](_0x4c0f56['v']));if(_0x56e751[_0xe1d2f(0x2d1)]<0x2)return _0xe1d2f(0x6e7);let _0x57b208;if(isNum(_0x291ca3)&&_0x291ca3>0x0){const _0x3b8867=_0x56e751[_0x56e751[_0xe1d2f(0x2d1)]-0x1]['t'],_0x817215=_0x3b8867-_0x291ca3*0x36ee80;_0x57b208=_0x56e751['filter'](_0x237532=>_0x237532['t']>=_0x817215);}else _0x57b208=_0x56e751[_0xe1d2f(0x670)](-Math[_0xe1d2f(0x6fe)](0x2,Math['floor'](_0x56e751[_0xe1d2f(0x2d1)]/0x3)));const _0x5ab10e=0x4;_0x57b208[_0xe1d2f(0x2d1)]<_0x5ab10e&&_0x56e751[_0xe1d2f(0x2d1)]>=_0x5ab10e&&(_0x57b208=_0x56e751[_0xe1d2f(0x670)](-_0x5ab10e));if(_0x57b208[_0xe1d2f(0x2d1)]<_0x5ab10e)return _0xe1d2f(0x6e7);const _0x35296c=0x78;let _0x21df86=_0x57b208;if(_0x57b208[_0xe1d2f(0x2d1)]>_0x35296c){_0x21df86=new Array(_0x35296c);const _0x22e4db=(_0x57b208[_0xe1d2f(0x2d1)]-0x1)/(_0x35296c-0x1);for(let _0xc002ed=0x0;_0xc002ed<_0x35296c;_0xc002ed++)_0x21df86[_0xc002ed]=_0x57b208[Math[_0xe1d2f(0x1db)](_0xc002ed*_0x22e4db)];}const _0x3e2a9b=_0x21df86['length'];let _0x23434b=0x0;for(let _0x571ca5=0x0;_0x571ca5<_0x3e2a9b;_0x571ca5++){const _0x5b6c5c=_0x21df86[_0x571ca5]['v'];for(let _0x51a9f7=_0x571ca5+0x1;_0x51a9f7<_0x3e2a9b;_0x51a9f7++){const _0x2f8beb=_0x21df86[_0x51a9f7]['v']-_0x5b6c5c;if(_0x2f8beb>0x0)_0x23434b++;else{if(_0x2f8beb<0x0)_0x23434b--;}}}const _0xf0ed98=_0x3e2a9b*(_0x3e2a9b-0x1)*(0x2*_0x3e2a9b+0x5)/0x12;if(_0xf0ed98<=0x0)return _0xe1d2f(0x6e7);const _0x28f0fa=_0x23434b>0x0?(_0x23434b-0x1)/Math['sqrt'](_0xf0ed98):_0x23434b<0x0?(_0x23434b+0x1)/Math[_0xe1d2f(0x2b3)](_0xf0ed98):0x0,_0x39d19d=1.28;if(_0x28f0fa>_0x39d19d)return'up';if(_0x28f0fa<-_0x39d19d)return _0xe1d2f(0x348);return _0xe1d2f(0x6e7);}function lineDashArray(_0x211cbe,_0x2dea90){const _0x2dce77=_0x236d40;if(_0x211cbe!=='dashed'&&_0x211cbe!==_0x2dce77(0xb6c))return'';const _0x3d5b12=Math[_0x2dce77(0x6fe)](toNum(_0x2dea90)||2.5,0.5);if(_0x211cbe===_0x2dce77(0x666))return(_0x3d5b12*3.2)[_0x2dce77(0x669)](0x1)+','+(_0x3d5b12*2.2)[_0x2dce77(0x669)](0x1);return _0x2dce77(0x2ae)+(_0x3d5b12*2.1)[_0x2dce77(0x669)](0x1);}function trendDirection(_0x417e28,_0x21e579){const _0x561217=_0x236d40;if(!_0x417e28)return _0x561217(0x6e7);const _0x1ff348=_0x21e579['aggregate_func'];if(_0x21e579[_0x561217(0x50f)]||_0x1ff348===_0x561217(0xbb2)||_0x1ff348===_0x561217(0x8ae)){const _0x2ef45d=_0x417e28[_0x561217(0xaee)];return _0x2ef45d&&_0x2ef45d['length']>=0x2?computeTrend(_0x2ef45d,toNum(_0x21e579[_0x561217(0x3e8)])):_0x561217(0x6e7);}const _0xc3af9a=_0x417e28[_0x561217(0x447)]&&_0x417e28[_0x561217(0x447)][_0x561217(0x2d1)]>=0x2?_0x417e28['raw']:_0x417e28[_0x561217(0xaee)];if(!_0xc3af9a||_0xc3af9a[_0x561217(0x2d1)]<0x2)return'stable';let _0x556bc3=computeTrend(_0xc3af9a,toNum(_0x21e579[_0x561217(0x3e8)]));if(_0x21e579[_0x561217(0x8cb)])_0x556bc3=_0x556bc3==='up'?_0x561217(0x348):_0x556bc3===_0x561217(0x348)?'up':_0x561217(0x6e7);return _0x556bc3;}const FETCH_CACHE_TTL_MS=0xea60,FETCH_CACHE_MAX=0x14,STATS_5MIN_MAX_HOURS=0xa8,STATS_HOURLY_MAX_HOURS=0x870,DATE_GROUP_HOURLY_MAX_HOURS=0x5d0,DATE_GROUP_HOURLY_MAX_HOURS_YEAR=0x2250,SHORT_WINDOW_HOURS=0x18,FORCE_STATS_RAW_HOURS=0xf0;class DataFetcher{constructor(){const _0x45c031=_0x236d40;this[_0x45c031(0x373)]=new Map();}[_0x236d40(0xaff)](){const _0x3e1377=_0x236d40;this['_cache'][_0x3e1377(0x9c9)]();}['_cacheGet'](_0x3c6a1a){const _0xea11db=_0x236d40,_0x452f0c=this[_0xea11db(0x373)][_0xea11db(0x66a)](_0x3c6a1a);if(!_0x452f0c)return null;if(Date[_0xea11db(0x8c9)]()-_0x452f0c['ts']>FETCH_CACHE_TTL_MS)return this['_cache']['delete'](_0x3c6a1a),null;return this[_0xea11db(0x373)]['delete'](_0x3c6a1a),this[_0xea11db(0x373)][_0xea11db(0x907)](_0x3c6a1a,_0x452f0c),_0x452f0c[_0xea11db(0xb75)];}['_cacheSet'](_0x4c204e,_0x8c1549){const _0x27024f=_0x236d40,_0x4e3d02=Date['now']();for(const [_0x1ba0c6,_0x307755]of this['_cache']){if(_0x4e3d02-_0x307755['ts']>FETCH_CACHE_TTL_MS)this[_0x27024f(0x373)]['delete'](_0x1ba0c6);}if(this['_cache']['size']>=FETCH_CACHE_MAX){const _0x2cb658=this[_0x27024f(0x373)][_0x27024f(0x27d)]()[_0x27024f(0xa47)]()['value'];if(_0x2cb658!==undefined)this[_0x27024f(0x373)][_0x27024f(0xacc)](_0x2cb658);}this['_cache']['set'](_0x4c204e,{'data':_0x8c1549,'ts':_0x4e3d02});}async[_0x236d40(0x7fc)](_0x356494,_0x4d3add,_0x222ca6,_0x14014c,_0x4c65df=!![]){const _0x41ff1d=_0x236d40;if(!_0x4d3add[_0x41ff1d(0x2d1)])return{};const _0x247933=_0x4d3add[_0x41ff1d(0x5f7)](_0x2f9d00=>_0x2f9d00['id']),_0x558620=_0x4d3add[_0x41ff1d(0x37b)](_0x39ebf7=>_0x39ebf7['attribute']),_0x2f2ce9='h:'+_0x247933[_0x41ff1d(0x358)](',')+'|'+(_0x558620?'A':'S')+'|'+_0x222ca6[_0x41ff1d(0xa86)]()+'|'+_0x14014c[_0x41ff1d(0xa86)]();if(_0x4c65df){const _0xf28208=this[_0x41ff1d(0x92b)](_0x2f2ce9);if(_0xf28208)return _0xf28208;}const _0x5e5e85=_0x558620?'':_0x41ff1d(0x24f),_0x43bb43='history/period/'+_0x222ca6[_0x41ff1d(0xa86)]()+(_0x41ff1d(0x2ec)+encodeURIComponent(_0x14014c[_0x41ff1d(0xa86)]()))+(_0x41ff1d(0x63c)+encodeURIComponent(_0x247933[_0x41ff1d(0x358)](',')))+_0x5e5e85,_0x62345e={};let _0x2bff84=!![];try{const _0x50b19d=await _0x356494[_0x41ff1d(0x4b7)](_0x41ff1d(0xacf),_0x43bb43);for(const _0x506d2c of _0x50b19d||[]){if(!_0x506d2c?.['length'])continue;const _0xbaecf=_0x506d2c[0x0][_0x41ff1d(0xacd)];_0x62345e[_0xbaecf]=_0x506d2c[_0x41ff1d(0x5f7)](_0x3d5924=>stripSampleForCache(_0x3d5924,_0x558620));}}catch(_0x22ae7e){_0x2bff84=![],console['warn'](_0x41ff1d(0x49b),_0x22ae7e);}if(_0x4c65df&&_0x2bff84)this[_0x41ff1d(0xbaa)](_0x2f2ce9,_0x62345e);return _0x62345e;}async['fetchStatistics'](_0x582612,_0x31fd13,_0x3e2a79,_0x405c12,_0x54ff73='hour',_0x491452=!![],_0x53104b=null){const _0x5e17ed=_0x236d40;if(!_0x31fd13[_0x5e17ed(0x2d1)])return{};const _0x2af158=_0x53104b&&_0x53104b['length']?Array[_0x5e17ed(0x98a)](new Set(_0x53104b)):[_0x5e17ed(0x2dc),'min',_0x5e17ed(0x6fe),_0x5e17ed(0x491),_0x5e17ed(0xb91),'change'],_0x299e2f=Math[_0x5e17ed(0xa1e)](_0x405c12[_0x5e17ed(0x3f2)]()/0x2710)*0x2710,_0x1bc2fd=_0x31fd13[_0x5e17ed(0x670)]()[_0x5e17ed(0xc70)]()[_0x5e17ed(0x358)](','),_0x476e9d='s:'+_0x1bc2fd+'|'+_0x3e2a79[_0x5e17ed(0x3f2)]()+'|'+_0x299e2f+'|'+_0x54ff73+'|'+_0x2af158['slice']()[_0x5e17ed(0xc70)]()[_0x5e17ed(0x358)](',');if(_0x491452){const _0x1d58fd=this[_0x5e17ed(0x92b)](_0x476e9d);if(_0x1d58fd)return _0x1d58fd;}const _0x2d9271={};let _0x4560e8=!![];try{const _0x3eb017=await _0x582612[_0x5e17ed(0x6a5)]({'type':'recorder/statistics_during_period','start_time':_0x3e2a79['toISOString'](),'end_time':_0x405c12[_0x5e17ed(0xa86)](),'statistic_ids':_0x31fd13,'period':_0x54ff73,'types':_0x2af158});for(const _0x58f7bd of _0x31fd13){const _0x3e9793=_0x3eb017?.[_0x58f7bd]||[];_0x2d9271[_0x58f7bd]=_0x3e9793[_0x5e17ed(0x5f7)](_0x489afb=>({'t':new Date(_0x489afb[_0x5e17ed(0x5da)])[_0x5e17ed(0x3f2)](),'mean':toNum(_0x489afb['mean']),'min':toNum(_0x489afb[_0x5e17ed(0x9f4)]),'max':toNum(_0x489afb['max']),'sum':toNum(_0x489afb['sum']),'state':toNum(_0x489afb[_0x5e17ed(0xb91)]),'change':toNum(_0x489afb['change'])}));}}catch(_0x381284){_0x4560e8=![],console['warn'](_0x5e17ed(0x3a8),_0x381284);}if(_0x491452&&_0x4560e8)this['_cacheSet'](_0x476e9d,_0x2d9271);return _0x2d9271;}}function stripSampleForCache(_0x2ae637,_0x5520f6){const _0x4693d3=_0x236d40,_0x42f40f={'t':new Date(_0x2ae637['last_changed']||_0x2ae637[_0x4693d3(0x25e)])['getTime'](),'state':_0x2ae637[_0x4693d3(0xb91)]};if(_0x5520f6&&_0x2ae637['attributes'])_0x42f40f[_0x4693d3(0xbb4)]=_0x2ae637['attributes'];else _0x42f40f['attributes']=null;return _0x42f40f;}const AGG_VALID=new Set([_0x236d40(0x9f4),_0x236d40(0x6fe),_0x236d40(0x491),'avg','mean',_0x236d40(0x319),_0x236d40(0x75d),'median',_0x236d40(0xb20),_0x236d40(0xbb2),_0x236d40(0x8ae)]);class DataProcessor{static[_0x236d40(0x9d9)](_0x2a4369,_0x4dcbf6){const _0x4a2605=_0x236d40;if(!Array[_0x4a2605(0x707)](_0x2a4369)||_0x2a4369['length']<=_0x4dcbf6||_0x4dcbf6<0x3)return _0x2a4369;const _0x386dd5=_0x2a4369[_0x4a2605(0x2d1)],_0x5695a0=new Array(_0x4dcbf6);let _0x547348=0x0;const _0x560661=(_0x386dd5-0x2)/(_0x4dcbf6-0x2);let _0x53e433=0x0;_0x5695a0[_0x547348++]=_0x2a4369[_0x53e433];for(let _0x34a9cd=0x0;_0x34a9cd<_0x4dcbf6-0x2;_0x34a9cd++){let _0x4d81ba=0x0,_0xaa38e1=0x0,_0x3e0dd2=Math[_0x4a2605(0xa1e)]((_0x34a9cd+0x1)*_0x560661)+0x1,_0x2f0450=Math[_0x4a2605(0xa1e)]((_0x34a9cd+0x2)*_0x560661)+0x1;_0x2f0450=_0x2f0450<_0x386dd5?_0x2f0450:_0x386dd5;const _0x583f43=_0x2f0450-_0x3e0dd2;if(_0x583f43<=0x0){const _0x1a68ee=Math[_0x4a2605(0x9f4)](_0x3e0dd2,_0x386dd5-0x1);_0x5695a0[_0x547348++]=_0x2a4369[_0x1a68ee],_0x53e433=_0x1a68ee;continue;}for(let _0x5c1ad8=_0x3e0dd2;_0x5c1ad8<_0x2f0450;_0x5c1ad8++){_0x4d81ba+=_0x2a4369[_0x5c1ad8]['t'],_0xaa38e1+=_0x2a4369[_0x5c1ad8]['v']||0x0;}_0x4d81ba/=_0x583f43,_0xaa38e1/=_0x583f43;const _0x34ba65=Math[_0x4a2605(0xa1e)](_0x34a9cd*_0x560661)+0x1,_0x5d76c3=Math['floor']((_0x34a9cd+0x1)*_0x560661)+0x1,_0x32407c=_0x2a4369[_0x53e433]['t'],_0x5120df=_0x2a4369[_0x53e433]['v']||0x0;let _0x27b651=-0x1,_0x5bcc08=_0x34ba65;for(let _0x244663=_0x34ba65;_0x244663<_0x5d76c3;_0x244663++){const _0x21f95e=Math['abs']((_0x32407c-_0x4d81ba)*((_0x2a4369[_0x244663]['v']||0x0)-_0x5120df)-(_0x32407c-_0x2a4369[_0x244663]['t'])*(_0xaa38e1-_0x5120df))*0.5;_0x21f95e>_0x27b651&&(_0x27b651=_0x21f95e,_0x5bcc08=_0x244663);}_0x5695a0[_0x547348++]=_0x2a4369[_0x5bcc08],_0x53e433=_0x5bcc08;}return _0x5695a0[_0x547348++]=_0x2a4369[_0x386dd5-0x1],_0x5695a0;}static[_0x236d40(0x59c)](_0x4b2964,_0x398e5b,_0x2d7890,_0x4f5634,_0x4d2307,_0x196189,_0x544a4a={}){const _0x13e280=_0x236d40;if(!_0x4b2964?.[_0x13e280(0x2d1)]||!_0x398e5b||_0x4f5634<=_0x2d7890)return _0x4b2964||[];const _0x1b4c44=0x7d0,_0x43875d=0x7530;let _0x46da21=Math[_0x13e280(0x6fe)](_0x43875d,_0x398e5b);const _0x2961ab=_0x4f5634-_0x2d7890;let _0x3c30f1=Math[_0x13e280(0xa31)](_0x2961ab/_0x46da21);_0x3c30f1>_0x1b4c44&&(_0x46da21=Math['ceil'](_0x2961ab/_0x1b4c44),_0x3c30f1=_0x1b4c44);let _0x2c7ccb=_0x2d7890;_0x544a4a[_0x13e280(0x357)]&&(_0x2c7ccb=Math[_0x13e280(0xa1e)](_0x2d7890/_0x46da21)*_0x46da21,_0x3c30f1=Math[_0x13e280(0x9f4)](_0x1b4c44,Math[_0x13e280(0xa31)]((_0x4f5634-_0x2c7ccb)/_0x46da21)));const _0x4ef8ed=!!_0x544a4a[_0x13e280(0x1e5)],_0x5ef37d=!!_0x544a4a[_0x13e280(0x6fa)],_0xb3265b=_0x4b2964,_0x3c2102=new Array(_0x3c30f1);let _0x3a69ef=0x0,_0x18b914=null,_0x48dd21=null,_0x4f2ad6=null,_0x5c72e1=null,_0xd8c50c=null;while(_0x3a69ef<_0xb3265b[_0x13e280(0x2d1)]&&_0xb3265b[_0x3a69ef]['t']<_0x2c7ccb){const _0x18f4bc=_0xb3265b[_0x3a69ef]['v'];_0x18f4bc!==null&&_0x18f4bc!==undefined&&!Number[_0x13e280(0x757)](_0x18f4bc)&&(_0x18b914=_0x18f4bc,_0x48dd21=_0xb3265b[_0x3a69ef]['t']),_0x3a69ef++;}const _0x453110=_0x544a4a[_0x13e280(0x859)]?_0x4f5634:Math[_0x13e280(0x9f4)](Date[_0x13e280(0x8c9)](),_0x4f5634),_0x85dc6=!!_0x544a4a['breakOnNull'],_0x413e96=!_0x85dc6?_0x544a4a[_0x13e280(0xb49)]??Infinity:_0x544a4a[_0x13e280(0xb49)]??Math['min'](_0x46da21*0x3,0x1e*0x3c*0x3e8);for(let _0xc487e1=0x0;_0xc487e1<_0x3c30f1;_0xc487e1++){const _0x289d72=_0x2c7ccb+_0xc487e1*_0x46da21,_0x14ce22=_0x289d72+_0x46da21,_0x937ccf=(_0x289d72+_0x14ce22)/0x2,_0x1de810=_0x4ef8ed?_0x289d72:_0x937ccf;while(_0x3a69ef<_0xb3265b[_0x13e280(0x2d1)]&&_0xb3265b[_0x3a69ef]['t']<_0x289d72)_0x3a69ef++;const _0x3fed76=[];let _0x2ba297=Infinity,_0x45d5f0=-Infinity,_0x189033=![],_0x31abbb=_0x3a69ef;while(_0x31abbb<_0xb3265b[_0x13e280(0x2d1)]&&_0xb3265b[_0x31abbb]['t']<_0x14ce22){const _0x51168d=_0xb3265b[_0x31abbb],_0x124412=_0x51168d['v'];if(_0x124412!==null&&_0x124412!==undefined&&!Number[_0x13e280(0x757)](_0x124412)){_0x3fed76[_0x13e280(0x2c1)](_0x124412);if(_0x196189){const _0x297fec=_0x51168d[_0x13e280(0x996)]!==undefined&&_0x51168d[_0x13e280(0x996)]!==null?_0x51168d[_0x13e280(0x996)]:_0x124412,_0x4ad8ca=_0x51168d[_0x13e280(0x1be)]!==undefined&&_0x51168d[_0x13e280(0x1be)]!==null?_0x51168d['bMax']:_0x124412;if(_0x297fec<_0x2ba297)_0x2ba297=_0x297fec;if(_0x4ad8ca>_0x45d5f0)_0x45d5f0=_0x4ad8ca;_0x189033=!![];}}_0x31abbb++;}if(_0x3fed76['length']>0x0){_0x18b914=DataProcessor[_0x13e280(0x6c3)](_0x3fed76,_0x4d2307),_0x48dd21=_0x937ccf;const _0xfa3639={'t':_0x1de810,'v':_0x18b914};_0x196189&&_0x189033&&(_0xfa3639[_0x13e280(0x996)]=_0x2ba297,_0xfa3639[_0x13e280(0x1be)]=_0x45d5f0,_0x4f2ad6=_0x2ba297,_0x5c72e1=_0x45d5f0);if(_0x5ef37d){const _0x53da36=DataProcessor[_0x13e280(0x45c)](_0x3fed76);_0x53da36&&(_0xfa3639['o']=_0x53da36['o'],_0xfa3639['h']=_0x53da36['h'],_0xfa3639['l']=_0x53da36['l'],_0xfa3639['c']=_0x53da36['c'],_0xd8c50c=_0x53da36);}_0x3c2102[_0xc487e1]=_0xfa3639;}else{if(!_0x544a4a[_0x13e280(0xa62)]&&_0x18b914!==null&&_0x289d72<=_0x453110&&_0x413e96>0x0&&_0x48dd21!==null&&_0x937ccf-_0x48dd21<=_0x413e96){const _0x2e1567={'t':_0x1de810,'v':_0x18b914};_0x196189&&(_0x2e1567['bMin']=_0x4f2ad6??_0x18b914,_0x2e1567[_0x13e280(0x1be)]=_0x5c72e1??_0x18b914);if(_0x5ef37d){const _0x1006a5=_0xd8c50c?_0xd8c50c['c']:_0x18b914;_0x2e1567['o']=_0x2e1567['h']=_0x2e1567['l']=_0x2e1567['c']=_0x1006a5;}_0x3c2102[_0xc487e1]=_0x2e1567;}else{const _0x596196={'t':_0x1de810,'v':null};_0x196189&&(_0x596196[_0x13e280(0x996)]=null,_0x596196[_0x13e280(0x1be)]=null);if(_0x5ef37d)_0x596196['o']=_0x596196['h']=_0x596196['l']=_0x596196['c']=null;_0x3c2102[_0xc487e1]=_0x596196;}}}let _0x5d21d1=-0x1;for(let _0x325a3d=0x0;_0x325a3d<_0x3c2102['length'];_0x325a3d++){if(_0x3c2102[_0x325a3d]['v']!==null){_0x5d21d1=_0x325a3d;break;}}if(_0x5d21d1>0x0){const _0x266ab9=_0x3c2102[_0x5d21d1]['v'],_0x4d066a=_0x196189?_0x3c2102[_0x5d21d1][_0x13e280(0x996)]:null,_0x33a44e=_0x196189?_0x3c2102[_0x5d21d1][_0x13e280(0x1be)]:null;for(let _0x580846=0x0;_0x580846<_0x5d21d1;_0x580846++){_0x3c2102[_0x580846]['v']=_0x266ab9,_0x196189&&(_0x3c2102[_0x580846]['bMin']=_0x4d066a,_0x3c2102[_0x580846]['bMax']=_0x33a44e);}}return _0x3c2102;}static[_0x236d40(0x6c3)](_0x12e5c6,_0x21c19e){const _0xdba99=_0x236d40;if(_0x21c19e&&!AGG_VALID[_0xdba99(0x620)](_0x21c19e)){DataProcessor[_0xdba99(0x5f2)]=DataProcessor[_0xdba99(0x5f2)]||new Set();if(!DataProcessor[_0xdba99(0x5f2)][_0xdba99(0x620)](_0x21c19e)){DataProcessor[_0xdba99(0x5f2)][_0xdba99(0x412)](_0x21c19e);const _0x40a3d0=_0x21c19e===_0xdba99(0xb91)?_0xdba99(0xb0a):'';console[_0xdba99(0x6ac)](_0xdba99(0x23f)+_0x21c19e+_0xdba99(0x6b3)+(_0xdba99(0x26f)+[...AGG_VALID][_0xdba99(0x358)](',\x20')+'.'+_0x40a3d0));}}const _0x36934e=[];for(const _0x22d25c of _0x12e5c6)if(_0x22d25c!==null&&_0x22d25c!==undefined&&!Number[_0xdba99(0x757)](_0x22d25c))_0x36934e[_0xdba99(0x2c1)](_0x22d25c);if(!_0x36934e[_0xdba99(0x2d1)])return null;switch(_0x21c19e){case _0xdba99(0x9f4):{let _0x4c156d=_0x36934e[0x0];for(let _0x20dbbd=0x1;_0x20dbbd<_0x36934e['length'];_0x20dbbd++)if(_0x36934e[_0x20dbbd]<_0x4c156d)_0x4c156d=_0x36934e[_0x20dbbd];return _0x4c156d;}case _0xdba99(0x6fe):{let _0x1d3e18=_0x36934e[0x0];for(let _0x945d88=0x1;_0x945d88<_0x36934e[_0xdba99(0x2d1)];_0x945d88++)if(_0x36934e[_0x945d88]>_0x1d3e18)_0x1d3e18=_0x36934e[_0x945d88];return _0x1d3e18;}case _0xdba99(0x491):return _0x36934e[_0xdba99(0x573)]((_0x3f24af,_0x47faf3)=>_0x3f24af+_0x47faf3,0x0);case'first':case _0xdba99(0x75d):{let _0x54aab2=0x0;for(let _0x786872=0x1;_0x786872<_0x36934e[_0xdba99(0x2d1)];_0x786872++)if(_0x36934e[_0x786872]<_0x36934e[_0x786872-0x1])_0x54aab2++;return _0x54aab2>0x0&&(DataProcessor[_0xdba99(0x19a)]=DataProcessor[_0xdba99(0x19a)]||new Set(),!DataProcessor[_0xdba99(0x19a)][_0xdba99(0x620)](_0x21c19e)&&(DataProcessor[_0xdba99(0x19a)][_0xdba99(0x412)](_0x21c19e),console[_0xdba99(0x6ac)](_0xdba99(0x5df)+_0x21c19e+_0xdba99(0x2b7)+_0xdba99(0xcfe)+(_0xdba99(0x7b7)+(_0x21c19e===_0xdba99(0x75d)?_0xdba99(0xb6f):'first\x20reading\x20can\x20be\x20a\x20pre-reset\x20tail')+',\x20')+_0xdba99(0x305)+_0xdba99(0xcc7)))),_0x21c19e===_0xdba99(0x319)?_0x36934e[0x0]:_0x36934e[_0x36934e[_0xdba99(0x2d1)]-0x1];}case _0xdba99(0xcdc):{const _0x4ee5bd=[..._0x36934e][_0xdba99(0xc70)]((_0x264160,_0x66ca44)=>_0x264160-_0x66ca44),_0x330ff3=Math[_0xdba99(0xa1e)](_0x4ee5bd[_0xdba99(0x2d1)]/0x2);return _0x4ee5bd[_0xdba99(0x2d1)]%0x2?_0x4ee5bd[_0x330ff3]:(_0x4ee5bd[_0x330ff3-0x1]+_0x4ee5bd[_0x330ff3])/0x2;}case _0xdba99(0xb20):{let _0x59e6ef=_0x36934e[0x0],_0x4df546=_0x36934e[0x0];for(let _0x20740a=0x1;_0x20740a<_0x36934e['length'];_0x20740a++){if(_0x36934e[_0x20740a]<_0x59e6ef)_0x59e6ef=_0x36934e[_0x20740a];if(_0x36934e[_0x20740a]>_0x4df546)_0x4df546=_0x36934e[_0x20740a];}return _0x4df546-_0x59e6ef;}case _0xdba99(0xbb2):{if(_0x36934e[_0xdba99(0x2d1)]<0x2)return 0x0;return _0x36934e[_0x36934e[_0xdba99(0x2d1)]-0x1]-_0x36934e[0x0];}case'change':{if(_0x36934e[_0xdba99(0x2d1)]<0x2)return 0x0;let _0x5e204b=0x0;for(let _0x35eaa5=0x1;_0x35eaa5<_0x36934e[_0xdba99(0x2d1)];_0x35eaa5++){const _0x8e1373=_0x36934e[_0x35eaa5]-_0x36934e[_0x35eaa5-0x1];if(_0x8e1373>=0x0)_0x5e204b+=_0x8e1373;}return _0x5e204b;}case _0xdba99(0x7ae):case _0xdba99(0x2dc):default:return _0x36934e[_0xdba99(0x573)]((_0x2f6ceb,_0x105db6)=>_0x2f6ceb+_0x105db6,0x0)/_0x36934e[_0xdba99(0x2d1)];}}static[_0x236d40(0x45c)](_0x18bed3){const _0x26ae63=_0x236d40;let _0x8b9e58=null,_0x5b58b6=null,_0x596fdd=null,_0x558486=null;for(const _0x2321f4 of _0x18bed3){if(_0x2321f4===null||_0x2321f4===undefined||Number[_0x26ae63(0x757)](_0x2321f4))continue;if(_0x8b9e58===null)_0x8b9e58=_0x2321f4,_0x5b58b6=_0x2321f4,_0x596fdd=_0x2321f4;else{if(_0x2321f4>_0x5b58b6)_0x5b58b6=_0x2321f4;if(_0x2321f4<_0x596fdd)_0x596fdd=_0x2321f4;}_0x558486=_0x2321f4;}return _0x8b9e58===null?null:{'o':_0x8b9e58,'h':_0x5b58b6,'l':_0x596fdd,'c':_0x558486};}static[_0x236d40(0x445)](_0x4d90be,_0x1a7095){const _0x979b41=_0x236d40,_0x5aa53b=Array[_0x979b41(0x707)](_0x1a7095?.[_0x979b41(0xb29)])?_0x1a7095['moving_averages']:null;if(!_0x5aa53b||!_0x5aa53b[_0x979b41(0x2d1)]||!Array[_0x979b41(0x707)](_0x4d90be)||!_0x4d90be[_0x979b41(0x2d1)])return null;const _0x3cf8b3=(_0x1a7095[_0x979b41(0xcad)]||_0x1a7095[_0x979b41(0x604)])===_0x979b41(0x93c),_0x41a0c7=_0x2f8c62=>{if(!_0x2f8c62)return null;const _0x197f34=_0x3cf8b3?isNum(_0x2f8c62['c'])?_0x2f8c62['c']:_0x2f8c62['v']:_0x2f8c62['v'];return isNum(_0x197f34)?_0x197f34:null;},_0x5b303c=_0x4d90be[_0x979b41(0x5f7)](_0x41a0c7),_0x1d4430=_0x4d90be[_0x979b41(0x2d1)],_0x1a9559=[];for(const _0x1158e0 of _0x5aa53b){const _0x5c941f=Math[_0x979b41(0x1db)](toNum(_0x1158e0?.[_0x979b41(0x877)])||0x0);if(!(_0x5c941f>=0x1))continue;const _0x1a334c=new Array(_0x1d4430);let _0x1e48b0=0x0,_0x494fef=-0x1;for(let _0x58d189=0x0;_0x58d189<_0x1d4430;_0x58d189++){const _0x3ba81c=_0x5b303c[_0x58d189];_0x3ba81c===null?_0x494fef=_0x58d189:_0x1e48b0+=_0x3ba81c;if(_0x58d189>=_0x5c941f){const _0x10ed4b=_0x5b303c[_0x58d189-_0x5c941f];if(_0x10ed4b!==null)_0x1e48b0-=_0x10ed4b;}const _0x214e38=_0x58d189>=_0x5c941f-0x1&&_0x494fef<=_0x58d189-_0x5c941f;_0x1a334c[_0x58d189]={'t':_0x4d90be[_0x58d189]['t'],'v':_0x214e38?_0x1e48b0/_0x5c941f:null};}_0x1a9559['push']({'period':_0x5c941f,'color':_0x1158e0['color']||null,'width':_0x1158e0[_0x979b41(0x8da)]!=null&&_0x1158e0[_0x979b41(0x8da)]!==''&&isNum(toNum(_0x1158e0[_0x979b41(0x8da)]))?toNum(_0x1158e0['width']):null,'show_label':!!_0x1158e0[_0x979b41(0x385)],'points':_0x1a334c});}return _0x1a9559['length']?_0x1a9559:null;}static[_0x236d40(0x5dd)](_0x253840,_0x123d7d,_0x456cba){const _0x54a998=_0x236d40,_0x5a1874=Array[_0x54a998(0x707)](_0x123d7d?.[_0x54a998(0xb29)])?_0x123d7d[_0x54a998(0xb29)][_0x54a998(0x56d)](_0x298343=>_0x298343&&Math[_0x54a998(0x1db)](toNum(_0x298343[_0x54a998(0x877)])||0x0)>=0x1):null;if(!_0x5a1874||!_0x5a1874['length']||!Array[_0x54a998(0x707)](_0x253840)||!_0x253840[_0x54a998(0x2d1)])return null;const {startMs:_0x11c01b,endMs:_0x59a247,bucketMs:_0x4e96cc,groupBy:_0x46441f,aggFunc:_0x416546,alignToClock:_0x30cb28,anchorStart:_0x5c100a,tz:_0x289941}=_0x456cba||{};let _0x49e25a=0x0;for(const _0x407e01 of _0x5a1874){const _0x321ecf=Math[_0x54a998(0x1db)](toNum(_0x407e01[_0x54a998(0x877)])||0x0);if(_0x321ecf>_0x49e25a)_0x49e25a=_0x321ecf;}if(!(_0x49e25a>=0x1))return null;const _0x90e3b6=(_0x123d7d[_0x54a998(0xcad)]||_0x123d7d[_0x54a998(0x604)])===_0x54a998(0x93c),_0xa98667=[_0x54a998(0xc1c),_0x54a998(0x93a),_0x54a998(0x677),_0x54a998(0x74c),_0x54a998(0x40e)];let _0xe937d;if(_0xa98667['includes'](_0x46441f)){_0xe937d=DataProcessor[_0x54a998(0x6da)](_0x253840,_0x46441f,_0x416546,_0x59a247,_0x289941,_0x90e3b6);if(!_0x123d7d[_0x54a998(0x298)]){const _0xa7f681=_0x253840[_0x54a998(0x2d1)]?_0x253840[_0x253840['length']-0x1]['t']:null;_0xe937d=DataProcessor[_0x54a998(0x53e)](_0xe937d,_0x46441f,_0x416546,{'endMs':_0x59a247,'lastRawT':_0xa7f681,'tz':_0x289941});}}else{if(isNum(_0x4e96cc)&&_0x4e96cc>0x0){const _0x370620=(_0x49e25a-0x1)*_0x4e96cc;_0xe937d=DataProcessor['groupPoints'](_0x253840,_0x4e96cc,isNum(_0x11c01b)?_0x11c01b-_0x370620:_0x11c01b,_0x59a247,_0x416546,![],{'breakOnNull':!!_0x123d7d['break_on_null'],'carryForwardMs':_0x123d7d[_0x54a998(0x93e)],'alignToClock':_0x30cb28,'anchorStart':_0x5c100a,'ohlc':_0x90e3b6});}else _0xe937d=_0x253840;}const _0x28f5=DataProcessor[_0x54a998(0xcf6)](_0xe937d,_0x123d7d,![]),_0x2726c7=DataProcessor[_0x54a998(0x445)](_0x28f5,_0x123d7d);if(!_0x2726c7)return null;if(isNum(_0x11c01b)){for(const _0x4e4c37 of _0x2726c7)_0x4e4c37[_0x54a998(0xaee)]=_0x4e4c37['points']['filter'](_0x11e3f6=>_0x11e3f6['t']>=_0x11c01b);}return _0x2726c7['length']?_0x2726c7:null;}static[_0x236d40(0xa37)](_0x1c13c6,_0x24ae8f,_0x4fb821,_0x3addba,_0x51aedd){const _0xeca63c=_0x236d40;if(_0x4fb821!==_0xeca63c(0x6fe)||_0x24ae8f!==_0xeca63c(0x93a))return _0x1c13c6;if(!Array[_0xeca63c(0x707)](_0x1c13c6)||_0x1c13c6[_0xeca63c(0x2d1)]<0x2)return _0x1c13c6;const _0xde18b4=_0x3b9131=>{const _0x450bdc=tzParts(_0x3b9131,_0x3addba);return _0x450bdc['y']+'-'+_0x450bdc['mo']+'-'+_0x450bdc['d'];},_0x578821=_0x4542bd=>tzStartOfDayMs(_0x4542bd,_0x3addba),_0xbc1bb=new Map();for(const _0x15c790 of _0x1c13c6){if(!isNum(_0x15c790['v']))continue;const _0xfd5982=_0xde18b4(_0x15c790['t']);let _0x100837=_0xbc1bb[_0xeca63c(0x66a)](_0xfd5982);!_0x100837&&(_0x100837={'count':0x0,'first':null,'list':[]},_0xbc1bb['set'](_0xfd5982,_0x100837));_0x100837[_0xeca63c(0xb40)]++,_0x100837['list'][_0xeca63c(0x2c1)](_0x15c790);if(!_0x100837[_0xeca63c(0x319)]||_0x15c790['t']<_0x100837[_0xeca63c(0x319)]['t'])_0x100837['first']=_0x15c790;}const _0x28067c=new Map();for(const _0x4f1031 of _0xbc1bb['values']()){const _0x1478f4=_0x4f1031[_0xeca63c(0x319)];_0x4f1031[_0xeca63c(0xb40)]>=0x2&&_0x1478f4&&_0x1478f4['t']===_0x578821(_0x1478f4['t'])&&isNum(_0x1478f4['v'])&&_0x1478f4['v']>0x0&&isNum(_0x1478f4[_0xeca63c(0x5e4)])&&isNum(_0x1478f4[_0xeca63c(0x79a)])&&_0x1478f4[_0xeca63c(0x5e4)]<_0x1478f4['v']*0.3&&_0x1478f4['sMin']<_0x1478f4['v']*0.5&&_0x28067c[_0xeca63c(0x907)](_0x1478f4,_0x1478f4[_0xeca63c(0x79a)]);if(_0x4f1031['list']['length']>=0x2){const _0x563b0f=_0x4f1031[_0xeca63c(0x884)][_0xeca63c(0x670)]()[_0xeca63c(0xc70)]((_0x6aa5b9,_0x44c48a)=>_0x6aa5b9['t']-_0x44c48a['t']),_0x17682b=_0x563b0f[0x0]['v'];let _0x193657=0x0,_0x3aa2a4=_0x563b0f[0x0]['v'],_0x2f4085=_0x563b0f[0x0]['v'];for(let _0x2a6a99=0x1;_0x2a6a99<_0x563b0f[_0xeca63c(0x2d1)];_0x2a6a99++){if(!isNum(_0x563b0f[_0x2a6a99]['v']))continue;_0x563b0f[_0x2a6a99]['v']<_0x3aa2a4&&(_0x3aa2a4=_0x563b0f[_0x2a6a99]['v'],_0x193657=_0x2a6a99);if(_0x563b0f[_0x2a6a99]['v']>_0x2f4085)_0x2f4085=_0x563b0f[_0x2a6a99]['v'];}let _0x1062d6=![];for(let _0x2be098=_0x193657+0x1;_0x2be098<_0x563b0f['length'];_0x2be098++){if(isNum(_0x563b0f[_0x2be098]['v'])&&_0x563b0f[_0x2be098]['v']>_0x3aa2a4*1.5+1e-9){_0x1062d6=!![];break;}}const _0x45caf2=isNum(_0x17682b)&&_0x17682b>0x0&&_0x3aa2a4<_0x17682b*0.5,_0x53a82c=!!_0x51aedd||_0x3aa2a4<=_0x2f4085*0.2;if(_0x193657>0x0&&_0x45caf2&&_0x53a82c&&_0x1062d6)for(let _0x47dbf0=0x0;_0x47dbf0<_0x193657;_0x47dbf0++){if(isNum(_0x563b0f[_0x47dbf0]['v'])&&_0x563b0f[_0x47dbf0]['v']>_0x3aa2a4){const _0x841d77=_0x28067c[_0xeca63c(0x620)](_0x563b0f[_0x47dbf0])?_0x28067c[_0xeca63c(0x66a)](_0x563b0f[_0x47dbf0]):_0x563b0f[_0x47dbf0]['v'];_0x28067c[_0xeca63c(0x907)](_0x563b0f[_0x47dbf0],Math['min'](_0x841d77,_0x3aa2a4));}}}}if(!_0x28067c[_0xeca63c(0x9c5)])return _0x1c13c6;return _0x1c13c6[_0xeca63c(0x5f7)](_0xfb5c89=>_0x28067c[_0xeca63c(0x620)](_0xfb5c89)?{..._0xfb5c89,'v':_0x28067c[_0xeca63c(0x66a)](_0xfb5c89)}:_0xfb5c89);}static[_0x236d40(0x6da)](_0x2ad4af,_0x495a8a,_0x25b33c,_0x199d2b,_0xddc0a4,_0x13589a){const _0x69e6be=_0x236d40;if(!_0x2ad4af||!_0x2ad4af[_0x69e6be(0x2d1)])return[];const _0x2b2fdb={},_0xc1abaf=typeof _0x199d2b===_0x69e6be(0x7ad)&&Number[_0x69e6be(0x726)](_0x199d2b);for(const _0x516426 of _0x2ad4af){if(_0x516426['v']===null||_0x516426['v']===undefined)continue;if(_0xc1abaf&&_0x516426['t']>=_0x199d2b)continue;const _0x5856ba=tzParts(_0x516426['t'],_0xddc0a4);let _0x92642f,_0x1d0f97;switch(_0x495a8a){case _0x69e6be(0xc1c):_0x92642f=_0x5856ba['y']+'-'+_0x5856ba['mo']+'-'+_0x5856ba['d']+'-'+_0x5856ba['h'],_0x1d0f97=zonedWallToMs(_0x5856ba['y'],_0x5856ba['mo'],_0x5856ba['d'],_0x5856ba['h'],0x0,0x0,_0xddc0a4);break;case'date':_0x92642f=_0x5856ba['y']+'-'+_0x5856ba['mo']+'-'+_0x5856ba['d'],_0x1d0f97=zonedWallToMs(_0x5856ba['y'],_0x5856ba['mo'],_0x5856ba['d'],0x0,0x0,0x0,_0xddc0a4);break;case _0x69e6be(0x677):{const _0x556bec=zonedWallToMs(_0x5856ba['y'],_0x5856ba['mo'],_0x5856ba['d']-(_0x5856ba['wd']-0x1),0x0,0x0,0x0,_0xddc0a4),_0x4fe828=tzParts(_0x556bec,_0xddc0a4);_0x92642f=_0x4fe828['y']+'-'+_0x4fe828['mo']+'-'+_0x4fe828['d'],_0x1d0f97=_0x556bec;break;}case _0x69e6be(0x74c):_0x92642f=_0x5856ba['y']+'-'+_0x5856ba['mo'],_0x1d0f97=zonedWallToMs(_0x5856ba['y'],_0x5856ba['mo'],0x1,0x0,0x0,0x0,_0xddc0a4);break;case _0x69e6be(0x40e):_0x92642f=''+_0x5856ba['y'],_0x1d0f97=zonedWallToMs(_0x5856ba['y'],0x0,0x1,0x0,0x0,0x0,_0xddc0a4);break;default:return _0x2ad4af;}if(!_0x2b2fdb[_0x92642f])_0x2b2fdb[_0x92642f]={'vals':[],'t':_0x1d0f97,'min':Infinity,'max':-Infinity};_0x2b2fdb[_0x92642f][_0x69e6be(0x213)][_0x69e6be(0x2c1)](_0x516426['v']);const _0x2150c0=_0x516426['bMin']!==undefined&&_0x516426['bMin']!==null?_0x516426[_0x69e6be(0x996)]:_0x516426['v'],_0xb6b050=_0x516426['bMax']!==undefined&&_0x516426[_0x69e6be(0x1be)]!==null?_0x516426[_0x69e6be(0x1be)]:_0x516426['v'];if(_0x2150c0<_0x2b2fdb[_0x92642f]['min'])_0x2b2fdb[_0x92642f]['min']=_0x2150c0;if(_0xb6b050>_0x2b2fdb[_0x92642f]['max'])_0x2b2fdb[_0x92642f][_0x69e6be(0x6fe)]=_0xb6b050;}return Object[_0x69e6be(0x91d)](_0x2b2fdb)[_0x69e6be(0x5f7)](_0xd47d4=>{const _0x478ba1=_0x69e6be,_0x5af59a={'t':_0xd47d4['t'],'v':DataProcessor[_0x478ba1(0x6c3)](_0xd47d4[_0x478ba1(0x213)],_0x25b33c)};isFinite(_0xd47d4[_0x478ba1(0x9f4)])&&(_0x5af59a[_0x478ba1(0x996)]=_0xd47d4[_0x478ba1(0x9f4)],_0x5af59a[_0x478ba1(0x1be)]=_0xd47d4[_0x478ba1(0x6fe)]);if(_0x13589a){const _0x30387c=DataProcessor[_0x478ba1(0x45c)](_0xd47d4[_0x478ba1(0x213)]);_0x30387c&&(_0x5af59a['o']=_0x30387c['o'],_0x5af59a['c']=_0x30387c['c'],_0x5af59a['h']=isFinite(_0xd47d4['max'])?Math[_0x478ba1(0x6fe)](_0xd47d4[_0x478ba1(0x6fe)],_0x30387c['o'],_0x30387c['c']):_0x30387c['h'],_0x5af59a['l']=isFinite(_0xd47d4[_0x478ba1(0x9f4)])?Math[_0x478ba1(0x9f4)](_0xd47d4['min'],_0x30387c['o'],_0x30387c['c']):_0x30387c['l']);}return _0x5af59a;})[_0x69e6be(0xc70)]((_0x235a45,_0x3a4fe8)=>_0x235a45['t']-_0x3a4fe8['t']);}static[_0x236d40(0x53e)](_0x9e991a,_0x33eed4,_0x5190df,_0x230cd5={}){const _0x228559=_0x236d40;if(!_0x9e991a||_0x9e991a[_0x228559(0x2d1)]===0x0)return _0x9e991a||[];const _0x49f71a=new Set([_0x228559(0x8ae),_0x228559(0x491),_0x228559(0xbb2),_0x228559(0xb20)]);if(_0x49f71a['has'](_0x5190df))return _0x9e991a;const _0x384944=_0x230cd5['tz'],_0x3a0ca1=_0x16d1d2=>{const _0x26de16=_0x228559,_0x5ab47b=tzParts(_0x16d1d2,_0x384944);switch(_0x33eed4){case _0x26de16(0xc1c):return zonedWallToMs(_0x5ab47b['y'],_0x5ab47b['mo'],_0x5ab47b['d'],_0x5ab47b['h']+0x1,0x0,0x0,_0x384944);case _0x26de16(0x93a):return zonedWallToMs(_0x5ab47b['y'],_0x5ab47b['mo'],_0x5ab47b['d']+0x1,0x0,0x0,0x0,_0x384944);case _0x26de16(0x677):return zonedWallToMs(_0x5ab47b['y'],_0x5ab47b['mo'],_0x5ab47b['d']+0x7,0x0,0x0,0x0,_0x384944);case _0x26de16(0x74c):return zonedWallToMs(_0x5ab47b['y'],_0x5ab47b['mo']+0x1,0x1,0x0,0x0,0x0,_0x384944);case _0x26de16(0x40e):return zonedWallToMs(_0x5ab47b['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x384944);default:return null;}},_0x324251=Date[_0x228559(0x8c9)](),_0x5f46be=[_0x324251];if(typeof _0x230cd5['endMs']===_0x228559(0x7ad)&&Number['isFinite'](_0x230cd5[_0x228559(0xbb8)]))_0x5f46be['push'](_0x230cd5[_0x228559(0xbb8)]);if(typeof _0x230cd5['lastRawT']===_0x228559(0x7ad)&&Number[_0x228559(0x726)](_0x230cd5[_0x228559(0x658)]))_0x5f46be[_0x228559(0x2c1)](_0x230cd5['lastRawT']);const _0x592c8d=Math[_0x228559(0x9f4)](..._0x5f46be),_0x51d7cf=_0x9e991a[_0x228559(0x670)]()[_0x228559(0xc70)]((_0x1b3475,_0x124b52)=>_0x1b3475['t']-_0x124b52['t']),_0x13bb8e=[];let _0x42cef1=null,_0x95767d=null,_0xfa73cd=null,_0x453036=_0x51d7cf[0x0]['t'],_0x312aaa=0x0,_0x2c5d18=_0x51d7cf['length']*0xa+0x3e8;while(_0x453036<_0x592c8d&&_0x2c5d18-->0x0){const _0x553f7e=_0x453036;let _0xc68266=null;while(_0x312aaa<_0x51d7cf[_0x228559(0x2d1)]&&_0x51d7cf[_0x312aaa]['t']<=_0x553f7e){if(_0x51d7cf[_0x312aaa]['t']===_0x553f7e)_0xc68266=_0x51d7cf[_0x312aaa];_0x312aaa++;}if(_0xc68266){_0x13bb8e[_0x228559(0x2c1)](_0xc68266),_0x42cef1=_0xc68266['v'];if(_0xc68266[_0x228559(0x996)]!==undefined)_0x95767d=_0xc68266['bMin'];if(_0xc68266[_0x228559(0x1be)]!==undefined)_0xfa73cd=_0xc68266[_0x228559(0x1be)];}else{if(_0x42cef1!==null){const _0x3310a7={'t':_0x553f7e,'v':_0x42cef1};if(_0x95767d!==null)_0x3310a7['bMin']=_0x95767d;if(_0xfa73cd!==null)_0x3310a7[_0x228559(0x1be)]=_0xfa73cd;_0x13bb8e[_0x228559(0x2c1)](_0x3310a7);}}const _0x57b3db=_0x3a0ca1(_0x453036);if(_0x57b3db===null||_0x57b3db<=_0x553f7e)break;_0x453036=_0x57b3db;}const _0x39ac91=typeof _0x230cd5[_0x228559(0xbb8)]===_0x228559(0x7ad)&&Number['isFinite'](_0x230cd5[_0x228559(0xbb8)])?_0x230cd5['endMs']:Infinity;while(_0x312aaa<_0x51d7cf[_0x228559(0x2d1)]){if(_0x51d7cf[_0x312aaa]['t']<_0x39ac91)_0x13bb8e[_0x228559(0x2c1)](_0x51d7cf[_0x312aaa]);_0x312aaa++;}return _0x13bb8e;}static['breakGapsInCalendar'](_0x592117,_0x554d76,_0x4e0ef9={}){const _0x4b8ec1=_0x236d40;if(!_0x592117||_0x592117[_0x4b8ec1(0x2d1)]<0x2)return _0x592117||[];const _0x21a1f8=_0x4e0ef9['tz'],_0x3ef820=_0x408afd=>{const _0x5b73f1=_0x4b8ec1,_0x3130b3=tzParts(_0x408afd,_0x21a1f8);switch(_0x554d76){case _0x5b73f1(0xc1c):return zonedWallToMs(_0x3130b3['y'],_0x3130b3['mo'],_0x3130b3['d'],_0x3130b3['h']+0x1,0x0,0x0,_0x21a1f8);case _0x5b73f1(0x93a):return zonedWallToMs(_0x3130b3['y'],_0x3130b3['mo'],_0x3130b3['d']+0x1,0x0,0x0,0x0,_0x21a1f8);case'week':return zonedWallToMs(_0x3130b3['y'],_0x3130b3['mo'],_0x3130b3['d']+0x7,0x0,0x0,0x0,_0x21a1f8);case _0x5b73f1(0x74c):return zonedWallToMs(_0x3130b3['y'],_0x3130b3['mo']+0x1,0x1,0x0,0x0,0x0,_0x21a1f8);case'year':return zonedWallToMs(_0x3130b3['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x21a1f8);default:return null;}},_0x5f1c99=_0x592117[_0x4b8ec1(0x670)]()[_0x4b8ec1(0xc70)]((_0x4f3e5c,_0x171e32)=>_0x4f3e5c['t']-_0x171e32['t']),_0x35dd7e=_0x5f1c99[_0x5f1c99['length']-0x1]['t'],_0x1f1495=[];let _0xd351ba=_0x5f1c99[0x0]['t'],_0x51b859=0x0,_0x4b70b5=_0x5f1c99[_0x4b8ec1(0x2d1)]*0x4+0x7d0;while(_0xd351ba<=_0x35dd7e&&_0x4b70b5-->0x0){const _0x40b9d9=_0xd351ba;let _0x32d487=null;while(_0x51b859<_0x5f1c99[_0x4b8ec1(0x2d1)]&&_0x5f1c99[_0x51b859]['t']<=_0x40b9d9){if(_0x5f1c99[_0x51b859]['t']===_0x40b9d9)_0x32d487=_0x5f1c99[_0x51b859];_0x51b859++;}_0x1f1495[_0x4b8ec1(0x2c1)](_0x32d487||{'t':_0x40b9d9,'v':null});const _0x176589=_0x3ef820(_0xd351ba);if(_0x176589===null||_0x176589<=_0x40b9d9)break;_0xd351ba=_0x176589;}return _0x1f1495;}static[_0x236d40(0xbca)](_0x509962){const _0x4ae296=_0x236d40;switch(_0x509962){case'last':case _0x4ae296(0x319):return[_0x4ae296(0xb91),_0x4ae296(0x8ae),_0x4ae296(0x2dc)];case _0x4ae296(0x8ae):return[_0x4ae296(0x8ae),_0x4ae296(0x491),'mean',_0x4ae296(0xb91)];case _0x4ae296(0xbb2):return['state','mean'];case _0x4ae296(0x491):return[_0x4ae296(0x491)];case _0x4ae296(0x9f4):return[_0x4ae296(0x9f4),_0x4ae296(0xb91),_0x4ae296(0x2dc)];case'max':return['max',_0x4ae296(0xb91),'mean'];case _0x4ae296(0x7ae):case _0x4ae296(0x2dc):default:return[_0x4ae296(0x2dc),_0x4ae296(0xb91)];}}static[_0x236d40(0xbac)](_0x4d99b6,_0x3a0ee5){const _0x2c2b04=_0x236d40;if(!_0x4d99b6)return null;const _0x51f367=DataProcessor['statsFieldCascade'](_0x3a0ee5);for(const _0x142d52 of _0x51f367){const _0x433310=_0x4d99b6[_0x142d52];if(_0x433310!==null&&_0x433310!==undefined&&!Number[_0x2c2b04(0x757)](_0x433310))return _0x433310;}return null;}static[_0x236d40(0x7e6)](_0x10c843){const _0xf9972d=_0x236d40;if(!Array[_0xf9972d(0x707)](_0x10c843)||_0x10c843['length']<0x2)return _0x10c843||[];const _0x229b58=_0x10c843[_0xf9972d(0x5f7)](_0x416030=>_0x416030['v']),_0x19066e=new Array(_0x10c843[_0xf9972d(0x2d1)]);_0x19066e[0x0]={..._0x10c843[0x0],'v':0x0};for(let _0x33c26f=0x1;_0x33c26f<_0x10c843[_0xf9972d(0x2d1)];_0x33c26f++){_0x19066e[_0x33c26f]={..._0x10c843[_0x33c26f],'v':_0x229b58[_0x33c26f]-_0x229b58[_0x33c26f-0x1]};}return _0x19066e;}static['changeDiffSeries'](_0xd4de38){const _0x44997b=_0x236d40;if(!Array[_0x44997b(0x707)](_0xd4de38)||_0xd4de38['length']<0x2)return _0xd4de38||[];const _0x3ae8ab=_0xd4de38['map'](_0x34a84c=>_0x34a84c['v']),_0x101258=new Array(_0xd4de38[_0x44997b(0x2d1)]);_0x101258[0x0]={..._0xd4de38[0x0],'v':0x0};for(let _0x46694c=0x1;_0x46694c<_0xd4de38[_0x44997b(0x2d1)];_0x46694c++){const _0x1fcf08=_0x3ae8ab[_0x46694c-0x1],_0x2ab13b=_0x3ae8ab[_0x46694c];_0x101258[_0x46694c]={..._0xd4de38[_0x46694c],'v':isNum(_0x1fcf08)&&isNum(_0x2ab13b)?Math[_0x44997b(0x6fe)](0x0,_0x2ab13b-_0x1fcf08):null};}return _0x101258;}static[_0x236d40(0xb4e)](_0x40e0e3,_0x5460c9){const _0x411214=_0x236d40;if(!_0x40e0e3?.[_0x411214(0x2d1)])return[];const _0x3ff6b5=toNum(_0x5460c9[_0x411214(0x459)]),_0x9af6f6=isNum(_0x3ff6b5)&&_0x3ff6b5!==0x0?Math[_0x411214(0x9bb)](0xa,_0x3ff6b5):0x1,_0x41fb34=!!_0x5460c9[_0x411214(0x8cb)];if(_0x9af6f6===0x1&&!_0x41fb34)return _0x40e0e3;const _0x19cb4d=new Array(_0x40e0e3[_0x411214(0x2d1)]);for(let _0x11be6c=0x0;_0x11be6c<_0x40e0e3[_0x411214(0x2d1)];_0x11be6c++){const _0x3872ce=_0x40e0e3[_0x11be6c];if(!isNum(_0x3872ce['v'])){_0x19cb4d[_0x11be6c]=_0x3872ce;continue;}let _0x280037=_0x3872ce['v'];if(_0x9af6f6!==0x1)_0x280037*=_0x9af6f6;if(_0x41fb34)_0x280037=-_0x280037;_0x19cb4d[_0x11be6c]={'t':_0x3872ce['t'],'v':_0x280037};}return _0x19cb4d;}static['applyPostBucketTransform'](_0x52286b,_0x3215a6,_0x3403ed){const _0x607f16=_0x236d40;if(!_0x52286b?.[_0x607f16(0x2d1)])return _0x52286b||[];const _0x2878f8=_0x3215a6[COMPILED_TRANSFORM];if(!_0x2878f8)return _0x52286b;let _0x2c91cb=Infinity,_0x10a224=-Infinity,_0x4dff14=0x0,_0x213abe=0x0,_0x260b47=null,_0x163887=null;for(const _0x2188d9 of _0x52286b){if(!isNum(_0x2188d9['v']))continue;if(_0x260b47===null)_0x260b47=_0x2188d9['v'];_0x163887=_0x2188d9['v'];if(_0x2188d9['v']<_0x2c91cb)_0x2c91cb=_0x2188d9['v'];if(_0x2188d9['v']>_0x10a224)_0x10a224=_0x2188d9['v'];_0x4dff14+=_0x2188d9['v'],_0x213abe++;}const _0x36c1ed=_0x213abe>0x0?{'first':_0x260b47,'last':_0x163887,'min':_0x2c91cb,'max':_0x10a224,'avg':_0x4dff14/_0x213abe}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0},_0x26cf91=[];for(let _0xaa4ae3=0x0;_0xaa4ae3<_0x52286b['length'];_0xaa4ae3++){const _0x2fe304=_0x52286b[_0xaa4ae3];if(!isNum(_0x2fe304['v'])){_0x26cf91[_0x607f16(0x2c1)](_0x2fe304);continue;}const _0x5aefec=_0x2fe304['v'],_0x195de5=_0x2878f8(_0x2fe304['v'],_0xaa4ae3,_0x36c1ed);if(_0x195de5===null)continue;const _0xce0386={'t':_0x2fe304['t'],'v':_0x195de5};if(_0x5aefec!==_0x195de5)_0xce0386[_0x607f16(0x424)]=_0x5aefec;if(_0x3403ed&&_0x2fe304[_0x607f16(0x996)]!=null&&_0x2fe304[_0x607f16(0x1be)]!=null){const _0x50403e=_0x2878f8(_0x2fe304[_0x607f16(0x996)],_0xaa4ae3,_0x36c1ed),_0x1b6703=_0x2878f8(_0x2fe304[_0x607f16(0x1be)],_0xaa4ae3,_0x36c1ed);_0x50403e!==null&&_0x1b6703!==null&&!Number[_0x607f16(0x757)](_0x50403e)&&!Number['isNaN'](_0x1b6703)&&(_0xce0386[_0x607f16(0x996)]=Math[_0x607f16(0x9f4)](_0x50403e,_0x1b6703),_0xce0386[_0x607f16(0x1be)]=Math['max'](_0x50403e,_0x1b6703));}_0x26cf91[_0x607f16(0x2c1)](_0xce0386);}return _0x26cf91;}static[_0x236d40(0xa18)](_0x4d3fe4,_0x5f3772,_0xaacffc=![]){const _0x48f1c1=_0x236d40;if(!_0x4d3fe4?.[_0x48f1c1(0x2d1)])return[];const _0x2cedc4=_0xaacffc?null:_0x5f3772[COMPILED_TRANSFORM],_0x270f11=toNum(_0x5f3772[_0x48f1c1(0x459)]),_0x15c4cc=isNum(_0x270f11)&&_0x270f11!==0x0?Math[_0x48f1c1(0x9bb)](0xa,_0x270f11):0x1,_0x50648f=!!_0x5f3772['invert'];let _0x5d91be=null;if(_0x2cedc4){let _0x1027a5=Infinity,_0x3d1bf1=-Infinity,_0x265a81=0x0,_0x4305f1=0x0,_0x380d77=null,_0x202157=null;for(const _0x287768 of _0x4d3fe4){if(!isNum(_0x287768['v']))continue;if(_0x380d77===null)_0x380d77=_0x287768['v'];_0x202157=_0x287768['v'];if(_0x287768['v']<_0x1027a5)_0x1027a5=_0x287768['v'];if(_0x287768['v']>_0x3d1bf1)_0x3d1bf1=_0x287768['v'];_0x265a81+=_0x287768['v'],_0x4305f1++;}_0x5d91be=_0x4305f1>0x0?{'first':_0x380d77,'last':_0x202157,'min':_0x1027a5,'max':_0x3d1bf1,'avg':_0x265a81/_0x4305f1}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0};}const _0x3f424b=[],_0x4418b9=(_0x2d2ef7,_0x1432fd)=>{const _0x216dc8=_0x48f1c1;if(!isNum(_0x2d2ef7))return null;let _0x1c5646=_0x2d2ef7;if(_0x2cedc4){_0x1c5646=_0x2cedc4(_0x1c5646,_0x1432fd,_0x5d91be);if(_0x1c5646===null||Number[_0x216dc8(0x757)](_0x1c5646))return null;}if(_0x15c4cc!==0x1)_0x1c5646*=_0x15c4cc;if(_0x50648f)_0x1c5646=-_0x1c5646;return _0x1c5646;};for(let _0x5ce562=0x0;_0x5ce562<_0x4d3fe4[_0x48f1c1(0x2d1)];_0x5ce562++){const _0x310605=_0x4d3fe4[_0x5ce562];if(!isNum(_0x310605['v']))continue;let _0x5af234=_0x310605['v'];if(_0x2cedc4){_0x5af234=_0x2cedc4(_0x5af234,_0x5ce562,_0x5d91be);if(_0x5af234===null)continue;}if(_0x15c4cc!==0x1)_0x5af234*=_0x15c4cc;if(_0x50648f)_0x5af234=-_0x5af234;const _0x2af69f={'t':_0x310605['t'],'v':_0x5af234};if(_0x310605[_0x48f1c1(0x996)]!=null&&_0x310605[_0x48f1c1(0x1be)]!=null){const _0x48692e=_0x4418b9(_0x310605[_0x48f1c1(0x996)],_0x5ce562),_0x4ada9b=_0x4418b9(_0x310605['bMax'],_0x5ce562);_0x48692e!==null&&_0x4ada9b!==null&&(_0x2af69f[_0x48f1c1(0x996)]=Math['min'](_0x48692e,_0x4ada9b),_0x2af69f[_0x48f1c1(0x1be)]=Math[_0x48f1c1(0x6fe)](_0x48692e,_0x4ada9b));}_0x3f424b[_0x48f1c1(0x2c1)](_0x2af69f);}return _0x3f424b;}static[_0x236d40(0x73a)](_0x3b20e6,_0x562fa5){if(_0x3b20e6['v']===null)return _0x3b20e6;const _0x5f4679=DataProcessor['transformSeries']([_0x3b20e6],_0x562fa5);return _0x5f4679[0x0]||{'t':_0x3b20e6['t'],'v':null};}static['seriesStats'](_0x3412a6){const _0x334a98=_0x236d40;if(!_0x3412a6?.[_0x334a98(0x2d1)])return{'min':null,'max':null,'avg':null,'sum':null,'first':null,'last':null,'minT':null,'maxT':null,'firstT':null,'lastT':null};let _0x438889=Infinity,_0x14198d=-Infinity,_0x592a3a=0x0,_0x305310=0x0,_0x132392=null,_0x3112c8=null,_0x4b96c1=null,_0x2ede57=null,_0x213b6b=null,_0x43fd3b=null;for(const _0x488910 of _0x3412a6){if(_0x488910['v']===null)continue;_0x488910['v']<_0x438889&&(_0x438889=_0x488910['v'],_0x132392=_0x488910['t']),_0x488910['v']>_0x14198d&&(_0x14198d=_0x488910['v'],_0x3112c8=_0x488910['t']),_0x592a3a+=_0x488910['v'],_0x305310++,_0x2ede57===null&&(_0x2ede57=_0x488910['v'],_0x4b96c1=_0x488910['t']),_0x43fd3b=_0x488910['v'],_0x213b6b=_0x488910['t'];}return{'min':_0x305310?_0x438889:null,'max':_0x305310?_0x14198d:null,'avg':_0x305310?_0x592a3a/_0x305310:null,'sum':_0x305310?_0x592a3a:null,'first':_0x2ede57,'last':_0x43fd3b,'minT':_0x132392,'maxT':_0x3112c8,'firstT':_0x4b96c1,'lastT':_0x213b6b};}}function dpCenterShift(_0x6d2fd4,_0x4d79aa,_0x5725e1,_0x13bb93,_0x1f7dce){const _0x2cc6df=_0x236d40,_0x46160e=isNum(_0x1f7dce)?_0x1f7dce:0x8,_0x2249a5=_0x5725e1===null||_0x5725e1===undefined?0x0:Math[_0x2cc6df(0x6fe)](0x0,_0x5725e1+_0x46160e-_0x6d2fd4),_0xaf3150=_0x13bb93===null||_0x13bb93===undefined?0x0:Math[_0x2cc6df(0x6fe)](0x0,_0x4d79aa+_0x46160e-_0x13bb93);if(_0x2249a5>0x0)return _0x2249a5;if(_0xaf3150>0x0)return-_0xaf3150;return 0x0;}function parseCssColorToRgb(_0x5b51a6){const _0xd469cc=_0x236d40;if(typeof _0x5b51a6!==_0xd469cc(0xc00))return null;const _0x4b7a40=_0x5b51a6[_0xd469cc(0x900)]();let _0x42c74a=_0x4b7a40[_0xd469cc(0x1b4)](/^#([0-9a-f]{3,4})$/i);if(_0x42c74a){const _0x3e9775=_0x42c74a[0x1];return[parseInt(_0x3e9775[0x0]+_0x3e9775[0x0],0x10),parseInt(_0x3e9775[0x1]+_0x3e9775[0x1],0x10),parseInt(_0x3e9775[0x2]+_0x3e9775[0x2],0x10)];}_0x42c74a=_0x4b7a40[_0xd469cc(0x1b4)](/^#([0-9a-f]{6})([0-9a-f]{2})?$/i);if(_0x42c74a){const _0x4968db=_0x42c74a[0x1];return[parseInt(_0x4968db[_0xd469cc(0x670)](0x0,0x2),0x10),parseInt(_0x4968db['slice'](0x2,0x4),0x10),parseInt(_0x4968db[_0xd469cc(0x670)](0x4,0x6),0x10)];}_0x42c74a=_0x4b7a40[_0xd469cc(0x1b4)](/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})/i);if(_0x42c74a)return[Math[_0xd469cc(0x9f4)](0xff,+_0x42c74a[0x1]),Math[_0xd469cc(0x9f4)](0xff,+_0x42c74a[0x2]),Math['min'](0xff,+_0x42c74a[0x3])];return null;}function relLuminance(_0x3fd6eb){const _0x4e0544=_0xbc372b=>{const _0x5c88b2=_0xa532,_0x5978c8=_0xbc372b/0xff;return _0x5978c8<=0.03928?_0x5978c8/12.92:Math[_0x5c88b2(0x9bb)]((_0x5978c8+0.055)/1.055,2.4);};return 0.2126*_0x4e0544(_0x3fd6eb[0x0])+0.7152*_0x4e0544(_0x3fd6eb[0x1])+0.0722*_0x4e0544(_0x3fd6eb[0x2]);}function contrastRatio(_0xe040bf,_0x4b70ac){const _0x448da8=relLuminance(_0xe040bf),_0x424166=relLuminance(_0x4b70ac),_0x245f05=Math['max'](_0x448da8,_0x424166),_0x216600=Math['min'](_0x448da8,_0x424166);return(_0x245f05+0.05)/(_0x216600+0.05);}function mixRgb(_0xefe317,_0x15a86e,_0x9aba30){const _0x10ad84=_0x236d40;return[0x0,0x1,0x2]['map'](_0x18c875=>Math[_0x10ad84(0x1db)](_0xefe317[_0x18c875]+(_0x15a86e[_0x18c875]-_0xefe317[_0x18c875])*_0x9aba30));}function rgbToCss(_0x28e0e2){const _0x3ff47d=_0x236d40;return _0x3ff47d(0x1ac)+_0x28e0e2[0x0]+',\x20'+_0x28e0e2[0x1]+',\x20'+_0x28e0e2[0x2]+')';}function buildLinearPath(_0x51e694,_0x50753d,_0x25f440){const _0x2c074f=_0x236d40;if(!_0x51e694['length'])return'';let _0xb7d417='M\x20'+_0x50753d(_0x51e694[0x0]['t'])+'\x20'+_0x25f440(_0x51e694[0x0]);for(let _0x4aa581=0x1;_0x4aa581<_0x51e694[_0x2c074f(0x2d1)];_0x4aa581++)_0xb7d417+=_0x2c074f(0xa0d)+_0x50753d(_0x51e694[_0x4aa581]['t'])+'\x20'+_0x25f440(_0x51e694[_0x4aa581]);return _0xb7d417;}function buildStepPath(_0x94656e,_0x514d6e,_0x8ac0c9){const _0x5a3cf7=_0x236d40;if(!_0x94656e[_0x5a3cf7(0x2d1)])return'';let _0x446a1e='M\x20'+_0x514d6e(_0x94656e[0x0]['t'])+'\x20'+_0x8ac0c9(_0x94656e[0x0]);for(let _0x54fdc6=0x1;_0x54fdc6<_0x94656e[_0x5a3cf7(0x2d1)];_0x54fdc6++){const _0x41fe0f=_0x514d6e(_0x94656e[_0x54fdc6]['t']),_0x4c043a=_0x8ac0c9(_0x94656e[_0x54fdc6-0x1]),_0x1623be=_0x8ac0c9(_0x94656e[_0x54fdc6]);_0x446a1e+=_0x5a3cf7(0xa0d)+_0x41fe0f+'\x20'+_0x4c043a;if(_0x1623be!==_0x4c043a)_0x446a1e+='\x20L\x20'+_0x41fe0f+'\x20'+_0x1623be;}return _0x446a1e;}function buildStepSegments(_0x339d40,_0xb3e5c,_0xfcd039){const _0x82c0b9=_0x236d40,_0x147505=[];for(let _0x30e028=0x0;_0x30e028<_0x339d40[_0x82c0b9(0x2d1)]-0x1;_0x30e028++){const _0x36b457=_0x339d40[_0x30e028],_0x3e43d4=_0x339d40[_0x30e028+0x1],_0x14ecf0=_0xb3e5c(_0x36b457['t']),_0x578bf5=_0xb3e5c(_0x3e43d4['t']),_0x38d161=_0xfcd039(_0x36b457),_0x3590df=_0xfcd039(_0x3e43d4);_0x147505[_0x82c0b9(0x2c1)]({'d':'M\x20'+_0x14ecf0+'\x20'+_0x38d161+_0x82c0b9(0xa0d)+_0x578bf5+'\x20'+_0x38d161+_0x82c0b9(0xa0d)+_0x578bf5+'\x20'+_0x3590df,'from':_0x36b457,'to':_0x3e43d4});}return _0x147505;}function buildSmoothPath(_0x37b21a,_0x5a07d5,_0x539904){const _0x12ec15=_0x236d40;if(_0x37b21a[_0x12ec15(0x2d1)]<0x2)return buildLinearPath(_0x37b21a,_0x5a07d5,_0x539904);const _0x47a421=_0x37b21a[_0x12ec15(0x2d1)],_0x533b65=new Array(_0x47a421);for(let _0x10f9bb=0x0;_0x10f9bb<_0x47a421;_0x10f9bb++)_0x533b65[_0x10f9bb]={'x':_0x5a07d5(_0x37b21a[_0x10f9bb]['t']),'y':_0x539904(_0x37b21a[_0x10f9bb])};if(_0x47a421===0x2)return'M\x20'+_0x533b65[0x0]['x']+'\x20'+_0x533b65[0x0]['y']+_0x12ec15(0xa0d)+_0x533b65[0x1]['x']+'\x20'+_0x533b65[0x1]['y'];let _0x14184e='M\x20'+_0x533b65[0x0]['x']+'\x20'+_0x533b65[0x0]['y'];for(let _0x26eec9=0x0;_0x26eec9<_0x47a421-0x1;_0x26eec9++){const _0x28b9b2=_0x533b65[_0x26eec9-0x1]||_0x533b65[_0x26eec9],_0x261eee=_0x533b65[_0x26eec9],_0x527f66=_0x533b65[_0x26eec9+0x1],_0x26d5ee=_0x533b65[_0x26eec9+0x2]||_0x527f66,_0x2aa60b=_0x261eee['x']<_0x527f66['x']?_0x261eee['x']:_0x527f66['x'],_0x10757a=_0x261eee['x']<_0x527f66['x']?_0x527f66['x']:_0x261eee['x'],_0x1dfad0=_0x261eee['y']<_0x527f66['y']?_0x261eee['y']:_0x527f66['y'],_0x24d7f2=_0x261eee['y']<_0x527f66['y']?_0x527f66['y']:_0x261eee['y'],_0x59f449=Math['max'](_0x2aa60b,Math[_0x12ec15(0x9f4)](_0x10757a,_0x261eee['x']+(_0x527f66['x']-_0x28b9b2['x'])/0x6)),_0x5ac464=Math[_0x12ec15(0x6fe)](_0x1dfad0,Math[_0x12ec15(0x9f4)](_0x24d7f2,_0x261eee['y']+(_0x527f66['y']-_0x28b9b2['y'])/0x6)),_0x16f432=Math[_0x12ec15(0x6fe)](_0x2aa60b,Math[_0x12ec15(0x9f4)](_0x10757a,_0x527f66['x']-(_0x26d5ee['x']-_0x261eee['x'])/0x6)),_0xbd21a2=Math[_0x12ec15(0x6fe)](_0x1dfad0,Math[_0x12ec15(0x9f4)](_0x24d7f2,_0x527f66['y']-(_0x26d5ee['y']-_0x261eee['y'])/0x6));_0x14184e+=_0x12ec15(0x6be)+_0x59f449+'\x20'+_0x5ac464+'\x20'+_0x16f432+'\x20'+_0xbd21a2+'\x20'+_0x527f66['x']+'\x20'+_0x527f66['y'];}return _0x14184e;}function findClosestPoint(_0x1d1c65,_0x1bb247){const _0x57af03=_0x236d40;if(!_0x1d1c65['length'])return null;let _0x27246d=0x0,_0x2781eb=_0x1d1c65[_0x57af03(0x2d1)]-0x1;while(_0x27246d<_0x2781eb){const _0x872f16=_0x27246d+_0x2781eb>>0x1;if(_0x1d1c65[_0x872f16]['t']<_0x1bb247)_0x27246d=_0x872f16+0x1;else _0x2781eb=_0x872f16;}const _0x3ed3de=_0x1d1c65[_0x27246d],_0x41890f=_0x1d1c65[_0x27246d-0x1];if(!_0x41890f)return _0x3ed3de;return Math[_0x57af03(0x971)](_0x3ed3de['t']-_0x1bb247)isNum(toNum(_0x20cb2c[_0x40af17(0x4be)]))&&_0x20cb2c[_0x40af17(0x6f8)])[_0x40af17(0xc70)]((_0x4b2e61,_0x47c809)=>toNum(_0x4b2e61[_0x40af17(0x4be)])-toNum(_0x47c809[_0x40af17(0x4be)]));if(!_0x1ec451[_0x40af17(0x2d1)])return _0xb7ad26;if(_0x247936){if(_0x8f389<=toNum(_0x1ec451[0x0]['value']))return _0x1ec451[0x0][_0x40af17(0x6f8)];if(_0x8f389>toNum(_0x1ec451[_0x1ec451['length']-0x1][_0x40af17(0x4be)]))return _0x1ec451[_0x1ec451[_0x40af17(0x2d1)]-0x1][_0x40af17(0x6f8)];for(let _0x213116=0x0;_0x213116<_0x1ec451[_0x40af17(0x2d1)]-0x1;_0x213116++){const _0x595fb5=toNum(_0x1ec451[_0x213116][_0x40af17(0x4be)]),_0x11e212=toNum(_0x1ec451[_0x213116+0x1][_0x40af17(0x4be)]);if(_0x8f389>_0x595fb5&&_0x8f389<=_0x11e212){const _0x3751ed=(_0x8f389-_0x595fb5)/(_0x11e212-_0x595fb5||0x1);return _lerpColor(_0x1ec451[_0x213116][_0x40af17(0x6f8)],_0x1ec451[_0x213116+0x1][_0x40af17(0x6f8)],_0x3751ed);}}return _0x1ec451[_0x1ec451[_0x40af17(0x2d1)]-0x1]['color'];}let _0x381399=_0x1ec451[0x0][_0x40af17(0x6f8)]||_0xb7ad26;for(const _0x48a36d of _0x1ec451){if(_0x8f389>toNum(_0x48a36d[_0x40af17(0x4be)]))_0x381399=_0x48a36d[_0x40af17(0x6f8)]||_0x381399;}return _0x381399;}function _lerpColor(_0x3ce070,_0x1295da,_0x10daac){const _0x57c596=_0x236d40,_0x3bc916=_parseColor(_0x3ce070),_0x256152=_parseColor(_0x1295da);if(!_0x3bc916||!_0x256152)return _0x10daac<0.5?_0x3ce070:_0x1295da;const _0x931d28=Math[_0x57c596(0x1db)](_0x3bc916[0x0]+(_0x256152[0x0]-_0x3bc916[0x0])*_0x10daac),_0x51fdad=Math[_0x57c596(0x1db)](_0x3bc916[0x1]+(_0x256152[0x1]-_0x3bc916[0x1])*_0x10daac),_0x1ee58d=Math[_0x57c596(0x1db)](_0x3bc916[0x2]+(_0x256152[0x2]-_0x3bc916[0x2])*_0x10daac);return _0x57c596(0x1ac)+_0x931d28+','+_0x51fdad+','+_0x1ee58d+')';}function _parseColor(_0x523ab4){const _0xd48ff6=_0x236d40;if(!_0x523ab4||typeof _0x523ab4!==_0xd48ff6(0xc00))return null;let _0x82cc6f=_0x523ab4[_0xd48ff6(0x1b4)](/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);if(_0x82cc6f)return[parseInt(_0x82cc6f[0x1],0x10),parseInt(_0x82cc6f[0x2],0x10),parseInt(_0x82cc6f[0x3],0x10)];_0x82cc6f=_0x523ab4[_0xd48ff6(0x1b4)](/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);if(_0x82cc6f)return[parseInt(_0x82cc6f[0x1]+_0x82cc6f[0x1],0x10),parseInt(_0x82cc6f[0x2]+_0x82cc6f[0x2],0x10),parseInt(_0x82cc6f[0x3]+_0x82cc6f[0x3],0x10)];_0x82cc6f=_0x523ab4['match'](/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x82cc6f)return[+_0x82cc6f[0x1],+_0x82cc6f[0x2],+_0x82cc6f[0x3]];try{const _0x136d9f=document['createElement'](_0xd48ff6(0x288))['getContext']('2d');_0x136d9f[_0xd48ff6(0x6ce)]=_0x523ab4;const _0x45ae5c=_0x136d9f[_0xd48ff6(0x6ce)];return _parseColor(_0x45ae5c);}catch(_0x304cae){}return null;}function thresholdCrossings(_0x4f2ce6,_0x574be0,_0x10829a){const _0xdf7fde=_0x236d40;if(!isNum(_0x4f2ce6)||!isNum(_0x574be0)||!_0x10829a?.[_0xdf7fde(0x2d1)]||_0x4f2ce6===_0x574be0)return[];const _0x7c30c4=_0x10829a[_0xdf7fde(0x5f7)](_0x24e888=>toNum(_0x24e888['value']))['filter'](_0x2d7edc=>isNum(_0x2d7edc))[_0xdf7fde(0xc70)]((_0xa990ef,_0x2b16a5)=>_0xa990ef-_0x2b16a5),_0x477801=_0x574be0>_0x4f2ce6,_0x1c69bb=Math['min'](_0x4f2ce6,_0x574be0),_0x854fde=Math['max'](_0x4f2ce6,_0x574be0),_0x4a6e07=[];for(const _0x1de7d7 of _0x7c30c4){if(_0x1de7d7>_0x1c69bb&&_0x1de7d7<_0x854fde){_0x4a6e07[_0xdf7fde(0x2c1)](_0x1de7d7);continue;}if(_0x477801&&_0x1de7d7===_0x4f2ce6&&_0x574be0>_0x1de7d7)_0x4a6e07[_0xdf7fde(0x2c1)](_0x1de7d7);else{if(!_0x477801&&_0x1de7d7===_0x574be0&&_0x4f2ce6>_0x1de7d7)_0x4a6e07[_0xdf7fde(0x2c1)](_0x1de7d7);}}return _0x477801?_0x4a6e07:_0x4a6e07[_0xdf7fde(0xc56)]();}function segmentRiseFallColor(_0x4c704c,_0x48b474,_0x44673b,_0x3363b3){const _0x3ab519=_0x236d40;if(!_0x4c704c||!_0x48b474||!isNum(_0x4c704c['v'])||!isNum(_0x48b474['v']))return _0x3363b3;if(!_0x44673b)return _0x3363b3;const _0x13d147=_0x44673b['increase']||_0x44673b[_0x3ab519(0x72e)]||_0x3363b3,_0x302ee3=_0x44673b[_0x3ab519(0x96e)]||_0x44673b[_0x3ab519(0x42a)]||_0x3363b3,_0x4fcb7a=_0x44673b['stable']||_0x44673b['equal_color']||_0x13d147||_0x3363b3;if(_0x48b474['v']>_0x4c704c['v'])return _0x13d147;if(_0x48b474['v']<_0x4c704c['v'])return _0x302ee3;return _0x4fcb7a;}function buildLinearSegments(_0x2552f3,_0x45e1d5,_0x7e91ff){const _0xf07dda=_0x236d40,_0x4f4c23=[];for(let _0xd12471=0x0;_0xd12471<_0x2552f3['length']-0x1;_0xd12471++){const _0x1de430=_0x2552f3[_0xd12471],_0xbb505e=_0x2552f3[_0xd12471+0x1];_0x4f4c23[_0xf07dda(0x2c1)]({'d':'M\x20'+_0x45e1d5(_0x1de430['t'])+'\x20'+_0x7e91ff(_0x1de430)+_0xf07dda(0xa0d)+_0x45e1d5(_0xbb505e['t'])+'\x20'+_0x7e91ff(_0xbb505e),'from':_0x1de430,'to':_0xbb505e});}return _0x4f4c23;}function buildSmoothSegments(_0x1e1a3b,_0x5bd1d2,_0x2bb057){const _0x11e87e=_0x236d40;if(_0x1e1a3b[_0x11e87e(0x2d1)]<0x2)return[];const _0x302441=_0x1e1a3b[_0x11e87e(0x5f7)](_0x5ea683=>({'x':_0x5bd1d2(_0x5ea683['t']),'y':_0x2bb057(_0x5ea683),'raw':_0x5ea683})),_0x309b65=[];for(let _0xc0011f=0x0;_0xc0011f<_0x302441[_0x11e87e(0x2d1)]-0x1;_0xc0011f++){const _0x433924=_0x302441[_0xc0011f-0x1]||_0x302441[_0xc0011f],_0x171877=_0x302441[_0xc0011f],_0x25e70b=_0x302441[_0xc0011f+0x1],_0x149dd8=_0x302441[_0xc0011f+0x2]||_0x25e70b,_0x5ad5ea=_0x171877['x']<_0x25e70b['x']?_0x171877['x']:_0x25e70b['x'],_0x34b96f=_0x171877['x']<_0x25e70b['x']?_0x25e70b['x']:_0x171877['x'],_0x128363=_0x171877['y']<_0x25e70b['y']?_0x171877['y']:_0x25e70b['y'],_0x34cb13=_0x171877['y']<_0x25e70b['y']?_0x25e70b['y']:_0x171877['y'],_0x8d068c=Math['max'](_0x5ad5ea,Math[_0x11e87e(0x9f4)](_0x34b96f,_0x171877['x']+(_0x25e70b['x']-_0x433924['x'])/0x6)),_0x47ae6e=Math[_0x11e87e(0x6fe)](_0x128363,Math[_0x11e87e(0x9f4)](_0x34cb13,_0x171877['y']+(_0x25e70b['y']-_0x433924['y'])/0x6)),_0x376573=Math[_0x11e87e(0x6fe)](_0x5ad5ea,Math[_0x11e87e(0x9f4)](_0x34b96f,_0x25e70b['x']-(_0x149dd8['x']-_0x171877['x'])/0x6)),_0x580a25=Math[_0x11e87e(0x6fe)](_0x128363,Math[_0x11e87e(0x9f4)](_0x34cb13,_0x25e70b['y']-(_0x149dd8['y']-_0x171877['y'])/0x6));_0x309b65[_0x11e87e(0x2c1)]({'d':'M\x20'+_0x171877['x']+'\x20'+_0x171877['y']+_0x11e87e(0x6be)+_0x8d068c+'\x20'+_0x47ae6e+',\x20'+_0x376573+'\x20'+_0x580a25+',\x20'+_0x25e70b['x']+'\x20'+_0x25e70b['y'],'from':_0x171877['raw'],'to':_0x25e70b[_0x11e87e(0x447)]});}return _0x309b65;}function resolveDynamicValue(_0x3cd75b,_0x21867c){const _0x268f79=_0x236d40;if(_0x3cd75b===null||_0x3cd75b===undefined||_0x3cd75b==='')return null;if(typeof _0x3cd75b===_0x268f79(0x7ad))return Number[_0x268f79(0x726)](_0x3cd75b)?_0x3cd75b:null;const _0xe2ec38=String(_0x3cd75b)[_0x268f79(0x900)]();if(/^-?\d+(\.\d+)?$/['test'](_0xe2ec38)){const _0x28cc93=Number(_0xe2ec38);return Number[_0x268f79(0x726)](_0x28cc93)?_0x28cc93:null;}const _0x71a85=_0xe2ec38[_0x268f79(0x1b4)](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0x71a85)return null;const _0x52ccf1=_0x71a85[0x1],_0xa89ebc=_0x71a85[0x2],_0x22385d=_0x21867c?.['states']?.[_0x52ccf1];if(!_0x22385d)return null;if(!_0xa89ebc)return toNum(_0x22385d[_0x268f79(0xb91)]);const _0x96dde2=_0xa89ebc[_0x268f79(0xa6d)]('.');if(_0x96dde2[0x0]!=='attribute'&&_0x96dde2[0x0]!==_0x268f79(0xbb4)){let _0x83e10c=_0x22385d['attributes'];for(const _0xd3902e of _0x96dde2){if(_0x83e10c===null||_0x83e10c===undefined)return null;_0x83e10c=_0x83e10c[_0xd3902e];}return toNum(_0x83e10c);}let _0xc79531=_0x22385d[_0x268f79(0xbb4)];for(let _0x17ff26=0x1;_0x17ff26<_0x96dde2[_0x268f79(0x2d1)];_0x17ff26++){if(_0xc79531===null||_0xc79531===undefined)return null;_0xc79531=_0xc79531[_0x96dde2[_0x17ff26]];}return toNum(_0xc79531);}function resolveBoundSpec(_0x445142,_0x405d54){const _0x4bf6fa=_0x236d40;if(_0x445142===null||_0x445142===undefined||_0x445142==='')return null;if(typeof _0x445142===_0x4bf6fa(0x7ad))return Number[_0x4bf6fa(0x726)](_0x445142)?{'value':_0x445142,'soft':![]}:null;const _0x5334e3=String(_0x445142)[_0x4bf6fa(0x900)]();if(_0x5334e3==='')return null;const _0x407521=_0x5334e3['startsWith']('~'),_0x426402=_0x407521?_0x5334e3[_0x4bf6fa(0x670)](0x1)[_0x4bf6fa(0x900)]():_0x5334e3,_0x5ec604=resolveDynamicValue(_0x426402,_0x405d54);if(_0x5ec604===null)return null;return{'value':_0x5ec604,'soft':_0x407521};}function extractAnnotationRefEntityId(_0x2f24d5){const _0x5c818c=_0x236d40;if(_0x2f24d5===null||_0x2f24d5===undefined||_0x2f24d5==='')return null;if(typeof _0x2f24d5===_0x5c818c(0x7ad))return null;const _0x8c324c=String(_0x2f24d5)[_0x5c818c(0x900)]();if(/^-?\d+(\.\d+)?$/[_0x5c818c(0x1b8)](_0x8c324c))return null;const _0x153c4d=_0x8c324c['match'](/^([a-z_]+\.[a-z0-9_]+)/i);return _0x153c4d?_0x153c4d[0x1]:null;}function parseAnnotationTime(_0x424a79){const _0x4a2639=_0x236d40;if(_0x424a79===null||_0x424a79===undefined||_0x424a79==='')return null;if(_0x424a79 instanceof Date)return _0x424a79[_0x4a2639(0x3f2)]();if(typeof _0x424a79==='number')return Number[_0x4a2639(0x726)](_0x424a79)?_0x424a79:null;const _0x4f277e=String(_0x424a79)['trim']();if(_0x4f277e==='now')return Date[_0x4a2639(0x8c9)]();const _0xd8225b=new Date(_0x4f277e);return isNaN(_0xd8225b)?null:_0xd8225b[_0x4a2639(0x3f2)]();}function getAttributePath(_0x157d0e,_0x42d766){if(!_0x157d0e||!_0x42d766)return undefined;const _0xb1dd4c=String(_0x42d766)['split']('.');let _0x12f3fc=_0x157d0e;for(const _0x167b1b of _0xb1dd4c){if(_0x12f3fc===null||_0x12f3fc===undefined)return undefined;_0x12f3fc=_0x12f3fc[_0x167b1b];}return _0x12f3fc;}const COMPILED_TRANSFORM=Symbol(_0x236d40(0x664));function _0x1195(){const _0xf90f45=['Colour\x20of\x20the\x20▲\x20(rising)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20success\x20colour\x20(green).','Date\x20Navigation','Overlay','getConfig','Other','weeks','Last\x2024\x20hours','hm:','absolute','rgba(0,0,0,0.12)','dp-label-past','Shows\x20numeric\x20value\x20labels\x20on\x20the\x20right\x20(secondary)\x20edge\x20of\x20the\x20graph.\x20Only\x20visible\x20when\x20at\x20least\x20one\x20entity\x20uses\x20Y\x20Axis\x20=\x20Secondary.\x20Disable\x20to\x20show\x20only\x20the\x20primary\x20axis\x20labels\x20while\x20keeping\x20secondary\x20entities\x20plotted.','Roundness\x20of\x20each\x20state\x20segment\x20corners\x20in\x20pixels.\x200\x20=\x20perfectly\x20sharp.\x203\x20=\x20default.\x20Larger\x20values\x20round\x20into\x20a\x20pill\x20shape\x20(capped\x20at\x20half\x20the\x20row\x20height).\x20Advanced\x20users\x20can\x20also\x20target\x20the\x20sgc-stl-cell\x20class\x20from\x20card_mod\x20for\x20per-state\x20styling.','yaxis','cellH','last_changed','show_date_picker','','median','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Disabled\x20when\x20trend\x20active','_structureDirty','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','data-w','_wsUnsub','.edup','timeline','Where\x20the\x20value\x20is\x20drawn\x20relative\x20to\x20the\x20gauge\x20—\x20below\x20(default)\x20or\x20above\x20the\x20dial,\x20clear\x20of\x20the\x20arc\x20and\x20needle.','letter-spacing:','My\x20annotation','num','Unit','dp-today','observe','_hass','','var(--primary-color,\x20#4A90D9)','#010203','When\x20the\x20sensor\x20is\x20unavailable\x20for\x20long\x20periods,\x20the\x20line\x20breaks\x20at\x20the\x20gap\x20instead\x20of\x20carrying\x20the\x20last\x20known\x20value\x20across.\x20Short\x20blips\x20(bucket-level\x20sample\x20irregularity)\x20stay\x20connected.\x20Turn\x20off\x20(default)\x20to\x20keep\x20the\x20line\x20continuous\x20regardless\x20of\x20outage\x20length.','_unsubscribeEvents','\x22\x20preserveAspectRatio=\x22none\x22\x20overflow=\x22visible\x22\x20style=\x22width:100%;height:100%;display:block;overflow:visible\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','new_state','function','HA-CARD','.e-risefall_increase','\x22\x20x1=\x220\x22\x20y1=\x220\x22\x20x2=\x220\x22\x20y2=\x221\x22>','\x22\x20width=\x22','rect','[sgc]\x20annotation\x20history\x20fetch\x20failed','_onIntervalSyncEvent','Trend\x20Period','600\x20','Line\x20Style','H-line','_drawExtremaLabels','YYYY-MM-DD','State\x20(live)','\x22>','no-','upper_bound_secondary','${this._eT(\x22Overlays\x20are\x20hidden\x20in\x20sparkline\x20mode\x22)}','_resetAggWarned','0.3','','Entity\x20at\x20index\x20','card_icon','sgc-range-band','Down\x20Color','sgc-ann-band','','createElement','','isDate','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Chart','248500aFnMzK','test','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','sgc-data-labels','_detectDark','Order\x20of\x20the\x20entity\x20rows\x20inside\x20the\x20tooltip.\x20Default\x20=\x20configuration\x20order\x20(first\x20entity\x20on\x20top).\x20Reverse\x20=\x20bottom-to-top,\x20matching\x20a\x20stacked\x20chart\x27s\x20visual\x20order\x20so\x20the\x20topmost\x20stacked\x20segment\x20is\x20listed\x20first.\x20Alphabetic\x20=\x20sorted\x20A\x20to\x20Z\x20by\x20display\x20name.\x20The\x20Total\x20row,\x20when\x20shown,\x20always\x20stays\x20at\x20the\x20bottom.','border-color:','Entity\x20#','.sgc-pie-tooltip','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Gradient','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','_animStart','.e-value_factor','\x22\x20data-dp-rolling-days=\x22','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','samples','Hours\x20to\x20Show','\x0a\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','soft','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Above','Value\x20Size','sgc-area\x20sgc-seg-area','vals','Color\x20of\x20the\x20numeric\x20value\x20text\x20in\x20the\x20state\x20row.\x20Enter\x20threshold\x20to\x20change\x20the\x20text\x20color\x20dynamically\x20based\x20on\x20the\x20current\x20value.','Scroll\x20Sync','Auto\x20(HA\x20language)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getCardSize','\x22\x20data-mtab=\x22display\x22>','_formatDatePickerLabel','entities\x20is\x20required\x20and\x20must\x20be\x20an\x20array','_energyDiscoverTimer','auto_hide','MDI\x20Icon','\x22>','position','Plays\x20a\x20draw-in\x20animation\x20when\x20the\x20card\x20loads.\x20Timeline\x20=\x20line/area\x20sweep\x20draw-in.\x20Pie\x20/\x20Radial\x20Bar\x20/\x20Polar\x20Area\x20=\x20slice\x20grow-in\x20on\x20every\x20data\x20refresh.','MMMM','Classic','dpPresetOffset','${this._eT(\x22No\x20annotations\x20yet\x22)}','off','\x22\x20is\x20invalid\x20(','_resolvedCardBgRgb','.e-extrema_color','today','Last\x203\x20days','MM/DD\x20hh:mm\x20A','drawEa','_dpCalMonth','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','How\x20many\x20gauges\x20per\x20row.\x20Auto\x20fits\x20as\x20many\x20as\x20the\x20card\x20width\x20allows;\x20every\x20entity\x20becomes\x20its\x20own\x20gauge\x20in\x20a\x20responsive\x20grid.','\x20stroke=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','x_grid_color','⚠\x20Last\x20/\x20First\x20show\x20the\x20endpoint\x20of\x20the\x20raw\x20series\x20—\x20not\x20the\x20displayed\x20slice\x20or\x20cell.\x20Consider\x20Sum\x20/\x20Avg\x20/\x20Min\x20/\x20Max\x20in\x20this\x20chart\x20mode.','center','removeItem','Header','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--ha-card-background','${this._eT(\x22No\x20thresholds\x20yet\x22)}','bins','HH:mm','graph_end_hour','When\x20you\x20brush-zoom\x20or\x20double-click\x20to\x20reset\x20on\x20this\x20card,\x20the\x20same\x20time\x20window\x20is\x20applied\x20to\x20all\x20other\x20cards\x20sharing\x20the\x20group\x20name.\x20Group\x20is\x20optional\x20—\x20leave\x20empty\x20to\x20sync\x20with\x20every\x20other\x20ungrouped\x20card.','ranking_min_value','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[sgc]\x20statistics\x20fetch\x20failed','config-changed','.e-show_graph','Period\x20Highlight','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Range\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Time-shift\x20the\x20plotted\x20data\x20along\x20the\x20X-axis.\x20Positive\x20(e.g.\x2024)\x20shifts\x20data\x20forward\x20—\x20for\x20forecast\x20sensors\x20whose\x20state\x20represents\x20T+N\x20hours\x20ahead.\x20Negative\x20(e.g.\x20-24)\x20shifts\x20data\x20backward\x20—\x20useful\x20with\x20attribute-based\x20forecast\x20data\x20to\x20overlay\x20tomorrow\x27s\x20forecast\x20onto\x20today.\x20Leave\x20empty\x20(or\x200)\x20to\x20disable.\x20Independent\x20from\x20Offset\x20—\x20both\x20can\x20be\x20combined.','Localization','custom','_formatAttrLabel','0.95','brown','activeElement','()+-*/%,','\x22\x20data-mtab=\x22calendar\x22>','thick','Date\x20Label\x20Color','ratio','Span','_computeInstanceKey','.sgc-dp-toggle','__card__','sgc-plot-scroll-wheel','_onScrollSyncEvent','display:block;width:100%','14px','height','Time\x20Window','15D','card_background_image','_collectThrRefs','On\x20bar\x20charts,\x20faintly\x20shades\x20the\x20background\x20of\x20the\x20period\x20under\x20the\x20cursor\x20so\x20its\x20start\x20and\x20end\x20are\x20easy\x20to\x20see.\x20Triggers\x20on\x20hover\x20over\x20a\x20bar.','yScale','\x22>','.e-legend_min','Hide\x20on\x20Load','time_zone','Last\x20180D','show_pph_picker','iso','_window','never','peakPct','_animRaf','Display\x20the\x20window-wide\x20min\x20and\x20max\x20as\x20a\x20subdued\x20(min\x20-\x20max)\x20suffix\x20next\x20to\x20the\x20primary\x20value.\x20Best\x20paired\x20with\x20show_graph:\x20false\x20+\x20primary_state_as:\x20min/max\x20for\x20compact\x20records\x20cards.\x20Uses\x20range-band\x20data\x20when\x20enabled,\x20otherwise\x20falls\x20back\x20to\x20the\x20aggregate\x20min/max\x20over\x20the\x20visible\x20window.','','stroke=\x22','','Font\x20size\x20of\x20X-axis\x20time\x20labels\x20in\x20pixels.\x20Default\x20is\x2010.','replace','Energy\x20Date\x20Sync','color:','MMM','Add\x20Annotation','show_in_legend','autoScale','Colour\x20of\x20the\x20▼\x20(falling)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20error\x20colour\x20(red).','state_changed','addColorStop','trend_period_hours',').','changedTouches','.e-state_adaptive_color','.e-show_range_band','all','Threshold','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.card-icon-color','_matrix','Custom\x20color\x20for\x20X-axis\x20time\x20labels\x20and\x20tick\x20marks.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default\x20(--secondary-text-color).','','week_of_year','Auto\x20Scale','.sgc-plot','\x22\x20stroke-width=\x22','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Color\x20of\x20vertical\x20grid\x20lines.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','.e-show_extrema_min','Week','year','blue-grey','selectionStart','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','add','splice','_barHalfWidth','deep-orange','_querySyncHandler','__sgcDecisionHours','y_axis_round_ticks','Basic','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','long','\x22\x20data-idx=\x22','scrollLeft','\x22\x20style=\x22width:100%;font-family:monospace;font-size:11px\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_valueChanged','rawV','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_shareScalarValue','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','startsWith','_computeYBounds','\x22\x20fill=\x22transparent\x22/>','_liveBuffer','_calendarMaxNeedsHourly','[sgc]\x20data_value_expression\x20\x22','_persistQueryPickers','computeMovingAverages','.e-legend_sum','raw','white','Progress','sgc-y-tick','gsh:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20${this._eT(\x22Y-axis\x20settings\x20are\x20hidden\x20in\x20sparkline\x20mode\x22)}','','0.5','trend_icon_size','legend_stats','Number\x20of\x20tick\x20marks\x20(grid\x20lines\x20and\x20labels)\x20on\x20the\x20Y\x20axis.\x20Default\x20is\x204.\x20Example:\x20ticks=6\x20with\x20bounds\x2040-100\x20shows\x2040,\x2050,\x2060,\x2070,\x2080,\x2090,\x20100.','\x0a\x20\x20\x20\x20','#27ae60','hard','','_energyUnsub','getBoundingClientRect','_coerceColor','Same\x20as\x20Y\x20Tick\x20Format\x20but\x20for\x20the\x20SECONDARY\x20(right)\x20axis\x20and\x20every\x20value\x20surface\x20of\x20the\x20entities\x20plotted\x20on\x20it.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','segments-thr','str','toLocaleTimeString','ddd\x20DD/MM','--card-background-color','_extendWindowForForecastData','_renderAttributeList','e-color','Value\x20Transform','\x20but\x20the\x20card\x20is\x20v','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20>\x20','callApi','Value\x20Position','\x20style=\x22opacity:','x_grid_width','_onDatePickerSyncEvent','var(--tx)','entities','value','\x22\x20data-hours=\x22','Controls\x20how\x20entity\x20state\x20values\x20are\x20arranged\x20above/below\x20the\x20graph.\x20Default\x20=\x20each\x20entity\x20stacks\x20vertically\x20on\x20its\x20own\x20row.\x20Horizontal\x20=\x20entities\x20flow\x20side\x20by\x20side\x20in\x20a\x20single\x20row,\x20wrapping\x20if\x20needed.\x20Useful\x20for\x20compact\x20cards\x20with\x20many\x20entities.','preventDefault','Shows\x20a\x20Total\x20row\x20in\x20the\x20hover\x20tooltip.','Y\x20Grid\x20Color','5105610dcsjTw','var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c))','label','[sgc]\x20attr\x20update\x20failed','Font\x20size\x20of\x20Y-axis\x20numeric\x20labels\x20in\x20pixels.\x20Default\x20is\x2010.','Visibility','_renderers','Shows\x20total\x20value\x20in\x20the\x20center\x20of\x20the\x20chart.\x20When\x20off,\x20Pie\x20becomes\x20a\x20full\x20pie\x20instead\x20of\x20donut.','.e-legend_last','\x20selected','items','\x22>h','stack_group','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Total','_resolvedColors','\x22\x20style=\x22width:','endAngleFull','sgc-no-bleed','start','e-trend_stable_color','','computeMovingAveragesExt','\x22\x20style=\x22','[statistics-graph-chart-card]\x20aggregate_func:\x20\x22','How\x20many\x20data\x20points\x20per\x20hour\x20to\x20fetch.\x20Higher\x20=\x20more\x20detail\x20but\x20heavier\x20on\x20the\x20HA\x20recorder\x20database.\x20A\x20value\x20of\x202\x20means\x20one\x20point\x20every\x2030\x20minutes.\x20Individual\x20entities\x20can\x20override\x20this\x20in\x20their\x20own\x20settings.','Data\x20Points','_handleEnergyDate','${this._eT(\x22No\x20moving\x20averages\x20yet\x22)}','_stopEnergyDateSync','_preciseTsCache','Nov','24H','\x22\x20data-mode=\x22','vertical','Data\x20Settings','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Bottom\x20Right','.sgc-dp-bar','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20State','_onDatePickerNav','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Show\x20the\x20colored\x20dot\x20next\x20to\x20this\x20entity\x20in\x20the\x20state\x20row,\x20compact\x20legend\x20and\x20tooltip.\x20Disable\x20for\x20a\x20cleaner\x20look\x20—\x20useful\x20when\x20you\x20only\x20have\x20one\x20entity,\x20or\x20when\x20color\x20thresholds\x20make\x20the\x20dot\x20color\x20no\x20longer\x20match\x20the\x20line\x20/\x20bar.','sgc:compiled_transform','btn','dashed','_onTooltipSyncEvent','series','toFixed','get','cellW','Position\x20and\x20alignment\x20of\x20this\x20entity\x20state\x20row.','close','statistics-graph-chart-card','toggle','slice','Visible\x20Intervals','Minimum\x20for\x20the\x20Y\x20axis.\x20Prefix\x20with\x20~\x20for\x20a\x20soft\x20bound\x20(e.g.\x20~0)\x20—\x20axis\x20uses\x20this\x20value\x20when\x20data\x20stays\x20above\x20it,\x20expands\x20if\x20data\x20goes\x20lower.\x20Hard\x20bound\x20(e.g.\x200)\x20forces\x20the\x20axis\x20edge\x20regardless\x20of\x20data.\x20Also\x20accepts\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound.','rb:','card_header','show_fill','','week','Sparkline','unknown','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20O/H/L/C\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bucketPrecision','px','\x22\x20data-tc=\x22advanced\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_end','','y_grid_width','','_dpOffset',';font-size:13px;color:var(--primary-text-color);--ac:var(--primary-color,#4A90D9);--acr:74,144,217;--bg:var(--card-background-color,var(--ha-card-background,#fff));--sf:var(--mdc-text-field-fill-color,#f5f5f5);--bd:var(--divider-color,#e0e0e0);--tx:var(--primary-text-color,#333);--ts:var(--secondary-text-color,#666);--dg:#e74c3c;--rd:12px}\x0a*{box-sizing:border-box}\x0a.panel{background:var(--bg);border:2px\x20solid\x20rgba(128,128,128,0.4);border-radius:var(--rd);margin-bottom:16px;overflow:visible;transition:box-shadow\x20.2s}\x0a.panel:hover{box-shadow:0\x202px\x2012px\x20rgba(0,0,0,.06)}\x0a.panel-header{display:grid;grid-template-columns:36px\x201fr\x20auto;grid-template-rows:auto\x20auto;align-items:center;gap:0\x2010px;padding:14px\x2016px;cursor:pointer;user-select:none;transition:background\x20.15s}\x0a.panel-header:hover{background:var(--sf)}\x0a.panel-icon{grid-row:1/3;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(var(--acr),.1);color:var(--ac)}\x0a.panel-title{font-weight:600;font-size:15px;line-height:1.2;text-transform:uppercase;letter-spacing:.04em}\x0a.panel-subtitle{font-size:11px;color:var(--ts);grid-column:2}\x0a.panel-chevron{grid-row:1/3;grid-column:3;color:var(--ts);transition:transform\x20.3s\x20cubic-bezier(.4,0,.2,1)}\x0a.panel.open\x20.panel-chevron{transform:rotate(180deg)}\x0a.panel-body{max-height:0;overflow:hidden;transition:max-height\x20.35s\x20cubic-bezier(.4,0,.2,1),padding\x20.35s;padding:0\x2016px}\x0a.fg{margin-bottom:16px}.fg:last-child{margin-bottom:0}\x0a.fg0{margin-bottom:14px}.fg0:last-child{margin-bottom:0}\x0a.mt8{margin-top:8px}\x0a.fgl{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ts);margin-bottom:10px;padding:\x208px\x200;border-bottom:1px\x20solid\x20var(--bd)}\x0a.r2{display:grid;grid-template-columns:1fr\x201fr;gap:12px;margin-top:8px}\x0a.r3{display:grid;grid-template-columns:1fr\x201fr\x201fr;gap:12px;margin-top:8px}\x0a.f{display:flex;flex-direction:column}\x0a.f\x20label{font-size:11.5px;font-weight:500;color:var(--ts);margin:5px\x200;letter-spacing:.02em;overflow-wrap:anywhere;word-break:break-word;min-height:14px}\x0a.f\x20input,.f\x20select{width:100%;padding:9px\x2011px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13.5px;transition:border-color\x20.15s,box-shadow\x20.15s;outline:none}\x0a.f\x20input:focus,.f\x20select:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.f\x20input[type=\x22color\x22]{padding:3px;height:40px;cursor:pointer;border-radius:8px}\x0a.sw{position:relative}.sw\x20select{appearance:none;padding-right:30px;cursor:pointer;background-image:url(\x22data:image/svg+xml;utf8,\x22);background-repeat:no-repeat;background-position:right\x208px\x20center;background-size:14px;width:100%;padding:9px\x2011px;border:1px\x20solid\x20var(--bd);border-radius:8px;background-color:var(--sf);color:var(--tx);font-size:13.5px;outline:none;transition:border-color\x20.15s,box-shadow\x20.15s}\x0a.sw\x20select:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.e-entity{font-size:13px!important;font-weight:500!important}\x0aselect\x20option{background:var(--bg);color:var(--tx)}\x0a.iu{position:relative;display:flex}.iu\x20input{padding-right:34px}.iu\x20.u{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--ts);pointer-events:none}\x0a.sg{display:grid;grid-template-columns:1fr\x201fr;gap:6px}.sg.c{gap:4px}\x0a.overlay-row{display:flex;align-items:center;gap:6px;grid-column:1/-1}\x0a.overlay-row\x20.si{flex:1;min-width:0}\x0a.overlay-opt{display:flex;align-items:center;gap:4px;flex-shrink:0}\x0a.overlay-opt.off{opacity:.35;pointer-events:none}\x0a.overlay-opt\x20input[type=\x22text\x22]{height:auto;box-sizing:border-box;font-size:13.5px;padding:9px\x2011px;border:1px\x20solid\x20var(--bd,rgba(255,255,255,0.12));border-radius:8px;background:var(--sf,rgba(255,255,255,0.06));color:var(--tx);font-family:inherit;outline:none;transition:border-color\x20.15s,box-shadow\x20.15s;width:100%}\x0a.overlay-opt\x20input[type=\x22text\x22]:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.overlay-group-input{height:auto;box-sizing:border-box;font-size:13.5px;padding:9px\x2011px;border:1px\x20solid\x20var(--bd,rgba(255,255,255,0.12));border-radius:8px;background:var(--sf,rgba(255,255,255,0.06));color:var(--tx);font-family:inherit;outline:none;transition:border-color\x20.15s,box-shadow\x20.15s;width:80px;flex-shrink:0}\x0a.overlay-group-input:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.si{display:flex;align-items:center;gap:10px;padding:9px\x2011px;border-radius:8px;cursor:pointer;transition:background\x20.15s}\x0a.si:hover{background:var(--sf)}\x0a.st{position:relative;width:36px;height:20px;flex-shrink:0}\x0a.st\x20input{opacity:0;width:0;height:0;position:absolute}\x0a.ss{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bd);border-radius:20px;transition:background\x20.25s;cursor:pointer}\x0a.ss::before{content:\x27\x27;position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0\x201px\x203px\x20rgba(0,0,0,.2);transition:transform\x20.25s\x20cubic-bezier(.4,0,.2,1)}\x0a.st\x20input:checked+.ss{background:var(--ac)}.st\x20input:checked+.ss::before{transform:translateX(16px)}\x0a.sl{display:flex;flex-direction:column;min-width:0}.sn{font-size:13px;font-weight:500;overflow-wrap:anywhere;word-break:break-word}.sd{font-size:11px;color:var(--ts)}\x0a.ms{position:relative;width:32px;height:18px;display:inline-block;cursor:pointer}\x0a.ms\x20input{opacity:0;width:0;height:0;position:absolute}\x0a.msl{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bd);border-radius:18px;transition:background\x20.25s}\x0a.msl::before{content:\x27\x27;position:absolute;width:14px;height:14px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0\x201px\x202px\x20rgba(0,0,0,.15);transition:transform\x20.25s\x20cubic-bezier(.4,0,.2,1)}\x0a.ms\x20input:checked+.msl{background:var(--ac)}.ms\x20input:checked+.msl::before{transform:translateX(14px)}\x0a.ms\x20input:disabled+.msl{opacity:.4;cursor:not-allowed}\x0a.es-section{margin-top:8px}\x0a.es-header{display:flex;align-items:center;gap:8px;margin-bottom:12px}\x0a.es-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}\x0a.badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0\x206px;border-radius:11px;font-size:11px;font-weight:600;background:rgba(var(--acr),.12);color:var(--ac)}\x0a.el{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}\x0a.ec{border:1px\x20solid\x20var(--bd);border-radius:var(--rd);background:var(--bg);overflow:hidden;transition:box-shadow\x20.2s,border-color\x20.2s}\x0a.ec.open{overflow:visible;border-radius:var(--rd)}\x0a.ec.open\x20.eh{border-radius:var(--rd)\x20var(--rd)\x200\x200}\x0a.ec:hover{box-shadow:0\x202px\x2010px\x20rgba(0,0,0,.06)}\x0a.ec.drag-over{border-color:var(--ac);border-style:dashed}\x0a.eh{display:flex;align-items:center;gap:10px;padding:11px\x2014px;transition:background\x20.15s;cursor:pointer;user-select:none}\x0a.eh:hover{background:var(--sf)}\x0a.ed{cursor:grab;opacity:.3;transition:opacity\x20.2s;display:flex;align-items:center}.ed:hover{opacity:.7}\x0a.ecd{width:10px;height:10px;border-radius:50%;flex-shrink:0;box-shadow:0\x200\x200\x202px\x20var(--bg),0\x200\x200\x203px\x20var(--bd)}\x0a.ei{flex:1;min-width:0;display:flex;align-items:center;gap:8px}\x0a.en{font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\x0a.ev{font-size:12px;color:var(--ts);flex-shrink:0}\x0a.ds-badge{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.04em;padding:2px\x205px;border-radius:4px;flex-shrink:0;text-transform:uppercase}\x0a.ds-lts{background:rgba(39,174,96,.15);color:#27ae60}\x0a.ds-hist{background:rgba(127,140,141,.15);color:#7f8c8d}\x0a.ds-other{background:rgba(155,89,182,.15);color:#9b59b6}\x0a.ea{display:flex;align-items:center;gap:2px}\x0a.etb,.edb,.edup{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:8px;color:var(--ts);cursor:pointer;transition:background\x20.15s,color\x20.15s}\x0a.etb:hover{background:var(--sf);color:var(--tx)}.edb:hover{background:rgba(231,76,60,.08);color:var(--dg)}.edup:hover{background:rgba(52,152,219,.08);color:#3498db}\x0a.ec.open\x20.etb\x20svg{transform:rotate(180deg)}.etb\x20svg{transition:transform\x20.3s\x20cubic-bezier(.4,0,.2,1)}\x0a.eb{max-height:0;overflow:hidden;transition:max-height\x20.35s\x20cubic-bezier(.4,0,.2,1)}\x0a.ec.open\x20.eb{max-height:3000px;overflow:visible;position:relative;z-index:1}\x0a.ha-entity-picker-wrap,.ha-tap-action-picker-wrap,.ha-icon-picker-wrap{position:relative;z-index:50;--ha-color-form-background:var(--sf);--ha-color-form-background-hover:var(--sf);--ha-color-form-background-disabled:var(--sf);--ha-color-neutral-95:var(--sf);--text-field-background-color:var(--sf);--mdc-text-field-fill-color:var(--sf);--mdc-select-fill-color:var(--sf);--mdc-menu-surface-fill-color:var(--bg);--ha-card-background:var(--bg);--input-fill-color:var(--sf);--input-dropdown-icon-color:var(--ts);--mdc-theme-surface:var(--bg)}\x0a.ha-entity-picker-wrap\x20ha-entity-picker,.ha-tap-action-picker-wrap\x20ha-selector,.ha-icon-picker-wrap\x20ha-selector{display:block;--paper-input-container_-_z-index:51}\x0a.panel-body{max-height:0;overflow:hidden;transition:max-height\x20.35s\x20cubic-bezier(.4,0,.2,1),padding\x20.35s;padding:0\x2016px}\x0a.panel.open\x20.panel-body{max-height:4000px;overflow:visible;padding:0\x2016px\x2016px}\x0a.tabs{display:flex;gap:2px;padding:4px;margin:\x206px\x206px;background:var(--sf);border-radius:10px}\x0a.main-tabs{display:grid;grid-template-columns:1fr\x201fr\x201fr;gap:2px}\x0a.main-tabs\x20.main-tb{flex:none}\x0a.ec\x20.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}\x0a.ec\x20.tb{flex:none}\x0a.tb{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px\x2010px;border:none;background:none;border-radius:8px;font-size:11.5px;font-weight:600;color:var(--ts);cursor:pointer;transition:all\x20.2s;text-transform:uppercase;letter-spacing:.04em}\x0a.tb:hover{color:var(--tx);background:rgba(var(--acr),.05)}\x0a.tb.active{background:var(--bg);color:var(--ac);box-shadow:0\x201px\x204px\x20rgba(0,0,0,.08)}\x0a.tc{display:none;padding:16px\x2014px}.tc.active{display:block}\x0a.mtc{padding:4px\x200}.main-tabs{margin:8px\x200\x200}\x0a.cs{border:1px\x20solid\x20var(--bd);border-radius:10px;padding:12px;margin-top:12px;transition:opacity\x20.2s}\x0a.cs.lk{opacity:.65;border-style:dashed}\x0a.csh{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}\x0a.cst{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--tx)}\x0a.ln{font-size:11px;color:var(--warning-color,#ff9800);padding:6px\x2010px;margin-bottom:8px;background:rgba(255,152,0,.06);border-radius:6px}\x0a.ci{display:flex;gap:6px;align-items:stretch}.ci\x20input[type=\x22color\x22]{width:40px;height:40px;flex-shrink:0;padding:3px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);cursor:pointer}.ci\x20input[type=\x22text\x22]{flex:1;height:40px;padding:9px\x2011px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13.5px;outline:none;box-sizing:border-box}\x0a.ci\x20input[type=\x22text\x22]:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.thr-list{display:flex;flex-direction:column;gap:6px}\x0a.thr-row{display:grid;grid-template-columns:1fr\x201fr\x2030px;gap:6px;align-items:end}\x0a.thr-row\x20.f\x20label{font-size:10px}.thr-row\x20.f\x20input{padding:6px\x208px;font-size:12px}.thr-row\x20.ci{gap:4px}.thr-row\x20.ci\x20input[type=\x22text\x22]{height:34px;padding:6px\x208px;font-size:12px;flex:1;min-width:0}.thr-row\x20.ci\x20input[type=\x22color\x22]{width:34px;height:34px;flex-shrink:0;padding:3px}\x0a.thr-del{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:1px\x20solid\x20var(--bd);background:none;border-radius:6px;color:var(--ts);cursor:pointer;transition:all\x20.15s}\x0a.thr-del:hover{border-color:var(--dg);color:var(--dg);background:rgba(231,76,60,.06)}\x0a.thr-add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:8px;margin-top:8px;border:1px\x20dashed\x20var(--bd);background:none;border-radius:8px;font-size:12px;font-weight:500;color:var(--ts);cursor:pointer;transition:all\x20.15s}.ma-list{display:flex;flex-direction:column;gap:6px}.ma-row{display:grid;grid-template-columns:1fr\x2056px\x20auto\x2030px;gap:6px;align-items:end}.ma-row\x20.f\x20label{font-size:10px;margin:0\x200\x205px;line-height:1.2;white-space:nowrap;text-align:center}.ma-row\x20.f:first-child\x20label{text-align:left}.ma-row\x20.f\x20input{padding:6px\x208px;font-size:12px;height:34px}.ma-row\x20.f\x20input[type=\x22color\x22]{padding:3px;height:34px;width:100%}.ma-lbl-f{align-items:center}.ma-lbl-f\x20.ms{margin:8px\x200}.ma-del{width:30px;height:34px;display:flex;align-items:center;justify-content:center;border:1px\x20solid\x20var(--bd);background:none;border-radius:6px;color:var(--ts);cursor:pointer;transition:all\x20.15s}.ma-del:hover{border-color:var(--dg);color:var(--dg);background:rgba(231,76,60,.06)}.ma-add{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:8px;margin-top:8px;border:1px\x20dashed\x20var(--bd);background:none;border-radius:8px;font-size:12px;font-weight:500;color:var(--ts);cursor:pointer;transition:all\x20.15s}.ma-add:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}\x0a.ann-list{display:flex;flex-direction:column;gap:8px}\x0a.ann-row{padding:10px\x2012px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf)}\x0a.ann-row-header{display:flex;justify-content:space-between;align-items:center}\x0a.ann-row-type{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ts)}\x0a.ann-del{width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:1px\x20solid\x20var(--bd);background:none;border-radius:6px;color:var(--ts);cursor:pointer;transition:all\x20.15s}\x0a.ann-del:hover{border-color:var(--dg);color:var(--dg);background:rgba(231,76,60,.06)}\x0a.ann-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;margin-top:8px;border:2px\x20dashed\x20var(--bd);background:none;border-radius:var(--rd);font-size:13px;font-weight:600;color:var(--ts);cursor:pointer;transition:all\x20.2s}\x0a.ann-add:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}.thr-add:hover{border-color:var(--ts);color:var(--tx)}\x0a.thr-add:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}\x0a.es{font-size:12px;color:var(--ts);text-align:center;padding:8px;opacity:.6}\x0a.hint{font-size:11px;color:var(--ts);margin-top:8px;line-height:1.4}\x0a.hint\x20code{background:var(--sf);padding:1px\x205px;border-radius:4px;font-size:11px;font-family:monospace}\x0a.add-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;border:2px\x20dashed\x20var(--bd);background:none;border-radius:var(--rd);font-size:13px;font-weight:600;color:var(--ts);cursor:pointer;transition:all\x20.2s}\x0a.add-btn:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}\x0a.tip-wrap{position:relative;display:inline-flex;align-items:center;vertical-align:middle;margin-left:3px;outline:none}\x0a.tip-icon{color:var(--ts);opacity:.5;cursor:help;flex-shrink:0;transition:opacity\x20.15s}\x0a.tip-wrap:hover\x20.tip-icon,.tip-wrap:focus\x20.tip-icon{opacity:1;color:var(--ac)}\x0a.tip-box{visibility:hidden;opacity:0;position:absolute;bottom:calc(100%\x20+\x206px);left:50%;transform:translateX(-50%);background:var(--tx);color:var(--bg);font-size:11.5px;line-height:1.45;padding:7px\x2010px;border-radius:8px;white-space:normal;width:200px;pointer-events:none;transition:opacity\x20.15s\x20.1s;z-index:999;box-shadow:0\x204px\x2016px\x20rgba(0,0,0,.25);font-weight:400;letter-spacing:0;text-transform:none}\x0a.tip-wrap:hover\x20.tip-box,.tip-wrap:focus\x20.tip-box{visibility:visible;opacity:1}\x0a@media(max-width:500px){.r2{grid-template-columns:1fr}.r3{grid-template-columns:1fr\x201fr}.sg{grid-template-columns:1fr}.tabs{flex-wrap:wrap}.main-tabs{grid-template-columns:1fr\x201fr\x201fr}.tb{font-size:10px;padding:6px\x206px}}\x0a','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','callWS','.e-extrema_color-picker','firstElementChild','%\x22\x20stop-color=\x22','getUTCSeconds','.sgc-card>*{position:relative;z-index:1}','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','warn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Annotations','getRootNode','var(--secondary-text-color)','Maps\x20non-numeric\x20state\x20strings\x20to\x20numeric\x20values\x20for\x20graphing.\x20Each\x20line\x20you\x20enter\x20is\x20assigned\x20a\x20number\x20starting\x20at\x200\x20in\x20order.\x20For\x20example:\x20if\x20you\x20enter\x20\x22off\x22\x20on\x20line\x201\x20and\x20\x22on\x22\x20on\x20line\x202,\x20the\x20graph\x20will\x20show\x200\x20for\x20off\x20and\x201\x20for\x20on.\x20Required\x20for\x20binary_sensor,\x20input_boolean,\x20and\x20other\x20non-numeric\x20entities.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Pie\x20Style','ranking','\x20C\x20','Y\x20Axis\x20Range','(','_aggregate','getMonth','show_average','default','','short','#888','color:var(','_renderHeader','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_onIntervalSyncRequest','_fillRaf','precision','Top\x20Right','gridAutoFlow','clientHeight','pie_label_format','.sgc-card::before{content:\x27\x27;position:absolute;inset:0;z-index:0;background-image:url(\x27','_calendarDiffNeedsHourly','__default','Bezier','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','className','applyEntityTransforms','insertBefore','wrap','Adds\x20depth\x20to\x20the\x20pie\x20by\x20squashing\x20it\x20vertically\x20and\x20rendering\x20side\x20walls\x20below.\x20Works\x20with\x20any\x20style\x20preset.','Data\x20beyond\x20~10\x20days\x20may\x20be\x20unavailable.','_resolveCanvasColor','','Upper\x20Bound\x20Y','lineTo','aggregate_func','Show\x20the\x20time\x20the\x20extreme\x20value\x20was\x20recorded\x20below\x20each\x20label.\x20Disable\x20for\x20compact\x20display\x20showing\x20only\x20the\x20value.','card_icon_position','.sgc-dp-label','Visible\x20Window','\x20–\x20','','\x20must\x20have\x20\x22entity\x22\x20or\x20\x22statistic_id\x22','Minutes','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','background','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.ec','sgc-y-axis-bg','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Thick','_dpSynced','Background\x20color\x20of\x20the\x20extrema\x20label\x20box.\x20Combined\x20with\x20Background\x20Opacity\x20below\x20—\x20set\x20opacity\x20to\x200\x20to\x20show\x20only\x20the\x20text\x20without\x20a\x20background.','\x22\x20preserveAspectRatio=\x22none\x22\x20style=\x22display:block\x22>','Bounds','sMin','Y\x20Axis\x20Ticks','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','data-t','pie_center_font_size','Share','number','avg','none','X\x20Grid\x20Color','Bar\x20Spacing','_slideWindow','Marks\x20each\x20individual\x20data\x20point\x20with\x20a\x20small\x20circle\x20on\x20the\x20line.\x20Useful\x20for\x20spotting\x20data\x20resolution,\x20gaps\x20in\x20history,\x20and\x20seeing\x20exactly\x20where\x20each\x20measurement\x20was\x20recorded.','Scrollbar\x20=\x20visible\x20scrollbar\x20at\x20the\x20bottom.\x20Wheel\x20=\x20mouse\x20wheel\x20scrolls\x20horizontally.','\x22>◀\x0a\x20\x20\x20\x20\x20\x20\x20\x20','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20numeric\x20data\x20for\x20histogram.','matchMedia','\x22>','MM/DD\x20HH:mm','diffSeries','rgba(0,0,0,0.35)','Controls\x20the\x20spacing\x20between\x20X-axis\x20tick\x20marks.\x20Auto\x20=\x20calculated\x20based\x20on\x20graph\x20width.\x20Or\x20choose\x20a\x20fixed\x20interval:\x20hourly,\x20daily,\x20weekly,\x20or\x20monthly.\x20Ticks\x20always\x20align\x20to\x20clean\x20boundaries\x20(hour\x20starts,\x20midnight,\x20Monday,\x201st\x20of\x20month).','e-trend_up_color','card_border_radius','.edb','med','Name\x20Position','alphabetic','purple','Type\x20an\x20icon\x20or\x20Jinja\x20template,\x20or\x20browse\x20below.','\x22\x20data-tc=\x22colors\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_energyStart','_attachZoomHandlers','I18N','config','.e-forecast_horizon','.ann-row','_statMeta','\x20/\x20','dpCal','Needle\x20Color','fetchHistory','norm','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','radar','_drawSpanAnnotation','_startEnergyDateSync','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','connectedCallback','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','orange','0.35','sgc-h32','Inherit\x20from\x20Custom\x20Name','statistics','data_time_unit','3D\x20Effect','states','.sgc-card{position:relative;overflow:hidden}','last_30d','Stable\x20Color','xVal','Aligned\x20(below)','sgc-ann-label\x20sgc-ann-event-label','sgc-plot-scroll','value_end','Stacks\x20entities\x20on\x20top\x20of\x20each\x20other\x20instead\x20of\x20overlapping.','_quantile','Step','.tc','\x22>','px)','card_background_color','barH','date_picker_modes','_pollTimer','\x22>','Share','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','All\x20cards','list','_drawThresholdAnnotation','display','show_extrema_min','Thin','Slice\x20Label\x20Size','cols','stroke-dasharray','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','DD/MM\x20HH:mm','line_style','Dotted','','statistic_id','rgba(255,255,255,0.06)','.e-line_width','#e67e22','Month','sgc-ann-label\x20sgc-ann-band-label','_cols','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Time\x20Unit','.sgc-dp-wrap','\x20stroke-linejoin=\x22round\x22\x20stroke-linecap=\x22round\x22\x20vector-effect=\x22non-scaling-stroke\x22/>','','getMilliseconds','fill=\x22','.e-line_style','eSig','sgc-query-sync','\x20aria-label=\x22Next\x20period\x22>›','.eh','','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Show\x20Full\x20Period','\x22>No\x20data\x20to\x20build\x20calendar.','h2n','sgc-grid','set','${this._eT(\x22X-axis\x20settings\x20are\x20hidden\x20in\x20sparkline\x20mode\x22)}','var(--success-color,\x20#22c55e)','_cacheCleanupTimer','.e-extrema_bg_opacity','duration_unit','8\x204','Primary\x20Value','units','','_scheduleRender','\x22\x20data-panel=\x22entities\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unclosed\x20{','sMap','DD-MM-YYYY','visibility','values','\x22\x20data-mtab=\x22overlay\x22>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20data-tab=\x22data\x22>','3,3','_cacheGet','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20sgc-stacked','background-position:center','Primary\x20color\x20for\x20this\x20entity\x27s\x20graph\x20line\x20and\x20fill\x20area.\x20Also\x20used\x20as\x20the\x20dot\x20in\x20the\x20state\x20row.\x20Enter\x20threshold\x20to\x20drive\x20color\x20from\x20the\x20threshold\x20bands\x20defined\x20below.','input[type=\x22text\x22],input[type=\x22number\x22],select{height:32px!important;padding-top:0!important;padding-bottom:0!important}input[type=\x22color\x22]{height:32px!important;padding:3px!important}.ci\x20input[type=\x22color\x22]{width:32px!important}','.e-show_timestamp','Legend','Card\x20Shadow','No\x20numeric\x20data\x20for\x20box\x20plot.','-color)','YYYY-MM-DD\x20HH:mm','maSeries','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','_normalizedBgImage','en-US','state_timeline','\x22\x20x2=\x22','Battery\x20percentage\x20below\x20which\x20the\x20icon\x20turns\x20red.\x20Default\x20is\x2020%.\x20Accepts\x20a\x20number,\x20entity\x20ID\x20(sensor.x),\x20or\x20entity\x20attribute\x20(sensor.x.attribute).','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','1068948tIUIaq','data_time_field','.e-show_average','-picker\x22\x20type=\x22color\x22\x20value=\x22','bMin','-picker','sc:','#5dade2','y_axis_number_format','solid','\x22/>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','_wsSubscribing','getDate','1754060AFkRDM','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.ann-label','','position:relative;width:100%;max-width:125px','System','hass-action','Roboto,\x20sans-serif','date_picker_nav_position','pow','sgc-ann-label\x20sgc-ann-threshold-label','More\x20Info','pointermove','removeAttribute','sgc-period-highlight','animate_graph','state_layout','_broadcastDatePickerSync','.e-thr_direction','size','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','_isThrRef','thr-col-pick','Lower\x20Bound\x20Y2','#f39c12','hours_to_show','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_sgcCp','disabled','\x22\x20stroke-width=\x220.8\x22/>','Shows\x20a\x20floating\x20info\x20box\x20with\x20exact\x20values\x20when\x20hovering.','data-band-x','Entities','Default\x20(Vertical)','breakGapsInCalendar','_updateSeq','visible','sgc-grid-line\x20sgc-x-grid-line','formatEntityState','--sgc-path-len','','min','Horizontal\x20position\x20of\x20the\x20‹\x20period\x20›\x20navigator\x20inside\x20the\x20picker\x20bar\x20—\x20left,\x20center,\x20or\x20right.\x20If\x20it\x20shares\x20a\x20position\x20with\x20the\x20shortcuts,\x20the\x20navigator\x20is\x20placed\x20first,\x20to\x20their\x20left.','decimals','Time\x20window\x20in\x20hours\x20for\x20trend\x20direction\x20calculation.\x20The\x20slope\x20across\x20the\x20last\x20N\x20hours\x20determines\x20whether\x20the\x20icon\x20shows\x20▲\x20(rising),\x20▼\x20(falling),\x20or\x20⯇⯈\x20(stable).\x20Set\x20to\x200\x20to\x20use\x20the\x20full\x20displayed\x20range.\x20Decimals\x20are\x20allowed\x20(e.g.\x200.5\x20=\x2030\x20min,\x200.25\x20=\x2015\x20min)\x20—\x20but\x20the\x20window\x20must\x20still\x20contain\x20at\x20least\x202\x20data\x20points,\x20otherwise\x20it\x20stays\x20stable.','_buildSecondStateHtml','string\x20in\x20arithmetic','Radar\x20chart\x20requires\x20at\x20least\x203\x20entities\x20(currently\x20','concat','Mouse\x20Wheel','y_axis_format','parentNode','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','show_extrema','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Loading…','Card\x20Overlays','Draws\x20a\x20dashed\x20horizontal\x20line\x20at\x20the\x20mean\x20value\x20of\x20this\x20entity\x20over\x20the\x20current\x20time\x20window.\x20Labeled\x20with\x20the\x20average\x20value\x20in\x20the\x20entity\x20color.','Show\x20the\x20maximum\x20value\x20label.\x20Disable\x20to\x20hide\x20just\x20the\x20max.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_tmp','polygon','\x20font-weight=\x22600\x22','Last\x2012M','toISOString','var(--primary-color,\x20#378ADD)','system','Background\x20Opacity','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','transparent','expr:','','','align_header','','_drawPie','_instanceId','entity','subscribe_trigger','_renderYAxisLabels','','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','group_by_picker_group','_applyFillHeight','always','_intervalInitialSyncDone','\x0a\x20\x20\x20\x20\x20\x20\x20\x20
Chart\x20mode\x20\x22','','_sgcExtremaBound','isConnected','has_sum','stroke-dasharray:none','primary_state_as','calendar','_bucketSeries','_calBarPositions','rgba(255,255,255,0.9)','Time','offsetWidth','_pick','','—\x20','Show\x20the\x20default\x20HA\x20card\x20drop\x20shadow.\x20Disable\x20for\x20a\x20flat\x20look\x20or\x20when\x20placing\x20the\x20card\x20on\x20a\x20decorated\x20background.','_prep','top','Hard','delete','entity_id','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','GET','','Action','lower_bound','dp-in-range','formatToParts','freeze','','http://www.w3.org/2000/svg','Y\x20Ticks','now_line_color','#95a5a6','Week\x20of\x20year\x20(1-53)','[statistics-graph-chart-card]\x20Invalid\x20time_zone\x20\x22','linearGradient',':00','_dpMode','.sgc-zoom-brush-label-right','var(--secondary-text-color,\x20#95a5a6)','','Hard\x20or\x20soft\x20minimum\x20for\x20the\x20primary\x20Y\x20axis.\x20Enter\x20a\x20number\x20for\x20a\x20hard\x20bound\x20(axis\x20never\x20goes\x20below).\x20Prefix\x20with\x20~\x20for\x20soft\x20(e.g.\x20~0)\x20—\x20axis\x20expands\x20if\x20data\x20goes\x20below.\x20Also\x20accepts\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound\x20that\x20follows\x20another\x20sensor.','.e-data_time_year','points','days','_teardownColorTemplates','Colour\x20of\x20the\x20━\x20(stable)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20secondary\x20text\x20colour\x20(grey).','bool','Chart\x20mode,\x20display\x20and\x20data\x20configuration','_computeDatePickerWindow','wheel','extrema_font_size','Custom\x20color\x20for\x20Y-axis\x20labels\x20and\x20tick\x20marks.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable\x20like\x20var(--my-color).\x20Leave\x20empty\x20for\x20theme\x20default\x20(--secondary-text-color).','Jun','Fills\x20the\x20area\x20below\x20the\x20line\x20with\x20a\x20semi-transparent\x20version\x20of\x20the\x20entity\x20color.\x20Combined\x20with\x20gradient,\x20creates\x20a\x20smooth\x20fade-out\x20effect.','columns','How\x20numbers\x20are\x20formatted.\x20System\x20=\x20follow\x20HA\x20locale\x20setting.\x20Comma\x20=\x20European\x20style\x20(1.234,56).\x20Dot\x20=\x20American\x20style\x20(1,234.56).','_onQueryPick','font-weight:500;pointer-events:none;text-shadow:0\x201px\x202px\x20rgba(0,0,0,0.3)','.e-show_color_dot','clearCache','_slices','Last\x2024H','.e-icon_size','3\x20Hours','pph_picker_position','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','show_y_axis_label','_subscribeEditorColors','moving_averages','sgc-spark-mode','flex-shrink:0;--mdc-icon-size:18px;width:18px;height:18px;color:var(--tx)','\x20.sgc-dp-nav','','unknown\x20function\x20','History\x20only','\x22>px\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','opacity:','Previous\x20month','var(--ha-card-background,\x20var(--card-background-color,\x20var(--primary-background-color,\x20#1c1c1c)))','select','sgc-now-line','','userSpaceOnUse','count','.e-lower_bound','English','_haColorMap','show_interval_picker','sgc-svg','Custom\x20Name','weekday','last_color','carryForwardMs','dragover','yearTotal','stroke','_onDatePickerToggle','applyPreBucketTransforms','closePath','_resolveDynBatteryThreshold','y_axis_label','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dotted','font-size','#2ecc71','last\x20reading\x20can\x20be\x20the\x20post-reset\x200','_default','','rgba(128,128,128,0.8)','Max','central','Graph\x20Start','Border\x20Color','General\x20Settings','subscribeEvents','_restartEnergyDateSyncIfNeeded','cyan','<','e-entity','Pts/h','External\x20statistic\x20—\x20only\x20published\x20to\x20the\x20statistics\x20database.','show_points','Window\x20Step','','x_axis_date_color','line','state','trailing\x20tokens','.sgc-y-axis-label','baselineByIdx','[data-dpmode]','sgc-scroll-sync','battery_entity','','_processAnnotationRefChanges','>','stacked','diff','action','attributes','_xMeta','gby','','endMs','.sgc-bar','.e-number_format','General','_sanitizeEntities','total_increasing','_pendingSlide','','.e-unit','y_axis','timestamp','area','gradient','Low','line_width','card_background_blur','statsFieldCascade','.e-state_map','Last\x2030D','history','_hasAnyAggregatedEntity','_scheduleResolvePreciseRecordTimes','12h','Names\x20used\x20by\x20Value\x20Expression,\x20mapped\x20to\x20entity\x20IDs\x20-\x20one\x20per\x20line\x20as\x20name:\x20entity_id.\x20Each\x20resolves\x20to\x20the\x20entity\x20numeric\x20state\x20and\x20re-evaluates\x20live\x20when\x20it\x20changes.\x20Example:\x20mwst:\x20input_number.vat_rate','\x22>\x22\x20is\x20not\x20implemented\x20in\x20Phase\x201.\x0a\x20\x20\x20\x20\x20\x20\x20\x20Phase\x201\x20supports\x20timeline.\x20YAML\x20for\x20other\x20modes\x20is\x20accepted\x20and\x20preserved.\x0a\x20\x20\x20\x20\x20\x20';}}const STYLES=_0x236d40(0x7ce);class StatisticsGraphChartCard extends HTMLElement{static get[_0x236d40(0xc4d)](){return VERSION;}static get[_0x236d40(0xa15)](){return{...CARD_DEFAULTS};}static get['PALETTE'](){return[...PALETTE];}static[_0x236d40(0x31d)](){return{...ENTITY_DEFAULTS};}static[_0x236d40(0x194)](){const _0x15347a=_0x236d40;return{'chart_mode':'timeline','hours_to_show':0x18,'show_legend':!![],'entities':[{'entity':_0x15347a(0x7bd)}]};}static async[_0x236d40(0x6db)](){const _0x270c67=_0x236d40;return document[_0x270c67(0x1a8)](_0x270c67(0x1c0));}constructor(){const _0x1b5726=_0x236d40;super(),this[_0x1b5726(0x8fa)]({'mode':'open'}),this[_0x1b5726(0x857)]=null,this['_hass']=null,this[_0x1b5726(0x721)]=[],this['_fetcher']=new DataFetcher(),this[_0x1b5726(0x945)]=null,this[_0x1b5726(0x3cf)]=null,this[_0x1b5726(0x296)]=null,this[_0x1b5726(0x77a)]=null,this[_0x1b5726(0x841)]=![],this[_0x1b5726(0xcec)]=!![],this[_0x1b5726(0xaa4)]=Math[_0x1b5726(0xb07)]()[_0x1b5726(0x421)](0x24)[_0x1b5726(0x670)](0x2,0xb),this[_0x1b5726(0x56a)]=null,this[_0x1b5726(0x844)]=new Set(),this[_0x1b5726(0x729)]=null,this[_0x1b5726(0x36f)]=null,this[_0x1b5726(0x2b1)]=![],this[_0x1b5726(0x634)]=null,this[_0x1b5726(0x4ca)]=new Map(),this[_0x1b5726(0x87e)]=null,this['_liveEnabled']=![],this[_0x1b5726(0x441)]=Object[_0x1b5726(0x35d)](null),this[_0x1b5726(0xa02)]=null,this[_0x1b5726(0x39c)]=Object[_0x1b5726(0x35d)](null),this[_0x1b5726(0x983)]=null,this[_0x1b5726(0x5ba)]=![],this[_0x1b5726(0xa26)]=new Map(),this['_colorTemplateUnsubs']=[],this[_0x1b5726(0x536)]=![],this['_annotationRefs']=new Set(),this['_dataVarIds']=new Set(),this[_0x1b5726(0x7d4)]=new Set(),this[_0x1b5726(0x6df)]=Object[_0x1b5726(0x35d)](null),this[_0x1b5726(0x5f0)]=null,this['_activeIntervalLabel']=null,this['_overrideAttributes']={},this[_0x1b5726(0x2b2)]=null,this['_zoomSyncHandler']=null,this[_0x1b5726(0x1b3)]=null,this['_showTooltipAtTime']=null,this[_0x1b5726(0x3f7)]=null,this[_0x1b5726(0x473)]=null,this[_0x1b5726(0x224)]=null,this[_0x1b5726(0x7f2)]=null,this['_energyEnd']=null,this['_dpSyncHandler']=null,this[_0x1b5726(0x809)]=null,this[_0x1b5726(0x7b9)]=null,this[_0x1b5726(0xab6)]=![],this[_0x1b5726(0x2e2)]=null,this['_overrideGroupBy']=null,this[_0x1b5726(0xc0b)]=null,this[_0x1b5726(0x416)]=null,this['_querySyncRequestHandler']=null,this['_queryInitialSyncDone']=![],this[_0x1b5726(0xae2)]=_0x1b5726(0x74c),this[_0x1b5726(0x691)]=0x0,this['_dpCustomStart']=null,this['_dpCustomEnd']=null,this[_0x1b5726(0x1e9)]=![],this[_0x1b5726(0x23a)]=null,this[_0x1b5726(0xc52)]=null,this[_0x1b5726(0xc88)]=null,this[_0x1b5726(0x796)]=![],this[_0x1b5726(0xcea)]=[],this[_0x1b5726(0xc42)]='',this[_0x1b5726(0x2b1)]=![],this[_0x1b5726(0xd04)]=null,this[_0x1b5726(0x9af)]=![],this[_0x1b5726(0xcbc)]=0x0,this[_0x1b5726(0x535)]=null,this[_0x1b5726(0x9ee)]=0x0,this[_0x1b5726(0x7f8)]=Object[_0x1b5726(0x35d)](null),this[_0x1b5726(0x51d)]=null,this['_instanceKey']='';}['setConfig'](_0x5c041b){const _0xca1b67=_0x236d40;if(!_0x5c041b)throw new Error(_0xca1b67(0x580));if(!_0x5c041b['entities']||!Array['isArray'](_0x5c041b[_0xca1b67(0x4bd)]))throw new Error(_0xca1b67(0x223));const _0xba4182=this[_0xca1b67(0x857)],_0x5406c0={...CARD_DEFAULTS,..._0x5c041b};_0x5406c0[_0xca1b67(0x4bd)]=_0x5c041b['entities'][_0xca1b67(0x5f7)]((_0x50e925,_0x1bde1b)=>{const _0xf7ff51=_0xca1b67;if(!_0x50e925[_0xf7ff51(0xaa5)]&&!_0x50e925[_0xf7ff51(0x892)])throw new Error(_0xf7ff51(0x19d)+_0x1bde1b+_0xf7ff51(0x751));if(_0x50e925[_0xf7ff51(0x9cc)]?.['enabled']&&_0x50e925[_0xf7ff51(0x279)]?.[_0xf7ff51(0x4e9)])throw new Error(_0xf7ff51(0x963)+(_0x50e925[_0xf7ff51(0xaa5)]||_0x50e925[_0xf7ff51(0x892)]));const _0x5075c0={...ENTITY_DEFAULTS,..._0x50e925};if(_0x5075c0[_0xf7ff51(0x225)]===undefined)delete _0x5075c0[_0xf7ff51(0x225)];if(!_0x50e925[_0xf7ff51(0x6f8)])_0x5075c0['color']=PALETTE[_0x1bde1b%PALETTE[_0xf7ff51(0x2d1)]];return _0x50e925['value_transform']&&(_0x5075c0[COMPILED_TRANSFORM]=compileValueTransform(_0x50e925[_0xf7ff51(0x50f)])),_0x5075c0;});_0x5406c0[_0xca1b67(0xcda)]&&_0x5406c0[_0xca1b67(0xcbb)]&&(_0x5406c0['energy_date_sync']=![]);{if(!(this['_autoHideForce']instanceof Set))this['_autoHideForce']=new Set();const _0x129fc5=!!_0xba4182?.[_0xca1b67(0xc21)],_0x567230=!!_0x5406c0['auto_hide_entities'],_0x3d72e7=_0xba4182?.[_0xca1b67(0x4bd)]||[],_0x49a065=_0x129fc5!==_0x567230;_0x5406c0[_0xca1b67(0x4bd)][_0xca1b67(0x366)]((_0x89f54,_0x13319e)=>{const _0x59a5c8=_0xca1b67,_0x23de8f=_0x3d72e7[_0x13319e]?.[_0x59a5c8(0x225)];(_0x49a065||_0x23de8f!==_0x89f54['auto_hide'])&&this['_autoHideForce'][_0x59a5c8(0x412)]((_0x89f54['entity']||_0x89f54[_0x59a5c8(0x892)])+'__'+_0x13319e);});}{const _0x3f8c1d=compileLabelFormat(_0x5406c0['y_axis_format'],_0x5406c0[_0xca1b67(0x911)]),_0x4133fb=compileLabelFormat(_0x5406c0[_0xca1b67(0x81d)],_0x5406c0[_0xca1b67(0x911)]);if(_0x3f8c1d||_0x4133fb)for(const _0x4c0a66 of _0x5406c0[_0xca1b67(0x4bd)]){Object[_0xca1b67(0x775)](_0x4c0a66,_0xca1b67(0x271),{'value':_0x4c0a66['y_axis']==='secondary'?_0x4133fb:_0x3f8c1d,'enumerable':![],'writable':!![],'configurable':!![]});}}this[_0xca1b67(0x857)]=_0x5406c0,this[_0xca1b67(0x721)]=_0x5406c0[_0xca1b67(0x4bd)],this[_0xca1b67(0xc42)]='',this[_0xca1b67(0x51d)]=null,this[_0xca1b67(0x7db)]=this[_0xca1b67(0x3ba)](_0x5406c0);if(_0x5406c0[_0xca1b67(0xb44)]||_0x5406c0[_0xca1b67(0x544)])try{const _0x29ab94=JSON[_0xca1b67(0x6e3)](lsGet(_0xca1b67(0x8a1)+this[_0xca1b67(0x7db)])||'null');_0x29ab94&&isNum(toNum(_0x29ab94[_0xca1b67(0xb63)]))&&(this[_0xca1b67(0x5f0)]=toNum(_0x29ab94[_0xca1b67(0xb63)]),this['_activeIntervalLabel']=_0x29ab94['label']||null);}catch{}else this[_0xca1b67(0x5f0)]=null,this[_0xca1b67(0xc12)]=null,lsDel(_0xca1b67(0x8a1)+this[_0xca1b67(0x7db)]);this['_baseQuery']={'pph':_0x5406c0[_0xca1b67(0x641)],'gby':_0x5406c0[_0xca1b67(0x8d3)],'autoScale':!!_0x5406c0[_0xca1b67(0x592)]};if(_0x5406c0[_0xca1b67(0x3cd)]||_0x5406c0['pph_picker_group']){const _0x2cfd11=toNum(lsGet('sgc-qpph:'+this[_0xca1b67(0x7db)]));if(isNum(_0x2cfd11))this[_0xca1b67(0x2e2)]=_0x2cfd11;}else this['_overridePph']=null,lsDel(_0xca1b67(0x8dc)+this[_0xca1b67(0x7db)]);if(_0x5406c0['show_group_by_picker']||_0x5406c0[_0xca1b67(0xab3)]){const _0x3bb264=lsGet('sgc-qgby:'+this[_0xca1b67(0x7db)]);if(_0x3bb264)this[_0xca1b67(0xa77)]=_0x3bb264;}else this[_0xca1b67(0xa77)]=null,lsDel(_0xca1b67(0x50c)+this[_0xca1b67(0x7db)]);this[_0xca1b67(0xd16)](_0x5406c0);if(_0x5406c0['show_date_picker']||_0x5406c0[_0xca1b67(0xa5e)]){const _0x4b4404=_0x5406c0[_0xca1b67(0x2a2)],_0x5dfa41=_0x4b4404&&(DATE_PICKER_VALID_MODES['includes'](_0x4b4404)||_0x4b4404 in DATE_PICKER_RELATIVE_MODES);let _0x53fcbe=![];if(_0x5dfa41)this[_0xca1b67(0xae2)]=_0x4b4404,this[_0xca1b67(0x691)]=0x0;else try{const _0x56fca0=JSON[_0xca1b67(0x6e3)](lsGet(_0xca1b67(0xc8d)+this[_0xca1b67(0x7db)])||_0xca1b67(0xb08));if(_0x56fca0){this[_0xca1b67(0xae2)]=_0x56fca0[_0xca1b67(0x943)]||_0xca1b67(0x74c),this[_0xca1b67(0x691)]=_0x56fca0[_0xca1b67(0x632)]||0x0;if(_0x56fca0[_0xca1b67(0x85f)])this[_0xca1b67(0xd01)]=new Date(_0x56fca0[_0xca1b67(0x85f)]);if(_0x56fca0['customEnd'])this[_0xca1b67(0x1a6)]=new Date(_0x56fca0[_0xca1b67(0x394)]);_0x53fcbe=!![];}}catch{}const _0x26484a=_0x5406c0['date_picker_modes'];Array[_0xca1b67(0x707)](_0x26484a)&&_0x26484a['length']&&!_0x26484a[_0xca1b67(0x2cf)](this[_0xca1b67(0xae2)])&&this['_dpMode']!=='custom'&&!(this[_0xca1b67(0xae2)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0xca1b67(0xae2)]=_0x26484a[0x0],this[_0xca1b67(0x691)]=0x0);if(this[_0xca1b67(0xae2)]!==_0xca1b67(0x3af)&&(this['_dpOffset']||0x0)>0x0)this[_0xca1b67(0x691)]=0x0;!_0x5406c0[_0xca1b67(0xcda)]&&_0x5406c0[_0xca1b67(0xa5e)]&&(_0x53fcbe||_0x5dfa41)&&(this[_0xca1b67(0x796)]=!![]);}else this['_dpMode']='month',this['_dpOffset']=0x0,this['_dpCustomStart']=null,this[_0xca1b67(0x1a6)]=null,this['_dpSynced']=![],lsDel(_0xca1b67(0xc8d)+this[_0xca1b67(0x7db)]);this[_0xca1b67(0xcde)]=this[_0xca1b67(0x721)][_0xca1b67(0x37b)](_0x43e1ac=>_0x43e1ac[_0xca1b67(0xaa5)]&&!_0x43e1ac['statistic_id']),this['_annotationRefs']=this[_0xca1b67(0x259)](_0x5406c0[_0xca1b67(0x2c7)]),this[_0xca1b67(0x553)]=this[_0xca1b67(0xb9b)](this[_0xca1b67(0x721)]),this[_0xca1b67(0x7d4)]=this[_0xca1b67(0x3c5)](this[_0xca1b67(0x721)]);(this['_wsUnsub']||this[_0xca1b67(0x9af)])&&this[_0xca1b67(0xbf6)]()!==this[_0xca1b67(0x535)]&&this[_0xca1b67(0xd21)]();this[_0xca1b67(0x5ba)]=![],this['_liveBuffer']=Object[_0xca1b67(0x35d)](null),this['_prevStamps']=Object[_0xca1b67(0x35d)](null),this[_0xca1b67(0x6df)]=Object[_0xca1b67(0x35d)](null),this[_0xca1b67(0x5bf)](),this['_restartEnergyDateSyncIfNeeded'](_0xba4182);if(this[_0xca1b67(0xd0e)])this['_scheduleUpdate']();}[_0x236d40(0xb9b)](_0x291442){const _0xeee756=_0x236d40,_0x45c06e=new Set();for(const _0x1b711e of _0x291442||[]){if(!_0x1b711e||!_0x1b711e[_0xeee756(0x204)]||!_0x1b711e[_0xeee756(0x1e8)])continue;const _0x31ac2c=_0x1b711e[_0xeee756(0x984)];if(!_0x31ac2c||typeof _0x31ac2c!==_0xeee756(0x89c))continue;for(const _0x2ea294 of Object['values'](_0x31ac2c)){if(typeof _0x2ea294===_0xeee756(0xc00)&&_0x2ea294)_0x45c06e[_0xeee756(0x412)](_0x2ea294);}}return _0x45c06e;}[_0x236d40(0x3c5)](_0x5e191a){const _0x533cb0=_0x236d40,_0x4d40cf=new Set();for(const _0x262702 of _0x5e191a||[]){const _0x4625b7=_0x262702?.[_0x533cb0(0x279)]?.[_0x533cb0(0x91d)];if(!Array[_0x533cb0(0x707)](_0x4625b7))continue;for(const _0x20e639 of _0x4625b7){for(const _0x23b7c7 of[_0x20e639?.[_0x533cb0(0x4be)],_0x20e639?.['color']]){if(typeof _0x23b7c7===_0x533cb0(0xc00)){const _0x4aded4=_0x23b7c7[_0x533cb0(0x1b4)](/^([a-z_]+\.[a-z0-9_]+)/i);if(_0x4aded4)_0x4d40cf['add'](_0x4aded4[0x1]);}}}}return _0x4d40cf;}[_0x236d40(0x9e0)](_0x137c59){const _0x301b81=_0x236d40;return typeof _0x137c59===_0x301b81(0xc00)&&/^[a-z_]+\.[a-z0-9_]+/i[_0x301b81(0x1b8)](_0x137c59);}[_0x236d40(0x48b)](_0x498750){const _0x11a789=_0x236d40;if(typeof _0x498750!=='string')return _0x498750;const _0x491334=_0x498750[_0x11a789(0x1b4)](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0x491334)return _0x498750;const _0x2d752d=this[_0x11a789(0xd0e)]?.[_0x11a789(0x869)]?.[_0x491334[0x1]];if(!_0x2d752d)return _0x498750;const _0x3b1d9f=_0x491334[0x2]?getAttributePath(_0x2d752d[_0x11a789(0xbb4)],_0x491334[0x2]):_0x2d752d['state'];return _0x3b1d9f===null||_0x3b1d9f===undefined||_0x3b1d9f===''?_0x498750:_0x3b1d9f;}[_0x236d40(0xb24)](_0x403d90){const _0x23c3e1=_0x236d40,_0x51a229=_0x403d90?.[_0x23c3e1(0x279)]?.['values'];if(!Array[_0x23c3e1(0x707)](_0x51a229))return _0x51a229;if(!_0x51a229[_0x23c3e1(0x37b)](_0x4a4126=>this[_0x23c3e1(0x9e0)](_0x4a4126?.['value'])||this[_0x23c3e1(0x9e0)](_0x4a4126?.[_0x23c3e1(0x6f8)])))return _0x51a229;return _0x51a229[_0x23c3e1(0x5f7)](_0x35b605=>({..._0x35b605,'value':this[_0x23c3e1(0x48b)](_0x35b605?.[_0x23c3e1(0x4be)]),'color':this[_0x23c3e1(0x48b)](_0x35b605?.[_0x23c3e1(0x6f8)])}));}['_collectAnnotationRefs'](_0x409a00){const _0x1d5046=_0x236d40,_0x4afc37=new Set();if(!Array[_0x1d5046(0x707)](_0x409a00))return _0x4afc37;for(const _0x56f893 of _0x409a00){if(!_0x56f893||typeof _0x56f893!==_0x1d5046(0x89c))continue;if(_0x56f893[_0x1d5046(0x604)]===_0x1d5046(0x817)){const _0x5c1939=extractAnnotationRefEntityId(_0x56f893[_0x1d5046(0x4be)]);if(_0x5c1939)_0x4afc37[_0x1d5046(0x412)](_0x5c1939);}else{if(_0x56f893[_0x1d5046(0x604)]===_0x1d5046(0xc5a)){const _0x3612e9=extractAnnotationRefEntityId(_0x56f893[_0x1d5046(0x4be)]??_0x56f893[_0x1d5046(0x98a)]),_0x14eb84=extractAnnotationRefEntityId(_0x56f893[_0x1d5046(0x871)]??_0x56f893['to']);if(_0x3612e9)_0x4afc37['add'](_0x3612e9);if(_0x14eb84)_0x4afc37[_0x1d5046(0x412)](_0x14eb84);}else(_0x56f893[_0x1d5046(0x604)]===_0x1d5046(0xae8)||_0x56f893[_0x1d5046(0x604)]===_0x1d5046(0x228))&&_0x56f893[_0x1d5046(0xaa5)]&&_0x4afc37['add'](_0x56f893[_0x1d5046(0xaa5)]);}}return _0x4afc37;}[_0x236d40(0xb22)](){const _0x4f11dc=_0x236d40,_0x4988e6=this[_0x4f11dc(0x857)]?.['annotations'];if(!Array[_0x4f11dc(0x707)](_0x4988e6)||!_0x4988e6[_0x4f11dc(0x2d1)])return[];const _0x10badd=_0x5d3e54=>{const _0x1cdfcc=_0x4f11dc;if(typeof _0x5d3e54===_0x1cdfcc(0xc00)&&_0x5d3e54['includes']('{{'))return this[_0x1cdfcc(0xa26)]['get'](_0x5d3e54)||_0x5d3e54;return _0x5d3e54;},_0x11dd47=[];for(const _0x3769c7 of _0x4988e6){if(!_0x3769c7||typeof _0x3769c7!==_0x4f11dc(0x89c))continue;const _0x32123d={..._0x3769c7};for(const _0x3a20e5 of[_0x4f11dc(0x5da),'end',_0x4f11dc(0xbde),_0x4f11dc(0x4be),_0x4f11dc(0x871),_0x4f11dc(0x4c6)]){typeof _0x32123d[_0x3a20e5]===_0x4f11dc(0xc00)&&_0x32123d[_0x3a20e5][_0x4f11dc(0x2cf)]('{{')&&(_0x32123d[_0x3a20e5]=_0x10badd(_0x32123d[_0x3a20e5]));}if(_0x32123d[_0x4f11dc(0x604)]===_0x4f11dc(0x817)||_0x32123d[_0x4f11dc(0x604)]==='band'){_0x11dd47[_0x4f11dc(0x2c1)](_0x32123d);continue;}(_0x32123d[_0x4f11dc(0x604)]===_0x4f11dc(0xae8)||_0x32123d[_0x4f11dc(0x604)]===_0x4f11dc(0x228))&&!_0x32123d[_0x4f11dc(0xaa5)]&&_0x11dd47[_0x4f11dc(0x2c1)](_0x32123d);}return this[_0x4f11dc(0xcea)]?.[_0x4f11dc(0x2d1)]&&_0x11dd47['push'](...this[_0x4f11dc(0xcea)]),_0x11dd47;}async['_resolveEntityAnnotations'](_0x1bf518,_0x2090fd){const _0x536d05=_0x236d40,_0x4ac79d=this[_0x536d05(0x857)]?.[_0x536d05(0x2c7)];if(!Array['isArray'](_0x4ac79d)||!_0x4ac79d['length'])return[];const _0x6e6b1d=[],_0xd4723d=new Set();for(const _0x6d9ea4 of _0x4ac79d){if(!_0x6d9ea4||typeof _0x6d9ea4!==_0x536d05(0x89c))continue;if(_0x6d9ea4[_0x536d05(0x604)]!=='event'&&_0x6d9ea4[_0x536d05(0x604)]!=='span'||!_0x6d9ea4[_0x536d05(0xaa5)])continue;if(_0xd4723d['has'](_0x6d9ea4['entity']))continue;_0xd4723d[_0x536d05(0x412)](_0x6d9ea4[_0x536d05(0xaa5)]),_0x6e6b1d[_0x536d05(0x2c1)]({'id':_0x6d9ea4[_0x536d05(0xaa5)]});}if(!_0x6e6b1d[_0x536d05(0x2d1)])return[];let _0x39bb05={};try{const _0x586f4d=this[_0x536d05(0x857)][_0x536d05(0x833)]!==![];_0x39bb05=await this['_fetcher'][_0x536d05(0x7fc)](this[_0x536d05(0xd0e)],_0x6e6b1d,_0x1bf518,_0x2090fd,_0x586f4d);}catch(_0xa3c1b3){return console[_0x536d05(0x6ac)](_0x536d05(0xd2a),_0xa3c1b3),[];}const _0x49e2ee=_0x2090fd[_0x536d05(0x3f2)](),_0x5e1eee=[];for(const _0x279c70 of _0x4ac79d){if(!_0x279c70||typeof _0x279c70!=='object')continue;if(_0x279c70['type']!==_0x536d05(0xae8)&&_0x279c70[_0x536d05(0x604)]!==_0x536d05(0x228)||!_0x279c70[_0x536d05(0xaa5)])continue;const _0x211dd1=_0x39bb05[_0x279c70[_0x536d05(0xaa5)]];if(!Array[_0x536d05(0x707)](_0x211dd1)||!_0x211dd1['length'])continue;const _0x202faf=String(_0x279c70[_0x536d05(0xb91)]??'on');if(_0x279c70[_0x536d05(0x604)]==='event'){String(_0x211dd1[0x0][_0x536d05(0xb91)])===_0x202faf&&_0x5e1eee['push']({..._0x279c70,'type':'event','time':_0x211dd1[0x0]['t']});for(let _0x3fda53=0x1;_0x3fda53<_0x211dd1[_0x536d05(0x2d1)];_0x3fda53++){String(_0x211dd1[_0x3fda53][_0x536d05(0xb91)])===_0x202faf&&String(_0x211dd1[_0x3fda53-0x1][_0x536d05(0xb91)])!==_0x202faf&&_0x5e1eee[_0x536d05(0x2c1)]({..._0x279c70,'type':_0x536d05(0xae8),'time':_0x211dd1[_0x3fda53]['t']});}}else{let _0x4815ee=null;if(String(_0x211dd1[0x0]['state'])===_0x202faf)_0x4815ee=_0x211dd1[0x0]['t'];for(let _0x175e22=0x1;_0x175e22<_0x211dd1[_0x536d05(0x2d1)];_0x175e22++){const _0x1ade35=String(_0x211dd1[_0x175e22][_0x536d05(0xb91)])===_0x202faf;if(_0x1ade35&&_0x4815ee===null)_0x4815ee=_0x211dd1[_0x175e22]['t'];else!_0x1ade35&&_0x4815ee!==null&&(_0x5e1eee['push']({..._0x279c70,'type':'span','start':_0x4815ee,'end':_0x211dd1[_0x175e22]['t']}),_0x4815ee=null);}_0x4815ee!==null&&_0x5e1eee['push']({..._0x279c70,'type':'span','start':_0x4815ee,'end':_0x49e2ee});}}return _0x5e1eee;}[_0x236d40(0x3ba)](_0x25f089){const _0x283a2c=_0x236d40,_0x58eed2={'e':(_0x25f089['entities']||[])[_0x283a2c(0x5f7)](_0x194c7a=>[_0x194c7a[_0x283a2c(0xaa5)]||'',_0x194c7a[_0x283a2c(0x892)]||'',_0x194c7a['attribute']||'']),'c':_0x25f089['chart_mode']||_0x283a2c(0xd06),'t':_0x25f089[_0x283a2c(0x674)]||''};return hashString(JSON[_0x283a2c(0x569)](_0x58eed2));}[_0x236d40(0x3fc)](){const _0x4926be=_0x236d40,_0x15a37d=this['_hass'];if(!_0x15a37d?.[_0x4926be(0x655)])return null;const _0x23e00f=_0x15a37d['connection'];try{const _0x823dd1=window[_0x4926be(0x526)]?.[_0x4926be(0x362)];if(typeof _0x823dd1===_0x4926be(0xd24)){const _0x1dc196=_0x823dd1(_0x15a37d);if(_0x1dc196&&typeof _0x1dc196['subscribe']===_0x4926be(0xd24))return _0x1dc196;}}catch{}try{const _0x56366e=document[_0x4926be(0x2e5)]('ha-panel-energy'),_0xad7890=_0x56366e?.['_energyCollection'];if(_0xad7890&&typeof _0xad7890[_0x4926be(0x343)]===_0x4926be(0xd24))return _0xad7890;}catch{}const _0x143f9a=_0x833479=>{const _0x2e8bae=_0x4926be;if(!_0x833479||typeof _0x833479!==_0x2e8bae(0x89c))return null;for(const [_0x26f525,_0x32768a]of Object[_0x2e8bae(0x90b)](_0x833479)){if(!/energy|nerg/i['test'](_0x26f525))continue;if(_0x32768a&&typeof _0x32768a[_0x2e8bae(0x343)]===_0x2e8bae(0xd24))return _0x32768a;}return null;};return _0x143f9a(_0x23e00f)||_0x143f9a(_0x23e00f['_collections']);}[_0x236d40(0x80e)](){const _0x1e476b=_0x236d40;if(!this[_0x1e476b(0x857)]?.['energy_date_sync']||!this['_hass'])return;this[_0x1e476b(0x60e)]();const _0x5725c4=()=>{const _0x2b1b09=_0x1e476b,_0x10ece7=this[_0x2b1b09(0x3fc)]();if(!_0x10ece7)return![];this[_0x2b1b09(0x473)]=_0x10ece7[_0x2b1b09(0x343)](_0xb148d6=>{const _0x1b1438=_0x2b1b09,_0x45d222=_0x10ece7[_0x1b1438(0x5da)]||_0x10ece7[_0x1b1438(0x328)]||_0xb148d6?.['start'],_0x26d0de=_0x10ece7[_0x1b1438(0x538)]||_0x10ece7['_end']||_0xb148d6?.['end'];if(_0x45d222)this[_0x1b1438(0x5e2)](_0x45d222,_0x26d0de);});const _0x39f3fc=_0x10ece7['start']||_0x10ece7['_start'],_0x5c3ad4=_0x10ece7[_0x2b1b09(0x538)]||_0x10ece7[_0x2b1b09(0x688)];if(_0x39f3fc)this[_0x2b1b09(0x5e2)](_0x39f3fc,_0x5c3ad4);return!![];};if(_0x5725c4())return;let _0xc0df13=0x0;this[_0x1e476b(0x224)]=setInterval(()=>{const _0x2f39cc=_0x1e476b;_0xc0df13+=0x1,(_0x5725c4()||_0xc0df13>=0xf)&&(clearInterval(this[_0x2f39cc(0x224)]),this[_0x2f39cc(0x224)]=null);},0x7d0);}[_0x236d40(0x60e)](){const _0x2ca574=_0x236d40;if(this[_0x2ca574(0x473)]){try{this[_0x2ca574(0x473)]();}catch{}this['_energyUnsub']=null;}this['_energyDiscoverTimer']&&(clearInterval(this[_0x2ca574(0x224)]),this[_0x2ca574(0x224)]=null);}[_0x236d40(0x5e2)](_0x44832d,_0xd8238a){const _0x22f508=_0x236d40,_0x5dc70e=_0x44832d instanceof Date?_0x44832d:new Date(_0x44832d),_0x592c8b=_0xd8238a?_0xd8238a instanceof Date?_0xd8238a:new Date(_0xd8238a):new Date();if(isNaN(_0x5dc70e[_0x22f508(0x3f2)]())||isNaN(_0x592c8b[_0x22f508(0x3f2)]()))return;if(_0x592c8b['getTime']()<=_0x5dc70e['getTime']())return;if(this['_energyStart']&&this[_0x22f508(0x23c)]&&this[_0x22f508(0x7f2)][_0x22f508(0x3f2)]()===_0x5dc70e[_0x22f508(0x3f2)]()&&this[_0x22f508(0x23c)][_0x22f508(0x3f2)]()===_0x592c8b[_0x22f508(0x3f2)]())return;this[_0x22f508(0x7f2)]=_0x5dc70e,this['_energyEnd']=_0x592c8b,this[_0x22f508(0xa45)]();}[_0x236d40(0xb86)](_0x286a34){const _0x566df9=_0x236d40,_0x15ed4c=!!_0x286a34?.[_0x566df9(0xcbb)],_0x173347=!!this['_config']?.[_0x566df9(0xcbb)];if(_0x15ed4c===_0x173347)return;_0x173347?this[_0x566df9(0x80e)]():(this[_0x566df9(0x60e)](),this[_0x566df9(0x7f2)]=null,this[_0x566df9(0x23c)]=null,this[_0x566df9(0xa45)]());}[_0x236d40(0x82b)](){const _0x371004=_0x236d40,_0x1c2e76=this['_config'],_0x97dc56=new Date(),_0x11d249=_0x368e55=>{const _0xab731=_0xa532;Object[_0xab731(0x775)](_0x1c2e76,_0xab731(0x417),{'value':_0x368e55,'enumerable':![],'writable':!![],'configurable':!![]});};_0x11d249(null);const _0x1919dc=resolveDisplayTimeZone(this[_0x371004(0xd0e)],_0x1c2e76);let _0xc9c733=0x0;for(const _0x3f282e of this[_0x371004(0x721)]||[]){const _0x1d56f9=toNum(_0x3f282e?.['forecast_horizon']);if(_0x1d56f9>0x0&&_0x1d56f9>_0xc9c733)_0xc9c733=_0x1d56f9;}const _0x23b75c=_0x599d0c=>{const _0x58bfda=_0x371004;if(_0xc9c733<=0x0)return _0x599d0c;return new Date(_0x599d0c[_0x58bfda(0x3f2)]()+_0xc9c733*0x36ee80);},_0x44f168=_0x1f2f1b=>{const _0x4de6e8=_0x371004;if(_0x1f2f1b==null||typeof _0x1f2f1b!==_0x4de6e8(0xc00))return null;const _0x4a5e51=_0x1f2f1b[_0x4de6e8(0x900)]();if(!_0x4a5e51)return null;if(_0x4a5e51['toLowerCase']()==='now')return 0x0;const _0x2b9ad1=_0x4a5e51[_0x4de6e8(0x1b4)](/^now\s*([+-])\s*(\d*\.?\d+)$/i);if(_0x2b9ad1){const _0x49ea18=_0x2b9ad1[0x1]==='+'?0x1:-0x1,_0x3bf0c8=parseFloat(_0x2b9ad1[0x2]);return isNaN(_0x3bf0c8)?null:_0x49ea18*_0x3bf0c8*0x36ee80;}if((_0x4a5e51[0x0]==='+'||_0x4a5e51[0x0]==='-')&&/^[+-]\d*\.?\d+$/[_0x4de6e8(0x1b8)](_0x4a5e51)){const _0x37a2ef=parseFloat(_0x4a5e51);return isNaN(_0x37a2ef)?null:_0x37a2ef*0x36ee80;}return null;},_0x4da50f=(_0x595a1a,_0xa525a4)=>{const _0x2e4908=_0x371004,_0x171482=!!_0x1c2e76[_0x2e4908(0x278)]||!!_0x1c2e76['show_full_period']||!!(_0x1c2e76[_0x2e4908(0xcda)]&&this[_0x2e4908(0xae2)])||!!(_0x1c2e76[_0x2e4908(0xa5e)]&&this[_0x2e4908(0x796)])||this[_0x2e4908(0x7f2)]!=null&&this[_0x2e4908(0x23c)]!=null||!!((_0x1c2e76[_0x2e4908(0xb44)]||_0x1c2e76[_0x2e4908(0x544)])&&isNum(this[_0x2e4908(0x5f0)])),_0x235f57=(_0xa525a4['getTime']()-_0x595a1a[_0x2e4908(0x3f2)]())/0x36ee80,_0x2172b5=!_0x171482&&_0x235f57<=24.5,_0x8c771d=_0x44f168(_0x1c2e76[_0x2e4908(0x818)]);if(_0x8c771d!==null){const _0x14f9e3=new Date(_0x97dc56[_0x2e4908(0x3f2)]()+_0x8c771d);_0x14f9e3['getTime']()>_0x595a1a[_0x2e4908(0x3f2)]()&&_0x14f9e3[_0x2e4908(0x3f2)]()<_0xa525a4[_0x2e4908(0x3f2)]()&&(_0x595a1a=_0x14f9e3);}else{const _0x462279=resolveDynamicValue(_0x1c2e76[_0x2e4908(0x818)],this[_0x2e4908(0xd0e)])??toNum(_0x1c2e76[_0x2e4908(0x818)]);if(isNum(_0x462279)){if(_0x2172b5){const _0x474e36=tzParts(_0xa525a4[_0x2e4908(0x3f2)](),_0x1919dc);let _0x38bca7=new Date(zonedWallToMs(_0x474e36['y'],_0x474e36['mo'],_0x474e36['d'],Math[_0x2e4908(0xa1e)](_0x462279),Math['round'](_0x462279%0x1*0x3c),0x0,_0x1919dc));_0x38bca7[_0x2e4908(0x3f2)]()>_0xa525a4['getTime']()&&(_0x38bca7=new Date(zonedWallToMs(_0x474e36['y'],_0x474e36['mo'],_0x474e36['d']-0x1,Math[_0x2e4908(0xa1e)](_0x462279),Math['round'](_0x462279%0x1*0x3c),0x0,_0x1919dc))),_0x38bca7['getTime']()<_0xa525a4[_0x2e4908(0x3f2)]()&&(_0x595a1a=_0x38bca7);}else{const _0x27fdce=tzParts(_0x595a1a[_0x2e4908(0x3f2)](),_0x1919dc),_0x363bd4=new Date(zonedWallToMs(_0x27fdce['y'],_0x27fdce['mo'],_0x27fdce['d'],Math[_0x2e4908(0xa1e)](_0x462279),Math['round'](_0x462279%0x1*0x3c),0x0,_0x1919dc));if(_0x363bd4>=_0x595a1a&&_0x363bd4<_0xa525a4)_0x595a1a=_0x363bd4;}}}const _0x38612e=_0x44f168(_0x1c2e76[_0x2e4908(0x30a)]);if(_0x38612e!==null){const _0x581c05=new Date(_0x97dc56['getTime']()+_0x38612e);_0x581c05[_0x2e4908(0x3f2)]()>_0x595a1a[_0x2e4908(0x3f2)]()&&_0x581c05[_0x2e4908(0x3f2)]()!==_0xa525a4[_0x2e4908(0x3f2)]()&&(_0xa525a4=_0x581c05);}else{const _0x316dc9=resolveDynamicValue(_0x1c2e76[_0x2e4908(0x30a)],this[_0x2e4908(0xd0e)])??toNum(_0x1c2e76[_0x2e4908(0x30a)]);if(isNum(_0x316dc9)){const _0xc47e41=tzParts(_0xa525a4['getTime'](),_0x1919dc),_0x2074c6=_0xc47e41['h']===0x0&&_0xc47e41['mi']===0x0&&_0xa525a4[_0x2e4908(0xca4)]()===0x0&&_0xa525a4[_0x2e4908(0x8ec)]()===0x0,_0x3c3ee7=new Date(zonedWallToMs(_0xc47e41['y'],_0xc47e41['mo'],_0xc47e41['d']-(_0x2074c6?0x1:0x0),Math[_0x2e4908(0xa1e)](_0x316dc9),Math[_0x2e4908(0x1db)](_0x316dc9%0x1*0x3c),0x0,_0x1919dc));_0x3c3ee7[_0x2e4908(0x3f2)]()<_0xa525a4[_0x2e4908(0x3f2)]()&&_0x3c3ee7[_0x2e4908(0x3f2)]()>_0x595a1a[_0x2e4908(0x3f2)]()&&(_0xa525a4=_0x3c3ee7);}}return{'start':_0x595a1a,'end':_0xa525a4};},_0x11dabe=_0x1c2e76[_0x371004(0xcda)]||_0x1c2e76[_0x371004(0xa5e)]&&this[_0x371004(0x796)],_0x1fe384=_0x11dabe&&this[_0x371004(0xae2)]==='custom',_0x1614fa=_0x11dabe&&this[_0x371004(0xae2)]&&this[_0x371004(0xae2)]!=='custom';if(_0x11dabe){const _0x480b67=this[_0x371004(0xaf4)]();if(_0x480b67){let {start:_0x55d9b6,end:_0xdef10e}=_0x480b67;if(_0x1614fa){if(_0x1c2e76[_0x371004(0xa10)]){const _0x4a24f7=this[_0x371004(0xaf4)](!![]);if(_0x4a24f7)_0xdef10e=_0x4a24f7[_0x371004(0x538)];}else(this['_dpOffset']||0x0)===0x0&&(_0xdef10e[_0x371004(0x3f2)]()>_0x97dc56[_0x371004(0x3f2)]()&&_0x11d249((_0xdef10e[_0x371004(0x3f2)]()-_0x55d9b6[_0x371004(0x3f2)]())/0x36ee80),_0xdef10e=_0x97dc56);}return _0xdef10e=_0x23b75c(_0xdef10e),_0x4da50f(_0x55d9b6,_0xdef10e);}}if(_0x1c2e76[_0x371004(0xcbb)]&&this[_0x371004(0x7f2)]&&this['_energyEnd']){const _0x185a26=this[_0x371004(0x7f2)];let _0x1da344=this['_energyEnd'];return!_0x1c2e76[_0x371004(0xa10)]&&_0x1da344['getTime']()>_0x97dc56[_0x371004(0x3f2)]()&&(_0x11d249((_0x1da344[_0x371004(0x3f2)]()-_0x185a26[_0x371004(0x3f2)]())/0x36ee80),_0x1da344=_0x97dc56),_0x1da344=_0x23b75c(_0x1da344),_0x4da50f(_0x185a26,_0x1da344);}const _0x49f9e0=(_0x1c2e76['show_interval_picker']||_0x1c2e76[_0x371004(0x544)])&&isNum(this['_overrideHoursToShow'])?this[_0x371004(0x5f0)]:null,_0x1db8c5=isNum(_0x49f9e0);let {start:_0x23380b}=resolveAnchorWindow(_0x1c2e76,_0x49f9e0,this[_0x371004(0xd0e)]),_0x28a21d=_0x97dc56;if(_0x1c2e76[_0x371004(0xa10)]&&!_0x1db8c5){const _0x32c902=_0x1c2e76['graph_start']||null,_0x230240=endOfPeriodFromGraphStart(_0x32c902,_0x97dc56,_0x1919dc);if(_0x230240[_0x371004(0x3f2)]()>_0x28a21d['getTime']()){const _0x43f3f5=_0x230240[_0x371004(0x3f2)]()-_0x28a21d[_0x371004(0x3f2)]();_0x28a21d=_0x230240,!_0x1c2e76[_0x371004(0x278)]&&(_0x23380b=new Date(_0x23380b[_0x371004(0x3f2)]()+_0x43f3f5));}}return _0x1c2e76[_0x371004(0x278)]===_0x371004(0x60c)&&_0x23380b['getTime']()>_0x28a21d[_0x371004(0x3f2)]()&&(_0x28a21d=endOfPeriodFromGraphStart(_0x371004(0x60c),_0x97dc56,_0x1919dc)),_0x28a21d=_0x23b75c(_0x28a21d),_0x4da50f(_0x23380b,_0x28a21d);}['_computeDatePickerWindow'](_0x4188ce){const _0x265d98=_0x236d40,_0x5cde98=this[_0x265d98(0xae2)]||_0x265d98(0x74c),_0x756c34=this[_0x265d98(0x691)]||0x0,_0x30f36b=_0x5cde98===_0x265d98(0x3af)?_0x756c34:Math[_0x265d98(0x9f4)](0x0,_0x756c34),_0x5a7c6d=new Date(),_0x1c6251=resolveDisplayTimeZone(this['_hass'],this['_config']),_0x531684=tzParts(_0x5a7c6d['getTime'](),_0x1c6251),_0x2e7572=_0x5a7c6d[_0x265d98(0x3f2)]()%0xea60,_0xf3dc53=(_0x554dd8,_0x443e55,_0x2e759b,_0x17cd9d=0x0,_0x2ac9e2=0x0)=>new Date(zonedWallToMs(_0x554dd8,_0x443e55,_0x2e759b,_0x17cd9d,_0x2ac9e2,0x0,_0x1c6251)),_0x16ed74=DATE_PICKER_RELATIVE_MODES[_0x5cde98];if(_0x16ed74){let _0x3b760b=new Date(_0x5a7c6d),_0x263fb9=new Date(_0x5a7c6d);if(_0x16ed74[_0x265d98(0xb63)]!=null)_0x3b760b=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo'],_0x531684['d'],_0x531684['h']+_0x30f36b*_0x16ed74[_0x265d98(0xb63)],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572),_0x263fb9=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo'],_0x531684['d'],_0x531684['h']+(_0x30f36b-0x1)*_0x16ed74[_0x265d98(0xb63)],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572);else{if(_0x16ed74['days']!=null)_0x3b760b=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo'],_0x531684['d']+_0x30f36b*_0x16ed74['days'],_0x531684['h'],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572),_0x263fb9=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo'],_0x531684['d']+(_0x30f36b-0x1)*_0x16ed74[_0x265d98(0xaef)],_0x531684['h'],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572);else _0x16ed74[_0x265d98(0x8e0)]!=null&&(_0x3b760b=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo']+_0x30f36b*_0x16ed74[_0x265d98(0x8e0)],_0x531684['d'],_0x531684['h'],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572),_0x263fb9=new Date(zonedWallToMs(_0x531684['y'],_0x531684['mo']+(_0x30f36b-0x1)*_0x16ed74[_0x265d98(0x8e0)],_0x531684['d'],_0x531684['h'],_0x531684['mi'],0x0,_0x1c6251)+_0x2e7572));}if(!_0x4188ce&&_0x3b760b[_0x265d98(0x3f2)]()>_0x5a7c6d['getTime']())_0x3b760b['setTime'](_0x5a7c6d[_0x265d98(0x3f2)]());return{'start':_0x263fb9,'end':_0x3b760b};}const _0x129bed=Math[_0x265d98(0x6fe)](0x1,parseInt(this[_0x265d98(0x857)]?.[_0x265d98(0x7a2)],0xa)||0x1);let _0x5aec0b,_0x1e3a1d;switch(_0x5cde98){case'day':{_0x1e3a1d=_0xf3dc53(_0x531684['y'],_0x531684['mo'],_0x531684['d']+0x1+_0x30f36b*_0x129bed),_0x5aec0b=_0xf3dc53(_0x531684['y'],_0x531684['mo'],_0x531684['d']+0x1+_0x30f36b*_0x129bed-_0x129bed);break;}case _0x265d98(0x677):{const _0x5dec10=_0x531684['d']-(_0x531684['wd']-0x1);_0x1e3a1d=_0xf3dc53(_0x531684['y'],_0x531684['mo'],_0x5dec10+0x7+_0x30f36b*_0x129bed*0x7),_0x5aec0b=_0xf3dc53(_0x531684['y'],_0x531684['mo'],_0x5dec10+0x7+_0x30f36b*_0x129bed*0x7-_0x129bed*0x7);break;}case _0x265d98(0x74c):{_0x1e3a1d=_0xf3dc53(_0x531684['y'],_0x531684['mo']+0x1+_0x30f36b*_0x129bed,0x1),_0x5aec0b=_0xf3dc53(_0x531684['y'],_0x531684['mo']+0x1+_0x30f36b*_0x129bed-_0x129bed,0x1);break;}case _0x265d98(0x40e):{const _0x5de2c9=_0x531684['y']+0x1+_0x30f36b*_0x129bed;_0x1e3a1d=_0xf3dc53(_0x5de2c9,0x0,0x1),_0x5aec0b=_0xf3dc53(_0x5de2c9-_0x129bed,0x0,0x1);break;}case _0x265d98(0x3af):{if(!this[_0x265d98(0xd01)]||!this['_dpCustomEnd'])return null;_0x5aec0b=new Date(this[_0x265d98(0xd01)]),_0x1e3a1d=new Date(this[_0x265d98(0x1a6)]);break;}default:return null;}if(!_0x4188ce&&_0x5cde98!==_0x265d98(0x3af)){const _0x2e2cc5=new Date();if(_0x1e3a1d>_0x2e2cc5)_0x1e3a1d=_0x2e2cc5;}return{'start':_0x5aec0b,'end':_0x1e3a1d};}[_0x236d40(0x222)](){const _0xf693fa=_0x236d40,_0x19ec3e=this[_0xf693fa(0xaf4)]();if(!_0x19ec3e)return'';const _0x6ff70b=resolveCardLanguage(this['_hass'],this[_0xf693fa(0x857)]),_0x53867b=resolveDisplayTimeZone(this['_hass'],this[_0xf693fa(0x857)]),_0x279dbc=this[_0xf693fa(0xae2)],_0x376697=Math[_0xf693fa(0x6fe)](0x1,parseInt(this[_0xf693fa(0x857)]?.[_0xf693fa(0x7a2)],0xa)||0x1);try{const _0x55dc6e=DATE_PICKER_RELATIVE_MODES[_0x279dbc];if(_0x55dc6e){if((this['_dpOffset']||0x0)===0x0)return cardT(this[_0xf693fa(0xd0e)],this[_0xf693fa(0x857)],_0x55dc6e[_0xf693fa(0x4c6)]);const _0x7084c2=getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'month':_0xf693fa(0x70a),'day':'numeric','year':_0x55dc6e['months']?_0xf693fa(0xb68):undefined});return _0x7084c2['format'](_0x19ec3e[_0xf693fa(0x5da)])+_0xf693fa(0x748)+_0x7084c2['format'](new Date(_0x19ec3e[_0xf693fa(0x538)][_0xf693fa(0x3f2)]()-0x1));}if(_0x376697>0x1&&_0x279dbc!=='custom'){const _0xc95e17=getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'day':_0xf693fa(0xb68),'month':_0xf693fa(0x70a),'year':_0x279dbc===_0xf693fa(0x40e)?_0xf693fa(0xb68):undefined}),_0x5ba3b4=new Date(_0x19ec3e[_0xf693fa(0x538)][_0xf693fa(0x3f2)]()-0x1);return _0xc95e17['format'](_0x19ec3e[_0xf693fa(0x5da)])+_0xf693fa(0x748)+_0xc95e17['format'](_0x5ba3b4);}if(_0x279dbc===_0xf693fa(0xa49))return getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'weekday':'short','month':_0xf693fa(0x70a),'day':'numeric','year':'numeric'})[_0xf693fa(0xc90)](_0x19ec3e[_0xf693fa(0x5da)]);if(_0x279dbc===_0xf693fa(0x677)){const _0x2d92ca=new Date(_0x19ec3e[_0xf693fa(0x538)]['getTime']()-0x1),_0x8e4a11=getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'month':_0xf693fa(0x70a),'day':_0xf693fa(0xb68)});return _0x8e4a11['format'](_0x19ec3e[_0xf693fa(0x5da)])+_0xf693fa(0x748)+_0x8e4a11[_0xf693fa(0xc90)](_0x2d92ca);}if(_0x279dbc==='month')return getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'month':_0xf693fa(0x41b),'year':_0xf693fa(0xb68)})[_0xf693fa(0xc90)](_0x19ec3e[_0xf693fa(0x5da)]);if(_0x279dbc===_0xf693fa(0x40e))return getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'year':_0xf693fa(0xb68)})[_0xf693fa(0xc90)](_0x19ec3e[_0xf693fa(0x5da)]);if(_0x279dbc===_0xf693fa(0x3af)){const _0x145847=getCachedDateTimeFormatter(_0x6ff70b,{'timeZone':_0x53867b||undefined,'month':_0xf693fa(0x70a),'day':'numeric','year':_0xf693fa(0xb68)});return _0x145847[_0xf693fa(0xc90)](_0x19ec3e[_0xf693fa(0x5da)])+_0xf693fa(0x748)+_0x145847['format'](new Date(_0x19ec3e['end'][_0xf693fa(0x3f2)]()-0x1));}}catch{}return _0x19ec3e[_0xf693fa(0x5da)]['toLocaleDateString']()+_0xf693fa(0x748)+_0x19ec3e[_0xf693fa(0x538)][_0xf693fa(0xc3c)]();}[_0x236d40(0xb5d)](){const _0x2d1aff=_0x236d40;if(!this['_instanceKey'])return;isNum(this[_0x2d1aff(0x5f0)])?lsSet(_0x2d1aff(0x8a1)+this[_0x2d1aff(0x7db)],JSON[_0x2d1aff(0x569)]({'hours':this[_0x2d1aff(0x5f0)],'label':this[_0x2d1aff(0xc12)]})):lsDel(_0x2d1aff(0x8a1)+this[_0x2d1aff(0x7db)]);}[_0x236d40(0x9d5)](){const _0x2b57c6=_0x236d40;if(!this[_0x2b57c6(0x7db)])return;const _0x2a8b6a={'mode':this[_0x2b57c6(0xae2)],'offset':this[_0x2b57c6(0x691)],'customStart':this[_0x2b57c6(0xd01)]?this[_0x2b57c6(0xd01)][_0x2b57c6(0xa86)]():null,'customEnd':this[_0x2b57c6(0x1a6)]?this['_dpCustomEnd'][_0x2b57c6(0xa86)]():null};lsSet(_0x2b57c6(0xc8d)+this[_0x2b57c6(0x7db)],JSON['stringify'](_0x2a8b6a));}[_0x236d40(0x58a)](_0x462af5,_0x3a175b){const _0x1ea3bd=_0x236d40,_0x23398a=toNum(_0x462af5);isNum(this[_0x1ea3bd(0x5f0)])&&this[_0x1ea3bd(0x5f0)]===_0x23398a?(this[_0x1ea3bd(0x5f0)]=null,this[_0x1ea3bd(0xc12)]=null):(this['_overrideHoursToShow']=_0x23398a,this[_0x1ea3bd(0xc12)]=_0x3a175b),this[_0x1ea3bd(0xb5d)](),this['_broadcastIntervalSync'](),this['_scheduleUpdate']();}['_saveDatePickerState'](){const _0x1d2dc0=_0x236d40;this[_0x1d2dc0(0x9d5)]();}[_0x236d40(0xc2a)](_0x4619a2){const _0x5a09e9=_0x236d40;if(!DATE_PICKER_VALID_MODES[_0x5a09e9(0x2cf)](_0x4619a2)&&!(_0x4619a2 in DATE_PICKER_RELATIVE_MODES))return;this[_0x5a09e9(0xae2)]=_0x4619a2,this[_0x5a09e9(0x691)]=0x0,this['_persistDatePicker'](),this[_0x5a09e9(0x9c3)](),this[_0x5a09e9(0xa45)]();}[_0x236d40(0x661)](_0x1dcaa0){const _0x21a837=_0x236d40;if(this['_dpMode']===_0x21a837(0x3af)&&this['_dpCustomStart']&&this[_0x21a837(0x1a6)]){const _0x5cb595=this[_0x21a837(0x1a6)]['getTime']()-this[_0x21a837(0xd01)][_0x21a837(0x3f2)]();if(_0x5cb595>0x0){const _0x904bde=_0x1dcaa0*_0x5cb595,_0x4018a6=new Date(this[_0x21a837(0xd01)][_0x21a837(0x3f2)]()+_0x904bde),_0x52ff69=new Date(this[_0x21a837(0x1a6)][_0x21a837(0x3f2)]()+_0x904bde),_0x1c63a5=Date['now']();if(_0x1dcaa0>0x0&&_0x4018a6['getTime']()>=_0x1c63a5)return;this[_0x21a837(0xd01)]=_0x4018a6,this[_0x21a837(0x1a6)]=_0x52ff69;}}else this[_0x21a837(0x691)]=Math['min'](0x0,this['_dpOffset']+_0x1dcaa0);this['_persistDatePicker'](),this[_0x21a837(0x9c3)](),this[_0x21a837(0xa45)]();}[_0x236d40(0x29e)](){const _0x1da47b=_0x236d40;if(this[_0x1da47b(0xae2)]===_0x1da47b(0x3af)&&this[_0x1da47b(0xd01)]&&this[_0x1da47b(0x1a6)]){const _0x27431f=this[_0x1da47b(0x1a6)][_0x1da47b(0x3f2)]()-this[_0x1da47b(0xd01)][_0x1da47b(0x3f2)]();if(_0x27431f>0x0){const _0x1b361b=new Date(),_0x421f47=new Date(_0x1b361b['getFullYear'](),_0x1b361b[_0x1da47b(0x6c4)](),_0x1b361b['getDate'](),_0x1b361b[_0x1da47b(0x69b)](),_0x1b361b[_0x1da47b(0x5ef)]()+0x1,0x0);this['_dpCustomEnd']=_0x421f47,this[_0x1da47b(0xd01)]=new Date(_0x421f47[_0x1da47b(0x3f2)]()-_0x27431f),this[_0x1da47b(0x9d5)](),this[_0x1da47b(0x9c3)](),this[_0x1da47b(0xa45)]();return;}}this['_dpOffset']=0x0,this[_0x1da47b(0xd01)]=null,this[_0x1da47b(0x1a6)]=null,this['_persistDatePicker'](),this[_0x1da47b(0x9c3)](),this[_0x1da47b(0xa45)]();}[_0x236d40(0x838)](_0x10b18e){const _0x419ef3=_0x236d40;return _0x10b18e===_0x419ef3(0x735)?this[_0x419ef3(0x857)]?.[_0x419ef3(0x72c)]:_0x10b18e===_0x419ef3(0xbb6)?this[_0x419ef3(0x857)]?.[_0x419ef3(0xab3)]:null;}[_0x236d40(0x7a0)](_0x82a009){const _0x15dde6=_0x236d40,_0x15c40f=this[_0x15dde6(0x838)](_0x82a009);if(!_0x15c40f)return;window[_0x15dde6(0x966)](new CustomEvent(_0x15dde6(0x8f0),{'detail':{'kind':_0x82a009,'group':_0x15c40f,'value':_0x82a009===_0x15dde6(0x735)?isNum(toNum(this[_0x15dde6(0x2e2)]))?toNum(this['_overridePph']):null:this[_0x15dde6(0xa77)]||null,'sourceId':this[_0x15dde6(0xaa4)]}}));}[_0x236d40(0x822)](_0xeb3ff9){const _0x5df394=_0x236d40,_0x2a9664=_0xeb3ff9[_0x5df394(0xb1b)]||{},_0x5d8ad2=this['_groupForQueryKind'](_0x2a9664[_0x5df394(0x1e3)]);if(!_0x5d8ad2||!_0x2a9664[_0x5df394(0x38f)]||_0x2a9664[_0x5df394(0x38f)]!==_0x5d8ad2)return;if(_0x2a9664[_0x5df394(0x93d)]&&_0x2a9664[_0x5df394(0x93d)]===this[_0x5df394(0xaa4)])return;if(_0x2a9664[_0x5df394(0x1e3)]===_0x5df394(0x735)){const _0x20c5b6=toNum(_0x2a9664[_0x5df394(0x4be)]);this['_overridePph']=isNum(_0x20c5b6)?_0x20c5b6:null;}else this['_overrideGroupBy']=typeof _0x2a9664[_0x5df394(0x4be)]===_0x5df394(0xc00)&&_0x2a9664[_0x5df394(0x4be)]?_0x2a9664['value']:null;const _0x3a9949={...this[_0x5df394(0x857)]};this[_0x5df394(0xd16)](_0x3a9949),this[_0x5df394(0x857)]=_0x3a9949,this[_0x5df394(0x444)]();try{this[_0x5df394(0xc98)]?.[_0x5df394(0x373)]?.[_0x5df394(0x9c9)]?.();}catch(_0x49ebdc){}this[_0x5df394(0x5fe)]()[_0x5df394(0x946)](_0x22f734=>console[_0x5df394(0x926)](_0x5df394(0xce2),_0x22f734)),this['_scheduleRender']();}[_0x236d40(0x68a)](_0x977bb6){const _0x39ccdb=_0x236d40,_0x10858a=_0x977bb6[_0x39ccdb(0xb1b)]||{},_0x3db69d=this[_0x39ccdb(0x838)](_0x10858a[_0x39ccdb(0x1e3)]);if(!_0x3db69d||!_0x10858a[_0x39ccdb(0x38f)]||_0x10858a['group']!==_0x3db69d)return;if(_0x10858a[_0x39ccdb(0x556)]&&_0x10858a[_0x39ccdb(0x556)]===this['_instanceId'])return;const _0x355ef=_0x10858a[_0x39ccdb(0x1e3)]===_0x39ccdb(0x735)?!!this[_0x39ccdb(0x857)]['show_pph_picker']:!!this[_0x39ccdb(0x857)][_0x39ccdb(0x63b)];if(!_0x355ef)return;const _0x8b40a1=_0x10858a[_0x39ccdb(0x1e3)]==='pph'?isNum(toNum(this[_0x39ccdb(0x2e2)])):!!this['_overrideGroupBy'];if(!_0x8b40a1)return;this['_broadcastQuerySync'](_0x10858a[_0x39ccdb(0x1e3)]);}[_0x236d40(0xa30)](){const _0x4d048d=_0x236d40,_0x32babf=this[_0x4d048d(0x857)]?.[_0x4d048d(0x544)];if(!_0x32babf)return;window[_0x4d048d(0x966)](new CustomEvent(_0x4d048d(0x200),{'detail':{'group':_0x32babf,'hours':isNum(this[_0x4d048d(0x5f0)])?this[_0x4d048d(0x5f0)]:null,'label':this[_0x4d048d(0xc12)]||null,'sourceId':this[_0x4d048d(0xaa4)]}}));}[_0x236d40(0xd2b)](_0xde4f35){const _0x115ded=_0x236d40,_0x3569a5=this['_config']?.[_0x115ded(0x544)];if(!_0x3569a5)return;const _0x1f2e4c=_0xde4f35[_0x115ded(0xb1b)]||{};if(!_0x1f2e4c['group']||_0x1f2e4c[_0x115ded(0x38f)]!==_0x3569a5)return;if(_0x1f2e4c[_0x115ded(0x93d)]&&_0x1f2e4c[_0x115ded(0x93d)]===this[_0x115ded(0xaa4)])return;const _0x143554=toNum(_0x1f2e4c['hours']);isNum(_0x143554)?(this[_0x115ded(0x5f0)]=_0x143554,this['_activeIntervalLabel']=typeof _0x1f2e4c[_0x115ded(0x4c6)]===_0x115ded(0xc00)?_0x1f2e4c['label']:null):(this[_0x115ded(0x5f0)]=null,this['_activeIntervalLabel']=null),this[_0x115ded(0xb5d)](),this['_scheduleUpdate'](),this[_0x115ded(0x917)]();}[_0x236d40(0x70f)](_0x582fb2){const _0x4ecd25=_0x236d40,_0x29ad81=this[_0x4ecd25(0x857)]?.[_0x4ecd25(0x544)];if(!_0x29ad81)return;const _0x31cb3e=_0x582fb2['detail']||{};if(!_0x31cb3e[_0x4ecd25(0x38f)]||_0x31cb3e[_0x4ecd25(0x38f)]!==_0x29ad81)return;if(_0x31cb3e[_0x4ecd25(0x556)]&&_0x31cb3e['requesterId']===this[_0x4ecd25(0xaa4)])return;if(!this[_0x4ecd25(0x857)][_0x4ecd25(0xb44)])return;if(!isNum(this[_0x4ecd25(0x5f0)]))return;this[_0x4ecd25(0xa30)]();}['_broadcastDatePickerSync'](){const _0x5320ad=_0x236d40,_0xf4f89d=this[_0x5320ad(0x857)]?.[_0x5320ad(0xa5e)];if(!_0xf4f89d)return;window[_0x5320ad(0x966)](new CustomEvent(_0x5320ad(0x82c),{'detail':{'group':_0xf4f89d,'mode':this[_0x5320ad(0xae2)],'offset':this[_0x5320ad(0x691)],'customStart':this['_dpCustomStart']?this['_dpCustomStart']['toISOString']():null,'customEnd':this[_0x5320ad(0x1a6)]?this[_0x5320ad(0x1a6)][_0x5320ad(0xa86)]():null,'sourceId':this[_0x5320ad(0xaa4)]}}));}['_onDatePickerSyncEvent'](_0x309ddc){const _0x3309de=_0x236d40,_0x5e606a=this[_0x3309de(0x857)]?.[_0x3309de(0xa5e)];if(!_0x5e606a)return;const _0xac769f=_0x309ddc[_0x3309de(0xb1b)]||{};if(!_0xac769f['group']||_0xac769f[_0x3309de(0x38f)]!==_0x5e606a)return;if(_0xac769f[_0x3309de(0x93d)]&&_0xac769f[_0x3309de(0x93d)]===this[_0x3309de(0xaa4)])return;_0xac769f[_0x3309de(0x943)]&&(_0xac769f[_0x3309de(0x943)]===_0x3309de(0x3af)||DATE_PICKER_VALID_MODES[_0x3309de(0x2cf)](_0xac769f['mode'])||_0xac769f[_0x3309de(0x943)]in DATE_PICKER_RELATIVE_MODES)&&(this['_dpMode']=_0xac769f[_0x3309de(0x943)]);typeof _0xac769f['offset']===_0x3309de(0x7ad)&&(this['_dpOffset']=_0xac769f[_0x3309de(0x632)]);if(this['_dpMode']!==_0x3309de(0x3af)&&(this[_0x3309de(0x691)]||0x0)>0x0)this[_0x3309de(0x691)]=0x0;if(_0xac769f[_0x3309de(0x943)]===_0x3309de(0x3af)){if(_0xac769f['customStart'])this[_0x3309de(0xd01)]=new Date(_0xac769f[_0x3309de(0x85f)]);if(_0xac769f[_0x3309de(0x394)])this[_0x3309de(0x1a6)]=new Date(_0xac769f[_0x3309de(0x394)]);}else _0xac769f[_0x3309de(0x943)]&&(DATE_PICKER_VALID_MODES[_0x3309de(0x2cf)](_0xac769f[_0x3309de(0x943)])||_0xac769f[_0x3309de(0x943)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x3309de(0xd01)]=null,this[_0x3309de(0x1a6)]=null);this[_0x3309de(0x796)]=!![],this['_persistDatePicker'](),this[_0x3309de(0xa45)](),this[_0x3309de(0x917)]();}['_onDatePickerSyncRequest'](_0x29bf62){const _0x4eaa1f=_0x236d40,_0x57420e=this[_0x4eaa1f(0x857)]&&this[_0x4eaa1f(0x857)][_0x4eaa1f(0xa5e)];if(!_0x57420e)return;const _0x5e82ac=_0x29bf62[_0x4eaa1f(0xb1b)]||{};if(!_0x5e82ac[_0x4eaa1f(0x38f)]||_0x5e82ac[_0x4eaa1f(0x38f)]!==_0x57420e)return;if(_0x5e82ac[_0x4eaa1f(0x556)]&&_0x5e82ac[_0x4eaa1f(0x556)]===this[_0x4eaa1f(0xaa4)])return;const _0x5f125b=!!this[_0x4eaa1f(0x857)][_0x4eaa1f(0xcda)]||!!this[_0x4eaa1f(0x857)]['date_picker_default_mode'];if(!_0x5f125b)return;this[_0x4eaa1f(0x9c3)]();}set[_0x236d40(0x6e4)](_0x18c073){const _0x23e172=_0x236d40,_0x3c7131=this[_0x23e172(0xd0e)],_0x44367d=!_0x3c7131;this[_0x23e172(0xd0e)]=_0x18c073;if(!this[_0x23e172(0x857)])return;if(_0x44367d){this['_startEnergyDateSync']();if(_0x18c073?.[_0x23e172(0x655)])this[_0x23e172(0x28e)]();this['_scheduleUpdate']();return;}if(!this[_0x23e172(0x5ba)])return;let _0x496057=![],_0x18b7af=![],_0x567b1c=![];if(this['_liveEnabled']||this[_0x23e172(0xd17)][_0x23e172(0x9c5)]||this[_0x23e172(0x553)]['size']||this[_0x23e172(0x7d4)][_0x23e172(0x9c5)]||this['_config'][_0x23e172(0xb97)]){const _0x2515db=_0x18c073[_0x23e172(0x869)],_0x5a1452=_0x3c7131[_0x23e172(0x869)];if(this['_liveEnabled'])for(const _0x16f91b of this[_0x23e172(0x721)]){if(!_0x16f91b[_0x23e172(0xaa5)]||_0x16f91b[_0x23e172(0x892)])continue;if(_0x5a1452[_0x16f91b[_0x23e172(0xaa5)]]!==_0x2515db[_0x16f91b[_0x23e172(0xaa5)]]){_0x496057=!![];break;}}if(!_0x496057&&this['_dataVarIds'][_0x23e172(0x9c5)])for(const _0x219eba of this[_0x23e172(0x553)]){if(_0x5a1452[_0x219eba]!==_0x2515db[_0x219eba]){_0x496057=!![];break;}}if(this[_0x23e172(0xd17)]['size'])for(const _0x22b7cf of this['_annotationRefs']){if(_0x5a1452[_0x22b7cf]!==_0x2515db[_0x22b7cf]){_0x18b7af=!![];break;}}const _0xe512f7=this['_config'][_0x23e172(0xb97)];if(_0xe512f7&&_0x5a1452[_0xe512f7]!==_0x2515db[_0xe512f7])_0x567b1c=!![];if(this[_0x23e172(0x7d4)][_0x23e172(0x9c5)])for(const _0x4c866c of this[_0x23e172(0x7d4)]){if(_0x5a1452[_0x4c866c]!==_0x2515db[_0x4c866c]){this[_0x23e172(0xc42)]='',this['_scheduleRender']();break;}}}if(!_0x496057&&!_0x18b7af&&!_0x567b1c)return;if(this[_0x23e172(0xd04)])return;if(_0x496057)this[_0x23e172(0x55f)](_0x18c073);if(_0x18b7af)this[_0x23e172(0xba7)](_0x18c073);(_0x496057||_0x567b1c)&&this[_0x23e172(0x9a3)]?.[_0x23e172(0x2e5)]?.(_0x23e172(0xaa1))&&this[_0x23e172(0x902)]();}get['hass'](){return this['_hass'];}[_0x236d40(0x85d)](){const _0x5a59a0=_0x236d40;if(this[_0x5a59a0(0x857)]&&this['_hass'])this[_0x5a59a0(0xa45)]();if(this[_0x5a59a0(0x857)])this['_setupTimers']();!this[_0x5a59a0(0x634)]&&typeof ResizeObserver!==_0x5a59a0(0xcf5)&&(this[_0x5a59a0(0x634)]=new ResizeObserver(()=>this[_0x5a59a0(0x917)]()),this['_resizeObserver']['observe'](this)),!this['_syncHandler']&&(this[_0x5a59a0(0x2b2)]=_0x535f40=>this[_0x5a59a0(0x667)](_0x535f40),window[_0x5a59a0(0x5ea)](_0x5a59a0(0x7c4),this[_0x5a59a0(0x2b2)])),!this['_zoomSyncHandler']&&(this[_0x5a59a0(0x760)]=_0x18cf24=>this[_0x5a59a0(0xb14)](_0x18cf24),window['addEventListener'](_0x5a59a0(0x3a2),this['_zoomSyncHandler'])),!this[_0x5a59a0(0x1b3)]&&(this['_scrollSyncHandler']=_0x141fae=>this[_0x5a59a0(0x3be)](_0x141fae),window[_0x5a59a0(0x5ea)](_0x5a59a0(0xb96),this[_0x5a59a0(0x1b3)])),this['_startEnergyDateSync'](),!this[_0x5a59a0(0x989)]&&(this['_dpSyncHandler']=_0x16c906=>this[_0x5a59a0(0x4bb)](_0x16c906),window[_0x5a59a0(0x5ea)](_0x5a59a0(0x82c),this[_0x5a59a0(0x989)])),!this[_0x5a59a0(0x1cc)]&&(this[_0x5a59a0(0x1cc)]=_0x2549cf=>this['_onDatePickerSyncRequest'](_0x2549cf),window[_0x5a59a0(0x5ea)]('sgc-datepicker-sync-request',this[_0x5a59a0(0x1cc)])),!this[_0x5a59a0(0x809)]&&(this[_0x5a59a0(0x809)]=_0x3cbcdd=>this['_onIntervalSyncEvent'](_0x3cbcdd),window[_0x5a59a0(0x5ea)](_0x5a59a0(0x200),this['_intervalSyncHandler'])),!this[_0x5a59a0(0x7b9)]&&(this[_0x5a59a0(0x7b9)]=_0x4e07f8=>this[_0x5a59a0(0x70f)](_0x4e07f8),window['addEventListener'](_0x5a59a0(0x836),this['_intervalSyncRequestHandler'])),this['_config']&&this[_0x5a59a0(0x857)]['interval_picker_group']&&!this['_intervalInitialSyncDone']&&(this[_0x5a59a0(0xab6)]=!![],setTimeout(()=>{const _0x4adbaa=_0x5a59a0;if(!this[_0x4adbaa(0xabb)])return;if(this['_config'][_0x4adbaa(0xb44)]&&isNum(this[_0x4adbaa(0x5f0)]))this[_0x4adbaa(0xa30)]();else!this[_0x4adbaa(0x857)]['show_interval_picker']&&window[_0x4adbaa(0x966)](new CustomEvent(_0x4adbaa(0x836),{'detail':{'group':this[_0x4adbaa(0x857)][_0x4adbaa(0x544)],'requesterId':this[_0x4adbaa(0xaa4)]}}));},0x0)),!this[_0x5a59a0(0x416)]&&(this['_querySyncHandler']=_0x4eb160=>this['_onQuerySyncEvent'](_0x4eb160),window[_0x5a59a0(0x5ea)](_0x5a59a0(0x8f0),this[_0x5a59a0(0x416)])),!this['_querySyncRequestHandler']&&(this[_0x5a59a0(0xc23)]=_0x27bc9a=>this[_0x5a59a0(0x68a)](_0x27bc9a),window['addEventListener'](_0x5a59a0(0xc35),this['_querySyncRequestHandler'])),this[_0x5a59a0(0x857)]&&(this[_0x5a59a0(0x857)]['pph_picker_group']||this[_0x5a59a0(0x857)][_0x5a59a0(0xab3)])&&!this[_0x5a59a0(0x82d)]&&(this[_0x5a59a0(0x82d)]=!![],setTimeout(()=>{const _0x54da51=_0x5a59a0;if(!this['isConnected'])return;for(const _0x4f86ff of['pph',_0x54da51(0xbb6)]){const _0x292980=this[_0x54da51(0x838)](_0x4f86ff);if(!_0x292980)continue;const _0x1b71bf=_0x4f86ff===_0x54da51(0x735)?this[_0x54da51(0x857)][_0x54da51(0x3cd)]:this[_0x54da51(0x857)][_0x54da51(0x63b)],_0xa6ce0f=_0x4f86ff==='pph'?isNum(toNum(this[_0x54da51(0x2e2)])):!!this[_0x54da51(0xa77)];if(_0x1b71bf&&_0xa6ce0f)this[_0x54da51(0x7a0)](_0x4f86ff);else!_0x1b71bf&&window[_0x54da51(0x966)](new CustomEvent('sgc-query-sync-request',{'detail':{'kind':_0x4f86ff,'group':_0x292980,'requesterId':this[_0x54da51(0xaa4)]}}));}},0x0)),this[_0x5a59a0(0x857)]&&this['_config'][_0x5a59a0(0xa5e)]&&!this[_0x5a59a0(0xc32)]&&(this[_0x5a59a0(0xc32)]=!![],setTimeout(()=>{const _0x19d237=_0x5a59a0;if(!this[_0x19d237(0xabb)])return;const _0x417316=!!this[_0x19d237(0x857)][_0x19d237(0xcda)]||!!this[_0x19d237(0x857)]['date_picker_default_mode'];_0x417316?this[_0x19d237(0x9c3)]():window[_0x19d237(0x966)](new CustomEvent(_0x19d237(0x69c),{'detail':{'group':this[_0x19d237(0x857)]['date_picker_group'],'requesterId':this[_0x19d237(0xaa4)]}}));},0x0)),!this[_0x5a59a0(0x90f)]&&(this[_0x5a59a0(0x90f)]=setInterval(()=>{const _0x4240ad=_0x5a59a0,_0x566979=Date[_0x4240ad(0x8c9)]();for(const [_0x802201,_0x3ac230]of this[_0x4240ad(0xc98)][_0x4240ad(0x373)]){if(_0x566979-_0x3ac230['ts']>FETCH_CACHE_TTL_MS)this[_0x4240ad(0xc98)]['_cache'][_0x4240ad(0xacc)](_0x802201);}},0x5*0x3c*0x3e8));}['disconnectedCallback'](){const _0x5345ec=_0x236d40;this['_resizeObserver']&&(this[_0x5345ec(0x634)][_0x5345ec(0xc11)](),this[_0x5345ec(0x634)]=null);this[_0x5345ec(0x7dd)]&&(this[_0x5345ec(0x7dd)][_0x5345ec(0xc11)](),this['_fillResizeObs']=null);this[_0x5345ec(0x710)]&&(cancelAnimationFrame(this[_0x5345ec(0x710)]),this[_0x5345ec(0x710)]=0x0);this[_0x5345ec(0x56a)]&&(this[_0x5345ec(0x56a)][_0x5345ec(0x34e)](),this[_0x5345ec(0x56a)]=null);if(this[_0x5345ec(0x4ca)])for(const _0x273e9d of this[_0x5345ec(0x4ca)][_0x5345ec(0x91d)]()){_0x273e9d&&_0x273e9d[_0x5345ec(0x297)]&&(_0x273e9d[_0x5345ec(0x297)]['abort'](),_0x273e9d[_0x5345ec(0x297)]=null);}this[_0x5345ec(0x77a)]&&(cancelAnimationFrame(this[_0x5345ec(0x77a)]),this[_0x5345ec(0x77a)]=null),this[_0x5345ec(0x87e)]&&(clearInterval(this[_0x5345ec(0x87e)]),this['_pollTimer']=null),this[_0x5345ec(0xa02)]&&(clearTimeout(this[_0x5345ec(0xa02)]),this[_0x5345ec(0xa02)]=null),this[_0x5345ec(0x983)]&&(clearInterval(this[_0x5345ec(0x983)]),this['_slideTimer']=null),this[_0x5345ec(0x2b2)]&&(window[_0x5345ec(0xd11)]('sgc-tooltip-sync',this[_0x5345ec(0x2b2)]),this['_syncHandler']=null),this[_0x5345ec(0x760)]&&(window[_0x5345ec(0xd11)](_0x5345ec(0x3a2),this[_0x5345ec(0x760)]),this[_0x5345ec(0x760)]=null),this['_scrollSyncHandler']&&(window[_0x5345ec(0xd11)](_0x5345ec(0xb96),this['_scrollSyncHandler']),this[_0x5345ec(0x1b3)]=null),this[_0x5345ec(0xa9f)]=null,this['_hideSyncedTooltip']=null,this[_0x5345ec(0x60e)](),this[_0x5345ec(0xd21)](),this['_teardownColorTemplates'](),this['_dpSyncHandler']&&(window[_0x5345ec(0xd11)](_0x5345ec(0x82c),this[_0x5345ec(0x989)]),this[_0x5345ec(0x989)]=null),this[_0x5345ec(0x1cc)]&&(window[_0x5345ec(0xd11)]('sgc-datepicker-sync-request',this[_0x5345ec(0x1cc)]),this[_0x5345ec(0x1cc)]=null),this[_0x5345ec(0xc32)]=![],this[_0x5345ec(0x809)]&&(window[_0x5345ec(0xd11)]('sgc-interval-sync',this[_0x5345ec(0x809)]),this['_intervalSyncHandler']=null),this[_0x5345ec(0x7b9)]&&(window[_0x5345ec(0xd11)](_0x5345ec(0x836),this[_0x5345ec(0x7b9)]),this[_0x5345ec(0x7b9)]=null),this[_0x5345ec(0xab6)]=![],this[_0x5345ec(0x416)]&&(window[_0x5345ec(0xd11)](_0x5345ec(0x8f0),this[_0x5345ec(0x416)]),this[_0x5345ec(0x416)]=null),this['_querySyncRequestHandler']&&(window['removeEventListener']('sgc-query-sync-request',this[_0x5345ec(0xc23)]),this[_0x5345ec(0xc23)]=null),this[_0x5345ec(0x82d)]=![],this[_0x5345ec(0x90f)]&&(clearInterval(this[_0x5345ec(0x90f)]),this[_0x5345ec(0x90f)]=null),this[_0x5345ec(0xc42)]='';}[_0x236d40(0x667)](_0x36f216){const _0x366ddf=_0x236d40,_0x373c0c=this['_config'];if(!_0x373c0c?.[_0x366ddf(0xb61)])return;const _0x4084e5=_0x36f216[_0x366ddf(0xb1b)]||{};if(_0x4084e5['sourceId']&&_0x4084e5['sourceId']===this['_instanceId'])return;const _0x56360c=_0x373c0c[_0x366ddf(0x81c)]||null,_0x376543=_0x4084e5[_0x366ddf(0x38f)]||null;if(_0x56360c!==_0x376543)return;_0x4084e5[_0x366ddf(0xbde)]===null||_0x4084e5[_0x366ddf(0xbde)]===undefined?this[_0x366ddf(0x3f7)]?.():this[_0x366ddf(0xa9f)]?.(_0x4084e5[_0x366ddf(0xbde)]);}[_0x236d40(0xb14)](_0x2096c9){const _0x58df18=_0x236d40,_0x38108c=this['_config'];if(!_0x38108c?.[_0x58df18(0x652)])return;const _0x24cb66=_0x2096c9[_0x58df18(0xb1b)]||{};if(_0x24cb66[_0x58df18(0x93d)]&&_0x24cb66['sourceId']===this['_instanceId'])return;const _0x1b5661=_0x38108c[_0x58df18(0xc63)]||null,_0x4b82c4=_0x24cb66[_0x58df18(0x38f)]||null;if(_0x1b5661!==_0x4b82c4)return;if(_0x24cb66[_0x58df18(0x986)]==null||_0x24cb66[_0x58df18(0x590)]==null)this[_0x58df18(0x296)]&&(this[_0x58df18(0x296)]=null,this['_graphFingerprint']='',this[_0x58df18(0xa67)]());else{const _0x1cae19=new Date(_0x24cb66[_0x58df18(0x986)]),_0x208177=new Date(_0x24cb66[_0x58df18(0x590)]),_0x248a40=this[_0x58df18(0x296)];if(_0x248a40&&_0x248a40[_0x58df18(0x5da)]instanceof Date&&_0x248a40[_0x58df18(0x538)]instanceof Date&&_0x248a40['start']['getTime']()===_0x1cae19[_0x58df18(0x3f2)]()&&_0x248a40[_0x58df18(0x538)]['getTime']()===_0x208177[_0x58df18(0x3f2)]())return;this[_0x58df18(0x296)]={'start':_0x1cae19,'end':_0x208177},this[_0x58df18(0xc42)]='',this[_0x58df18(0xa67)]();}}[_0x236d40(0x3be)](_0x2b2d22){const _0x348acc=_0x236d40,_0x37b8f4=this[_0x348acc(0x857)];if(!_0x37b8f4?.[_0x348acc(0x939)])return;const _0x2f4381=_0x2b2d22[_0x348acc(0xb1b)]||{};if(_0x2f4381['sourceId']&&_0x2f4381['sourceId']===this['_instanceId'])return;const _0x1810c9=_0x37b8f4[_0x348acc(0xc61)]||null,_0x26e4f8=_0x2f4381[_0x348acc(0x38f)]||null;if(_0x1810c9!==_0x26e4f8)return;if(!isNum(_0x2f4381[_0x348acc(0x3b8)]))return;const _0xb8b519=this['shadowRoot']?.[_0x348acc(0x2e5)](_0x348acc(0x405));if(!_0xb8b519)return;const _0x4f6215=_0xb8b519[_0x348acc(0xc4c)]-_0xb8b519['clientWidth'];if(_0x4f6215<=0x0)return;const _0x15657a=Math[_0x348acc(0x6fe)](0x0,Math[_0x348acc(0x9f4)](_0x4f6215,_0x2f4381[_0x348acc(0x3b8)]*_0x4f6215));if(Math['abs'](_0xb8b519[_0x348acc(0x41d)]-_0x15657a)<0x1)return;this['_suppressScrollDispatch']=!![],_0xb8b519[_0x348acc(0x41d)]=_0x15657a,requestAnimationFrame(()=>{this['_suppressScrollDispatch']=![];});}[_0x236d40(0x326)](_0x140ffa){const _0x22e797=_0x236d40;let _0x4ca898=0x0;for(const _0x19f02c of this[_0x22e797(0x721)]||[]){const _0x17a3bc=Array[_0x22e797(0x707)](_0x19f02c?.[_0x22e797(0xb29)])?_0x19f02c[_0x22e797(0xb29)]:null;if(!_0x17a3bc||!_0x17a3bc[_0x22e797(0x2d1)])continue;if(_0x19f02c[_0x22e797(0x8ca)]||_0x19f02c[_0x22e797(0x204)])continue;let _0x411de5=0x0;for(const _0x1626a3 of _0x17a3bc){const _0x940e69=Math[_0x22e797(0x1db)](toNum(_0x1626a3?.[_0x22e797(0x877)])||0x0);if(_0x940e69>_0x411de5)_0x411de5=_0x940e69;}if(_0x411de5<0x2)continue;const _0x3f6237=resolvePointsPerHour(this[_0x22e797(0x857)],_0x19f02c,_0x140ffa),_0x5de0b4=resolveGroupBy(this[_0x22e797(0x857)],_0x140ffa),_0x4d5af5=groupBucketMs(_0x5de0b4,this[_0x22e797(0x857)]['hours_to_show'],_0x3f6237);if(isNum(_0x4d5af5)&&_0x4d5af5>0x0)_0x4ca898=Math[_0x22e797(0x6fe)](_0x4ca898,(_0x411de5-0x1)*_0x4d5af5);}return _0x4ca898;}[_0x236d40(0x220)](){const _0x975d77=_0x236d40;return Math[_0x975d77(0x6fe)](0x3,Math[_0x975d77(0xa31)]((toNum(this[_0x975d77(0x857)]?.[_0x975d77(0x3c1)])||0x96)/0x32));}['_applyFillHeight'](){const _0x35f58c=_0x236d40,_0x3008c7=this[_0x35f58c(0x857)]?.['height'],_0x37d373=_0x3008c7==null||_0x3008c7===_0x35f58c(0x54e)||_0x3008c7==='',_0x3eac99=(_0x51af9c,_0x29ef40)=>{const _0x3c499a=_0x35f58c;if(!_0x51af9c)return;if(_0x51af9c[_0x3c499a(0xd15)]&&_0x51af9c[_0x3c499a(0xd15)][_0x3c499a(0x412)])_0x51af9c['classList'][_0x3c499a(0x66f)](_0x3c499a(0x389),_0x29ef40);else{const _0x3a7ad2=_0x51af9c['getAttribute']&&_0x51af9c[_0x3c499a(0x4fb)](_0x3c499a(0x1e6))||'',_0x1f8596=_0x3a7ad2[_0x3c499a(0xa6d)](/\s+/)['includes']('sgc-fill-height');if(_0x29ef40&&!_0x1f8596&&_0x51af9c[_0x3c499a(0x42d)])_0x51af9c['setAttribute'](_0x3c499a(0x1e6),(_0x3a7ad2+'\x20sgc-fill-height')[_0x3c499a(0x900)]());else{if(!_0x29ef40&&_0x1f8596&&_0x51af9c[_0x3c499a(0x42d)])_0x51af9c[_0x3c499a(0x42d)]('class',_0x3a7ad2[_0x3c499a(0xa6d)](/\s+/)[_0x3c499a(0x56d)](_0x54ea64=>_0x54ea64!=='sgc-fill-height')[_0x3c499a(0x358)]('\x20'));}}},_0x556a60=this['shadowRoot']?.[_0x35f58c(0x2e5)](_0x35f58c(0x24b))||this[_0x35f58c(0x9a3)]?.['querySelector']('ha-card');_0x3eac99(this,_0x37d373),_0x3eac99(_0x556a60,_0x37d373);if(_0x37d373){if(!this[_0x35f58c(0x7dd)]&&typeof ResizeObserver!=='undefined'){let _0x39d4fa=0x0;this[_0x35f58c(0x7dd)]=new ResizeObserver(()=>{const _0x44a627=_0x35f58c,_0x34a9b9=this[_0x44a627(0x9a3)]?.[_0x44a627(0x2e5)](_0x44a627(0x405)),_0x5dac97=_0x34a9b9?.[_0x44a627(0x714)]||0x0;if(Math['abs'](_0x5dac97-_0x39d4fa)>0x2){_0x39d4fa=_0x5dac97;if(this[_0x44a627(0x710)])cancelAnimationFrame(this[_0x44a627(0x710)]);this[_0x44a627(0x710)]=requestAnimationFrame(()=>{const _0x587ba6=_0x44a627;this[_0x587ba6(0x710)]=0x0,this['_graphFingerprint']='';try{this['_render']();}catch(_0x5a1c20){}});}}),this[_0x35f58c(0x7dd)][_0x35f58c(0xd0d)](this);}}else this[_0x35f58c(0x7dd)]&&(this[_0x35f58c(0x7dd)][_0x35f58c(0xc11)](),this[_0x35f58c(0x7dd)]=null);}[_0x236d40(0x52c)](){const _0xf26557=_0x236d40,_0x3f9693=this[_0xf26557(0x857)]?.[_0xf26557(0x58b)]||{},_0x3a2050={'min_rows':0x2,'min_columns':0x4};if(_0x3f9693[_0xf26557(0x72b)]!=null&&_0x3f9693[_0xf26557(0x72b)]!==_0xf26557(0x54e))_0x3a2050['rows']=_0x3f9693[_0xf26557(0x72b)];if(_0x3f9693[_0xf26557(0xafa)]!=null)_0x3a2050[_0xf26557(0xafa)]=_0x3f9693[_0xf26557(0xafa)];return _0x3a2050;}[_0x236d40(0xccd)](){const _0x5ce409=_0x236d40;return this[_0x5ce409(0x857)];}[_0x236d40(0x5bf)](){const _0x4b6139=_0x236d40;this[_0x4b6139(0x87e)]&&(clearInterval(this[_0x4b6139(0x87e)]),this[_0x4b6139(0x87e)]=null);const _0x30813a=toNum(this['_config'][_0x4b6139(0x4d7)]);if(isNum(_0x30813a)&&_0x30813a>0x0)this[_0x4b6139(0x87e)]=setInterval(()=>{const _0x25db87=_0x4b6139;this['_fetcher'][_0x25db87(0xaff)](),this[_0x25db87(0xa45)]();},_0x30813a*0x3e8);else this[_0x4b6139(0xbce)]()&&(this['_pollTimer']=setInterval(()=>{const _0x57ffa3=_0x4b6139;this['_fetcher']['clearCache'](),this[_0x57ffa3(0xa45)]();},0x5*0x3c*0x3e8));this[_0x4b6139(0x983)]&&(clearInterval(this['_slideTimer']),this[_0x4b6139(0x983)]=null),this['_liveEnabled']&&this[_0x4b6139(0x65b)]()&&(this[_0x4b6139(0x983)]=setInterval(()=>this[_0x4b6139(0x7b2)](),LIVE_SLIDE_INTERVAL_MS));}['_hasAnyAggregatedEntity'](){const _0x59eb19=_0x236d40;if(!this[_0x59eb19(0x721)]?.[_0x59eb19(0x2d1)])return![];return this['_entities']['some'](_0x32abc5=>this['_isHistoryAggregated'](_0x32abc5));}['_isRelativeWindow'](){const _0x39f75d=_0x236d40,_0x358d92=this[_0x39f75d(0x857)];if(_0x358d92[_0x39f75d(0xcda)])return![];if(_0x358d92[_0x39f75d(0xa5e)]&&this[_0x39f75d(0x796)])return![];if(_0x358d92[_0x39f75d(0xcbb)]&&this[_0x39f75d(0x7f2)])return![];return!_0x358d92['graph_start'];}[_0x236d40(0x65b)](){const _0xadb783=_0x236d40,_0x9d9b15=this[_0xadb783(0x857)];if(_0x9d9b15[_0xadb783(0xcda)]||_0x9d9b15['date_picker_group']&&this['_dpSynced']){if(this['_dpMode']==='custom')return![];if((this[_0xadb783(0x691)]||0x0)!==0x0)return![];}return!![];}[_0x236d40(0xbff)](_0x1c1240){const _0x5e98f9=_0x236d40,_0x3d1b6b=_0x1c1240?.[_0x5e98f9(0xcad)]||_0x1c1240?.[_0x5e98f9(0x604)];if(_0x3d1b6b==='candlestick'||_0x3d1b6b===_0x5e98f9(0xc87))return!![];return this[_0x5e98f9(0x65b)]();}['_scheduleUpdate'](){const _0x276842=_0x236d40;if(this[_0x276842(0x841)])return;this[_0x276842(0x841)]=!![],Promise['resolve']()['then'](()=>{const _0x229d33=_0x276842;this[_0x229d33(0x841)]=![],this[_0x229d33(0x5fe)]()[_0x229d33(0x946)](_0x532447=>console['error'](_0x229d33(0x769),_0x532447));});}[_0x236d40(0x917)](){const _0x2635e5=_0x236d40;if(this['_renderRAF'])return;this[_0x2635e5(0x77a)]=requestAnimationFrame(()=>{const _0x621a86=_0x2635e5;this[_0x621a86(0x77a)]=null,this[_0x621a86(0xa67)]();});}[_0x236d40(0xae6)](_0x3190f1){const _0x2e63cd=_0x236d40;if(!_0x3190f1||typeof _0x3190f1!=='string'||!_0x3190f1['includes']('{{')&&!_0x3190f1[_0x2e63cd(0x2cf)]('{%'))return _0x3190f1;return this[_0x2e63cd(0xa26)][_0x2e63cd(0x66a)](_0x3190f1)||null;}[_0x236d40(0x7a8)](_0x4d7911){const _0x47a716=_0x236d40;return this[_0x47a716(0xae6)](_0x4d7911);}[_0x236d40(0x534)](_0x2d8930){const _0x4d3688=_0x236d40;if(typeof _0x2d8930!==_0x4d3688(0xc00)||!_0x2d8930[_0x4d3688(0x2cf)]('{{')&&!_0x2d8930[_0x4d3688(0x2cf)]('{%'))return _0x2d8930;return this['_resolvedTemplateColors']['get'](_0x2d8930)??null;}['_resolveCanvasColor'](_0x1ece63){const _0x24d526=_0x236d40,_0x4706f6=this[_0x24d526(0xae6)](_0x1ece63);if(!_0x4706f6||typeof _0x4706f6!=='string'||!_0x4706f6['includes'](_0x24d526(0xa50)))return _0x4706f6;try{const _0x535ebc=this[_0x24d526(0x9a3)]?.[_0x24d526(0x2e5)](_0x24d526(0x24b))||this['shadowRoot']||this,_0x14108d=document[_0x24d526(0x1a8)]('span');_0x14108d[_0x24d526(0xa28)][_0x24d526(0x6f8)]=_0x4706f6,_0x14108d[_0x24d526(0xa28)][_0x24d526(0x886)]=_0x24d526(0x7af),_0x535ebc[_0x24d526(0x20b)](_0x14108d);const _0x3ad7e8=getComputedStyle(_0x14108d)[_0x24d526(0x6f8)];return _0x14108d[_0x24d526(0x57b)](),_0x3ad7e8&&_0x3ad7e8!==''?_0x3ad7e8:_0x4706f6;}catch(_0x5286bf){return _0x4706f6;}}[_0x236d40(0x28e)](){const _0xf7ef0c=_0x236d40;this[_0xf7ef0c(0xaf0)]();if(!this[_0xf7ef0c(0xd0e)]?.[_0xf7ef0c(0x655)])return;const _0x3fa2d7=new Set(),_0x28c335=['color','point_colors',_0xf7ef0c(0x76a),'state_color',_0xf7ef0c(0x8ac),_0xf7ef0c(0x858),_0xf7ef0c(0x363)];for(const _0x3faed3 of this[_0xf7ef0c(0x721)]||[]){for(const _0x3e1c9a of _0x28c335){const _0x1071f6=_0x3faed3[_0x3e1c9a];if(typeof _0x1071f6===_0xf7ef0c(0xc00)&&(_0x1071f6[_0xf7ef0c(0x2cf)]('{{')||_0x1071f6['includes']('{%')))_0x3fa2d7[_0xf7ef0c(0x412)](_0x1071f6);}}const _0x352c05=[_0xf7ef0c(0x651),_0xf7ef0c(0xbf4),_0xf7ef0c(0xb8f),'y_grid_color',_0xf7ef0c(0x2fa),'card_icon_color',_0xf7ef0c(0x19e)];for(const _0x4f21b5 of _0x352c05){const _0x5230e3=this[_0xf7ef0c(0x857)]?.[_0x4f21b5];if(typeof _0x5230e3==='string'&&(_0x5230e3['includes']('{{')||_0x5230e3['includes']('{%')))_0x3fa2d7[_0xf7ef0c(0x412)](_0x5230e3);}for(const _0x26dc0b of this[_0xf7ef0c(0x857)]?.['annotations']||[]){for(const _0x317493 of[_0xf7ef0c(0x5da),_0xf7ef0c(0x538),_0xf7ef0c(0xbde),_0xf7ef0c(0x4be),_0xf7ef0c(0x871),'label']){const _0x71164=_0x26dc0b?.[_0x317493];if(typeof _0x71164===_0xf7ef0c(0xc00)&&(_0x71164['includes']('{{')||_0x71164[_0xf7ef0c(0x2cf)]('{%')))_0x3fa2d7[_0xf7ef0c(0x412)](_0x71164);}}if(!_0x3fa2d7[_0xf7ef0c(0x9c5)])return;for(const _0x3ec49b of _0x3fa2d7){try{const _0x5d3a4e=this[_0xf7ef0c(0xd0e)][_0xf7ef0c(0x655)]['subscribeMessage'](_0x1610d6=>{const _0x277f9d=_0xf7ef0c,_0x19faf5=normalizeTemplateResult(_0x1610d6?.['result']);if(!_0x19faf5)return;const _0x523b54=this[_0x277f9d(0xa26)][_0x277f9d(0x66a)](_0x3ec49b);if(_0x523b54===_0x19faf5)return;this[_0x277f9d(0xa26)][_0x277f9d(0x907)](_0x3ec49b,_0x19faf5),this['_graphFingerprint']='',this[_0x277f9d(0x917)]();},{'type':_0xf7ef0c(0xbe5),'template':_0x3ec49b});_0x5d3a4e[_0xf7ef0c(0xa1d)](_0x35ffa3=>{const _0x57b1b9=_0xf7ef0c;this[_0x57b1b9(0x570)][_0x57b1b9(0x2c1)](_0x35ffa3);})[_0xf7ef0c(0x946)](()=>{});}catch(_0x409150){console[_0xf7ef0c(0x6ac)]('[sgc]\x20color\x20template\x20subscribe\x20failed',_0x3ec49b,_0x409150);}}}['_teardownColorTemplates'](){const _0x11c724=_0x236d40;for(const _0xe6dfec of this[_0x11c724(0x570)]){try{if(typeof _0xe6dfec===_0x11c724(0xd24))_0xe6dfec();}catch{}}this[_0x11c724(0x570)]=[];}[_0x236d40(0x4a6)](_0x14d676){const _0x2a6621=_0x236d40;if(!_0x14d676||!this[_0x2a6621(0xd0e)]||!this[_0x2a6621(0x857)])return _0x14d676;const _0x39487f=this[_0x2a6621(0x857)];if(_0x39487f[_0x2a6621(0xa10)]||_0x39487f[_0x2a6621(0x278)])return _0x14d676;if(_0x14d676[_0x2a6621(0x538)][_0x2a6621(0x3f2)]()_0x17255b)_0x17255b=_0x5b97e5;}return _0x17255b>_0x14d676[_0x2a6621(0x538)][_0x2a6621(0x3f2)]()&&(_0x14d676[_0x2a6621(0x538)]=new Date(_0x17255b+0x36ee80)),_0x14d676;}async[_0x236d40(0x5fe)](){const _0x578089=_0x236d40;if(!this[_0x578089(0xd0e)]||!this[_0x578089(0x857)])return;const _0x1c61e6=this[_0x578089(0x9ee)]=(this['_updateSeq']||0x0)+0x1;this[_0x578089(0x3cf)]=this['_computeEffectiveWindow'](),this[_0x578089(0x4a6)](this[_0x578089(0x3cf)]);const {start:_0x3d97ae,end:_0x19d0c5}=this[_0x578089(0x3cf)],_0x389da5=_0x3d97ae[_0x578089(0x3f2)]();let _0xc06b86=_0x19d0c5[_0x578089(0x3f2)]();const _0x1c0976=this['_config'],_0x4f7e17=Math[_0x578089(0x6fe)](0x1,(_0xc06b86-_0x389da5)/0x36ee80),_0x569ac2=this['_getDataSourceForRange'](_0x4f7e17);this[_0x578089(0x2ef)](_0x4f7e17);const _0x539774=_0x5a26f7=>{const _0x215b10=_0x578089;if(!_0x5a26f7)return![];if(_0x5a26f7['fixed_value']||_0x5a26f7[_0x215b10(0x204)]||_0x5a26f7[_0x215b10(0x490)]||_0x5a26f7[_0x215b10(0x295)])return![];if(autoStateMap(_0x5a26f7,this['_hass'],this[_0x215b10(0x857)]?.[_0x215b10(0xc9c)]))return![];if(_0x5a26f7[_0x215b10(0x892)])return!![];if(_0x569ac2[_0x215b10(0xb21)]!=='statistics')return![];return this[_0x215b10(0xc36)](_0x5a26f7);},_0x2f2247=new Map(),_0x14210a=new Map(),_0x550c00=[],_0x483d65=new Array(this[_0x578089(0x721)][_0x578089(0x2d1)])[_0x578089(0x4f4)](null),_0x2346c9=new Array(this[_0x578089(0x721)][_0x578089(0x2d1)])['fill'](![]);this['_entities']['forEach']((_0x2ef8a9,_0x14f0b4)=>{const _0x2512d2=_0x578089;if(_0x2ef8a9[_0x2512d2(0x8ca)])return;if(_0x2ef8a9['data_attribute'])return;const _0x2b3481=resolveOffsetHours(_0x2ef8a9[_0x2512d2(0x632)],this[_0x2512d2(0xd0e)]);if(_0x539774(_0x2ef8a9)){const _0x3f89b8=this['_getStatId'](_0x2ef8a9);if(!_0x14210a['has'](_0x2b3481))_0x14210a['set'](_0x2b3481,[]);const _0x22ef29=_0x14210a['get'](_0x2b3481);if(!_0x22ef29['includes'](_0x3f89b8))_0x22ef29[_0x2512d2(0x2c1)](_0x3f89b8);if(this[_0x2512d2(0x820)](_0x2ef8a9))_0x550c00['push'](_0x3f89b8);_0x483d65[_0x14f0b4]=_0x3f89b8+'__'+_0x2b3481,_0x2346c9[_0x14f0b4]=!![];}else{if(_0x2ef8a9[_0x2512d2(0xaa5)]){if(!_0x2f2247[_0x2512d2(0x620)](_0x2b3481))_0x2f2247[_0x2512d2(0x907)](_0x2b3481,[]);const _0x1fd50a=_0x2f2247['get'](_0x2b3481),_0x1c7b1c=_0x2ef8a9[_0x2512d2(0xaa5)];!_0x1fd50a['find'](_0xc60e9c=>_0xc60e9c['id']===_0x1c7b1c)&&_0x1fd50a['push']({'id':_0x1c7b1c,'attribute':this[_0x2512d2(0x31c)](_0x2ef8a9,_0x14f0b4)}),_0x483d65[_0x14f0b4]=_0x1c7b1c+'__'+_0x2b3481;}}});if(_0x550c00[_0x578089(0x2d1)]){try{await this[_0x578089(0x633)](_0x550c00);}catch{}if(_0x1c61e6!==this[_0x578089(0x9ee)])return;}const _0x5593cb=this['_config'][_0x578089(0x833)]!==![],_0x50c994=_0x569ac2[_0x578089(0xb21)]===_0x578089(0x866)?_0x569ac2[_0x578089(0x877)]:'hour',_0x30fedc={},_0x5de7f0={};let _0x2d6598=0x0;for(const _0x513a3e of this[_0x578089(0x721)]||[]){const _0x1ee076=toNum(_0x513a3e?.['forecast_horizon']);if(_0x1ee076>0x0&&_0x1ee076*0x36ee80>_0x2d6598)_0x2d6598=_0x1ee076*0x36ee80;}const _0x568000=this[_0x578089(0x326)]((_0xc06b86-_0x389da5)/0x36ee80),_0x582ab3=[];for(const [_0x48ab3a,_0x5d601f]of _0x2f2247){const _0x1998d3=_0x48ab3a*0x36ee80,_0x3edc13=new Date(_0x389da5-_0x1998d3-_0x2d6598-_0x568000),_0x5a27c2=new Date(_0xc06b86-_0x1998d3);_0x582ab3[_0x578089(0x2c1)](this['_fetcher'][_0x578089(0x7fc)](this[_0x578089(0xd0e)],_0x5d601f,_0x3edc13,_0x5a27c2,_0x5593cb)[_0x578089(0xa1d)](_0x30c241=>{const _0x22321f=_0x578089;for(const _0x149845 in _0x30c241){const _0x57716f=_0x1998d3!==0x0?_0x30c241[_0x149845][_0x22321f(0x5f7)](_0x484e4d=>({..._0x484e4d,'t':_0x484e4d['t']+_0x1998d3})):_0x30c241[_0x149845];_0x5de7f0[_0x149845+'__'+_0x48ab3a]=_0x57716f;}}));}const _0x56f7be=new Set();for(const _0x390671 of this[_0x578089(0x721)]){if(!_0x539774(_0x390671))continue;const _0x49d0f5=DataProcessor[_0x578089(0xbca)](_0x390671[_0x578089(0x743)]||_0x578089(0x7ae));for(const _0x58860e of _0x49d0f5)_0x56f7be[_0x578089(0x412)](_0x58860e);if((_0x390671['aggregate_func']||_0x578089(0x7ae))===_0x578089(0x6fe))_0x56f7be[_0x578089(0x412)]('min');_0x390671['show_range_band']&&(_0x56f7be[_0x578089(0x412)]('min'),_0x56f7be[_0x578089(0x412)](_0x578089(0x6fe)));}if(!_0x56f7be[_0x578089(0x9c5)])_0x56f7be[_0x578089(0x412)](_0x578089(0x2dc));const _0x361c1a=Array[_0x578089(0x98a)](_0x56f7be);for(const [_0x7c7657,_0x4f3e1e]of _0x14210a){const _0x5bbbad=_0x7c7657*0x36ee80,_0xde9b0=new Date(_0x389da5-_0x5bbbad-_0x2d6598-_0x568000),_0x4232f5=new Date(_0xc06b86-_0x5bbbad);_0x582ab3['push'](this[_0x578089(0xc98)][_0x578089(0x8b7)](this[_0x578089(0xd0e)],_0x4f3e1e,_0xde9b0,_0x4232f5,_0x50c994,_0x5593cb,_0x361c1a)[_0x578089(0xa1d)](async _0x117921=>{const _0x37c2f5=_0x578089;if(_0x50c994===_0x37c2f5(0x68d)){const _0x249049=_0x389da5-_0x5bbbad,_0x1a13ae=0x36ee80,_0x27dffa=[];for(const _0x17512e of _0x4f3e1e){const _0x2b013b=_0x117921[_0x17512e];if(!_0x2b013b||!_0x2b013b['length']){_0x27dffa[_0x37c2f5(0x2c1)](_0x17512e);continue;}if(!isNum(_0x2b013b[0x0]?.['t'])||_0x2b013b[0x0]['t']-_0x249049>_0x1a13ae)_0x27dffa['push'](_0x17512e);}if(_0x27dffa['length'])try{const _0x1ba795=await this['_fetcher'][_0x37c2f5(0x8b7)](this[_0x37c2f5(0xd0e)],_0x27dffa,_0xde9b0,_0x4232f5,'hour',_0x5593cb,_0x361c1a);for(const _0x53bead of _0x27dffa){const _0x362e4d=_0x117921[_0x53bead],_0x359915=_0x1ba795[_0x53bead];if(!_0x359915||!_0x359915[_0x37c2f5(0x2d1)])continue;if(!_0x362e4d||!_0x362e4d[_0x37c2f5(0x2d1)]){_0x117921[_0x53bead]=_0x359915;continue;}const _0x4c2689=_0x362e4d[0x0]['t'],_0x134884=_0x359915[_0x37c2f5(0x56d)](_0x52e4de=>_0x52e4de['t']<_0x4c2689);_0x117921[_0x53bead]=_0x134884[_0x37c2f5(0x2d1)]?_0x134884['concat'](_0x362e4d):_0x362e4d;}}catch{}}for(const _0x4e5245 in _0x117921){const _0x137b3a=_0x5bbbad!==0x0?_0x117921[_0x4e5245][_0x37c2f5(0x5f7)](_0xb49b42=>({..._0xb49b42,'t':_0xb49b42['t']+_0x5bbbad})):_0x117921[_0x4e5245];_0x30fedc[_0x4e5245+'__'+_0x7c7657]=_0x137b3a;}}));}await Promise[_0x578089(0x3ed)](_0x582ab3);if(_0x1c61e6!==this['_updateSeq'])return;const _0x26188d=_0x389da5-_0x2d6598-_0x568000,_0x790ad=this[_0x578089(0x721)][_0x578089(0x5f7)]((_0x34d02a,_0x12694c)=>{const _0xc9debb=_0x578089;let _0x1d6888;if(_0x34d02a[_0xc9debb(0x8ca)]){const _0x897f93=this['_hass'][_0xc9debb(0x869)][_0x34d02a[_0xc9debb(0xaa5)]],_0x1f62ed=this['_effectiveAttribute'](_0x34d02a,_0x12694c),_0x316db0=_0x1f62ed?getAttributePath(_0x897f93?.[_0xc9debb(0xbb4)],_0x1f62ed):_0x897f93?.['state'],_0x47b2e2=toNum(_0x316db0);_0x47b2e2!==null?_0x1d6888=[{'t':_0x389da5,'v':_0x47b2e2},{'t':_0xc06b86,'v':_0x47b2e2}]:_0x1d6888=[];}else{if(_0x34d02a[_0xc9debb(0x204)]){const _0x189a8f=this['_hass'][_0xc9debb(0x869)][_0x34d02a['entity']];_0x1d6888=synthesizeForecastSeries(_0x189a8f,_0x34d02a,this[_0xc9debb(0x3cf)][_0xc9debb(0x5da)],this[_0xc9debb(0xd0e)]);}else{if(_0x539774(_0x34d02a)){const _0x1121f6=_0x483d65[_0x12694c],_0x39d2a4=_0x1121f6&&_0x30fedc[_0x1121f6]||[];_0x1d6888=_0x39d2a4['map'](_0x15570d=>{const _0x427232=_0xc9debb,_0x437749={'t':_0x15570d['t'],'v':DataProcessor[_0x427232(0xbac)](_0x15570d,_0x34d02a[_0x427232(0x743)])};_0x34d02a[_0x427232(0xa08)]&&isNum(_0x15570d['min'])&&isNum(_0x15570d[_0x427232(0x6fe)])&&(_0x437749['bMin']=_0x15570d[_0x427232(0x9f4)],_0x437749['bMax']=_0x15570d[_0x427232(0x6fe)]);if(_0x34d02a['aggregate_func']===_0x427232(0x6fe)){if(isNum(_0x15570d[_0x427232(0x2dc)]))_0x437749[_0x427232(0x5e4)]=_0x15570d[_0x427232(0x2dc)];if(isNum(_0x15570d[_0x427232(0x9f4)]))_0x437749[_0x427232(0x79a)]=_0x15570d[_0x427232(0x9f4)];}return _0x437749;})['filter'](_0x3d1eb5=>_0x3d1eb5['v']!==null&&isNum(_0x3d1eb5['v'])&&_0x3d1eb5['t']>=_0x26188d);if(_0x34d02a[_0xc9debb(0x743)]===_0xc9debb(0x8ae)&&_0x39d2a4[_0xc9debb(0x2d1)]>0x0){const _0x3ffca4=_0x39d2a4[_0xc9debb(0x37b)](_0xeb99cf=>isNum(_0xeb99cf['change'])||isNum(_0xeb99cf[_0xc9debb(0x491)]));if(!_0x3ffca4&&_0x1d6888[_0xc9debb(0x2d1)]>0x1){const _0x181833=_0x1d6888['map'](_0x3d8549=>_0x3d8549['v']);_0x1d6888[0x0]['v']=0x0;for(let _0x5e49c0=0x1;_0x5e49c0<_0x1d6888[_0xc9debb(0x2d1)];_0x5e49c0++){const _0x460d34=_0x181833[_0x5e49c0]-_0x181833[_0x5e49c0-0x1];_0x1d6888[_0x5e49c0]['v']=_0x460d34>0x0?_0x460d34:0x0;}}}}else{const _0x3ad95f=_0x483d65[_0x12694c],_0x4ef913=_0x3ad95f&&_0x5de7f0[_0x3ad95f]||[],_0x18abab=this[_0xc9debb(0x31c)](_0x34d02a,_0x12694c),_0x426b15=_0x34d02a[_0xc9debb(0x295)]&&_0x34d02a['state_map'][_0xc9debb(0x2d1)]?_0x34d02a[_0xc9debb(0x295)]:_0x18abab?null:autoStateMap(_0x34d02a,this['_hass'],this[_0xc9debb(0x857)]?.[_0xc9debb(0xc9c)]);_0x1d6888=_0x4ef913['map'](_0x40f517=>{const _0x56ccc7=_0xc9debb,_0x57f709=_0x18abab?getAttributePath(_0x40f517[_0x56ccc7(0xbb4)],_0x18abab):_0x40f517['state'];let _0x278df3;_0x426b15?_0x278df3=applyStateMap(_0x57f709,_0x426b15)[_0x56ccc7(0x4be)]:_0x278df3=parseFloat(_0x57f709);if(isNaN(_0x278df3))return null;return{'t':_0x40f517['t'],'v':_0x278df3};})['filter'](Boolean);}}}if(_0x34d02a[_0xc9debb(0x204)]){const _0x5d447b=toNum(_0x34d02a[_0xc9debb(0x586)])||0x0,_0x1b453e=_0x5d447b<0x0?_0xc06b86-_0x5d447b*0x36ee80:_0xc06b86;_0x1d6888=_0x1d6888[_0xc9debb(0x56d)](_0x2c0073=>_0x2c0073['t']>=_0x389da5&&_0x2c0073['t']<=_0x1b453e);}const _0x2313fc=toNum(_0x34d02a[_0xc9debb(0x586)]);if(_0x2313fc&&_0x2313fc!==0x0&&Array['isArray'](_0x1d6888)&&_0x1d6888[_0xc9debb(0x2d1)]){const _0x259c5a=_0x2313fc*0x36ee80;_0x1d6888=_0x1d6888[_0xc9debb(0x5f7)](_0x437537=>({..._0x437537,'t':_0x437537['t']+_0x259c5a}));}_0x2d6598>0x0&&Array[_0xc9debb(0x707)](_0x1d6888)&&_0x1d6888[_0xc9debb(0x2d1)]&&(_0x1d6888=_0x1d6888[_0xc9debb(0x56d)](_0x7511ce=>_0x7511ce['t']>=_0x389da5&&_0x7511ce['t']<=_0xc06b86));const _0x5c8cad=this[_0xc9debb(0x8b1)](_0x1d6888,_0x34d02a,_0x12694c,_0x389da5,_0xc06b86),{points:_0x24c285,maSeries:_0x57dbda}=this[_0xc9debb(0xac0)](_0x5c8cad,_0x34d02a,_0x2346c9[_0x12694c],_0x389da5,_0xc06b86,_0x568000),_0x2885fc=this[_0xc9debb(0xd0e)][_0xc9debb(0x869)][_0x34d02a[_0xc9debb(0xaa5)]]||{},_0x299efd=_0x34d02a[_0xc9debb(0x892)]||_0x34d02a[_0xc9debb(0xaa5)],_0x334095=_0x299efd&&this[_0xc9debb(0x7f8)]?.[_0x299efd]||null,_0x263d1b={'friendly_name':_0x2885fc['attributes']?.[_0xc9debb(0xa43)]||_0x334095?.['name'],'unit_of_measurement':_0x2885fc[_0xc9debb(0xbb4)]?.[_0xc9debb(0xc08)]||_0x334095?.[_0xc9debb(0xc08)],'icon':_0x2885fc[_0xc9debb(0xbb4)]?.['icon'],'resolved_name':this['_resolveTemplateText'](_0x34d02a[_0xc9debb(0x858)]),'resolved_tooltip_name':this[_0xc9debb(0x534)](_0x34d02a[_0xc9debb(0x363)])};return{'idx':_0x12694c,'id':(_0x34d02a[_0xc9debb(0xaa5)]||_0x34d02a[_0xc9debb(0x892)])+'__'+_0x12694c,'entity':_0x34d02a,'points':_0x24c285,'raw':_0x1d6888,'meta':_0x263d1b,'_isStat':_0x2346c9[_0x12694c],'stats':DataProcessor['seriesStats'](_0x24c285),'maSeries':_0x57dbda??DataProcessor[_0xc9debb(0x445)](_0x24c285,_0x34d02a)};}),_0x5b7dc7=this[_0x578089(0xac4)]>0x0?this['offsetWidth']:0x320,_0x5b8013=Math['min'](0xbb8,Math[_0x578089(0x6fe)](0x190,_0x5b7dc7*0x2));for(const _0x3143fe of _0x790ad){_0x3143fe[_0x578089(0xaee)]&&_0x3143fe[_0x578089(0xaee)]['length']>_0x5b8013&&(_0x3143fe['points']=DataProcessor[_0x578089(0x9d9)](_0x3143fe['points'],_0x5b8013)),_0x3143fe['bucketPrecision']=resolveBucketPrecision(_0x3143fe['points']),_0x3143fe[_0x578089(0x369)]=![];}this['_graphData']={'series':_0x790ad};const _0x5429c0=await this[_0x578089(0x972)](_0x3d97ae,_0x19d0c5);if(_0x1c61e6!==this[_0x578089(0x9ee)])return;this[_0x578089(0xcea)]=_0x5429c0,this['_prevStamps']=Object[_0x578089(0x35d)](null);if(this[_0x578089(0xcde)])for(const _0x2a05ab of this[_0x578089(0x721)]){if(!_0x2a05ab['entity']||_0x2a05ab[_0x578089(0x892)])continue;const _0x92b3c=this[_0x578089(0xd0e)][_0x578089(0x869)][_0x2a05ab[_0x578089(0xaa5)]];if(_0x92b3c)this[_0x578089(0x39c)][_0x2a05ab[_0x578089(0xaa5)]]=_0x92b3c[_0x578089(0x25e)]||_0x92b3c[_0x578089(0xcd9)]||null;}this[_0x578089(0x6df)]=Object['create'](null);for(const _0x464c4f of this[_0x578089(0xd17)]){const _0x50a0b1=this['_hass'][_0x578089(0x869)][_0x464c4f];if(_0x50a0b1)this['_prevAnnotationStamps'][_0x464c4f]=_0x50a0b1['last_updated']||_0x50a0b1[_0x578089(0xcd9)]||null;}this[_0x578089(0x5ba)]=!![],this[_0x578089(0x4b1)](),this[_0x578089(0x28e)](),this[_0x578089(0xa67)](),this[_0x578089(0xbcf)]();}['_scheduleResolvePreciseRecordTimes'](){const _0x2a2a64=_0x236d40;if(this[_0x2a2a64(0x7a6)])return;this[_0x2a2a64(0x7a6)]=!![];const _0x2a1901=()=>{const _0x3a855c=_0x2a2a64;this[_0x3a855c(0x7a6)]=![],this[_0x3a855c(0x828)]()[_0x3a855c(0x946)](()=>{});};typeof requestAnimationFrame===_0x2a2a64(0xd24)?requestAnimationFrame(_0x2a1901):setTimeout(_0x2a1901,0x0);}async['_resolvePreciseRecordTimes'](){const _0x1da064=_0x236d40;if(!this['_hass']?.['callApi']||!this['_graphData']?.[_0x1da064(0x668)])return;if(!this['_preciseTsCache'])this['_preciseTsCache']=Object[_0x1da064(0x35d)](null);const _0x4eb7e3=[],_0x4c3adb=this[_0x1da064(0x721)]||[];for(const _0x3d32a8 of this[_0x1da064(0x945)]['series']){if(!_0x3d32a8||!_0x3d32a8[_0x1da064(0x566)])continue;if(_0x3d32a8[_0x1da064(0x369)])continue;if(!_0x3d32a8[_0x1da064(0xaa5)]||!_0x3d32a8[_0x1da064(0xaa5)][_0x1da064(0xaa5)])continue;if(!_0x3d32a8[_0x1da064(0x450)]||!_0x3d32a8[_0x1da064(0xaee)]||_0x3d32a8[_0x1da064(0xaee)][_0x1da064(0x2d1)]===0x0)continue;if(_0x3d32a8[_0x1da064(0x67f)]===_0x1da064(0x447)||_0x3d32a8[_0x1da064(0x67f)]==='minute'){_0x3d32a8['_preciseTsResolved']=!![];continue;}const _0x48db9d=new Set();for(let _0x35b50d=0x0;_0x35b50d<_0x4c3adb[_0x1da064(0x2d1)];_0x35b50d++){const _0x3257bd=_0x4c3adb[_0x35b50d];if(!_0x3257bd||!_0x3257bd[_0x1da064(0x6d8)])continue;const _0x8eb65a=_0x3257bd===_0x3d32a8[_0x1da064(0xaa5)]||_0x3257bd[_0x1da064(0xaa5)]&&_0x3257bd[_0x1da064(0xaa5)]===_0x3d32a8['entity'][_0x1da064(0xaa5)];if(!_0x8eb65a)continue;let _0x6eecbf=_0x3257bd[_0x1da064(0xabe)];if(!_0x6eecbf&&_0x3257bd[_0x1da064(0x645)])_0x6eecbf=_0x1da064(0x75d);if(_0x6eecbf===_0x1da064(0x9f4)||_0x6eecbf===_0x1da064(0x6fe))_0x48db9d[_0x1da064(0x412)](_0x6eecbf);}if(_0x48db9d['size']===0x0){_0x3d32a8[_0x1da064(0x369)]=!![];continue;}const _0x575d9d=bucketPrecisionToMs(_0x3d32a8['bucketPrecision']||_0x1da064(0xc1c));if(!_0x575d9d){_0x3d32a8[_0x1da064(0x369)]=!![];continue;}for(const _0x478d43 of _0x48db9d){const _0x1947dd=_0x478d43+'T',_0x51c63a=_0x3d32a8['stats'][_0x1947dd],_0x495b2d=_0x3d32a8[_0x1da064(0x450)][_0x478d43];if(!isNum(_0x51c63a)||!isNum(_0x495b2d))continue;const _0x3c1e20=_0x3d32a8['entity'][_0x1da064(0xaa5)]+'|'+_0x51c63a+'|'+_0x575d9d+'|'+_0x478d43+'|'+_0x495b2d[_0x1da064(0x669)](0x6),_0x2877f4=this[_0x1da064(0x60f)][_0x3c1e20];if(isNum(_0x2877f4)){_0x3d32a8[_0x1da064(0x450)][_0x1947dd]=_0x2877f4,_0x3d32a8[_0x1da064(0x450)][_0x1947dd+_0x1da064(0x337)]=!![];continue;}_0x4eb7e3[_0x1da064(0x2c1)](this[_0x1da064(0x950)](_0x3d32a8,_0x51c63a,_0x575d9d,_0x495b2d,_0x478d43,_0x3c1e20));}_0x3d32a8[_0x1da064(0x369)]=!![];}if(_0x4eb7e3[_0x1da064(0x2d1)]===0x0)return;try{await Promise[_0x1da064(0x3ed)](_0x4eb7e3),this[_0x1da064(0x917)]();}catch(_0x860a2){}}async[_0x236d40(0x950)](_0xcb1ec3,_0x4fd6d2,_0x5b2e7e,_0x45d474,_0x44541a,_0x4f2ece){const _0x81d7dc=_0x236d40;try{const _0x14c6b8=_0xcb1ec3[_0x81d7dc(0xaa5)]['entity'],_0x1eedc7=new Date(_0x4fd6d2)[_0x81d7dc(0xa86)](),_0x52bb8e=new Date(_0x4fd6d2+_0x5b2e7e)[_0x81d7dc(0xa86)](),_0x2f6e3a=_0x81d7dc(0xb5a)+_0x1eedc7+(_0x81d7dc(0x2ec)+encodeURIComponent(_0x52bb8e))+('&filter_entity_id='+encodeURIComponent(_0x14c6b8))+_0x81d7dc(0x24f),_0x5b31ca=await this[_0x81d7dc(0xd0e)]['callApi'](_0x81d7dc(0xacf),_0x2f6e3a),_0x106b06=_0x5b31ca&&_0x5b31ca[0x0]||null;if(!Array[_0x81d7dc(0x707)](_0x106b06)||_0x106b06[_0x81d7dc(0x2d1)]===0x0)return;let _0x2be241=null;for(const _0x3f01c6 of _0x106b06){const _0x3afa71=parseFloat(_0x3f01c6[_0x81d7dc(0xb91)]);if(!Number[_0x81d7dc(0x726)](_0x3afa71))continue;if(!_0x2be241||(_0x44541a===_0x81d7dc(0x6fe)?_0x3afa71>_0x2be241['v']:_0x3afa71<_0x2be241['v'])||_0x3afa71===_0x2be241['v']&&Math[_0x81d7dc(0x971)](_0x3afa71-_0x45d474)_0x30de02)return;const _0x6bc1d2=_0x44541a+'T';_0xcb1ec3[_0x81d7dc(0x450)][_0x6bc1d2]=_0x2be241['t'],_0xcb1ec3[_0x81d7dc(0x450)][_0x6bc1d2+'_precise']=!![],this[_0x81d7dc(0x60f)][_0x4f2ece]=_0x2be241['t'];}catch(_0x349b3a){}}['_isExternalStat'](_0x3eb5e1){const _0x69a236=_0x236d40;return!!(_0x3eb5e1?.[_0x69a236(0x892)]&&_0x3eb5e1[_0x69a236(0x892)][_0x69a236(0x2cf)](':'));}[_0x236d40(0xc36)](_0x2ba968){const _0x7ec27b=_0x236d40;if(!_0x2ba968)return![];if(_0x2ba968[_0x7ec27b(0x8ca)]||_0x2ba968[_0x7ec27b(0x490)]||_0x2ba968['data_attribute']||_0x2ba968[_0x7ec27b(0x295)])return![];if(autoStateMap(_0x2ba968,this[_0x7ec27b(0xd0e)],this[_0x7ec27b(0x857)]?.[_0x7ec27b(0xc9c)]))return![];if(_0x2ba968[_0x7ec27b(0x892)])return!![];const _0x230f14=this[_0x7ec27b(0xd0e)]?.[_0x7ec27b(0x869)]?.[_0x2ba968['entity']];if(!_0x230f14)return![];const _0x268d37=_0x230f14[_0x7ec27b(0xbb4)]?.[_0x7ec27b(0xa56)];return _0x268d37===_0x7ec27b(0x572)||_0x268d37===_0x7ec27b(0xbf7)||_0x268d37==='total_increasing';}[_0x236d40(0x547)](_0x3a8624){return _0x3a8624['statistic_id']||_0x3a8624['entity'];}[_0x236d40(0x78c)](_0x1abda4){const _0xd70128=_0x236d40;if(!_0x1abda4)return![];if(_0x1abda4[_0xd70128(0x892)]){const _0x3d467f=this[_0xd70128(0x7f8)]&&this[_0xd70128(0x7f8)][_0x1abda4[_0xd70128(0x892)]];if(_0x3d467f)return!!_0x3d467f[_0xd70128(0xabc)]&&!_0x3d467f[_0xd70128(0x555)];return!![];}const _0x1f2164=this[_0xd70128(0xd0e)]?.['states']?.[_0x1abda4[_0xd70128(0xaa5)]]?.[_0xd70128(0xbb4)]?.[_0xd70128(0xa56)];return _0x1f2164===_0xd70128(0xbf7)||_0x1f2164===_0xd70128(0xbbd);}['_hasCandlestick'](){const _0x2e4759=_0x236d40;for(const _0x597038 of this[_0x2e4759(0x721)]||[]){if(_0x597038&&!_0x597038['fixed_value']&&!_0x597038[_0x2e4759(0x204)]&&(_0x597038['graph_type']||_0x597038[_0x2e4759(0x604)])==='candlestick')return!![];}return![];}['_calendarCounterNeedsHourly'](){const _0x53fb16=_0x236d40,_0xfef477=new Set([_0x53fb16(0x6fe),_0x53fb16(0x9f4),_0x53fb16(0x7ae),'mean',undefined,null,'']);for(const _0x5a5a14 of this['_entities']||[]){if(!_0x5a5a14||_0x5a5a14[_0x53fb16(0x8ca)]||_0x5a5a14[_0x53fb16(0x204)])continue;const _0x2726b8=_0x5a5a14[_0x53fb16(0x743)];if(!_0xfef477[_0x53fb16(0x620)](_0x2726b8))continue;if(this[_0x53fb16(0x78c)](_0x5a5a14))return!![];}return![];}[_0x236d40(0x442)](){const _0x3ff78b=_0x236d40;for(const _0x9634c2 of this[_0x3ff78b(0x721)]||[]){if(!_0x9634c2||_0x9634c2[_0x3ff78b(0x8ca)]||_0x9634c2[_0x3ff78b(0x204)])continue;if(_0x9634c2['aggregate_func']!==_0x3ff78b(0x6fe))continue;if(this[_0x3ff78b(0x78c)](_0x9634c2))continue;if(this[_0x3ff78b(0x4e5)](_0x9634c2))return!![];}return![];}[_0x236d40(0x784)](){const _0x122de5=_0x236d40;for(const _0x35a8cd of this[_0x122de5(0x721)]||[]){if(!_0x35a8cd||_0x35a8cd[_0x122de5(0x8ca)]||_0x35a8cd[_0x122de5(0x204)])continue;if(_0x35a8cd[_0x122de5(0x743)]!==_0x122de5(0x75d)&&_0x35a8cd[_0x122de5(0x743)]!==_0x122de5(0x319))continue;if(this[_0x122de5(0x78c)](_0x35a8cd))continue;if(this[_0x122de5(0x4e5)](_0x35a8cd))return!![];}return![];}[_0x236d40(0x717)](){const _0x1bcf8e=_0x236d40;for(const _0x48a7e0 of this[_0x1bcf8e(0x721)]||[]){if(!_0x48a7e0||_0x48a7e0[_0x1bcf8e(0x8ca)]||_0x48a7e0[_0x1bcf8e(0x204)])continue;if(_0x48a7e0[_0x1bcf8e(0x743)]!=='diff')continue;if(this[_0x1bcf8e(0x78c)](_0x48a7e0))continue;if(this[_0x1bcf8e(0x4e5)](_0x48a7e0))return!![];}return![];}[_0x236d40(0x4e5)](_0x5f4165){const _0x2b7401=_0x236d40;if(!_0x5f4165)return![];if(_0x5f4165[_0x2b7401(0x892)])return!![];if(_0x5f4165[_0x2b7401(0x8ca)]||_0x5f4165[_0x2b7401(0x490)]||_0x5f4165[_0x2b7401(0x204)]||_0x5f4165[_0x2b7401(0x295)])return![];return this[_0x2b7401(0xc36)](_0x5f4165);}[_0x236d40(0x8ff)](){const _0x15bf75=_0x236d40;if(!this[_0x15bf75(0x721)]?.[_0x15bf75(0x2d1)])return![];const _0x2acf84=this[_0x15bf75(0x721)]['filter'](_0x3dc1e6=>_0x3dc1e6&&!_0x3dc1e6[_0x15bf75(0x8ca)]&&!_0x3dc1e6[_0x15bf75(0x490)]&&!_0x3dc1e6[_0x15bf75(0x204)]&&!_0x3dc1e6[_0x15bf75(0x295)]&&!autoStateMap(_0x3dc1e6,this[_0x15bf75(0xd0e)],this[_0x15bf75(0x857)]?.[_0x15bf75(0xc9c)]));if(!_0x2acf84[_0x15bf75(0x2d1)])return![];return _0x2acf84[_0x15bf75(0xc27)](_0x1bccae=>this[_0x15bf75(0xc36)](_0x1bccae));}['_maybeWarnMissingLTS'](_0x5f288c){const _0x414297=_0x236d40;if(this[_0x414297(0x536)]||_0x5f288c<=0xf0)return;const _0x1a7131=[];for(const _0x463100 of this['_entities']||[]){if(!_0x463100||_0x463100[_0x414297(0x8ca)]||_0x463100['attribute']||_0x463100[_0x414297(0x204)]||_0x463100[_0x414297(0x295)])continue;if(!this['_hasLTS'](_0x463100))_0x1a7131[_0x414297(0x2c1)](_0x463100[_0x414297(0xaa5)]);}_0x1a7131[_0x414297(0x2d1)]&&(console[_0x414297(0x6ac)](_0x414297(0x45d)+_0x1a7131[_0x414297(0x2d1)]+_0x414297(0xcbd)+('(state_class\x20not\x20set):\x20'+_0x1a7131[_0x414297(0x358)](',\x20')+'.\x20')+_0x414297(0x73e)),this[_0x414297(0x536)]=!![]);}['_getDataSourceForRange'](_0x31d20b){const _0x2e85bb=_0x236d40,_0x2cfaf6=this[_0x2e85bb(0x857)][_0x2e85bb(0x8d3)]||_0x2e85bb(0x4d3);if(_0x2cfaf6===_0x2e85bb(0x74c)||_0x2cfaf6===_0x2e85bb(0x40e)){if(this['_calendarEndpointNeedsHourly']()&&_0x31d20b<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0xc1c)};return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0xa49)};}if(_0x2cfaf6===_0x2e85bb(0x677))return{'source':_0x2e85bb(0x866),'period':'week'};if(_0x2cfaf6===_0x2e85bb(0x93a)){const _0x8457d1=this[_0x2e85bb(0x8e8)]()||this[_0x2e85bb(0x442)]()||this['_calendarDiffNeedsHourly']()||this['_calendarEndpointNeedsHourly']();if(_0x8457d1&&_0x31d20b<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x2e85bb(0x866),'period':'hour'};if(this[_0x2e85bb(0x39f)]()&&_0x31d20b<=DATE_GROUP_HOURLY_MAX_HOURS)return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0xc1c)};return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0xa49)};}if(_0x2cfaf6===_0x2e85bb(0xc1c)){if(this[_0x2e85bb(0x39f)]()&&_0x31d20b<=STATS_5MIN_MAX_HOURS)return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0x68d)};return{'source':_0x2e85bb(0x866),'period':_0x31d20b<=STATS_HOURLY_MAX_HOURS?_0x2e85bb(0xc1c):_0x2e85bb(0xa49)};}const _0x2d4589=this[_0x2e85bb(0x857)]['show_date_picker']||this[_0x2e85bb(0x857)][_0x2e85bb(0xa5e)]&&this['_dpSynced']||this[_0x2e85bb(0x857)][_0x2e85bb(0xcbb)]&&this[_0x2e85bb(0x7f2)];if(!_0x2d4589&&!this[_0x2e85bb(0x8ff)]())return{'source':_0x2e85bb(0xbcd)};if(_0x31d20b<=SHORT_WINDOW_HOURS){const _0x128446=this[_0x2e85bb(0x721)]['some'](_0xfb838e=>_0xfb838e?.['statistic_id']),_0x3cf230=this[_0x2e85bb(0x5f0)]??toNum(this[_0x2e85bb(0x857)]['hours_to_show'])??_0x31d20b,_0xeb585e=_0x128446||_0x3cf230>FORCE_STATS_RAW_HOURS||_0x2d4589;if(_0xeb585e&&(_0x2d4589||this[_0x2e85bb(0x8ff)]()))return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0x68d)};return{'source':_0x2e85bb(0xbcd)};}if(_0x31d20b<=STATS_5MIN_MAX_HOURS)return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0x68d)};if(_0x31d20b<=STATS_HOURLY_MAX_HOURS)return{'source':'statistics','period':_0x2e85bb(0xc1c)};return{'source':_0x2e85bb(0x866),'period':_0x2e85bb(0xa49)};}async['_ensureStatMeta'](_0x1f136a){const _0x3e3d2e=_0x236d40;if(!this['_statMeta'])this[_0x3e3d2e(0x7f8)]=Object[_0x3e3d2e(0x35d)](null);if(!this[_0x3e3d2e(0xd0e)]?.[_0x3e3d2e(0x6a5)])return;const _0x2b2357=[];for(const _0x446720 of _0x1f136a){if(_0x446720&&!(_0x446720 in this[_0x3e3d2e(0x7f8)]))_0x2b2357[_0x3e3d2e(0x2c1)](_0x446720);}if(!_0x2b2357[_0x3e3d2e(0x2d1)])return;try{const _0x108b97=await this[_0x3e3d2e(0xd0e)][_0x3e3d2e(0x6a5)]({'type':_0x3e3d2e(0xc74)});if(Array[_0x3e3d2e(0x707)](_0x108b97)){const _0x4f998a=new Set(_0x2b2357);for(const _0x2c7faf of _0x108b97){if(!_0x2c7faf?.[_0x3e3d2e(0x892)])continue;_0x4f998a['has'](_0x2c7faf[_0x3e3d2e(0x892)])&&(this[_0x3e3d2e(0x7f8)][_0x2c7faf[_0x3e3d2e(0x892)]]={'unit_of_measurement':_0x2c7faf['statistics_unit_of_measurement']||_0x2c7faf[_0x3e3d2e(0xc08)]||null,'has_mean':!!_0x2c7faf['has_mean'],'has_sum':!!_0x2c7faf[_0x3e3d2e(0xabc)],'source':_0x2c7faf['source']||null,'name':_0x2c7faf[_0x3e3d2e(0x858)]||null});}for(const _0x4c56f2 of _0x2b2357){if(!(_0x4c56f2 in this[_0x3e3d2e(0x7f8)]))this[_0x3e3d2e(0x7f8)][_0x4c56f2]={'unit_of_measurement':null};}}}catch{}}[_0x236d40(0xbf6)](){const _0x5241bc=_0x236d40,_0x1808b0=new Set();for(const _0x49a53c of this[_0x5241bc(0x721)]||[]){if(_0x49a53c[_0x5241bc(0xaa5)]&&!_0x49a53c[_0x5241bc(0x892)])_0x1808b0['add'](_0x49a53c[_0x5241bc(0xaa5)]);}for(const _0x153851 of this[_0x5241bc(0xd17)]||[])_0x1808b0[_0x5241bc(0x412)](_0x153851);if(this[_0x5241bc(0x857)]?.['battery_entity'])_0x1808b0['add'](this['_config'][_0x5241bc(0xb97)]);return[..._0x1808b0][_0x5241bc(0xc70)]()[_0x5241bc(0x358)]('|');}[_0x236d40(0x4b1)](){const _0x2b2e90=_0x236d40;if(this[_0x2b2e90(0xd04)]||this[_0x2b2e90(0x9af)]||!this[_0x2b2e90(0xd0e)]?.['connection'])return;if(!this['_liveEnabled']&&!this[_0x2b2e90(0xd17)]['size']&&!this['_config']?.['battery_entity'])return;const _0x521d62=new Set();for(const _0x363dc9 of this[_0x2b2e90(0x721)]){if(_0x363dc9[_0x2b2e90(0xaa5)]&&!_0x363dc9['statistic_id'])_0x521d62[_0x2b2e90(0x412)](_0x363dc9[_0x2b2e90(0xaa5)]);}for(const _0x2b7902 of this[_0x2b2e90(0xd17)])_0x521d62['add'](_0x2b7902);if(this[_0x2b2e90(0x857)]['battery_entity'])_0x521d62['add'](this[_0x2b2e90(0x857)][_0x2b2e90(0xb97)]);const _0xcedc1d=[..._0x521d62];if(!_0xcedc1d['length'])return;this[_0x2b2e90(0x535)]=_0xcedc1d[_0x2b2e90(0x670)]()['sort']()[_0x2b2e90(0x358)]('|'),this[_0x2b2e90(0x9af)]=!![];const _0x410cf9=this[_0x2b2e90(0xcbc)]=(this[_0x2b2e90(0xcbc)]||0x0)+0x1,_0x12663b=(_0x27ed4f,_0x264ec5)=>{const _0x4299a5=_0x2b2e90;if(!_0x264ec5||_0x264ec5[_0x4299a5(0xb91)]===_0x4299a5(0x679)||_0x264ec5[_0x4299a5(0xb91)]==='unavailable')return;if(!this[_0x4299a5(0xd0e)])return;const _0x3a0e87=this[_0x4299a5(0xd0e)];try{const _0x104f56={..._0x3a0e87[_0x4299a5(0x869)]};_0x104f56[_0x27ed4f]=_0x264ec5;const _0x289581={..._0x3a0e87,'states':_0x104f56};let _0x160b8e=![];if(this['_liveEnabled'])for(const _0x231656 of this[_0x4299a5(0x721)]){if(_0x231656[_0x4299a5(0xaa5)]===_0x27ed4f&&!_0x231656[_0x4299a5(0x892)]){_0x160b8e=!![];break;}}const _0x38bc2c=this['_annotationRefs'][_0x4299a5(0x620)](_0x27ed4f),_0x2e0c85=this[_0x4299a5(0x857)][_0x4299a5(0xb97)]===_0x27ed4f;if(_0x160b8e)this[_0x4299a5(0x55f)](_0x289581);if(_0x38bc2c)this[_0x4299a5(0xba7)](_0x289581);(_0x160b8e||_0x2e0c85)&&this[_0x4299a5(0x9a3)]?.[_0x4299a5(0x2e5)]?.(_0x4299a5(0xaa1))&&this[_0x4299a5(0x902)]();}catch(_0x18cb80){console[_0x4299a5(0x6ac)](_0x4299a5(0x706),_0x18cb80);}},_0x3aebce=_0xcedc1d['length']>0x0&&_0xcedc1d[_0x2b2e90(0x2d1)]<=0x40,_0x4579f4=()=>{const _0x301a41=_0x2b2e90;this[_0x301a41(0xd0e)][_0x301a41(0x655)][_0x301a41(0xb85)](_0x5a6b4a=>{const _0x4be771=_0x301a41,_0xd3cc18=_0x5a6b4a?.['data']?.['entity_id'];if(!_0x521d62['has'](_0xd3cc18))return;_0x12663b(_0xd3cc18,_0x5a6b4a[_0x4be771(0xb75)][_0x4be771(0xd23)]);},_0x301a41(0x3e6))[_0x301a41(0xa1d)](_0x2f0f73=>{const _0x3072e1=_0x301a41;if(_0x410cf9!==this[_0x3072e1(0xcbc)]){try{_0x2f0f73();}catch{}return;}this[_0x3072e1(0xd04)]=_0x2f0f73,this[_0x3072e1(0x9af)]=![];})['catch'](()=>{const _0x5ea84e=_0x301a41;if(_0x410cf9===this[_0x5ea84e(0xcbc)])this[_0x5ea84e(0x9af)]=![];});};_0x3aebce?this[_0x2b2e90(0xd0e)][_0x2b2e90(0x655)][_0x2b2e90(0xbe4)](_0x19a8ac=>{const _0xe010a4=_0x2b2e90,_0x5a9777=_0x19a8ac?.['variables']?.['trigger'];if(!_0x5a9777)return;const _0x46bf32=_0x5a9777[_0xe010a4(0x95c)];if(_0x46bf32)_0x12663b(_0x46bf32[_0xe010a4(0xacd)],_0x46bf32);},{'type':_0x2b2e90(0xaa6),'trigger':{'platform':_0x2b2e90(0xb91),'entity_id':_0xcedc1d}})[_0x2b2e90(0xa1d)](_0x37bac6=>{const _0x1d7424=_0x2b2e90;if(_0x410cf9!==this[_0x1d7424(0xcbc)]){try{_0x37bac6();}catch{}return;}this['_wsUnsub']=_0x37bac6,this[_0x1d7424(0x9af)]=![];})[_0x2b2e90(0x946)](()=>{const _0x3edf29=_0x2b2e90;if(_0x410cf9===this[_0x3edf29(0xcbc)])_0x4579f4();}):_0x4579f4();}['_unsubscribeEvents'](){const _0x32d27e=_0x236d40;this[_0x32d27e(0xcbc)]=(this['_wsGen']||0x0)+0x1;if(this[_0x32d27e(0xd04)]){try{this[_0x32d27e(0xd04)]();}catch{}this[_0x32d27e(0xd04)]=null;}this[_0x32d27e(0x9af)]=![],this['_wsTrackedKey']=null;}[_0x236d40(0x55f)](_0x182a7d){const _0x2504d9=_0x236d40;let _0x502282=![];this['_entities'][_0x2504d9(0x366)]((_0x4b0897,_0x556463)=>{const _0x18e861=_0x2504d9;if(!_0x4b0897[_0x18e861(0xaa5)]||_0x4b0897['statistic_id'])return;if(this[_0x18e861(0x4e5)](_0x4b0897)){const _0x258c97=_0x4b0897['aggregate_func'];if(_0x258c97!=='last'&&_0x258c97!==_0x18e861(0x319)&&_0x258c97!==_0x18e861(0x6fe)&&_0x258c97!==_0x18e861(0x9f4))return;}const _0x4d90ea=_0x182a7d[_0x18e861(0x869)][_0x4b0897[_0x18e861(0xaa5)]];if(!_0x4d90ea)return;const _0x1f5cae=_0x4d90ea[_0x18e861(0x25e)]||_0x4d90ea[_0x18e861(0xcd9)]||null;if(_0x1f5cae===this[_0x18e861(0x39c)][_0x4b0897['entity']])return;this['_prevStamps'][_0x4b0897[_0x18e861(0xaa5)]]=_0x1f5cae;if(_0x4b0897[_0x18e861(0x8ca)]||_0x4b0897[_0x18e861(0x204)]){this[_0x18e861(0x42e)]=!![],_0x502282=!![];return;}const _0x12a583=this[_0x18e861(0x31c)](_0x4b0897,_0x556463),_0x36012b=_0x12a583?getAttributePath(_0x4d90ea[_0x18e861(0xbb4)],_0x12a583):_0x4d90ea[_0x18e861(0xb91)],_0x24f20e=toNum(_0x36012b);if(_0x24f20e===null)return;const _0x261a1c=_0x1f5cae?new Date(_0x1f5cae)['getTime']():Date[_0x18e861(0x8c9)]();(this[_0x18e861(0x441)][_0x4b0897[_0x18e861(0xaa5)]]||=[])[_0x18e861(0x2c1)]({'t':_0x261a1c,'v':_0x24f20e}),_0x502282=!![];});if(_0x502282)this[_0x2504d9(0x806)]();}[_0x236d40(0xba7)](_0x551fc2){const _0x194132=_0x236d40;let _0x1aeab3=![];for(const _0x1ece0f of this[_0x194132(0xd17)]){const _0x5541f4=_0x551fc2[_0x194132(0x869)][_0x1ece0f];if(!_0x5541f4)continue;const _0x25cfe7=_0x5541f4[_0x194132(0x25e)]||_0x5541f4[_0x194132(0xcd9)]||null;if(_0x25cfe7===this['_prevAnnotationStamps'][_0x1ece0f])continue;this[_0x194132(0x6df)][_0x1ece0f]=_0x25cfe7,_0x1aeab3=!![];}if(_0x1aeab3)this[_0x194132(0x917)]();}[_0x236d40(0x806)](){const _0x2818c5=_0x236d40;if(this[_0x2818c5(0xa02)])return;this[_0x2818c5(0xa02)]=setTimeout(()=>{this['_liveFlushTimer']=null,this['_flushLiveBuffer']();},LIVE_FLUSH_DEBOUNCE_MS);}[_0x236d40(0xcb0)](){const _0x568f55=_0x236d40;if(!this[_0x568f55(0x945)]||!this[_0x568f55(0x3cf)])return;const _0x2d4b22=Object['keys'](this['_liveBuffer'])[_0x568f55(0x2d1)]>0x0;if(!_0x2d4b22&&!this[_0x568f55(0xbbe)]&&!this['_pendingSyntheticRefresh'])return;const _0x4784c3=this[_0x568f55(0xbbe)];this['_pendingSlide']=![],this[_0x568f55(0x42e)]=![];if(this[_0x568f55(0x65b)]()){const _0x5e0229=this[_0x568f55(0x82b)]();_0x5e0229&&(this[_0x568f55(0x4a6)](_0x5e0229),this[_0x568f55(0x3cf)]=_0x5e0229);}const _0x521951=this[_0x568f55(0x3cf)]['start'][_0x568f55(0x3f2)](),_0x1c3911=this[_0x568f55(0x3cf)][_0x568f55(0x538)][_0x568f55(0x3f2)](),_0x479aae=this[_0x568f55(0x326)]((_0x1c3911-_0x521951)/0x36ee80);for(const _0x52eb5b of this[_0x568f55(0x945)]['series']){const _0xfb0284=_0x52eb5b['entity'],_0x5bd52e=_0xfb0284[_0x568f55(0xaa5)]?resolveOffsetHours(_0xfb0284['offset'],this[_0x568f55(0xd0e)]):0x0,_0xd10bd1=_0xfb0284[_0x568f55(0xaa5)]&&_0x5bd52e===0x0&&this[_0x568f55(0x441)][_0xfb0284[_0x568f55(0xaa5)]]?.[_0x568f55(0x2d1)]>0x0,_0x40dcaf=_0xfb0284[_0x568f55(0x8ca)]||_0xfb0284[_0x568f55(0x204)];if(_0xfb0284[_0x568f55(0x8ca)]){const _0x1c04e0=this[_0x568f55(0xd0e)]?.[_0x568f55(0x869)]?.[_0xfb0284[_0x568f55(0xaa5)]],_0x3f0f52=_0xfb0284[_0x568f55(0x490)]?getAttributePath(_0x1c04e0?.[_0x568f55(0xbb4)],_0xfb0284['attribute']):_0x1c04e0?.['state'],_0x3c4a5d=toNum(_0x3f0f52);_0x3c4a5d!==null?_0x52eb5b[_0x568f55(0x447)]=[{'t':_0x521951,'v':_0x3c4a5d},{'t':_0x1c3911,'v':_0x3c4a5d}]:_0x52eb5b[_0x568f55(0x447)]=[];this[_0x568f55(0xc2f)](_0x52eb5b),_0x52eb5b[_0x568f55(0x450)]=DataProcessor[_0x568f55(0x935)](_0x52eb5b[_0x568f55(0xaee)]);continue;}if(_0xfb0284[_0x568f55(0x204)]){const _0x270f86=this[_0x568f55(0xd0e)]?.[_0x568f55(0x869)]?.[_0xfb0284[_0x568f55(0xaa5)]],_0x1b01ac=synthesizeForecastSeries(_0x270f86,_0xfb0284,this['_window'][_0x568f55(0x5da)],this['_hass']);_0x52eb5b[_0x568f55(0x447)]=_0x1b01ac['filter'](_0x1c9a1a=>_0x1c9a1a['t']>=_0x521951&&_0x1c9a1a['t']<=_0x1c3911),this[_0x568f55(0xc2f)](_0x52eb5b),_0x52eb5b[_0x568f55(0x450)]=DataProcessor['seriesStats'](_0x52eb5b[_0x568f55(0xaee)]);continue;}if(!_0xfb0284[_0x568f55(0xaa5)]||_0xfb0284[_0x568f55(0x892)]){if(!_0x4784c3)continue;let _0x1f9c4b=0x0;const _0x20ca84=_0x479aae>0x0?_0x521951-_0x479aae:_0x521951;while(_0x1f9c4b<_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x2d1)]&&_0x52eb5b[_0x568f55(0x447)][_0x1f9c4b]['t']<_0x20ca84)_0x1f9c4b++;if(_0x1f9c4b>0x1)_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x413)](0x0,_0x1f9c4b-0x1);let _0x53ff4c=_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x2d1)];while(_0x53ff4c>0x0&&_0x52eb5b[_0x568f55(0x447)][_0x53ff4c-0x1]['t']>=_0x1c3911)_0x53ff4c--;if(_0x53ff4c<_0x52eb5b['raw'][_0x568f55(0x2d1)])_0x52eb5b['raw'][_0x568f55(0x2d1)]=_0x53ff4c;}else{if(!_0xd10bd1&&!_0x4784c3)continue;const _0x40506f=_0x5bd52e===0x0?this['_liveBuffer'][_0xfb0284[_0x568f55(0xaa5)]]:null;if(_0x40506f?.['length']){_0x40506f[_0x568f55(0xc70)]((_0x3ef35e,_0x4c946d)=>_0x3ef35e['t']-_0x4c946d['t']);for(let _0x493d75=0x0;_0x493d75<_0x40506f[_0x568f55(0x2d1)];_0x493d75++)_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x2c1)](_0x40506f[_0x493d75]);}let _0x43c35d=0x0;const _0x19eb46=_0x479aae>0x0?_0x521951-_0x479aae:_0x521951;while(_0x43c35d<_0x52eb5b[_0x568f55(0x447)]['length']&&_0x52eb5b[_0x568f55(0x447)][_0x43c35d]['t']<_0x19eb46)_0x43c35d++;if(_0x43c35d>0x1)_0x52eb5b[_0x568f55(0x447)]['splice'](0x0,_0x43c35d-0x1);let _0x49dc2b=_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x2d1)];while(_0x49dc2b>0x0&&_0x52eb5b['raw'][_0x49dc2b-0x1]['t']>=_0x1c3911)_0x49dc2b--;if(_0x49dc2b<_0x52eb5b[_0x568f55(0x447)][_0x568f55(0x2d1)])_0x52eb5b[_0x568f55(0x447)]['length']=_0x49dc2b;}this[_0x568f55(0xc2f)](_0x52eb5b),_0x52eb5b['stats']=DataProcessor[_0x568f55(0x935)](_0x52eb5b[_0x568f55(0xaee)]);}this[_0x568f55(0x441)]=Object[_0x568f55(0x35d)](null),this[_0x568f55(0x917)](),this[_0x568f55(0xbcf)]();}[_0x236d40(0xac0)](_0x4bac7e,_0x2a3189,_0x2ac302,_0x4272af,_0x4d4e66,_0x58865f){const _0x3f6f24=_0x236d40,_0x22e62e=this[_0x3f6f24(0x857)],_0x569645=resolveDisplayTimeZone(this[_0x3f6f24(0xd0e)],_0x22e62e),_0x145f71=[_0x3f6f24(0xc1c),'date','week','month',_0x3f6f24(0x40e)],_0x2cc945=!_0x2a3189[_0x3f6f24(0x892)]&&!_0x2a3189[_0x3f6f24(0x8ca)]&&!_0x2a3189[_0x3f6f24(0x204)]&&_0x22e62e[_0x3f6f24(0xc9c)]!==_0x3f6f24(0x979)&&_0x22e62e[_0x3f6f24(0x8d3)]!==_0x3f6f24(0x447);let _0x43fcd9,_0xa4ab30=null;if(_0x2cc945){const _0x3d2ae9=DataProcessor[_0x3f6f24(0xb4e)](_0x2a3189[_0x3f6f24(0x743)]==='diff'?DataProcessor[_0x3f6f24(0x7e6)](_0x4bac7e):!_0x2ac302&&_0x2a3189[_0x3f6f24(0x743)]===_0x3f6f24(0x8ae)?DataProcessor[_0x3f6f24(0x8f4)](_0x4bac7e):_0x4bac7e,_0x2a3189),_0x225922=(_0x4d4e66-_0x4272af)/0x36ee80,_0x5ea37a=resolvePointsPerHour(_0x22e62e,_0x2a3189,_0x225922),_0x811b68=resolveGroupBy(_0x22e62e,_0x225922),_0x5c902a=groupBucketMs(_0x811b68,_0x22e62e['hours_to_show'],_0x5ea37a);let _0x333b48=_0x2a3189['aggregate_func'];_0x2ac302&&_0x333b48===_0x3f6f24(0x8ae)&&(_0x333b48=_0x3f6f24(0x491));!_0x2ac302&&_0x333b48==='change'&&(_0x333b48='sum');_0x333b48==='diff'&&(_0x333b48=_0x3f6f24(0x491));let _0x4c6596,_0x11d6fe=_0x3d2ae9;if(_0x58865f>0x0&&_0x3d2ae9[_0x3f6f24(0x2d1)]&&_0x3d2ae9[0x0]['t']<_0x4272af){let _0x1b5149=0x0;while(_0x1b5149<_0x3d2ae9[_0x3f6f24(0x2d1)]&&_0x3d2ae9[_0x1b5149]['t']<_0x4272af)_0x1b5149++;const _0x985cf5=_0x3d2ae9[_0x3f6f24(0x670)](_0x1b5149);_0x1b5149>0x0&&!(_0x985cf5[_0x3f6f24(0x2d1)]&&_0x985cf5[0x0]['t']===_0x4272af)?_0x11d6fe=[{..._0x3d2ae9[_0x1b5149-0x1],'t':_0x4272af},..._0x985cf5]:_0x11d6fe=_0x985cf5;}if(_0x145f71['includes'](_0x811b68)){const _0x54940e=_0x569645;_0x11d6fe=DataProcessor[_0x3f6f24(0xa37)](_0x11d6fe,_0x811b68,_0x333b48,_0x54940e,this[_0x3f6f24(0x78c)](_0x2a3189)),_0x4c6596=DataProcessor[_0x3f6f24(0x6da)](_0x11d6fe,_0x811b68,_0x333b48,_0x4d4e66,_0x54940e,(_0x2a3189[_0x3f6f24(0xcad)]||_0x2a3189[_0x3f6f24(0x604)])===_0x3f6f24(0x93c));if(!_0x2a3189['break_on_null']){const _0x53c753=_0x11d6fe&&_0x11d6fe['length']>0x0?_0x11d6fe[_0x11d6fe[_0x3f6f24(0x2d1)]-0x1]['t']:null;_0x4c6596=DataProcessor['carryStateInGaps'](_0x4c6596,_0x811b68,_0x333b48,{'endMs':_0x4d4e66,'lastRawT':_0x53c753,'tz':_0x54940e});}else _0x4c6596=DataProcessor[_0x3f6f24(0x9ed)](_0x4c6596,_0x811b68,{'tz':_0x54940e});}else _0x5c902a>0x0?_0x4c6596=DataProcessor[_0x3f6f24(0x59c)](_0x11d6fe,_0x5c902a,_0x4272af,_0x4d4e66,_0x333b48,!!_0x2a3189[_0x3f6f24(0xa08)],{'deltaAgg':_0x333b48===_0x3f6f24(0x491),'breakOnNull':!!_0x2a3189[_0x3f6f24(0x298)],'carryForwardMs':_0x2a3189[_0x3f6f24(0x93e)],'alignToClock':this[_0x3f6f24(0xbff)](_0x2a3189),'anchorStart':[_0x3f6f24(0x93c),_0x3f6f24(0xc87)][_0x3f6f24(0x2cf)](_0x2a3189[_0x3f6f24(0xcad)]||_0x2a3189[_0x3f6f24(0x604)]),'ohlc':(_0x2a3189[_0x3f6f24(0xcad)]||_0x2a3189['type'])===_0x3f6f24(0x93c),'carryPastNow':resolveOffsetHours(_0x2a3189[_0x3f6f24(0x632)],this['_hass'])!==0x0||(toNum(_0x2a3189[_0x3f6f24(0x586)])?toNum(_0x2a3189[_0x3f6f24(0x586)])!==0x0:![])}):_0x4c6596=_0x3d2ae9;_0xa4ab30=DataProcessor[_0x3f6f24(0x5dd)](_0x3d2ae9,_0x2a3189,{'startMs':_0x4272af,'endMs':_0x4d4e66,'bucketMs':_0x5c902a,'groupBy':_0x811b68,'aggFunc':_0x333b48,'alignToClock':this[_0x3f6f24(0xbff)](_0x2a3189),'anchorStart':[_0x3f6f24(0x93c),_0x3f6f24(0xc87)][_0x3f6f24(0x2cf)](_0x2a3189[_0x3f6f24(0xcad)]||_0x2a3189['type']),'tz':_0x569645}),_0x43fcd9=DataProcessor[_0x3f6f24(0xcf6)](_0x4c6596,_0x2a3189,!!_0x2a3189[_0x3f6f24(0xa08)]);}else{_0x43fcd9=DataProcessor[_0x3f6f24(0xa18)](_0x2a3189[_0x3f6f24(0x743)]===_0x3f6f24(0xbb2)?DataProcessor[_0x3f6f24(0x7e6)](_0x4bac7e):_0x4bac7e,_0x2a3189,!![]);const _0x1c87d4=(_0x4d4e66-_0x4272af)/0x36ee80,_0x77cea7=resolveGroupBy(_0x22e62e,_0x1c87d4);if(_0x2a3189[_0x3f6f24(0x892)]&&_0x43fcd9&&_0x43fcd9['length']>0x1&&_0x145f71[_0x3f6f24(0x2cf)](_0x77cea7)){const _0xc60ad1=(_0x43fcd9[_0x43fcd9[_0x3f6f24(0x2d1)]-0x1]['t']-_0x43fcd9[0x0]['t'])/Math[_0x3f6f24(0x6fe)](0x1,_0x43fcd9[_0x3f6f24(0x2d1)]-0x1),_0x4d3686=groupBucketMs(_0x77cea7,_0x22e62e[_0x3f6f24(0x9e4)],null);if(_0x4d3686>0x0&&_0xc60ad1>0x0&&_0x4d3686>_0xc60ad1*1.5){let _0x13165a=_0x2a3189['aggregate_func'];_0x2ac302&&_0x13165a===_0x3f6f24(0x8ae)&&(_0x13165a=_0x3f6f24(0x491));_0x2ac302&&_0x13165a===_0x3f6f24(0xbb2)&&(_0x13165a=_0x3f6f24(0x491));const _0x420203=_0x569645;_0x43fcd9=DataProcessor[_0x3f6f24(0xa37)](_0x43fcd9,_0x77cea7,_0x13165a,_0x420203,this[_0x3f6f24(0x78c)](_0x2a3189)),_0x43fcd9=DataProcessor[_0x3f6f24(0x6da)](_0x43fcd9,_0x77cea7,_0x13165a,_0x4d4e66,_0x420203,(_0x2a3189[_0x3f6f24(0xcad)]||_0x2a3189[_0x3f6f24(0x604)])===_0x3f6f24(0x93c));}}if(_0x2a3189[_0x3f6f24(0x892)]&&_0x43fcd9&&_0x43fcd9[_0x3f6f24(0x2d1)]>0x0&&_0x145f71['includes'](_0x77cea7)&&!_0x2a3189[_0x3f6f24(0x298)]){let _0x1be707=_0x2a3189['aggregate_func'];_0x2ac302&&_0x1be707===_0x3f6f24(0x8ae)&&(_0x1be707=_0x3f6f24(0x491));const _0x34c6e4=_0x4bac7e&&_0x4bac7e[_0x3f6f24(0x2d1)]>0x0?_0x4bac7e[_0x4bac7e[_0x3f6f24(0x2d1)]-0x1]['t']:null;_0x43fcd9=DataProcessor[_0x3f6f24(0x53e)](_0x43fcd9,_0x77cea7,_0x1be707,{'endMs':_0x4d4e66,'lastRawT':_0x34c6e4,'tz':_0x569645});}else _0x2a3189['statistic_id']&&_0x43fcd9&&_0x43fcd9[_0x3f6f24(0x2d1)]>0x0&&_0x145f71[_0x3f6f24(0x2cf)](_0x77cea7)&&_0x2a3189[_0x3f6f24(0x298)]&&(_0x43fcd9=DataProcessor[_0x3f6f24(0x9ed)](_0x43fcd9,_0x77cea7,{'tz':_0x569645}));_0x43fcd9=DataProcessor['applyPostBucketTransform'](_0x43fcd9,_0x2a3189,!!_0x2a3189[_0x3f6f24(0xa08)]);if(_0x58865f>0x0&&Array[_0x3f6f24(0x707)](_0x43fcd9)&&_0x43fcd9['length']){_0xa4ab30=DataProcessor['computeMovingAverages'](_0x43fcd9,_0x2a3189);if(_0xa4ab30){for(const _0x2605f9 of _0xa4ab30)_0x2605f9[_0x3f6f24(0xaee)]=_0x2605f9[_0x3f6f24(0xaee)][_0x3f6f24(0x56d)](_0x178f5b=>_0x178f5b['t']>=_0x4272af);}_0x43fcd9=_0x43fcd9[_0x3f6f24(0x56d)](_0x31db63=>_0x31db63['t']>=_0x4272af);}}return{'points':_0x43fcd9,'maSeries':_0xa4ab30};}[_0x236d40(0x8b1)](_0x3dcf32,_0x2e899d,_0x5d78ea,_0x15feb7,_0x377c69){const _0x10fead=_0x236d40;if(!_0x2e899d||!_0x2e899d[_0x10fead(0xaa5)]||_0x2e899d[_0x10fead(0x892)])return _0x3dcf32;if(_0x2e899d['fixed_value']||_0x2e899d[_0x10fead(0x204)])return _0x3dcf32;if(!this[_0x10fead(0x4e5)](_0x2e899d))return _0x3dcf32;if(!this[_0x10fead(0x65b)]())return _0x3dcf32;if(resolveOffsetHours(_0x2e899d[_0x10fead(0x632)],this[_0x10fead(0xd0e)])!==0x0)return _0x3dcf32;const _0x42661b=_0x2e899d[_0x10fead(0x743)];if(_0x42661b!==_0x10fead(0x75d)&&_0x42661b!==_0x10fead(0x319)&&_0x42661b!==_0x10fead(0x6fe)&&_0x42661b!==_0x10fead(0x9f4))return _0x3dcf32;const _0x58e55e=this[_0x10fead(0xd0e)]?.[_0x10fead(0x869)]?.[_0x2e899d[_0x10fead(0xaa5)]];if(!_0x58e55e||_0x58e55e[_0x10fead(0xb91)]===_0x10fead(0x679)||_0x58e55e[_0x10fead(0xb91)]===_0x10fead(0x511))return _0x3dcf32;const _0x3ff3fb=this[_0x10fead(0x31c)](_0x2e899d,_0x5d78ea),_0x3433c6=_0x3ff3fb?getAttributePath(_0x58e55e['attributes'],_0x3ff3fb):_0x58e55e[_0x10fead(0xb91)],_0x4a6e0f=toNum(_0x3433c6);if(_0x4a6e0f===null)return _0x3dcf32;const _0xa8d999=_0x58e55e[_0x10fead(0x25e)]||_0x58e55e['last_changed']||null;let _0x1e2d01=_0xa8d999?new Date(_0xa8d999)['getTime']():Date[_0x10fead(0x8c9)]();if(!(_0x1e2d01>=_0x15feb7&&_0x1e2d01<_0x377c69))_0x1e2d01=_0x377c69-0x1;if(_0x1e2d01<_0x15feb7)return _0x3dcf32;const _0x193a2b=Array['isArray'](_0x3dcf32)?_0x3dcf32[_0x10fead(0x670)]():[];return _0x193a2b[_0x10fead(0x2c1)]({'t':_0x1e2d01,'v':_0x4a6e0f}),_0x193a2b;}[_0x236d40(0xc2f)](_0x1b340d){const _0x44d736=_0x236d40,_0x5c210a=this[_0x44d736(0x857)],_0x4bbbe0=_0x1b340d[_0x44d736(0xaa5)],_0x285ba0=this['_window'][_0x44d736(0x5da)][_0x44d736(0x3f2)](),_0x28f937=this[_0x44d736(0x3cf)][_0x44d736(0x538)][_0x44d736(0x3f2)](),_0x2c5f4f=(_0x28f937-_0x285ba0)/0x36ee80,_0x4fa88d=this[_0x44d736(0x326)](_0x2c5f4f),_0x27c74c=this['_entities']['indexOf'](_0x4bbbe0),_0x423382=this['_liveStateRaw'](_0x1b340d[_0x44d736(0x447)],_0x4bbbe0,_0x27c74c,_0x285ba0,_0x28f937),{points:_0x55123c,maSeries:_0x4fb870}=this[_0x44d736(0xac0)](_0x423382,_0x4bbbe0,_0x1b340d[_0x44d736(0x566)],_0x285ba0,_0x28f937,_0x4fa88d);_0x1b340d[_0x44d736(0xaee)]=_0x55123c;const _0x568b98=this[_0x44d736(0xac4)]>0x0?this[_0x44d736(0xac4)]:0x320,_0xbdfb52=Math[_0x44d736(0x9f4)](0xbb8,Math['max'](0x190,_0x568b98*0x2));_0x1b340d[_0x44d736(0x94c)]=_0x4fb870??DataProcessor[_0x44d736(0x445)](_0x1b340d[_0x44d736(0xaee)],_0x1b340d[_0x44d736(0xaa5)]),_0x1b340d['points']&&_0x1b340d[_0x44d736(0xaee)][_0x44d736(0x2d1)]>_0xbdfb52&&(_0x1b340d[_0x44d736(0xaee)]=DataProcessor['lttbDownsample'](_0x1b340d[_0x44d736(0xaee)],_0xbdfb52)),_0x1b340d[_0x44d736(0x67f)]=resolveBucketPrecision(_0x1b340d['points']),_0x1b340d[_0x44d736(0x369)]=![];}[_0x236d40(0x901)](){const _0x572935=_0x236d40,_0x3e7690=new Set([_0x572935(0xbb2),_0x572935(0x8ae),_0x572935(0xb20)]);return(this[_0x572935(0x721)]||[])['some'](_0x237178=>_0x237178&&_0x3e7690['has'](_0x237178[_0x572935(0x743)]));}[_0x236d40(0x7b2)](){const _0x9b60f8=_0x236d40;if(!this[_0x9b60f8(0x65b)]())return;if(this[_0x9b60f8(0x901)]()){this[_0x9b60f8(0xa45)]();return;}this[_0x9b60f8(0xbbe)]=!![],this['_flushLiveBuffer']();}['_render'](){const _0x2bf51b=_0x236d40;if(!this[_0x2bf51b(0x857)])return;this['_buildStructure']();if(this[_0x2bf51b(0x945)]?.[_0x2bf51b(0x668)]?.['length']){const _0x13d7ff=!!this[_0x2bf51b(0x857)][_0x2bf51b(0xc21)];if(!(this['_autoHideApplied']instanceof Map))this['_autoHideApplied']=new Map();const _0x5f0913=this[_0x2bf51b(0x36f)]instanceof Set?this[_0x2bf51b(0x36f)]:null;for(const _0x45203c of this[_0x2bf51b(0x945)][_0x2bf51b(0x668)]){const _0x22bd15=_0x45203c[_0x2bf51b(0xaa5)]?.[_0x2bf51b(0x225)],_0x10fce8=_0x13d7ff?_0x2bf51b(0x3bc):_0x22bd15===!![]?!![]:_0x22bd15===![]?![]:'__visible__',_0x490912=this[_0x2bf51b(0x729)][_0x2bf51b(0x620)](_0x45203c['id'])?this[_0x2bf51b(0x729)]['get'](_0x45203c['id']):_0x2bf51b(0xc67),_0x15a778=_0x5f0913?.[_0x2bf51b(0x620)](_0x45203c['id']);if(_0x5f0913)_0x5f0913[_0x2bf51b(0xacc)](_0x45203c['id']);if(_0x10fce8===_0x490912&&!_0x15a778)continue;_0x10fce8===_0x2bf51b(0x3bc)||_0x10fce8===!![]?this[_0x2bf51b(0x844)][_0x2bf51b(0x412)](_0x45203c['id']):(_0x10fce8===![]||_0x490912==='__card__'||_0x490912===!![]||_0x15a778)&&this[_0x2bf51b(0x844)]['delete'](_0x45203c['id']),this[_0x2bf51b(0x729)][_0x2bf51b(0x907)](_0x45203c['id'],_0x10fce8);}}const _0x45e5ba=!!this['_config'][_0x2bf51b(0x623)]&&(this[_0x2bf51b(0x857)][_0x2bf51b(0xc9c)]||'timeline')===_0x2bf51b(0xd06);if(_0x45e5ba){this[_0x2bf51b(0x60b)]();return;}this[_0x2bf51b(0x70d)](),this[_0x2bf51b(0x643)](),this['_renderIntervalPicker'](),this['_renderAttributeList'](),this[_0x2bf51b(0x52a)](),this[_0x2bf51b(0x902)]();const _0x301fca=this[_0x2bf51b(0x9a3)][_0x2bf51b(0x2e5)](_0x2bf51b(0x405));if(!_0x301fca)return;const _0x369b85=this[_0x2bf51b(0x9a3)][_0x2bf51b(0x2e5)](_0x2bf51b(0x5ab));if(_0x369b85)_0x369b85[_0x2bf51b(0xd15)][_0x2bf51b(0x57b)](_0x2bf51b(0xb2a));this[_0x2bf51b(0xab4)]();if(!this[_0x2bf51b(0x945)]){_0x301fca['innerHTML']=_0x2bf51b(0xa7d),this[_0x2bf51b(0xc42)]='';return;}const _0x283a36=this[_0x2bf51b(0x857)]['chart_mode']||'timeline',_0x4830bf=new Set([_0x2bf51b(0x258),_0x2bf51b(0x518),_0x2bf51b(0x36d),_0x2bf51b(0x80c),_0x2bf51b(0x6bd),_0x2bf51b(0x5b3),'calendar',_0x2bf51b(0x979),_0x2bf51b(0xc25),'box','waterfall',_0x2bf51b(0x386)]);if(_0x369b85){if(_0x4830bf['has'](_0x283a36))_0x369b85['classList'][_0x2bf51b(0x412)]('sgc-no-bleed');else _0x369b85['classList'][_0x2bf51b(0x57b)](_0x2bf51b(0x5d9));}const _0x4045fe=this[_0x2bf51b(0x323)](_0x283a36),_0x36de6e=this[_0x2bf51b(0x9ad)](_0x283a36);if(_0x36de6e&&_0x36de6e===this[_0x2bf51b(0xc42)]&&_0x301fca[_0x2bf51b(0x4ea)]){this[_0x2bf51b(0xa23)]();return;}this['_graphFingerprint']=_0x36de6e,this[_0x2bf51b(0xa23)]();try{let _0x17aa99=this[_0x2bf51b(0x945)]['series'][_0x2bf51b(0x56d)](_0x2d53f4=>!this[_0x2bf51b(0x844)]['has'](_0x2d53f4['id'])&&_0x2d53f4[_0x2bf51b(0xaa5)]?.[_0x2bf51b(0x786)]!==![]);const _0x26a567=this[_0x2bf51b(0x857)][_0x2bf51b(0x818)],_0x100515=this[_0x2bf51b(0x857)][_0x2bf51b(0x30a)],_0x7d2471=resolveDynamicValue(_0x26a567,this[_0x2bf51b(0xd0e)])??toNum(_0x26a567),_0x301700=resolveDynamicValue(_0x100515,this['_hass'])??toNum(_0x100515);if(isNum(_0x7d2471)||isNum(_0x301700)){const _0x215ef0=isNum(_0x7d2471)?_0x7d2471:0x0,_0x36c944=isNum(_0x301700)?_0x301700:0x18;_0x17aa99=_0x17aa99[_0x2bf51b(0x5f7)](_0x206229=>{const _0x5a1476=_0x2bf51b,_0xe7387f=_0x206229[_0x5a1476(0xaee)][_0x5a1476(0x5f7)](_0x36eed3=>{const _0x3b3016=_0x5a1476;if(_0x36eed3['v']===null)return _0x36eed3;const _0x49399b=new Date(_0x36eed3['t']),_0x1c9eed=_0x49399b[_0x3b3016(0x69b)]()+_0x49399b[_0x3b3016(0x5ef)]()/0x3c;if(_0x1c9eed<_0x215ef0||_0x1c9eed>=_0x36c944)return{..._0x36eed3,'v':null};return _0x36eed3;});return{..._0x206229,'points':_0xe7387f};});}_0x4045fe['render'](_0x301fca,_0x17aa99,this[_0x2bf51b(0x857)],this[_0x2bf51b(0xd0e)]);}catch(_0x38f74b){console[_0x2bf51b(0x926)](_0x2bf51b(0xb9d),_0x38f74b),_0x301fca['innerHTML']='Render\x20error:\x20'+escapeHtml(_0x38f74b[_0x2bf51b(0x9d2)])+'',this[_0x2bf51b(0xc42)]='';}const _0x57aaac=(this[_0x2bf51b(0x721)]||[])[_0x2bf51b(0x37b)](_0x23a461=>_0x23a461?.['show_extrema']==='click');_0x57aaac&&_0x369b85&&!_0x369b85[_0x2bf51b(0xaba)]&&(_0x369b85[_0x2bf51b(0xaba)]=!![],_0x369b85[_0x2bf51b(0xa28)][_0x2bf51b(0x72a)]='pointer',_0x369b85['addEventListener'](_0x2bf51b(0x505),_0x4ee020=>{const _0x659071=_0x2bf51b;if(_0x4ee020[_0x659071(0x2cb)]?.[_0x659071(0xa63)]?.('.sgc-zoom-brush,\x20.sgc-zoom-brush-label'))return;this['_showExtremaOnClick']=!this[_0x659071(0x2b1)],this[_0x659071(0xc42)]='',this[_0x659071(0x917)]();})),this[_0x2bf51b(0xaa7)]();}[_0x236d40(0xaa7)](){const _0x493584=_0x236d40,_0x40a4ba=this[_0x493584(0x9a3)];if(!_0x40a4ba)return;const _0x5bb8a3=_0x40a4ba['querySelector'](_0x493584(0x5ab));if(!_0x5bb8a3)return;_0x5bb8a3[_0x493584(0x21a)](_0x493584(0xb93))[_0x493584(0x366)](_0x4ffee4=>_0x4ffee4[_0x493584(0x57b)]());const _0x474a3c=this[_0x493584(0x857)];if(!_0x474a3c[_0x493584(0xb27)])return;const _0x2aa62e=(this[_0x493584(0x721)]||[])[_0x493584(0x56d)](_0x747ec5=>_0x747ec5[_0x493584(0x481)]!==![]||_0x747ec5['show_graph']!==![]),_0x15fcc0=this[_0x493584(0x945)]?.[_0x493584(0x668)]||[],_0x528cf5=new Map(_0x15fcc0[_0x493584(0x5f7)](_0x5cecd1=>[_0x5cecd1['id'],_0x5cecd1])),_0x431cf5=_0x3c8cc9=>{const _0x2d4aa2=_0x493584;let _0x163a16=0x0;for(const _0xbb9af2 of this['_entities']||[]){const _0x3fb4cc=_0xbb9af2[_0x2d4aa2(0xbc3)]===_0x2d4aa2(0x372);if(_0x3c8cc9===_0x2d4aa2(0x372)&&_0x3fb4cc||_0x3c8cc9===_0x2d4aa2(0xc82)&&!_0x3fb4cc){if(_0xbb9af2[_0x2d4aa2(0x7ff)])return _0xbb9af2[_0x2d4aa2(0x7ff)];const _0x268582=_0xbb9af2['entity']+'__'+_0x163a16,_0x33f46f=_0x528cf5[_0x2d4aa2(0x66a)](_0x268582)||_0x15fcc0[_0x2d4aa2(0x696)](_0x2e2e25=>_0x2e2e25[_0x2d4aa2(0xaa5)]===_0xbb9af2),_0x2ca0ce=_0x33f46f?.[_0x2d4aa2(0x76b)]?.['unit_of_measurement']||this[_0x2d4aa2(0xd0e)]?.['states']?.[_0xbb9af2['entity']]?.[_0x2d4aa2(0xbb4)]?.[_0x2d4aa2(0xc08)];if(_0x2ca0ce)return _0x2ca0ce;}_0x163a16++;}return'';},_0x308c66=(this[_0x493584(0x721)]||[])[_0x493584(0x37b)](_0x58e348=>_0x58e348['y_axis']===_0x493584(0x372)),_0xa9450f=this[_0x493584(0x265)]??0x8,_0x2a902c=this['_lastPadB']??0x8,_0x561643=(_0xa9450f-_0x2a902c)/0x2,_0x2eb969=[_0x493584(0x773)+_0x561643+_0x493584(0x87a)];if(_0x474a3c[_0x493584(0x927)]){const _0x2c2195=String(_0x474a3c['y_axis_font_size']);_0x2eb969[_0x493584(0x2c1)](_0x493584(0x4e2)+(/[a-z%]$/i['test'](_0x2c2195)?_0x2c2195:_0x2c2195+'px'));}_0x474a3c[_0x493584(0x651)]&&_0x2eb969[_0x493584(0x2c1)](_0x493584(0xbe3)+_0x474a3c[_0x493584(0x651)]);const _0x400d85=toNum(_0x474a3c[_0x493584(0x486)]);isNum(_0x400d85)&&_0x2eb969[_0x493584(0x2c1)](_0x493584(0x9da)+_0x400d85);const _0x587ad7=_0x2eb969[_0x493584(0x358)](';\x20')+';';{const _0xd05941=_0x474a3c[_0x493584(0xb51)],_0x331549=_0xd05941!=null&&_0xd05941!==''?_0xd05941:_0x431cf5(_0x493584(0xc82));if(_0x331549){const _0x217110=document[_0x493584(0x1a8)](_0x493584(0x1ca));_0x217110[_0x493584(0x739)]=_0x493584(0xbc0),_0x217110[_0x493584(0xa28)][_0x493584(0x27b)]=_0x587ad7,_0x217110[_0x493584(0x7a4)]=_0x331549,_0x5bb8a3[_0x493584(0x20b)](_0x217110);}}if(_0x308c66){const _0x1372d7=_0x474a3c[_0x493584(0x496)],_0x149ebb=_0x1372d7!=null&&_0x1372d7!==''?_0x1372d7:_0x431cf5(_0x493584(0x372));if(_0x149ebb){const _0x264156=document[_0x493584(0x1a8)]('div');_0x264156[_0x493584(0x739)]=_0x493584(0x621),_0x264156[_0x493584(0xa28)][_0x493584(0x27b)]=_0x587ad7,_0x264156['textContent']=_0x149ebb,_0x5bb8a3[_0x493584(0x20b)](_0x264156);}}}[_0x236d40(0x60b)](){const _0x25beac=_0x236d40,_0x5dbf27=this['shadowRoot'];if(!_0x5dbf27)return;for(const _0x16b383 of[_0x25beac(0x8e3),_0x25beac(0x7e3),_0x25beac(0x617),_0x25beac(0xb9c),_0x25beac(0x63a),'.sgc-state-wrap','.sgc-legend-wrap','.sgc-detail-legend-wrap']){const _0x113809=_0x5dbf27['querySelector'](_0x16b383);if(_0x113809)_0x113809[_0x25beac(0x812)]='';}const _0x4d7af2=_0x5dbf27[_0x25beac(0x2e5)]('.sgc-plot-wrap'),_0x468a23=_0x5dbf27['querySelector']('.sgc-plot');if(!_0x4d7af2||!_0x468a23)return;_0x4d7af2[_0x25beac(0xd15)][_0x25beac(0x412)]('sgc-spark-mode'),_0x468a23[_0x25beac(0xa28)]['height']=_0x25beac(0x54e),_0x468a23[_0x25beac(0xd15)]['remove']('sgc-plot-scroll','sgc-plot-scroll-wheel');const _0x24213d=this[_0x25beac(0xd0e)],_0x59fa43=this[_0x25beac(0x721)]||[],_0x1473c3=this['_graphData']?.['series']||[],_0x28a513=new Map(_0x1473c3['map'](_0x1bc2ae=>[_0x1bc2ae['id'],_0x1bc2ae])),_0x595682=_0x59fa43['filter'](_0x12bf7d=>_0x12bf7d[_0x25beac(0x481)]!==![]||_0x12bf7d[_0x25beac(0x786)]!==![])[_0x25beac(0x5f7)](_0x350926=>{const _0x483eca=_0x25beac,_0x54da69=_0x59fa43[_0x483eca(0x2ce)](_0x350926),_0x3541c4=_0x350926[_0x483eca(0xaa5)]+'__'+_0x54da69,_0x1df371=_0x28a513['get'](_0x3541c4)||_0x1473c3[_0x483eca(0x696)](_0x7952a0=>_0x7952a0[_0x483eca(0xaa5)]===_0x350926),_0x1ed326=_0x1df371?.[_0x483eca(0x76b)]||{},_0x5041ae=pickName(_0x350926[_0x483eca(0x858)],_0x1ed326['resolved_name'],_0x1ed326)??_0x350926[_0x483eca(0xaa5)],_0x49107c=_0x350926[_0x483eca(0x7ff)]||_0x1ed326[_0x483eca(0xc08)]||'';let _0x1e7c53=this[_0x483eca(0xae6)](_0x350926[_0x483eca(0x6f8)])||_0x350926[_0x483eca(0x6f8)]||_0x483eca(0x55a);const _0x399f82=this[_0x483eca(0x5bd)](_0x350926,_0x54da69),_0x3d4a0a=isNum(_0x399f82?.[_0x483eca(0xb68)])?_0x399f82[_0x483eca(0xb68)]:null,_0x39320d=_0x399f82?.[_0x483eca(0x4c6)]??'—';_0x350926[_0x483eca(0x6f8)]===_0x483eca(0x817)&&_0x350926[_0x483eca(0x279)]?.[_0x483eca(0x4e9)]&&_0x350926[_0x483eca(0x279)]?.[_0x483eca(0x91d)]?.[_0x483eca(0x2d1)]&&isNum(_0x3d4a0a)&&(_0x1e7c53=resolveValueColor(_0x3d4a0a,this[_0x483eca(0xb24)](_0x350926),_0x1e7c53)||_0x1e7c53);const _0x40478a=_0x1df371?.['points']?.['filter'](_0x3fb32b=>_0x3fb32b['v']!==null&&_0x3fb32b['v']!==undefined)||[];let _0x51dbfa='',_0x31c33a='';if(_0x40478a[_0x483eca(0x2d1)]>=0x2){const _0x7828ed=0x78,_0x18f76f=0x24;let _0x1d6001=Infinity,_0x4a49d6=-Infinity;for(const _0x51e514 of _0x40478a){if(_0x51e514['v']<_0x1d6001)_0x1d6001=_0x51e514['v'];if(_0x51e514['v']>_0x4a49d6)_0x4a49d6=_0x51e514['v'];}_0x4a49d6===_0x1d6001&&(_0x4a49d6=_0x1d6001+0x1,_0x1d6001-=0x1);const _0xf9905b=_0x40478a[0x0]['t'],_0x23bf4d=_0x40478a[_0x40478a['length']-0x1]['t'],_0x2ef1bf=Math[_0x483eca(0x6fe)](0x1,_0x23bf4d-_0xf9905b),_0x23d4de=_0x207412=>(_0x207412-_0xf9905b)/_0x2ef1bf*_0x7828ed,_0xdc80a4=_0x350926[_0x483eca(0x460)]!==![],_0x1fc9df=_0xdc80a4?0x6:0x2,_0xe9b647=_0x31f855=>_0x18f76f-_0x1fc9df-(_0x31f855['v']-_0x1d6001)/(_0x4a49d6-_0x1d6001)*(_0x18f76f-_0x1fc9df*0x2),_0xab6ad=_0xdc80a4?buildSmoothPath(_0x40478a,_0x23d4de,_0xe9b647):buildLinearPath(_0x40478a,_0x23d4de,_0xe9b647),_0x140733=_0xab6ad+_0x483eca(0xa0d)+_0x7828ed+'\x20'+_0x18f76f+_0x483eca(0x487)+_0x18f76f+'\x20Z',_0x39bcef=_0x350926[_0x483eca(0x675)]!==![],_0x3a45a4=toNum(_0x350926[_0x483eca(0xbc8)])||0x1,_0x13fb92=lineDashArray(_0x350926[_0x483eca(0x88f)],_0x3a45a4),_0x4fa4a3=_0x13fb92?_0x483eca(0x936)+_0x13fb92+'\x22':'',_0x49077b=_0x39bcef?_0x483eca(0x767):'0',_0x4a78e5=!!(_0x350926[_0x483eca(0x279)]?.[_0x483eca(0x4e9)]&&_0x350926[_0x483eca(0x279)]?.['values']?.['length']),_0x50b6e7=_0x350926[_0x483eca(0x279)]?.['direction']===_0x483eca(0x5ce)?_0x483eca(0x5ce):_0x483eca(0x613),_0x5d1b74=_0x350926['color_thresholds']?.[_0x483eca(0x38b)]!=='hard';let _0xb274c3=_0x483eca(0x3db)+escapeHtml(_0x1e7c53)+'\x22',_0x171856=_0x483eca(0x8ed)+escapeHtml(_0x1e7c53)+_0x483eca(0xa05)+_0x49077b+'\x22';if(_0x4a78e5){const _0x318ffd=[...this[_0x483eca(0xb24)](_0x350926)][_0x483eca(0x56d)](_0x4eb42f=>isNum(toNum(_0x4eb42f[_0x483eca(0x4be)]))&&_0x4eb42f['color'])[_0x483eca(0xc70)]((_0x4daa13,_0x1a23a2)=>toNum(_0x4daa13[_0x483eca(0x4be)])-toNum(_0x1a23a2[_0x483eca(0x4be)]));if(_0x318ffd[_0x483eca(0x2d1)]){if(_0x350926[_0x483eca(0x279)]['last_color']){const _0x7ef06c=_0x40478a[_0x40478a['length']-0x1]?.['v'];if(isNum(_0x7ef06c)){const _0x3a29e3=resolveValueColor(_0x7ef06c,_0x318ffd,_0x1e7c53);_0xb274c3=_0x483eca(0x3db)+escapeHtml(_0x3a29e3)+'\x22',_0x171856='fill=\x22'+escapeHtml(_0x3a29e3)+_0x483eca(0xa05)+_0x49077b+'\x22';}}else{if(_0x50b6e7===_0x483eca(0x5ce)){let _0xc31aef='',_0x1b852a='';for(let _0x5c5d8f=0x0;_0x5c5d8f<_0x40478a[_0x483eca(0x2d1)]-0x1;_0x5c5d8f++){const _0x252c19=_0x40478a[_0x5c5d8f]['v'],_0x25604f=_0x40478a[_0x5c5d8f+0x1]['v'],_0x3076f8=(_0x252c19+_0x25604f)/0x2,_0x59b76d=resolveValueColor(_0x3076f8,_0x318ffd,_0x1e7c53,_0x5d1b74),_0x3ade72=_0x23d4de(_0x40478a[_0x5c5d8f]['t']),_0x496299=_0xe9b647(_0x40478a[_0x5c5d8f]),_0x7f2d4f=_0x23d4de(_0x40478a[_0x5c5d8f+0x1]['t']),_0x150f08=_0xe9b647(_0x40478a[_0x5c5d8f+0x1]);_0xc31aef+=_0x483eca(0x934)+_0x3ade72+_0x483eca(0x524)+_0x496299+_0x483eca(0x97a)+_0x7f2d4f+'\x22\x20y2=\x22'+_0x150f08+_0x483eca(0x488)+escapeHtml(_0x59b76d)+_0x483eca(0x406)+_0x3a45a4+'\x22'+_0x4fa4a3+_0x483eca(0x8e4),_0x1b852a+=_0x483eca(0xa98)+_0x3ade72+'\x20'+_0x496299+'\x20L\x20'+_0x7f2d4f+'\x20'+_0x150f08+_0x483eca(0xa0d)+_0x7f2d4f+'\x20'+_0x18f76f+_0x483eca(0xa0d)+_0x3ade72+'\x20'+_0x18f76f+'\x20Z\x22\x20fill=\x22'+escapeHtml(_0x59b76d)+'\x22\x20fill-opacity=\x22'+_0x49077b+_0x483eca(0xc65);}_0x51dbfa=_0x483eca(0xa04)+_0x7828ed+'\x20'+_0x18f76f+_0x483eca(0x84c)+_0x1b852a+_0xc31aef+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';}else{const _0xa660ec=_0x4a49d6-_0x1d6001||0x1,_0x49e6fc=_0x483eca(0x956)+_0x54da69,_0x2f2f35=[],_0x579ecd=[..._0x318ffd]['reverse']();_0x2f2f35[_0x483eca(0x2c1)](_0x483eca(0x428)+escapeHtml(_0x579ecd[0x0][_0x483eca(0x6f8)])+_0x483eca(0x976));if(!_0x5d1b74)for(let _0x3b7032=0x0;_0x3b7032<_0x579ecd[_0x483eca(0x2d1)];_0x3b7032++){const _0x469c85=((_0x4a49d6-toNum(_0x579ecd[_0x3b7032]['value']))/_0xa660ec*0x64)['toFixed'](0x1);_0x2f2f35[_0x483eca(0x2c1)](_0x483eca(0x2c3)+_0x469c85+_0x483eca(0x6a8)+escapeHtml(_0x579ecd[_0x3b7032][_0x483eca(0x6f8)])+_0x483eca(0x976));const _0x3d3a55=_0x3b7032<_0x579ecd['length']-0x1?_0x579ecd[_0x3b7032+0x1]['color']:_0x579ecd[_0x3b7032][_0x483eca(0x6f8)];_0x2f2f35['push'](_0x483eca(0x2c3)+_0x469c85+_0x483eca(0x6a8)+escapeHtml(_0x3d3a55)+'\x22/>');}else for(const _0x27b15c of _0x579ecd){const _0x21e9a1=((_0x4a49d6-toNum(_0x27b15c[_0x483eca(0x4be)]))/_0xa660ec*0x64)[_0x483eca(0x669)](0x1);_0x2f2f35[_0x483eca(0x2c1)]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20';}}}}!_0x51dbfa&&(_0x51dbfa=_0x483eca(0xa04)+_0x7828ed+'\x20'+_0x18f76f+_0x483eca(0x646)+_0x140733+'\x22\x20'+_0x171856+_0x483eca(0x245)+_0xab6ad+_0x483eca(0xb5e)+_0xb274c3+_0x483eca(0x9cd)+_0x3a45a4+'\x22'+_0x4fa4a3+_0x483eca(0x596));if(_0x350926[_0x483eca(0x4e4)]){const _0x597862=trendDirection(_0x1df371,_0x350926),_0x26ce59=_0x597862==='up'?'▲':_0x597862===_0x483eca(0x348)?'▼':'─',_0xc4e09a=_0x597862==='up'?_0x350926[_0x483eca(0x602)]||_0x483eca(0x90e):_0x597862===_0x483eca(0x348)?_0x350926['trend_down_color']||_0x483eca(0x71e):_0x350926[_0x483eca(0xa9a)]||_0x483eca(0x6b9);_0x31c33a=_0x483eca(0xa9d)+_0xc4e09a+'\x22>'+_0x26ce59+'';}}const _0x5b8629=_0x350926[_0x483eca(0x481)]!==![],_0x511866=_0x350926[_0x483eca(0x786)]!==![],_0xa2363f=_0x5b8629?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+escapeHtml(_0x5041ae)+_0x483eca(0x9ca)+escapeHtml(_0x1e7c53)+'\x22>'+escapeHtml(String(_0x39320d))+_0x483eca(0x6e9)+escapeHtml(_0x49107c)+_0x483eca(0x891)+_0x31c33a+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20':'',_0x12cbcb=_0x511866?_0x483eca(0x5d4)+_0x51dbfa+_0x483eca(0xcc8):'';return _0x483eca(0x593)+_0xa2363f+_0x12cbcb+_0x483eca(0xcc8);})[_0x25beac(0x358)]('');_0x468a23[_0x25beac(0x812)]=''+_0x595682+'',this['_graphFingerprint']='';}[_0x236d40(0x9ad)](_0xbb6060){const _0x30010b=_0x236d40,_0x1a5d36=this['_graphData'];if(!_0x1a5d36)return'';const _0x23ce6b=this[_0x30010b(0x3cf)],_0x3c8715=this[_0x30010b(0x296)],_0x27fd35=this['shadowRoot']?.[_0x30010b(0x2e5)]?.('.sgc-plot'),_0x519f72=_0x27fd35?.[_0x30010b(0x1de)]|0x0,_0x551255=this['offsetWidth']|0x0,_0x2682f5=resolveDisplayTimeZone(this[_0x30010b(0xd0e)],this[_0x30010b(0x857)])||_0x30010b(0x519),_0x2a3857=_0x551255+'/'+_0x519f72+'/'+_0x2682f5+'/'+resolveCardLanguage(this[_0x30010b(0xd0e)],this[_0x30010b(0x857)]),_0x112d18=(_0x1a5d36['series']||[])[_0x30010b(0x5f7)](_0x2b2335=>_0x2b2335['id']+':'+(_0x2b2335['points']?.['length']||0x0)+':'+(_0x2b2335[_0x30010b(0xaee)]?.[_0x2b2335[_0x30010b(0xaee)][_0x30010b(0x2d1)]-0x1]?.['t']||0x0)+':'+(_0x2b2335[_0x30010b(0xaee)]?.[_0x2b2335['points'][_0x30010b(0x2d1)]-0x1]?.['v']??''))['join']('|'),_0x458777=(this['_entities']||[])[_0x30010b(0x5f7)](_0x57fffd=>''+(_0x57fffd?.[_0x30010b(0x6c5)]?'a':'')+(_0x57fffd?.['show_range_band']?'b':'')+(_0x57fffd?.['show_extrema']||'')+(Array['isArray'](_0x57fffd?.[_0x30010b(0xb29)])&&_0x57fffd[_0x30010b(0xb29)][_0x30010b(0x2d1)]?'m'+_0x57fffd[_0x30010b(0xb29)][_0x30010b(0x5f7)](_0x4776c5=>_0x4776c5?.[_0x30010b(0x877)]+':'+(_0x4776c5?.[_0x30010b(0x6f8)]||'')+':'+(_0x4776c5?.[_0x30010b(0x8da)]||'')+':'+(_0x4776c5?.[_0x30010b(0x385)]?'L':''))['join'](','):''))[_0x30010b(0x358)](','),_0x509b43=[...this[_0x30010b(0x844)]][_0x30010b(0xc70)]()[_0x30010b(0x358)](','),_0x3d298b=this['_resolvedEntityAnnotations']?.[_0x30010b(0x2d1)]||0x0,_0x5ec417='xc:'+(this[_0x30010b(0x2b1)]?0x1:0x0),_0x4930f2=_0x30010b(0x8fd)+(this['_entities']||[])[_0x30010b(0x5f7)]((_0x3929fa,_0x1d5e0a)=>_0x3929fa?.[_0x30010b(0xbc3)]===_0x30010b(0xa1a)?_0x1d5e0a:'')['filter'](Boolean)['join'](',');return[_0xbb6060,_0x2a3857,this[_0x30010b(0x857)]['sparkline']?'spark':_0x30010b(0x7fd),this['_config'][_0x30010b(0x9c1)]?_0x30010b(0x25a):'',this['_config'][_0x30010b(0x98e)]?_0x30010b(0x557):'',_0x30010b(0xb30)+(this[_0x30010b(0x857)][_0x30010b(0xc1b)]??''),_0x30010b(0x618)+(this[_0x30010b(0x857)][_0x30010b(0xa92)]!==![]?0x1:0x0)+'|'+(this['_config'][_0x30010b(0x205)]||'')+'|'+(this['_config'][_0x30010b(0x4ba)]??'')+'|'+(this[_0x30010b(0x857)]['x_grid_color']||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x22a)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0xb23)]||'')+'|'+(this[_0x30010b(0x857)]['y_grid_width']??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0xa91)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x85b)]??''),this[_0x30010b(0x857)]['show_y_axis_label']?'yl:'+(this[_0x30010b(0x857)]['y_axis_label']||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x496)]||'')+'|'+(this['_config'][_0x30010b(0x927)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x651)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x486)]??''):'',_0xbb6060===_0x30010b(0x258)?_0x30010b(0x568)+(this['_config'][_0x30010b(0x528)]||'')+'|'+(this['_config'][_0x30010b(0x552)]?0x1:0x0)+'|'+(this['_config']['pie_spacing']??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x49a)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x30e)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x715)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x7ab)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x64d)]||'')+'|'+(this['_config']['show_tooltip_total']!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)]['show_tooltip']!==![]?0x1:0x0):'',_0xbb6060==='radialbar'?_0x30010b(0x673)+(this['_config'][_0x30010b(0xa65)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)]['show_tooltip']!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x721)]||[])[_0x30010b(0x5f7)](_0x13d345=>(_0x13d345[_0x30010b(0xad5)]??'')+'/'+(_0x13d345[_0x30010b(0x261)]??''))['join'](','):'',_0xbb6060===_0x30010b(0xc25)?'gauge:'+(this[_0x30010b(0x857)][_0x30010b(0xbfb)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x276)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x608)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x58d)]??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0xa24)]?0x1:0x0)+'|'+(this[_0x30010b(0x857)]['show_tooltip']!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x721)]||[])[_0x30010b(0x5f7)](_0x4c732f=>(_0x4c732f[_0x30010b(0xad5)]??'')+'/'+(_0x4c732f[_0x30010b(0x261)]??'')+'/'+(_0x4c732f[_0x30010b(0x32d)]||'')+'/'+(_0x4c732f['gradient']!==![]?0x1:0x0)+'/'+(_0x4c732f[_0x30010b(0x6f8)]||'')+'/'+(_0x4c732f[_0x30010b(0x279)]?.[_0x30010b(0x4e9)]?0x1:0x0)+'/'+(_0x4c732f[_0x30010b(0x279)]?.[_0x30010b(0x91d)]||[])['map'](_0x37c8b3=>_0x37c8b3['value']+':'+_0x37c8b3[_0x30010b(0x6f8)])['join'](';')+'/'+(_0x4c732f[_0x30010b(0x279)]?.[_0x30010b(0x38b)]||'')+'/'+(_0x4c732f[_0x30010b(0x279)]?.[_0x30010b(0xb48)]?0x1:0x0))['join'](','):'',_0xbb6060===_0x30010b(0x6bd)?_0x30010b(0x364)+(this['_config'][_0x30010b(0x1a5)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0xa65)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0xb59)]!==![]?0x1:0x0):'',_0xbb6060==='scatter'?_0x30010b(0x998)+(this[_0x30010b(0x857)][_0x30010b(0x1d0)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0x6ea)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0xa92)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0xc47)]??'')+'|'+(this['_config']['y_axis_decimals']??'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0xbf4)]||'')+'|'+(this['_config'][_0x30010b(0x651)]||'')+'|'+(this['_config'][_0x30010b(0xc5b)]||'')+'|'+(this[_0x30010b(0x857)][_0x30010b(0x927)]||''):'',_0xbb6060===_0x30010b(0x5b3)||_0xbb6060===_0x30010b(0xabf)?_0x30010b(0xcd1)+_0xbb6060+'|'+(this['_config'][_0x30010b(0xb59)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x721)]?.[0x0]?.['aggregate_func']||'')+'|'+(this[_0x30010b(0x721)]?.[0x0]?.[_0x30010b(0xad5)]??'')+'|'+(this[_0x30010b(0x721)]?.[0x0]?.['upper_bound']??''):'',_0xbb6060===_0x30010b(0x269)?'bx:'+(this[_0x30010b(0x857)][_0x30010b(0xb59)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0x8d3)]||'')+'|'+(this[_0x30010b(0x721)]||[])[_0x30010b(0x5f7)](_0x4977eb=>(_0x4977eb[_0x30010b(0x6f8)]||'')+'/'+(_0x4977eb[_0x30010b(0x9f6)]??'')+'/'+(_0x4977eb[_0x30010b(0x743)]||'')+'/'+(_0x4977eb['number_format']||'')+'/'+(_0x4977eb['unit']||''))[_0x30010b(0x358)](','):'',_0xbb6060===_0x30010b(0xbab)?'wf:'+(this[_0x30010b(0x857)][_0x30010b(0xb59)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0x56e)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x721)]||[])[_0x30010b(0x5f7)](_0x36e9ac=>(_0x36e9ac['color']||'')+'/'+(_0x36e9ac[_0x30010b(0x9f6)]??'')+'/'+(_0x36e9ac['aggregate_func']||'')+'/'+(_0x36e9ac[_0x30010b(0x338)]||'')+'/'+(_0x36e9ac[_0x30010b(0x7ff)]||'')+'/'+(_0x36e9ac[_0x30010b(0x858)]||''))['join'](','):'',_0xbb6060===_0x30010b(0x386)?_0x30010b(0xc57)+(this[_0x30010b(0x857)][_0x30010b(0xb59)]!==![]?0x1:0x0)+'|'+(this['_config'][_0x30010b(0xa65)]!==![]?0x1:0x0)+'|'+(this[_0x30010b(0x857)][_0x30010b(0x980)]??'')+'|'+(this[_0x30010b(0x721)]||[])[_0x30010b(0x5f7)](_0x24e15e=>(_0x24e15e['color']||'')+'/'+(_0x24e15e[_0x30010b(0x9f6)]??'')+'/'+(_0x24e15e[_0x30010b(0x338)]||'')+'/'+(_0x24e15e[_0x30010b(0x7ff)]||''))[_0x30010b(0x358)](','):'',_0x23ce6b?.[_0x30010b(0x5da)]?.[_0x30010b(0x3f2)]()||0x0,_0x23ce6b?.[_0x30010b(0x538)]?.[_0x30010b(0x3f2)]()||0x0,_0x3c8715?.[_0x30010b(0x5da)]?.[_0x30010b(0x3f2)]()||0x0,_0x3c8715?.[_0x30010b(0x538)]?.['getTime']()||0x0,_0x509b43,_0x3d298b,this[_0x30010b(0x2b1)]?0x1:0x0,_0x458777,_0x4930f2,_0x30010b(0x454)+(resolveDynamicValue(this['_config']?.[_0x30010b(0x818)],this[_0x30010b(0xd0e)])??toNum(this[_0x30010b(0x857)]?.[_0x30010b(0x818)])??'')+':'+(resolveDynamicValue(this[_0x30010b(0x857)]?.[_0x30010b(0x30a)],this['_hass'])??toNum(this['_config']?.[_0x30010b(0x30a)])??''),_0x112d18][_0x30010b(0x358)]('§');}[_0x236d40(0x323)](_0x4e608b){const _0x4745c0=_0x236d40;if(this['_renderers']['has'](_0x4e608b))return this[_0x4745c0(0x4ca)][_0x4745c0(0x66a)](_0x4e608b);let _0x664f7d;if(_0x4e608b===_0x4745c0(0xd06))_0x664f7d=new TimelineRenderer(this);else{if(_0x4e608b==='state_timeline')_0x664f7d=new StateTimelineRenderer(this);else{if(_0x4e608b===_0x4745c0(0x258))_0x664f7d=new PieRenderer(this);else{if(_0x4e608b===_0x4745c0(0x518))_0x664f7d=new RadialBarRenderer(this);else{if(_0x4e608b===_0x4745c0(0xc25))_0x664f7d=new GaugeRenderer(this);else{if(_0x4e608b===_0x4745c0(0x36d))_0x664f7d=new PolarAreaRenderer(this);else{if(_0x4e608b===_0x4745c0(0x80c))_0x664f7d=new RadarRenderer(this);else{if(_0x4e608b==='ranking')_0x664f7d=new RankingRenderer(this);else{if(_0x4e608b===_0x4745c0(0xc72))_0x664f7d=new ScatterRenderer(this);else{if(_0x4e608b===_0x4745c0(0x5b3))_0x664f7d=new HeatmapRenderer(this);else{if(_0x4e608b===_0x4745c0(0xabf))_0x664f7d=new CalendarRenderer(this);else{if(_0x4e608b==='box')_0x664f7d=new BoxPlotRenderer(this);else{if(_0x4e608b===_0x4745c0(0xbab))_0x664f7d=new WaterfallRenderer(this);else{if(_0x4e608b===_0x4745c0(0x386))_0x664f7d=new HistogramRenderer(this);else _0x664f7d=new StubRenderer(this,_0x4e608b);}}}}}}}}}}}}}return this[_0x4745c0(0x4ca)][_0x4745c0(0x907)](_0x4e608b,_0x664f7d),_0x664f7d;}[_0x236d40(0xc9d)](){const _0x5f09ba=_0x236d40,_0x4ce15d=this[_0x5f09ba(0x857)][_0x5f09ba(0x3c1)],_0x33460b=_0x4ce15d==null||_0x4ce15d==='auto'||_0x4ce15d==='',_0xb692ad=toNum(this[_0x5f09ba(0x857)][_0x5f09ba(0x3c1)])||0x96,_0x2002c5=_0x33460b?'':'height:'+_0xb692ad+'px;',_0x5e928e=this[_0x5f09ba(0x857)]['card_background_color'],_0x5aa488=this[_0x5f09ba(0x857)][_0x5f09ba(0x26e)]===![],_0xc250cc=this['_config'][_0x5f09ba(0x500)]===![],_0x2dec8b=this[_0x5f09ba(0x857)],_0x59cd15=[];if(_0x5e928e)_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x981)+_0x5e928e);if(_0x5aa488)_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x59e));if(_0xc250cc)_0x59cd15['push']('border:none');if(_0x2dec8b['card_padding']!==null&&_0x2dec8b[_0x5f09ba(0xbd4)]!==undefined&&_0x2dec8b[_0x5f09ba(0xbd4)]!==''){const _0x486786=_0x2dec8b['card_padding'];_0x59cd15['push'](_0x5f09ba(0x81b)+(typeof _0x486786===_0x5f09ba(0x7ad)?_0x486786+'px':_0x486786));}if(_0x2dec8b[_0x5f09ba(0x7ea)]!==null&&_0x2dec8b[_0x5f09ba(0x7ea)]!==undefined&&_0x2dec8b['card_border_radius']!==''){const _0x49b305=_0x2dec8b[_0x5f09ba(0x7ea)];_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x434)+(typeof _0x49b305===_0x5f09ba(0x7ad)?_0x49b305+'px':_0x49b305));}if(!_0xc250cc){if(_0x2dec8b['card_border_color'])_0x59cd15[_0x5f09ba(0x2c1)]('border-color:'+_0x2dec8b[_0x5f09ba(0x1d3)]);if(_0x2dec8b['card_border_width']!==null&&_0x2dec8b[_0x5f09ba(0x54a)]!==undefined&&_0x2dec8b[_0x5f09ba(0x54a)]!==''){const _0x509d58=_0x2dec8b[_0x5f09ba(0x54a)];_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x51a)+(typeof _0x509d58==='number'?_0x509d58+'px':_0x509d58)),_0x59cd15[_0x5f09ba(0x2c1)]('border-style:solid');}}if(_0x2dec8b[_0x5f09ba(0x3c4)]){let _0x226563=String(_0x2dec8b[_0x5f09ba(0x3c4)])[_0x5f09ba(0x900)]();_0x226563&&!/^([a-z]+:|\/|data:)/i[_0x5f09ba(0x1b8)](_0x226563)&&(_0x226563=_0x5f09ba(0x2e8)+_0x226563[_0x5f09ba(0x3de)](/^local\//,''));this[_0x5f09ba(0x977)]=_0x226563;const _0xf8a412=_0x2dec8b[_0x5f09ba(0xbc9)]!==null&&_0x2dec8b[_0x5f09ba(0xbc9)]!==undefined&&_0x2dec8b['card_background_blur']!=='';!_0xf8a412&&(_0x59cd15[_0x5f09ba(0x2c1)]('background-image:url(\x27'+_0x226563['replace'](/'/g,_0x5f09ba(0x7a3))+'\x27)'),_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x9d4)),_0x59cd15[_0x5f09ba(0x2c1)](_0x5f09ba(0x92e)),_0x59cd15[_0x5f09ba(0x2c1)]('background-repeat:no-repeat'));}else this[_0x5f09ba(0x977)]=null;const _0x53c865=_0x59cd15[_0x5f09ba(0x358)](';'),_0x155098=getComputedStyle(document[_0x5f09ba(0xa54)])[_0x5f09ba(0x339)](_0x5f09ba(0x1af))[_0x5f09ba(0x900)]()||_0x5f09ba(0x9b9),_0x47c10e=STYLES[_0x5f09ba(0x3de)](_0x5f09ba(0x2da),':host\x20{\x20display:\x20block;\x20font-family:\x20'+_0x155098+_0x5f09ba(0xd13)),_0x2b9689=[];if(_0x2dec8b['card_header_color'])_0x2b9689[_0x5f09ba(0x2c1)]('color:'+_0x2dec8b[_0x5f09ba(0x272)]);_0x2dec8b[_0x5f09ba(0x420)]!==null&&_0x2dec8b[_0x5f09ba(0x420)]!==undefined&&_0x2dec8b[_0x5f09ba(0x420)]!==''&&_0x2b9689['push']('font-weight:'+_0x2dec8b[_0x5f09ba(0x420)]);if(_0x2dec8b[_0x5f09ba(0x8c2)]!==null&&_0x2dec8b[_0x5f09ba(0x8c2)]!==undefined&&_0x2dec8b[_0x5f09ba(0x8c2)]!==''){const _0x5f0cc0=_0x2dec8b[_0x5f09ba(0x8c2)];_0x2b9689[_0x5f09ba(0x2c1)](_0x5f09ba(0xd08)+(typeof _0x5f0cc0==='number'?_0x5f0cc0+'px':_0x5f0cc0));}let _0x1bbb08=_0x2b9689['length']?_0x5f09ba(0xca5)+_0x2b9689[_0x5f09ba(0x358)](';')+'}':'';const _0xf4930e=_0x2dec8b[_0x5f09ba(0xbc9)]!==null&&_0x2dec8b[_0x5f09ba(0xbc9)]!==undefined&&_0x2dec8b[_0x5f09ba(0xbc9)]!=='';if(this['_normalizedBgImage']&&_0xf4930e){const _0x3a68ae=_0x2dec8b[_0x5f09ba(0xbc9)],_0x5e760f=typeof _0x3a68ae===_0x5f09ba(0x7ad)?_0x3a68ae+'px':_0x3a68ae,_0x5a0c5d=this['_normalizedBgImage']['replace'](/'/g,_0x5f09ba(0x7a3));_0x1bbb08+=_0x5f09ba(0x86a),_0x1bbb08+=_0x5f09ba(0x716)+_0x5a0c5d+'\x27);background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur('+_0x5e760f+_0x5f09ba(0x393),_0x1bbb08+=_0x5f09ba(0x6aa);}const _0x35c0da=this[_0x5f09ba(0x9a3)]['querySelector']('.sgc-card'),_0x1fcc2c=this['shadowRoot']['querySelector'](_0x5f09ba(0x405));if(_0x35c0da&&_0x1fcc2c&&!this[_0x5f09ba(0xcec)]){if((_0x35c0da[_0x5f09ba(0x4fb)]('style')||'')!==_0x53c865){if(_0x53c865)_0x35c0da[_0x5f09ba(0x42d)](_0x5f09ba(0xa28),_0x53c865);else _0x35c0da[_0x5f09ba(0x9bf)]('style');}const _0x14a118=_0x2002c5;if((_0x1fcc2c['getAttribute']('style')||'')!==_0x14a118){if(_0x14a118)_0x1fcc2c[_0x5f09ba(0x42d)](_0x5f09ba(0xa28),_0x14a118);else _0x1fcc2c[_0x5f09ba(0x9bf)](_0x5f09ba(0xa28));}const _0x289f44=this['shadowRoot'][_0x5f09ba(0x2e5)](_0x5f09ba(0xbd8));_0x289f44&&_0x289f44[_0x5f09ba(0x7a4)]!==_0x47c10e&&(_0x289f44[_0x5f09ba(0x7a4)]=_0x47c10e);const _0x3d7903=this[_0x5f09ba(0x9a3)]['querySelector'](_0x5f09ba(0xc9e));if(_0x1bbb08){if(_0x3d7903){if(_0x3d7903[_0x5f09ba(0x7a4)]!==_0x1bbb08)_0x3d7903[_0x5f09ba(0x7a4)]=_0x1bbb08;}else{const _0x18ff24=document[_0x5f09ba(0x1a8)](_0x5f09ba(0xa28));_0x18ff24['id']=_0x5f09ba(0x7df),_0x18ff24[_0x5f09ba(0x7a4)]=_0x1bbb08,this['shadowRoot'][_0x5f09ba(0x73b)](_0x18ff24,_0x35c0da);}}else _0x3d7903&&_0x3d7903[_0x5f09ba(0x57b)]();return;}this[_0x5f09ba(0xcec)]=![];const _0x58ae1f=_0x53c865?_0x5f09ba(0x1ff)+_0x53c865+'\x22':'',_0x501fb3=_0x1bbb08?_0x5f09ba(0x1f2)+_0x1bbb08+_0x5f09ba(0x5e7):'';this[_0x5f09ba(0x9a3)][_0x5f09ba(0x812)]=_0x5f09ba(0xc1f)+_0x47c10e+_0x5f09ba(0x5e7)+_0x501fb3+'\x0a\x20\x20\x20\x20\x20\x20=0x3?_0x3646ff[_0x3dd67b(0x670)](0x2)['join']('.'):null,_0x2edaf0=this['_hass']?.[_0x3dd67b(0x869)]?.[_0x52ea04];if(!_0x2edaf0)return 0x14;const _0x167549=_0x3512d0?getAttributePath(_0x2edaf0['attributes'],_0x3512d0):_0x2edaf0[_0x3dd67b(0xb91)],_0x4c7151=toNum(_0x167549);return isNum(_0x4c7151)?_0x4c7151:0x14;}['_renderBatteryIcon'](){const _0x1636dd=_0x236d40,_0x4d5cd7=this['_config']?.[_0x1636dd(0xb97)];if(!_0x4d5cd7)return'';const _0x5d882b=this[_0x1636dd(0xd0e)]?.[_0x1636dd(0x869)]?.[_0x4d5cd7];if(!_0x5d882b)return'';const _0x21f1f3=parseFloat(_0x5d882b[_0x1636dd(0xb91)]);if(Number[_0x1636dd(0x757)](_0x21f1f3))return'';const _0x32e87b=this[_0x1636dd(0xb50)]();let _0x460073;if(_0x21f1f3<=_0x32e87b)_0x460073=_0x1636dd(0x71e);else{if(_0x21f1f3<=0x19)_0x460073=_0x1636dd(0x9e3);else{if(_0x21f1f3<=0x32)_0x460073=_0x1636dd(0x3f5);else _0x460073=_0x1636dd(0x90e);}}const _0x4c4a91=Math['max'](0x0,Math[_0x1636dd(0x9f4)](0x64,_0x21f1f3))/0x64*0xa,_0x39148e=escapeHtml(_0x5d882b[_0x1636dd(0xbb4)]?.[_0x1636dd(0xa43)]||_0x4d5cd7);return _0x1636dd(0x908)+_0x39148e+':\x20'+Math[_0x1636dd(0x1db)](_0x21f1f3)+_0x1636dd(0x273)+(0x4+(0xa-_0x4c4a91))+_0x1636dd(0x1ba)+_0x4c4a91+_0x1636dd(0x2db)+_0x460073+_0x1636dd(0x99c)+_0x460073+'\x22>'+Math[_0x1636dd(0x1db)](_0x21f1f3)+_0x1636dd(0x635);}[_0x236d40(0x70d)](){const _0x31072a=_0x236d40,_0x1c0d33=this[_0x31072a(0x9a3)][_0x31072a(0x2e5)]('.sgc-header-wrap');if(!_0x1c0d33)return;const _0x3329aa=this[_0x31072a(0x857)],_0x108aee=!!(_0x3329aa[_0x31072a(0x674)]||_0x3329aa[_0x31072a(0x19e)]||_0x3329aa['card_icon_image']);if(!_0x108aee){_0x1c0d33[_0x31072a(0x812)]='';return;}const _0x4cfac4=_0x3329aa[_0x31072a(0x4e0)]||_0x31072a(0x3c0),_0x5ae869=this['_renderBatteryIcon'](),_0x389b29=_0x5e2668=>_0x5e2668==='center'||_0x5e2668===_0x31072a(0x311)?_0x5e2668:_0x31072a(0xa72),_0x26cd35=_0x389b29(_0x3329aa[_0x31072a(0xa97)]),_0x55d314=_0x3329aa['card_icon_position']===_0x31072a(0x311),_0x2dbe48=_0x3329aa[_0x31072a(0x71d)]||_0x31072a(0x429),_0x472faf=this[_0x31072a(0x7a8)](_0x3329aa[_0x31072a(0x19e)]),_0x36370c=_0x3329aa[_0x31072a(0x69d)]?''+escapeHtml(_0x3329aa[_0x31072a(0x674)])+_0x31072a(0x891):'',_0x40dc1a=_0x55d314?''+_0x13475f+_0x36370c:''+_0x36370c+_0x13475f,_0x3a4549=_0x5ae869?''+_0x5ae869+_0x31072a(0x891):'';_0x1c0d33[_0x31072a(0x812)]=_0x31072a(0x5eb)+(_0x31072a(0xa9b)+_0x26cd35+'\x22>'+_0x40dc1a+_0x31072a(0xcc8))+_0x3a4549+_0x31072a(0xcc8);}['_renderIntervalPicker'](){const _0x2c850e=_0x236d40,_0x293183=this[_0x2c850e(0x9a3)][_0x2c850e(0x2e5)](_0x2c850e(0x617));if(!_0x293183)return;const _0x47d8e4=this[_0x2c850e(0x857)],_0x5e1caa=_0x47d8e4['show_date_picker']||_0x47d8e4['date_picker_group']&&this[_0x2c850e(0x796)],_0x56a877=_0x47d8e4[_0x2c850e(0xcbb)];if(!_0x47d8e4[_0x2c850e(0xb44)]||_0x5e1caa||_0x56a877){_0x293183['innerHTML']='';return;}const _0x4b2688=isNum(this['_overrideHoursToShow'])?this[_0x2c850e(0x5f0)]:toNum(_0x47d8e4['hours_to_show']),_0x1af88d=Array[_0x2c850e(0x707)](_0x47d8e4[_0x2c850e(0x21e)])&&_0x47d8e4['interval_options']['length']?_0x47d8e4['interval_options']:INTERVAL_PICKER_DEFAULT_LABELS,_0x2e3293=INTERVAL_PICKER_OPTIONS[_0x2c850e(0x56d)](_0x1f750c=>_0x1af88d[_0x2c850e(0x2cf)](_0x1f750c[_0x2c850e(0x4c6)])),_0x100deb=_0x2e3293[_0x2c850e(0x5f7)](_0x1d8aa1=>{const _0x412dfe=_0x2c850e,_0x3ccf86=_0x1d8aa1[_0x412dfe(0xb63)]===_0x4b2688?_0x412dfe(0xc4e):'';return''+escapeHtml(cardT(this[_0x412dfe(0xd0e)],this['_config'],_0x1d8aa1[_0x412dfe(0x4c6)]))+_0x412dfe(0x3a7);})[_0x2c850e(0x358)](''),_0xc59016=_0x47d8e4[_0x2c850e(0x1ea)]||'left';_0x293183['innerHTML']=''+_0x100deb+_0x2c850e(0xcc8),_0x293183['querySelectorAll']('.sgc-ip-btn')[_0x2c850e(0x366)](_0x2afa74=>{const _0x4fcd3a=_0x2c850e;_0x2afa74[_0x4fcd3a(0x5ea)]('click',()=>{const _0x3e88da=_0x4fcd3a,_0x4bbd26=toNum(_0x2afa74[_0x3e88da(0x825)][_0x3e88da(0xb63)]),_0x19c17b=_0x2afa74[_0x3e88da(0x825)][_0x3e88da(0x4c6)];if(isNum(_0x4bbd26))this[_0x3e88da(0x58a)](_0x4bbd26,_0x19c17b);});});}[_0x236d40(0x31c)](_0x538a25,_0x498bb2){const _0x1392d1=_0x236d40,_0x1d5340=this[_0x1392d1(0x1a4)]?.[_0x498bb2];if(_0x1d5340===undefined)return _0x538a25[_0x1392d1(0x490)]||'';return _0x1d5340;}[_0x236d40(0x3b0)](_0x1accec){const _0x176c15=_0x236d40;if(!_0x1accec)return _0x176c15(0x6d0);return String(_0x1accec)['replace'](/_/g,'\x20')['replace'](/\b\w/g,_0x2e4fb9=>_0x2e4fb9['toUpperCase']());}[_0x236d40(0xd16)](_0x9052dd){const _0x1da605=_0x236d40,_0x30865f=toNum(this[_0x1da605(0x2e2)]);if(isNum(_0x30865f))_0x9052dd[_0x1da605(0x641)]=_0x30865f;else{if(this[_0x1da605(0xc0b)])_0x9052dd[_0x1da605(0x641)]=this[_0x1da605(0xc0b)][_0x1da605(0x735)];}if(this['_overrideGroupBy'])_0x9052dd['group_by']=this['_overrideGroupBy'];else{if(this[_0x1da605(0xc0b)])_0x9052dd[_0x1da605(0x8d3)]=this[_0x1da605(0xc0b)][_0x1da605(0xbb6)];}this[_0x1da605(0xc0b)]&&(_0x9052dd[_0x1da605(0x592)]=isNum(_0x30865f)||this[_0x1da605(0xa77)]?![]:this['_baseQuery'][_0x1da605(0x3e4)]);}[_0x236d40(0xafc)](_0x1e7872,_0x78f4bd){const _0x14f492=_0x236d40;if(_0x1e7872==='pph'){const _0x14c5e0=toNum(_0x78f4bd);this[_0x14f492(0x2e2)]=isNum(_0x14c5e0)?_0x14c5e0:null;}else _0x1e7872==='gby'&&(this[_0x14f492(0xa77)]=_0x78f4bd||null);const _0x19350b={...this['_config']};this['_applyQueryOverrides'](_0x19350b),this[_0x14f492(0x857)]=_0x19350b,this[_0x14f492(0x444)](),this[_0x14f492(0x7a0)](_0x1e7872);try{this['_fetcher']?.['_cache']?.[_0x14f492(0x9c9)]?.();}catch(_0x1b8b78){}this[_0x14f492(0x5fe)]()[_0x14f492(0x946)](_0x215dd5=>console['error'](_0x14f492(0x987),_0x215dd5));}['_persistQueryPickers'](){const _0x32fe6e=_0x236d40;isNum(toNum(this['_overridePph']))?lsSet(_0x32fe6e(0x8dc)+this[_0x32fe6e(0x7db)],String(this[_0x32fe6e(0x2e2)])):lsDel('sgc-qpph:'+this[_0x32fe6e(0x7db)]),this[_0x32fe6e(0xa77)]?lsSet('sgc-qgby:'+this['_instanceKey'],this['_overrideGroupBy']):lsDel(_0x32fe6e(0x50c)+this['_instanceKey']);}[_0x236d40(0x52a)](){const _0x364e4b=_0x236d40,_0x3d0bc1=this[_0x364e4b(0x9a3)][_0x364e4b(0x2e5)]('.sgc-qp-wrap');if(!_0x3d0bc1)return;const _0x11cfa3=this[_0x364e4b(0x857)],_0x25251a=!!_0x11cfa3[_0x364e4b(0x3cd)],_0x3f8690=!!_0x11cfa3[_0x364e4b(0x63b)];if(!_0x25251a&&!_0x3f8690){_0x3d0bc1['innerHTML']='';return;}const _0x4cc3fb=(_0x53c797,_0x41d3e4,_0x3f7eb5)=>_0x364e4b(0x206)+escapeHtml(String(_0x53c797))+'\x22'+(String(_0x3f7eb5)===String(_0x53c797)?'\x20selected':'')+'>'+escapeHtml(_0x41d3e4)+_0x364e4b(0x2dd),_0x5cea7f=[];if(_0x25251a){const _0x46f4a5=isNum(toNum(this[_0x364e4b(0x2e2)]))?String(this[_0x364e4b(0x2e2)]):'',_0x226a52=toNum(this[_0x364e4b(0xc0b)]?.[_0x364e4b(0x735)]),_0x394b08=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c];isNum(_0x226a52)&&!_0x394b08['includes'](_0x226a52)&&(_0x394b08[_0x364e4b(0x2c1)](_0x226a52),_0x394b08[_0x364e4b(0xc70)]((_0xa5365f,_0x155976)=>_0xa5365f-_0x155976));const _0x9ed5b2=[_0x4cc3fb('',cardT(this[_0x364e4b(0xd0e)],_0x11cfa3,'Auto')+'\x20('+(isNum(_0x226a52)?_0x226a52:0x2)+_0x364e4b(0x1bc),_0x46f4a5)][_0x364e4b(0x9fb)](_0x394b08['map'](_0x50d8f8=>_0x4cc3fb(_0x50d8f8,_0x50d8f8+'/h',_0x46f4a5)))['join']('');_0x5cea7f[_0x364e4b(0x2c1)]([_0x11cfa3['pph_picker_position']||_0x364e4b(0xa72),_0x364e4b(0x5b6)+escapeHtml(cardT(this[_0x364e4b(0xd0e)],_0x11cfa3,_0x364e4b(0xb8a)))+_0x364e4b(0xbf3)+_0x9ed5b2+_0x364e4b(0x2ca)]);}if(_0x3f8690){const _0x285a36=this['_overrideGroupBy']||'',_0x53d21b=this['_baseQuery']?.['gby']||_0x364e4b(0x4d3),_0x3bcd53={'interval':'Interval','hour':'Hour','2h':'2H','3h':'3H','4h':'4H','6h':'6H','12h':_0x364e4b(0xc3e),'date':_0x364e4b(0x627),'week':_0x364e4b(0x40d),'month':_0x364e4b(0x896),'year':_0x364e4b(0xa06)},_0x576aa4=[_0x4cc3fb('',cardT(this[_0x364e4b(0xd0e)],_0x11cfa3,_0x364e4b(0xaea))+'\x20('+cardT(this[_0x364e4b(0xd0e)],_0x11cfa3,_0x3bcd53[_0x53d21b]||_0x53d21b)+')',_0x285a36)][_0x364e4b(0x9fb)](Object[_0x364e4b(0x27d)](_0x3bcd53)[_0x364e4b(0x5f7)](_0x25206e=>_0x4cc3fb(_0x25206e,cardT(this[_0x364e4b(0xd0e)],_0x11cfa3,_0x3bcd53[_0x25206e]),_0x285a36)))['join']('');_0x5cea7f[_0x364e4b(0x2c1)]([_0x11cfa3[_0x364e4b(0xcf3)]||'left',''+escapeHtml(cardT(this['_hass'],_0x11cfa3,'Group'))+_0x364e4b(0x84e)+_0x576aa4+_0x364e4b(0x2ca)]);}const _0x1308c8={'left':'','center':'','right':''};for(const [_0x30f84c,_0x2cfce4]of _0x5cea7f)_0x1308c8[_0x30f84c in _0x1308c8?_0x30f84c:_0x364e4b(0xa72)]+=_0x2cfce4;_0x3d0bc1['innerHTML']=[_0x364e4b(0xa72),_0x364e4b(0x2fc),_0x364e4b(0x311)][_0x364e4b(0x56d)](_0xf23389=>_0x1308c8[_0xf23389])[_0x364e4b(0x5f7)](_0x30c130=>_0x364e4b(0x8cd)+_0x30c130+'\x22>'+_0x1308c8[_0x30c130]+_0x364e4b(0xcc8))[_0x364e4b(0x358)](''),_0x3d0bc1['querySelectorAll']('.sgc-qp-select')['forEach'](_0x1e85c6=>{const _0x52198b=_0x364e4b;_0x1e85c6[_0x52198b(0x5ea)](_0x52198b(0x8ae),_0x11ee9a=>{const _0x28ac2e=_0x52198b;this['_onQueryPick'](_0x11ee9a[_0x28ac2e(0x2cb)][_0x28ac2e(0x825)]['qp'],_0x11ee9a['target'][_0x28ac2e(0x4be)]);});});}[_0x236d40(0x4a7)](){const _0x2b7614=_0x236d40,_0x1d6668=this[_0x2b7614(0x9a3)][_0x2b7614(0x2e5)](_0x2b7614(0xb9c));if(!_0x1d6668)return;const _0x40ebca=this[_0x2b7614(0x857)];if(!_0x40ebca[_0x2b7614(0x9d6)]){_0x1d6668[_0x2b7614(0x812)]='';return;}let _0x457dc1='';(this[_0x2b7614(0x721)]||[])[_0x2b7614(0x366)]((_0x5053d7,_0x38534a)=>{const _0x30650a=_0x2b7614,_0x40b536=this[_0x30650a(0xd0e)]?.[_0x30650a(0x869)]?.[_0x5053d7[_0x30650a(0xaa5)]];if(!_0x40b536)return;const _0x23a44c=Object[_0x30650a(0x27d)](_0x40b536[_0x30650a(0xbb4)]||{})[_0x30650a(0x56d)](_0xe7cb31=>{const _0x3ad22f=_0x30650a,_0x15d730=_0x40b536[_0x3ad22f(0xbb4)][_0xe7cb31];return _0x15d730!==null&&_0x15d730!==undefined&&!isNaN(parseFloat(_0x15d730));})[_0x30650a(0xc70)]();if(!_0x23a44c[_0x30650a(0x2d1)])return;const _0x2ed65e=_0x5053d7[_0x30650a(0x6f8)]===_0x30650a(0x817)?PALETTE[_0x38534a%PALETTE[_0x30650a(0x2d1)]]||_0x30650a(0x336):this[_0x30650a(0xae6)](_0x5053d7[_0x30650a(0x6f8)])||_0x5053d7[_0x30650a(0x6f8)]||PALETTE[_0x38534a%PALETTE[_0x30650a(0x2d1)]]||'#ff4757',_0x4f2dc0=this[_0x30650a(0x31c)](_0x5053d7,_0x38534a),_0x29465f=_0x30650a(0x94e)+(_0x4f2dc0===''?'\x20selected':'')+_0x30650a(0x660),_0x57af87=_0x23a44c[_0x30650a(0x5f7)](_0xf873dc=>_0x30650a(0x206)+escapeHtml(_0xf873dc)+'\x22'+(_0x4f2dc0===_0xf873dc?_0x30650a(0x4cd):'')+'>'+escapeHtml(this['_formatAttrLabel'](_0xf873dc))+'')[_0x30650a(0x358)]('');_0x457dc1+=''+(_0x30650a(0xc64)+escapeHtml(_0x2ed65e)+_0x30650a(0x4f3))+(_0x30650a(0x93f)+_0x38534a+'\x22>'+_0x29465f+_0x57af87+_0x30650a(0xbb7))+_0x30650a(0xcc8);});if(!_0x457dc1){_0x1d6668[_0x2b7614(0x812)]='';return;}const _0x9e76df=_0x40ebca[_0x2b7614(0x504)]||_0x2b7614(0xa72);_0x1d6668[_0x2b7614(0x812)]=_0x2b7614(0x88c)+escapeHtml(_0x9e76df)+'\x22>'+_0x457dc1+_0x2b7614(0xcc8),_0x1d6668[_0x2b7614(0x21a)](_0x2b7614(0x951))[_0x2b7614(0x366)](_0x33056c=>{const _0x3adcea=_0x2b7614;_0x33056c['addEventListener'](_0x3adcea(0x8ae),_0x39b8ac=>{const _0x311e24=_0x3adcea,_0x1f6c19=parseInt(_0x39b8ac['target'][_0x311e24(0x825)]['entityIdx'],0xa);if(isNaN(_0x1f6c19))return;this['_onAttributePick'](_0x1f6c19,_0x39b8ac[_0x311e24(0x2cb)]['value']);});});}[_0x236d40(0x5c3)](_0x3c5974,_0x466a75){const _0x38d693=_0x236d40,_0x2d0f1b=this[_0x38d693(0x721)]?.[_0x3c5974];if(!_0x2d0f1b)return;const _0x2fb9e2=_0x2d0f1b[_0x38d693(0x490)]||'';_0x466a75===_0x2fb9e2?delete this[_0x38d693(0x1a4)][_0x3c5974]:this[_0x38d693(0x1a4)][_0x3c5974]=_0x466a75,this[_0x38d693(0x5fe)]()['catch'](_0x46abd2=>console['error'](_0x38d693(0x4c7),_0x46abd2));}[_0x236d40(0x643)](){const _0x249989=_0x236d40,_0x120ae9=this[_0x249989(0x9a3)][_0x249989(0x2e5)]('.sgc-dp-wrap');if(!_0x120ae9)return;const _0xa5b986=this[_0x249989(0x857)];if(!_0xa5b986[_0x249989(0xcda)]){_0x120ae9[_0x249989(0x812)]='';return;}const _0x3b9a50=[...DATE_PICKER_VALID_MODES,...Object[_0x249989(0x27d)](DATE_PICKER_RELATIVE_MODES)],_0x328b84=Array[_0x249989(0x707)](_0xa5b986[_0x249989(0x87d)])&&_0xa5b986[_0x249989(0x87d)][_0x249989(0x2d1)]?_0xa5b986[_0x249989(0x87d)][_0x249989(0x56d)](_0x166907=>_0x3b9a50[_0x249989(0x2cf)](_0x166907)):DATE_PICKER_VALID_MODES,_0x235cf7=_0x328b84[_0x249989(0x2d1)]>0x1,_0x10a7c8=_0x235cf7?_0x328b84[_0x249989(0x5f7)](_0x2c7ba4=>{const _0x2a1873=_0x249989,_0x4a2813=_0x2c7ba4===this[_0x2a1873(0xae2)]?_0x2a1873(0xc4e):'',_0x490d41=DATE_PICKER_RELATIVE_MODES[_0x2c7ba4],_0x1c00a9=cardT(this[_0x2a1873(0xd0e)],this[_0x2a1873(0x857)],_0x490d41?_0x490d41['btn']:_0x2c7ba4[_0x2a1873(0x5b9)](0x0)[_0x2a1873(0x77e)]()),_0x38d3a0={'day':_0x2a1873(0xc7f),'week':_0x2a1873(0x40d),'month':_0x2a1873(0x896),'year':'Year'}[_0x2c7ba4],_0x28fc83=cardT(this[_0x2a1873(0xd0e)],this[_0x2a1873(0x857)],_0x490d41?_0x490d41[_0x2a1873(0x4c6)]:_0x38d3a0||_0x2c7ba4);return''+escapeHtml(_0x1c00a9)+'';})[_0x249989(0x358)](''):'',_0x252acb=this[_0x249989(0x222)](),_0x2e64ae=Date[_0x249989(0x8c9)](),_0x3baeca=this[_0x249989(0xae2)]==='custom'?!!this[_0x249989(0x1a6)]&&this[_0x249989(0x1a6)]['getTime']()>=_0x2e64ae:this[_0x249989(0x691)]===0x0,_0x18019c=_0xa5b986[_0x249989(0x5b5)]||_0x249989(0xaca);_0x120ae9[_0x249989(0xa28)][_0x249989(0xa5a)]=_0x18019c===_0x249989(0x7dc)?'99':'';const _0x46612a=!!this[_0x249989(0x1e9)],_0xaea936=_0x46612a?_0x249989(0x1e0)+this['_renderCalendarGrid']()+this[_0x249989(0x312)]()+'':'',_0x35a4b0=(_0x52139e,_0xb8c735)=>[_0x249989(0xa72),'center',_0x249989(0x311)][_0x249989(0x2cf)](_0x52139e)?_0x52139e:_0xb8c735,_0x1f6bac=_0x35a4b0(_0xa5b986[_0x249989(0x9ba)],_0x249989(0xa72)),_0x304647=_0x35a4b0(_0xa5b986[_0x249989(0x4d0)],_0x249989(0x311)),_0x3a562a=_0x249989(0x770)+(_0x3baeca?'':_0x249989(0xcd4))+_0x249989(0x7a7)+(_0x3baeca?'':escapeHtml(cardT(this['_hass'],this[_0x249989(0x857)],_0x249989(0x830))))+'\x22>'+escapeHtml(_0x252acb)+'0x0&&_0x1596c9[_0x249989(0xa72)][_0x249989(0x2d1)]+_0x1596c9[_0x249989(0x311)]['length']>0x0;_0x120ae9[_0x249989(0x812)]=_0x249989(0x30f)+escapeHtml(_0x18019c)+_0x249989(0x8a8)+_0x1596c9['left'][_0x249989(0x358)]('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1596c9[_0x249989(0x2fc)]['join']('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1596c9['right']['join']('')+_0x249989(0xa4a)+_0xaea936+_0x249989(0x46f);_0x284ee3&&typeof requestAnimationFrame===_0x249989(0xd24)&&requestAnimationFrame(()=>{const _0x433489=_0x249989;try{const _0x38fe46=_0x120ae9['querySelector'](_0x433489(0x65e)),_0xcadcb9=_0x120ae9[_0x433489(0x2e5)]('.sgc-dp-center-abs');if(!_0x38fe46||!_0xcadcb9)return;const _0x5e05c6=_0xcadcb9[_0x433489(0x474)]();if(!_0x5e05c6||!_0x5e05c6[_0x433489(0x8da)])return;const _0x4127b9=(_0x288aa2,_0x59b3b6)=>{const _0x4f8c42=_0x433489,_0x1a9828=_0x38fe46[_0x4f8c42(0x2e5)](_0x288aa2+_0x4f8c42(0xb2c))||_0x38fe46[_0x4f8c42(0x2e5)](_0x288aa2+_0x4f8c42(0x50d));if(!_0x1a9828)return null;const _0xed855=_0x1a9828[_0x4f8c42(0x474)]();if(!_0xed855||!_0xed855['width'])return null;return _0x59b3b6==='right'?_0xed855['right']:_0xed855[_0x4f8c42(0xa72)];},_0x348fc7=dpCenterShift(_0x5e05c6['left'],_0x5e05c6['right'],_0x4127b9(_0x433489(0x649),'right'),_0x4127b9(_0x433489(0xc7e),_0x433489(0xa72)),0x8);_0xcadcb9[_0x433489(0xa28)][_0x433489(0xb99)]=_0x348fc7?_0x433489(0x45e)+_0x348fc7+'px),\x20-50%)':_0x433489(0x8df);}catch(_0x2af0bd){}});_0x120ae9[_0x249989(0x21a)](_0x249989(0x340))[_0x249989(0x366)](_0x4c6f32=>{const _0x15e608=_0x249989;_0x4c6f32['addEventListener']('click',()=>this[_0x15e608(0xc2a)](_0x4c6f32[_0x15e608(0x825)]['mode']));});const _0x40492c=_0x120ae9[_0x249989(0x2e5)](_0x249989(0xb0f)),_0x51d5f7=_0x120ae9[_0x249989(0x2e5)]('.sgc-dp-next'),_0x4b4b16=_0x120ae9[_0x249989(0x2e5)](_0x249989(0x746)),_0x2dcdaa=_0x120ae9[_0x249989(0x2e5)](_0x249989(0x3bb));if(_0x40492c)_0x40492c[_0x249989(0x5ea)](_0x249989(0x505),()=>this[_0x249989(0x661)](-0x1));if(_0x51d5f7)_0x51d5f7['addEventListener'](_0x249989(0x505),()=>this[_0x249989(0x661)](+0x1));if(_0x4b4b16)_0x4b4b16['addEventListener'](_0x249989(0x505),()=>this[_0x249989(0x29e)]());if(_0x2dcdaa)_0x2dcdaa[_0x249989(0x5ea)](_0x249989(0x505),()=>this[_0x249989(0xb4d)]());const _0x11b94f=_0x120ae9[_0x249989(0x2e5)](_0x249989(0x3a1));_0x11b94f&&_0x11b94f[_0x249989(0x5ea)](_0x249989(0x505),_0x13cc9f=>this[_0x249989(0x377)](_0x13cc9f));}[_0x236d40(0xb4d)](){const _0x15703a=_0x236d40;this[_0x15703a(0x1e9)]=!this['_dpExpanded'];if(this[_0x15703a(0x1e9)]){const _0x1b77d6=this[_0x15703a(0xaf4)](),_0x496fd7=_0x1b77d6?.[_0x15703a(0x5da)]||new Date();this[_0x15703a(0x23a)]=_0x496fd7['getMonth'](),this[_0x15703a(0xc52)]=_0x496fd7['getFullYear'](),this[_0x15703a(0xc88)]=null;}this['_scheduleRender']();}['_renderCalendarGrid'](){const _0xa287c5=_0x236d40,_0x249c7f=resolveCardLanguage(this[_0xa287c5(0xd0e)],this[_0xa287c5(0x857)]),_0x28a8f4=new Date(),_0x3cf08e=this[_0xa287c5(0x23a)]??_0x28a8f4[_0xa287c5(0x6c4)](),_0x55643f=this[_0xa287c5(0xc52)]??_0x28a8f4['getFullYear'](),_0x56743a=new Date(_0x55643f,_0x3cf08e,0x1),_0x4da1f6=new Date(_0x55643f,_0x3cf08e+0x1,0x0),_0x233e7c=_0x4da1f6[_0xa287c5(0x9b0)](),_0x1f3b9a=(_0x56743a[_0xa287c5(0xc13)]()+0x6)%0x7;let _0x27c810;try{const _0x1f7537=getCachedDateTimeFormatter(_0x249c7f,{'weekday':'narrow'});_0x27c810=[0x1,0x2,0x3,0x4,0x5,0x6,0x0][_0xa287c5(0x5f7)](_0x40ec2e=>_0x1f7537[_0xa287c5(0xc90)](new Date(0x7e8,0x0,_0x40ec2e)));}catch{_0x27c810=['M','T','W','T','F','S','S'];}let _0x3ff8b7;try{const _0x4ffb57=getCachedDateTimeFormatter(_0x249c7f,{'month':_0xa287c5(0x41b),'year':_0xa287c5(0xb68)})['format'](_0x56743a);_0x3ff8b7=_0x4ffb57['charAt'](0x0)[_0xa287c5(0x77e)]()+_0x4ffb57[_0xa287c5(0x670)](0x1);}catch{_0x3ff8b7=_0x3cf08e+0x1+'/'+_0x55643f;}const _0x428f9a=this[_0xa287c5(0xaf4)]()||{},_0x99025d=_0x428f9a['start']?new Date(_0x428f9a[_0xa287c5(0x5da)][_0xa287c5(0x64b)](),_0x428f9a['start'][_0xa287c5(0x6c4)](),_0x428f9a[_0xa287c5(0x5da)][_0xa287c5(0x9b0)]())[_0xa287c5(0x3f2)]():0x0,_0x39d716=_0x428f9a['end']?new Date(_0x428f9a[_0xa287c5(0x538)][_0xa287c5(0x64b)](),_0x428f9a[_0xa287c5(0x538)][_0xa287c5(0x6c4)](),_0x428f9a['end'][_0xa287c5(0x9b0)]())[_0xa287c5(0x3f2)]():0x0,_0x56f753=!!this[_0xa287c5(0xc88)],_0x17c34b=_0x56f753?new Date(this[_0xa287c5(0xc88)]['getFullYear'](),this[_0xa287c5(0xc88)][_0xa287c5(0x6c4)](),this[_0xa287c5(0xc88)]['getDate']())['getTime']():0x0,_0xcf0da5=new Date(_0x28a8f4[_0xa287c5(0x64b)](),_0x28a8f4[_0xa287c5(0x6c4)](),_0x28a8f4[_0xa287c5(0x9b0)]())[_0xa287c5(0x3f2)]();let _0x4658b6=_0x27c810[_0xa287c5(0x5f7)](_0x1644b9=>''+escapeHtml(_0x1644b9)+_0xa287c5(0xcc8))[_0xa287c5(0x358)]('');for(let _0x5d212f=0x0;_0x5d212f<_0x1f3b9a;_0x5d212f++)_0x4658b6+=_0xa287c5(0x1a7);for(let _0x1a7045=0x1;_0x1a7045<=_0x233e7c;_0x1a7045++){const _0x189716=new Date(_0x55643f,_0x3cf08e,_0x1a7045)[_0xa287c5(0x3f2)](),_0x373053=['sgc-dp-cal-day'];if(_0x189716===_0xcf0da5)_0x373053[_0xa287c5(0x2c1)](_0xa287c5(0xd0c));if(!_0x56f753&&_0x189716>=_0x99025d&&_0x189716<_0x39d716)_0x373053[_0xa287c5(0x2c1)](_0xa287c5(0xad6));if(_0x56f753&&_0x189716===_0x17c34b)_0x373053[_0xa287c5(0x2c1)]('dp-range-sel');if(_0x189716>_0xcf0da5)_0x373053[_0xa287c5(0x2c1)](_0xa287c5(0x56c));const _0xbd95a5=_0x55643f+'-'+String(_0x3cf08e+0x1)[_0xa287c5(0x290)](0x2,'0')+'-'+String(_0x1a7045)['padStart'](0x2,'0');_0x4658b6+=_0xa287c5(0x4b0)+_0x373053[_0xa287c5(0x358)]('\x20')+'\x22\x20data-dp-day=\x22'+_0xbd95a5+'\x22>'+_0x1a7045+_0xa287c5(0xcc8);}const _0x3edaf6=_0x56f753?_0xa287c5(0xaeb)+escapeHtml(cardT(this[_0xa287c5(0xd0e)],this[_0xa287c5(0x857)],_0xa287c5(0x24e)))+_0xa287c5(0xcc8):'';return _0xa287c5(0x541)+escapeHtml(cardT(this[_0xa287c5(0xd0e)],this[_0xa287c5(0x857)],_0xa287c5(0xb3a)))+_0xa287c5(0x7b5)+escapeHtml(_0x3ff8b7)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20▶\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20'+_0x4658b6+_0xa287c5(0x1f4)+_0x3edaf6+_0xa287c5(0xb09);}[_0x236d40(0x312)](){const _0x1b740c=_0x236d40,_0x17ecc3=[{'label':_0x1b740c(0x3f3),'mode':_0x1b740c(0xa49),'offset':0x0},{'label':_0x1b740c(0x5c7),'mode':_0x1b740c(0xa49),'offset':-0x1},{'label':_0x1b740c(0x560),'mode':'week','offset':0x0},{'label':_0x1b740c(0x1a3),'mode':_0x1b740c(0x677),'offset':-0x1},{'label':_0x1b740c(0xa73),'mode':_0x1b740c(0x74c),'offset':0x0},{'label':_0x1b740c(0x9ce),'mode':_0x1b740c(0x74c),'offset':-0x1},{'label':_0x1b740c(0xa19),'mode':_0x1b740c(0x40e),'offset':0x0},{'label':'Last\x20Year','mode':_0x1b740c(0x40e),'offset':-0x1}],_0x303401=[{'label':_0x1b740c(0x9a6),'days':0x7},{'label':_0x1b740c(0xc1d),'days':0x1e},{'label':_0x1b740c(0xb33),'months':0xc}],_0x4ca73b=_0x3db196=>{const _0xb94f50=_0x1b740c;if(this['_dpMode']!=='custom'||!this[_0xb94f50(0xd01)])return![];const _0x5bc189=this['_computeRollingStart'](_0x3db196);return Math[_0xb94f50(0x971)](this['_dpCustomStart'][_0xb94f50(0x3f2)]()-_0x5bc189[_0xb94f50(0x3f2)]())<0x5265c00;},_0x520eb2=_0x17ecc3['map'](_0x273342=>{const _0x122324=_0x1b740c,_0x307fa9=this[_0x122324(0xae2)]===_0x273342[_0x122324(0x943)]&&this[_0x122324(0x691)]===_0x273342[_0x122324(0x632)]?_0x122324(0xc4e):'';return''+escapeHtml(cardT(this[_0x122324(0xd0e)],this['_config'],_0x273342[_0x122324(0x4c6)]))+_0x122324(0x3a7);})[_0x1b740c(0x358)](''),_0x264f16=_0x303401[_0x1b740c(0x5f7)](_0x4da332=>{const _0x34cd82=_0x1b740c,_0x505f50=_0x4ca73b(_0x4da332)?_0x34cd82(0xc4e):'',_0x4a868c=_0x4da332['days']||'',_0x5d5607=_0x4da332[_0x34cd82(0x8e0)]||'';return _0x34cd82(0xbe6)+_0x505f50+_0x34cd82(0x1f7)+_0x4a868c+_0x34cd82(0x1b1)+_0x5d5607+'\x22>'+escapeHtml(cardT(this[_0x34cd82(0xd0e)],this[_0x34cd82(0x857)],_0x4da332[_0x34cd82(0x4c6)]))+'';})['join']('');return''+_0x520eb2+_0x264f16+_0x1b740c(0xcc8);}[_0x236d40(0x31e)](_0xb9f328){const _0x887baa=_0x236d40,_0x8a2868=new Date(),_0x441b66=resolveDisplayTimeZone(this['_hass'],this['_config']),_0x16f919=tzParts(_0x8a2868[_0x887baa(0x3f2)](),_0x441b66);if(_0xb9f328[_0x887baa(0x8e0)])return new Date(zonedWallToMs(_0x16f919['y'],_0x16f919['mo']-_0xb9f328[_0x887baa(0x8e0)],_0x16f919['d'],0x0,0x0,0x0,_0x441b66));return new Date(zonedWallToMs(_0x16f919['y'],_0x16f919['mo'],_0x16f919['d']-_0xb9f328['days'],0x0,0x0,0x0,_0x441b66));}['_onDatePickerPanelClick'](_0x1ae2fc){const _0x2679ab=_0x236d40,_0x153cde=_0x1ae2fc[_0x2679ab(0x2cb)],_0xdc3b87=_0x153cde['closest'](_0x2679ab(0x375));if(_0xdc3b87){const _0x3683dd=parseInt(_0xdc3b87['dataset'][_0x2679ab(0x7fa)],0xa)||0x0;this[_0x2679ab(0x23a)]=(this[_0x2679ab(0x23a)]??new Date()[_0x2679ab(0x6c4)]())+_0x3683dd;while(this[_0x2679ab(0x23a)]<0x0){this[_0x2679ab(0x23a)]+=0xc,this[_0x2679ab(0xc52)]-=0x1;}while(this[_0x2679ab(0x23a)]>0xb){this['_dpCalMonth']-=0xc,this[_0x2679ab(0xc52)]+=0x1;}this[_0x2679ab(0x917)]();return;}const _0x39ec20=_0x153cde[_0x2679ab(0xa63)](_0x2679ab(0x33b));if(_0x39ec20){const [_0x25750f,_0x23d840,_0x31b099]=_0x39ec20[_0x2679ab(0x825)][_0x2679ab(0x8ea)]['split']('-'),_0x37669b=new Date(parseInt(_0x25750f,0xa),parseInt(_0x23d840,0xa)-0x1,parseInt(_0x31b099,0xa));this[_0x2679ab(0x62c)](_0x37669b);return;}const _0x1ca4c0=_0x153cde['closest'](_0x2679ab(0xa94));if(_0x1ca4c0){const _0x32054b=_0x1ca4c0['dataset'][_0x2679ab(0x32e)],_0x239dcd=parseInt(_0x1ca4c0['dataset'][_0x2679ab(0x230)],0xa)||0x0;this[_0x2679ab(0x26d)](_0x32054b,_0x239dcd);return;}const _0x475584=_0x153cde[_0x2679ab(0xa63)]('[data-dp-rolling-days],[data-dp-rolling-months]');if(_0x475584){const _0x3b25c1=parseInt(_0x475584[_0x2679ab(0x825)][_0x2679ab(0x1ee)],0xa)||0x0,_0x41fbf2=parseInt(_0x475584['dataset']['dpRollingMonths'],0xa)||0x0;this[_0x2679ab(0x955)]({'days':_0x3b25c1,'months':_0x41fbf2});return;}}['_handleCalendarDayPick'](_0xa5ae8){const _0x773179=_0x236d40;if(this[_0x773179(0xae2)]===_0x773179(0xa49)){const _0x4d29cc=new Date(),_0x4f7224=new Date(_0x4d29cc['getFullYear'](),_0x4d29cc[_0x773179(0x6c4)](),_0x4d29cc[_0x773179(0x9b0)]())[_0x773179(0x3f2)](),_0x328f55=_0xa5ae8['getTime'](),_0x270132=Math['round']((_0x328f55-_0x4f7224)/0x5265c00);this[_0x773179(0x691)]=_0x270132,this[_0x773179(0x1e9)]=![],this[_0x773179(0x9d5)](),this[_0x773179(0x9c3)](),this[_0x773179(0xa45)](),this['_scheduleRender']();return;}if(!this[_0x773179(0xc88)]){this[_0x773179(0xc88)]=_0xa5ae8,this[_0x773179(0x917)]();return;}let _0x2f797a=this[_0x773179(0xc88)],_0x917177=_0xa5ae8;if(_0x917177[_0x773179(0x3f2)]()<_0x2f797a[_0x773179(0x3f2)]()){const _0x465cb5=_0x2f797a;_0x2f797a=_0x917177,_0x917177=_0x465cb5;}const _0x346771=new Date(_0x917177[_0x773179(0x64b)](),_0x917177['getMonth'](),_0x917177[_0x773179(0x9b0)]()+0x1),_0x23a4e2=new Date(_0x2f797a[_0x773179(0x64b)](),_0x2f797a[_0x773179(0x6c4)](),_0x2f797a[_0x773179(0x9b0)]());this['_dpMode']='custom',this['_dpOffset']=0x0,this['_dpCustomStart']=_0x23a4e2,this[_0x773179(0x1a6)]=_0x346771,this['_dpRangeStart']=null,this[_0x773179(0x1e9)]=![],this[_0x773179(0x9d5)](),this['_broadcastDatePickerSync'](),this[_0x773179(0xa45)](),this[_0x773179(0x917)]();}[_0x236d40(0x26d)](_0x1090a0,_0x1f8577){const _0x1c801c=_0x236d40;if(!DATE_PICKER_VALID_MODES[_0x1c801c(0x2cf)](_0x1090a0))return;this['_dpMode']=_0x1090a0,this[_0x1c801c(0x691)]=_0x1f8577,this['_dpCustomStart']=null,this[_0x1c801c(0x1a6)]=null,this[_0x1c801c(0xc88)]=null,this['_dpExpanded']=![],this[_0x1c801c(0x9d5)](),this[_0x1c801c(0x9c3)](),this[_0x1c801c(0xa45)](),this[_0x1c801c(0x917)]();}[_0x236d40(0x955)]({days:_0x5bec7c,months:_0x5dac1a}){const _0xcec6b3=_0x236d40,_0x159701=this[_0xcec6b3(0x31e)]({'days':_0x5bec7c,'months':_0x5dac1a}),_0x50d997=new Date(),_0xff9f2f=new Date(_0x50d997[_0xcec6b3(0x64b)](),_0x50d997['getMonth'](),_0x50d997[_0xcec6b3(0x9b0)](),_0x50d997[_0xcec6b3(0x69b)](),_0x50d997[_0xcec6b3(0x5ef)]()+0x1,0x0);this['_dpMode']=_0xcec6b3(0x3af),this[_0xcec6b3(0x691)]=0x0,this['_dpCustomStart']=_0x159701,this['_dpCustomEnd']=_0xff9f2f,this['_dpRangeStart']=null,this['_dpExpanded']=![],this[_0xcec6b3(0x9d5)](),this['_broadcastDatePickerSync'](),this[_0xcec6b3(0xa45)](),this[_0xcec6b3(0x917)]();}[_0x236d40(0xa23)](){const _0xaf3ff6=_0x236d40,_0x43bd9a=this['shadowRoot'][_0xaf3ff6(0x2e5)](_0xaf3ff6(0x65a));if(!_0x43bd9a){this['_renderDetailLegend']();return;}const _0x4e4a4e=this['_config'];if(!_0x4e4a4e[_0xaf3ff6(0x819)]||!this[_0xaf3ff6(0x945)])_0x43bd9a[_0xaf3ff6(0x812)]='';else{const _0x44ce7b=this[_0xaf3ff6(0x945)]['series']['map'](_0x5cd54e=>{const _0x200b85=_0xaf3ff6,_0x2c723b=_0x5cd54e['entity'],_0x160760=pickName(_0x2c723b[_0x200b85(0x858)],_0x5cd54e[_0x200b85(0x76b)]?.[_0x200b85(0x576)],_0x5cd54e[_0x200b85(0x76b)])??_0x5cd54e['id'],_0x719e90=this[_0x200b85(0x844)][_0x200b85(0x620)](_0x5cd54e['id']),_0x44b115=this[_0x200b85(0xae6)](_0x2c723b[_0x200b85(0x6f8)])||_0x2c723b[_0x200b85(0x6f8)]||_0x200b85(0x70b),_0x38bd8a=_0x2c723b['show_color_dot']!==![]?_0x200b85(0x981)+escapeHtml(_0x44b115):_0x200b85(0x981)+escapeHtml(_0x44b115)+';visibility:hidden';return _0x200b85(0x5af)+(_0x719e90?_0x200b85(0xc1a):'')+_0x200b85(0xc2b)+escapeHtml(_0x5cd54e['id'])+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20';})[_0xaf3ff6(0x358)]('');_0x43bd9a['innerHTML']=_0xaf3ff6(0x839)+escapeHtml(_0x4e4a4e[_0xaf3ff6(0xc83)]||'center')+'\x22>'+_0x44ce7b+'',_0x43bd9a[_0xaf3ff6(0x21a)](_0xaf3ff6(0x8b8))[_0xaf3ff6(0x366)](_0x18af24=>{const _0x23e238=_0xaf3ff6;_0x18af24['addEventListener'](_0x23e238(0x505),()=>{const _0x454689=_0x23e238,_0x2dc386=_0x18af24[_0x454689(0x825)]['id'];if(this['_hiddenEntities'][_0x454689(0x620)](_0x2dc386))this[_0x454689(0x844)][_0x454689(0xacc)](_0x2dc386);else this[_0x454689(0x844)]['add'](_0x2dc386);this[_0x454689(0xa67)]();});});}this[_0xaf3ff6(0xc02)]();}[_0x236d40(0xc02)](){const _0x28a41b=_0x236d40,_0x3d5bc2=this['shadowRoot']['querySelector'](_0x28a41b(0x2bc));if(!_0x3d5bc2)return;const _0x3567b6=this[_0x28a41b(0x721)]||[],_0xeec6d5=this[_0x28a41b(0x945)]?.[_0x28a41b(0x668)]||[],_0x2f6611=_0x3567b6[_0x28a41b(0x37b)](_0x466d0a=>_0x466d0a?.[_0x28a41b(0x3e3)]);if(!_0x2f6611){_0x3d5bc2['innerHTML']='';return;}const _0x392f9b=this['_hass'],_0x5e5398=_0x3567b6[_0x28a41b(0x5f7)]((_0x133fc9,_0x148f11)=>{const _0x15e37e=_0x28a41b;if(!_0x133fc9?.[_0x15e37e(0x3e3)])return'';const _0x1c27d9=(_0x133fc9['entity']||_0x133fc9['statistic_id'])+'__'+_0x148f11,_0xc4312=_0xeec6d5[_0x15e37e(0x696)](_0x8622f5=>_0x8622f5['id']===_0x1c27d9||_0x8622f5[_0x15e37e(0xaa5)]===_0x133fc9),_0x11372a=_0xc4312?.[_0x15e37e(0x450)]||{},_0x434329=_0x133fc9[_0x15e37e(0x468)]&&_0x133fc9[_0x15e37e(0x468)][_0x15e37e(0x2d1)]?_0x133fc9['legend_stats']:[_0x15e37e(0x9f4),_0x15e37e(0x7ae),'max'],_0x384fa2=(_0x30d494,_0x308f86)=>{if(!isNum(_0x30d494))return'—';const _0x3df1c2=_0x308f86!=null?{..._0x133fc9,'decimals':_0x308f86}:_0x133fc9;return formatNumber(_0x30d494,_0x3df1c2,_0x392f9b);},_0x3eee18=(_0x5aef40,_0x5b6e9f)=>_0x15e37e(0x209)+escapeHtml(_0x5aef40)+_0x15e37e(0x891)+escapeHtml(_0x5b6e9f)+_0x15e37e(0x891);let _0x4a7b22='';if(_0x434329[_0x15e37e(0x2cf)]('min'))_0x4a7b22+=_0x3eee18(cardT(this[_0x15e37e(0xd0e)],this[_0x15e37e(0x857)],_0x15e37e(0x6e6)),_0x384fa2(_0x11372a['min']));if(_0x434329['includes']('avg'))_0x4a7b22+=_0x3eee18(cardT(this[_0x15e37e(0xd0e)],this['_config'],_0x15e37e(0x2e6)),_0x384fa2(_0x11372a['avg'],0x2));if(_0x434329['includes'](_0x15e37e(0x6fe)))_0x4a7b22+=_0x3eee18(cardT(this[_0x15e37e(0xd0e)],this[_0x15e37e(0x857)],_0x15e37e(0xb80)),_0x384fa2(_0x11372a[_0x15e37e(0x6fe)]));if(_0x434329[_0x15e37e(0x2cf)](_0x15e37e(0x75d))){const _0x483b53=_0xc4312?.[_0x15e37e(0xaee)]?.[_0x15e37e(0x2d1)]?_0xc4312[_0x15e37e(0xaee)][_0xc4312[_0x15e37e(0xaee)][_0x15e37e(0x2d1)]-0x1]['v']:null,_0x4a7d3c=_0x392f9b?.[_0x15e37e(0x869)]?.[_0x133fc9[_0x15e37e(0xaa5)]]?.[_0x15e37e(0xb91)],_0x5cd351=isNum(_0x483b53)?_0x483b53:_0x4a7d3c!=null?toNum(_0x4a7d3c):null;_0x4a7b22+=_0x3eee18(cardT(this[_0x15e37e(0xd0e)],this[_0x15e37e(0x857)],_0x15e37e(0x48c)),_0x384fa2(_0x5cd351));}if(_0x434329['includes'](_0x15e37e(0x491)))_0x4a7b22+=_0x3eee18(cardT(this[_0x15e37e(0xd0e)],this[_0x15e37e(0x857)],_0x15e37e(0x3f6)),_0x384fa2(_0x11372a['sum']));const _0x420bae=this['_resolveColor'](_0x133fc9['color'])||_0x133fc9[_0x15e37e(0x6f8)]||PALETTE[_0x148f11%PALETTE[_0x15e37e(0x2d1)]]||_0x15e37e(0x70b),_0x29a20a=pickName(_0x133fc9[_0x15e37e(0x858)],_0xc4312?.['meta']?.['resolved_name'],{'friendly_name':_0xc4312?.[_0x15e37e(0x76b)]?.[_0x15e37e(0xa43)]??_0x392f9b?.['states']?.[_0x133fc9[_0x15e37e(0xaa5)]]?.[_0x15e37e(0xbb4)]?.[_0x15e37e(0xa43)]})??_0x133fc9[_0x15e37e(0xaa5)]??_0x133fc9[_0x15e37e(0x892)]??'',_0x269f07=this[_0x15e37e(0x844)]['has'](_0x1c27d9)?_0x15e37e(0x27a):'',_0x282640=_0x133fc9[_0x15e37e(0x21b)]!==![]?_0x15e37e(0x1c6)+escapeHtml(_0x420bae):'border-color:transparent';return _0x15e37e(0x937)+_0x269f07+'\x22\x20data-id=\x22'+escapeHtml(_0x1c27d9)+_0x15e37e(0x5de)+_0x282640+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+escapeHtml(_0x29a20a)+_0x15e37e(0x6b6)+_0x4a7b22+_0x15e37e(0x1fb);})['filter'](Boolean)[_0x28a41b(0x358)]('');_0x3d5bc2[_0x28a41b(0x812)]=_0x5e5398?_0x28a41b(0x436)+_0x5e5398+_0x28a41b(0xcc8):'',_0x3d5bc2[_0x28a41b(0x21a)](_0x28a41b(0xb11))[_0x28a41b(0x366)](_0x1a35c8=>{const _0x3d1038=_0x28a41b;_0x1a35c8[_0x3d1038(0x5ea)](_0x3d1038(0x505),()=>{const _0x478300=_0x3d1038,_0x558e50=_0x1a35c8[_0x478300(0x825)]['id'];if(this[_0x478300(0x844)][_0x478300(0x620)](_0x558e50))this[_0x478300(0x844)][_0x478300(0xacc)](_0x558e50);else this[_0x478300(0x844)]['add'](_0x558e50);this[_0x478300(0xa67)]();});});}[_0x236d40(0x902)](){const _0x29ac5b=_0x236d40;if(this['_config']?.[_0x29ac5b(0x623)]&&(this['_config'][_0x29ac5b(0xc9c)]||_0x29ac5b(0xd06))==='timeline'){this['_renderSparkline']();return;}this[_0x29ac5b(0x7d6)](_0x29ac5b(0xaca)),this[_0x29ac5b(0x7d6)](_0x29ac5b(0x7dc));}[_0x236d40(0x7d6)](_0x286660){const _0x54eb41=_0x236d40,_0x5b5039=this['shadowRoot']['querySelector'](_0x54eb41(0x285)+_0x286660+'\x22]');if(!_0x5b5039)return;const _0x4db025=this[_0x54eb41(0x857)];if(!_0x4db025||_0x4db025['sparkline']){_0x5b5039[_0x54eb41(0x812)]='';return;}const _0x24bbb8=this['_entities']||[],_0x232a1f=_0x24bbb8['filter'](_0x12a4b5=>_0x12a4b5[_0x54eb41(0x481)]!==![]),_0x5510ac=[],_0x4047d4=[],_0x4d87cf=[];for(const _0x32bf7e of _0x232a1f){const _0x4613f1=_0x32bf7e[_0x54eb41(0x53c)]||_0x54eb41(0xa72),_0x5561ed=_0x4613f1[_0x54eb41(0x43e)](_0x54eb41(0x7dc));if(_0x286660==='top'&&_0x5561ed)continue;if(_0x286660===_0x54eb41(0x7dc)&&!_0x5561ed)continue;const _0x5bd4c1=_0x5561ed?_0x4613f1[_0x54eb41(0x3de)](_0x54eb41(0x3d6),''):_0x4613f1;if(_0x5bd4c1==='right')_0x4d87cf[_0x54eb41(0x2c1)](_0x32bf7e);else{if(_0x5bd4c1==='center')_0x4047d4['push'](_0x32bf7e);else _0x5510ac['push'](_0x32bf7e);}}const _0x1bf744=!!(_0x4db025[_0x54eb41(0x674)]||_0x4db025[_0x54eb41(0x19e)]||_0x4db025[_0x54eb41(0x69d)]),_0x3443bb=!_0x1bf744&&!!_0x4db025[_0x54eb41(0xb97)]&&_0x286660===_0x54eb41(0xaca),_0x5ef955=_0x3443bb?this[_0x54eb41(0xcb8)]():'';if(!_0x5510ac[_0x54eb41(0x2d1)]&&!_0x4047d4[_0x54eb41(0x2d1)]&&!_0x4d87cf['length']&&!_0x5ef955){_0x5b5039[_0x54eb41(0x812)]='';return;}const _0x590750=_0x4db025[_0x54eb41(0x9c2)]===_0x54eb41(0x5ce)?'horizontal':_0x54eb41(0x6c6),_0x5cbef1=this[_0x54eb41(0xd0e)],_0x16dd53=_0x41928d=>{const _0x18fa89=_0x54eb41,_0x2fcaf9=_0x24bbb8['indexOf'](_0x41928d);return this[_0x18fa89(0xb74)](_0x41928d,_0x2fcaf9,_0x5cbef1);},_0xdeeb23=_0x5510ac[_0x54eb41(0x5f7)](_0x16dd53)[_0x54eb41(0x56d)](Boolean)[_0x54eb41(0x358)](''),_0x4c627c=_0x4047d4['map'](_0x16dd53)[_0x54eb41(0x56d)](Boolean)[_0x54eb41(0x358)]('');let _0x5f2c24=_0x4d87cf[_0x54eb41(0x5f7)](_0x16dd53)['filter'](Boolean)[_0x54eb41(0x358)](''),_0x3d1a1a='';if(_0x5ef955){const _0x36c085=_0x4db025[_0x54eb41(0x4e0)]||_0x54eb41(0x3c0);_0x3d1a1a=''+_0x5ef955+_0x54eb41(0x37c);}_0x5b5039[_0x54eb41(0x739)]=_0x54eb41(0x506)+_0x590750;const _0x1abcb0=_0xdeeb23?_0x54eb41(0x740)+_0xdeeb23+_0x54eb41(0xcc8):'',_0x39c7d1=_0x4c627c?_0x54eb41(0xc92)+_0x4c627c+'':'',_0x3f2e68=_0x5f2c24?_0x54eb41(0x35f)+_0x5f2c24+_0x54eb41(0xcc8):'';_0x5b5039[_0x54eb41(0x812)]=''+_0x1abcb0+_0x39c7d1+_0x3f2e68+_0x3d1a1a+_0x54eb41(0xcc8),_0x5b5039['querySelectorAll']('.sgc-state-row')[_0x54eb41(0x366)](_0x1bf99f=>{const _0xc1f97a=_0x54eb41;_0x1bf99f[_0xc1f97a(0xa28)][_0xc1f97a(0x72a)]=_0xc1f97a(0x2de),_0x1bf99f[_0xc1f97a(0x5ea)](_0xc1f97a(0x505),_0xb97e2f=>{const _0x248c34=_0xc1f97a,_0x920e17=parseInt(_0x1bf99f[_0x248c34(0x825)]['idx'],0xa),_0x5513d0=_0x24bbb8[_0x920e17];if(!_0x5513d0)return;_0xb97e2f[_0x248c34(0x35b)](),this[_0x248c34(0x7bc)](_0x5513d0,()=>{const _0x18e0ad=_0x248c34,_0x502392=(_0x5513d0[_0x18e0ad(0xaa5)]||_0x5513d0['statistic_id'])+'__'+_0x920e17;if(this[_0x18e0ad(0x844)]['has'](_0x502392))this[_0x18e0ad(0x844)][_0x18e0ad(0xacc)](_0x502392);else this[_0x18e0ad(0x844)]['add'](_0x502392);this[_0x18e0ad(0xa67)]();});});});}[_0x236d40(0x8c1)](_0x2a7e2a){const _0x4177ea=_0x236d40;if(!this[_0x4177ea(0x721)]?.['length'])return null;if(this[_0x4177ea(0x857)]?.[_0x4177ea(0x98e)])return null;let _0x16fb2c=null;for(let _0x98f0db=0x0;_0x98f0db0.000001)return'';const _0x14d39e=Math[_0x5992d2(0x1db)](_0x5eb726);if(_0x14d39e<0x0||_0x14d39e>=_0x5939ae[_0x5992d2(0x2d1)])return'';const _0x5e5eed=_0x5939ae[_0x14d39e];return _0x5e5eed?.['label']||String(_0x5e5eed?.[_0x5992d2(0x4be)]??'');}[_0x236d40(0xb74)](_0x790e15,_0x34ff26,_0x223f83){const _0x36b328=_0x236d40,_0x1bf2fc=_0x223f83?.['states']?.[_0x790e15[_0x36b328(0xaa5)]];if(!_0x790e15[_0x36b328(0xaa5)]&&!_0x790e15['statistic_id'])return'';const _0x174e27=_0x224469=>{const _0x3ad398=_0x36b328;if(_0x224469==null||_0x224469==='')return'';const _0x55cc52=String(_0x224469)[_0x3ad398(0x900)]();return/[a-z%]$/i[_0x3ad398(0x1b8)](_0x55cc52)?'font-size:'+_0x55cc52:_0x3ad398(0xa55)+_0x55cc52+'px';},_0x4748c3=_0x174e27(_0x790e15['name_size']),_0x130fc0=_0x174e27(_0x790e15['state_size']),_0x41f274=_0x790e15[_0x36b328(0x47d)]?_0x36b328(0x959)+(/[a-z%]$/i[_0x36b328(0x1b8)](String(_0x790e15[_0x36b328(0x47d)])[_0x36b328(0x900)]())?String(_0x790e15['icon_size'])[_0x36b328(0x900)]():String(_0x790e15[_0x36b328(0x47d)])[_0x36b328(0x900)]()+'px'):'';let _0x5e47e5='';if(_0x790e15[_0x36b328(0x858)]){const _0x557387=pickName(_0x790e15[_0x36b328(0x858)],this['_resolveTemplateText'](_0x790e15['name']),{'friendly_name':_0x1bf2fc?.['attributes']?.[_0x36b328(0xa43)]})??_0x790e15[_0x36b328(0xaa5)]??'';_0x5e47e5=_0x36b328(0x8d6)+(_0x4748c3?'\x20style=\x22'+_0x4748c3+'\x22':'')+'>'+escapeHtml(_0x557387)+_0x36b328(0x891);}const _0x5abbd3=_0x790e15[_0x36b328(0x7ff)]??_0x1bf2fc?.[_0x36b328(0xbb4)]?.['unit_of_measurement']??(_0x790e15[_0x36b328(0x892)]?this[_0x36b328(0x7f8)]?.[_0x790e15[_0x36b328(0x892)]]?.['unit_of_measurement']:null)??'',_0xaef145=this[_0x36b328(0x5bd)](_0x790e15,_0x34ff26),_0x50402b=_0xaef145[_0x36b328(0xb68)],_0x2f4d2e=_0xaef145[_0x36b328(0x4c6)],_0x2be5c0=this[_0x36b328(0xae6)](_0x790e15[_0x36b328(0x6f8)])||_0x790e15[_0x36b328(0x6f8)]||PALETTE[_0x34ff26%PALETTE[_0x36b328(0x2d1)]]||_0x36b328(0x70b),_0x14e695=!!_0x790e15[_0x36b328(0x581)],_0x2dfa37=_0x790e15['color_thresholds'],_0xb0709=!!(_0x2dfa37?.[_0x36b328(0x4e9)]&&Array['isArray'](_0x2dfa37[_0x36b328(0x91d)])&&_0x2dfa37['values']['length']&&isNum(_0x50402b)),_0x3846a5=(_0x2dfa37?.[_0x36b328(0x38b)]??_0x36b328(0x460))!==_0x36b328(0x471);let _0x4ffda1=null;if(_0x14e695&&!_0xb0709){const _0x119df1=_0x790e15[_0x36b328(0x295)]||autoStateMap(_0x790e15,this['_hass'],this[_0x36b328(0x857)]?.[_0x36b328(0xc9c)]);if(Array[_0x36b328(0x707)](_0x119df1)&&_0x119df1[_0x36b328(0x2d1)]){let _0x1e99df=isNum(_0x50402b)?Math[_0x36b328(0x1db)](_0x50402b):null;if(_0x1e99df===null&&_0x1bf2fc&&_0x1bf2fc[_0x36b328(0xb91)]!=null){const _0x55e30f=applyStateMap(_0x1bf2fc['state'],_0x119df1);if(_0x55e30f&&_0x55e30f['mapped'])_0x1e99df=_0x55e30f[_0x36b328(0x4be)];}_0x1e99df!==null&&_0x1e99df>=0x0&&_0x1e99df<_0x119df1[_0x36b328(0x2d1)]&&(_0x4ffda1=_0x119df1[_0x1e99df]?.[_0x36b328(0x6f8)]||null);}}const _0x2e3d5a=_0x14e695?_0xb0709?resolveValueColor(_0x50402b,this[_0x36b328(0xb24)](_0x790e15),_0x2be5c0,_0x3846a5):_0x4ffda1||_0x2be5c0:null,_0x5d01c4=this[_0x36b328(0xae6)](_0x790e15[_0x36b328(0x76a)])||_0x790e15['icon_color'],_0x599013=this[_0x36b328(0xae6)](_0x790e15[_0x36b328(0x4e3)])||_0x790e15[_0x36b328(0x4e3)],_0x1f79bb=_0x14e695?_0x5d01c4===_0x36b328(0x817)?this[_0x36b328(0x585)](_0x5d01c4,_0x790e15,_0x50402b,_0x2be5c0):_0x2e3d5a:this['_resolveStateColor'](_0x5d01c4,_0x790e15,_0x50402b,_0x2be5c0),_0x4b3414=_0x14e695?_0x599013===_0x36b328(0x817)?this[_0x36b328(0x585)](_0x599013,_0x790e15,_0x50402b,_0x2be5c0):_0x2e3d5a:this[_0x36b328(0x585)](_0x599013,_0x790e15,_0x50402b,_0x2be5c0),_0x4f3f55=_0x1f79bb?_0x36b328(0x3e0)+escapeHtml(_0x1f79bb):'',_0xb53d1e=_0x4b3414?_0x36b328(0x3e0)+escapeHtml(_0x4b3414):'',_0xa905c9=_0x4f3f55,_0x4b783b=[_0xb53d1e,_0x130fc0][_0x36b328(0x56d)](Boolean)[_0x36b328(0x358)](';'),_0x19a979=this[_0x36b328(0x7a8)](_0x790e15['icon']),_0x1f80c2=_0x19a979?'':'';let _0x12e0b8;{const _0x53e1ac=this['_buildSecondStateHtml'](_0x790e15,_0x34ff26,_0x4b3414,_0x130fc0),_0x46c593=_0x5abbd3?''+escapeHtml(_0x5abbd3)+_0x36b328(0x891):'',_0xb67b66=_0xaef145[_0x36b328(0xbc4)]?''+escapeHtml(_0xaef145[_0x36b328(0xbc4)])+_0x36b328(0x891):'',_0x19546b=_0xaef145[_0x36b328(0x8b2)]?_0x36b328(0x6c2)+escapeHtml(_0xaef145[_0x36b328(0x8b2)][_0x36b328(0x9f4)])+_0x36b328(0xc81)+escapeHtml(_0xaef145[_0x36b328(0x8b2)]['max'])+(_0x5abbd3?'\x20'+escapeHtml(_0x5abbd3):'')+_0x36b328(0x485):'';_0x12e0b8=_0x36b328(0x622)+(_0x4b783b?_0x36b328(0x1ff)+_0x4b783b+'\x22':'')+'>'+escapeHtml(_0x2f4d2e)+_0x46c593+_0xb67b66+_0x19546b+_0x36b328(0x891)+_0x53e1ac;}const _0x14ece7=_0x14e695?_0x2e3d5a||_0x2be5c0:_0x2be5c0,_0x50f817=_0x790e15[_0x36b328(0x481)]!==![]&&_0x790e15[_0x36b328(0x21b)]!==![]?_0x36b328(0x603)+escapeHtml(_0x14ece7)+_0x36b328(0xbb0):'',_0x44634e={'up':'▲','down':'▼','stable':'━'},_0x14ed1b={'up':_0x790e15[_0x36b328(0x602)]||_0x36b328(0x90e),'down':_0x790e15[_0x36b328(0x525)]||_0x36b328(0x71e),'stable':_0x790e15[_0x36b328(0xa9a)]||_0x36b328(0xae4)},_0x133d0f=_0x174e27(_0x790e15[_0x36b328(0x467)]);let _0x4c01ab=_0x36b328(0x6e7);if(_0x790e15[_0x36b328(0x4e4)]!==![]){const _0x3c0f92=_0x790e15[_0x36b328(0xaa5)]+'__'+_0x34ff26,_0x443a97=this[_0x36b328(0x945)]?.[_0x36b328(0x668)]?.['find'](_0x35fce8=>_0x35fce8['id']===_0x3c0f92||_0x35fce8['entity']===_0x790e15);_0x4c01ab=trendDirection(_0x443a97,_0x790e15);}const _0x6f424b=[_0x36b328(0x3e0)+(_0x14ed1b[_0x4c01ab]||_0x14ed1b[_0x36b328(0x6e7)]),_0x133d0f]['filter'](Boolean)['join'](';'),_0x167cf3=_0x790e15['show_trend_icon']!==![]&&this[_0x36b328(0x857)]?.[_0x36b328(0xc9c)]!==_0x36b328(0x979)?_0x36b328(0xc79)+_0x6f424b+'\x22>'+(_0x44634e[_0x4c01ab]||_0x44634e[_0x36b328(0x6e7)])+'':'',_0x30d753=this[_0x36b328(0x844)]?.[_0x36b328(0x620)]((_0x790e15[_0x36b328(0xaa5)]||_0x790e15[_0x36b328(0x892)])+'__'+_0x34ff26)?_0x36b328(0x44b):'',_0x51721c=_0x790e15[_0x36b328(0x5ee)]===_0x36b328(0xc45);if(_0x51721c&&_0x5e47e5)return _0x36b328(0x8b5)+_0x30d753+_0x36b328(0x41c)+_0x34ff26+'\x22>'+_0x50f817+_0x1f80c2+_0x36b328(0x1a9)+_0x12e0b8+_0x167cf3+''+_0x5e47e5+_0x36b328(0x9f3);return _0x36b328(0x8af)+_0x30d753+_0x36b328(0x41c)+_0x34ff26+'\x22>'+_0x50f817+_0x1f80c2+_0x5e47e5+_0x12e0b8+_0x167cf3+_0x36b328(0xcc8);}[_0x236d40(0x5bd)](_0x3c1ad4,_0x5561ce){const _0x5d4e71=_0x236d40,_0x3ff9ed=this[_0x5d4e71(0xd0e)],_0x55fd7c=_0x3ff9ed?.[_0x5d4e71(0x869)]?.[_0x3c1ad4[_0x5d4e71(0xaa5)]],_0x312854=()=>{const _0x411d3e=_0x5d4e71;if(!this[_0x411d3e(0x945)]?.[_0x411d3e(0x668)])return null;const _0x15c391=(_0x3c1ad4['entity']||_0x3c1ad4[_0x411d3e(0x892)])+'__'+_0x5561ce;return this['_graphData'][_0x411d3e(0x668)]['find'](_0x1dbfe4=>_0x1dbfe4['entity']===_0x3c1ad4||_0x1dbfe4['id']===_0x15c391)||this[_0x411d3e(0x945)][_0x411d3e(0x668)][_0x411d3e(0x696)](_0x385f07=>_0x385f07['id']===(_0x3c1ad4[_0x411d3e(0xaa5)]||_0x3c1ad4[_0x411d3e(0x892)]));};let _0x5ea31c=_0x3c1ad4[_0x5d4e71(0xabe)];if(!_0x5ea31c&&_0x3c1ad4['show_state_last'])_0x5ea31c=_0x5d4e71(0x75d);if(_0x5ea31c&&_0x5ea31c!=='state'){const _0x47e6af=_0x312854();if(_0x47e6af){const _0x4866fe=_0x1c6606=>{const _0x14b585=_0x5d4e71;if(!_0x3c1ad4['show_timestamp'])return null;if(_0x1c6606!==_0x14b585(0x9f4)&&_0x1c6606!==_0x14b585(0x6fe)&&_0x1c6606!==_0x14b585(0x319)&&_0x1c6606!==_0x14b585(0x75d))return null;const _0x229c1c=_0x1c6606+'T',_0x508f46=_0x47e6af[_0x14b585(0x450)]?.[_0x229c1c];if(!isNum(_0x508f46))return null;const _0x14dee0=!!_0x47e6af[_0x14b585(0x450)]?.[_0x229c1c+_0x14b585(0x337)],_0x530d52=_0x14dee0?'raw':_0x47e6af[_0x14b585(0x67f)]||_0x14b585(0x447);try{return formatDateTime(new Date(_0x508f46),this[_0x14b585(0x857)],_0x3ff9ed,{'precision':_0x530d52});}catch(_0x526747){return null;}},_0x484f58=()=>{const _0x3579d8=_0x5d4e71;if(!_0x3c1ad4[_0x3579d8(0xa5f)])return null;let _0x5442b2=Infinity,_0x46db0a=-Infinity;if(_0x47e6af['points']?.['length'])for(const _0x2fb30f of _0x47e6af['points']){if(isNum(_0x2fb30f[_0x3579d8(0x996)])&&_0x2fb30f[_0x3579d8(0x996)]<_0x5442b2)_0x5442b2=_0x2fb30f[_0x3579d8(0x996)];if(isNum(_0x2fb30f[_0x3579d8(0x1be)])&&_0x2fb30f[_0x3579d8(0x1be)]>_0x46db0a)_0x46db0a=_0x2fb30f['bMax'];}if(!isFinite(_0x5442b2)&&isNum(_0x47e6af[_0x3579d8(0x450)]?.['min']))_0x5442b2=_0x47e6af[_0x3579d8(0x450)][_0x3579d8(0x9f4)];if(!isFinite(_0x46db0a)&&isNum(_0x47e6af['stats']?.['max']))_0x46db0a=_0x47e6af[_0x3579d8(0x450)][_0x3579d8(0x6fe)];if(!isFinite(_0x5442b2)||!isFinite(_0x46db0a))return null;return{'min':formatNumber(_0x5442b2,_0x3c1ad4,_0x3ff9ed),'max':formatNumber(_0x46db0a,_0x3c1ad4,_0x3ff9ed)};},_0x24f86e=(_0x15ac46,_0x3a1769)=>{const _0x2b4b36=_0x5d4e71,_0x349465=formatNumber(_0x15ac46,_0x3c1ad4,_0x3ff9ed),_0x30e569=_0x4866fe(_0x3a1769),_0x58f5e7=_0x484f58(),_0x2d51fd={'numeric':_0x15ac46,'label':_0x349465};if(_0x30e569)_0x2d51fd[_0x2b4b36(0xbc4)]=_0x30e569;if(_0x58f5e7)_0x2d51fd[_0x2b4b36(0x8b2)]=_0x58f5e7;return _0x2d51fd;};if(_0x5ea31c===_0x5d4e71(0x75d)){const _0x21ba1f=_0x47e6af[_0x5d4e71(0xaee)]?.[_0x47e6af[_0x5d4e71(0xaee)]['length']-0x1];if(_0x21ba1f&&isNum(_0x21ba1f['v']))return _0x24f86e(_0x21ba1f['v'],_0x5d4e71(0x75d));}else{const _0x478b96=_0x5ea31c===_0x5d4e71(0x2dc)?'avg':_0x5ea31c,_0x2f8381=_0x47e6af[_0x5d4e71(0x450)]?.[_0x478b96];if(isNum(_0x2f8381))return _0x24f86e(_0x2f8381,_0x478b96);}}}const _0x8bacc5=resolveOffsetHours(_0x3c1ad4['offset'],_0x3ff9ed),_0x19cc5d=!!_0x3c1ad4[_0x5d4e71(0x892)],_0x5f1ce0=_0x8bacc5!==0x0||_0x19cc5d;if(_0x5f1ce0){const _0x58bf77=_0x312854(),_0x349164=_0x58bf77?.[_0x5d4e71(0xaee)];if(_0x349164&&_0x349164[_0x5d4e71(0x2d1)]){let _0x370b60=_0x349164[_0x349164['length']-0x1];if(_0x8bacc5!==0x0){const _0x3af1c8=Date[_0x5d4e71(0x8c9)]();let _0x109549=Infinity,_0x4456c3=null;for(const _0x8ece04 of _0x349164){if(!isNum(_0x8ece04['v']))continue;const _0x49fcf7=Math[_0x5d4e71(0x971)](_0x8ece04['t']-_0x3af1c8);_0x49fcf7<_0x109549&&(_0x109549=_0x49fcf7,_0x4456c3=_0x8ece04);}if(_0x4456c3)_0x370b60=_0x4456c3;}if(_0x370b60&&isNum(_0x370b60['v']))return{'numeric':_0x370b60['v'],'label':formatNumber(_0x370b60['v'],_0x3c1ad4,_0x3ff9ed)};}}const _0x2568a4=this[_0x5d4e71(0x31c)](_0x3c1ad4,_0x5561ce),_0x4a60e4=_0x2568a4?getAttributePath(_0x55fd7c?.[_0x5d4e71(0xbb4)],_0x2568a4):_0x55fd7c?.[_0x5d4e71(0xb91)],_0x44be6f=_0x2568a4?null:_0x3c1ad4[_0x5d4e71(0x295)]||autoStateMap(_0x3c1ad4,_0x3ff9ed,this[_0x5d4e71(0x857)]?.['chart_mode']);if(_0x44be6f){const _0x2ad9b0=applyStateMap(_0x4a60e4,_0x44be6f);if(_0x2ad9b0[_0x5d4e71(0xc78)]){const _0x4428f8=_0x44be6f[_0x2ad9b0['value']],_0x52991f=_0x4428f8?.['label']||String(_0x4428f8?.[_0x5d4e71(0x4be)]);return{'numeric':_0x2ad9b0[_0x5d4e71(0x4be)],'label':_0x52991f};}}const _0x4e1dac=toNum(_0x4a60e4);if(_0x4e1dac===null){const _0x5034a5=_0x4a60e4==null?'—':String(_0x4a60e4);return{'numeric':null,'label':_0x5034a5};}const _0x1d404e=DataProcessor[_0x5d4e71(0x73a)]({'t':0x0,'v':_0x4e1dac},_0x3c1ad4),_0x129d3c=_0x1d404e?.['v']??null;if(_0x129d3c===null)return{'numeric':null,'label':'—'};return{'numeric':_0x129d3c,'label':formatNumber(_0x129d3c,_0x3c1ad4,_0x3ff9ed)};}[_0x236d40(0x9f8)](_0xdf7da6,_0x3c25ca,_0x3f2802,_0x33c99f){const _0x4457e3=_0x236d40,_0xc9e27b=_0xdf7da6['show_second_state_as'];if(!_0xc9e27b)return'';const _0x38e5af=[_0x3f2802?_0x4457e3(0x3e0)+_0x3f2802:'',_0x33c99f||''][_0x4457e3(0x56d)](Boolean)['join'](';'),_0x3f57c1=_0x38e5af?_0x4457e3(0x1ff)+escapeHtml(_0x38e5af)+'\x22':'',_0x371b74=(_0xdf7da6['entity']||_0xdf7da6['statistic_id'])+'__'+_0x3c25ca,_0x54d938=this[_0x4457e3(0x945)]?.[_0x4457e3(0x668)]?.['find'](_0xf41631=>_0xf41631['entity']===_0xdf7da6||_0xf41631['id']===_0x371b74||_0xf41631['id']===(_0xdf7da6[_0x4457e3(0xaa5)]||_0xdf7da6['statistic_id']));if(!_0x54d938)return'';if(_0xc9e27b===_0x4457e3(0xa51)){const _0x4d6172=this[_0x4457e3(0x857)]?.[_0x4457e3(0xc9c)];if(!['pie',_0x4457e3(0x6bd),_0x4457e3(0x36d)][_0x4457e3(0x2cf)](_0x4d6172))return'';const _0x508b62=_0x4d6172===_0x4457e3(0x6bd)?toNum(this[_0x4457e3(0x857)]?.[_0x4457e3(0x30c)]):null,_0x3a35e4=_0x1185af=>!isNum(_0x508b62)||Math[_0x4457e3(0x971)](_0x1185af)>=_0x508b62;let _0xcbfef=0x0;for(const _0x21f9b8 of this[_0x4457e3(0x945)]?.[_0x4457e3(0x668)]||[]){const _0x18f9a0=_0x21f9b8[_0x4457e3(0xaa5)];if(!_0x18f9a0)continue;const _0x1a2af2=this['_shareScalarValue'](_0x21f9b8,_0x18f9a0);if(!_0x3a35e4(_0x1a2af2))continue;_0xcbfef+=Math[_0x4457e3(0x971)](_0x1a2af2);}const _0x334601=this[_0x4457e3(0x426)](_0x54d938,_0xdf7da6);if(!_0x3a35e4(_0x334601)||!(_0xcbfef>0x0))return'';const _0x1da8e2=Math['abs'](_0x334601)/_0xcbfef*0x64,_0x2dc069=toNum(_0xdf7da6['decimals'])??0x1;return _0x4457e3(0x6cc)+_0x3f57c1+'>'+escapeHtml(_0x1da8e2[_0x4457e3(0x669)](_0x2dc069))+_0x4457e3(0x37e);}if(!_0x54d938[_0x4457e3(0x450)])return'';const _0x51759b=_0xc9e27b===_0x4457e3(0x2dc)?_0x4457e3(0x7ae):_0xc9e27b,_0x46b9b5=_0x54d938[_0x4457e3(0x450)][_0x51759b];if(!isNum(_0x46b9b5))return'';const _0x4676a2=_0xc9e27b[_0x4457e3(0x77e)]();return'_0x4f7a4e['v']!==null&&_0x4f7a4e['v']!==undefined),_0x5105a2=this[_0x33d87e(0x857)]?.[_0x33d87e(0xc9c)]===_0x33d87e(0x6bd)?'avg':_0x33d87e(0x75d),_0x498cc8=_0x4a7654['aggregate_func']||_0x5105a2;let _0x3cd976;if(_0x23f908[_0x33d87e(0x2d1)]){if(_0x498cc8==='first')_0x3cd976=_0x23f908[0x0]['v'];else{if(_0x498cc8==='sum')_0x3cd976=_0x23f908[_0x33d87e(0x573)]((_0x548378,_0x36fe42)=>_0x548378+(_0x36fe42['v']||0x0),0x0);else{if(_0x498cc8===_0x33d87e(0x9f4))_0x3cd976=_0x23f908['reduce']((_0x5e4934,_0x1fbe0c)=>Math['min'](_0x5e4934,_0x1fbe0c['v']),Infinity);else{if(_0x498cc8===_0x33d87e(0x6fe))_0x3cd976=_0x23f908[_0x33d87e(0x573)]((_0x5a5fee,_0x2714ca)=>Math['max'](_0x5a5fee,_0x2714ca['v']),-Infinity);else{if(_0x498cc8===_0x33d87e(0x7ae)||_0x498cc8===_0x33d87e(0x2dc))_0x3cd976=_0x23f908[_0x33d87e(0x573)]((_0x1cadea,_0x448203)=>_0x1cadea+(_0x448203['v']||0x0),0x0)/_0x23f908[_0x33d87e(0x2d1)];else _0x3cd976=_0x23f908[_0x23f908['length']-0x1]['v'];}}}}}else{const _0x3f580e=this['_hass']?.[_0x33d87e(0x869)]?.[_0x4a7654[_0x33d87e(0xaa5)]];_0x3cd976=_0x3f580e?parseFloat(_0x3f580e[_0x33d87e(0xb91)]):0x0;}if(_0x3cd976===undefined||_0x3cd976===null||isNaN(_0x3cd976))_0x3cd976=0x0;return _0x3cd976;}['_resolveStateColor'](_0x368ef5,_0x133f82,_0x19ac29,_0x348fb2){const _0x132d7f=_0x236d40;if(!_0x368ef5)return null;if(_0x368ef5!==_0x132d7f(0x817))return _0x368ef5;const _0x54f861=_0x133f82[_0x132d7f(0x279)];if(!_0x54f861?.[_0x132d7f(0x4e9)]||!Array[_0x132d7f(0x707)](_0x54f861[_0x132d7f(0x91d)])||!_0x54f861[_0x132d7f(0x91d)][_0x132d7f(0x2d1)])return _0x348fb2||null;if(!isNum(_0x19ac29))return _0x348fb2||null;return resolveValueColor(_0x19ac29,_0x54f861[_0x132d7f(0x91d)],_0x348fb2||_0x132d7f(0x70b));}}class StatisticsGraphChartCardEditor extends HTMLElement{[_0x236d40(0x780)](_0x4420c2){const _0x27552f=_0x236d40;return cardT(this[_0x27552f(0xd0e)],this['_config'],_0x4420c2);}constructor(){const _0x301977=_0x236d40;super(),this['attachShadow']({'mode':_0x301977(0x9d8)}),this['_hass']=null,this[_0x301977(0x857)]={},this[_0x301977(0xa82)]={},this[_0x301977(0xa2d)]=!![],this[_0x301977(0xba5)]=new Set([_0x301977(0x4bd)]),this[_0x301977(0xc7d)]=null,this['_activeTab']={},this[_0x301977(0xa13)]=this[_0x301977(0xa13)]||_0x301977(0x886),this[_0x301977(0x5d6)]=new Map(),this['_colorUnsubs']=[];}set['hass'](_0x68c92f){const _0x7ce860=_0x236d40,_0x2cd86b=this[_0x7ce860(0xd0e)];this['_hass']=_0x68c92f;if(_0x68c92f&&_0x68c92f[_0x7ce860(0x655)])this[_0x7ce860(0xb28)]();const _0x30da70=this[_0x7ce860(0x857)]&&Object[_0x7ce860(0x27d)](this['_config'])['length'],_0x55ca4b=resolveCardLanguage(_0x68c92f,this[_0x7ce860(0x857)]);if(_0x30da70&&_0x68c92f&&this[_0x7ce860(0x847)]!==undefined&&this['_edLang']!==_0x55ca4b){this[_0x7ce860(0xa67)]();return;}if(!_0x2cd86b&&_0x68c92f&&_0x30da70)this[_0x7ce860(0xa67)]();else{if(_0x2cd86b&&_0x68c92f){const _0x51b90c=Object[_0x7ce860(0x27d)](_0x2cd86b[_0x7ce860(0x869)]||{})[_0x7ce860(0xc70)]()[_0x7ce860(0x358)](','),_0x1e7380=Object[_0x7ce860(0x27d)](_0x68c92f[_0x7ce860(0x869)]||{})['sort']()['join'](',');if(_0x51b90c!==_0x1e7380&&_0x30da70)this[_0x7ce860(0xa67)]();}}}['_resolveEditorColor'](_0x58366a){const _0x44b859=_0x236d40;if(!_0x58366a||typeof _0x58366a!==_0x44b859(0xc00)||!_0x58366a['includes']('{{'))return _0x58366a;return this[_0x44b859(0x5d6)]['get'](_0x58366a)||null;}[_0x236d40(0xb28)](){const _0x46c4c2=_0x236d40,_0x3b9374=new Set();for(const _0x3c0acb of this[_0x46c4c2(0x721)]||[]){if(typeof _0x3c0acb[_0x46c4c2(0x6f8)]===_0x46c4c2(0xc00)&&_0x3c0acb[_0x46c4c2(0x6f8)][_0x46c4c2(0x2cf)]('{{'))_0x3b9374[_0x46c4c2(0x412)](_0x3c0acb['color']);}const _0x4accc1=[..._0x3b9374][_0x46c4c2(0xc70)]()[_0x46c4c2(0x358)]('|');if(_0x4accc1===this[_0x46c4c2(0x6f7)])return;this[_0x46c4c2(0x6f7)]=_0x4accc1;for(const _0x33c668 of this[_0x46c4c2(0xc06)]){try{_0x33c668();}catch(_0x4d68eb){}}this['_colorUnsubs']=[];if(!_0x3b9374['size'])return;for(const _0x4a12e5 of _0x3b9374){try{const _0x5df154=this[_0x46c4c2(0xd0e)][_0x46c4c2(0x655)][_0x46c4c2(0xbe4)](_0x22540b=>{const _0x566ae3=_0x46c4c2,_0x3adaaf=normalizeTemplateResult(_0x22540b?.[_0x566ae3(0x38a)]);if(!_0x3adaaf)return;const _0x360c3e=this[_0x566ae3(0x5d6)][_0x566ae3(0x66a)](_0x4a12e5);if(_0x360c3e===_0x3adaaf)return;this[_0x566ae3(0x5d6)][_0x566ae3(0x907)](_0x4a12e5,_0x3adaaf),this[_0x566ae3(0x9a3)]?.[_0x566ae3(0x21a)](_0x566ae3(0x759))['forEach'](_0x445d2f=>{const _0x18d00f=_0x566ae3,_0x33b7d5=parseInt(_0x445d2f[_0x18d00f(0x825)][_0x18d00f(0x96c)],0xa),_0x3565dc=this['_entities'][_0x33b7d5];if(_0x3565dc?.[_0x18d00f(0x6f8)]===_0x4a12e5){const _0x17ec57=_0x445d2f[_0x18d00f(0x2e5)](_0x18d00f(0x953));if(_0x17ec57)_0x17ec57[_0x18d00f(0xa28)]['background']=_0x3adaaf;}});},{'type':_0x46c4c2(0xbe5),'template':_0x4a12e5});_0x5df154[_0x46c4c2(0xa1d)](_0x3b72d1=>this['_colorUnsubs'][_0x46c4c2(0x2c1)](_0x3b72d1))[_0x46c4c2(0x946)](()=>{});}catch(_0x55af21){}}}[_0x236d40(0x4f0)](_0x32f4da){const _0x5a5ec4=_0x236d40;this['_config']=structuredClone(_0x32f4da||{}),this[_0x5a5ec4(0xa82)]=structuredClone(_0x32f4da||{});if(!this[_0x5a5ec4(0xa82)]['entities'])this['_tmp']['entities']=[];this[_0x5a5ec4(0x6f7)]=null;if(this[_0x5a5ec4(0xd0e)]?.[_0x5a5ec4(0x655)])this[_0x5a5ec4(0xb28)]();this[_0x5a5ec4(0xa67)]();}get[_0x236d40(0x721)](){const _0x5133d7=_0x236d40;return Array[_0x5133d7(0x707)](this['_tmp']['entities'])?this['_tmp'][_0x5133d7(0x4bd)]:[];}[_0x236d40(0x6a1)](){const _0x2be9e5=_0x236d40;if(!this['_hass'])return[];return Object[_0x2be9e5(0x27d)](this[_0x2be9e5(0xd0e)][_0x2be9e5(0x869)]||{})[_0x2be9e5(0x56d)](_0x9815f7=>{const _0x54c769=_0x2be9e5,_0x3daf3d=this[_0x54c769(0xd0e)]['states'][_0x9815f7];if(!_0x3daf3d)return![];return!isNaN(parseFloat(_0x3daf3d[_0x54c769(0xb91)]))||_0x9815f7[_0x54c769(0x43e)](_0x54c769(0x856))||_0x9815f7[_0x54c769(0x43e)](_0x54c769(0x685))||_0x9815f7[_0x54c769(0x43e)]('input_number.');})[_0x2be9e5(0xc70)]();}[_0x236d40(0xa67)](){const _0x418038=_0x236d40;this[_0x418038(0x847)]=resolveCardLanguage(this[_0x418038(0xd0e)],this[_0x418038(0x857)]);const _0x2dee0d=this[_0x418038(0x9a3)][_0x418038(0x3b3)],_0x406098=_0x2dee0d?.[_0x418038(0x410)]!==void 0x0?{'path':this[_0x418038(0x2c0)](_0x2dee0d),'ss':_0x2dee0d['selectionStart'],'se':_0x2dee0d['selectionEnd']}:null,_0x6ea883=this[_0x418038(0xa82)],_0x3b86c9=getComputedStyle(document[_0x418038(0xa54)])[_0x418038(0x339)](_0x418038(0x1af))[_0x418038(0x900)]()||'Roboto,\x20sans-serif',_0x13bccf=(_0x231b2b,_0x16fe07,_0xefcc77=null)=>''+escapeHtml(String(_0xefcc77??_0x231b2b))+'',_0x2411c1=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c],_0x4e5207=(_0x1892e1,_0x41b411)=>{const _0x3f3892=_0x418038,_0x504e48=_0x1892e1===undefined||_0x1892e1===null||_0x1892e1===''?'':String(_0x1892e1),_0x2296fd=_0x2411c1[_0x3f3892(0x670)]();return _0x504e48!==''&&!_0x2296fd['map'](String)[_0x3f3892(0x2cf)](_0x504e48)&&isFinite(Number(_0x504e48))&&(_0x2296fd[_0x3f3892(0x2c1)](Number(_0x504e48)),_0x2296fd[_0x3f3892(0xc70)]((_0x4297c6,_0x4e361a)=>_0x4297c6-_0x4e361a)),(_0x41b411?_0x3f3892(0x52e)+(_0x504e48===''?'selected':'')+'>'+this[_0x3f3892(0x780)](_0x3f3892(0x61a))+_0x3f3892(0x2dd):'')+_0x2296fd['map'](_0x1183ae=>_0x13bccf(_0x1183ae,_0x504e48))[_0x3f3892(0x358)]('');},_0x683d20=(_0x32ff92,_0x4b024d)=>_0x32ff92===0x0||_0x32ff92?_0x32ff92:_0x4b024d,_0x2bfa04=_0x554666=>_0x418038(0x2cc)+_0x554666+_0x418038(0xca6),_0xd27989=(_0x11549d,_0x13811f)=>{const _0x3ced72=_0x418038,_0x57953f=this[_0x3ced72(0x475)](_0x13811f),_0x1fe670=typeof _0x13811f===_0x3ced72(0xc00)&&_0x13811f[_0x3ced72(0x2cf)]('{{');return _0x3ced72(0x242)+_0x11549d+_0x3ced72(0x724)+escapeHtml(_0x13811f||'')+'\x22\x20placeholder=\x22#hex,\x20var(--x-color)\x20or\x20{{\x20template\x20}}\x22>(_0x440f8c?.[_0x418038(0xcad)]||_0x440f8c?.[_0x418038(0x604)])===_0x418038(0xc87)),_0x4dfc91=((()=>{const _0x4e3424=_0x418038;let _0x4597e8=this[_0x4e3424(0xa13)]||_0x4e3424(0x886);if(_0x4597e8===_0x4e3424(0xb75))_0x4597e8=_0x4e3424(0x886);if(_0x4597e8==='overlays')_0x4597e8=_0x4e3424(0xc14);const _0x52af90={'display':!![],'card_style':!_0x3194e3,'overlay':!_0x3194e3,'xaxis':(_0x2ba79e||_0x31f32e||_0x5c9ba1===_0x4e3424(0x979))&&!_0x3194e3,'yaxis':(_0x2ba79e||_0x31f32e)&&!_0x3194e3,'calendar':!_0x3194e3};if(!_0x52af90[_0x4597e8])_0x4597e8=_0x4e3424(0x886);return _0x4597e8;})()),_0x386c68=_0x418038(0x766)+(this[_0x418038(0xba5)][_0x418038(0x620)](_0x418038(0x637))?_0x418038(0x9d8):'')+'\x22\x20data-panel=\x22main\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)](_0x418038(0xb84))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)](_0x418038(0xaf3))+_0x418038(0xb0c)+(_0x4dfc91===_0x418038(0x886)?_0x418038(0xc4e):'')+_0x418038(0x221)+this['_eT'](_0x418038(0x1b6))+_0x418038(0xca1)+(_0x4dfc91==='card_style'?_0x418038(0xc4e):'')+'\x22\x20data-mtab=\x22card_style\x22>'+this[_0x418038(0x780)](_0x418038(0x545))+_0x418038(0xd02)+(!_0x3194e3?_0x418038(0x3d4)+(_0x4dfc91===_0x418038(0xc14)?'active':'')+_0x418038(0x91e)+this[_0x418038(0x780)](_0x418038(0xccc))+_0x418038(0x3a7):'')+_0x418038(0x80f)+((_0x2ba79e||_0x31f32e||_0x5c9ba1===_0x418038(0x979))&&!_0x3194e3?'':'')+_0x418038(0x80f)+(!_0x3194e3?_0x418038(0x3d4)+(_0x4dfc91===_0x418038(0xabf)?_0x418038(0xc4e):'')+_0x418038(0x3b5)+this['_eT']('Calendar')+_0x418038(0x3a7):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)](_0x418038(0x2fe))+_0x418038(0xcb1)+this['_eT']('Card\x20Header')+'\x20'+_0x2bfa04('Title\x20text\x20shown\x20at\x20the\x20top\x20of\x20the\x20card.\x20Leave\x20empty\x20to\x20hide\x20the\x20header\x20row\x20entirely.')+_0x418038(0x6a2)+this[_0x418038(0x780)]('e.g.\x20Statistics')+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x674)]??'')+_0x418038(0x349)+this['_eT']('Header\x20&\x20Battery')+'\x20'+_0x2bfa04(_0x418038(0xa11))+'_0x13bccf(_0x2d89e1,_0x6ea883[_0x418038(0xa97)]??'left',this[_0x418038(0x780)](_0x2d89e1[_0x418038(0x5b9)](0x0)[_0x418038(0x77e)]()+_0x2d89e1[_0x418038(0x670)](0x1))))[_0x418038(0x358)]('')+_0x418038(0x91f)+this['_eT']('State\x20Layout')+'\x20'+_0x2bfa04(_0x418038(0x4c0))+_0x418038(0x990)+[_0x418038(0x6c6),'horizontal'][_0x418038(0x5f7)](_0x51179c=>_0x13bccf(_0x51179c,_0x6ea883[_0x418038(0x9c2)]??_0x418038(0x6c6),{'default':this[_0x418038(0x780)](_0x418038(0x9ec)),'horizontal':this[_0x418038(0x780)]('Horizontal')}[_0x51179c]))['join']('')+_0x418038(0xaaa)+this[_0x418038(0x780)](_0x418038(0xa90))+'\x20'+_0x2bfa04('Custom\x20color\x20for\x20the\x20header\x20text.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xd27989(_0x418038(0x708),_0x6ea883[_0x418038(0x96a)]??'')+_0x418038(0x477)+this['_eT'](_0x418038(0x226))+'\x20'+_0x2bfa04(_0x418038(0x5a3))+_0x418038(0x6d1)+this[_0x418038(0x780)]('Icon\x20Size')+'\x20'+_0x2bfa04('Width\x20and\x20height\x20of\x20the\x20icon.\x20Accepts\x20CSS\x20values\x20like\x2022px\x20or\x201.5rem.')+_0x418038(0x69e)+escapeHtml(_0x6ea883[_0x418038(0x71d)]??'')+_0x418038(0x356)+this[_0x418038(0x780)]('Image\x20URL')+'\x20'+_0x2bfa04(_0x418038(0x6e2))+_0x418038(0x380)+escapeHtml(_0x6ea883[_0x418038(0x69d)]??'')+'\x22>_0x13bccf(_0x54de9a,_0x6ea883[_0x418038(0x1a5)]??'center',this['_eT'](_0x54de9a[_0x418038(0x5b9)](0x0)[_0x418038(0x77e)]()+_0x54de9a[_0x418038(0x670)](0x1))))['join']('')+_0x418038(0x8ad):'')+_0x418038(0x801)+this[_0x418038(0x780)](_0x418038(0x3ae))+_0x418038(0x503)+this[_0x418038(0x780)]('Language')+'\x20'+_0x2bfa04('Language\x20of\x20the\x20on-card\x20texts\x20-\x20date\x20picker\x20presets\x20and\x20range\x20labels,\x20group-by\x20picker\x20options,\x20tooltip\x20and\x20legend\x20words\x20like\x20Total/Min/Max,\x20and\x20empty\x20states.\x20Auto\x20=\x20follow\x20the\x20HA\x20Profile\x20>\x20Language\x20setting\x20per\x20viewer.\x20A\x20fixed\x20language\x20pins\x20the\x20card\x20texts\x20and\x20date\x20formats\x20for\x20every\x20viewer\x20-\x20useful\x20for\x20wall\x20tablets.\x20This\x20editor\x20follows\x20the\x20card's\x20language\x20as\x20well.\x20Entity\x20names,\x20units\x20and\x20your\x20own\x20labels\x20are\x20never\x20translated.\x20State\x20words\x20(on/off,\x20heating...)\x20come\x20from\x20HA's\x20own\x20translations\x20and\x20follow\x20the\x20viewer's\x20profile\x20language.\x20Missing\x20translations\x20fall\x20back\x20to\x20English.')+''+[{'v':_0x418038(0x54e),'l':this['_eT'](_0x418038(0x216))},...Object[_0x418038(0x27d)](I18N)[_0x418038(0x5f7)](_0x3efae2=>({'v':_0x3efae2,'l':LANG_NAMES[_0x3efae2]||_0x3efae2}))[_0x418038(0xc70)]((_0x59c479,_0xa004b6)=>_0x59c479['l'][_0x418038(0xbef)](_0xa004b6['l'])),..._0x6ea883[_0x418038(0x737)]&&_0x6ea883[_0x418038(0x737)]!==_0x418038(0x54e)&&!I18N[_0x6ea883[_0x418038(0x737)]]?[{'v':_0x6ea883['language'],'l':_0x6ea883[_0x418038(0x737)]}]:[]][_0x418038(0x5f7)](_0x150671=>_0x13bccf(_0x150671['v'],_0x6ea883[_0x418038(0x737)]??'auto',_0x150671['l']))['join']('')+_0x418038(0xaaa)+this[_0x418038(0x780)](_0x418038(0x1c1))+'\x20'+_0x2bfa04(_0x418038(0x549))+_0x418038(0xc4b)+[{'v':_0x418038(0x54e),'l':this[_0x418038(0x780)](_0x418038(0x3f4))},{'v':_0x418038(0xc86),'l':this[_0x418038(0x780)](_0x418038(0x589))},{'v':'server','l':this[_0x418038(0x780)](_0x418038(0x790))},..._0x6ea883[_0x418038(0x3cb)]&&![_0x418038(0x54e),_0x418038(0xc86),'server']['includes'](_0x6ea883['time_zone'])?[{'v':_0x6ea883[_0x418038(0x3cb)],'l':_0x6ea883['time_zone']}]:[]][_0x418038(0x5f7)](_0x3eb345=>_0x13bccf(_0x3eb345['v'],_0x6ea883[_0x418038(0x3cb)]??'auto',_0x3eb345['l']))['join']('')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+[_0x418038(0xd06),_0x418038(0x979),'scatter','pie',_0x418038(0x6bd),_0x418038(0x518),_0x418038(0xc25),_0x418038(0x36d),_0x418038(0x80c),_0x418038(0x5b3),_0x418038(0xabf),_0x418038(0x269),_0x418038(0xbab),_0x418038(0x386)][_0x418038(0x5f7)](_0x1d1964=>_0x13bccf(_0x1d1964,_0x5c9ba1,{'timeline':this[_0x418038(0x780)](_0x418038(0x695)),'state_timeline':this[_0x418038(0x780)](_0x418038(0x310)),'scatter':this['_eT']('Scatter'),'pie':this[_0x418038(0x780)]('Pie\x20Chart'),'ranking':this[_0x418038(0x780)](_0x418038(0xc0e)),'radialbar':this[_0x418038(0x780)](_0x418038(0x62f)),'gauge':this[_0x418038(0x780)](_0x418038(0x5ac)),'polararea':this[_0x418038(0x780)]('Polar\x20Area'),'radar':this[_0x418038(0x780)](_0x418038(0xd1a)),'heatmap':this['_eT'](_0x418038(0xce4)),'calendar':this[_0x418038(0x780)]('Calendar'),'box':this[_0x418038(0x780)]('Box\x20Plot'),'waterfall':this[_0x418038(0x780)]('Waterfall'),'histogram':this[_0x418038(0x780)]('Histogram')}[_0x1d1964]))[_0x418038(0x358)]('')+_0x418038(0x8e1)+this[_0x418038(0x780)]('Graph\x20Data')+_0x418038(0xcb1)+this[_0x418038(0x780)](_0x418038(0x1fa))+'\x20'+_0x2bfa04(_0x418038(0x768))+_0x418038(0x407)+escapeHtml(_0x683d20(_0x6ea883[_0x418038(0x9e4)],0x18))+_0x418038(0x4cf)+this['_eT']('Points/Hour')+'\x20'+_0x2bfa04(_0x418038(0x5e0))+_0x418038(0x9b5)+_0x4e5207(_0x683d20(_0x6ea883[_0x418038(0x641)],0x2),![])+_0x418038(0xaaa)+this[_0x418038(0x780)](_0x418038(0x39e))+'\x20'+_0x2bfa04(_0x418038(0xb25))+''+[_0x418038(0x4d3),_0x418038(0xc1c),'2h','3h','4h','6h',_0x418038(0xbd0),_0x418038(0x93a),_0x418038(0x677),_0x418038(0x74c),_0x418038(0x40e)][_0x418038(0x5f7)](_0x2948f4=>_0x13bccf(_0x2948f4,_0x6ea883['group_by']??_0x418038(0x4d3),{'interval':'Interval','hour':_0x418038(0x837),'date':_0x418038(0x627),'week':_0x418038(0x40d),'month':_0x418038(0x896),'year':_0x418038(0xa06),'2h':'2\x20Hours','3h':_0x418038(0xb03),'4h':_0x418038(0x57a),'6h':_0x418038(0x2b4),'12h':_0x418038(0x26c)}[_0x2948f4]))[_0x418038(0x358)]('')+_0x418038(0x425)+(_0x5c9ba1===_0x418038(0x6bd)?_0x418038(0x254)+this['_eT'](_0x418038(0xc68))+'\x20'+_0x2bfa04(_0x418038(0x6a0))+_0x418038(0x6c0)+this[_0x418038(0x780)](_0x418038(0x597))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x30c)]??'')+_0x418038(0x22b):'')+_0x418038(0x615)+this[_0x418038(0x780)]('Update\x20Interval')+'\x20'+_0x2bfa04('Auto-refresh\x20interval\x20in\x20seconds.\x20The\x20card\x20will\x20re-fetch\x20data\x20at\x20this\x20cadence\x20regardless\x20of\x20HA\x20state\x20changes.\x20Useful\x20for\x20frequently-changing\x20sensors\x20or\x20external\x20data\x20sources.\x20Leave\x20empty\x20to\x20only\x20update\x20when\x20HA\x20fires\x20state\x20events.')+_0x418038(0xc71)+escapeHtml(_0x6ea883['update_interval']??'')+'\x22>s'+(_0x18e184||_0x5c9ba1==='state_timeline'?_0x418038(0xc6e)+this[_0x418038(0x780)](_0x418038(0x747))+'\x20'+_0x2bfa04(_0x418038(0x1d4))+'_0x13bccf(_0x3dc415,_0x6ea883[_0x418038(0xa3e)]??_0x418038(0xa0e),{'scrollbar':_0x418038(0xb0e),'wheel':_0x418038(0x9fc)}[_0x3dc415]))[_0x418038(0x358)]('')+'':_0x418038(0xcdb))+_0x418038(0x9e5)+this[_0x418038(0x780)]('Visual\x20Options')+_0x418038(0x1e7)+(_0x2ba79e&&!_0x3194e3?''+this[_0x418038(0x780)]('Compact\x20Legend')+'\x20'+_0x2bfa04(_0x418038(0x733))+'':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+((_0x18e184||_0x31fb55)&&!_0x3194e3?_0x418038(0x96f)+(_0x6ea883['animate_graph']?_0x418038(0x776):'')+_0x418038(0xbe2)+this[_0x418038(0x780)](_0x418038(0x38c))+'\x20'+_0x2bfa04(_0x418038(0x22d))+_0x418038(0xab1):'')+_0x418038(0x6c9)+(_0x18e184&&!_0x3194e3?_0x418038(0x942)+(_0x6ea883['stacked']?'checked':'')+'>'+this[_0x418038(0x780)]('Stacked')+'\x20'+_0x2bfa04(_0x418038(0x872))+'':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x18e184?_0x418038(0xbbf)+(_0x6ea883['sparkline']?_0x418038(0x776):'')+'>'+this[_0x418038(0x780)](_0x418038(0x678))+'\x20'+_0x2bfa04('Compact\x20mode\x20—\x20removes\x20all\x20chrome,\x20shows\x20entity\x20name\x20+\x20value\x20+\x20tiny\x20graph.')+_0x418038(0xab1):'')+_0x418038(0x6c9)+(_0x18e184&&!_0x3194e3?_0x418038(0x449)+(_0x6ea883['auto_scale_points']?'checked':'')+'>'+this[_0x418038(0x780)](_0x418038(0x404))+'\x20'+_0x2bfa04('When\x20enabled,\x20automatically\x20picks\x20the\x20best\x20Group\x20By\x20and\x20Points/Hour\x20for\x20the\x20visible\x20window\x20—\x20aiming\x20for\x20~100\x20points.\x20Falls\x20back\x20to\x20a\x20safer\x20mode\x20(Points/Hour\x20only)\x20for\x20kart\x20configurations\x20using\x20offset,\x20forecast_horizon,\x20or\x20attribute-based\x20data\x20sources,\x20where\x20Group\x20By\x20override\x20could\x20break\x20per-entity\x20time\x20alignment.')+_0x418038(0xab1):'')+_0x418038(0x6c9)+(!_0x31f32e&&!_0x3194e3?_0x418038(0xbf9)+(_0x6ea883[_0x418038(0xc21)]?_0x418038(0x776):'')+_0x418038(0xbe2)+this[_0x418038(0x780)]('Auto\x20Hide\x20Entities')+'\x20'+_0x2bfa04(_0x418038(0x638))+'':'')+_0x418038(0x20f)+(_0x6ea883[_0x418038(0x819)]?_0x418038(0x2ea)+this[_0x418038(0x780)](_0x418038(0x7d1))+'\x20'+_0x2bfa04(_0x418038(0x2ed))+_0x418038(0x36b)+['left',_0x418038(0x2fc),'right']['map'](_0x2394df=>_0x13bccf(_0x2394df,_0x6ea883[_0x418038(0xc83)]??_0x418038(0x2fc),this[_0x418038(0x780)](_0x2394df[_0x418038(0x5b9)](0x0)[_0x418038(0x77e)]()+_0x2394df[_0x418038(0x670)](0x1))))[_0x418038(0x358)]('')+_0x418038(0xc4f):'')+_0x418038(0x80f)+(_0x5c9ba1===_0x418038(0x258)?''+[{'v':'value','l':this['_eT'](_0x418038(0x387))},{'v':'percentage','l':this['_eT']('Percentage')},{'v':_0x418038(0x42f),'l':this[_0x418038(0x780)](_0x418038(0xa71))}][_0x418038(0x5f7)](_0x2f0bec=>_0x13bccf(_0x2f0bec['v'],_0x6ea883['pie_label_format']??'value',_0x2f0bec['l']))[_0x418038(0x358)]('')+_0x418038(0x34f)+this['_eT'](_0x418038(0x6d9))+'\x20'+_0x2bfa04('Font\x20size\x20of\x20the\x20Center\x20Total\x20value\x20shown\x20in\x20the\x20donut\x20hole.\x20Requires\x20Center\x20Total\x20to\x20be\x20enabled.\x20Leave\x20empty\x20for\x20auto-size.')+_0x418038(0x772)+this[_0x418038(0x780)](_0x418038(0xaea))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x7ab)]??'')+_0x418038(0x813)+this[_0x418038(0x780)]('Center\x20Label\x20Color')+'\x20'+_0x2bfa04('Color\x20for\x20the\x20Center\x20Total\x20value\x20and\x20its\x20sub-label.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.')+_0x418038(0x7c1)+this[_0x418038(0x780)](_0x418038(0xaea))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x64d)]??'')+'\x22>_0x13bccf(_0x2ad05c['v'],_0x6ea883[_0x418038(0x608)]??_0x418038(0xc45),_0x2ad05c['l']))[_0x418038(0x358)]('')+_0x418038(0xaaa)+this[_0x418038(0x780)](_0x418038(0x211))+'\x20'+_0x2bfa04(_0x418038(0x29d))+_0x418038(0xcfd)+this[_0x418038(0x780)](_0x418038(0xaea))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x58d)]??'')+'\x22>pxpx\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)](_0x418038(0xcab))+_0x418038(0x967)+(_0x6ea883[_0x418038(0xb27)]?_0x418038(0x254)+this[_0x418038(0x780)](_0x418038(0x85a))+'\x20'+_0x2bfa04('Vertical\x20label\x20shown\x20on\x20the\x20left\x20edge\x20of\x20the\x20graph.\x20Defaults\x20to\x20the\x20unit\x20of\x20the\x20first\x20primary\x20entity.\x20Set\x20custom\x20text\x20to\x20override,\x20or\x20leave\x20empty\x20for\x20auto.')+_0x418038(0x2f1)+this[_0x418038(0x780)](_0x418038(0xa52))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0xb51)]??'')+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this['_eT'](_0x418038(0x799))+_0x418038(0x503)+this[_0x418038(0x780)](_0x418038(0xb1d))+'\x20'+_0x2bfa04(_0x418038(0x1ae))+_0x418038(0x49c)+this[_0x418038(0x780)](_0x418038(0x597))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x3fa)]??'')+_0x418038(0x349)+this[_0x418038(0x780)](_0x418038(0x6af))+'\x20'+_0x2bfa04('Same\x20as\x20Min\x20Y\x20Range\x20but\x20for\x20the\x20secondary\x20(right)\x20Y\x20axis.')+_0x418038(0x3a4)+this['_eT'](_0x418038(0x597))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x4ec)]??'')+_0x418038(0x1e2)+this[_0x418038(0x780)](_0x418038(0xa9c))+'\x20'+_0x2bfa04(_0x418038(0xaec))+_0x418038(0x968)+escapeHtml(_0x6ea883[_0x418038(0xad5)]??'')+_0x418038(0x349)+this[_0x418038(0x780)](_0x418038(0x741))+'\x20'+_0x2bfa04('Hard\x20or\x20soft\x20maximum\x20for\x20the\x20primary\x20Y\x20axis.\x20Same\x20syntax\x20as\x20Lower\x20Bound:\x20number,\x20~number,\x20or\x20entity_id.')+_0x418038(0x779)+escapeHtml(_0x6ea883[_0x418038(0x261)]??'')+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)]('Labels')+_0x418038(0xa3b)+this[_0x418038(0x780)](_0x418038(0x852))+'\x20'+_0x2bfa04(_0x418038(0x957))+_0x418038(0x5c9)+escapeHtml(_0x6ea883[_0x418038(0xc5b)]??'')+_0x418038(0x813)+this[_0x418038(0x780)]('X\x20Label\x20Opacity')+'\x20'+_0x2bfa04(_0x418038(0x550))+_0x418038(0x275)+escapeHtml(_0x6ea883[_0x418038(0x4b4)]??'')+_0x418038(0x7cc)+this[_0x418038(0x780)](_0x418038(0x1fe))+'\x20'+_0x2bfa04(_0x418038(0xaa9))+''+this['_eT'](_0x418038(0x4c9))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x418038(0x6c9)+(_0x5c9ba1===_0x418038(0x80c)?''+this['_eT'](_0x418038(0x44e))+'\x20'+_0x2bfa04(_0x418038(0x30b))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x418038(0x780)](_0x418038(0x215))+'\x20'+_0x2bfa04('Mirrors\x20horizontal\x20scrolling\x20across\x20all\x20other\x20cards\x20in\x20the\x20same\x20group.\x20Most\x20useful\x20when\x20Max\x20Visible\x20Interval\x20is\x20set\x20on\x20each\x20card\x20so\x20they\x27re\x20actually\x20scrollable.\x20The\x20scroll\x20position\x20is\x20shared\x20as\x20a\x20proportion\x20(0–100%\x20of\x20the\x20total\x20range),\x20so\x20cards\x20with\x20different\x20hours_to_show\x20still\x20land\x20at\x20the\x20same\x20relative\x20point.')+_0x418038(0x8b9)+(_0x6ea883[_0x418038(0x939)]?'':_0x418038(0xca9))+_0x418038(0x227)+this[_0x418038(0x780)](_0x418038(0x883))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0xc61)]??'')+_0x418038(0x20d):'')+_0x418038(0x2e0)+(_0x6ea883[_0x418038(0xb44)]?_0x418038(0x9d3)+this[_0x418038(0x780)](_0x418038(0x671))+'\x20'+_0x2bfa04('Select\x20which\x20time\x20interval\x20buttons\x20to\x20show.\x20Leave\x20all\x20selected\x20for\x20the\x20full\x20set.\x20Deselect\x20intervals\x20to\x20keep\x20the\x20picker\x20compact\x20on\x20mobile.')+_0x418038(0x510)+['1H','2H','4H','8H',_0x418038(0xc3e),_0x418038(0x611),'3D','7D',_0x418038(0x703),_0x418038(0xc29),_0x418038(0x516),'6M','1Y'][_0x418038(0x5f7)](_0x247528=>{const _0x4967f4=_0x418038,_0x36dfe4=_0x6ea883[_0x4967f4(0x21e)],_0x216a5f=['1H','2H','4H','8H',_0x4967f4(0xc3e),_0x4967f4(0x611),'7D'],_0x56fdf0=_0x36dfe4&&Array[_0x4967f4(0x707)](_0x36dfe4)&&_0x36dfe4[_0x4967f4(0x2d1)]?_0x36dfe4[_0x4967f4(0x2cf)](_0x247528):_0x216a5f[_0x4967f4(0x2cf)](_0x247528);return _0x4967f4(0x29f)+_0x247528+'\x22\x20'+(_0x56fdf0?'checked':'')+_0x4967f4(0xbe7)+_0x247528+'';})['join']('')+_0x418038(0x9b2):'')+_0x418038(0x662):_0x418038(0x199))+_0x418038(0x6bb)+(_0x2ba79e&&!_0x3194e3?_0x418038(0x89f)+this[_0x418038(0x780)](_0x418038(0x207))+_0x418038(0xd1d)+(_0x5df32e?''+(_0x6ea883[_0x418038(0xb59)]!==![]?_0x418038(0xa14)+(_0x6ea883['show_tooltip_total']!==![]?_0x418038(0x776):'')+'>'+this[_0x418038(0x780)](_0x418038(0xa76))+'\x20'+_0x2bfa04('Shows\x20a\x20Total\x20row\x20at\x20the\x20bottom\x20of\x20the\x20tooltip\x20summing\x20all\x20visible\x20entity\x20values.\x20The\x20unit\x20is\x20appended\x20when\x20every\x20visible\x20entity\x20shares\x20it.')+''+(_0x6ea883[_0x418038(0xbb1)]?_0x418038(0x680)+(_0x6ea883[_0x418038(0x304)]!==![]?_0x418038(0x776):'')+_0x418038(0xbe2)+this[_0x418038(0x780)](_0x418038(0x4ef))+'\x20'+_0x2bfa04(_0x418038(0x36a))+_0x418038(0xab1):''):'')+(_0x18e184&&_0x6ea883[_0x418038(0xb59)]!==![]?''+this[_0x418038(0x780)]('Tooltip\x20Sync')+'\x20'+_0x2bfa04('Hovering\x20broadcasts\x20the\x20timestamp\x20to\x20all\x20synced\x20cards.')+_0x418038(0xced)+(_0x6ea883[_0x418038(0xb61)]?'':_0x418038(0xca9))+_0x418038(0x478)+this[_0x418038(0x780)](_0x418038(0x883))+_0x418038(0x382)+escapeHtml(_0x6ea883[_0x418038(0x81c)]??'')+_0x418038(0xa5d):'')+_0x418038(0xcc8)+(_0x18e184&&_0x6ea883[_0x418038(0xb59)]!==![]?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h