const _0x45b7b8=_0x45ab;(function(_0x297e93,_0x1e67a0){const _0x359e4b=_0x45ab,_0x3c9f44=_0x297e93();while(!![]){try{const _0x16f33e=-parseInt(_0x359e4b(0x861))/0x1+parseInt(_0x359e4b(0x7e1))/0x2+-parseInt(_0x359e4b(0xba3))/0x3+-parseInt(_0x359e4b(0x6a5))/0x4+parseInt(_0x359e4b(0x8df))/0x5+-parseInt(_0x359e4b(0x913))/0x6*(parseInt(_0x359e4b(0xc54))/0x7)+parseInt(_0x359e4b(0xe7))/0x8;if(_0x16f33e===_0x1e67a0)break;else _0x3c9f44['push'](_0x3c9f44['shift']());}catch(_0x2e31a2){_0x3c9f44['push'](_0x3c9f44['shift']());}}}(_0x559e,0x6bccb));const VERSION=_0x45b7b8(0xa7a),INTERVAL_PICKER_OPTIONS=Object[_0x45b7b8(0x815)]([{'hours':0x1,'label':'1H'},{'hours':0x2,'label':'2H'},{'hours':0x4,'label':'4H'},{'hours':0x8,'label':'8H'},{'hours':0xc,'label':_0x45b7b8(0x178)},{'hours':0x18,'label':'24H'},{'hours':0x48,'label':'3D'},{'hours':0xa8,'label':'7D'},{'hours':0x150,'label':_0x45b7b8(0xa4e)},{'hours':0x2d0,'label':_0x45b7b8(0x399)},{'hours':0x870,'label':_0x45b7b8(0x7fd)},{'hours':0x10e0,'label':'6M'},{'hours':0x2238,'label':'1Y'}]),INTERVAL_PICKER_DEFAULT_LABELS=Object[_0x45b7b8(0x815)](['1H','2H','4H','8H',_0x45b7b8(0x178),_0x45b7b8(0x661),'7D']),DATE_PICKER_VALID_MODES=Object[_0x45b7b8(0x815)]([_0x45b7b8(0x962),_0x45b7b8(0xb89),_0x45b7b8(0x6e0),_0x45b7b8(0x74c)]),DATE_PICKER_RELATIVE_MODES=Object[_0x45b7b8(0x815)]({'last_24h':{'hours':0x18,'label':'Last\x2024\x20hours','btn':_0x45b7b8(0x661)},'last_3d':{'days':0x3,'label':'Last\x203\x20days','btn':'3D'},'last_7d':{'days':0x7,'label':_0x45b7b8(0xc8c),'btn':'7D'},'last_15d':{'days':0xf,'label':_0x45b7b8(0x2a4),'btn':'15D'},'last_30d':{'days':0x1e,'label':'Last\x2030\x20days','btn':_0x45b7b8(0x399)},'last_90d':{'days':0x5a,'label':_0x45b7b8(0x6c9),'btn':_0x45b7b8(0x7fd)},'last_180d':{'days':0xb4,'label':_0x45b7b8(0xa57),'btn':_0x45b7b8(0x9d2)},'last_12m':{'months':0xc,'label':_0x45b7b8(0xa53),'btn':'12M'}}),LIVE_FLUSH_DEBOUNCE_MS=0x3e8,LIVE_SLIDE_INTERVAL_MS=0x7530,CARD_DEFAULTS=Object[_0x45b7b8(0x815)]({'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':_0x45b7b8(0x4f8),'align_header':_0x45b7b8(0x4f8),'chart_mode':_0x45b7b8(0x3c0),'chart_align':_0x45b7b8(0x7e9),'sparkline':![],'height':0x96,'animate_graph':![],'brush_zoom':!![],'stacked':![],'enable_zoom':!![],'hours_to_show':0x18,'points_per_hour':0x2,'auto_scale_points':![],'group_by':_0x45b7b8(0xb84),'time_zone':_0x45b7b8(0x917),'language':_0x45b7b8(0x917),'update_interval':null,'cache':!![],'graph_start':null,'graph_start_hour':null,'graph_end_hour':null,'show_full_period':![],'max_visible_interval':null,'extended_window_multiplier':null,'scroll_mode':_0x45b7b8(0x65c),'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':_0x45b7b8(0x4ca),'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':_0x45b7b8(0x4ca),'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,'state_timeline_show_labels':!![],'state_timeline_label_font_size':null,'show_export':![],'pie_style':_0x45b7b8(0x466),'pie_spacing':0x0,'pie_3d':![],'pie_label_font_size':null,'pie_label_color':null,'pie_label_format':'value','pie_center_font_size':null,'pie_center_color':null,'show_legend':![],'legend_position':'center','show_interval_picker':![],'interval_picker_position':_0x45b7b8(0x4f8),'show_attribute_list':![],'attribute_list_position':_0x45b7b8(0x4f8),'show_pph_picker':![],'pph_picker_position':_0x45b7b8(0x4f8),'show_group_by_picker':![],'group_by_picker_position':_0x45b7b8(0x4f8),'pph_picker_group':null,'group_by_picker_group':null,'show_date_picker':![],'date_picker_position':_0x45b7b8(0x620),'date_picker_nav_position':_0x45b7b8(0x4f8),'date_picker_shortcuts_position':_0x45b7b8(0x896),'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':![],'include_area_names':![],'state_map':null,'state_layout':_0x45b7b8(0x39d),'annotations':[],'show_now_line':!![],'now_line_color':null,'now_line_opacity':null,'now_line_width':null,'now_line_style':null}),ENTITY_DEFAULTS=Object['freeze']({'enabled':!![],'entity':'','statistic_id':null,'name':null,'icon':null,'icon_color':null,'color':null,'graph_type':_0x45b7b8(0x69f),'y_axis':_0x45b7b8(0x3b9),'line_width':2.5,'line_style':_0x45b7b8(0xce),'smooth':!![],'show_line':!![],'show_fill':!![],'show_range_band':![],'gradient':!![],'show_points':![],'point_size':null,'show_data_labels':![],'show_color_dot':!![],'point_colors':null,'stack_group':null,'invert':![],'attribute':null,'points_per_hour':null,'aggregate_func':_0x45b7b8(0x7f0),'compare':null,'damp_reset_boundary':!![],'change_ignore_zero':![],'price_entity':null,'price_attribute':null,'ref_entity':null,'ref_attribute':null,'ref_op':null,'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':_0x45b7b8(0x956),'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':[_0x45b7b8(0xd2f),_0x45b7b8(0x7f0),'max'],'decimals':0x1,'number_format':_0x45b7b8(0x4ca),'align_state':_0x45b7b8(0x4f8),'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}),TEMPLATABLE_BOOL_CARD_KEYS=Object[_0x45b7b8(0x815)]([_0x45b7b8(0xc8a),_0x45b7b8(0xa0a),'show_tooltip',_0x45b7b8(0x443),_0x45b7b8(0x95a),'show_now_line',_0x45b7b8(0xc40),_0x45b7b8(0xbda),_0x45b7b8(0x555),_0x45b7b8(0x59a),_0x45b7b8(0xd5f),_0x45b7b8(0x646),'stacked',_0x45b7b8(0x92e),_0x45b7b8(0xc9f),_0x45b7b8(0x2fb),_0x45b7b8(0x2c1)]),TEMPLATABLE_BOOL_ENTITY_KEYS=Object[_0x45b7b8(0x815)]([_0x45b7b8(0x16d),_0x45b7b8(0x8ab),_0x45b7b8(0x29a),_0x45b7b8(0x978),_0x45b7b8(0x83f),_0x45b7b8(0x872),'smooth','gradient',_0x45b7b8(0xc74),_0x45b7b8(0x976),_0x45b7b8(0x517),'show_color_dot',_0x45b7b8(0x2bb),'show_range_values',_0x45b7b8(0xbd2),_0x45b7b8(0x3da),'extrema_show_timestamp','state_adaptive_color']),isTemplateString=_0x1846b3=>typeof _0x1846b3==='string'&&(_0x1846b3[_0x45b7b8(0x615)]('{{')||_0x1846b3[_0x45b7b8(0x615)]('{%')),COMPARE_PERIOD_LABELS=Object[_0x45b7b8(0x815)]({'previous_period':_0x45b7b8(0xd17),'yesterday':_0x45b7b8(0xa5),'last_week':_0x45b7b8(0x4d6),'last_month':'last\x20month','last_year':_0x45b7b8(0x628)});function parseTemplateBool(_0x3740f4,_0x25ed18){const _0x5bb287=_0x45b7b8;if(_0x3740f4===null||_0x3740f4===undefined||_0x3740f4==='')return _0x25ed18;if(typeof _0x3740f4===_0x5bb287(0xb77))return _0x3740f4;if(typeof _0x3740f4===_0x5bb287(0xc7))return _0x3740f4!==0x0;const _0x1ac3d8=String(_0x3740f4)[_0x5bb287(0x28f)]()[_0x5bb287(0x148)]();if(_0x1ac3d8===_0x5bb287(0x5da)||_0x1ac3d8==='on'||_0x1ac3d8==='yes'||_0x1ac3d8==='1')return!![];if(_0x1ac3d8===_0x5bb287(0x104)||_0x1ac3d8===_0x5bb287(0x5bb)||_0x1ac3d8==='no'||_0x1ac3d8==='0'||_0x1ac3d8===_0x5bb287(0x209)||_0x1ac3d8===_0x5bb287(0xaf4)||_0x1ac3d8==='unavailable')return![];const _0x1c6080=Number(_0x1ac3d8);if(!Number['isNaN'](_0x1c6080))return _0x1c6080!==0x0;return _0x25ed18;}const PALETTE=Object[_0x45b7b8(0x815)]([_0x45b7b8(0x231),_0x45b7b8(0x6d3),'#2ecc71',_0x45b7b8(0x5e9),_0x45b7b8(0x812),'#1abc9c','#e74c3c',_0x45b7b8(0xa5a),'#e67e22',_0x45b7b8(0x9c1),_0x45b7b8(0x3ca),_0x45b7b8(0x9a1),_0x45b7b8(0xb36),_0x45b7b8(0xc7e),_0x45b7b8(0x3f4),_0x45b7b8(0x7c5)]);function resolveEntityAreaName(_0x1b1140,_0x29b1e3){const _0x4e8d57=_0x45b7b8;if(!_0x29b1e3||!_0x1b1140)return null;const _0x3d7996=_0x1b1140[_0x4e8d57(0x82b)]?.[_0x29b1e3];let _0x374d44=_0x3d7996?.[_0x4e8d57(0xc9e)]||null;if(!_0x374d44&&_0x3d7996?.[_0x4e8d57(0x421)])_0x374d44=_0x1b1140['devices']?.[_0x3d7996[_0x4e8d57(0x421)]]?.['area_id']||null;if(!_0x374d44)return null;const _0x382a13=_0x1b1140[_0x4e8d57(0x747)]?.[_0x374d44]?.['name'];return typeof _0x382a13===_0x4e8d57(0x5ea)&&_0x382a13[_0x4e8d57(0x28f)]()?_0x382a13[_0x4e8d57(0x28f)]():null;}function buildAreaSuffixes(_0xb70fdf,_0x2ab1aa,_0x42fb85){const _0x4b395d=_0x45b7b8,_0x17a1c7=_0x2ab1aa||[],_0xb0a564=new Map();return _0x17a1c7[_0x4b395d(0x1ce)]((_0x29fc49,_0x17ac9c)=>{const _0x2d82fa=_0x4b395d;if(!_0x29fc49||_0x29fc49[_0x2d82fa(0x2f6)]!=null)return;if(_0x29fc49[_0x2d82fa(0x10d)]&&typeof _0x29fc49[_0x2d82fa(0x10d)]===_0x2d82fa(0x5ea))return;const _0x5572c0=resolveEntityAreaName(_0xb70fdf,_0x29fc49[_0x2d82fa(0x9ac)]||_0x29fc49['statistic_id']);if(!_0x5572c0)return;const _0x29d901=_0xb70fdf?.[_0x2d82fa(0x81a)]?.[_0x29fc49[_0x2d82fa(0x9ac)]],_0x17f556=String(_0x29d901?.[_0x2d82fa(0x74e)]?.[_0x2d82fa(0xc8b)]||(_0x29fc49[_0x2d82fa(0x527)]?_0x42fb85?.[_0x29fc49[_0x2d82fa(0x527)]]?.['name']:null)||_0x29fc49[_0x2d82fa(0x9ac)]||_0x29fc49[_0x2d82fa(0x527)]||'');if(_0x17f556['toLowerCase']()['includes'](_0x5572c0[_0x2d82fa(0x148)]()))return;_0xb0a564[_0x2d82fa(0x4f1)](_0x17ac9c,_0x2d82fa(0x2e4)+_0x5572c0);}),_0xb0a564[_0x4b395d(0x948)]?_0xb0a564:null;}let _txtMeasureCtx;function measureTextWidth(_0x5a7824,_0x284ff1){const _0x340927=_0x45b7b8,_0x25dcb9=String(_0x5a7824==null?'':_0x5a7824);if(_txtMeasureCtx===undefined)try{_txtMeasureCtx=document[_0x340927(0xc3b)](_0x340927(0x852))['getContext']('2d')||null;}catch(_0x183dce){_txtMeasureCtx=null;}if(!_txtMeasureCtx)return _0x25dcb9[_0x340927(0x230)]*0x8;if(_txtMeasureCtx[_0x340927(0x284)]!==_0x284ff1)_txtMeasureCtx['font']=_0x284ff1;return _txtMeasureCtx['measureText'](_0x25dcb9)[_0x340927(0xaf)];}function wrapLabelLines(_0x237921,_0x7a1771,_0x5b9c3d,_0xd1d735){const _0x100746=_0x45b7b8,_0x328994=String(_0x237921==null?'':_0x237921)['trim']();if(!_0x328994||_0x7a1771<=0x0)return{'lines':[],'truncated':![]};const _0x3b1661=_0x563df0=>measureTextWidth(_0x563df0,_0xd1d735),_0x5c1929=[];let _0x483781='';const _0x5b0286=_0x4421dc=>{const _0x133bec=_0x45ab;let _0x4e725f=_0x4421dc;while(_0x3b1661(_0x4e725f)>_0x7a1771){let _0x5470ea=_0x4e725f[_0x133bec(0x230)]-0x1;while(_0x5470ea>0x1&&_0x3b1661(_0x4e725f[_0x133bec(0x376)](0x0,_0x5470ea))>_0x7a1771)_0x5470ea--;_0x5c1929[_0x133bec(0x9f2)](_0x4e725f[_0x133bec(0x376)](0x0,_0x5470ea)),_0x4e725f=_0x4e725f['slice'](_0x5470ea);}return _0x4e725f;};for(let _0x3f06f5 of _0x328994['split'](/\s+/)){if(_0x3b1661(_0x3f06f5)>_0x7a1771){_0x483781&&(_0x5c1929[_0x100746(0x9f2)](_0x483781),_0x483781='');_0x483781=_0x5b0286(_0x3f06f5);continue;}if(!_0x483781)_0x483781=_0x3f06f5;else{if(_0x3b1661(_0x483781+'\x20'+_0x3f06f5)<=_0x7a1771)_0x483781+='\x20'+_0x3f06f5;else _0x5c1929[_0x100746(0x9f2)](_0x483781),_0x483781=_0x3f06f5;}}if(_0x483781)_0x5c1929[_0x100746(0x9f2)](_0x483781);if(_0x5c1929[_0x100746(0x230)]<=_0x5b9c3d)return{'lines':_0x5c1929,'truncated':![]};const _0x19e7c5=_0x5c1929[_0x100746(0x376)](0x0,_0x5b9c3d);let _0x25116a=_0x19e7c5[_0x5b9c3d-0x1];while(_0x25116a[_0x100746(0x230)]>0x1&&_0x3b1661(_0x25116a+'…')>_0x7a1771)_0x25116a=_0x25116a['slice'](0x0,-0x1);return _0x19e7c5[_0x5b9c3d-0x1]=_0x25116a+'…',{'lines':_0x19e7c5,'truncated':!![]};}function pickName(_0x368a40,_0x5ccc65,_0xffd186){const _0x336c8d=_0x45b7b8,_0x4cc75c=typeof _0x368a40==='string'&&(_0x368a40[_0x336c8d(0x615)]('{{')||_0x368a40[_0x336c8d(0x615)]('{%'));if(_0x4cc75c)return _0x5ccc65!==undefined&&_0x5ccc65!==null&&_0x5ccc65!==''?_0x5ccc65:_0xffd186?.[_0x336c8d(0xc8b)]??undefined;if(_0x368a40!==undefined&&_0x368a40!==null)return _0x368a40;return _0xffd186?.[_0x336c8d(0xc8b)]??undefined;}function normalizeTemplateResult(_0x33b595){const _0x21b71e=_0x45b7b8;if(_0x33b595===null||_0x33b595===undefined)return'';const _0x1b26cb=typeof _0x33b595===_0x21b71e(0x5ea)?_0x33b595:String(_0x33b595);return _0x1b26cb[_0x21b71e(0x28f)]();}const isNum=_0xa90683=>typeof _0xa90683===_0x45b7b8(0xc7)&&Number[_0x45b7b8(0x798)](_0xa90683),clamp=(_0x4c9a06,_0x4b772,_0x103b28)=>Math[_0x45b7b8(0xc78)](_0x4b772,Math['min'](_0x103b28,_0x4c9a06)),toNum=_0x3f6fd6=>{const _0x291ff3=_0x45b7b8;if(_0x3f6fd6===null||_0x3f6fd6===undefined||_0x3f6fd6==='')return null;const _0xd09e9=typeof _0x3f6fd6===_0x291ff3(0xc7)?_0x3f6fd6:parseFloat(_0x3f6fd6);return Number[_0x291ff3(0x798)](_0xd09e9)?_0xd09e9:null;};function resolveOffsetHours(_0x3c78b0,_0x5dd376){const _0x2aba48=_0x45b7b8;if(_0x3c78b0===null||_0x3c78b0===undefined||_0x3c78b0==='')return 0x0;if(typeof _0x3c78b0===_0x2aba48(0xc7))return Number[_0x2aba48(0x798)](_0x3c78b0)?_0x3c78b0:0x0;const _0x3bfdef=String(_0x3c78b0)[_0x2aba48(0x28f)]();if(_0x3bfdef==='')return 0x0;const _0x23841c=parseFloat(_0x3bfdef);if(!isNaN(_0x23841c)&&/^-?[\d.]+$/[_0x2aba48(0x7af)](_0x3bfdef))return _0x23841c;const _0xf492a6=_0x5dd376?.[_0x2aba48(0x81a)]?.[_0x3bfdef];if(_0xf492a6){const _0x3e331a=parseFloat(_0xf492a6['state']);return Number['isFinite'](_0x3e331a)?_0x3e331a:0x0;}return 0x0;}const _tzFmtCache=new Map(),_tzPartsCache=new Map();function _tzFmt(_0x44e9da){const _0x3babbf=_0x45b7b8;let _0x6079b8=_tzFmtCache[_0x3babbf(0x809)](_0x44e9da);return!_0x6079b8&&(_0x6079b8=new Intl[(_0x3babbf(0x457))](_0x3babbf(0xa2),{'timeZone':_0x44e9da,'hour12':![],'year':_0x3babbf(0xb75),'month':'2-digit','day':_0x3babbf(0xb82),'hour':_0x3babbf(0xb82),'minute':_0x3babbf(0xb82),'second':_0x3babbf(0xb82),'weekday':_0x3babbf(0xbd7)}),_tzFmtCache[_0x3babbf(0x4f1)](_0x44e9da,_0x6079b8)),_0x6079b8;}function tzParts(_0x49473e,_0x485387){const _0x5c693f=_0x45b7b8;if(!_0x485387){const _0x1eb662=new Date(_0x49473e);return{'y':_0x1eb662[_0x5c693f(0xc18)](),'mo':_0x1eb662[_0x5c693f(0xaf5)](),'d':_0x1eb662[_0x5c693f(0x5ae)](),'h':_0x1eb662[_0x5c693f(0x6d6)](),'mi':_0x1eb662[_0x5c693f(0x410)](),'wd':_0x1eb662[_0x5c693f(0x33d)]()||0x7};}const _0x1d07b8=_0x485387+'|'+_0x49473e,_0x1627d7=_tzPartsCache[_0x5c693f(0x809)](_0x1d07b8);if(_0x1627d7)return _0x1627d7;let _0x234a29;try{const _0x5ce93e={};for(const _0x64fe93 of _tzFmt(_0x485387)[_0x5c693f(0x332)](_0x49473e))_0x5ce93e[_0x64fe93[_0x5c693f(0x33b)]]=_0x64fe93[_0x5c693f(0xba7)];const _0x4e9504={'Mon':0x1,'Tue':0x2,'Wed':0x3,'Thu':0x4,'Fri':0x5,'Sat':0x6,'Sun':0x7};_0x234a29={'y':+_0x5ce93e['year'],'mo':+_0x5ce93e[_0x5c693f(0x6e0)]-0x1,'d':+_0x5ce93e[_0x5c693f(0x962)],'h':_0x5ce93e[_0x5c693f(0xd59)]==='24'?0x0:+_0x5ce93e['hour'],'mi':+_0x5ce93e[_0x5c693f(0x3de)],'wd':_0x4e9504[_0x5ce93e['weekday']]||0x1};}catch(_0x5acced){const _0x57378d=new Date(_0x49473e);_0x234a29={'y':_0x57378d[_0x5c693f(0xc18)](),'mo':_0x57378d[_0x5c693f(0xaf5)](),'d':_0x57378d['getDate'](),'h':_0x57378d[_0x5c693f(0x6d6)](),'mi':_0x57378d[_0x5c693f(0x410)](),'wd':_0x57378d[_0x5c693f(0x33d)]()||0x7};}if(_tzPartsCache[_0x5c693f(0x948)]>=0x186a0){let _0x18ce93=0x2ee0;for(const _0x317604 of _tzPartsCache['keys']()){_tzPartsCache[_0x5c693f(0x906)](_0x317604);if(--_0x18ce93<=0x0)break;}}return _tzPartsCache[_0x5c693f(0x4f1)](_0x1d07b8,_0x234a29),_0x234a29;}function zonedWallToMs(_0x6d8815,_0xeaf9d7,_0x12eff2,_0x1abe8c,_0x24515e,_0x320d9b,_0x310fbf){const _0x29eabc=_0x45b7b8;if(!_0x310fbf)return new Date(_0x6d8815,_0xeaf9d7,_0x12eff2,_0x1abe8c,_0x24515e,_0x320d9b)['getTime']();const _0x144e5e=Date['UTC'](_0x6d8815,_0xeaf9d7,_0x12eff2,_0x1abe8c,_0x24515e,_0x320d9b),_0x1bfa5d=tzParts(_0x144e5e,_0x310fbf),_0x4c9cc8=Date[_0x29eabc(0xc0)](_0x1bfa5d['y'],_0x1bfa5d['mo'],_0x1bfa5d['d'],_0x1bfa5d['h'],_0x1bfa5d['mi'],_0x320d9b);return _0x144e5e-(_0x4c9cc8-_0x144e5e);}function tzStartOfDayMs(_0x252c71,_0x47d46d){const _0x3b555a=tzParts(_0x252c71,_0x47d46d);return zonedWallToMs(_0x3b555a['y'],_0x3b555a['mo'],_0x3b555a['d'],0x0,0x0,0x0,_0x47d46d);}const _FIRST_WD_NAMES=Object[_0x45b7b8(0x815)]({'monday':0x1,'tuesday':0x2,'wednesday':0x3,'thursday':0x4,'friday':0x5,'saturday':0x6,'sunday':0x7});function resolveFirstWeekday(_0x14b3d7){const _0x12889a=_0x45b7b8,_0x5af7a7=_0x14b3d7?.[_0x12889a(0x6ff)]?.[_0x12889a(0x289)];if(_0x5af7a7&&Object['prototype'][_0x12889a(0x6cc)][_0x12889a(0x6b1)](_FIRST_WD_NAMES,_0x5af7a7))return _FIRST_WD_NAMES[_0x5af7a7];try{const _0x21a08c=_0x14b3d7?.[_0x12889a(0x6ff)]?.[_0x12889a(0x56e)]||_0x14b3d7?.['language']||'en',_0x195f50=new Intl[(_0x12889a(0x792))](_0x21a08c),_0x20b9c1=typeof _0x195f50[_0x12889a(0x750)]==='function'?_0x195f50[_0x12889a(0x750)]():_0x195f50['weekInfo'],_0x45d01a=_0x20b9c1?.[_0x12889a(0x22b)];if(typeof _0x45d01a==='number'&&_0x45d01a>=0x1&&_0x45d01a<=0x7)return _0x45d01a;}catch{}return 0x1;}const weekStartOffsetDays=(_0x6497c4,_0x411526)=>(_0x6497c4-_0x411526+0x7)%0x7,_tzInvalidWarned=new Set();function isValidTimeZone(_0x2575a3){const _0x24cd52=_0x45b7b8;try{return new Intl[(_0x24cd52(0x457))]('en',{'timeZone':_0x2575a3}),!![];}catch{return![];}}function resolveDisplayTimeZone(_0x206bdd,_0x34aea2){const _0x5872e8=_0x45b7b8,_0x405253=String(_0x34aea2?.[_0x5872e8(0x540)]??'auto')['trim']();let _0x5b489d=null;if(_0x405253===''||_0x405253==='local')return null;if(_0x405253===_0x5872e8(0xcbb))_0x5b489d=_0x206bdd?.[_0x5872e8(0x61e)]?.['time_zone']||null;else _0x405253===_0x5872e8(0x917)?_0x5b489d=_0x206bdd?.[_0x5872e8(0x6ff)]?.[_0x5872e8(0x540)]==='server'?_0x206bdd?.[_0x5872e8(0x61e)]?.[_0x5872e8(0x540)]||null:null:_0x5b489d=_0x405253;if(!_0x5b489d)return null;if(!isValidTimeZone(_0x5b489d))return!_tzInvalidWarned['has'](_0x5b489d)&&(_tzInvalidWarned['add'](_0x5b489d),console[_0x5872e8(0x5f3)](_0x5872e8(0x30f)+_0x5b489d+_0x5872e8(0xbc5))),null;try{const _0x11ec47=Intl['DateTimeFormat']()[_0x5872e8(0xbcc)]()[_0x5872e8(0x67c)];if(_0x11ec47&&_0x11ec47===_0x5b489d)return null;}catch{}return _0x5b489d;}const LANG_NAMES={'en':_0x45b7b8(0x70e)},I18N={'en':{}};try{const _tr=await import(new URL('./translations.js?v='+VERSION,import.meta.url));if(_tr?.[_0x45b7b8(0x6b5)]){for(const [lang,table]of Object[_0x45b7b8(0x277)](_tr[_0x45b7b8(0x6b5)]))I18N[lang]=table;}if(_tr?.[_0x45b7b8(0x237)])Object[_0x45b7b8(0x249)](LANG_NAMES,_tr[_0x45b7b8(0x237)]);_tr?.[_0x45b7b8(0x420)]&&_tr[_0x45b7b8(0x420)]!==VERSION&&console['warn'](_0x45b7b8(0x8cb)+_tr[_0x45b7b8(0x420)]+_0x45b7b8(0xd11)+VERSION+_0x45b7b8(0xa8c));}catch(_0xad5be0){console[_0x45b7b8(0x892)](_0x45b7b8(0x979));}function resolveCardLanguage(_0x282940,_0x4fce13){const _0x3a01f8=_0x45b7b8,_0xcbaa1=String(_0x4fce13?.[_0x3a01f8(0x56e)]??_0x3a01f8(0x917))[_0x3a01f8(0x28f)]();if(_0xcbaa1&&_0xcbaa1!==_0x3a01f8(0x917))return _0xcbaa1;return _0x282940?.['locale']?.[_0x3a01f8(0x56e)]||typeof navigator!=='undefined'&&navigator[_0x3a01f8(0x56e)]||'en';}function cardT(_0x13ebea,_0x5f0f32,_0xd98fd9){const _0x34cfc2=_0x45b7b8;let _0x20ba85=resolveCardLanguage(_0x13ebea,_0x5f0f32)[_0x34cfc2(0x148)]();if(_0x20ba85==='no'||_0x20ba85[_0x34cfc2(0x6a3)](_0x34cfc2(0x4e1)))_0x20ba85='nb';const _0x192cec=I18N[_0x20ba85]||I18N[_0x20ba85[_0x34cfc2(0x102)]('-')[0x0]];return _0x192cec&&_0x192cec[_0xd98fd9]||_0xd98fd9;}function localizeEntityState(_0x414243,_0x462bce,_0x3280e8){const _0xfb8a14=_0x45b7b8,_0x175b51=_0x3280e8??_0x462bce?.[_0xfb8a14(0x992)];if(_0x175b51==null)return'';try{if(_0x462bce&&typeof _0x414243?.['formatEntityState']===_0xfb8a14(0x57f)){const _0x195633=_0x3280e8!=null?_0x414243[_0xfb8a14(0x64a)](_0x462bce,String(_0x3280e8)):_0x414243[_0xfb8a14(0x64a)](_0x462bce);if(_0x195633)return _0x195633;}}catch(_0x127f75){}return String(_0x175b51);}function niceYTicks(_0x3ae8e5,_0xfd2522,_0x27be6f=0x4,_0x4ec68d=0x0){const _0x19b896=_0x45b7b8;if(!isFinite(_0x3ae8e5)||!isFinite(_0xfd2522)||_0xfd2522<=_0x3ae8e5)return null;const _0x3eb3d3=_0xfd2522-_0x3ae8e5,_0x1bc164=_0x3eb3d3/Math[_0x19b896(0xc78)](0x1,_0x27be6f);let _0x160759;if(_0x4ec68d>0x0&&_0x3eb3d3>=_0x4ec68d){const _0x16640b=_0x1bc164/_0x4ec68d,_0x681a73=[0x1,0x2,0x5,0xa,0xf,0x1e,0x3c,0x78,0xb4,0x168,0x2d0,0x5a0,0xb40,0x10e0,0x2760,0xa8c0,0x15180];let _0x1e33a6=_0x681a73[_0x681a73[_0x19b896(0x230)]-0x1];for(let _0x215d0a=0x0;_0x215d0a<_0x681a73[_0x19b896(0x230)];_0x215d0a++){const _0x55c194=_0x681a73[_0x215d0a+0x1];if(_0x55c194===undefined||_0x16640b_0xfd2522+_0x160759*0.000001)break;if(_0x1512a5>=_0x3ae8e5-_0x160759*0.000001)_0x6f4bea[_0x19b896(0x9f2)](_0x1512a5);}return _0x6f4bea['length']>=0x2?_0x6f4bea:null;}function applyStateMap(_0x2eeb24,_0x91f740){const _0x1a97e7=_0x45b7b8;if(!_0x91f740||!Array['isArray'](_0x91f740))return{'value':parseFloat(_0x2eeb24),'mapped':![]};const _0x81e328=_0x91f740[_0x1a97e7(0x45a)](_0xac287b=>String(_0xac287b[_0x1a97e7(0xba7)])===String(_0x2eeb24));if(_0x81e328!==-0x1)return{'value':_0x81e328,'mapped':!![],'label':_0x91f740[_0x81e328]['label']};return{'value':parseFloat(_0x2eeb24),'mapped':![]};}function autoStateMap(_0x39217e,_0x282477,_0x5647bf){const _0x4a3ebb=_0x45b7b8;if(!_0x39217e)return null;if(_0x39217e[_0x4a3ebb(0x83e)])return _0x39217e[_0x4a3ebb(0x83e)];const _0x5cad06=_0x39217e[_0x4a3ebb(0xb02)]==='step'||_0x5647bf==='state_timeline';if(!_0x5cad06)return null;if(_0x39217e['attribute']||_0x39217e[_0x4a3ebb(0x6e9)]||_0x39217e[_0x4a3ebb(0x8bf)])return null;const _0x47dc91=_0x39217e[_0x4a3ebb(0x9ac)]?.[_0x4a3ebb(0x102)]('.')[0x0];if(_0x47dc91===_0x4a3ebb(0x882)||_0x47dc91===_0x4a3ebb(0x14d))return[{'value':'off'},{'value':'on'}];const _0x359fa5=_0x282477?.[_0x4a3ebb(0x81a)]?.[_0x39217e[_0x4a3ebb(0x9ac)]];if(_0x359fa5&&isNaN(parseFloat(_0x359fa5['state']))&&_0x359fa5['state']!==_0x4a3ebb(0xaf4)&&_0x359fa5[_0x4a3ebb(0x992)]!=='unavailable'){const _0x4ecbaf=new Set();_0x359fa5['attributes']?.['options']?_0x359fa5[_0x4a3ebb(0x74e)][_0x4a3ebb(0x54f)][_0x4a3ebb(0x1ce)](_0x2176cd=>_0x4ecbaf[_0x4a3ebb(0x24e)](_0x2176cd)):_0x4ecbaf[_0x4a3ebb(0x24e)](_0x359fa5[_0x4a3ebb(0x992)]);if(_0x4ecbaf[_0x4a3ebb(0x948)]>0x0)return[..._0x4ecbaf][_0x4a3ebb(0x963)](_0x4af177=>({'value':_0x4af177}));}return null;}function escapeHtml(_0xcd8d69){const _0x54715b=_0x45b7b8;return String(_0xcd8d69??'')[_0x54715b(0x8a6)](/&/g,'&')[_0x54715b(0x8a6)](//g,_0x54715b(0x4b5))[_0x54715b(0x8a6)](/"/g,_0x54715b(0x493))[_0x54715b(0x8a6)](/'/g,_0x54715b(0x1b0));}function hashString(_0x43ab15){const _0x3eec92=_0x45b7b8;let _0x487050=0x1505;for(let _0x362592=0x0;_0x362592<_0x43ab15['length'];_0x362592++)_0x487050=(_0x487050<<0x5)+_0x487050+_0x43ab15[_0x3eec92(0x1b1)](_0x362592)>>>0x0;return _0x487050[_0x3eec92(0x158)](0x24);}const lsGet=_0x4fa535=>{const _0x2f0cd6=_0x45b7b8;try{return localStorage[_0x2f0cd6(0x510)](_0x4fa535);}catch{return null;}},lsSet=(_0x316023,_0x198afb)=>{const _0xf44d9d=_0x45b7b8;try{localStorage[_0xf44d9d(0x91f)](_0x316023,_0x198afb);}catch{}},lsDel=_0x36aec8=>{const _0x20963f=_0x45b7b8;try{localStorage[_0x20963f(0xccc)](_0x36aec8);}catch{}};function parseColor(_0x5113dc){const _0xb0f5ea=_0x45b7b8;if(!_0x5113dc)return{'r':0x88,'g':0x88,'b':0x88};const _0x57540a=String(_0x5113dc)[_0xb0f5ea(0x28f)]();if(_0x57540a[_0xb0f5ea(0x6a3)]('#')){const _0x54fdba=_0x57540a['length']===0x4?_0x57540a[_0xb0f5ea(0x376)](0x1)['split']('')[_0xb0f5ea(0x963)](_0xc12b8c=>_0xc12b8c+_0xc12b8c)[_0xb0f5ea(0xcdc)](''):_0x57540a[_0xb0f5ea(0x376)](0x1);return{'r':parseInt(_0x54fdba[_0xb0f5ea(0x376)](0x0,0x2),0x10),'g':parseInt(_0x54fdba[_0xb0f5ea(0x376)](0x2,0x4),0x10),'b':parseInt(_0x54fdba[_0xb0f5ea(0x376)](0x4,0x6),0x10)};}const _0x373589=_0x57540a[_0xb0f5ea(0xa35)](/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x373589)return{'r':+_0x373589[0x1],'g':+_0x373589[0x2],'b':+_0x373589[0x3]};return{'r':0x88,'g':0x88,'b':0x88};}const rgba=(_0x22d68d,_0x34a891)=>{const _0x462ea6=_0x45b7b8,{r:_0x336fd8,g:_0x16827c,b:_0x4b4fd8}=parseColor(_0x22d68d);return _0x462ea6(0x937)+_0x336fd8+','+_0x16827c+','+_0x4b4fd8+','+_0x34a891+')';},_dateTimeFormatterCache=new Map();function getCachedDateTimeFormatter(_0x115505,_0x5f27ca){const _0x409e76=_0x45b7b8,_0x18f20f=_0x115505+'|'+JSON['stringify'](_0x5f27ca);let _0x54414a=_dateTimeFormatterCache[_0x409e76(0x809)](_0x18f20f);if(_0x54414a)return _0x54414a;if(_dateTimeFormatterCache[_0x409e76(0x948)]>=0x1e){const _0x23100e=_dateTimeFormatterCache[_0x409e76(0xc71)]()[_0x409e76(0x19e)]()[_0x409e76(0xba7)];if(_0x23100e!==undefined)_dateTimeFormatterCache[_0x409e76(0x906)](_0x23100e);}try{_0x54414a=new Intl[(_0x409e76(0x457))](_0x115505,_0x5f27ca);}catch{return null;}return _dateTimeFormatterCache['set'](_0x18f20f,_0x54414a),_0x54414a;}const _numberFormatterCache=new Map();function getCachedNumberFormatter(_0x1752d7,_0x414447){const _0x30bded=_0x45b7b8,_0x26c8bb=_0x1752d7+'|'+_0x414447;let _0x39d5fe=_numberFormatterCache[_0x30bded(0x809)](_0x26c8bb);if(_0x39d5fe)return _0x39d5fe;if(_numberFormatterCache[_0x30bded(0x948)]>=0x32){const _0x416a90=_numberFormatterCache[_0x30bded(0xc71)]()[_0x30bded(0x19e)]()[_0x30bded(0xba7)];if(_0x416a90!==undefined)_numberFormatterCache['delete'](_0x416a90);}try{_0x39d5fe=new Intl[(_0x30bded(0xd37))](_0x1752d7,{'minimumFractionDigits':_0x414447,'maximumFractionDigits':_0x414447});}catch{return null;}return _numberFormatterCache['set'](_0x26c8bb,_0x39d5fe),_0x39d5fe;}function compileLabelFormat(_0x2b7b7d,_0x5857e2){const _0x5232fd=_0x45b7b8;if(typeof _0x2b7b7d!=='string')return null;const _0x261883=_0x2b7b7d[_0x5232fd(0x28f)]();if(!_0x261883)return null;const _0x8cc255={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0x5857e2||'s')[_0x5232fd(0x148)]()]??0x1,_0x29f847=_0x180304=>String(Math['floor'](_0x180304))[_0x5232fd(0xd3d)](0x2,'0'),_0x44aff6={'h:mm':_0x3bdcb6=>Math[_0x5232fd(0xa4c)](_0x3bdcb6/0xe10)+':'+_0x29f847(_0x3bdcb6%0xe10/0x3c),'h:mm:ss':_0x1a86f5=>Math[_0x5232fd(0xa4c)](_0x1a86f5/0xe10)+':'+_0x29f847(_0x1a86f5%0xe10/0x3c)+':'+_0x29f847(_0x1a86f5%0x3c),'mm:ss':_0x448f2c=>_0x29f847(_0x448f2c/0x3c)+':'+_0x29f847(_0x448f2c%0x3c),'d\x20h:mm':_0x3bbffa=>{const _0x3a77ce=_0x5232fd,_0x249567=Math['floor'](_0x3bbffa/0x15180),_0x56d293=_0x3bbffa%0x15180,_0xb7c15b=Math[_0x3a77ce(0xa4c)](_0x56d293/0xe10)+':'+_0x29f847(_0x56d293%0xe10/0x3c);return _0x249567>0x0?_0x249567+'d\x20'+_0xb7c15b:_0xb7c15b;}},_0x550af8=_0x44aff6[_0x261883['toLowerCase']()];if(_0x550af8)return _0x300c8f=>{const _0x2742eb=_0x5232fd;if(!isNum(_0x300c8f))return null;return(_0x300c8f<0x0?'-':'')+_0x550af8(Math[_0x2742eb(0x533)](_0x300c8f)*_0x8cc255);};if(!_0x261883[_0x5232fd(0x615)]('{'))return null;const _0x40c684={'floor':Math['floor'],'ceil':Math[_0x5232fd(0x5db)],'round':Math[_0x5232fd(0xd3f)],'abs':Math['abs'],'sqrt':Math[_0x5232fd(0x26f)]},_0x5d7862={'min':Math[_0x5232fd(0xd2f)],'max':Math['max']},_0x198051={'pad2':_0x48bdd3=>String(Math[_0x5232fd(0xa4c)](_0x48bdd3))[_0x5232fd(0xd3d)](0x2,'0'),'pad':(_0x30dda5,_0x2b6911)=>String(Math[_0x5232fd(0xa4c)](_0x30dda5))['padStart'](Math[_0x5232fd(0xc78)](0x0,Math['floor'](_0x2b6911)),'0'),'fixed':(_0x1abd23,_0x4ebaac)=>Number(_0x1abd23)[_0x5232fd(0x103)](Math['min'](0x14,Math[_0x5232fd(0xc78)](0x0,Math['floor'](_0x4ebaac))))},_0x41954b=_0x2269fb=>{const _0x34525d=_0x5232fd,_0x112ad0=[];let _0x2ae5d6=0x0;while(_0x2ae5d6<_0x2269fb[_0x34525d(0x230)]){const _0x3d5064=_0x2269fb[_0x2ae5d6];if(_0x3d5064==='\x20'||_0x3d5064==='\x09'){_0x2ae5d6++;continue;}if(/[0-9]/['test'](_0x3d5064)){let _0x192285=_0x2ae5d6;while(_0x192285<_0x2269fb['length']&&/[0-9.]/['test'](_0x2269fb[_0x192285]))_0x192285++;const _0x4de24e=Number(_0x2269fb['slice'](_0x2ae5d6,_0x192285));if(!Number[_0x34525d(0x798)](_0x4de24e))throw new Error(_0x34525d(0x1a5));_0x112ad0[_0x34525d(0x9f2)]({'t':_0x34525d(0x629),'v':_0x4de24e}),_0x2ae5d6=_0x192285;continue;}if(/[a-zA-Z_]/['test'](_0x3d5064)){let _0x324898=_0x2ae5d6;while(_0x324898<_0x2269fb[_0x34525d(0x230)]&&/[a-zA-Z0-9_]/[_0x34525d(0x7af)](_0x2269fb[_0x324898]))_0x324898++;_0x112ad0['push']({'t':'id','v':_0x2269fb[_0x34525d(0x376)](_0x2ae5d6,_0x324898)}),_0x2ae5d6=_0x324898;continue;}if(_0x34525d(0x183)[_0x34525d(0x615)](_0x3d5064)){_0x112ad0['push']({'t':_0x3d5064}),_0x2ae5d6++;continue;}throw new Error(_0x34525d(0xcef)+_0x3d5064+'\x27');}let _0x1994bf=0x0;const _0x573136=()=>_0x112ad0[_0x1994bf],_0x11b13b=_0x106401=>{const _0x404b4d=_0x34525d;if(!_0x112ad0[_0x1994bf]||_0x112ad0[_0x1994bf]['t']!==_0x106401)throw new Error(_0x404b4d(0x4c2)+_0x106401);return _0x112ad0[_0x1994bf++];},_0xca885=()=>{const _0x2bc9b2=_0x34525d,_0x595f06=_0x573136();if(!_0x595f06)throw new Error('unexpected\x20end');if(_0x595f06['t']==='num'){_0x1994bf++;const _0x4facb8=_0x595f06['v'];return{'fn':()=>_0x4facb8,'str':![]};}if(_0x595f06['t']==='('){_0x1994bf++;const _0x5983ee=_0x10441a();return _0x11b13b(')'),_0x5983ee;}if(_0x595f06['t']==='-'){_0x1994bf++;const _0x1b803d=_0xca885();if(_0x1b803d['str'])throw new Error(_0x2bc9b2(0x6e1));return{'fn':_0x4c0f56=>-_0x1b803d['fn'](_0x4c0f56),'str':![]};}if(_0x595f06['t']==='id'){_0x1994bf++;const _0xb31660=_0x595f06['v'];if(_0x573136()&&_0x573136()['t']==='('){_0x1994bf++;const _0x223909=[];if(_0x573136()&&_0x573136()['t']!==')'){_0x223909[_0x2bc9b2(0x9f2)](_0x10441a());while(_0x573136()&&_0x573136()['t']===','){_0x1994bf++,_0x223909[_0x2bc9b2(0x9f2)](_0x10441a());}}_0x11b13b(')');if(_0x223909[_0x2bc9b2(0x870)](_0x276bd7=>_0x276bd7[_0x2bc9b2(0x525)]))throw new Error(_0x2bc9b2(0x92c));if(_0x40c684[_0xb31660]){if(_0x223909['length']!==0x1)throw new Error(_0xb31660+'\x20takes\x201\x20arg');const _0x190dd3=_0x40c684[_0xb31660],_0xd636c7=_0x223909[0x0];return{'fn':_0x58c070=>_0x190dd3(_0xd636c7['fn'](_0x58c070)),'str':![]};}if(_0x5d7862[_0xb31660]){if(_0x223909[_0x2bc9b2(0x230)]<0x2)throw new Error(_0xb31660+'\x20takes\x202+\x20args');const _0x2e2e64=_0x5d7862[_0xb31660];return{'fn':_0x4aca3e=>_0x2e2e64(..._0x223909['map'](_0x4e4654=>_0x4e4654['fn'](_0x4aca3e))),'str':![]};}if(_0x198051[_0xb31660]){const _0x2c14a7=_0xb31660===_0x2bc9b2(0x477)?0x1:0x2;if(_0x223909[_0x2bc9b2(0x230)]!==_0x2c14a7)throw new Error(_0xb31660+_0x2bc9b2(0x702)+_0x2c14a7+_0x2bc9b2(0x73a));const _0x4dd70d=_0x198051[_0xb31660];return{'fn':_0x53bca7=>_0x4dd70d(..._0x223909['map'](_0x24976a=>_0x24976a['fn'](_0x53bca7))),'str':!![]};}throw new Error('unknown\x20function\x20'+_0xb31660);}if(_0xb31660==='value')return{'fn':_0x14794a=>_0x14794a,'str':![]};throw new Error(_0x2bc9b2(0xc1b)+_0xb31660);}throw new Error(_0x2bc9b2(0x2d6)+_0x595f06['t']);},_0x2c4a34=()=>{const _0x2bc53e=_0x34525d;let _0x4fdcd5=_0xca885();while(_0x573136()&&(_0x573136()['t']==='*'||_0x573136()['t']==='/'||_0x573136()['t']==='%')){const _0x347f72=_0x112ad0[_0x1994bf++]['t'],_0x44aa9f=_0xca885();if(_0x4fdcd5[_0x2bc53e(0x525)]||_0x44aa9f[_0x2bc53e(0x525)])throw new Error(_0x2bc53e(0x6e1));const _0xbbab85=_0x4fdcd5['fn'],_0x32d1e7=_0x44aa9f['fn'];_0x4fdcd5={'fn':_0x347f72==='*'?_0x3e98c6=>_0xbbab85(_0x3e98c6)*_0x32d1e7(_0x3e98c6):_0x347f72==='/'?_0xeb8ab=>_0xbbab85(_0xeb8ab)/_0x32d1e7(_0xeb8ab):_0x4cd3a1=>_0xbbab85(_0x4cd3a1)%_0x32d1e7(_0x4cd3a1),'str':![]};}return _0x4fdcd5;},_0x10441a=()=>{const _0x510a1f=_0x34525d;let _0x31d8a1=_0x2c4a34();while(_0x573136()&&(_0x573136()['t']==='+'||_0x573136()['t']==='-')){const _0x29b323=_0x112ad0[_0x1994bf++]['t'],_0x132c93=_0x2c4a34();if(_0x31d8a1[_0x510a1f(0x525)]||_0x132c93[_0x510a1f(0x525)])throw new Error(_0x510a1f(0x6e1));const _0x2cc8db=_0x31d8a1['fn'],_0x1b1088=_0x132c93['fn'];_0x31d8a1={'fn':_0x29b323==='+'?_0x2269b8=>_0x2cc8db(_0x2269b8)+_0x1b1088(_0x2269b8):_0x59a66a=>_0x2cc8db(_0x59a66a)-_0x1b1088(_0x59a66a),'str':![]};}return _0x31d8a1;},_0x4733bc=_0x10441a();if(_0x1994bf!==_0x112ad0['length'])throw new Error(_0x34525d(0x478));return _0x4733bc;};try{const _0x2ca330=[];let _0x547d86=0x0;while(_0x547d86<_0x261883[_0x5232fd(0x230)]){const _0x1eabef=_0x261883[_0x5232fd(0x3f8)]('{',_0x547d86);if(_0x1eabef<0x0){_0x2ca330[_0x5232fd(0x9f2)](_0x261883[_0x5232fd(0x376)](_0x547d86));break;}if(_0x1eabef>_0x547d86)_0x2ca330[_0x5232fd(0x9f2)](_0x261883[_0x5232fd(0x376)](_0x547d86,_0x1eabef));const _0x58d6cd=_0x261883[_0x5232fd(0x3f8)]('}',_0x1eabef);if(_0x58d6cd<0x0)throw new Error(_0x5232fd(0x87b));const _0x3f79c5=_0x261883['slice'](_0x1eabef+0x1,_0x58d6cd)[_0x5232fd(0x28f)]();if(!_0x3f79c5)throw new Error(_0x5232fd(0xd13));_0x2ca330[_0x5232fd(0x9f2)](_0x41954b(_0x3f79c5)),_0x547d86=_0x58d6cd+0x1;}const _0x57f1e8=_0x1707ca=>{const _0x3afa85=_0x5232fd;if(!Number['isFinite'](_0x1707ca))return String(_0x1707ca);if(Number['isInteger'](_0x1707ca))return String(_0x1707ca);return String(+_0x1707ca[_0x3afa85(0x103)](0x6));};return _0xf6a045=>{const _0x57560b=_0x5232fd;if(!isNum(_0xf6a045))return null;let _0x23d40a='';for(const _0x2e2b23 of _0x2ca330){if(typeof _0x2e2b23==='string'){_0x23d40a+=_0x2e2b23;continue;}const _0x240ba9=_0x2e2b23['fn'](_0xf6a045);_0x23d40a+=_0x2e2b23[_0x57560b(0x525)]?String(_0x240ba9):_0x57f1e8(_0x240ba9);}return _0x23d40a;};}catch(_0x4ad7fc){return console[_0x5232fd(0x5f3)](_0x5232fd(0x8bc),_0x261883,'—',_0x4ad7fc?.[_0x5232fd(0xd20)]||_0x4ad7fc),null;}}const _axisFmtMemo=new WeakMap(),_axisStepMemo=new WeakMap();function axisMinLabelStep(_0x1064d6,_0x4e3893){const _0x193ff4=_0x45b7b8;if(!_0x1064d6||typeof _0x1064d6!==_0x193ff4(0xa7e))return 0x0;let _0x593f4e=_axisStepMemo[_0x193ff4(0x809)](_0x1064d6);!_0x593f4e&&(_0x593f4e={},_axisStepMemo['set'](_0x1064d6,_0x593f4e));if(_0x4e3893 in _0x593f4e)return _0x593f4e[_0x4e3893];const _0x386f81=String((_0x4e3893===_0x193ff4(0x687)?_0x1064d6[_0x193ff4(0xe9)]:_0x1064d6[_0x193ff4(0x345)])||'')[_0x193ff4(0x28f)]()['toLowerCase'](),_0x48a318={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0x1064d6['duration_unit']||'s')[_0x193ff4(0x148)]()]??0x1;let _0x41018b=0x0;if(_0x386f81==='h:mm'||_0x386f81===_0x193ff4(0xb74))_0x41018b=0x3c;else{if(_0x386f81===_0x193ff4(0x7ea)||_0x386f81===_0x193ff4(0x175))_0x41018b=0x1;}const _0x2b1718=_0x41018b>0x0?_0x41018b/_0x48a318:0x0;return _0x593f4e[_0x4e3893]=_0x2b1718,_0x2b1718;}function axisLabelFormatter(_0x581b89,_0x2b323a){const _0x32532a=_0x45b7b8;if(!_0x581b89||typeof _0x581b89!==_0x32532a(0xa7e))return null;let _0xb16537=_axisFmtMemo[_0x32532a(0x809)](_0x581b89);return!_0xb16537&&(_0xb16537={'primary':compileLabelFormat(_0x581b89[_0x32532a(0x345)],_0x581b89['duration_unit']),'secondary':compileLabelFormat(_0x581b89[_0x32532a(0xe9)],_0x581b89[_0x32532a(0x191)])},_axisFmtMemo[_0x32532a(0x4f1)](_0x581b89,_0xb16537)),_0xb16537[_0x2b323a]||null;}function formatNumber(_0xbf30f,_0x4e2c40,_0x1cf2ae){const _0x4b543c=_0x45b7b8;if(!isNum(_0xbf30f))return'—';if(_0x4e2c40?.[_0x4b543c(0x52a)])_0xbf30f=Math[_0x4b543c(0x533)](_0xbf30f);if(typeof _0x4e2c40?.[_0x4b543c(0x2ab)]==='function')try{const _0x2db3b6=_0x4e2c40['__sgcAxisFmt'](_0xbf30f);if(typeof _0x2db3b6===_0x4b543c(0x5ea))return _0x2db3b6;}catch(_0x24abfe){}const _0x48ed2a=toNum(_0x4e2c40?.[_0x4b543c(0x790)])??0x1,_0x19ed90=_0x4e2c40?.[_0x4b543c(0x8f9)]||_0x4b543c(0x4ca),_0x193db3=_0x19ed90===_0x4b543c(0x875)?_0x4b543c(0x598):_0x19ed90===_0x4b543c(0x17f)?_0x4b543c(0xa2):_0x1cf2ae?.[_0x4b543c(0x6ff)]?.['language']||navigator[_0x4b543c(0x56e)]||'en',_0x4fa626=getCachedNumberFormatter(_0x193db3,_0x48ed2a);if(_0x4fa626)return _0x4fa626[_0x4b543c(0xb9a)](_0xbf30f);return _0xbf30f[_0x4b543c(0x103)](_0x48ed2a);}function formatShortNumber(_0x56fe42){const _0xf34352=_0x45b7b8;if(!isNum(_0x56fe42))return'';const _0x385fbb=Math[_0xf34352(0x533)](_0x56fe42);if(_0x385fbb>=0xf4240)return(_0x56fe42/0xf4240)[_0xf34352(0x103)](0x1)+'M';if(_0x385fbb>=0x3e8)return(_0x56fe42/0x3e8)[_0xf34352(0x103)](0x1)+'k';if(_0x385fbb>=0x64)return _0x56fe42[_0xf34352(0x103)](0x0);if(_0x385fbb>=0xa)return _0x56fe42['toFixed'](0x1);return _0x56fe42[_0xf34352(0x103)](0x2);}function _resolveHourCycle(_0x29f784){const _0x45dc1b=_0x45b7b8,_0x241a97=_0x29f784?.[_0x45dc1b(0x6ff)]?.[_0x45dc1b(0x47a)];if(_0x241a97==='24')return _0x45dc1b(0x82d);if(_0x241a97==='12')return _0x45dc1b(0x530);return undefined;}function _localeTimeOpts(_0x436367,_0x116af1){const _0x59dcaa=_resolveHourCycle(_0x436367);if(!_0x59dcaa)return _0x116af1;return{..._0x116af1,'hourCycle':_0x59dcaa};}function resolveBucketPrecision(_0x3611e6){const _0x11b6bc=_0x45b7b8;if(!_0x3611e6||_0x3611e6[_0x11b6bc(0x230)]<0x2)return _0x11b6bc(0x301);const _0x3ca985=[];for(let _0x42347b=0x1;_0x42347b<_0x3611e6[_0x11b6bc(0x230)];_0x42347b++){const _0x36ad32=_0x3611e6[_0x42347b]['t']-_0x3611e6[_0x42347b-0x1]['t'];if(_0x36ad32>0x0)_0x3ca985[_0x11b6bc(0x9f2)](_0x36ad32);}if(!_0x3ca985['length'])return'raw';_0x3ca985['sort']((_0x48cb23,_0x3d01c2)=>_0x48cb23-_0x3d01c2);const _0x3d8e51=_0x3ca985[Math[_0x11b6bc(0xa4c)](_0x3ca985[_0x11b6bc(0x230)]/0x2)];if(_0x3d8e51>=0x1c*0x5265c00)return _0x11b6bc(0x6e0);if(_0x3d8e51>=0x6*0x5265c00)return _0x11b6bc(0xb89);if(_0x3d8e51>=0x17*0x36ee80)return'day';if(_0x3d8e51>=0x32*0xea60)return _0x11b6bc(0xd59);if(_0x3d8e51>=0x4*0xea60)return _0x11b6bc(0x282);if(_0x3d8e51>=0x32*0x3e8)return _0x11b6bc(0x3de);return'raw';}function _0x45ab(_0x1bc7d1,_0x5a929a){_0x1bc7d1=_0x1bc7d1-0x9e;const _0x559e1b=_0x559e();let _0x45ab30=_0x559e1b[_0x1bc7d1];return _0x45ab30;}function bucketPrecisionToMs(_0x420691){const _0x3804fa=_0x45b7b8;switch(_0x420691){case _0x3804fa(0x74c):return 0x16e*0x5265c00;case _0x3804fa(0x6e0):return 0x1f*0x5265c00;case'week':return 0x7*0x5265c00;case _0x3804fa(0x962):return 0x5265c00;case _0x3804fa(0xd59):return 0x36ee80;case'5minute':return 0x5*0xea60;case _0x3804fa(0x3de):return 0xea60;default:return 0x0;}}function capGroupByForAggregate(_0x397cf1,_0x1bc4e9){const _0x22dec7=_0x45b7b8;if(_0x397cf1!=='change')return _0x1bc4e9;if(_0x1bc4e9==='week'||_0x1bc4e9===_0x22dec7(0x6e0)||_0x1bc4e9===_0x22dec7(0x74c))return'date';return _0x1bc4e9;}function applyDatetimePattern(_0x5036d0,_0x3ddae9,_0x11425b,_0x4a5cc6){const _0x343b94=_0x45b7b8,_0x1bc859=(_0x30e8eb,_0x4ff576=0x2)=>String(_0x30e8eb)[_0x343b94(0xd3d)](_0x4ff576,'0');let _0x4faaa6,_0x544d37,_0x4008b2,_0x4bc7b0,_0x29d8c6;if(_0x4a5cc6){const _0x277982=tzParts(_0x5036d0[_0x343b94(0x9e0)](),_0x4a5cc6);_0x4faaa6=_0x277982['y'],_0x544d37=_0x277982['mo']+0x1,_0x4008b2=_0x277982['d'],_0x4bc7b0=_0x277982['h'],_0x29d8c6=_0x277982['mi'];}else _0x4faaa6=_0x5036d0[_0x343b94(0xc18)](),_0x544d37=_0x5036d0['getMonth']()+0x1,_0x4008b2=_0x5036d0[_0x343b94(0x5ae)](),_0x4bc7b0=_0x5036d0['getHours'](),_0x29d8c6=_0x5036d0[_0x343b94(0x410)]();const _0x1b390c=_0x4a5cc6?_0x5036d0[_0x343b94(0xaf9)]():_0x5036d0[_0x343b94(0x2b2)](),_0x49b598=_0x4bc7b0%0xc,_0x1d1b62=_0x49b598===0x0?0xc:_0x49b598,_0x1a581e=_0x4bc7b0<0xc?'AM':'PM',_0x2fd575=_0x11425b||typeof navigator!==_0x343b94(0x173)&&navigator[_0x343b94(0x56e)]||'en',_0x595671=_0x10b9ca=>{const _0x25cafc=_0x343b94,_0xcb30fe=getCachedDateTimeFormatter(_0x2fd575,_0x4a5cc6?{'month':_0x10b9ca,'timeZone':_0x4a5cc6}:{'month':_0x10b9ca});return _0xcb30fe?_0xcb30fe[_0x25cafc(0xb9a)](_0x5036d0):String(_0x544d37);},_0x856d5f=_0xabc5ab=>{const _0x2e0b15=_0x343b94,_0xef102=getCachedDateTimeFormatter(_0x2fd575,_0x4a5cc6?{'weekday':_0xabc5ab,'timeZone':_0x4a5cc6}:{'weekday':_0xabc5ab});return _0xef102?_0xef102[_0x2e0b15(0xb9a)](_0x5036d0):'';},_0x25dd3f=[[_0x343b94(0xd55),_0x856d5f('long')],[_0x343b94(0xc3d),_0x856d5f(_0x343b94(0xbd7))],['YYYY',String(_0x4faaa6)],['YY',String(_0x4faaa6)[_0x343b94(0x376)](-0x2)],['MMMM',_0x595671(_0x343b94(0x954))],['MMM',_0x595671('short')],['MM',_0x1bc859(_0x544d37)],['DD',_0x1bc859(_0x4008b2)],['HH',_0x1bc859(_0x4bc7b0)],['hh',_0x1bc859(_0x1d1b62)],['mm',_0x1bc859(_0x29d8c6)],['ss',_0x1bc859(_0x1b390c)],['A',_0x1a581e],['a',_0x1a581e[_0x343b94(0x148)]()]],_0x16059e=_0x25dd3f[_0x343b94(0x963)]((_0x1e8546,_0x541993)=>'\x00'+_0x541993+'\x00');let _0x3f9a73=_0x3ddae9;return _0x25dd3f[_0x343b94(0x1ce)](([_0x57e9ea],_0x5b844e)=>{const _0x2a2c9c=_0x343b94;_0x3f9a73=_0x3f9a73['split'](_0x57e9ea)[_0x2a2c9c(0xcdc)](_0x16059e[_0x5b844e]);}),_0x25dd3f['forEach'](([,_0x59b9a8],_0x1c9132)=>{const _0x47b5aa=_0x343b94;_0x3f9a73=_0x3f9a73['split'](_0x16059e[_0x1c9132])[_0x47b5aa(0xcdc)](_0x59b9a8);}),_0x3f9a73;}function formatDateTime(_0x34b700,_0x3f897f,_0x2b6016,_0x227f40){const _0x54557c=_0x45b7b8,_0x4c57de=_0x227f40&&_0x227f40[_0x54557c(0x54c)]||null,_0xab792e=resolveDisplayTimeZone(_0x2b6016,_0x3f897f),_0x41531a=effDatetimeFormat(_0x3f897f);if(_0x41531a&&_0x41531a!=='system')return applyDatetimePattern(_0x34b700,_0x41531a,resolveCardLanguage(_0x2b6016,_0x3f897f),_0xab792e);const _0x59f187=resolveCardLanguage(_0x2b6016,_0x3f897f);let _0x2d0aff;switch(_0x4c57de){case'year':_0x2d0aff={'year':'numeric'};break;case _0x54557c(0x6e0):_0x2d0aff={'month':'short','year':'numeric'};break;case _0x54557c(0xb89):case _0x54557c(0x962):_0x2d0aff={'month':_0x54557c(0xbd7),'day':_0x54557c(0xb75)};break;case'hour':_0x2d0aff=_localeTimeOpts(_0x2b6016,{'month':_0x54557c(0xbd7),'day':_0x54557c(0xb75),'hour':_0x54557c(0xb82)});break;default:_0x2d0aff=_localeTimeOpts(_0x2b6016,{'month':_0x54557c(0xbd7),'day':_0x54557c(0xb75),'hour':_0x54557c(0xb82),'minute':'2-digit'});}const _0x38fcce=getCachedDateTimeFormatter(_0x59f187,_0xab792e?{..._0x2d0aff,'timeZone':_0xab792e}:_0x2d0aff);if(_0x38fcce)return _0x38fcce[_0x54557c(0xb9a)](_0x34b700);return _0x34b700[_0x54557c(0x276)]();}function formatTimeShort(_0x199b82,_0x39e1d0,_0x2869a8,_0x5c0909){const _0xaa3bf7=_0x45b7b8,_0x3433c7=resolveDisplayTimeZone(_0x2869a8,_0x5c0909),_0x4d95c0=effDatetimeFormat(_0x5c0909);if(_0x4d95c0&&_0x4d95c0!==_0xaa3bf7(0x4ca))return applyDatetimePattern(_0x199b82,_0x4d95c0,resolveCardLanguage(_0x2869a8,_0x5c0909),_0x3433c7);const _0x3e2631=resolveCardLanguage(_0x2869a8,_0x5c0909);let _0x37e8f5;if(_0x39e1d0<0x2*0x15180*0x3e8)_0x37e8f5=_localeTimeOpts(_0x2869a8,{'hour':'2-digit','minute':'2-digit'});else _0x39e1d0<0x1f*0x15180*0x3e8?_0x37e8f5={'month':_0xaa3bf7(0xbd7),'day':'numeric'}:_0x37e8f5={'month':_0xaa3bf7(0xbd7),'year':_0xaa3bf7(0xb82)};const _0x129681=getCachedDateTimeFormatter(_0x3e2631,_0x3433c7?{..._0x37e8f5,'timeZone':_0x3433c7}:_0x37e8f5);if(_0x129681)return _0x129681['format'](_0x199b82);return _0x199b82['toLocaleString']();}function parseGraphStart(_0x46874f,_0x18698e,_0x1abc98,_0x5df60f=0x1){const _0x54375a=_0x45b7b8,_0xe091bd=tzParts(_0x18698e[_0x54375a(0x9e0)](),_0x1abc98),_0x568f42=(_0x2168bd,_0x108074,_0x355e5c)=>new Date(zonedWallToMs(_0x2168bd,_0x108074,_0x355e5c,0x0,0x0,0x0,_0x1abc98));switch(_0x46874f){case _0x54375a(0x962):case _0x54375a(0xa5c):return _0x568f42(_0xe091bd['y'],_0xe091bd['mo'],_0xe091bd['d']);case _0x54375a(0xa8):return _0x568f42(_0xe091bd['y'],_0xe091bd['mo'],_0xe091bd['d']+0x1);case _0x54375a(0xb89):return _0x568f42(_0xe091bd['y'],_0xe091bd['mo'],_0xe091bd['d']-weekStartOffsetDays(_0xe091bd['wd'],_0x5df60f));case _0x54375a(0x6e0):return _0x568f42(_0xe091bd['y'],_0xe091bd['mo'],0x1);case _0x54375a(0x74c):return _0x568f42(_0xe091bd['y'],0x0,0x1);default:return _0x568f42(_0xe091bd['y'],_0xe091bd['mo'],_0xe091bd['d']);}}function calendarCellStartMs(_0x40f4f0,_0x570235,_0x51aa70,_0x595cc6=0x1){const _0xa2ec22=_0x45b7b8,_0x6a81f=tzParts(_0x40f4f0,_0x51aa70);switch(_0x570235){case'hour':return zonedWallToMs(_0x6a81f['y'],_0x6a81f['mo'],_0x6a81f['d'],_0x6a81f['h'],0x0,0x0,_0x51aa70);case'date':return zonedWallToMs(_0x6a81f['y'],_0x6a81f['mo'],_0x6a81f['d'],0x0,0x0,0x0,_0x51aa70);case'week':return zonedWallToMs(_0x6a81f['y'],_0x6a81f['mo'],_0x6a81f['d']-weekStartOffsetDays(_0x6a81f['wd'],_0x595cc6),0x0,0x0,0x0,_0x51aa70);case _0xa2ec22(0x6e0):return zonedWallToMs(_0x6a81f['y'],_0x6a81f['mo'],0x1,0x0,0x0,0x0,_0x51aa70);case _0xa2ec22(0x74c):return zonedWallToMs(_0x6a81f['y'],0x0,0x1,0x0,0x0,0x0,_0x51aa70);default:return NaN;}}function endOfPeriodFromGraphStart(_0x5c90bd,_0x58466b,_0x36d6ec,_0x24ee38=0x1){const _0x63ec62=_0x45b7b8,_0x46e0ad=tzParts(_0x58466b[_0x63ec62(0x9e0)](),_0x36d6ec),_0x523f23=(_0x57e50d,_0x4e1b22,_0x442d22)=>new Date(zonedWallToMs(_0x57e50d,_0x4e1b22,_0x442d22,0x0,0x0,0x0,_0x36d6ec));switch(_0x5c90bd){case'day':case _0x63ec62(0xa5c):return _0x523f23(_0x46e0ad['y'],_0x46e0ad['mo'],_0x46e0ad['d']+0x1);case _0x63ec62(0xa8):return _0x523f23(_0x46e0ad['y'],_0x46e0ad['mo'],_0x46e0ad['d']+0x2);case _0x63ec62(0xb89):return _0x523f23(_0x46e0ad['y'],_0x46e0ad['mo'],_0x46e0ad['d']-weekStartOffsetDays(_0x46e0ad['wd'],_0x24ee38)+0x7);case'month':return _0x523f23(_0x46e0ad['y'],_0x46e0ad['mo']+0x1,0x1);case _0x63ec62(0x74c):return _0x523f23(_0x46e0ad['y']+0x1,0x0,0x1);default:return _0x523f23(_0x46e0ad['y'],_0x46e0ad['mo'],_0x46e0ad['d']+0x1);}}function resolveAnchorWindow(_0x458ee1,_0x5dc1df,_0x5d05ce){const _0x7d41f3=_0x45b7b8,_0x5b0a87=new Date();let _0xccb411=_0x5b0a87,_0x3c7159;if(isNum(_0x5dc1df))return _0x3c7159=new Date(_0x5b0a87[_0x7d41f3(0x9e0)]()-_0x5dc1df*0xe10*0x3e8),{'start':_0x3c7159,'end':_0xccb411};if(_0x458ee1[_0x7d41f3(0x59f)])_0x3c7159=parseGraphStart(_0x458ee1[_0x7d41f3(0x59f)],_0x5b0a87,resolveDisplayTimeZone(_0x5d05ce,_0x458ee1),resolveFirstWeekday(_0x5d05ce));else{const _0x678324=toNum(_0x458ee1['hours_to_show'])??0x18;_0x3c7159=new Date(_0x5b0a87['getTime']()-_0x678324*0xe10*0x3e8);}return{'start':_0x3c7159,'end':_0xccb411};}function groupBucketMs(_0x497945,_0x508dc1,_0x5b9c96){const _0x3f5ac3=_0x45b7b8,_0x4151e3=/^([0-9]+)h$/i[_0x3f5ac3(0x57e)](String(_0x497945||''));if(_0x4151e3&&Number(_0x4151e3[0x1])>0x0)return Number(_0x4151e3[0x1])*0xe10*0x3e8;switch(_0x497945){case _0x3f5ac3(0xd59):return 0xe10*0x3e8;case'date':case _0x3f5ac3(0x962):return 0x15180*0x3e8;case _0x3f5ac3(0xb89):return 0x7*0x15180*0x3e8;case _0x3f5ac3(0x6e0):return 0x1e*0x15180*0x3e8;case _0x3f5ac3(0x74c):return 0x16d*0x15180*0x3e8;case'raw':return 0x0;case _0x3f5ac3(0xb84):default:{const _0x523e0f=toNum(_0x5b9c96);if(isNum(_0x523e0f)&&_0x523e0f>0x0)return 0x36ee80/_0x523e0f;const _0x1e02b7=(_0x508dc1||0x18)*0xe10*0x3e8;return _0x1e02b7/0x3c;}}}function _isAutoScaleSafe(_0x13bb2e){const _0x2da59a=_0x45b7b8,_0x3ef38e=_0x13bb2e?.[_0x2da59a(0x82b)]||[];for(const _0x5cf31d of _0x3ef38e){if(!_0x5cf31d||typeof _0x5cf31d!==_0x2da59a(0xa7e))continue;if(_0x5cf31d[_0x2da59a(0x2f6)]!=null)continue;const _0x358ca7=_0x5cf31d[_0x2da59a(0x74a)];if(_0x358ca7!==undefined&&_0x358ca7!==null&&_0x358ca7!==''&&_0x358ca7!==0x0&&_0x358ca7!=='0')return![];const _0x229ed7=toNum(_0x5cf31d[_0x2da59a(0xb87)]);if(isNum(_0x229ed7)&&_0x229ed7!==0x0)return![];if(_0x5cf31d[_0x2da59a(0x6e9)])return![];}return!![];}const AUTO_SCALE_RULE_GROUPS=new Set([_0x45b7b8(0xb84),_0x45b7b8(0xd59),'2h','3h','4h','6h',_0x45b7b8(0x7d6),_0x45b7b8(0xa52),'week',_0x45b7b8(0x6e0),'year','raw']);function resolveAutoScaleRule(_0x3210cb,_0x5ca1cd){const _0x325653=_0x45b7b8,_0x1e16d9=_0x3210cb?.[_0x325653(0x98c)];if(!Array['isArray'](_0x1e16d9)||!_0x1e16d9[_0x325653(0x230)]||!isNum(_0x5ca1cd)||_0x5ca1cd<=0x0)return null;let _0x185365=null;for(const _0x1d8d92 of _0x1e16d9){if(!_0x1d8d92||typeof _0x1d8d92!==_0x325653(0xa7e))continue;const _0x2f2a5f=toNum(_0x1d8d92[_0x325653(0xcf)]);let _0x2f617b=_0x1d8d92[_0x325653(0x8d9)]===_0x325653(0x962)?_0x325653(0xa52):_0x1d8d92[_0x325653(0x8d9)];if(typeof _0x2f617b===_0x325653(0x5ea)&&/^\d+h$/[_0x325653(0x7af)](_0x2f617b)){}else{if(!AUTO_SCALE_RULE_GROUPS[_0x325653(0xd4f)](_0x2f617b))_0x2f617b=null;}if(!isNum(_0x2f2a5f)||_0x2f2a5f<=0x0||!_0x2f617b)continue;if(_0x5ca1cd<=_0x2f2a5f&&(!_0x185365||_0x2f2a5f<_0x185365['up'])){const _0x37a6a4=toNum(_0x1d8d92['points_per_hour']);_0x185365={'up':_0x2f2a5f,'group_by':_0x2f617b,'points_per_hour':isNum(_0x37a6a4)&&_0x37a6a4>0x0?_0x37a6a4:null,'x_axis_interval':typeof _0x1d8d92[_0x325653(0x660)]===_0x325653(0x5ea)&&_0x1d8d92[_0x325653(0x660)][_0x325653(0x28f)]()?_0x1d8d92[_0x325653(0x660)]['trim']():null,'datetime_format':typeof _0x1d8d92['datetime_format']==='string'&&_0x1d8d92['datetime_format'][_0x325653(0x28f)]()?_0x1d8d92[_0x325653(0x71b)][_0x325653(0x28f)]():null};}}return _0x185365?{'group_by':_0x185365[_0x325653(0x8d9)],'points_per_hour':_0x185365[_0x325653(0x8a4)],'x_axis_interval':_0x185365[_0x325653(0x660)],'datetime_format':_0x185365[_0x325653(0x71b)]}:null;}function activeScaleRule(_0x31ef7e,_0x449206){const _0xd64bc6=_0x45b7b8,_0x22fd37=toNum(_0x31ef7e?.[_0xd64bc6(0x40f)]),_0x532db8=isNum(_0x22fd37)&&_0x22fd37>0x0?_0x22fd37:_0x449206;if(!(_0x31ef7e?.[_0xd64bc6(0x397)]&&isNum(_0x532db8)&&_0x532db8>0x0&&_isAutoScaleSafe(_0x31ef7e)))return null;const _0x5a31d8=resolveAutoScaleRule(_0x31ef7e,_0x532db8);if(_0x5a31d8&&_0x5a31d8['group_by']===(_0x31ef7e[_0xd64bc6(0x8d9)]||_0xd64bc6(0xb84))&&_0x5a31d8['points_per_hour']==null&&!_0x5a31d8['x_axis_interval']&&!_0x5a31d8[_0xd64bc6(0x71b)])return null;return _0x5a31d8;}function effXAxisInterval(_0x209599){const _0x2a9193=_0x45b7b8,_0x5ae2b4=_0x209599?.[_0x2a9193(0x1c6)];if(_0x5ae2b4!=null)return _0x5ae2b4[_0x2a9193(0x660)]||null;return _0x209599?.[_0x2a9193(0x660)];}function effDatetimeFormat(_0x549bd7){const _0xca91ab=_0x45b7b8,_0x1953b7=_0x549bd7?.[_0xca91ab(0x1c6)];if(_0x1953b7!=null)return _0x1953b7[_0xca91ab(0x71b)]||null;return _0x549bd7?.[_0xca91ab(0x71b)];}function resolveAutoScale(_0x5aede6){const _0x19e6d0=_0x45b7b8,_0x138635=_0x5aede6;if(!isNum(_0x138635)||_0x138635<=0x0)return null;if(_0x138635<=0x4)return{'group_by':'interval','points_per_hour':0xc};if(_0x138635<=0xc)return{'group_by':_0x19e6d0(0xb84),'points_per_hour':0x4};if(_0x138635<=0x30)return{'group_by':'interval','points_per_hour':0x2};const _0x4d5051=Math[_0x19e6d0(0xd3f)](_0x138635/0x18);if(_0x4d5051<=0x6)return{'group_by':'hour','points_per_hour':0x1};if(_0x4d5051<=0x3b)return{'group_by':_0x19e6d0(0xa52),'points_per_hour':null};if(_0x4d5051<=0xb4)return{'group_by':_0x19e6d0(0xb89),'points_per_hour':null};return{'group_by':_0x19e6d0(0x6e0),'points_per_hour':null};}function resolvePointsPerHour(_0x18ca39,_0x27a949,_0x1b9af8){const _0x28b29a=_0x45b7b8,_0x192be2=toNum(_0x27a949?.['points_per_hour']);if(isNum(_0x192be2)&&_0x192be2>0x0)return _0x192be2;let _0x3312a2=toNum(_0x18ca39?.[_0x28b29a(0x8a4)]);if(!isNum(_0x3312a2)||_0x3312a2<=0x0)return null;const _0x3ac088=toNum(_0x18ca39?.[_0x28b29a(0x40f)]),_0x523336=isNum(_0x3ac088)&&_0x3ac088>0x0?_0x3ac088:_0x1b9af8;if(_0x18ca39?.[_0x28b29a(0x397)]&&isNum(_0x523336)&&_0x523336>0x0){if(_isAutoScaleSafe(_0x18ca39)){const _0x16b384=resolveAutoScaleRule(_0x18ca39,_0x523336);if(_0x16b384){if(_0x16b384[_0x28b29a(0x8a4)]!==null)return _0x16b384[_0x28b29a(0x8a4)];if(_0x16b384[_0x28b29a(0x8d9)]!==_0x28b29a(0xb84)&&_0x16b384[_0x28b29a(0x8d9)]!==_0x28b29a(0x301))return 0x1;}else{const _0x94d7b2=resolveAutoScale(_0x523336);if(_0x94d7b2&&_0x94d7b2[_0x28b29a(0x8a4)]!==null)return _0x94d7b2[_0x28b29a(0x8a4)];if(_0x94d7b2)return 0x1;}}const _0x115abf=toNum(_0x18ca39?.[_0x28b29a(0x275)])||0x18,_0x1384f1=_0x3312a2*(_0x115abf/_0x523336);_0x3312a2=Math[_0x28b29a(0x4ee)](0x2,Math[_0x28b29a(0x5db)](Math['log2'](Math[_0x28b29a(0xc78)](0.5,_0x1384f1))));}return _0x3312a2;}function resolveGroupBy(_0x66102c,_0xef94cf){const _0x121cce=_0x45b7b8,_0x5930a4=toNum(_0x66102c?.[_0x121cce(0x40f)]),_0x265f05=isNum(_0x5930a4)&&_0x5930a4>0x0?_0x5930a4:_0xef94cf;if(_0x66102c?.['auto_scale_points']&&isNum(_0x265f05)&&_0x265f05>0x0&&_isAutoScaleSafe(_0x66102c)){const _0x208b1a=resolveAutoScaleRule(_0x66102c,_0x265f05);if(_0x208b1a)return _0x208b1a[_0x121cce(0x8d9)];const _0x5a3b22=resolveAutoScale(_0x265f05);if(_0x5a3b22)return _0x5a3b22[_0x121cce(0x8d9)];}return _0x66102c?.[_0x121cce(0x8d9)]||_0x121cce(0xb84);}function computeTrend(_0x4ab8d1,_0x1732c3){const _0x112227=_0x45b7b8;if(!_0x4ab8d1||_0x4ab8d1[_0x112227(0x230)]<0x2)return _0x112227(0x335);const _0x4a2305=_0x4ab8d1['filter'](_0x56dfd8=>_0x56dfd8&&_0x56dfd8['v']!==null&&_0x56dfd8['v']!==undefined&&!Number[_0x112227(0x613)](_0x56dfd8['v']));if(_0x4a2305[_0x112227(0x230)]<0x2)return _0x112227(0x335);let _0x17ae77;if(isNum(_0x1732c3)&&_0x1732c3>0x0){const _0x5241f4=_0x4a2305[_0x4a2305[_0x112227(0x230)]-0x1]['t'],_0x41ef12=_0x5241f4-_0x1732c3*0x36ee80;_0x17ae77=_0x4a2305[_0x112227(0xbb6)](_0x38e54f=>_0x38e54f['t']>=_0x41ef12);}else _0x17ae77=_0x4a2305[_0x112227(0x376)](-Math[_0x112227(0xc78)](0x2,Math[_0x112227(0xa4c)](_0x4a2305[_0x112227(0x230)]/0x3)));const _0x591401=0x4;_0x17ae77[_0x112227(0x230)]<_0x591401&&_0x4a2305[_0x112227(0x230)]>=_0x591401&&(_0x17ae77=_0x4a2305['slice'](-_0x591401));if(_0x17ae77[_0x112227(0x230)]<_0x591401)return _0x112227(0x335);const _0x49dd9f=0x78;let _0x1b6fe6=_0x17ae77;if(_0x17ae77[_0x112227(0x230)]>_0x49dd9f){_0x1b6fe6=new Array(_0x49dd9f);const _0x2e7b0e=(_0x17ae77[_0x112227(0x230)]-0x1)/(_0x49dd9f-0x1);for(let _0x204336=0x0;_0x204336<_0x49dd9f;_0x204336++)_0x1b6fe6[_0x204336]=_0x17ae77[Math[_0x112227(0xd3f)](_0x204336*_0x2e7b0e)];}const _0x40977c=_0x1b6fe6[_0x112227(0x230)];let _0xa843f3=0x0;for(let _0x371476=0x0;_0x371476<_0x40977c;_0x371476++){const _0x266f82=_0x1b6fe6[_0x371476]['v'];for(let _0x3e32a3=_0x371476+0x1;_0x3e32a3<_0x40977c;_0x3e32a3++){const _0x1e9e7d=_0x1b6fe6[_0x3e32a3]['v']-_0x266f82;if(_0x1e9e7d>0x0)_0xa843f3++;else{if(_0x1e9e7d<0x0)_0xa843f3--;}}}const _0x288d45=_0x40977c*(_0x40977c-0x1)*(0x2*_0x40977c+0x5)/0x12;if(_0x288d45<=0x0)return'stable';const _0x1a673c=_0xa843f3>0x0?(_0xa843f3-0x1)/Math['sqrt'](_0x288d45):_0xa843f3<0x0?(_0xa843f3+0x1)/Math[_0x112227(0x26f)](_0x288d45):0x0,_0x5d86ef=1.28;if(_0x1a673c>_0x5d86ef)return'up';if(_0x1a673c<-_0x5d86ef)return _0x112227(0x4c1);return _0x112227(0x335);}function lineDashArray(_0x491265,_0x382cb3){const _0x5ddb5f=_0x45b7b8;if(_0x491265!==_0x5ddb5f(0xce2)&&_0x491265!==_0x5ddb5f(0x9fa))return'';const _0x273cdc=Math['max'](toNum(_0x382cb3)||2.5,0.5);if(_0x491265===_0x5ddb5f(0xce2))return(_0x273cdc*3.2)[_0x5ddb5f(0x103)](0x1)+','+(_0x273cdc*2.2)[_0x5ddb5f(0x103)](0x1);return'0.1,'+(_0x273cdc*2.1)[_0x5ddb5f(0x103)](0x1);}function trendDirection(_0x369dfd,_0x3cf96d){const _0x570aec=_0x45b7b8;if(!_0x369dfd)return'stable';const _0x39e638=_0x3cf96d[_0x570aec(0x234)];if(_0x3cf96d['value_transform']||_0x3cf96d[_0x570aec(0x408)]||_0x39e638==='diff'||_0x39e638==='change'){const _0x9185f1=_0x369dfd[_0x570aec(0xaf8)];return _0x9185f1&&_0x9185f1[_0x570aec(0x230)]>=0x2?computeTrend(_0x9185f1,toNum(_0x3cf96d[_0x570aec(0x5a7)])):_0x570aec(0x335);}const _0x423405=_0x369dfd[_0x570aec(0x301)]&&_0x369dfd[_0x570aec(0x301)][_0x570aec(0x230)]>=0x2?_0x369dfd[_0x570aec(0x301)]:_0x369dfd[_0x570aec(0xaf8)];if(!_0x423405||_0x423405[_0x570aec(0x230)]<0x2)return _0x570aec(0x335);let _0x4ecb43=computeTrend(_0x423405,toNum(_0x3cf96d[_0x570aec(0x5a7)]));if(_0x3cf96d[_0x570aec(0x52a)])_0x4ecb43=_0x4ecb43==='up'?_0x570aec(0x4c1):_0x4ecb43===_0x570aec(0x4c1)?'up':'stable';return _0x4ecb43;}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 _0x42321d=_0x45b7b8;this[_0x42321d(0x60e)]=new Map();}['clearCache'](){const _0x3bad07=_0x45b7b8;this[_0x3bad07(0x60e)][_0x3bad07(0xc5)]();}['_cacheGet'](_0x161934){const _0x84c6f3=_0x45b7b8,_0x57753d=this[_0x84c6f3(0x60e)]['get'](_0x161934);if(!_0x57753d)return null;if(Date[_0x84c6f3(0xcca)]()-_0x57753d['ts']>FETCH_CACHE_TTL_MS)return this[_0x84c6f3(0x60e)][_0x84c6f3(0x906)](_0x161934),null;return this[_0x84c6f3(0x60e)]['delete'](_0x161934),this['_cache'][_0x84c6f3(0x4f1)](_0x161934,_0x57753d),_0x57753d[_0x84c6f3(0x13d)];}['_cacheSet'](_0xf84858,_0x551777){const _0x3a68c7=_0x45b7b8,_0x47d704=Date[_0x3a68c7(0xcca)]();for(const [_0x41802c,_0xc04c5b]of this[_0x3a68c7(0x60e)]){if(_0x47d704-_0xc04c5b['ts']>FETCH_CACHE_TTL_MS)this[_0x3a68c7(0x60e)][_0x3a68c7(0x906)](_0x41802c);}if(this[_0x3a68c7(0x60e)][_0x3a68c7(0x948)]>=FETCH_CACHE_MAX){const _0x17d7c2=this[_0x3a68c7(0x60e)][_0x3a68c7(0xc71)]()[_0x3a68c7(0x19e)]()['value'];if(_0x17d7c2!==undefined)this[_0x3a68c7(0x60e)][_0x3a68c7(0x906)](_0x17d7c2);}this['_cache'][_0x3a68c7(0x4f1)](_0xf84858,{'data':_0x551777,'ts':_0x47d704});}async[_0x45b7b8(0xc4)](_0xc0bc46,_0x3ccdf4,_0x4611de,_0x3cd7df,_0x44dabc=!![]){const _0xc80d51=_0x45b7b8;if(!_0x3ccdf4[_0xc80d51(0x230)])return{};const _0x262ea7=_0x3ccdf4[_0xc80d51(0x963)](_0x387f4a=>_0x387f4a['id']),_0x407464=_0x3ccdf4['some'](_0x3132d4=>_0x3132d4[_0xc80d51(0x1e0)]),_0x1d50f9='h:'+_0x262ea7['join'](',')+'|'+(_0x407464?'A':'S')+'|'+_0x4611de[_0xc80d51(0x1e4)]()+'|'+_0x3cd7df[_0xc80d51(0x1e4)]();if(_0x44dabc){const _0x2ea473=this[_0xc80d51(0x733)](_0x1d50f9);if(_0x2ea473)return _0x2ea473;}const _0x347bfc=_0x407464?'':_0xc80d51(0x924),_0x25a9a4=_0xc80d51(0x6c4)+_0x4611de[_0xc80d51(0x1e4)]()+(_0xc80d51(0xa65)+encodeURIComponent(_0x3cd7df[_0xc80d51(0x1e4)]()))+('&filter_entity_id='+encodeURIComponent(_0x262ea7[_0xc80d51(0xcdc)](',')))+_0x347bfc,_0xad8847={};let _0x209b09=!![];try{const _0x38f89f=await _0xc0bc46[_0xc80d51(0x513)](_0xc80d51(0xa69),_0x25a9a4);for(const _0x2f8822 of _0x38f89f||[]){if(!_0x2f8822?.[_0xc80d51(0x230)])continue;const _0x278b65=_0x2f8822[0x0][_0xc80d51(0xa9e)];_0xad8847[_0x278b65]=_0x2f8822[_0xc80d51(0x963)](_0x481833=>stripSampleForCache(_0x481833,_0x407464));}}catch(_0x3455fa){_0x209b09=![],console[_0xc80d51(0x5f3)](_0xc80d51(0x589),_0x3455fa);}if(_0x44dabc&&_0x209b09)this[_0xc80d51(0x8e1)](_0x1d50f9,_0xad8847);return _0xad8847;}async[_0x45b7b8(0xa79)](_0x535ee4,_0x38d127,_0x34207c,_0x470332,_0x10317c=_0x45b7b8(0xd59),_0x52b8b7=!![],_0x191ba9=null){const _0x48e2ad=_0x45b7b8;if(!_0x38d127['length'])return{};const _0x4d9233=_0x191ba9&&_0x191ba9['length']?Array[_0x48e2ad(0xd22)](new Set(_0x191ba9)):[_0x48e2ad(0x10b),_0x48e2ad(0xd2f),_0x48e2ad(0xc78),'sum',_0x48e2ad(0x992),_0x48e2ad(0x68e)],_0x3fd7d2=Math[_0x48e2ad(0xa4c)](_0x470332[_0x48e2ad(0x9e0)]()/0x2710)*0x2710,_0x1dd8a9=_0x38d127[_0x48e2ad(0x376)]()[_0x48e2ad(0xa8e)]()[_0x48e2ad(0xcdc)](','),_0x4241d1='s:'+_0x1dd8a9+'|'+_0x34207c[_0x48e2ad(0x9e0)]()+'|'+_0x3fd7d2+'|'+_0x10317c+'|'+_0x4d9233[_0x48e2ad(0x376)]()[_0x48e2ad(0xa8e)]()['join'](',');if(_0x52b8b7){const _0xe1862a=this['_cacheGet'](_0x4241d1);if(_0xe1862a)return _0xe1862a;}const _0xf69f8a={};let _0x29e09f=!![];try{const _0x3714db=await _0x535ee4[_0x48e2ad(0x481)]({'type':_0x48e2ad(0xbbf),'start_time':_0x34207c[_0x48e2ad(0x1e4)](),'end_time':_0x470332[_0x48e2ad(0x1e4)](),'statistic_ids':_0x38d127,'period':_0x10317c,'types':_0x4d9233});for(const _0x269b27 of _0x38d127){const _0x25eaff=_0x3714db?.[_0x269b27]||[];_0xf69f8a[_0x269b27]=_0x25eaff[_0x48e2ad(0x963)](_0x1e0a08=>({'t':new Date(_0x1e0a08[_0x48e2ad(0x866)])[_0x48e2ad(0x9e0)](),'mean':toNum(_0x1e0a08[_0x48e2ad(0x10b)]),'min':toNum(_0x1e0a08[_0x48e2ad(0xd2f)]),'max':toNum(_0x1e0a08[_0x48e2ad(0xc78)]),'sum':toNum(_0x1e0a08['sum']),'state':toNum(_0x1e0a08[_0x48e2ad(0x992)]),'change':toNum(_0x1e0a08[_0x48e2ad(0x68e)])}));}}catch(_0x47cd68){_0x29e09f=![],console[_0x48e2ad(0x5f3)](_0x48e2ad(0x9f7),_0x47cd68);}if(_0x52b8b7&&_0x29e09f)this[_0x48e2ad(0x8e1)](_0x4241d1,_0xf69f8a);return _0xf69f8a;}}function stripSampleForCache(_0x47bf14,_0x1ae265){const _0x404d98=_0x45b7b8,_0x235481={'t':new Date(_0x47bf14[_0x404d98(0x80c)]||_0x47bf14[_0x404d98(0xb3)])[_0x404d98(0x9e0)](),'state':_0x47bf14[_0x404d98(0x992)]};if(_0x1ae265&&_0x47bf14[_0x404d98(0x74e)])_0x235481[_0x404d98(0x74e)]=_0x47bf14[_0x404d98(0x74e)];else _0x235481[_0x404d98(0x74e)]=null;return _0x235481;}const AGG_VALID=new Set([_0x45b7b8(0xd2f),_0x45b7b8(0xc78),_0x45b7b8(0xc7f),'avg',_0x45b7b8(0x10b),_0x45b7b8(0x350),_0x45b7b8(0x503),_0x45b7b8(0xb0f),_0x45b7b8(0x34c),'diff',_0x45b7b8(0x68e)]);class DataProcessor{static[_0x45b7b8(0x97f)](_0x51bc1d,_0x4a7006){const _0x442cc5=_0x45b7b8;if(!Array['isArray'](_0x51bc1d)||_0x51bc1d[_0x442cc5(0x230)]<=_0x4a7006||_0x4a7006<0x3)return _0x51bc1d;const _0x43b2c0=_0x51bc1d[_0x442cc5(0x230)],_0x91fd15=new Array(_0x4a7006);let _0x42305d=0x0;const _0x4303b1=(_0x43b2c0-0x2)/(_0x4a7006-0x2);let _0x53b7dc=0x0;_0x91fd15[_0x42305d++]=_0x51bc1d[_0x53b7dc];for(let _0xe5e77b=0x0;_0xe5e77b<_0x4a7006-0x2;_0xe5e77b++){let _0x29ef06=0x0,_0x315416=0x0,_0x66fed9=Math[_0x442cc5(0xa4c)]((_0xe5e77b+0x1)*_0x4303b1)+0x1,_0x97af76=Math[_0x442cc5(0xa4c)]((_0xe5e77b+0x2)*_0x4303b1)+0x1;_0x97af76=_0x97af76<_0x43b2c0?_0x97af76:_0x43b2c0;const _0x273ec7=_0x97af76-_0x66fed9;if(_0x273ec7<=0x0){const _0x42b7ab=Math[_0x442cc5(0xd2f)](_0x66fed9,_0x43b2c0-0x1);_0x91fd15[_0x42305d++]=_0x51bc1d[_0x42b7ab],_0x53b7dc=_0x42b7ab;continue;}for(let _0x4d3743=_0x66fed9;_0x4d3743<_0x97af76;_0x4d3743++){_0x29ef06+=_0x51bc1d[_0x4d3743]['t'],_0x315416+=_0x51bc1d[_0x4d3743]['v']||0x0;}_0x29ef06/=_0x273ec7,_0x315416/=_0x273ec7;const _0x3916b4=Math[_0x442cc5(0xa4c)](_0xe5e77b*_0x4303b1)+0x1,_0x19be7c=Math[_0x442cc5(0xa4c)]((_0xe5e77b+0x1)*_0x4303b1)+0x1,_0x3d0bc6=_0x51bc1d[_0x53b7dc]['t'],_0x2b740b=_0x51bc1d[_0x53b7dc]['v']||0x0;let _0x34027d=-0x1,_0x2c5a82=_0x3916b4;for(let _0x3280cf=_0x3916b4;_0x3280cf<_0x19be7c;_0x3280cf++){const _0xfe9c6a=Math[_0x442cc5(0x533)]((_0x3d0bc6-_0x29ef06)*((_0x51bc1d[_0x3280cf]['v']||0x0)-_0x2b740b)-(_0x3d0bc6-_0x51bc1d[_0x3280cf]['t'])*(_0x315416-_0x2b740b))*0.5;_0xfe9c6a>_0x34027d&&(_0x34027d=_0xfe9c6a,_0x2c5a82=_0x3280cf);}_0x91fd15[_0x42305d++]=_0x51bc1d[_0x2c5a82],_0x53b7dc=_0x2c5a82;}return _0x91fd15[_0x42305d++]=_0x51bc1d[_0x43b2c0-0x1],_0x91fd15;}static[_0x45b7b8(0x9c3)](_0x4c4ebd,_0x2ba3f4,_0x493302,_0x4d5d6e,_0x3092c4,_0x5aba5e,_0x102b72={}){const _0x15948b=_0x45b7b8;if(!_0x4c4ebd?.['length']||!_0x2ba3f4||_0x4d5d6e<=_0x493302)return _0x4c4ebd||[];const _0x57b73a=0x7d0,_0x4c0a43=0x7530;let _0x225c87=Math[_0x15948b(0xc78)](_0x4c0a43,_0x2ba3f4);const _0x1a4440=_0x4d5d6e-_0x493302;let _0x43a89f=Math['ceil'](_0x1a4440/_0x225c87);_0x43a89f>_0x57b73a&&(_0x225c87=Math[_0x15948b(0x5db)](_0x1a4440/_0x57b73a),_0x43a89f=_0x57b73a);let _0x1a53b7=_0x493302;_0x102b72[_0x15948b(0x672)]&&(_0x1a53b7=Math[_0x15948b(0xa4c)](_0x493302/_0x225c87)*_0x225c87,_0x43a89f=Math[_0x15948b(0xd2f)](_0x57b73a,Math[_0x15948b(0x5db)]((_0x4d5d6e-_0x1a53b7)/_0x225c87)));const _0x4e5c4c=!!_0x102b72[_0x15948b(0xd71)],_0x4bf511=!!_0x102b72[_0x15948b(0x5a3)],_0x216463=_0x4c4ebd,_0x3aa738=new Array(_0x43a89f);let _0x34334b=0x0,_0x962233=null,_0x32c251=null,_0xf9268c=null,_0x14e6ae=null,_0x4d6e5d=null;while(_0x34334b<_0x216463['length']&&_0x216463[_0x34334b]['t']<_0x1a53b7){const _0x3088b4=_0x216463[_0x34334b]['v'];_0x3088b4!==null&&_0x3088b4!==undefined&&!Number[_0x15948b(0x613)](_0x3088b4)&&(_0x962233=_0x3088b4,_0x32c251=_0x216463[_0x34334b]['t']),_0x34334b++;}const _0x3f5779=_0x102b72[_0x15948b(0x5ab)]?_0x4d5d6e:Math[_0x15948b(0xd2f)](Date[_0x15948b(0xcca)](),_0x4d5d6e),_0xebeb3c=Date[_0x15948b(0xcca)](),_0x2918be=!_0x4e5c4c&&!_0x102b72[_0x15948b(0x5ab)]&&_0xebeb3c<_0x4d5d6e,_0xfbe635=!!_0x102b72[_0x15948b(0x5c2)],_0x1ad2aa=!_0xfbe635?_0x102b72[_0x15948b(0xcdd)]??Infinity:_0x102b72[_0x15948b(0xcdd)]??Math[_0x15948b(0xd2f)](_0x225c87*0x3,0x1e*0x3c*0x3e8);for(let _0x34531c=0x0;_0x34531c<_0x43a89f;_0x34531c++){const _0x22e6e4=_0x1a53b7+_0x34531c*_0x225c87,_0x5b2cbe=_0x22e6e4+_0x225c87,_0x53d34d=(_0x22e6e4+_0x5b2cbe)/0x2;let _0x56c9fd=_0x4e5c4c?_0x22e6e4:_0x53d34d;if(_0x2918be&&_0x22e6e4<=_0xebeb3c&&_0xebeb3c<_0x5b2cbe)_0x56c9fd=_0xebeb3c;while(_0x34334b<_0x216463['length']&&_0x216463[_0x34334b]['t']<_0x22e6e4)_0x34334b++;const _0x49a46c=[];let _0x39d84e=Infinity,_0x483db5=-Infinity,_0x46832f=![],_0x54e70e=null,_0x584bc1=null,_0x233e2e=null,_0x3b8aba=_0x34334b;while(_0x3b8aba<_0x216463[_0x15948b(0x230)]&&_0x216463[_0x3b8aba]['t']<_0x5b2cbe){const _0x1f9232=_0x216463[_0x3b8aba],_0x4d9081=_0x1f9232['v'];if(_0x4d9081!==null&&_0x4d9081!==undefined&&!Number[_0x15948b(0x613)](_0x4d9081)){_0x49a46c['push'](_0x4d9081),_0x54e70e=_0x4d9081,_0x584bc1=_0x1f9232['bMin']!==undefined&&_0x1f9232[_0x15948b(0x11f)]!==null?_0x1f9232[_0x15948b(0x11f)]:_0x4d9081,_0x233e2e=_0x1f9232['bMax']!==undefined&&_0x1f9232[_0x15948b(0xc97)]!==null?_0x1f9232['bMax']:_0x4d9081;if(_0x5aba5e){if(_0x584bc1<_0x39d84e)_0x39d84e=_0x584bc1;if(_0x233e2e>_0x483db5)_0x483db5=_0x233e2e;_0x46832f=!![];}}_0x3b8aba++;}if(_0x49a46c[_0x15948b(0x230)]>0x0){const _0x5224d4=DataProcessor['_aggregate'](_0x49a46c,_0x3092c4);_0x962233=_0x5224d4===null?null:_0x54e70e,_0x32c251=_0x53d34d;const _0x67757e={'t':_0x56c9fd,'v':_0x5224d4};_0x5aba5e&&_0x46832f&&(_0x67757e[_0x15948b(0x11f)]=_0x39d84e,_0x67757e[_0x15948b(0xc97)]=_0x483db5,_0xf9268c=_0x584bc1,_0x14e6ae=_0x233e2e);if(_0x4bf511){const _0x483216=DataProcessor[_0x15948b(0x67a)](_0x49a46c);_0x483216&&(_0x67757e['o']=_0x483216['o'],_0x67757e['h']=_0x483216['h'],_0x67757e['l']=_0x483216['l'],_0x67757e['c']=_0x483216['c'],_0x4d6e5d=_0x483216);}_0x3aa738[_0x34531c]=_0x67757e;}else{if(!_0x102b72[_0x15948b(0x2d5)]&&_0x962233!==null&&_0x22e6e4<=_0x3f5779&&_0x1ad2aa>0x0&&_0x32c251!==null&&_0x53d34d-_0x32c251<=_0x1ad2aa){const _0x11db49={'t':_0x56c9fd,'v':_0x962233};_0x5aba5e&&(_0x11db49['bMin']=_0xf9268c??_0x962233,_0x11db49[_0x15948b(0xc97)]=_0x14e6ae??_0x962233);if(_0x4bf511){const _0x322cbe=_0x4d6e5d?_0x4d6e5d['c']:_0x962233;_0x11db49['o']=_0x11db49['h']=_0x11db49['l']=_0x11db49['c']=_0x322cbe;}_0x3aa738[_0x34531c]=_0x11db49;}else{const _0xc87604={'t':_0x56c9fd,'v':null};_0x5aba5e&&(_0xc87604[_0x15948b(0x11f)]=null,_0xc87604['bMax']=null);if(_0x4bf511)_0xc87604['o']=_0xc87604['h']=_0xc87604['l']=_0xc87604['c']=null;_0x3aa738[_0x34531c]=_0xc87604;}}}let _0x5a7f21=-0x1;for(let _0x4d5d88=0x0;_0x4d5d88<_0x3aa738[_0x15948b(0x230)];_0x4d5d88++){if(_0x3aa738[_0x4d5d88]['v']!==null){_0x5a7f21=_0x4d5d88;break;}}if(_0x5a7f21>0x0&&!_0x102b72[_0x15948b(0x2d5)]&&!_0xfbe635&&!_0x102b72[_0x15948b(0x9d9)]){const _0x47eee8=_0x3aa738[_0x5a7f21]['v'],_0x44fe3a=_0x5aba5e?_0x3aa738[_0x5a7f21][_0x15948b(0x11f)]:null,_0xdcc8af=_0x5aba5e?_0x3aa738[_0x5a7f21][_0x15948b(0xc97)]:null;for(let _0x4cad93=0x0;_0x4cad93<_0x5a7f21;_0x4cad93++){_0x3aa738[_0x4cad93]['v']=_0x47eee8,_0x5aba5e&&(_0x3aa738[_0x4cad93][_0x15948b(0x11f)]=_0x44fe3a,_0x3aa738[_0x4cad93][_0x15948b(0xc97)]=_0xdcc8af);}}return _0x3aa738;}static[_0x45b7b8(0x680)](_0x4ae478,_0x45302f){const _0x395a01=_0x45b7b8;if(_0x45302f&&!AGG_VALID[_0x395a01(0xd4f)](_0x45302f)){DataProcessor[_0x395a01(0xa3c)]=DataProcessor[_0x395a01(0xa3c)]||new Set();if(!DataProcessor[_0x395a01(0xa3c)][_0x395a01(0xd4f)](_0x45302f)){DataProcessor[_0x395a01(0xa3c)]['add'](_0x45302f);const _0xb854a2=_0x45302f===_0x395a01(0x992)?_0x395a01(0xe6):'';console[_0x395a01(0x5f3)]('[statistics-graph-chart-card]\x20Unknown\x20aggregate_func:\x20\x22'+_0x45302f+_0x395a01(0x135)+(_0x395a01(0x308)+[...AGG_VALID][_0x395a01(0xcdc)](',\x20')+'.'+_0xb854a2));}}const _0x3ce70f=[];for(const _0x477526 of _0x4ae478)if(_0x477526!==null&&_0x477526!==undefined&&!Number['isNaN'](_0x477526))_0x3ce70f[_0x395a01(0x9f2)](_0x477526);if(!_0x3ce70f[_0x395a01(0x230)])return null;switch(_0x45302f){case'min':{let _0x509101=_0x3ce70f[0x0];for(let _0x344825=0x1;_0x344825<_0x3ce70f[_0x395a01(0x230)];_0x344825++)if(_0x3ce70f[_0x344825]<_0x509101)_0x509101=_0x3ce70f[_0x344825];return _0x509101;}case _0x395a01(0xc78):{let _0x484a3d=_0x3ce70f[0x0];for(let _0xb355ad=0x1;_0xb355ad<_0x3ce70f['length'];_0xb355ad++)if(_0x3ce70f[_0xb355ad]>_0x484a3d)_0x484a3d=_0x3ce70f[_0xb355ad];return _0x484a3d;}case'sum':return _0x3ce70f[_0x395a01(0x505)]((_0x15bb96,_0x16a66c)=>_0x15bb96+_0x16a66c,0x0);case'first':case _0x395a01(0x503):{let _0x477cc0=0x0;for(let _0xcc0351=0x1;_0xcc0351<_0x3ce70f[_0x395a01(0x230)];_0xcc0351++){if(_0x3ce70f[_0xcc0351-0x1]>0x0&&_0x3ce70f[_0xcc0351]<_0x3ce70f[_0xcc0351-0x1]*0.1)_0x477cc0++;}return _0x477cc0>0x0&&(DataProcessor[_0x395a01(0x4ff)]=DataProcessor[_0x395a01(0x4ff)]||new Set(),!DataProcessor['_resetAggWarned'][_0x395a01(0xd4f)](_0x45302f)&&(DataProcessor['_resetAggWarned'][_0x395a01(0x24e)](_0x45302f),console[_0x395a01(0x5f3)](_0x395a01(0x88c)+_0x45302f+_0x395a01(0x12a)+_0x395a01(0x4b6)+(_0x395a01(0xb45)+(_0x45302f===_0x395a01(0x503)?_0x395a01(0xd32):_0x395a01(0x603))+',\x20')+_0x395a01(0x563)+_0x395a01(0xabe)))),_0x45302f===_0x395a01(0x350)?_0x3ce70f[0x0]:_0x3ce70f[_0x3ce70f[_0x395a01(0x230)]-0x1];}case _0x395a01(0xb0f):{const _0x531d7b=[..._0x3ce70f]['sort']((_0x5aebc2,_0x5434ed)=>_0x5aebc2-_0x5434ed),_0x442c4d=Math['floor'](_0x531d7b[_0x395a01(0x230)]/0x2);return _0x531d7b['length']%0x2?_0x531d7b[_0x442c4d]:(_0x531d7b[_0x442c4d-0x1]+_0x531d7b[_0x442c4d])/0x2;}case _0x395a01(0x34c):{let _0x396cc7=_0x3ce70f[0x0],_0x32f884=_0x3ce70f[0x0];for(let _0x31307f=0x1;_0x31307f<_0x3ce70f['length'];_0x31307f++){if(_0x3ce70f[_0x31307f]<_0x396cc7)_0x396cc7=_0x3ce70f[_0x31307f];if(_0x3ce70f[_0x31307f]>_0x32f884)_0x32f884=_0x3ce70f[_0x31307f];}return _0x32f884-_0x396cc7;}case _0x395a01(0x6dc):{if(_0x3ce70f[_0x395a01(0x230)]<0x2)return null;return _0x3ce70f[_0x3ce70f['length']-0x1]-_0x3ce70f[0x0];}case _0x395a01(0x68e):{if(_0x3ce70f[_0x395a01(0x230)]<0x2)return null;let _0x1cbe76=0x0;for(let _0xca2df0=0x1;_0xca2df0<_0x3ce70f[_0x395a01(0x230)];_0xca2df0++){const _0x3786f6=_0x3ce70f[_0xca2df0]-_0x3ce70f[_0xca2df0-0x1];if(_0x3786f6>=0x0)_0x1cbe76+=_0x3786f6;}return _0x1cbe76;}case _0x395a01(0x7f0):case'mean':default:return _0x3ce70f['reduce']((_0xc52843,_0x316277)=>_0xc52843+_0x316277,0x0)/_0x3ce70f[_0x395a01(0x230)];}}static[_0x45b7b8(0x67a)](_0x26dfc9){const _0x21931e=_0x45b7b8;let _0x3676d1=null,_0x3d5747=null,_0x27eb4d=null,_0x2b38aa=null;for(const _0x2f7bb4 of _0x26dfc9){if(_0x2f7bb4===null||_0x2f7bb4===undefined||Number[_0x21931e(0x613)](_0x2f7bb4))continue;if(_0x3676d1===null)_0x3676d1=_0x2f7bb4,_0x3d5747=_0x2f7bb4,_0x27eb4d=_0x2f7bb4;else{if(_0x2f7bb4>_0x3d5747)_0x3d5747=_0x2f7bb4;if(_0x2f7bb4<_0x27eb4d)_0x27eb4d=_0x2f7bb4;}_0x2b38aa=_0x2f7bb4;}return _0x3676d1===null?null:{'o':_0x3676d1,'h':_0x3d5747,'l':_0x27eb4d,'c':_0x2b38aa};}static[_0x45b7b8(0x5b8)](_0x40ab43,_0x215231){const _0x586e42=_0x45b7b8;if(!Array[_0x586e42(0x1d7)](_0x40ab43)||!_0x40ab43[_0x586e42(0x230)]||typeof _0x215231!==_0x586e42(0x57f))return _0x40ab43;const _0x23563f=new Array(_0x40ab43['length']);for(let _0x56d500=0x0;_0x56d500<_0x40ab43[_0x586e42(0x230)];_0x56d500++){const _0x2824b8=_0x40ab43[_0x56d500];if(!_0x2824b8||!isNum(_0x2824b8['v'])){_0x23563f[_0x56d500]=_0x2824b8;continue;}const _0x2b54f7=_0x215231(_0x2824b8['t']);if(!isNum(_0x2b54f7)){_0x23563f[_0x56d500]=_0x2824b8;continue;}const _0x42e677={..._0x2824b8,'v':_0x2824b8['v']*_0x2b54f7};if(isNum(_0x2824b8['bMin']))_0x42e677['bMin']=_0x2824b8[_0x586e42(0x11f)]*_0x2b54f7;if(isNum(_0x2824b8[_0x586e42(0xc97)]))_0x42e677[_0x586e42(0xc97)]=_0x2824b8[_0x586e42(0xc97)]*_0x2b54f7;if(isNum(_0x2824b8[_0x586e42(0x8b8)]))_0x42e677[_0x586e42(0x8b8)]=_0x2824b8['sMean']*_0x2b54f7;if(isNum(_0x2824b8[_0x586e42(0x631)]))_0x42e677[_0x586e42(0x631)]=_0x2824b8[_0x586e42(0x631)]*_0x2b54f7;if(_0x2b54f7<0x0&&isNum(_0x42e677[_0x586e42(0x11f)])&&isNum(_0x42e677[_0x586e42(0xc97)])&&_0x42e677['bMin']>_0x42e677[_0x586e42(0xc97)]){const _0x2661cd=_0x42e677[_0x586e42(0x11f)];_0x42e677[_0x586e42(0x11f)]=_0x42e677[_0x586e42(0xc97)],_0x42e677[_0x586e42(0xc97)]=_0x2661cd;}_0x23563f[_0x56d500]=_0x42e677;}return _0x23563f;}static[_0x45b7b8(0x9d4)](_0x28a771,_0x470142,_0x2bc7af){const _0x12dfb0=_0x45b7b8;if(!Array[_0x12dfb0(0x1d7)](_0x28a771)||!_0x28a771[_0x12dfb0(0x230)]||typeof _0x470142!==_0x12dfb0(0x57f))return _0x28a771;const _0x422d47=normalizeRefOp(_0x2bc7af),_0x5e4da7=_0x18d0b3=>({..._0x18d0b3,'v':null,'bMin':null,'bMax':null,'sMean':null,'sMin':null}),_0x49e3dc=new Array(_0x28a771['length']);for(let _0x3078f0=0x0;_0x3078f0<_0x28a771[_0x12dfb0(0x230)];_0x3078f0++){const _0x27264f=_0x28a771[_0x3078f0];if(!_0x27264f||!isNum(_0x27264f['v'])){_0x49e3dc[_0x3078f0]=_0x27264f;continue;}const _0x3d0cd1=_0x470142(_0x27264f['t']);if(!isNum(_0x3d0cd1)){_0x49e3dc[_0x3078f0]=_0x5e4da7(_0x27264f);continue;}let _0x434cee;switch(_0x422d47){case'add':_0x434cee=_0x1cd9cd=>_0x1cd9cd+_0x3d0cd1;break;case _0x12dfb0(0x434):_0x434cee=_0x3c1573=>_0x3c1573*_0x3d0cd1;break;case _0x12dfb0(0x285):_0x434cee=_0x2ed198=>_0x3d0cd1===0x0?null:_0x2ed198/_0x3d0cd1;break;case _0x12dfb0(0xccb):_0x434cee=_0x330ec5=>_0x3d0cd1-_0x330ec5;break;case _0x12dfb0(0x6b2):_0x434cee=_0x2e25a9=>_0x2e25a9===0x0?null:_0x3d0cd1/_0x2e25a9;break;default:_0x434cee=_0x138a3f=>_0x138a3f-_0x3d0cd1;}const _0x13d01d=_0x434cee(_0x27264f['v']);if(!isNum(_0x13d01d)){_0x49e3dc[_0x3078f0]=_0x5e4da7(_0x27264f);continue;}const _0x4fb43f={..._0x27264f,'v':_0x13d01d};for(const _0x56f194 of[_0x12dfb0(0x11f),'bMax',_0x12dfb0(0x8b8),_0x12dfb0(0x631)]){if(isNum(_0x27264f[_0x56f194])){const _0xcc8061=_0x434cee(_0x27264f[_0x56f194]);_0x4fb43f[_0x56f194]=isNum(_0xcc8061)?_0xcc8061:null;}}if(isNum(_0x4fb43f['bMin'])&&isNum(_0x4fb43f[_0x12dfb0(0xc97)])&&_0x4fb43f[_0x12dfb0(0x11f)]>_0x4fb43f[_0x12dfb0(0xc97)]){const _0x3767de=_0x4fb43f[_0x12dfb0(0x11f)];_0x4fb43f[_0x12dfb0(0x11f)]=_0x4fb43f[_0x12dfb0(0xc97)],_0x4fb43f[_0x12dfb0(0xc97)]=_0x3767de;}_0x49e3dc[_0x3078f0]=_0x4fb43f;}return _0x49e3dc;}static['applyBandDelta'](_0x16e4da,_0x82ed23){const _0x2fbcbf=_0x45b7b8;if(!Array['isArray'](_0x16e4da))return _0x16e4da;for(const _0x21aaa1 of _0x16e4da){if(!_0x21aaa1)continue;if(isNum(_0x21aaa1[_0x2fbcbf(0x11f)])&&isNum(_0x21aaa1[_0x2fbcbf(0xc97)])){if(_0x21aaa1['v']!==null&&_0x21aaa1['v']!==undefined)_0x21aaa1['v']=_0x21aaa1[_0x2fbcbf(0xc97)]-_0x21aaa1[_0x2fbcbf(0x11f)];!_0x82ed23&&(delete _0x21aaa1[_0x2fbcbf(0x11f)],delete _0x21aaa1[_0x2fbcbf(0xc97)]);}else{if(!_0x82ed23){if(_0x2fbcbf(0x11f)in _0x21aaa1)delete _0x21aaa1[_0x2fbcbf(0x11f)];if(_0x2fbcbf(0xc97)in _0x21aaa1)delete _0x21aaa1[_0x2fbcbf(0xc97)];}}}return _0x16e4da;}static[_0x45b7b8(0x71e)](_0x9388c9,_0x5793e3){const _0x36323e=_0x45b7b8,_0x10dbb2=Array['isArray'](_0x5793e3?.[_0x36323e(0x392)])?_0x5793e3[_0x36323e(0x392)]:null;if(!_0x10dbb2||!_0x10dbb2[_0x36323e(0x230)]||!Array[_0x36323e(0x1d7)](_0x9388c9)||!_0x9388c9[_0x36323e(0x230)])return null;const _0x2dd76e=(_0x5793e3[_0x36323e(0xb02)]||_0x5793e3[_0x36323e(0x33b)])===_0x36323e(0xb67),_0xab6464=_0x353277=>{if(!_0x353277)return null;const _0x4aeec1=_0x2dd76e?isNum(_0x353277['c'])?_0x353277['c']:_0x353277['v']:_0x353277['v'];return isNum(_0x4aeec1)?_0x4aeec1:null;},_0x37c134=_0x9388c9[_0x36323e(0x963)](_0xab6464),_0x37b4db=_0x9388c9['length'],_0x516e52=[];for(const _0x1ccf7a of _0x10dbb2){const _0x132025=Math[_0x36323e(0xd3f)](toNum(_0x1ccf7a?.[_0x36323e(0x81d)])||0x0);if(!(_0x132025>=0x1))continue;const _0x4d3595=new Array(_0x37b4db);let _0x15f53f=0x0,_0x3046fa=-0x1;for(let _0x3322e7=0x0;_0x3322e7<_0x37b4db;_0x3322e7++){const _0x38055d=_0x37c134[_0x3322e7];_0x38055d===null?_0x3046fa=_0x3322e7:_0x15f53f+=_0x38055d;if(_0x3322e7>=_0x132025){const _0x1ed74e=_0x37c134[_0x3322e7-_0x132025];if(_0x1ed74e!==null)_0x15f53f-=_0x1ed74e;}const _0x5dda72=_0x3322e7>=_0x132025-0x1&&_0x3046fa<=_0x3322e7-_0x132025;_0x4d3595[_0x3322e7]={'t':_0x9388c9[_0x3322e7]['t'],'v':_0x5dda72?_0x15f53f/_0x132025:null};}_0x516e52['push']({'period':_0x132025,'color':_0x1ccf7a['color']||null,'width':_0x1ccf7a[_0x36323e(0xaf)]!=null&&_0x1ccf7a[_0x36323e(0xaf)]!==''&&isNum(toNum(_0x1ccf7a['width']))?toNum(_0x1ccf7a[_0x36323e(0xaf)]):null,'show_label':!!_0x1ccf7a[_0x36323e(0x2eb)],'points':_0x4d3595});}return _0x516e52[_0x36323e(0x230)]?_0x516e52:null;}static['computeMovingAveragesExt'](_0x9fd23b,_0x308d6b,_0x4ed37f){const _0x4982f1=_0x45b7b8,_0x5dab22=Array['isArray'](_0x308d6b?.[_0x4982f1(0x392)])?_0x308d6b['moving_averages'][_0x4982f1(0xbb6)](_0x48ef3d=>_0x48ef3d&&Math[_0x4982f1(0xd3f)](toNum(_0x48ef3d[_0x4982f1(0x81d)])||0x0)>=0x1):null;if(!_0x5dab22||!_0x5dab22[_0x4982f1(0x230)]||!Array[_0x4982f1(0x1d7)](_0x9fd23b)||!_0x9fd23b[_0x4982f1(0x230)])return null;const {startMs:_0x36cbae,endMs:_0x6bd3c3,bucketMs:_0x19e2ae,groupBy:_0x4efdc1,aggFunc:_0x154d73,alignToClock:_0x2710d7,anchorStart:_0x28ae02,tz:_0xb976e6,deltaAgg:_0x3ed1fa,carryPastNow:_0xfdc2c0,damp:_0x52cd0b,isCounter:_0x51b570}=_0x4ed37f||{};let _0x40f4fc=0x0;for(const _0x1cfbbf of _0x5dab22){const _0x1ab161=Math[_0x4982f1(0xd3f)](toNum(_0x1cfbbf[_0x4982f1(0x81d)])||0x0);if(_0x1ab161>_0x40f4fc)_0x40f4fc=_0x1ab161;}if(!(_0x40f4fc>=0x1))return null;const _0x4ca52e=(_0x308d6b[_0x4982f1(0xb02)]||_0x308d6b[_0x4982f1(0x33b)])===_0x4982f1(0xb67),_0x59d595=[_0x4982f1(0xd59),_0x4982f1(0xa52),_0x4982f1(0xb89),_0x4982f1(0x6e0),_0x4982f1(0x74c)];let _0x442c91;if(_0x59d595[_0x4982f1(0x615)](_0x4efdc1)){const _0x4bf315=_0x52cd0b?DataProcessor[_0x4982f1(0xd01)](_0x9fd23b,_0x4efdc1,_0x154d73,_0xb976e6,!!_0x51b570):_0x9fd23b;_0x442c91=DataProcessor[_0x4982f1(0xa3d)](_0x4bf315,_0x4efdc1,_0x154d73,_0x6bd3c3,_0xb976e6,_0x4ca52e,_0x4ed37f?.[_0x4982f1(0x6dd)]??0x1);if(!_0x308d6b[_0x4982f1(0x240)]){const _0x2c35ef=_0x9fd23b[_0x4982f1(0x230)]?_0x9fd23b[_0x9fd23b[_0x4982f1(0x230)]-0x1]['t']:null;_0x442c91=DataProcessor[_0x4982f1(0xa45)](_0x442c91,_0x4efdc1,_0x154d73,{'endMs':_0x6bd3c3,'lastRawT':_0x2c35ef,'tz':_0xb976e6});}else _0x442c91=DataProcessor[_0x4982f1(0xced)](_0x442c91,_0x4efdc1,{'tz':_0xb976e6});}else{if(isNum(_0x19e2ae)&&_0x19e2ae>0x0){const _0x1748b1=(_0x40f4fc-0x1)*_0x19e2ae;_0x442c91=DataProcessor[_0x4982f1(0x9c3)](_0x9fd23b,_0x19e2ae,isNum(_0x36cbae)?_0x36cbae-_0x1748b1:_0x36cbae,_0x6bd3c3,_0x154d73,![],{'breakOnNull':!!_0x308d6b[_0x4982f1(0x240)],'carryForwardMs':_0x308d6b[_0x4982f1(0x1c2)],'alignToClock':_0x2710d7,'anchorStart':_0x28ae02,'ohlc':_0x4ca52e,'deltaAgg':!!_0x3ed1fa,'carryPastNow':!!_0xfdc2c0,'noLeadFill':!!_0x308d6b[_0x4982f1(0x408)]});}else _0x442c91=_0x9fd23b;}const _0x48c1db=DataProcessor[_0x4982f1(0x831)](_0x442c91,_0x308d6b,![]),_0x874b41=DataProcessor[_0x4982f1(0x71e)](_0x48c1db,_0x308d6b);if(!_0x874b41)return null;if(isNum(_0x36cbae)){for(const _0x3f30e9 of _0x874b41)_0x3f30e9['points']=_0x3f30e9['points'][_0x4982f1(0xbb6)](_0x396c6f=>_0x396c6f['t']>=_0x36cbae);}return _0x874b41[_0x4982f1(0x230)]?_0x874b41:null;}static[_0x45b7b8(0xd01)](_0xd5d3e9,_0x4cef75,_0x1b3890,_0x100a1e,_0x5e38b3){const _0x4795c2=_0x45b7b8;if(_0x1b3890!==_0x4795c2(0xc78)||_0x4cef75!==_0x4795c2(0xa52))return _0xd5d3e9;if(!Array[_0x4795c2(0x1d7)](_0xd5d3e9)||_0xd5d3e9[_0x4795c2(0x230)]<0x2)return _0xd5d3e9;const _0x19c4c8=_0x243cd7=>{const _0x7c5c7d=tzParts(_0x243cd7,_0x100a1e);return _0x7c5c7d['y']+'-'+_0x7c5c7d['mo']+'-'+_0x7c5c7d['d'];},_0x1dc154=_0x37a845=>tzStartOfDayMs(_0x37a845,_0x100a1e),_0x2c97cd=new Map();for(const _0x1b80b6 of _0xd5d3e9){if(!isNum(_0x1b80b6['v']))continue;const _0x2cae3b=_0x19c4c8(_0x1b80b6['t']);let _0x478a62=_0x2c97cd[_0x4795c2(0x809)](_0x2cae3b);!_0x478a62&&(_0x478a62={'count':0x0,'first':null,'list':[]},_0x2c97cd['set'](_0x2cae3b,_0x478a62));_0x478a62[_0x4795c2(0x509)]++,_0x478a62[_0x4795c2(0xb88)]['push'](_0x1b80b6);if(!_0x478a62[_0x4795c2(0x350)]||_0x1b80b6['t']<_0x478a62[_0x4795c2(0x350)]['t'])_0x478a62['first']=_0x1b80b6;}const _0x402057=new Map();for(const _0x1870af of _0x2c97cd[_0x4795c2(0x5e7)]()){const _0x24e855=_0x1870af[_0x4795c2(0x350)];_0x1870af['count']>=0x2&&_0x24e855&&_0x24e855['t']===_0x1dc154(_0x24e855['t'])&&isNum(_0x24e855['v'])&&_0x24e855['v']>0x0&&isNum(_0x24e855[_0x4795c2(0x8b8)])&&isNum(_0x24e855[_0x4795c2(0x631)])&&_0x24e855[_0x4795c2(0x8b8)]<_0x24e855['v']*0.3&&_0x24e855[_0x4795c2(0x631)]<_0x24e855['v']*0.5&&_0x402057[_0x4795c2(0x4f1)](_0x24e855,_0x24e855[_0x4795c2(0x631)]);if(_0x1870af['list'][_0x4795c2(0x230)]>=0x2){const _0x59f2f6=_0x1870af[_0x4795c2(0xb88)]['slice']()[_0x4795c2(0xa8e)]((_0x5bf24b,_0x5083b0)=>_0x5bf24b['t']-_0x5083b0['t']),_0x793d08=_0x59f2f6[0x0]['v'];let _0x5e6a5d=0x0,_0x3d38fe=_0x59f2f6[0x0]['v'],_0x22629d=_0x59f2f6[0x0]['v'];for(let _0x29b8db=0x1;_0x29b8db<_0x59f2f6['length'];_0x29b8db++){if(!isNum(_0x59f2f6[_0x29b8db]['v']))continue;_0x59f2f6[_0x29b8db]['v']<_0x3d38fe&&(_0x3d38fe=_0x59f2f6[_0x29b8db]['v'],_0x5e6a5d=_0x29b8db);if(_0x59f2f6[_0x29b8db]['v']>_0x22629d)_0x22629d=_0x59f2f6[_0x29b8db]['v'];}let _0x41292f=![];for(let _0x4e19d9=_0x5e6a5d+0x1;_0x4e19d9<_0x59f2f6[_0x4795c2(0x230)];_0x4e19d9++){if(isNum(_0x59f2f6[_0x4e19d9]['v'])&&_0x59f2f6[_0x4e19d9]['v']>_0x3d38fe*1.5+1e-9){_0x41292f=!![];break;}}const _0x548fd0=isNum(_0x793d08)&&_0x793d08>0x0&&_0x3d38fe<_0x793d08*0.5,_0x27baf5=!!_0x5e38b3||_0x3d38fe<=_0x22629d*0.2;if(_0x5e6a5d>0x0&&_0x548fd0&&_0x27baf5&&_0x41292f)for(let _0x2703d1=0x0;_0x2703d1<_0x5e6a5d;_0x2703d1++){if(isNum(_0x59f2f6[_0x2703d1]['v'])&&_0x59f2f6[_0x2703d1]['v']>_0x3d38fe){const _0x1bb714=_0x402057[_0x4795c2(0xd4f)](_0x59f2f6[_0x2703d1])?_0x402057[_0x4795c2(0x809)](_0x59f2f6[_0x2703d1]):_0x59f2f6[_0x2703d1]['v'];_0x402057[_0x4795c2(0x4f1)](_0x59f2f6[_0x2703d1],Math[_0x4795c2(0xd2f)](_0x1bb714,_0x3d38fe));}}}}if(!_0x402057[_0x4795c2(0x948)])return _0xd5d3e9;return _0xd5d3e9[_0x4795c2(0x963)](_0x1c7a14=>_0x402057[_0x4795c2(0xd4f)](_0x1c7a14)?{..._0x1c7a14,'v':_0x402057['get'](_0x1c7a14)}:_0x1c7a14);}static[_0x45b7b8(0xa3d)](_0x2281b0,_0x1523ed,_0x263869,_0x583b79,_0x424d9e,_0x2a4e9c,_0x5d5d72=0x1){const _0xec94ef=_0x45b7b8;if(!_0x2281b0||!_0x2281b0[_0xec94ef(0x230)])return[];const _0x44c361={},_0x52d378=typeof _0x583b79===_0xec94ef(0xc7)&&Number[_0xec94ef(0x798)](_0x583b79);for(const _0x24372a of _0x2281b0){if(_0x24372a['v']===null||_0x24372a['v']===undefined)continue;if(_0x52d378&&_0x24372a['t']>=_0x583b79)continue;const _0xfed11f=tzParts(_0x24372a['t'],_0x424d9e);let _0x334337,_0x34c1f0;switch(_0x1523ed){case _0xec94ef(0xd59):_0x334337=_0xfed11f['y']+'-'+_0xfed11f['mo']+'-'+_0xfed11f['d']+'-'+_0xfed11f['h'],_0x34c1f0=zonedWallToMs(_0xfed11f['y'],_0xfed11f['mo'],_0xfed11f['d'],_0xfed11f['h'],0x0,0x0,_0x424d9e);break;case'date':_0x334337=_0xfed11f['y']+'-'+_0xfed11f['mo']+'-'+_0xfed11f['d'],_0x34c1f0=zonedWallToMs(_0xfed11f['y'],_0xfed11f['mo'],_0xfed11f['d'],0x0,0x0,0x0,_0x424d9e);break;case _0xec94ef(0xb89):{const _0x101375=zonedWallToMs(_0xfed11f['y'],_0xfed11f['mo'],_0xfed11f['d']-weekStartOffsetDays(_0xfed11f['wd'],_0x5d5d72),0x0,0x0,0x0,_0x424d9e),_0x5d41e8=tzParts(_0x101375,_0x424d9e);_0x334337=_0x5d41e8['y']+'-'+_0x5d41e8['mo']+'-'+_0x5d41e8['d'],_0x34c1f0=_0x101375;break;}case _0xec94ef(0x6e0):_0x334337=_0xfed11f['y']+'-'+_0xfed11f['mo'],_0x34c1f0=zonedWallToMs(_0xfed11f['y'],_0xfed11f['mo'],0x1,0x0,0x0,0x0,_0x424d9e);break;case _0xec94ef(0x74c):_0x334337=''+_0xfed11f['y'],_0x34c1f0=zonedWallToMs(_0xfed11f['y'],0x0,0x1,0x0,0x0,0x0,_0x424d9e);break;default:return _0x2281b0;}if(!_0x44c361[_0x334337])_0x44c361[_0x334337]={'vals':[],'t':_0x34c1f0,'min':Infinity,'max':-Infinity};_0x44c361[_0x334337][_0xec94ef(0xa01)]['push'](_0x24372a['v']);const _0x5d27f4=_0x24372a[_0xec94ef(0x11f)]!==undefined&&_0x24372a[_0xec94ef(0x11f)]!==null?_0x24372a[_0xec94ef(0x11f)]:_0x24372a['v'],_0x4f2316=_0x24372a[_0xec94ef(0xc97)]!==undefined&&_0x24372a[_0xec94ef(0xc97)]!==null?_0x24372a[_0xec94ef(0xc97)]:_0x24372a['v'];if(_0x5d27f4<_0x44c361[_0x334337][_0xec94ef(0xd2f)])_0x44c361[_0x334337][_0xec94ef(0xd2f)]=_0x5d27f4;if(_0x4f2316>_0x44c361[_0x334337][_0xec94ef(0xc78)])_0x44c361[_0x334337][_0xec94ef(0xc78)]=_0x4f2316;_0x44c361[_0x334337][_0xec94ef(0x599)]=_0x24372a['v'],_0x44c361[_0x334337][_0xec94ef(0x853)]=_0x5d27f4,_0x44c361[_0x334337][_0xec94ef(0x361)]=_0x4f2316;}return Object['values'](_0x44c361)[_0xec94ef(0x963)](_0x347359=>{const _0x355f8f=_0xec94ef,_0x46c53e={'t':_0x347359['t'],'v':DataProcessor[_0x355f8f(0x680)](_0x347359['vals'],_0x263869)};_0x347359[_0x355f8f(0x599)]!==undefined&&(_0x46c53e[_0x355f8f(0x987)]=_0x347359[_0x355f8f(0x599)],_0x46c53e[_0x355f8f(0x1a3)]=_0x347359[_0x355f8f(0x853)],_0x46c53e[_0x355f8f(0xe1)]=_0x347359[_0x355f8f(0x361)]);isFinite(_0x347359[_0x355f8f(0xd2f)])&&(_0x46c53e['bMin']=_0x347359[_0x355f8f(0xd2f)],_0x46c53e['bMax']=_0x347359['max']);if(_0x2a4e9c){const _0x3b1ddf=DataProcessor[_0x355f8f(0x67a)](_0x347359[_0x355f8f(0xa01)]);_0x3b1ddf&&(_0x46c53e['o']=_0x3b1ddf['o'],_0x46c53e['c']=_0x3b1ddf['c'],_0x46c53e['h']=isFinite(_0x347359['max'])?Math[_0x355f8f(0xc78)](_0x347359[_0x355f8f(0xc78)],_0x3b1ddf['o'],_0x3b1ddf['c']):_0x3b1ddf['h'],_0x46c53e['l']=isFinite(_0x347359[_0x355f8f(0xd2f)])?Math[_0x355f8f(0xd2f)](_0x347359[_0x355f8f(0xd2f)],_0x3b1ddf['o'],_0x3b1ddf['c']):_0x3b1ddf['l']);}return _0x46c53e;})['sort']((_0x36b193,_0x25b46e)=>_0x36b193['t']-_0x25b46e['t']);}static[_0x45b7b8(0xa45)](_0x9b56a,_0xf16382,_0x595e5a,_0x3d5398={}){const _0x27e954=_0x45b7b8;if(!_0x9b56a||_0x9b56a[_0x27e954(0x230)]===0x0)return _0x9b56a||[];const _0x321e46=new Set(['change',_0x27e954(0xc7f),_0x27e954(0x6dc),_0x27e954(0x34c)]);if(_0x321e46['has'](_0x595e5a))return _0x9b56a;const _0x26fd5e=_0x3d5398['tz'],_0x580e9f=_0x45bfb3=>{const _0x135511=_0x27e954,_0x4a7e5e=tzParts(_0x45bfb3,_0x26fd5e);switch(_0xf16382){case _0x135511(0xd59):return zonedWallToMs(_0x4a7e5e['y'],_0x4a7e5e['mo'],_0x4a7e5e['d'],_0x4a7e5e['h']+0x1,0x0,0x0,_0x26fd5e);case _0x135511(0xa52):return zonedWallToMs(_0x4a7e5e['y'],_0x4a7e5e['mo'],_0x4a7e5e['d']+0x1,0x0,0x0,0x0,_0x26fd5e);case _0x135511(0xb89):return zonedWallToMs(_0x4a7e5e['y'],_0x4a7e5e['mo'],_0x4a7e5e['d']+0x7,0x0,0x0,0x0,_0x26fd5e);case _0x135511(0x6e0):return zonedWallToMs(_0x4a7e5e['y'],_0x4a7e5e['mo']+0x1,0x1,0x0,0x0,0x0,_0x26fd5e);case _0x135511(0x74c):return zonedWallToMs(_0x4a7e5e['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x26fd5e);default:return null;}},_0x469a94=Date[_0x27e954(0xcca)](),_0x2f1033=[_0x469a94];if(typeof _0x3d5398[_0x27e954(0x2a6)]==='number'&&Number[_0x27e954(0x798)](_0x3d5398['endMs']))_0x2f1033[_0x27e954(0x9f2)](_0x3d5398['endMs']);typeof _0x3d5398[_0x27e954(0x473)]===_0x27e954(0xc7)&&Number[_0x27e954(0x798)](_0x3d5398[_0x27e954(0x473)])&&_0x2f1033[_0x27e954(0x9f2)](_0x3d5398['lastRawT']+(_0x3d5398['carrySlackMs']||0x0));const _0x4b5d3c=Math[_0x27e954(0xd2f)](..._0x2f1033),_0x3b78dc=_0x9b56a[_0x27e954(0x376)]()[_0x27e954(0xa8e)]((_0x34440f,_0x4f54e1)=>_0x34440f['t']-_0x4f54e1['t']),_0x386b87=[];let _0x31eaec=null,_0x5f0cb2=null,_0x174284=null,_0x2b4534=_0x3b78dc[0x0]['t'],_0x4c85af=0x0,_0x5b027b=_0x3b78dc[_0x27e954(0x230)]*0xa+0x3e8;while(_0x2b4534<_0x4b5d3c&&_0x5b027b-->0x0){const _0x1e7bfa=_0x2b4534;let _0xa72d96=null;while(_0x4c85af<_0x3b78dc['length']&&_0x3b78dc[_0x4c85af]['t']<=_0x1e7bfa){if(_0x3b78dc[_0x4c85af]['t']===_0x1e7bfa)_0xa72d96=_0x3b78dc[_0x4c85af];_0x4c85af++;}if(_0xa72d96){_0x386b87[_0x27e954(0x9f2)](_0xa72d96),_0x31eaec=_0xa72d96['v']===null?null:_0xa72d96['_lastRaw']!==undefined?_0xa72d96[_0x27e954(0x987)]:_0xa72d96['v'];if(_0xa72d96[_0x27e954(0x1a3)]!==undefined)_0x5f0cb2=_0xa72d96[_0x27e954(0x1a3)];else{if(_0xa72d96[_0x27e954(0x11f)]!==undefined)_0x5f0cb2=_0xa72d96['bMin'];}if(_0xa72d96[_0x27e954(0xe1)]!==undefined)_0x174284=_0xa72d96[_0x27e954(0xe1)];else{if(_0xa72d96[_0x27e954(0xc97)]!==undefined)_0x174284=_0xa72d96[_0x27e954(0xc97)];}}else{if(_0x31eaec!==null){const _0x400ed5={'t':_0x1e7bfa,'v':_0x31eaec};if(_0x5f0cb2!==null)_0x400ed5[_0x27e954(0x11f)]=_0x5f0cb2;if(_0x174284!==null)_0x400ed5[_0x27e954(0xc97)]=_0x174284;_0x386b87[_0x27e954(0x9f2)](_0x400ed5);}}const _0x505542=_0x580e9f(_0x2b4534);if(_0x505542===null||_0x505542<=_0x1e7bfa)break;_0x2b4534=_0x505542;}const _0x38e959=typeof _0x3d5398[_0x27e954(0x2a6)]===_0x27e954(0xc7)&&Number['isFinite'](_0x3d5398[_0x27e954(0x2a6)])?_0x3d5398[_0x27e954(0x2a6)]:Infinity;while(_0x4c85af<_0x3b78dc[_0x27e954(0x230)]){if(_0x3b78dc[_0x4c85af]['t']<_0x38e959)_0x386b87[_0x27e954(0x9f2)](_0x3b78dc[_0x4c85af]);_0x4c85af++;}return _0x386b87;}static[_0x45b7b8(0xced)](_0xaa8082,_0x2e9903,_0x240703={}){const _0x4c4ec8=_0x45b7b8;if(!_0xaa8082||_0xaa8082[_0x4c4ec8(0x230)]<0x2)return _0xaa8082||[];const _0x5016aa=_0x240703['tz'],_0x5d8aeb=_0x1dd218=>{const _0xbf6771=_0x4c4ec8,_0x241931=tzParts(_0x1dd218,_0x5016aa);switch(_0x2e9903){case _0xbf6771(0xd59):return zonedWallToMs(_0x241931['y'],_0x241931['mo'],_0x241931['d'],_0x241931['h']+0x1,0x0,0x0,_0x5016aa);case _0xbf6771(0xa52):return zonedWallToMs(_0x241931['y'],_0x241931['mo'],_0x241931['d']+0x1,0x0,0x0,0x0,_0x5016aa);case _0xbf6771(0xb89):return zonedWallToMs(_0x241931['y'],_0x241931['mo'],_0x241931['d']+0x7,0x0,0x0,0x0,_0x5016aa);case _0xbf6771(0x6e0):return zonedWallToMs(_0x241931['y'],_0x241931['mo']+0x1,0x1,0x0,0x0,0x0,_0x5016aa);case _0xbf6771(0x74c):return zonedWallToMs(_0x241931['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x5016aa);default:return null;}},_0x5e64b8=_0xaa8082[_0x4c4ec8(0x376)]()['sort']((_0xd3409b,_0xcb627e)=>_0xd3409b['t']-_0xcb627e['t']),_0x2048e0=_0x5e64b8[_0x5e64b8[_0x4c4ec8(0x230)]-0x1]['t'],_0x2de837=[];let _0x11be17=_0x5e64b8[0x0]['t'],_0x418a5c=0x0,_0xe07968=_0x5e64b8[_0x4c4ec8(0x230)]*0x4+0x7d0;while(_0x11be17<=_0x2048e0&&_0xe07968-->0x0){const _0xe7f497=_0x11be17;let _0x592642=null;while(_0x418a5c<_0x5e64b8['length']&&_0x5e64b8[_0x418a5c]['t']<=_0xe7f497){if(_0x5e64b8[_0x418a5c]['t']===_0xe7f497)_0x592642=_0x5e64b8[_0x418a5c];_0x418a5c++;}_0x2de837[_0x4c4ec8(0x9f2)](_0x592642||{'t':_0xe7f497,'v':null});const _0x289233=_0x5d8aeb(_0x11be17);if(_0x289233===null||_0x289233<=_0xe7f497)break;_0x11be17=_0x289233;}return _0x2de837;}static[_0x45b7b8(0x766)](_0x320414){const _0x26b0e5=_0x45b7b8;switch(_0x320414){case _0x26b0e5(0x503):case _0x26b0e5(0x350):return[_0x26b0e5(0x992),_0x26b0e5(0x68e),_0x26b0e5(0x10b)];case'change':return[_0x26b0e5(0x68e),_0x26b0e5(0xc7f),_0x26b0e5(0x10b),_0x26b0e5(0x992)];case _0x26b0e5(0x6dc):return[_0x26b0e5(0x992),'mean'];case _0x26b0e5(0xc7f):return[_0x26b0e5(0x68e),'sum'];case _0x26b0e5(0x34c):return[_0x26b0e5(0x10b),_0x26b0e5(0x992)];case _0x26b0e5(0xd2f):return['min',_0x26b0e5(0x992),_0x26b0e5(0x10b)];case _0x26b0e5(0xc78):return['max',_0x26b0e5(0x992),_0x26b0e5(0x10b)];case _0x26b0e5(0x7f0):case _0x26b0e5(0x10b):default:return[_0x26b0e5(0x10b),_0x26b0e5(0x992)];}}static[_0x45b7b8(0xbc0)](_0xe3b671,_0x20b508){const _0x4b29c1=_0x45b7b8;if(!_0xe3b671)return null;const _0x41226b=DataProcessor[_0x4b29c1(0x766)](_0x20b508);for(const _0x3df18a of _0x41226b){const _0x34b383=_0xe3b671[_0x3df18a];if(_0x34b383!==null&&_0x34b383!==undefined&&!Number[_0x4b29c1(0x613)](_0x34b383))return _0x34b383;}return null;}static[_0x45b7b8(0x75a)](_0x55fe7b){const _0x5c23a3=_0x45b7b8;if(!Array[_0x5c23a3(0x1d7)](_0x55fe7b)||!_0x55fe7b[_0x5c23a3(0x230)])return _0x55fe7b||[];if(_0x55fe7b[_0x5c23a3(0x230)]<0x2)return[{..._0x55fe7b[0x0],'v':0x0}];const _0xc3e506=_0x55fe7b[_0x5c23a3(0x963)](_0x1703bb=>_0x1703bb['v']),_0x4fa5ea=new Array(_0x55fe7b[_0x5c23a3(0x230)]);_0x4fa5ea[0x0]={..._0x55fe7b[0x0],'v':0x0};for(let _0x3c2f6f=0x1;_0x3c2f6f<_0x55fe7b[_0x5c23a3(0x230)];_0x3c2f6f++){_0x4fa5ea[_0x3c2f6f]={..._0x55fe7b[_0x3c2f6f],'v':_0xc3e506[_0x3c2f6f]-_0xc3e506[_0x3c2f6f-0x1]};}return _0x4fa5ea;}static['changeDiffSeries'](_0x3b83d5,_0x439808){const _0x540db4=_0x45b7b8;if(_0x439808&&Array[_0x540db4(0x1d7)](_0x3b83d5))_0x3b83d5=_0x3b83d5[_0x540db4(0xbb6)](_0x185519=>_0x185519['v']!==0x0);if(!Array['isArray'](_0x3b83d5)||!_0x3b83d5['length'])return _0x3b83d5||[];if(_0x3b83d5['length']<0x2)return[{..._0x3b83d5[0x0],'v':0x0}];const _0x5be0df=_0x3b83d5[_0x540db4(0x963)](_0x5152ba=>_0x5152ba['v']),_0x3ece43=new Array(_0x3b83d5[_0x540db4(0x230)]);_0x3ece43[0x0]={..._0x3b83d5[0x0],'v':0x0};for(let _0x129dba=0x1;_0x129dba<_0x3b83d5[_0x540db4(0x230)];_0x129dba++){const _0x44519e=_0x5be0df[_0x129dba-0x1],_0x3e78b1=_0x5be0df[_0x129dba];_0x3ece43[_0x129dba]={..._0x3b83d5[_0x129dba],'v':isNum(_0x44519e)&&isNum(_0x3e78b1)?Math['max'](0x0,_0x3e78b1-_0x44519e):null};}return _0x3ece43;}static[_0x45b7b8(0xbde)](_0x5e6e6e,_0x457164){const _0x4bac68=_0x45b7b8;if(!_0x5e6e6e?.[_0x4bac68(0x230)])return[];const _0x217331=toNum(_0x457164[_0x4bac68(0x6c7)]),_0x58a173=isNum(_0x217331)&&_0x217331!==0x0?Math['pow'](0xa,_0x217331):0x1,_0x57004e=!!_0x457164[_0x4bac68(0x52a)];if(_0x58a173===0x1&&!_0x57004e)return _0x5e6e6e;const _0x577145=_0x32704b=>{let _0x31d5c4=_0x32704b*_0x58a173;if(_0x57004e)_0x31d5c4=-_0x31d5c4;return _0x31d5c4;},_0x43b17d=new Array(_0x5e6e6e['length']);for(let _0x5cf7bc=0x0;_0x5cf7bc<_0x5e6e6e[_0x4bac68(0x230)];_0x5cf7bc++){const _0x5ef32d=_0x5e6e6e[_0x5cf7bc];if(!isNum(_0x5ef32d['v'])){_0x43b17d[_0x5cf7bc]=_0x5ef32d;continue;}const _0x4f0a8a={'t':_0x5ef32d['t'],'v':_0x577145(_0x5ef32d['v'])};if(isNum(_0x5ef32d[_0x4bac68(0x11f)])&&isNum(_0x5ef32d[_0x4bac68(0xc97)])){const _0x16f8a9=_0x577145(_0x5ef32d[_0x4bac68(0x11f)]),_0x1eacb0=_0x577145(_0x5ef32d[_0x4bac68(0xc97)]);_0x4f0a8a[_0x4bac68(0x11f)]=Math['min'](_0x16f8a9,_0x1eacb0),_0x4f0a8a[_0x4bac68(0xc97)]=Math[_0x4bac68(0xc78)](_0x16f8a9,_0x1eacb0);}if(isNum(_0x5ef32d['sMean']))_0x4f0a8a[_0x4bac68(0x8b8)]=_0x577145(_0x5ef32d[_0x4bac68(0x8b8)]);if(isNum(_0x5ef32d['sMin']))_0x4f0a8a[_0x4bac68(0x631)]=_0x577145(_0x5ef32d[_0x4bac68(0x631)]);_0x43b17d[_0x5cf7bc]=_0x4f0a8a;}return _0x43b17d;}static[_0x45b7b8(0x831)](_0xf96a1,_0x5d6aa7,_0x49635e){const _0x824646=_0x45b7b8;if(!_0xf96a1?.['length'])return _0xf96a1||[];const _0x93234d=_0x5d6aa7[COMPILED_TRANSFORM];if(!_0x93234d)return _0xf96a1;let _0x10ff24=Infinity,_0x2ca785=-Infinity,_0x17acca=0x0,_0x54ee0b=0x0,_0xa2d780=null,_0x327675=null;for(const _0x2c648e of _0xf96a1){if(!isNum(_0x2c648e['v']))continue;if(_0xa2d780===null)_0xa2d780=_0x2c648e['v'];_0x327675=_0x2c648e['v'];if(_0x2c648e['v']<_0x10ff24)_0x10ff24=_0x2c648e['v'];if(_0x2c648e['v']>_0x2ca785)_0x2ca785=_0x2c648e['v'];_0x17acca+=_0x2c648e['v'],_0x54ee0b++;}const _0x1eea89=_0x54ee0b>0x0?{'first':_0xa2d780,'last':_0x327675,'min':_0x10ff24,'max':_0x2ca785,'avg':_0x17acca/_0x54ee0b}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0},_0x406cce=[];for(let _0x539c75=0x0;_0x539c75<_0xf96a1[_0x824646(0x230)];_0x539c75++){const _0x51fbb3=_0xf96a1[_0x539c75];if(!isNum(_0x51fbb3['v'])){_0x406cce[_0x824646(0x9f2)](_0x51fbb3);continue;}const _0x13a593=_0x51fbb3['v'],_0x104b1d=_0x93234d(_0x51fbb3['v'],_0x539c75,_0x1eea89);if(_0x104b1d===null)continue;const _0xe9773={'t':_0x51fbb3['t'],'v':_0x104b1d};if(_0x13a593!==_0x104b1d)_0xe9773['rawV']=_0x13a593;if(_0x49635e&&_0x51fbb3['bMin']!=null&&_0x51fbb3[_0x824646(0xc97)]!=null){const _0x26f80c=_0x93234d(_0x51fbb3['bMin'],_0x539c75,_0x1eea89),_0x1c54ff=_0x93234d(_0x51fbb3[_0x824646(0xc97)],_0x539c75,_0x1eea89);_0x26f80c!==null&&_0x1c54ff!==null&&!Number['isNaN'](_0x26f80c)&&!Number[_0x824646(0x613)](_0x1c54ff)&&(_0xe9773['bMin']=Math[_0x824646(0xd2f)](_0x26f80c,_0x1c54ff),_0xe9773[_0x824646(0xc97)]=Math[_0x824646(0xc78)](_0x26f80c,_0x1c54ff));}_0x406cce['push'](_0xe9773);}return _0x406cce;}static['transformSeries'](_0x9fc6b0,_0x37ce84,_0x5bb3a3=![]){const _0x19ad7c=_0x45b7b8;if(!_0x9fc6b0?.[_0x19ad7c(0x230)])return[];const _0x2589e7=_0x5bb3a3?null:_0x37ce84[COMPILED_TRANSFORM],_0x297e81=toNum(_0x37ce84[_0x19ad7c(0x6c7)]),_0x1032a7=isNum(_0x297e81)&&_0x297e81!==0x0?Math[_0x19ad7c(0x4ee)](0xa,_0x297e81):0x1,_0x1547b4=!!_0x37ce84['invert'],_0x3a99c3=_0x2b9a81=>{if(!isNum(_0x2b9a81))return null;let _0x2346b2=_0x2b9a81;if(_0x1032a7!==0x1)_0x2346b2*=_0x1032a7;if(_0x1547b4)_0x2346b2=-_0x2346b2;return _0x2346b2;};let _0x2ceb6d=null;if(_0x2589e7){let _0x140178=Infinity,_0xa16ef3=-Infinity,_0x2ffc9e=0x0,_0x376d00=0x0,_0x3a934c=null,_0x56e270=null;for(const _0x4e2d0d of _0x9fc6b0){const _0x3eb1fe=_0x3a99c3(_0x4e2d0d['v']);if(_0x3eb1fe===null)continue;if(_0x3a934c===null)_0x3a934c=_0x3eb1fe;_0x56e270=_0x3eb1fe;if(_0x3eb1fe<_0x140178)_0x140178=_0x3eb1fe;if(_0x3eb1fe>_0xa16ef3)_0xa16ef3=_0x3eb1fe;_0x2ffc9e+=_0x3eb1fe,_0x376d00++;}_0x2ceb6d=_0x376d00>0x0?{'first':_0x3a934c,'last':_0x56e270,'min':_0x140178,'max':_0xa16ef3,'avg':_0x2ffc9e/_0x376d00}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0};}const _0x4d1777=[],_0x4b8d19=(_0x470889,_0x48e80b)=>{let _0x1dd2e2=_0x3a99c3(_0x470889);if(_0x1dd2e2===null)return null;if(_0x2589e7){_0x1dd2e2=_0x2589e7(_0x1dd2e2,_0x48e80b,_0x2ceb6d);if(_0x1dd2e2===null||Number['isNaN'](_0x1dd2e2))return null;}return _0x1dd2e2;};for(let _0xdecc96=0x0;_0xdecc96<_0x9fc6b0[_0x19ad7c(0x230)];_0xdecc96++){const _0xe0da44=_0x9fc6b0[_0xdecc96];if(!isNum(_0xe0da44['v']))continue;const _0x2830f2=_0x4b8d19(_0xe0da44['v'],_0xdecc96);if(_0x2830f2===null)continue;const _0x35659b={'t':_0xe0da44['t'],'v':_0x2830f2};if(_0xe0da44[_0x19ad7c(0x11f)]!=null&&_0xe0da44['bMax']!=null){const _0x3f1bb1=_0x4b8d19(_0xe0da44[_0x19ad7c(0x11f)],_0xdecc96),_0x511713=_0x4b8d19(_0xe0da44['bMax'],_0xdecc96);_0x3f1bb1!==null&&_0x511713!==null&&(_0x35659b[_0x19ad7c(0x11f)]=Math['min'](_0x3f1bb1,_0x511713),_0x35659b[_0x19ad7c(0xc97)]=Math[_0x19ad7c(0xc78)](_0x3f1bb1,_0x511713));}_0x4d1777[_0x19ad7c(0x9f2)](_0x35659b);}return _0x4d1777;}static[_0x45b7b8(0x764)](_0x4e6ea7,_0x1a3ecc){if(_0x4e6ea7['v']===null)return _0x4e6ea7;const _0x5aaedd=DataProcessor['transformSeries']([_0x4e6ea7],_0x1a3ecc);return _0x5aaedd[0x0]||{'t':_0x4e6ea7['t'],'v':null};}static[_0x45b7b8(0x101)](_0xa0e0a0){const _0x4371ea=_0x45b7b8;if(!_0xa0e0a0?.[_0x4371ea(0x230)])return{'min':null,'max':null,'avg':null,'sum':null,'first':null,'last':null,'minT':null,'maxT':null,'firstT':null,'lastT':null};let _0x5bd154=Infinity,_0x41a193=-Infinity,_0x15b572=0x0,_0x4ef8b8=0x0,_0x4bc889=null,_0x3006b6=null,_0x467729=null,_0x22cb38=null,_0x20078b=null,_0x4332ba=null;for(const _0x180056 of _0xa0e0a0){if(_0x180056['v']===null)continue;_0x180056['v']<_0x5bd154&&(_0x5bd154=_0x180056['v'],_0x4bc889=_0x180056['t']),_0x180056['v']>_0x41a193&&(_0x41a193=_0x180056['v'],_0x3006b6=_0x180056['t']),_0x15b572+=_0x180056['v'],_0x4ef8b8++,_0x22cb38===null&&(_0x22cb38=_0x180056['v'],_0x467729=_0x180056['t']),_0x4332ba=_0x180056['v'],_0x20078b=_0x180056['t'];}return{'min':_0x4ef8b8?_0x5bd154:null,'max':_0x4ef8b8?_0x41a193:null,'avg':_0x4ef8b8?_0x15b572/_0x4ef8b8:null,'sum':_0x4ef8b8?_0x15b572:null,'first':_0x22cb38,'last':_0x4332ba,'minT':_0x4bc889,'maxT':_0x3006b6,'firstT':_0x467729,'lastT':_0x20078b};}}function dpCenterShift(_0x22a2f9,_0x3ff812,_0x335dd9,_0x9561cc,_0x12adab){const _0x1faa83=_0x45b7b8,_0x46d901=isNum(_0x12adab)?_0x12adab:0x8,_0x4c4614=_0x335dd9===null||_0x335dd9===undefined?0x0:Math[_0x1faa83(0xc78)](0x0,_0x335dd9+_0x46d901-_0x22a2f9),_0x3d2c1b=_0x9561cc===null||_0x9561cc===undefined?0x0:Math[_0x1faa83(0xc78)](0x0,_0x3ff812+_0x46d901-_0x9561cc);if(_0x4c4614>0x0)return _0x4c4614;if(_0x3d2c1b>0x0)return-_0x3d2c1b;return 0x0;}function parseCssColorToRgb(_0x2ccad4){const _0x4223e3=_0x45b7b8;if(typeof _0x2ccad4!==_0x4223e3(0x5ea))return null;const _0x4c470e=_0x2ccad4[_0x4223e3(0x28f)]();let _0x20dd41=_0x4c470e['match'](/^#([0-9a-f]{3,4})$/i);if(_0x20dd41){const _0x126f05=_0x20dd41[0x1];return[parseInt(_0x126f05[0x0]+_0x126f05[0x0],0x10),parseInt(_0x126f05[0x1]+_0x126f05[0x1],0x10),parseInt(_0x126f05[0x2]+_0x126f05[0x2],0x10)];}_0x20dd41=_0x4c470e[_0x4223e3(0xa35)](/^#([0-9a-f]{6})([0-9a-f]{2})?$/i);if(_0x20dd41){const _0x4fc1b7=_0x20dd41[0x1];return[parseInt(_0x4fc1b7[_0x4223e3(0x376)](0x0,0x2),0x10),parseInt(_0x4fc1b7[_0x4223e3(0x376)](0x2,0x4),0x10),parseInt(_0x4fc1b7[_0x4223e3(0x376)](0x4,0x6),0x10)];}_0x20dd41=_0x4c470e['match'](/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})/i);if(_0x20dd41)return[Math[_0x4223e3(0xd2f)](0xff,+_0x20dd41[0x1]),Math[_0x4223e3(0xd2f)](0xff,+_0x20dd41[0x2]),Math[_0x4223e3(0xd2f)](0xff,+_0x20dd41[0x3])];return null;}function relLuminance(_0x6d3d13){const _0x4ba480=_0x3c66de=>{const _0x5b81c=_0x3c66de/0xff;return _0x5b81c<=0.03928?_0x5b81c/12.92:Math['pow']((_0x5b81c+0.055)/1.055,2.4);};return 0.2126*_0x4ba480(_0x6d3d13[0x0])+0.7152*_0x4ba480(_0x6d3d13[0x1])+0.0722*_0x4ba480(_0x6d3d13[0x2]);}function contrastRatio(_0x36bf6d,_0x3fc1f3){const _0x29bd49=_0x45b7b8,_0x24e313=relLuminance(_0x36bf6d),_0x517f7d=relLuminance(_0x3fc1f3),_0x3d71f2=Math[_0x29bd49(0xc78)](_0x24e313,_0x517f7d),_0x1afaa9=Math[_0x29bd49(0xd2f)](_0x24e313,_0x517f7d);return(_0x3d71f2+0.05)/(_0x1afaa9+0.05);}function mixRgb(_0x2c7654,_0x57b7e4,_0xe65b55){const _0x27efc3=_0x45b7b8;return[0x0,0x1,0x2]['map'](_0xd09ead=>Math[_0x27efc3(0xd3f)](_0x2c7654[_0xd09ead]+(_0x57b7e4[_0xd09ead]-_0x2c7654[_0xd09ead])*_0xe65b55));}function rgbToCss(_0x1f6bc1){const _0x1a8d88=_0x45b7b8;return _0x1a8d88(0x930)+_0x1f6bc1[0x0]+',\x20'+_0x1f6bc1[0x1]+',\x20'+_0x1f6bc1[0x2]+')';}function buildLinearPath(_0x2de452,_0xf89068,_0xf62277){const _0x4574c9=_0x45b7b8;if(!_0x2de452[_0x4574c9(0x230)])return'';let _0xa4d188='M\x20'+_0xf89068(_0x2de452[0x0]['t'])+'\x20'+_0xf62277(_0x2de452[0x0]);for(let _0x182449=0x1;_0x182449<_0x2de452[_0x4574c9(0x230)];_0x182449++)_0xa4d188+=_0x4574c9(0x25e)+_0xf89068(_0x2de452[_0x182449]['t'])+'\x20'+_0xf62277(_0x2de452[_0x182449]);return _0xa4d188;}function buildStepPath(_0x1655f4,_0x508e01,_0x542ae9){const _0x51f672=_0x45b7b8;if(!_0x1655f4[_0x51f672(0x230)])return'';let _0x31a849='M\x20'+_0x508e01(_0x1655f4[0x0]['t'])+'\x20'+_0x542ae9(_0x1655f4[0x0]);for(let _0x25e6e2=0x1;_0x25e6e2<_0x1655f4[_0x51f672(0x230)];_0x25e6e2++){const _0x5091fb=_0x508e01(_0x1655f4[_0x25e6e2]['t']),_0x7dbd3=_0x542ae9(_0x1655f4[_0x25e6e2-0x1]),_0x34d0c8=_0x542ae9(_0x1655f4[_0x25e6e2]);_0x31a849+='\x20L\x20'+_0x5091fb+'\x20'+_0x7dbd3;if(_0x34d0c8!==_0x7dbd3)_0x31a849+=_0x51f672(0x25e)+_0x5091fb+'\x20'+_0x34d0c8;}return _0x31a849;}function buildStepSegments(_0x102cd7,_0x1db090,_0x513b14){const _0x51965d=_0x45b7b8,_0xcedd4d=[];for(let _0x43b9de=0x0;_0x43b9de<_0x102cd7[_0x51965d(0x230)]-0x1;_0x43b9de++){const _0x5677cc=_0x102cd7[_0x43b9de],_0x573f94=_0x102cd7[_0x43b9de+0x1],_0x3b360d=_0x1db090(_0x5677cc['t']),_0x249af3=_0x1db090(_0x573f94['t']),_0x416827=_0x513b14(_0x5677cc),_0x3403ad=_0x513b14(_0x573f94);_0xcedd4d[_0x51965d(0x9f2)]({'d':'M\x20'+_0x3b360d+'\x20'+_0x416827+_0x51965d(0x25e)+_0x249af3+'\x20'+_0x416827+_0x51965d(0x25e)+_0x249af3+'\x20'+_0x3403ad,'from':_0x5677cc,'to':_0x573f94});}return _0xcedd4d;}function buildSmoothPath(_0x422855,_0x1ed201,_0xde4b32){const _0x423cb2=_0x45b7b8;if(_0x422855[_0x423cb2(0x230)]<0x2)return buildLinearPath(_0x422855,_0x1ed201,_0xde4b32);const _0x3c4bdd=_0x422855[_0x423cb2(0x230)],_0x397e3d=new Array(_0x3c4bdd);for(let _0x4a8adc=0x0;_0x4a8adc<_0x3c4bdd;_0x4a8adc++)_0x397e3d[_0x4a8adc]={'x':_0x1ed201(_0x422855[_0x4a8adc]['t']),'y':_0xde4b32(_0x422855[_0x4a8adc])};if(_0x3c4bdd===0x2)return'M\x20'+_0x397e3d[0x0]['x']+'\x20'+_0x397e3d[0x0]['y']+_0x423cb2(0x25e)+_0x397e3d[0x1]['x']+'\x20'+_0x397e3d[0x1]['y'];let _0x1a1756='M\x20'+_0x397e3d[0x0]['x']+'\x20'+_0x397e3d[0x0]['y'];for(let _0x39f453=0x0;_0x39f453<_0x3c4bdd-0x1;_0x39f453++){const _0x459d31=_0x397e3d[_0x39f453-0x1]||_0x397e3d[_0x39f453],_0xe363a8=_0x397e3d[_0x39f453],_0x1410bc=_0x397e3d[_0x39f453+0x1],_0x3dd504=_0x397e3d[_0x39f453+0x2]||_0x1410bc,_0x7e3ab8=_0xe363a8['x']<_0x1410bc['x']?_0xe363a8['x']:_0x1410bc['x'],_0x113f9a=_0xe363a8['x']<_0x1410bc['x']?_0x1410bc['x']:_0xe363a8['x'],_0x5cf01b=_0xe363a8['y']<_0x1410bc['y']?_0xe363a8['y']:_0x1410bc['y'],_0x2e0f5d=_0xe363a8['y']<_0x1410bc['y']?_0x1410bc['y']:_0xe363a8['y'],_0x4d5fa9=Math[_0x423cb2(0xc78)](_0x7e3ab8,Math[_0x423cb2(0xd2f)](_0x113f9a,_0xe363a8['x']+(_0x1410bc['x']-_0x459d31['x'])/0x6)),_0x4e4cdf=Math[_0x423cb2(0xc78)](_0x5cf01b,Math[_0x423cb2(0xd2f)](_0x2e0f5d,_0xe363a8['y']+(_0x1410bc['y']-_0x459d31['y'])/0x6)),_0x447b97=Math[_0x423cb2(0xc78)](_0x7e3ab8,Math[_0x423cb2(0xd2f)](_0x113f9a,_0x1410bc['x']-(_0x3dd504['x']-_0xe363a8['x'])/0x6)),_0x1bc3b9=Math[_0x423cb2(0xc78)](_0x5cf01b,Math[_0x423cb2(0xd2f)](_0x2e0f5d,_0x1410bc['y']-(_0x3dd504['y']-_0xe363a8['y'])/0x6));_0x1a1756+=_0x423cb2(0x19c)+_0x4d5fa9+'\x20'+_0x4e4cdf+'\x20'+_0x447b97+'\x20'+_0x1bc3b9+'\x20'+_0x1410bc['x']+'\x20'+_0x1410bc['y'];}return _0x1a1756;}function findClosestPoint(_0x153cec,_0xf98a74){const _0x279055=_0x45b7b8;if(!_0x153cec[_0x279055(0x230)])return null;let _0x198581=0x0,_0x392735=_0x153cec[_0x279055(0x230)]-0x1;while(_0x198581<_0x392735){const _0xa16984=_0x198581+_0x392735>>0x1;if(_0x153cec[_0xa16984]['t']<_0xf98a74)_0x198581=_0xa16984+0x1;else _0x392735=_0xa16984;}const _0x14e191=_0x153cec[_0x198581],_0x1d5944=_0x153cec[_0x198581-0x1];if(!_0x1d5944)return _0x14e191;return Math[_0x279055(0x533)](_0x14e191['t']-_0xf98a74)isNum(toNum(_0x38486[_0x3d6239(0xba7)]))&&_0x38486['color'])[_0x3d6239(0xa8e)]((_0x25f284,_0x34a968)=>toNum(_0x25f284['value'])-toNum(_0x34a968[_0x3d6239(0xba7)]));if(!_0x17fdaa[_0x3d6239(0x230)])return _0x1d0576;if(_0x5c9da3){if(_0x78ae05<=toNum(_0x17fdaa[0x0][_0x3d6239(0xba7)]))return _0x17fdaa[0x0][_0x3d6239(0xacd)];if(_0x78ae05>toNum(_0x17fdaa[_0x17fdaa[_0x3d6239(0x230)]-0x1][_0x3d6239(0xba7)]))return _0x17fdaa[_0x17fdaa['length']-0x1][_0x3d6239(0xacd)];for(let _0x4b73cc=0x0;_0x4b73cc<_0x17fdaa['length']-0x1;_0x4b73cc++){const _0x1ad411=toNum(_0x17fdaa[_0x4b73cc][_0x3d6239(0xba7)]),_0x25ea80=toNum(_0x17fdaa[_0x4b73cc+0x1][_0x3d6239(0xba7)]);if(_0x78ae05>_0x1ad411&&_0x78ae05<=_0x25ea80){const _0x336414=(_0x78ae05-_0x1ad411)/(_0x25ea80-_0x1ad411||0x1);return _lerpColor(_0x17fdaa[_0x4b73cc][_0x3d6239(0xacd)],_0x17fdaa[_0x4b73cc+0x1][_0x3d6239(0xacd)],_0x336414);}}return _0x17fdaa[_0x17fdaa['length']-0x1][_0x3d6239(0xacd)];}let _0x51af5c=_0x17fdaa[0x0]['color']||_0x1d0576;for(const _0x17b641 of _0x17fdaa){if(_0x78ae05>toNum(_0x17b641[_0x3d6239(0xba7)]))_0x51af5c=_0x17b641[_0x3d6239(0xacd)]||_0x51af5c;}return _0x51af5c;}function _lerpColor(_0x6f7af1,_0x3ae11d,_0x78fc3e){const _0x45cd2d=_0x45b7b8,_0x5896e9=_parseColor(_0x6f7af1),_0x285529=_parseColor(_0x3ae11d);if(!_0x5896e9||!_0x285529)return _0x78fc3e<0.5?_0x6f7af1:_0x3ae11d;const _0x2d15ce=Math['round'](_0x5896e9[0x0]+(_0x285529[0x0]-_0x5896e9[0x0])*_0x78fc3e),_0x3c7d4c=Math['round'](_0x5896e9[0x1]+(_0x285529[0x1]-_0x5896e9[0x1])*_0x78fc3e),_0x30d91f=Math[_0x45cd2d(0xd3f)](_0x5896e9[0x2]+(_0x285529[0x2]-_0x5896e9[0x2])*_0x78fc3e);return _0x45cd2d(0x930)+_0x2d15ce+','+_0x3c7d4c+','+_0x30d91f+')';}function _parseColor(_0x2dd1bd,_0x26c522){const _0x1ac9cf=_0x45b7b8;if(!_0x2dd1bd||typeof _0x2dd1bd!==_0x1ac9cf(0x5ea))return null;let _0x1c5ecd=_0x2dd1bd[_0x1ac9cf(0xa35)](/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i);if(_0x1c5ecd)return[parseInt(_0x1c5ecd[0x1],0x10),parseInt(_0x1c5ecd[0x2],0x10),parseInt(_0x1c5ecd[0x3],0x10)];_0x1c5ecd=_0x2dd1bd['match'](/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i);if(_0x1c5ecd)return[parseInt(_0x1c5ecd[0x1]+_0x1c5ecd[0x1],0x10),parseInt(_0x1c5ecd[0x2]+_0x1c5ecd[0x2],0x10),parseInt(_0x1c5ecd[0x3]+_0x1c5ecd[0x3],0x10)];_0x1c5ecd=_0x2dd1bd['match'](/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(_0x1c5ecd)return[Math['round'](+_0x1c5ecd[0x1]),Math[_0x1ac9cf(0xd3f)](+_0x1c5ecd[0x2]),Math['round'](+_0x1c5ecd[0x3])];if(_0x26c522)return null;try{const _0x24b5ee=document[_0x1ac9cf(0xc3b)](_0x1ac9cf(0x852))['getContext']('2d');return _0x24b5ee[_0x1ac9cf(0x136)]=_0x2dd1bd,_parseColor(_0x24b5ee[_0x1ac9cf(0x136)],!![]);}catch(_0x148ab9){}return null;}function thresholdCrossings(_0x29f940,_0x251f0a,_0x454457){const _0x35669e=_0x45b7b8;if(!isNum(_0x29f940)||!isNum(_0x251f0a)||!_0x454457?.[_0x35669e(0x230)]||_0x29f940===_0x251f0a)return[];const _0x18974f=_0x454457[_0x35669e(0x963)](_0x4299e2=>toNum(_0x4299e2[_0x35669e(0xba7)]))['filter'](_0x38bc77=>isNum(_0x38bc77))[_0x35669e(0xa8e)]((_0x3e8d74,_0x351761)=>_0x3e8d74-_0x351761),_0x10dc5c=_0x251f0a>_0x29f940,_0x3e680a=Math['min'](_0x29f940,_0x251f0a),_0x73fb27=Math[_0x35669e(0xc78)](_0x29f940,_0x251f0a),_0x50e4b1=[];for(const _0x28ad05 of _0x18974f){if(_0x28ad05>_0x3e680a&&_0x28ad05<_0x73fb27){_0x50e4b1['push'](_0x28ad05);continue;}if(_0x10dc5c&&_0x28ad05===_0x29f940&&_0x251f0a>_0x28ad05)_0x50e4b1[_0x35669e(0x9f2)](_0x28ad05);else{if(!_0x10dc5c&&_0x28ad05===_0x251f0a&&_0x29f940>_0x28ad05)_0x50e4b1['push'](_0x28ad05);}}return _0x10dc5c?_0x50e4b1:_0x50e4b1[_0x35669e(0x35b)]();}function segmentRiseFallColor(_0x5021c4,_0x3314ac,_0x990c78,_0x3e9725){const _0x55442d=_0x45b7b8;if(!_0x5021c4||!_0x3314ac||!isNum(_0x5021c4['v'])||!isNum(_0x3314ac['v']))return _0x3e9725;if(!_0x990c78)return _0x3e9725;const _0x576892=_0x990c78['increase']||_0x990c78[_0x55442d(0x121)]||_0x3e9725,_0x438ee2=_0x990c78[_0x55442d(0x8ed)]||_0x990c78[_0x55442d(0x110)]||_0x3e9725,_0x250a40=_0x990c78[_0x55442d(0x335)]||_0x990c78['equal_color']||_0x576892||_0x3e9725;if(_0x3314ac['v']>_0x5021c4['v'])return _0x576892;if(_0x3314ac['v']<_0x5021c4['v'])return _0x438ee2;return _0x250a40;}function buildLinearSegments(_0x3d6d46,_0x1c7e96,_0x51e74f){const _0x418ad6=_0x45b7b8,_0x28f1f1=[];for(let _0x4f89af=0x0;_0x4f89af<_0x3d6d46[_0x418ad6(0x230)]-0x1;_0x4f89af++){const _0x21eb3c=_0x3d6d46[_0x4f89af],_0x90b49a=_0x3d6d46[_0x4f89af+0x1];_0x28f1f1[_0x418ad6(0x9f2)]({'d':'M\x20'+_0x1c7e96(_0x21eb3c['t'])+'\x20'+_0x51e74f(_0x21eb3c)+_0x418ad6(0x25e)+_0x1c7e96(_0x90b49a['t'])+'\x20'+_0x51e74f(_0x90b49a),'from':_0x21eb3c,'to':_0x90b49a});}return _0x28f1f1;}function buildSmoothSegments(_0x39534c,_0x2ac04f,_0x357b2b){const _0x5a98ff=_0x45b7b8;if(_0x39534c[_0x5a98ff(0x230)]<0x2)return[];const _0x9d6134=_0x39534c['map'](_0x1d288d=>({'x':_0x2ac04f(_0x1d288d['t']),'y':_0x357b2b(_0x1d288d),'raw':_0x1d288d})),_0x171250=[];for(let _0x3427a1=0x0;_0x3427a1<_0x9d6134[_0x5a98ff(0x230)]-0x1;_0x3427a1++){const _0x505be8=_0x9d6134[_0x3427a1-0x1]||_0x9d6134[_0x3427a1],_0xd7b037=_0x9d6134[_0x3427a1],_0x15e5ef=_0x9d6134[_0x3427a1+0x1],_0x11e08d=_0x9d6134[_0x3427a1+0x2]||_0x15e5ef,_0x3b595b=_0xd7b037['x']<_0x15e5ef['x']?_0xd7b037['x']:_0x15e5ef['x'],_0x3a2ff9=_0xd7b037['x']<_0x15e5ef['x']?_0x15e5ef['x']:_0xd7b037['x'],_0x2be645=_0xd7b037['y']<_0x15e5ef['y']?_0xd7b037['y']:_0x15e5ef['y'],_0x54a9c3=_0xd7b037['y']<_0x15e5ef['y']?_0x15e5ef['y']:_0xd7b037['y'],_0x544984=Math['max'](_0x3b595b,Math[_0x5a98ff(0xd2f)](_0x3a2ff9,_0xd7b037['x']+(_0x15e5ef['x']-_0x505be8['x'])/0x6)),_0x456f62=Math[_0x5a98ff(0xc78)](_0x2be645,Math['min'](_0x54a9c3,_0xd7b037['y']+(_0x15e5ef['y']-_0x505be8['y'])/0x6)),_0x20832c=Math[_0x5a98ff(0xc78)](_0x3b595b,Math[_0x5a98ff(0xd2f)](_0x3a2ff9,_0x15e5ef['x']-(_0x11e08d['x']-_0xd7b037['x'])/0x6)),_0x2c923a=Math[_0x5a98ff(0xc78)](_0x2be645,Math['min'](_0x54a9c3,_0x15e5ef['y']-(_0x11e08d['y']-_0xd7b037['y'])/0x6));_0x171250[_0x5a98ff(0x9f2)]({'d':'M\x20'+_0xd7b037['x']+'\x20'+_0xd7b037['y']+'\x20C\x20'+_0x544984+'\x20'+_0x456f62+',\x20'+_0x20832c+'\x20'+_0x2c923a+',\x20'+_0x15e5ef['x']+'\x20'+_0x15e5ef['y'],'from':_0xd7b037[_0x5a98ff(0x301)],'to':_0x15e5ef[_0x5a98ff(0x301)]});}return _0x171250;}function resolveDynamicValue(_0x3174e6,_0x17d36c){const _0x19d002=_0x45b7b8;if(_0x3174e6===null||_0x3174e6===undefined||_0x3174e6==='')return null;if(typeof _0x3174e6==='number')return Number[_0x19d002(0x798)](_0x3174e6)?_0x3174e6:null;const _0x2b6a4b=String(_0x3174e6)[_0x19d002(0x28f)]();if(/^-?\d+(\.\d+)?$/[_0x19d002(0x7af)](_0x2b6a4b)){const _0x24b3af=Number(_0x2b6a4b);return Number[_0x19d002(0x798)](_0x24b3af)?_0x24b3af:null;}const _0x992408=_0x2b6a4b[_0x19d002(0xa35)](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0x992408)return null;const _0x1e3de6=_0x992408[0x1],_0x343041=_0x992408[0x2],_0x1253f0=_0x17d36c?.[_0x19d002(0x81a)]?.[_0x1e3de6];if(!_0x1253f0)return null;if(!_0x343041)return toNum(_0x1253f0[_0x19d002(0x992)]);const _0x3eb471=_0x343041[_0x19d002(0x102)]('.');if(_0x3eb471[0x0]!==_0x19d002(0x1e0)&&_0x3eb471[0x0]!==_0x19d002(0x74e)){let _0x1019ae=_0x1253f0[_0x19d002(0x74e)];for(const _0x2245ce of _0x3eb471){if(_0x1019ae===null||_0x1019ae===undefined)return null;_0x1019ae=_0x1019ae[_0x2245ce];}return toNum(_0x1019ae);}let _0x42a709=_0x1253f0[_0x19d002(0x74e)];for(let _0x1cd64c=0x1;_0x1cd64c<_0x3eb471[_0x19d002(0x230)];_0x1cd64c++){if(_0x42a709===null||_0x42a709===undefined)return null;_0x42a709=_0x42a709[_0x3eb471[_0x1cd64c]];}return toNum(_0x42a709);}function resolveBoundSpec(_0x5aabe9,_0x4f935e){const _0xd8b683=_0x45b7b8;if(_0x5aabe9===null||_0x5aabe9===undefined||_0x5aabe9==='')return null;if(typeof _0x5aabe9===_0xd8b683(0xc7))return Number['isFinite'](_0x5aabe9)?{'value':_0x5aabe9,'soft':![]}:null;const _0x3f7f07=String(_0x5aabe9)[_0xd8b683(0x28f)]();if(_0x3f7f07==='')return null;const _0x4ce793=_0x3f7f07['startsWith']('~'),_0x1a91ce=_0x4ce793?_0x3f7f07['slice'](0x1)[_0xd8b683(0x28f)]():_0x3f7f07,_0x3c2507=resolveDynamicValue(_0x1a91ce,_0x4f935e);if(_0x3c2507===null)return null;return{'value':_0x3c2507,'soft':_0x4ce793};}function extractAnnotationRefEntityId(_0x2bb18e){const _0x39b8f2=_0x45b7b8;if(_0x2bb18e===null||_0x2bb18e===undefined||_0x2bb18e==='')return null;if(typeof _0x2bb18e==='number')return null;const _0x43992e=String(_0x2bb18e)['trim']();if(/^-?\d+(\.\d+)?$/[_0x39b8f2(0x7af)](_0x43992e))return null;const _0x3f4b5d=_0x43992e[_0x39b8f2(0xa35)](/^([a-z_]+\.[a-z0-9_]+)/i);return _0x3f4b5d?_0x3f4b5d[0x1]:null;}function parseAnnotationTime(_0x8ced3a){const _0x4d7d91=_0x45b7b8;if(_0x8ced3a===null||_0x8ced3a===undefined||_0x8ced3a==='')return null;if(_0x8ced3a instanceof Date)return _0x8ced3a[_0x4d7d91(0x9e0)]();if(typeof _0x8ced3a==='number')return Number[_0x4d7d91(0x798)](_0x8ced3a)?_0x8ced3a:null;const _0x10eae7=String(_0x8ced3a)[_0x4d7d91(0x28f)]();if(_0x10eae7==='now')return Date[_0x4d7d91(0xcca)]();const _0x39a05a=new Date(_0x10eae7);return isNaN(_0x39a05a)?null:_0x39a05a[_0x4d7d91(0x9e0)]();}function getAttributePath(_0x7a4652,_0x2308a9){if(!_0x7a4652||!_0x2308a9)return undefined;const _0x581ad5=String(_0x2308a9)['split']('.');let _0x5e5682=_0x7a4652;for(const _0x2f6761 of _0x581ad5){if(_0x5e5682===null||_0x5e5682===undefined)return undefined;_0x5e5682=_0x5e5682[_0x2f6761];}return _0x5e5682;}const COMPILED_TRANSFORM=Symbol(_0x45b7b8(0xa4d));function _0x559e(){const _0x1a8a5e=['4\x204','graph_end_hour','deep-orange','.sgc-zoom-brush-label-left','timestamp','display:flex;align-items:center;gap:8px;width:100%;height:32px;box-sizing:border-box;padding:0\x2010px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13px;font-family:inherit;cursor:pointer;outline:none','getFullYear','.e-extrema_bg_color','Total','unknown\x20identifier\x20','font-size:','/local/','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.e-name','\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','Entity\x20#','Price\x20Entity','\x22>h','none','°\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Bottom\x20Right','\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','','line_width','Add\x20Annotation','defineProperty','()+-*/%,','primary_state_as','data_time_unit','#2ecc71','_renderDatePicker','_liveEnabled','dark-grey','.e-color-picker','firstDay','','extended_window_multiplier','Top\x20Left','input[type=\x22color\x22]','length','#ff4757','','touchend','aggregate_func','#1abc9c','Header\x20&\x20Battery','LANG_NAMES','radar','_overrideGroupBy','\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','range','','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','x_grid_style','assign','getEntityStubConfig','Heatmap','_scheduleUpdate','overlay','add','.e-state_color-picker','%\x22>\x0a\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','','width:100%;padding:9px\x2011px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13.5px;outline:none','_yMeta','\x20L\x20','_attachZoomHandlers','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}','\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\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','External\x20statistic\x20—\x20only\x20published\x20to\x20the\x20statistics\x20database.','Color\x20for\x20the\x20X-axis\x20labels\x20when\x20the\x20visible\x20range\x20spans\x20more\x20than\x20a\x20day\x20and\x20the\x20labels\x20switch\x20to\x20dates.\x20Leave\x20empty\x20to\x20match\x20the\x20X\x20Label\x20Color.','_drawXAxis','color:','custom','5minute','Adds\x20depth\x20to\x20the\x20pie\x20by\x20squashing\x20it\x20vertically\x20and\x20rendering\x20side\x20walls\x20below.\x20Works\x20with\x20any\x20style\x20preset.','font','divide','Now\x20Line','_energyUnsub','.cmp-col-pick','first_weekday','\x20sgc-stacked','purple','padL','stroke=\x22','width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1px\x20solid\x20rgba(128,128,128,.45);','trim','asr-up','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','translate(calc(-50%\x20+\x20','drawSa','gradient','','_resolvePreciseRecordTimes','','show_graph','Header\x20Color','position:relative;flex:1.2;min-width:0','Maximum\x20for\x20the\x20Y\x20axis.\x20Prefix\x20with\x20~\x20for\x20a\x20soft\x20bound\x20(e.g.\x20~100)\x20—\x20axis\x20uses\x20this\x20when\x20data\x20stays\x20below,\x20expands\x20if\x20data\x20exceeds\x20it.\x20Hard\x20bound\x20forces\x20the\x20edge.\x20Also\x20accepts\x20an\x20entity\x20ID.','','card_icon','__sgcAxisFmt','Min/Max\x20value\x20labels\x20overlaid\x20on\x20the\x20graph.\x20Configure\x20when\x20they\x20appear,\x20which\x20extremes\x20to\x20show,\x20whether\x20timestamps\x20are\x20included,\x20and\x20full\x20styling\x20control\x20over\x20font\x20and\x20background.','maxStaleMs','pph_picker_position','.cmp-col','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Custom\x20display\x20name\x20for\x20this\x20entity.\x20Leave\x20empty\x20to\x20show\x20the\x20entity\x27s\x20Friendly\x20Name\x20in\x20the\x20state\x20row.\x20To\x20hide\x20the\x20name\x20instead,\x20use\x20the\x20State\x20Row\x20tab\x20->\x20Hide\x20Name\x20toggle.','My\x20annotation','','_autoHideApplied','show_timestamp','Bar','composedPath','_unsubscribeEvents','inv','\x22\x20data-tab=\x22data\x22>','show_export','background:transparent','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sin','trend_down_color','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','','getPropertyValue','rgba(255,255,255,0.55)','extrema_show_timestamp','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','all','','stringify','periods_back','Scroll\x20Mode','_compareOf','template','','_entity','style=\x22opacity:.35;pointer-events:none\x22','YYYY-MM-DD\x20HH:mm','\x20stroke-linejoin=\x22round\x22\x20stroke-linecap=\x22round\x22\x20vector-effect=\x22non-scaling-stroke\x22/>','raw','.e-enabled','row','Extends\x20the\x20X-axis\x20end\x20to\x20cover\x20the\x20full\x20period\x20from\x20the\x20graph\x20start,\x20even\x20when\x20\x22now\x22\x20is\x20earlier.\x20With\x20Graph\x20Start:\x20tomorrow\x20→\x20end\x20of\x20tomorrow,\x20week\x20→\x20next\x20Monday\x2000:00,\x20month\x20→\x201st\x20of\x20next\x20month,\x20year\x20→\x201\x20Jan\x20next\x20year.\x20With\x20Graph\x20Start\x20Hour\x20or\x20no\x20anchor:\x20end\x20of\x20today\x20(midnight).\x20Active\x20in\x20Date\x20Picker\x20(current\x20period\x20only)\x20and\x20Energy\x20Sync\x20as\x20well.\x20Bypassed\x20when\x20the\x20Interval\x20Picker\x20is\x20active.\x20Note:\x20graph_start=tomorrow\x20automatically\x20extends\x20the\x20window\x20without\x20this\x20flag.','statistics-graph','previous_period','epoch_seconds','Falling\x20back\x20to\x20\x22avg\x22.\x20Valid\x20values:\x20','Action\x20triggered\x20when\x20tapping\x20this\x20entity\x27s\x20state\x20row.\x20More\x20Info\x20opens\x20the\x20HA\x20entity\x20detail\x20dialog.\x20Navigate\x20goes\x20to\x20a\x20dashboard\x20path.\x20URL\x20opens\x20an\x20external\x20link.\x20Call\x20Service\x20triggers\x20an\x20HA\x20service\x20directly.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MM-YYYY','e-color','Font\x20size\x20of\x20the\x20numeric\x20value\x20in\x20the\x20state\x20row.\x20Accepts\x20CSS\x20values,\x20e.g.\x2013px.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','card_header_size','stable','\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','\x22>\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','background:','moving_averages','Auto\x20(HA\x20language)','classList','auto_hide','\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','pie_center_color','getMilliseconds','rise_fall_colors','Snap\x20Y-axis\x20tick\x20values\x20to\x20clean\x20multiples\x20of\x201,\x202,\x20or\x205\x20(×\x2010^n)\x20—\x20for\x20example\x200.1\x20/\x200.2\x20/\x200.3\x20instead\x20of\x200.11\x20/\x200.22\x20/\x200.33.\x20Stays\x20within\x20bounds,\x20does\x20not\x20change\x20the\x20plot\x20scale.\x20Disable\x20for\x20strict\x20equal-spacing.','price_entity','selector','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','matches','.ann-row','iso','_animStart','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Min','\x22>','Median','_subscribeEvents','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20style=\x22visibility:hidden\x22','Point\x20Size','','_flushLiveBuffer','primary','horizontal','smooth','','null','\x22\x20y1=\x22','.e-icon_size','timeline','[data-dp-cal]','cbrt','Day\x20of\x20year\x20(1-366)','_onDatePickerSyncEvent','Interval\x20Picker','flex-shrink:0;color:var(--ts);display:flex','Up\x20to\x20(hours)','.ha-entity-picker-wrap','Axis\x20Labels','#16a085','','upper_bound','_prep',',0)','\x22>','0.75','.e-value_transform','lower_bound_secondary','','show_extrema_max','Shows\x20time\x20labels\x20along\x20the\x20bottom\x20in\x20Timeline\x20mode,\x20or\x20value\x20labels\x20in\x20Scatter\x20mode.\x20Disable\x20to\x20gain\x20extra\x20vertical\x20space.','_cssPath','Secondary','minute','_onQuerySyncRequest','\x20style=\x22','Thickness\x20of\x20the\x20graph\x20line\x20in\x20pixels.\x202-3\x20for\x20standard,\x201\x20for\x20dense\x20multi-entity,\x204+\x20for\x20large\x20displays.','Number\x20Format','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','interval_picker_position','icon','\x20-\x20','This\x20Month','.e-icon_color-picker','1.234,56','No\x20entity\x20to\x20display.','Line\x20/\x20Fill\x20Color','\x22\x20data-mtab=\x22card_style\x22>','_pollTimer','colors','body','onerror','_slideWindow','#c0392b','\x22>','waterfall','Statistic\x20ID','indexOf','','\x22>','','cmp-period','','Gap\x20between\x20bar\x20columns\x20in\x20pixels.\x20Applies\x20only\x20to\x20bar-type\x20entities.\x20Increase\x20for\x20a\x20more\x20spaced-out\x20look,\x20decrease\x20for\x20denser\x20bars.','','','Never','T_VERSION','device_id','Y\x20Axis\x20Range','spark','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20px','findIndex','Show\x20the\x20time\x20the\x20extreme\x20value\x20was\x20recorded\x20below\x20each\x20label.\x20Disable\x20for\x20compact\x20display\x20showing\x20only\x20the\x20value.','signal','','','_overrideHoursToShow','rgba(0,0,0,0.12)','sgc-y-axis-label\x20sgc-y-axis-label-left','"','startAngle','unavailable','Previous\x20period','_autoHideForce','data_value_expression','card_header_weight','textBaseline','isConnected','Mouse\x20Wheel','.e-','.sgc-qp-select','\x22/>','Date\x20Label\x20Color','_pendingSyntheticRefresh','STYLE','[sgc]\x20data_attribute\x20\x22','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','date_picker_group','.sgc-dp-center-abs','_renderDetailLegend','battery_entity','align','Append\x20each\x20entity\x27s\x20Home\x20Assistant\x20area\x20to\x20its\x20name\x20-\x20in\x20the\x20state\x20row,\x20legend,\x20tooltips,\x20stats,\x20exports\x20and\x20this\x20list.\x20The\x20area\x20comes\x20from\x20the\x20entity\x20itself,\x20or\x20from\x20its\x20device.\x20Entities\x20you\x20gave\x20a\x20Custom\x20Name\x20keep\x20it\x20untouched,\x20and\x20a\x20name\x20that\x20already\x20contains\x20its\x20area\x20is\x20not\x20doubled.\x20Off\x20by\x20default.','\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\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','hours','shadowRoot','Aggregation','.e-extrema_font_size','Default','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','render_template','#f1c40f','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_shareScalarValue','','down','expected\x20','subscribe','\x22>','_prevStamps','fontFamily','plain','_drawYAxis','butt','getItem',')','wrap','callApi','Shows\x20a\x20vertical\x20unit\x20label\x20on\x20the\x20left\x20and/or\x20right\x20edge\x20of\x20the\x20graph.\x20Defaults\x20to\x20the\x20unit\x20of\x20measurement\x20of\x20the\x20first\x20entity\x20on\x20each\x20axis.\x20Custom\x20text\x20can\x20be\x20set\x20in\x20the\x20Labels\x20section\x20below.','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','invert','_draw','12\x20Hours','Y\x20Grid\x20Color','Download\x20CSV','Show\x20the\x20maximum\x20value\x20label.\x20Disable\x20to\x20hide\x20just\x20the\x20max.','h12','display:flex;align-items:center;gap:10px;padding:7px\x208px;border-radius:6px;cursor:pointer;font-size:13px;color:var(--tx)','_liveFlushTimer','abs','Format\x20the\x20tooltip\x20date\x20header\x20exactly\x20like\x20the\x20X-axis\x20labels.\x20Long-range\x20views\x20then\x20show\x20e.g.\x20\x27May\x2026\x27\x20instead\x20of\x20a\x20full\x20timestamp,\x20ignoring\x20the\x20Date\x20Format\x20pattern\x20just\x20as\x20the\x20axis\x20does.\x20It\x20never\x20appends\x20a\x20time\x20to\x20a\x20date:\x20Month/Year/day\x20views\x20show\x20the\x20date\x20only,\x20intraday\x20hour\x20views\x20show\x20the\x20clock\x20only.','','.e-points_per_hour','style','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','show_y2_axis','Logarithmic','sgc-y-axis-bg',');pointer-events:none;border-radius:inherit}','endAngle','sgc-export-btn','\x0a\x20\x20\x20\x20\x20\x20','so\x20per-bucket\x20bars\x20may\x20read\x200\x20or\x20look\x20wrong.\x20For\x20counters\x20use\x20\x22change\x22\x20','_lastPriceRefetchTs','Scroll\x20Sync','flatMap','_wireUp','rgba(255,255,255,0.10)','_collectAnnotationRefs','Color\x20for\x20slice\x20value\x20labels.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20name)\x20or\x20CSS\x20variable.\x20Leave\x20empty\x20for\x20white\x20(auto-contrast\x20against\x20slice\x20color).','dragstart','closePath','Hard\x20or\x20soft\x20minimum\x20for\x20the\x20secondary\x20(right)\x20Y\x20axis.','language','Histogram','.ann-add','rise_fall_colors\x20and\x20color_thresholds\x20cannot\x20both\x20be\x20enabled\x20for\x20','custom:statistics-graph-chart-card','More\x20Info','removeAttribute','thr-col-pick','.e-smooth','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sgc-hours:','fill:','\x20style=\x22opacity:.3;pointer-events:none\x22','dateObj','sgc-period-highlight','\x22\x20height=\x22','exec','function','stroke-dasharray','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20','_sgcIcon','LTS','YYYY-MM-DD','Navigate','de-DE','lastRaw','show_x_ticks','Draws\x20a\x20dashed\x20horizontal\x20line\x20at\x20this\x20ghost\x27s\x20average\x20value\x20-\x20the\x20mean\x20of\x20the\x20compared\x20period\x20-\x20in\x20the\x20ghost\x20color.\x20Handy\x20for\x20comparing\x20period\x20averages\x20at\x20a\x20glance.','>','attribute_list_position','Delete','graph_start','Running\x20total','mtc','padding:','ohlc','barH','_onAttributePick','y_axis_decimals','trend_period_hours','X\x20Axis','checked','[sgc]\x20data_value_expression\x20\x22','carryPastNow','(state_class\x20not\x20set):\x20','All\x20cards','getDate','Header','parse','date_picker_position','Y\x20Axis\x20Ticks','End\x20value','gap','','Week\x20Before','_drawGrid','applyPriceToSeries','card_icon_color','sgc-candle\x20','off','Period\x20Comparison','parentElement','peak','\x22>','setSelectionRange','End','breakOnNull','','unexpected\x20token\x20\x22','\x0a\x20\x20\x20\x20\x20\x20','dragleave','Auto\x20Scale','drawImage','ref_op','Solid','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\x20stroke-width=\x221\x22/>','Drag\x20to\x20reorder','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.','--primary-font-family','\x20sgc-fill-height','\x20legend-hidden','error','[sgc]\x20color\x20template\x20subscribe\x20failed','Hide\x20on\x20Load','\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\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','','bottom-right','scroll_sync','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.','No\x20matching\x20X/Y\x20data\x20pairs','X\x20Grid\x20Width','warn','\x20entity(s)\x20lack\x20long-term\x20statistics\x20','calendar','sgc-dp:','','dpRollingDays','opacity','.e-name_position','first\x20reading\x20can\x20be\x20a\x20pre-reset\x20tail','add-entity','','rgba(255,255,255,0.7)','Calendar\x20periods','index','teal','Color\x20of\x20horizontal\x20grid\x20lines.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','stroke:','Hour','Shows\x20total\x20value\x20in\x20the\x20center\x20of\x20the\x20chart.\x20When\x20off,\x20Pie\x20becomes\x20a\x20full\x20pie\x20instead\x20of\x20donut.','_cache','Start','Name\x20of\x20the\x20value\x20field\x20in\x20each\x20array\x20item.\x20Default:\x20price_per_kwh.','#26a69a','sgc-data-label','isNaN','\x22\x20data-label=\x22','includes','[sgc]\x20','line_style','cmp-fill','Material\x20Design\x20Icon\x20next\x20to\x20the\x20title.\x20Use\x20the\x20mdi:\x20prefix,\x20e.g.\x20mdi:chart-line.\x20Browse\x20all\x20icons\x20at\x20materialdesignicons.com.','dec:','Percentage','_yEnt','Direction','config','.panel','top','State\x20(live)','state_timeline','_refSeries','\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','local','sourceId','Data\x20Settings','sgc-grid','font-size:10px;color:var(--ts);margin:6px\x202px\x208px','_numOrNull','Level','sgc-grad-','Select\x20which\x20time\x20interval\x20buttons\x20to\x20show.\x20Leave\x20all\x20selected\x20for\x20the\x20full\x20set.\x20Deselect\x20intervals\x20to\x20keep\x20the\x20picker\x20compact\x20on\x20mobile.','show_state_last','Min\x20Y2\x20Range','line','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20px','call','reverse_divide','sgc-now-label','No\x20time\x20window.','I18N','_mainTab','Operation','','','Sync\x20with\x20HA\x20Energy\x20date\x20picker.\x20Cannot\x20be\x20used\x20with\x20Date\x20Picker.','.e-data_time_year','\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','hasOwnProperty','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Where\x20the\x20value\x20is\x20drawn\x20relative\x20to\x20the\x20gauge\x20—\x20below\x20(default)\x20or\x20above\x20the\x20dial,\x20clear\x20of\x20the\x20arc\x20and\x20needle.','Value\x20Factor','.ann-label','Oct','h2n','#378ADD','sgc-grid-line\x20sgc-x-grid-line','','.e-show_graph','diff','firstWd','_hasLTS','.sgc-detail-legend-entity','month','string\x20in\x20arithmetic','Day','\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','Colors','','svg','_broadcastDatePickerSync','show_second_state_as','hide_name','Last\x2012M','locale','pie','\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','All\x20entities\x20are\x20below\x20the\x20threshold','sgc-bar-active','_startEnergyDateSync','pointer','Scrollbar','English','⚠\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.','stack_group','.sgc-dp-toggle','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.','*{position:relative;z-index:1}','Delta','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','new_state','\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','\x20arg(s)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','nodeType','rgba(255,255,255,0.9)','_sgcCp','supported_features','find','pink','Use\x20a\x20custom\x20image\x20instead\x20of\x20an\x20MDI\x20icon.\x20Paste\x20a\x20full\x20URL\x20to\x20any\x20PNG/SVG/WebP.\x20Takes\x20priority\x20over\x20the\x20MDI\x20icon\x20field.','','_inferEnergyPeriodMode','_queryInitialSyncDone','','\x22\x20style=\x22','getOwnPropertyDescriptor','Colour\x20of\x20the\x20━\x20(stable)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20secondary\x20text\x20colour\x20(grey).','firstChild','#000000','Timeline\x20=\x20time-series\x20graph\x20(line,\x20step,\x20bar\x20per\x20entity).\x20Scatter\x20=\x20X\x20vs\x20Y\x20correlation\x20plot\x20(exactly\x202\x20entities).\x20Pie\x20=\x20donut\x20chart\x20showing\x20shares.\x20Ranking\x20=\x20horizontal\x20bars\x20sorted\x20by\x20value.\x20Heatmap\x20=\x20days\x20×\x20hours\x20grid.\x20Calendar\x20=\x20weekly\x20grid.\x20Box\x20Plot\x20=\x20min\x20/\x20quartile\x20/\x20median\x20distribution\x20per\x20time\x20bucket.\x20Waterfall\x20=\x20each\x20entity\x20as\x20a\x20+/−\x20step\x20of\x20a\x20running\x20total\x20(aggregate\x20defaults\x20to\x20Sum).\x20Histogram\x20=\x20value-frequency\x20distribution\x20over\x20the\x20visible\x20window.','>','\x22\x20selected>','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).','\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','cssText','Bottom\x20Center','[data-dp-rolling-days],[data-dp-rolling-months]','','Points/Hour\x20Picker','\x22\x20stroke-width=\x221\x22\x20rx=\x222\x22/>','_dpExpanded','mode','_expandCompareGhosts','_dpMode','_warnHourlyCap','Time\x20Zone','','legend_stats','always','zoom_sync_group','\x22\x20fill=\x22','_renderBatteryIcon','Color\x20of\x20the\x20header\x20icon.\x20Set\x20to\x20\x22threshold\x22\x20to\x20automatically\x20color\x20the\x20icon\x20based\x20on\x20the\x20first\x20entity\x20value\x20and\x20its\x20color\x20threshold\x20rules.','_cpdOpen','rgba(255,255,255,0.3)','Bar\x20Spacing','Last\x20180D','pph','Always','statistics-graph-chart-card','Shows\x20a\x20floating\x20info\x20box\x20with\x20exact\x20values\x20when\x20hovering.','[data-dp-day]','__sgcRefKey','Date','.ma-del','var(--error-color,\x20#ff4757)','\x20style=\x22opacity:','B\x20−\x20A','test','\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\x20h\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','_allRelevantEntitiesHaveLTS','below','.e-forecast_horizon','_onZoomSyncEvent','dblclick','binary_sensor','Renders\x20N\x20times\x20the\x20selected\x20period\x20and\x20opens\x20scrolled\x20to\x20the\x20newest\x20part:\x20the\x20screen\x20shows\x20exactly\x20the\x20period\x20you\x20picked\x20-\x20same\x20scale\x20and\x20buckets\x20as\x20without\x20scrolling\x20-\x20and\x20you\x20can\x20scroll\x20back\x20through\x20the\x20extra\x20history.\x20Follows\x20the\x20date\x20picker:\x20on\x20a\x20Week\x20view\x20with\x202,\x20one\x20extra\x20week\x20is\x20scrollable\x20behind\x20the\x20current\x20one.\x201\x20or\x20empty\x20=\x20off.\x20Overrides\x20Visible\x20Window\x20while\x20active.','Last\x2030D','','Background','.e-lower_bound','\x22\x20title=\x22','canvas\x20tainted','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1\x203','sgc-stl-cell','_schedulePriceRefetch','sc:','','\x22\x20stroke-width=\x221\x22\x20stroke-dasharray=\x223,3\x22\x20opacity=\x220.6\x22/>','','','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.','display','.e-ref_op','\x20/\x20','Opacity\x20of\x20the\x20extrema\x20label\x20background\x20(0\x20=\x20transparent,\x201\x20=\x20solid).\x20Use\x200\x20to\x20show\x20only\x20the\x20text\x20without\x20any\x20visible\x20box.\x20Default\x20is\x201.','sMean','','2486145HZkAiT','_cpdDocBound','_cacheSet','focus','','No\x20numeric\x20data\x20for\x20histogram.','','Month','.e-decimals','text/csv;charset=utf-8','number_format','Last\x207D','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Candlestick','resolved_name','.sgc-card','','setTime','.e-risefall_enabled','rgba(0,0,0,0.05)','rgba(255,255,255,0.45)','url(#','setItem','>','\x22>›','\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\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:calc(var(--rd)\x20-\x201px)\x20calc(var(--rd)\x20-\x201px)\x200\x200}\x0a.ec:not(.open)\x20.eh{border-radius:calc(var(--rd)\x20-\x201px)}\x0a.ec.ent-off>.eh{opacity:.45}\x0a.ec.ent-off>.eh\x20.en{text-decoration:line-through}\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)}.cmp-list{display:flex;flex-direction:column;gap:8px}.cmp-row{position:relative;padding:10px\x2040px\x2010px\x2012px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf)}.cmp-row\x20.f\x20label{font-size:10px;margin:0\x200\x205px;line-height:1.2;white-space:nowrap}.cmp-row\x20.f\x20input,.cmp-row\x20.f\x20select{padding:6px\x208px;font-size:12px;height:34px}.cmp-row\x20input[type=\x22color\x22]{padding:3px;height:34px;min-width:34px}.cmp-del{position:absolute;top:8px;right:8px;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}.cmp-del:hover{border-color:var(--dg);color:var(--dg);background:rgba(231,76,60,.06)}.cmp-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}.cmp-add:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}.cmp-dl-f\x20.ms{margin:6px\x200}.asr-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}.asr-row{display:grid;grid-template-columns:0.9fr\x201.1fr\x200.8fr\x2030px;gap:6px;align-items:end}.asr-row\x20.f\x20label{font-size:10px;margin:0\x200\x205px;line-height:1.2;white-space:nowrap}.asr-row\x20.f\x20input,.asr-row\x20.f\x20select{padding:6px\x208px;font-size:12px;height:34px}.asr-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}.asr-del:hover{border-color:var(--dg);color:var(--dg);background:rgba(231,76,60,.06)}.asr-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}.asr-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','vertical','_isZooming','alphabetic','','Type\x20an\x20icon\x20or\x20Jinja\x20template,\x20or\x20browse\x20below.','mdi:chart-line','4\x20Hours','pointerdown','last_30d','total_increasing','Gauge\x20Range','ref','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','groupExtremesByKey','Font\x20Size','selected','_computeXAxisTicks','#2c3e50','_isFieldRelevantForMode','groupPoints','_updateHistory','_pieItems','group_by_picker_position','_withAlpha','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','Color\x20used\x20when\x20the\x20value\x20is\x20increasing.','px\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cache','rgba(255,255,255,0.18)','.e-thr_direction','push','_resizeObserver','items','Show\x20Δ%\x20in\x20tooltip','samples','[sgc]\x20statistics\x20fetch\x20failed','sgc-query-sync','rawV','dotted','sgc-tooltip-sync','Month\x20of\x20year\x20(1-12)','Chart','columns','\x22>◀\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','show_pph_picker','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.','Opacity\x20of\x20horizontal\x20grid\x20lines.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.15\x20—\x20subtle,\x20just\x20enough\x20to\x20anchor\x20the\x20eye\x20without\x20competing\x20with\x20the\x20data.','and\x20may\x20show\x20period\x20means\x20instead\x20of\x20true\x20endpoints.','Tooltip\x20Date\x20=\x20Axis','data_time_field','show_grid','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','_axisDateLabel','Call\x20Service','.e-thr_last_color','_exportName','\x22>','Language','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.e-legend_max','Previous\x20month','graph_type','_openPanels','>','resolve','Card\x20Overlays','.sgc-al-wrap','','filter','No\x20numeric\x20data\x20for\x20box\x20plot.','Sparkline','Disable\x20to\x20make\x20the\x20card\x20behave\x20as\x20if\x20this\x20entity\x20was\x20never\x20configured:\x20nothing\x20is\x20fetched\x20or\x20drawn,\x20and\x20no\x20card-wide\x20logic\x20considers\x20it.\x20Handy\x20for\x20shared\x20card\x20templates\x20(e.g.\x20Streamline)\x20where\x20some\x20instances\x20lack\x20a\x20sensor.\x20The\x20row\x20stays\x20here\x20for\x20editing\x20and\x20can\x20be\x20re-enabled\x20anytime.','.e-ref_attribute','—\x20','[sgc]\x20window\x20of\x20~','_dataVarIds','state_size','recorder/statistics_during_period','pickStatField','\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','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.','segments','serializeToString','current\x20year','state_class','black','sgc-qgby:','Colorizes\x20the\x20graph\x20line\x20based\x20on\x20whether\x20each\x20segment\x20is\x20rising,\x20falling,\x20or\x20stable\x20relative\x20to\x20the\x20previous\x20point.\x20Colors\x20are\x20computed\x20using\x20the\x20Trend\x20Period\x20window.\x20If\x20the\x20data\x20source\x20is\x20sparser\x20than\x20the\x20period\x20(e.g.\x20hourly\x20long-term\x20statistics),\x20the\x20last\x204\x20samples\x20are\x20used\x20instead\x20so\x20the\x20icon\x20still\x20shows\x20a\x20direction.\x20Cannot\x20be\x20used\x20at\x20the\x20same\x20time\x20as\x20Color\x20Thresholds.','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+escapeHtml(cardT(this['card']?.['_hass'],this[_0x241577(0x627)]?.[_0x241577(0x9b6)],_0x241577(0xcfa)))+_0x241577(0x562);}}const STYLES=_0x45b7b8(0xa95);class StatisticsGraphChartCard extends HTMLElement{static get[_0x45b7b8(0xc32)](){return VERSION;}static get[_0x45b7b8(0xbfe)](){return{...CARD_DEFAULTS};}static get['PALETTE'](){return[...PALETTE];}static[_0x45b7b8(0x24a)](){return{...ENTITY_DEFAULTS};}static[_0x45b7b8(0xb43)](){const _0x570889=_0x45b7b8;return{'chart_mode':_0x570889(0x3c0),'hours_to_show':0x18,'show_legend':!![],'entities':[{'entity':_0x570889(0x319)}]};}static async['getConfigElement'](){const _0x14df61=_0x45b7b8;return document[_0x14df61(0xc3b)]('statistics-graph-chart-card-editor');}constructor(){const _0x264a39=_0x45b7b8;super(),this[_0x264a39(0xc35)]({'mode':_0x264a39(0x386)}),this[_0x264a39(0x9b6)]=null,this[_0x264a39(0xb79)]=null,this[_0x264a39(0x461)]=[],this[_0x264a39(0x772)]=new DataFetcher(),this[_0x264a39(0x550)]=null,this[_0x264a39(0x352)]=null,this[_0x264a39(0xadb)]=null,this['_zoomHistory']=[],this[_0x264a39(0x460)]=null,this[_0x264a39(0x2b4)]=![],this[_0x264a39(0xa5f)]=!![],this['_instanceId']=Math[_0x264a39(0x658)]()[_0x264a39(0x158)](0x24)['slice'](0x2,0xb),this[_0x264a39(0xd1c)]=null,this[_0x264a39(0x810)]=new Set(),this['_autoHideApplied']=null,this[_0x264a39(0x497)]=null,this[_0x264a39(0x860)]=![],this[_0x264a39(0x9f3)]=null,this[_0x264a39(0xb0)]=new Map(),this[_0x264a39(0x3ef)]=null,this[_0x264a39(0x228)]=![],this[_0x264a39(0x9b4)]=Object[_0x264a39(0x526)](null),this[_0x264a39(0x532)]=null,this[_0x264a39(0x50b)]=Object[_0x264a39(0x526)](null),this[_0x264a39(0xcb9)]=null,this[_0x264a39(0x19a)]=![],this['_resolvedTemplateColors']=new Map(),this[_0x264a39(0x4df)]=[],this['_tplBoolCard']=null,this[_0x264a39(0xce3)]=[],this[_0x264a39(0x40d)]=![],this[_0x264a39(0x442)]=new Set(),this['_dataVarIds']=new Set(),this[_0x264a39(0xa4)]=new Set(),this['_priceRefIds']=new Set(),this[_0x264a39(0x264)]=new Map(),this[_0x264a39(0x471)]=new Set(),this[_0x264a39(0x623)]=new Map(),this['_prevRefStamps']=Object[_0x264a39(0x526)](null),this[_0x264a39(0xcd3)]=new Set(),this[_0x264a39(0x415)]=Object[_0x264a39(0x526)](null),this['_overrideHoursToShow']=null,this[_0x264a39(0xb9b)]=null,this[_0x264a39(0x12d)]={},this[_0x264a39(0xc61)]=null,this[_0x264a39(0x486)]=null,this[_0x264a39(0x90f)]=null,this[_0x264a39(0x8c7)]=null,this[_0x264a39(0x8ae)]=null,this['_energyUnsub']=null,this['_energyDiscoverTimer']=null,this['_energyStart']=null,this[_0x264a39(0x81f)]=null,this['_dpSyncHandler']=null,this[_0x264a39(0x1fb)]=null,this['_intervalSyncRequestHandler']=null,this[_0x264a39(0x1cc)]=![],this[_0x264a39(0x112)]=null,this['_overrideGroupBy']=null,this[_0x264a39(0x1bb)]=null,this[_0x264a39(0x4cf)]=null,this[_0x264a39(0xa7f)]=null,this['_queryInitialSyncDone']=![],this['_dpMode']=_0x264a39(0x6e0),this[_0x264a39(0x124)]=0x0,this[_0x264a39(0x214)]=null,this['_dpCustomEnd']=null,this[_0x264a39(0x789)]=![],this['_dpCalMonth']=null,this['_dpCalYear']=null,this[_0x264a39(0x372)]=null,this[_0x264a39(0x8a3)]=![],this[_0x264a39(0x75e)]=[],this[_0x264a39(0xa89)]='',this[_0x264a39(0x860)]=![],this['_wsUnsub']=null,this[_0x264a39(0x354)]=![],this[_0x264a39(0x1e7)]=0x0,this[_0x264a39(0x1cb)]=null,this[_0x264a39(0x9d3)]=0x0,this['_statMeta']=Object[_0x264a39(0x526)](null),this[_0x264a39(0x692)]=null,this[_0x264a39(0xa9f)]='';}[_0x45b7b8(0xd64)](_0x5ec676){const _0x24e2c4=_0x45b7b8;if(!_0x5ec676)throw new Error('Invalid\x20configuration');if(!_0x5ec676[_0x24e2c4(0x82b)]||!Array['isArray'](_0x5ec676[_0x24e2c4(0x82b)]))throw new Error(_0x24e2c4(0x973));const _0x35aec3=this[_0x24e2c4(0x9b6)],_0x1d65d5={...CARD_DEFAULTS,..._0x5ec676};_0x1d65d5[_0x24e2c4(0x82b)]=_0x5ec676[_0x24e2c4(0x82b)][_0x24e2c4(0xbb6)](_0x37ae7f=>!(_0x37ae7f&&typeof _0x37ae7f===_0x24e2c4(0xa7e)&&_0x37ae7f[_0x24e2c4(0x46d)]===![]))[_0x24e2c4(0x963)]((_0x39fc14,_0x10c74d)=>{const _0x8ed978=_0x24e2c4;if(!_0x39fc14[_0x8ed978(0x9ac)]&&!_0x39fc14['statistic_id'])throw new Error(_0x8ed978(0x585)+_0x10c74d+_0x8ed978(0xaa7));if(_0x39fc14[_0x8ed978(0x3a6)]?.['enabled']&&_0x39fc14[_0x8ed978(0x9a9)]?.[_0x8ed978(0x46d)])throw new Error(_0x8ed978(0x571)+(_0x39fc14[_0x8ed978(0x9ac)]||_0x39fc14[_0x8ed978(0x527)]));const _0x156f58={...ENTITY_DEFAULTS,..._0x39fc14};if(_0x156f58[_0x8ed978(0x395)]===undefined)delete _0x156f58[_0x8ed978(0x395)];if(!_0x39fc14[_0x8ed978(0xacd)])_0x156f58[_0x8ed978(0xacd)]=PALETTE[_0x10c74d%PALETTE['length']];return _0x39fc14[_0x8ed978(0x1a6)]&&(_0x156f58[COMPILED_TRANSFORM]=compileValueTransform(_0x39fc14[_0x8ed978(0x1a6)])),_0x156f58;});_0x1d65d5[_0x24e2c4(0x802)]&&_0x1d65d5[_0x24e2c4(0xb28)]&&(_0x1d65d5[_0x24e2c4(0xb28)]=![]);{const _0x289a9e=_0x1d65d5['entities'][_0x24e2c4(0x963)](_0x334fcc=>_0x334fcc[_0x24e2c4(0x9ac)]||_0x334fcc[_0x24e2c4(0x527)]||'')[_0x24e2c4(0xcdc)]('|');this[_0x24e2c4(0xc50)]!==undefined&&this[_0x24e2c4(0xc50)]!==_0x289a9e&&this[_0x24e2c4(0x12d)]&&Object[_0x24e2c4(0xc71)](this['_overrideAttributes'])[_0x24e2c4(0x230)]&&(this['_overrideAttributes']={}),this[_0x24e2c4(0xc50)]=_0x289a9e;}{if(!(this[_0x24e2c4(0x497)]instanceof Set))this[_0x24e2c4(0x497)]=new Set();const _0x307aa8=!!_0x35aec3?.[_0x24e2c4(0x821)],_0x475c67=!!_0x1d65d5[_0x24e2c4(0x821)],_0x25cda4=_0x35aec3?.[_0x24e2c4(0x82b)]||[],_0x5e88d6=_0x307aa8!==_0x475c67;_0x1d65d5['entities'][_0x24e2c4(0x1ce)]((_0x444ff3,_0x432ab4)=>{const _0x5107dc=_0x24e2c4,_0x1a38cd=_0x25cda4[_0x432ab4]?.[_0x5107dc(0x395)];(_0x5e88d6||_0x1a38cd!==_0x444ff3['auto_hide'])&&this[_0x5107dc(0x497)][_0x5107dc(0x24e)]((_0x444ff3[_0x5107dc(0x9ac)]||_0x444ff3[_0x5107dc(0x527)])+'__'+_0x432ab4);});}{const _0x49f8d5=compileLabelFormat(_0x1d65d5[_0x24e2c4(0x345)],_0x1d65d5[_0x24e2c4(0x191)]),_0x1d0d9a=compileLabelFormat(_0x1d65d5['y2_axis_format'],_0x1d65d5['duration_unit']);if(_0x49f8d5||_0x1d0d9a)for(const _0x2a2d73 of _0x1d65d5[_0x24e2c4(0x82b)]){Object[_0x24e2c4(0x222)](_0x2a2d73,_0x24e2c4(0x2ab),{'value':_0x2a2d73[_0x24e2c4(0x2e3)]===_0x24e2c4(0x687)?_0x1d0d9a:_0x49f8d5,'enumerable':![],'writable':!![],'configurable':!![]});}}this[_0x24e2c4(0x9b0)]=null;for(const _0x3b071e of TEMPLATABLE_BOOL_CARD_KEYS){if(isTemplateString(_0x1d65d5[_0x3b071e])){if(!this['_tplBoolCard'])this[_0x24e2c4(0x9b0)]=Object[_0x24e2c4(0x526)](null);this[_0x24e2c4(0x9b0)][_0x3b071e]=_0x1d65d5[_0x3b071e],_0x1d65d5[_0x3b071e]=CARD_DEFAULTS[_0x3b071e];}}this[_0x24e2c4(0xce3)]=_0x1d65d5[_0x24e2c4(0x82b)][_0x24e2c4(0x963)](_0x377c3c=>{const _0xa84531=_0x24e2c4;let _0x41ff06=null;for(const _0xfdaad7 of TEMPLATABLE_BOOL_ENTITY_KEYS){if(isTemplateString(_0x377c3c[_0xfdaad7])){if(!_0x41ff06)_0x41ff06=Object[_0xa84531(0x526)](null);_0x41ff06[_0xfdaad7]=_0x377c3c[_0xfdaad7],_0x377c3c[_0xfdaad7]=ENTITY_DEFAULTS[_0xfdaad7];}}return _0x41ff06;}),this[_0x24e2c4(0x9b6)]=_0x1d65d5,this[_0x24e2c4(0x461)]=_0x1d65d5[_0x24e2c4(0x82b)],this[_0x24e2c4(0x982)](),this[_0x24e2c4(0xa89)]='',this[_0x24e2c4(0x692)]=null,this['_instanceKey']=this[_0x24e2c4(0xb4f)](_0x1d65d5),this['_expandCompareGhosts']();if(_0x1d65d5[_0x24e2c4(0x429)]||_0x1d65d5['interval_picker_group'])try{const _0x2dc0b2=JSON['parse'](lsGet(_0x24e2c4(0x578)+this[_0x24e2c4(0xa9f)])||_0x24e2c4(0x3bd));_0x2dc0b2&&isNum(toNum(_0x2dc0b2[_0x24e2c4(0x4ac)]))&&(this[_0x24e2c4(0x490)]=toNum(_0x2dc0b2[_0x24e2c4(0x4ac)]),this[_0x24e2c4(0xb9b)]=_0x2dc0b2[_0x24e2c4(0x72b)]||null);}catch{}else this[_0x24e2c4(0x490)]=null,this[_0x24e2c4(0xb9b)]=null,lsDel(_0x24e2c4(0x578)+this[_0x24e2c4(0xa9f)]);this['_baseQuery']={'pph':_0x1d65d5[_0x24e2c4(0x8a4)],'gby':_0x1d65d5[_0x24e2c4(0x8d9)],'autoScale':!!_0x1d65d5[_0x24e2c4(0x397)]};if(_0x1d65d5[_0x24e2c4(0xa04)]||_0x1d65d5[_0x24e2c4(0x68c)]){const _0x371b5e=toNum(lsGet(_0x24e2c4(0xaad)+this['_instanceKey']));if(isNum(_0x371b5e))this[_0x24e2c4(0x112)]=_0x371b5e;}else this[_0x24e2c4(0x112)]=null,lsDel(_0x24e2c4(0xaad)+this[_0x24e2c4(0xa9f)]);if(_0x1d65d5[_0x24e2c4(0x94a)]||_0x1d65d5[_0x24e2c4(0x92f)]){const _0x162e48=lsGet('sgc-qgby:'+this[_0x24e2c4(0xa9f)]);if(_0x162e48)this[_0x24e2c4(0x239)]=_0x162e48;}else this[_0x24e2c4(0x239)]=null,lsDel(_0x24e2c4(0xbf7)+this[_0x24e2c4(0xa9f)]);this[_0x24e2c4(0xcce)](_0x1d65d5);if(_0x1d65d5[_0x24e2c4(0x802)]||_0x1d65d5['date_picker_group']){const _0x11cc13=_0x1d65d5[_0x24e2c4(0x643)],_0x431da6=_0x11cc13&&(DATE_PICKER_VALID_MODES[_0x24e2c4(0x615)](_0x11cc13)||_0x11cc13 in DATE_PICKER_RELATIVE_MODES);let _0x41c300=![];if(_0x431da6)this[_0x24e2c4(0x78c)]=_0x11cc13,this[_0x24e2c4(0x124)]=0x0;else try{const _0x5347ad=JSON[_0x24e2c4(0x5b0)](lsGet(_0x24e2c4(0x5f6)+this[_0x24e2c4(0xa9f)])||_0x24e2c4(0x3bd));if(_0x5347ad){this['_dpMode']=_0x5347ad[_0x24e2c4(0x78a)]||_0x24e2c4(0x6e0),this[_0x24e2c4(0x124)]=_0x5347ad[_0x24e2c4(0x74a)]||0x0;if(_0x5347ad[_0x24e2c4(0x42e)])this[_0x24e2c4(0x214)]=new Date(_0x5347ad[_0x24e2c4(0x42e)]);if(_0x5347ad[_0x24e2c4(0xcd7)])this['_dpCustomEnd']=new Date(_0x5347ad[_0x24e2c4(0xcd7)]);_0x41c300=!![];}}catch{}const _0x5262a4=_0x1d65d5['date_picker_modes'];Array[_0x24e2c4(0x1d7)](_0x5262a4)&&_0x5262a4[_0x24e2c4(0x230)]&&!_0x5262a4[_0x24e2c4(0x615)](this['_dpMode'])&&this[_0x24e2c4(0x78c)]!==_0x24e2c4(0x281)&&!(this[_0x24e2c4(0x78c)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x24e2c4(0x78c)]=_0x5262a4[0x0],this[_0x24e2c4(0x124)]=0x0);if(this[_0x24e2c4(0x78c)]!==_0x24e2c4(0x281)&&(this['_dpOffset']||0x0)>0x0)this[_0x24e2c4(0x124)]=0x0;!_0x1d65d5[_0x24e2c4(0x802)]&&_0x1d65d5[_0x24e2c4(0x4a5)]&&(_0x41c300||_0x431da6)&&(this[_0x24e2c4(0x8a3)]=!![]);}else this['_dpMode']='month',this[_0x24e2c4(0x124)]=0x0,this[_0x24e2c4(0x214)]=null,this['_dpCustomEnd']=null,this[_0x24e2c4(0x8a3)]=![],lsDel(_0x24e2c4(0x5f6)+this[_0x24e2c4(0xa9f)]);this[_0x24e2c4(0x228)]=this[_0x24e2c4(0x461)]['some'](_0x3b0238=>_0x3b0238['entity']&&!_0x3b0238[_0x24e2c4(0x527)]),this[_0x24e2c4(0x442)]=this['_collectAnnotationRefs'](_0x1d65d5[_0x24e2c4(0xaef)]),this['_dataVarIds']=this[_0x24e2c4(0x143)](this[_0x24e2c4(0x461)]),this[_0x24e2c4(0xa4)]=this['_collectThrRefs'](this[_0x24e2c4(0x461)]),this['_priceRefIds']=new Set(this[_0x24e2c4(0x461)]['map'](_0xbf4fee=>_0xbf4fee?.[_0x24e2c4(0x3a8)])[_0x24e2c4(0xbb6)](Boolean)),this[_0x24e2c4(0x471)]=new Set(this['_entities']['map'](_0x3badd7=>_0x3badd7?.[_0x24e2c4(0x408)])[_0x24e2c4(0xbb6)](Boolean));if(!this[_0x24e2c4(0xd75)])for(const _0x322d18 of this['_entities']){if(_0x322d18?.[_0x24e2c4(0x498)]&&!_0x322d18[_0x24e2c4(0x6e9)]){this[_0x24e2c4(0xd75)]=!![],console[_0x24e2c4(0x5f3)]('[sgc]\x20data_value_expression\x20on\x20'+(_0x322d18['entity']||_0x322d18[_0x24e2c4(0x527)])+_0x24e2c4(0x5e6));break;}}(this[_0x24e2c4(0x96d)]||this[_0x24e2c4(0x354)])&&this[_0x24e2c4(0xa14)]()!==this[_0x24e2c4(0x1cb)]&&this[_0x24e2c4(0x2be)]();this['_baselineReady']=![],this[_0x24e2c4(0x9b4)]=Object['create'](null),this[_0x24e2c4(0x50b)]=Object[_0x24e2c4(0x526)](null),this[_0x24e2c4(0x415)]=Object[_0x24e2c4(0x526)](null),this[_0x24e2c4(0x7c2)]=Object[_0x24e2c4(0x526)](null),this[_0x24e2c4(0xcd3)][_0x24e2c4(0xc5)](),this[_0x24e2c4(0x33e)](),this['_restartEnergyDateSyncIfNeeded'](_0x35aec3);if(this[_0x24e2c4(0xb79)])this[_0x24e2c4(0x24c)]();}[_0x45b7b8(0x143)](_0x4c08fa){const _0x544c6f=_0x45b7b8,_0x4fbfcf=new Set();for(const _0x4c2af7 of _0x4c08fa||[]){if(!_0x4c2af7||!_0x4c2af7[_0x544c6f(0x6e9)]||!_0x4c2af7[_0x544c6f(0x498)])continue;const _0x3c2757=_0x4c2af7[_0x544c6f(0x6af)];if(!_0x3c2757||typeof _0x3c2757!==_0x544c6f(0xa7e))continue;for(const _0x5e8a77 of Object[_0x544c6f(0x5e7)](_0x3c2757)){if(typeof _0x5e8a77===_0x544c6f(0x5ea)&&_0x5e8a77)_0x4fbfcf[_0x544c6f(0x24e)](_0x5e8a77);}}return _0x4fbfcf;}['_collectThrRefs'](_0xc54f7c){const _0xaa84dd=_0x45b7b8,_0x42bd5d=new Set();for(const _0x499e32 of _0xc54f7c||[]){const _0x565be6=_0x499e32?.[_0xaa84dd(0x9a9)]?.['values'];if(!Array[_0xaa84dd(0x1d7)](_0x565be6))continue;for(const _0x21c1b4 of _0x565be6){for(const _0x2b10db of[_0x21c1b4?.['value'],_0x21c1b4?.[_0xaa84dd(0xacd)]]){if(typeof _0x2b10db===_0xaa84dd(0x5ea)){const _0x53957d=_0x2b10db[_0xaa84dd(0xa35)](/^([a-z_]+\.[a-z0-9_]+)/i);if(_0x53957d)_0x42bd5d['add'](_0x53957d[0x1]);}}}}return _0x42bd5d;}[_0x45b7b8(0x367)](_0x482c6e){return typeof _0x482c6e==='string'&&/^[a-z_]+\.[a-z0-9_]+/i['test'](_0x482c6e);}[_0x45b7b8(0x4d5)](_0xf772d){const _0x57f45c=_0x45b7b8;if(typeof _0xf772d!=='string')return _0xf772d;const _0xb29764=_0xf772d[_0x57f45c(0xa35)](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0xb29764)return _0xf772d;const _0x122d65=this[_0x57f45c(0xb79)]?.[_0x57f45c(0x81a)]?.[_0xb29764[0x1]];if(!_0x122d65)return _0xf772d;const _0x4e4ebc=_0xb29764[0x2]?getAttributePath(_0x122d65['attributes'],_0xb29764[0x2]):_0x122d65[_0x57f45c(0x992)];return _0x4e4ebc===null||_0x4e4ebc===undefined||_0x4e4ebc===''?_0xf772d:_0x4e4ebc;}[_0x45b7b8(0x12f)](_0x5c4f36){const _0x3a13a4=_0x45b7b8,_0x50c527=_0x5c4f36?.[_0x3a13a4(0x9a9)]?.['values'];if(!Array[_0x3a13a4(0x1d7)](_0x50c527))return _0x50c527;if(!_0x50c527[_0x3a13a4(0x870)](_0x3b466b=>this[_0x3a13a4(0x367)](_0x3b466b?.[_0x3a13a4(0xba7)])||this[_0x3a13a4(0x367)](_0x3b466b?.[_0x3a13a4(0xacd)])))return _0x50c527;return _0x50c527[_0x3a13a4(0x963)](_0x38eb73=>({..._0x38eb73,'value':this[_0x3a13a4(0x4d5)](_0x38eb73?.[_0x3a13a4(0xba7)]),'color':this[_0x3a13a4(0x4d5)](_0x38eb73?.[_0x3a13a4(0xacd)])}));}[_0x45b7b8(0x569)](_0x559085){const _0x11febe=_0x45b7b8,_0x130886=new Set();if(!Array[_0x11febe(0x1d7)](_0x559085))return _0x130886;for(const _0x468d78 of _0x559085){if(!_0x468d78||typeof _0x468d78!==_0x11febe(0xa7e))continue;if(_0x468d78[_0x11febe(0x33b)]===_0x11febe(0x7e5)){const _0x320aed=extractAnnotationRefEntityId(_0x468d78['value']);if(_0x320aed)_0x130886[_0x11febe(0x24e)](_0x320aed);}else{if(_0x468d78['type']===_0x11febe(0xa1)){const _0x541d1b=extractAnnotationRefEntityId(_0x468d78[_0x11febe(0xba7)]??_0x468d78[_0x11febe(0xd22)]),_0x239504=extractAnnotationRefEntityId(_0x468d78[_0x11febe(0xad1)]??_0x468d78['to']);if(_0x541d1b)_0x130886[_0x11febe(0x24e)](_0x541d1b);if(_0x239504)_0x130886['add'](_0x239504);}else(_0x468d78[_0x11febe(0x33b)]===_0x11febe(0xd0f)||_0x468d78[_0x11febe(0x33b)]===_0x11febe(0xc95))&&_0x468d78['entity']&&_0x130886[_0x11febe(0x24e)](_0x468d78[_0x11febe(0x9ac)]);}}return _0x130886;}['_effectiveAnnotations'](){const _0x56b500=_0x45b7b8,_0x1c13b0=this['_config']?.[_0x56b500(0xaef)];if(!Array[_0x56b500(0x1d7)](_0x1c13b0)||!_0x1c13b0[_0x56b500(0x230)])return[];const _0x1674e3=_0x26dc12=>{const _0x4ab4d8=_0x56b500;if(typeof _0x26dc12==='string'&&_0x26dc12['includes']('{{'))return this[_0x4ab4d8(0x116)][_0x4ab4d8(0x809)](_0x26dc12)||_0x26dc12;return _0x26dc12;},_0x4f1aa3=[];for(const _0x4c392b of _0x1c13b0){if(!_0x4c392b||typeof _0x4c392b!==_0x56b500(0xa7e))continue;const _0x844320={..._0x4c392b};for(const _0x547d28 of[_0x56b500(0x866),_0x56b500(0xbdf),'time',_0x56b500(0xba7),'value_end',_0x56b500(0x72b)]){typeof _0x844320[_0x547d28]===_0x56b500(0x5ea)&&_0x844320[_0x547d28][_0x56b500(0x615)]('{{')&&(_0x844320[_0x547d28]=_0x1674e3(_0x844320[_0x547d28]));}if(_0x844320[_0x56b500(0x33b)]===_0x56b500(0x7e5)||_0x844320['type']===_0x56b500(0xa1)){_0x4f1aa3[_0x56b500(0x9f2)](_0x844320);continue;}(_0x844320[_0x56b500(0x33b)]===_0x56b500(0xd0f)||_0x844320['type']===_0x56b500(0xc95))&&!_0x844320[_0x56b500(0x9ac)]&&_0x4f1aa3[_0x56b500(0x9f2)](_0x844320);}return this[_0x56b500(0x75e)]?.[_0x56b500(0x230)]&&_0x4f1aa3[_0x56b500(0x9f2)](...this[_0x56b500(0x75e)]),_0x4f1aa3;}async['_resolveEntityAnnotations'](_0x4cad9c,_0x3f74ff){const _0x12e09d=_0x45b7b8,_0x116dd4=this[_0x12e09d(0x9b6)]?.[_0x12e09d(0xaef)];if(!Array[_0x12e09d(0x1d7)](_0x116dd4)||!_0x116dd4['length'])return[];const _0x2184e3=[],_0x293864=new Set();for(const _0x56c074 of _0x116dd4){if(!_0x56c074||typeof _0x56c074!=='object')continue;if(_0x56c074[_0x12e09d(0x33b)]!=='event'&&_0x56c074[_0x12e09d(0x33b)]!==_0x12e09d(0xc95)||!_0x56c074[_0x12e09d(0x9ac)])continue;if(_0x293864[_0x12e09d(0xd4f)](_0x56c074[_0x12e09d(0x9ac)]))continue;_0x293864[_0x12e09d(0x24e)](_0x56c074[_0x12e09d(0x9ac)]),_0x2184e3[_0x12e09d(0x9f2)]({'id':_0x56c074[_0x12e09d(0x9ac)]});}if(!_0x2184e3[_0x12e09d(0x230)])return[];let _0x2f2317={};try{const _0x1654a8=this[_0x12e09d(0x9b6)][_0x12e09d(0x9ef)]!==![];_0x2f2317=await this[_0x12e09d(0x772)][_0x12e09d(0xc4)](this[_0x12e09d(0xb79)],_0x2184e3,_0x4cad9c,_0x3f74ff,_0x1654a8);}catch(_0x10742c){return console[_0x12e09d(0x5f3)]('[sgc]\x20annotation\x20history\x20fetch\x20failed',_0x10742c),[];}const _0x138461=_0x3f74ff[_0x12e09d(0x9e0)](),_0x30eb21=[];for(const _0x11e5c1 of _0x116dd4){if(!_0x11e5c1||typeof _0x11e5c1!==_0x12e09d(0xa7e))continue;if(_0x11e5c1[_0x12e09d(0x33b)]!==_0x12e09d(0xd0f)&&_0x11e5c1[_0x12e09d(0x33b)]!==_0x12e09d(0xc95)||!_0x11e5c1[_0x12e09d(0x9ac)])continue;const _0x2c4373=_0x2f2317[_0x11e5c1[_0x12e09d(0x9ac)]];if(!Array[_0x12e09d(0x1d7)](_0x2c4373)||!_0x2c4373[_0x12e09d(0x230)])continue;const _0x48f8da=String(_0x11e5c1[_0x12e09d(0x992)]??'on');if(_0x11e5c1[_0x12e09d(0x33b)]===_0x12e09d(0xd0f)){String(_0x2c4373[0x0]['state'])===_0x48f8da&&_0x30eb21['push']({..._0x11e5c1,'type':_0x12e09d(0xd0f),'time':_0x2c4373[0x0]['t']});for(let _0x1d1ed5=0x1;_0x1d1ed5<_0x2c4373['length'];_0x1d1ed5++){String(_0x2c4373[_0x1d1ed5][_0x12e09d(0x992)])===_0x48f8da&&String(_0x2c4373[_0x1d1ed5-0x1][_0x12e09d(0x992)])!==_0x48f8da&&_0x30eb21[_0x12e09d(0x9f2)]({..._0x11e5c1,'type':_0x12e09d(0xd0f),'time':_0x2c4373[_0x1d1ed5]['t']});}}else{let _0x304765=null;if(String(_0x2c4373[0x0]['state'])===_0x48f8da)_0x304765=_0x2c4373[0x0]['t'];for(let _0x50354f=0x1;_0x50354f<_0x2c4373[_0x12e09d(0x230)];_0x50354f++){const _0x23d13d=String(_0x2c4373[_0x50354f][_0x12e09d(0x992)])===_0x48f8da;if(_0x23d13d&&_0x304765===null)_0x304765=_0x2c4373[_0x50354f]['t'];else!_0x23d13d&&_0x304765!==null&&(_0x30eb21['push']({..._0x11e5c1,'type':_0x12e09d(0xc95),'start':_0x304765,'end':_0x2c4373[_0x50354f]['t']}),_0x304765=null);}_0x304765!==null&&_0x30eb21[_0x12e09d(0x9f2)]({..._0x11e5c1,'type':'span','start':_0x304765,'end':_0x138461});}}return _0x30eb21;}['_normalizeCompareList'](_0x5c5065){const _0x1c48a3=_0x45b7b8;if(!_0x5c5065)return null;const _0x4506ee=Array[_0x1c48a3(0x1d7)](_0x5c5065)?_0x5c5065:[_0x5c5065],_0x5d9598=[];for(const _0x293abf of _0x4506ee){const _0x2468d8=this[_0x1c48a3(0x668)](_0x293abf,_0x5d9598[_0x1c48a3(0x230)]);if(_0x2468d8)_0x5d9598['push'](_0x2468d8);}return _0x5d9598[_0x1c48a3(0x230)]?_0x5d9598:null;}[_0x45b7b8(0x668)](_0x1547f3,_0x2a050f=0x0){const _0x232e8c=_0x45b7b8;if(!_0x1547f3)return null;let _0x295209=_0x1547f3;if(_0x1547f3===!![])_0x295209={};else{if(typeof _0x1547f3===_0x232e8c(0x5ea)||typeof _0x1547f3==='number')_0x295209={'period':_0x1547f3};}if(typeof _0x295209!==_0x232e8c(0xa7e))return null;const _0x30c6bd=toNum(_0x295209['opacity']),_0x4f768d=toNum(_0x295209[_0x232e8c(0x220)]),_0x1a402c=toNum(_0x295209[_0x232e8c(0x2f4)]);return{'period':_0x295209[_0x232e8c(0x81d)]??_0x232e8c(0x306),'periods_back':isNum(_0x1a402c)&&_0x1a402c>=0x1?Math[_0x232e8c(0xd2f)](0x208,Math[_0x232e8c(0xa4c)](_0x1a402c)):0x1,'hide_on_load':_0x295209[_0x232e8c(0x12c)]===!![],'color':_0x295209[_0x232e8c(0xacd)]??null,'opacity':isNum(_0x30c6bd)?clamp(_0x30c6bd,0.05,0x1):Math[_0x232e8c(0xc78)](0.15,0.45*Math['pow'](0.66,_0x2a050f)),'line_style':_0x295209['line_style']||'dashed','line_width':isNum(_0x4f768d)&&_0x4f768d>0x0?_0x4f768d:null,'show_fill':_0x295209[_0x232e8c(0x83f)]===!![],'show_points':_0x295209[_0x232e8c(0x872)]===!![],'show_average':_0x295209[_0x232e8c(0x976)]===!![],'show_in_legend':_0x295209[_0x232e8c(0x8ab)]===undefined?null:!!_0x295209[_0x232e8c(0x8ab)],'show_delta':_0x295209[_0x232e8c(0x1cd)]!==![]};}[_0x45b7b8(0x78b)](){const _0xe53602=_0x45b7b8;if((this['_config'][_0xe53602(0x5f9)]||_0xe53602(0x3c0))!==_0xe53602(0x3c0))return;if(this['_config']['sparkline'])return;const _0x31499b=this['_entities'][_0xe53602(0x230)];for(let _0x2d9b99=0x0;_0x2d9b99<_0x31499b;_0x2d9b99++){const _0x4068db=this[_0xe53602(0x461)][_0x2d9b99];if(!_0x4068db||_0x4068db[_0xe53602(0x2f6)]!=null)continue;if((_0x4068db['graph_type']||_0x4068db[_0xe53602(0x33b)])===_0xe53602(0xb67))continue;if(_0x4068db[_0xe53602(0x8bf)]||_0x4068db[_0xe53602(0x6e9)])continue;const _0x5675dc=this['_normalizeCompareList'](_0x4068db[_0xe53602(0xa1d)]);if(!_0x5675dc)continue;for(const _0x538a12 of _0x5675dc){const _0x42ea60={..._0x4068db};_0x42ea60[_0xe53602(0x2f6)]=_0x2d9b99,_0x42ea60[_0xe53602(0xb1)]=_0x538a12,_0x42ea60[_0xe53602(0xa1d)]=null,_0x42ea60[_0xe53602(0x10d)]=null,delete _0x42ea60[_0xe53602(0xc46)];if(_0x538a12[_0xe53602(0xacd)])_0x42ea60['color']=_0x538a12[_0xe53602(0xacd)];_0x42ea60[_0xe53602(0x617)]=_0x538a12[_0xe53602(0x617)];if(_0x538a12[_0xe53602(0x220)]!=null)_0x42ea60['line_width']=_0x538a12[_0xe53602(0x220)];_0x42ea60['show_fill']=_0x538a12['show_fill'],_0x42ea60[_0xe53602(0x872)]=_0x538a12[_0xe53602(0x872)],_0x42ea60[_0xe53602(0x8ab)]=_0x538a12[_0xe53602(0x8ab)]==null?!!_0x4068db[_0xe53602(0x8ab)]:_0x538a12['show_in_legend'],_0x42ea60[_0xe53602(0x16d)]=![],_0x42ea60[_0xe53602(0x341)]=_0xe53602(0x84c),_0x42ea60[_0xe53602(0xc74)]=![],_0x42ea60[_0xe53602(0x976)]=_0x538a12['show_average']===!![],_0x42ea60[_0xe53602(0xbca)]=![],_0x42ea60[_0xe53602(0x392)]=null;{const _0x3f570f=_0x4068db[_0xe53602(0x710)]!=null&&_0x4068db['stack_group']!==''?String(_0x4068db[_0xe53602(0x710)]):this['_config'][_0xe53602(0x974)]?_0xe53602(0x548):null;_0x42ea60['stack_group']=_0x3f570f==null?null:_0x3f570f+_0xe53602(0x382)+(_0x538a12[_0xe53602(0x81d)]??_0xe53602(0x306))+'x'+(_0x538a12[_0xe53602(0x2f4)]??0x1);}_0x42ea60[_0xe53602(0xb8d)]=null;if(_0x538a12[_0xe53602(0x12c)])_0x42ea60[_0xe53602(0x395)]=!![];_0x42ea60[_0xe53602(0xb08)]=(toNum(_0x4068db[_0xe53602(0xb08)])||0x0)-0x1,_0x42ea60[_0xe53602(0x74a)]=0x0;const _0x2a2262=Object[_0xe53602(0x77a)](_0x4068db,_0xe53602(0x2ab));if(_0x2a2262)Object[_0xe53602(0x222)](_0x42ea60,_0xe53602(0x2ab),_0x2a2262);this[_0xe53602(0x461)][_0xe53602(0x9f2)](_0x42ea60);}}}['_inferEnergyPeriodMode'](_0x4baf66){const _0x169a0f=_0x45b7b8;if(!this[_0x169a0f(0xb5e)]||!this[_0x169a0f(0x81f)])return null;const _0x3a26a6=_0x582076=>{const _0x5fad40=_0x169a0f,_0x373e08=tzParts(_0x582076,_0x4baf66),_0x33ea37=zonedWallToMs(_0x373e08['y'],_0x373e08['mo'],_0x373e08['d'],0x0,0x0,0x0,_0x4baf66),_0x1e14f2=zonedWallToMs(_0x373e08['y'],_0x373e08['mo'],_0x373e08['d']+0x1,0x0,0x0,0x0,_0x4baf66);if(Math[_0x5fad40(0x533)](_0x582076-_0x33ea37)<=0x1d4c0)return _0x33ea37;if(Math[_0x5fad40(0x533)](_0x582076-_0x1e14f2)<=0x1d4c0)return _0x1e14f2;return null;},_0x1623f0=_0x3a26a6(this[_0x169a0f(0xb5e)][_0x169a0f(0x9e0)]()),_0x85a564=_0x3a26a6(this[_0x169a0f(0x81f)][_0x169a0f(0x9e0)]());if(_0x1623f0==null||_0x85a564==null)return null;const _0x467097=tzParts(_0x1623f0,_0x4baf66),_0xdb039c=tzParts(_0x85a564,_0x4baf66),_0x4acbdb=(_0x5ed642,_0x40b404,_0x5585bc)=>zonedWallToMs(_0x5ed642,_0x40b404,_0x5585bc,0x0,0x0,0x0,_0x4baf66)===_0x85a564;if(_0x467097['mo']===0x0&&_0x467097['d']===0x1&&_0xdb039c['mo']===0x0&&_0xdb039c['d']===0x1&&_0xdb039c['y']===_0x467097['y']+0x1)return _0x169a0f(0x74c);if(_0x467097['d']===0x1&&_0xdb039c['d']===0x1&&_0xdb039c['y']*0xc+_0xdb039c['mo']===_0x467097['y']*0xc+_0x467097['mo']+0x1)return'month';if(_0x4acbdb(_0x467097['y'],_0x467097['mo'],_0x467097['d']+0x7))return _0x169a0f(0xb89);if(_0x4acbdb(_0x467097['y'],_0x467097['mo'],_0x467097['d']+0x1))return _0x169a0f(0x962);return null;}[_0x45b7b8(0x80e)](_0x3dd9fc,_0xa8baa1){const _0x3c0d14=_0x45b7b8,_0x2e09c0=resolveDisplayTimeZone(this[_0x3c0d14(0xb79)],this[_0x3c0d14(0x9b6)]),_0x235b60=_0xa8baa1[_0x3c0d14(0x866)][_0x3c0d14(0x9e0)](),_0x243d08=_0xa8baa1['end'][_0x3c0d14(0x9e0)](),_0x1b2445=(_0x2642f4,_0x2f4e55)=>{const _0x11c62a=_0x3c0d14,_0x2fae6e=tzParts(_0x235b60,_0x2e09c0);let _0x4de012=_0x2fae6e['y']+_0x2642f4,_0x3a01de=_0x2fae6e['mo']+_0x2f4e55;_0x4de012+=Math[_0x11c62a(0xa4c)](_0x3a01de/0xc),_0x3a01de=(_0x3a01de%0xc+0xc)%0xc;const _0x5581e6=new Date(_0x4de012,_0x3a01de+0x1,0x0)[_0x11c62a(0x5ae)]();return zonedWallToMs(_0x4de012,_0x3a01de,Math[_0x11c62a(0xd2f)](_0x2fae6e['d'],_0x5581e6),_0x2fae6e['h'],_0x2fae6e['mi'],0x0,_0x2e09c0);},_0x195237=_0x3dd9fc[_0x3c0d14(0x81d)],_0x2ab6fe=Math['max'](0x1,Math[_0x3c0d14(0xa4c)](toNum(_0x3dd9fc?.['periods_back'])||0x1)),_0x4fe233=toNum(_0x195237);if(isNum(_0x4fe233)&&_0x4fe233>0x0)return _0x4fe233*_0x2ab6fe;switch(_0x195237){case _0x3c0d14(0xa5):return 0x18*_0x2ab6fe;case _0x3c0d14(0xd14):return 0xa8*_0x2ab6fe;case _0x3c0d14(0xc20):return(_0x235b60-_0x1b2445(0x0,-_0x2ab6fe))/0x36ee80;case _0x3c0d14(0xd1a):return(_0x235b60-_0x1b2445(-_0x2ab6fe,0x0))/0x36ee80;case _0x3c0d14(0x306):default:{const _0x5c784b=this[_0x3c0d14(0x9b6)][_0x3c0d14(0x802)]||this[_0x3c0d14(0x9b6)][_0x3c0d14(0x4a5)]&&this[_0x3c0d14(0x8a3)];let _0x2ea8ce=_0x5c784b?this[_0x3c0d14(0x78c)]:null;!_0x2ea8ce&&this[_0x3c0d14(0x9b6)][_0x3c0d14(0xb28)]&&(_0x2ea8ce=this[_0x3c0d14(0x776)](_0x2e09c0));if(_0x2ea8ce===_0x3c0d14(0x6e0))return(_0x235b60-_0x1b2445(0x0,-_0x2ab6fe))/0x36ee80;if(_0x2ea8ce===_0x3c0d14(0x74c))return(_0x235b60-_0x1b2445(-_0x2ab6fe,0x0))/0x36ee80;if(_0x2ea8ce===_0x3c0d14(0x962)||_0x2ea8ce===_0x3c0d14(0xb89)){const _0x552a05=_0x5c784b?Math[_0x3c0d14(0xc78)](0x1,parseInt(this['_config']?.[_0x3c0d14(0xc91)],0xa)||0x1):0x1,_0x3cbe67=tzParts(_0x235b60,_0x2e09c0),_0x5b78e7=_0x2ab6fe*_0x552a05*(_0x2ea8ce===_0x3c0d14(0xb89)?0x7:0x1);return(_0x235b60-zonedWallToMs(_0x3cbe67['y'],_0x3cbe67['mo'],_0x3cbe67['d']-_0x5b78e7,_0x3cbe67['h'],_0x3cbe67['mi'],0x0,_0x2e09c0))/0x36ee80;}return(_0x243d08-_0x235b60)/0x36ee80*_0x2ab6fe;}}}['_toggleSeriesVisibility'](_0x259d00){const _0x308f33=_0x45b7b8,_0x2f797c=!this[_0x308f33(0x810)][_0x308f33(0xd4f)](_0x259d00),_0x48e650=[_0x259d00],_0x2ab7b0=this[_0x308f33(0x550)]?.['series']?.[_0x308f33(0x740)](_0x955af4=>_0x955af4['id']===_0x259d00);if(_0x2ab7b0&&_0x2ab7b0[_0x308f33(0x9ac)]?.[_0x308f33(0x2f6)]==null)for(const _0x484625 of this[_0x308f33(0x550)]['series']['filter'](_0x479f34=>_0x479f34['entity']?.[_0x308f33(0x2f6)]===_0x2ab7b0[_0x308f33(0x146)])){_0x48e650[_0x308f33(0x9f2)](_0x484625['id']);}for(const _0x2644bb of _0x48e650){if(_0x2f797c)this[_0x308f33(0x810)]['add'](_0x2644bb);else this[_0x308f33(0x810)][_0x308f33(0x906)](_0x2644bb);}}[_0x45b7b8(0xb4f)](_0xf44c62){const _0x4fe55e=_0x45b7b8,_0x20d735={'e':(_0xf44c62['entities']||[])[_0x4fe55e(0x963)](_0x14fc92=>[_0x14fc92['entity']||'',_0x14fc92['statistic_id']||'',_0x14fc92[_0x4fe55e(0x1e0)]||'']),'c':_0xf44c62[_0x4fe55e(0x5f9)]||_0x4fe55e(0x3c0),'t':_0xf44c62[_0x4fe55e(0xd7a)]||''};return hashString(JSON[_0x4fe55e(0x2f3)](_0x20d735));}[_0x45b7b8(0x6a4)](){const _0x1e0dd3=_0x45b7b8,_0x225627=this[_0x1e0dd3(0xb79)];if(!_0x225627?.['connection'])return null;const _0x4ca621=_0x225627[_0x1e0dd3(0x100)];try{const _0x5261fc=window['hassUtil']?.[_0x1e0dd3(0xb0a)];if(typeof _0x5261fc===_0x1e0dd3(0x57f)){const _0x53914c=_0x5261fc(_0x225627);if(_0x53914c&&typeof _0x53914c[_0x1e0dd3(0x4c3)]===_0x1e0dd3(0x57f))return _0x53914c;}}catch{}try{const _0x495e76=document['querySelector'](_0x1e0dd3(0xc4e)),_0x3a134a=_0x495e76?.['_energyCollection'];if(_0x3a134a&&typeof _0x3a134a[_0x1e0dd3(0x4c3)]===_0x1e0dd3(0x57f))return _0x3a134a;}catch{}const _0x5a3b13=_0x5355c3=>{const _0x223a0c=_0x1e0dd3;if(!_0x5355c3||typeof _0x5355c3!==_0x223a0c(0xa7e))return null;for(const [_0x16ba30,_0x4845ec]of Object['entries'](_0x5355c3)){if(!/energy|nerg/i[_0x223a0c(0x7af)](_0x16ba30))continue;if(_0x4845ec&&typeof _0x4845ec[_0x223a0c(0x4c3)]===_0x223a0c(0x57f))return _0x4845ec;}return null;};return _0x5a3b13(_0x4ca621)||_0x5a3b13(_0x4ca621['_collections']);}['_startEnergyDateSync'](){const _0x30f2f2=_0x45b7b8;if(!this[_0x30f2f2(0x9b6)]?.[_0x30f2f2(0xb28)]||!this['_hass'])return;this[_0x30f2f2(0xa71)]();const _0x471647=()=>{const _0x384271=_0x30f2f2,_0xbe3349=this['_findEnergyCollection']();if(!_0xbe3349)return![];this[_0x384271(0x287)]=_0xbe3349[_0x384271(0x4c3)](_0x58c2be=>{const _0x38e59d=_0x384271,_0x13fc69=_0xbe3349[_0x38e59d(0x866)]||_0xbe3349['_start']||_0x58c2be?.['start'],_0x232853=_0xbe3349[_0x38e59d(0xbdf)]||_0xbe3349[_0x38e59d(0x7cf)]||_0x58c2be?.[_0x38e59d(0xbdf)];if(_0x13fc69)this[_0x38e59d(0xcfc)](_0x13fc69,_0x232853);});const _0x15cbb8=_0xbe3349[_0x384271(0x866)]||_0xbe3349[_0x384271(0xcf9)],_0x2bc45f=_0xbe3349[_0x384271(0xbdf)]||_0xbe3349[_0x384271(0x7cf)];if(_0x15cbb8)this[_0x384271(0xcfc)](_0x15cbb8,_0x2bc45f);return!![];};if(_0x471647())return;let _0x39fc85=0x0;this[_0x30f2f2(0x2cf)]=setInterval(()=>{_0x39fc85+=0x1,(_0x471647()||_0x39fc85>=0xf)&&(clearInterval(this['_energyDiscoverTimer']),this['_energyDiscoverTimer']=null);},0x7d0);}[_0x45b7b8(0xa71)](){const _0x3c8df0=_0x45b7b8;if(this[_0x3c8df0(0x287)]){try{this[_0x3c8df0(0x287)]();}catch{}this[_0x3c8df0(0x287)]=null;}this[_0x3c8df0(0x2cf)]&&(clearInterval(this[_0x3c8df0(0x2cf)]),this[_0x3c8df0(0x2cf)]=null);}[_0x45b7b8(0xcfc)](_0x2b5ad0,_0x366437){const _0x265104=_0x45b7b8,_0x149d1f=_0x2b5ad0 instanceof Date?_0x2b5ad0:new Date(_0x2b5ad0),_0x41251e=_0x366437?_0x366437 instanceof Date?_0x366437:new Date(_0x366437):new Date();if(isNaN(_0x149d1f['getTime']())||isNaN(_0x41251e[_0x265104(0x9e0)]()))return;if(_0x41251e[_0x265104(0x9e0)]()<=_0x149d1f['getTime']())return;if(this[_0x265104(0xb5e)]&&this[_0x265104(0x81f)]&&this[_0x265104(0xb5e)][_0x265104(0x9e0)]()===_0x149d1f[_0x265104(0x9e0)]()&&this[_0x265104(0x81f)][_0x265104(0x9e0)]()===_0x41251e[_0x265104(0x9e0)]())return;this[_0x265104(0xb5e)]=_0x149d1f,this[_0x265104(0x81f)]=_0x41251e,this['_setupTimers'](),this[_0x265104(0x24c)]();}[_0x45b7b8(0xd43)](_0x3e0ba7){const _0x34f5f8=_0x45b7b8,_0x2b09ee=!!_0x3e0ba7?.[_0x34f5f8(0xb28)],_0x31440c=!!this['_config']?.['energy_date_sync'];if(_0x2b09ee===_0x31440c)return;_0x31440c?this[_0x34f5f8(0x70b)]():(this['_stopEnergyDateSync'](),this[_0x34f5f8(0xb5e)]=null,this[_0x34f5f8(0x81f)]=null,this['_scheduleUpdate']());}[_0x45b7b8(0x7d8)](){const _0x141ae3=_0x45b7b8,_0x5947c0=this[_0x141ae3(0x9b6)],_0x33433b=new Date(),_0x487f22=_0x458543=>{const _0x12cff0=_0x141ae3;Object[_0x12cff0(0x222)](_0x5947c0,_0x12cff0(0x40f),{'value':_0x458543,'enumerable':![],'writable':!![],'configurable':!![]});};_0x487f22(null);const _0x2ab5f3=_0x3c8646=>{const _0x1f267e=_0x141ae3;Object[_0x1f267e(0x222)](_0x5947c0,_0x1f267e(0xb83),{'value':_0x3c8646,'enumerable':![],'writable':!![],'configurable':!![]});};_0x2ab5f3(null);const _0x1cc6a4=_0x1d1645=>{const _0xf3fa76=_0x141ae3;Object[_0xf3fa76(0x222)](_0x5947c0,_0xf3fa76(0x5e3),{'value':_0x1d1645,'enumerable':![],'writable':!![],'configurable':!![]});};_0x1cc6a4(null);const _0x4b679f=resolveDisplayTimeZone(this[_0x141ae3(0xb79)],_0x5947c0);let _0x5eec22=0x0;for(const _0x3f65e8 of this[_0x141ae3(0x461)]||[]){const _0x206868=toNum(_0x3f65e8?.[_0x141ae3(0xb87)]);if(_0x206868>0x0&&_0x206868>_0x5eec22)_0x5eec22=_0x206868;}const _0x3f706c=_0x1d8eba=>{const _0x3bfdbc=_0x141ae3;if(_0x5eec22<=0x0)return _0x1d8eba;return new Date(_0x1d8eba[_0x3bfdbc(0x9e0)]()+_0x5eec22*0x36ee80);},_0x2e1fd8=_0x3a9424=>{const _0x344c6a=_0x141ae3;if(_0x3a9424==null||typeof _0x3a9424!==_0x344c6a(0x5ea))return null;const _0x22e8c7=_0x3a9424[_0x344c6a(0x28f)]();if(!_0x22e8c7)return null;if(_0x22e8c7[_0x344c6a(0x148)]()==='now')return 0x0;const _0x2a4bbf=_0x22e8c7['match'](/^now\s*([+-])\s*(\d*\.?\d+)$/i);if(_0x2a4bbf){const _0x172a46=_0x2a4bbf[0x1]==='+'?0x1:-0x1,_0x35fe69=parseFloat(_0x2a4bbf[0x2]);return isNaN(_0x35fe69)?null:_0x172a46*_0x35fe69*0x36ee80;}if((_0x22e8c7[0x0]==='+'||_0x22e8c7[0x0]==='-')&&/^[+-]\d*\.?\d+$/[_0x344c6a(0x7af)](_0x22e8c7)){const _0x229bbc=parseFloat(_0x22e8c7);return isNaN(_0x229bbc)?null:_0x229bbc*0x36ee80;}return null;},_0x2343b2=(_0x27716c,_0x537b5e)=>{const _0x59631a=_0x141ae3,_0x5d9e23=!!_0x5947c0[_0x59631a(0x59f)]||!!_0x5947c0[_0x59631a(0x5fd)]||!!(_0x5947c0[_0x59631a(0x802)]&&this[_0x59631a(0x78c)])||!!(_0x5947c0[_0x59631a(0x4a5)]&&this[_0x59631a(0x8a3)])||this[_0x59631a(0xb5e)]!=null&&this[_0x59631a(0x81f)]!=null||!!((_0x5947c0['show_interval_picker']||_0x5947c0[_0x59631a(0x524)])&&isNum(this[_0x59631a(0x490)])),_0x5badf7=(_0x537b5e[_0x59631a(0x9e0)]()-_0x27716c[_0x59631a(0x9e0)]())/0x36ee80,_0x5e6490=!_0x5d9e23&&_0x5badf7<=24.5,_0x53f249=_0x2e1fd8(_0x5947c0[_0x59631a(0x1d1)]);if(_0x53f249!==null){const _0x177f9c=new Date(_0x33433b[_0x59631a(0x9e0)]()+_0x53f249);_0x177f9c[_0x59631a(0x9e0)]()>_0x27716c['getTime']()&&_0x177f9c[_0x59631a(0x9e0)]()<_0x537b5e[_0x59631a(0x9e0)]()&&(_0x27716c=_0x177f9c);}else{const _0x264a6a=resolveDynamicValue(_0x5947c0[_0x59631a(0x1d1)],this[_0x59631a(0xb79)])??toNum(_0x5947c0['graph_start_hour']);if(isNum(_0x264a6a)){if(_0x5e6490){const _0x242a51=tzParts(_0x537b5e['getTime'](),_0x4b679f);let _0x55f903=new Date(zonedWallToMs(_0x242a51['y'],_0x242a51['mo'],_0x242a51['d'],Math[_0x59631a(0xa4c)](_0x264a6a),Math[_0x59631a(0xd3f)](_0x264a6a%0x1*0x3c),0x0,_0x4b679f));_0x55f903[_0x59631a(0x9e0)]()>_0x537b5e[_0x59631a(0x9e0)]()&&(_0x55f903=new Date(zonedWallToMs(_0x242a51['y'],_0x242a51['mo'],_0x242a51['d']-0x1,Math[_0x59631a(0xa4c)](_0x264a6a),Math[_0x59631a(0xd3f)](_0x264a6a%0x1*0x3c),0x0,_0x4b679f))),_0x55f903[_0x59631a(0x9e0)]()<_0x537b5e[_0x59631a(0x9e0)]()&&(_0x27716c=_0x55f903);}else{const _0x42afe4=tzParts(_0x27716c[_0x59631a(0x9e0)](),_0x4b679f),_0x2e34d6=new Date(zonedWallToMs(_0x42afe4['y'],_0x42afe4['mo'],_0x42afe4['d'],Math['floor'](_0x264a6a),Math[_0x59631a(0xd3f)](_0x264a6a%0x1*0x3c),0x0,_0x4b679f));if(_0x2e34d6>=_0x27716c&&_0x2e34d6<_0x537b5e)_0x27716c=_0x2e34d6;}}}const _0x364057=_0x2e1fd8(_0x5947c0[_0x59631a(0xc13)]);if(_0x364057!==null){const _0x240de0=new Date(_0x33433b[_0x59631a(0x9e0)]()+_0x364057);_0x240de0[_0x59631a(0x9e0)]()>_0x27716c['getTime']()&&_0x240de0[_0x59631a(0x9e0)]()!==_0x537b5e[_0x59631a(0x9e0)]()&&(_0x537b5e=_0x240de0);}else{const _0x19269b=resolveDynamicValue(_0x5947c0[_0x59631a(0xc13)],this[_0x59631a(0xb79)])??toNum(_0x5947c0[_0x59631a(0xc13)]);if(isNum(_0x19269b)){const _0x1a6f5c=tzParts(_0x537b5e[_0x59631a(0x9e0)](),_0x4b679f),_0xe10593=_0x1a6f5c['h']===0x0&&_0x1a6f5c['mi']===0x0&&_0x537b5e[_0x59631a(0x2b2)]()===0x0&&_0x537b5e[_0x59631a(0x3a5)]()===0x0,_0x5e0869=new Date(zonedWallToMs(_0x1a6f5c['y'],_0x1a6f5c['mo'],_0x1a6f5c['d']-(_0xe10593?0x1:0x0),Math['floor'](_0x19269b),Math[_0x59631a(0xd3f)](_0x19269b%0x1*0x3c),0x0,_0x4b679f));_0x5e0869[_0x59631a(0x9e0)]()<_0x537b5e[_0x59631a(0x9e0)]()&&_0x5e0869[_0x59631a(0x9e0)]()>_0x27716c[_0x59631a(0x9e0)]()&&(_0x537b5e=_0x5e0869);}}const _0x187448=clamp(Math['floor'](toNum(_0x5947c0[_0x59631a(0x22d)])||0x1),0x1,0xa);if(_0x187448>0x1&&(_0x5947c0[_0x59631a(0x5f9)]||_0x59631a(0x3c0))===_0x59631a(0x3c0)&&!_0x5947c0['sparkline']){let _0x480114=toNum(_0x5947c0[_0x59631a(0x40f)]),_0x182677=null;const _0x4723cb=(_0x5947c0[_0x59631a(0x802)]||_0x5947c0[_0x59631a(0x4a5)]&&this['_dpSynced'])&&!!this['_dpMode'],_0x49bf0e=!!(_0x5947c0[_0x59631a(0xb28)]&&this['_energyStart']&&this[_0x59631a(0x81f)]);if(!(isNum(_0x480114)&&_0x480114>0x0)&&_0x5947c0['graph_start']&&!_0x4723cb&&!_0x49bf0e)try{const _0x5039d3=resolveFirstWeekday(this['_hass']),_0x22574e=parseGraphStart(_0x5947c0['graph_start'],new Date(),_0x4b679f,_0x5039d3),_0xfec60b=endOfPeriodFromGraphStart(_0x5947c0[_0x59631a(0x59f)],_0x22574e,_0x4b679f,_0x5039d3),_0x448a0e=(_0xfec60b[_0x59631a(0x9e0)]()-_0x22574e[_0x59631a(0x9e0)]())/0x36ee80;_0x448a0e>0x0&&(_0x480114=_0x448a0e,_0x182677=_0xfec60b[_0x59631a(0x9e0)]());}catch(_0x477392){}const _0x5e4799=isNum(_0x480114)&&_0x480114>0x0?_0x480114*0x36ee80:_0x537b5e[_0x59631a(0x9e0)]()-_0x27716c[_0x59631a(0x9e0)]();if(_0x5e4799>0x0){if(!(toNum(_0x5947c0[_0x59631a(0x40f)])>0x0))_0x487f22(_0x5e4799/0x36ee80);_0x2ab5f3(_0x5e4799/0x36ee80);if(isNum(_0x182677)){if(_0x182677>_0x537b5e[_0x59631a(0x9e0)]())_0x537b5e=new Date(_0x182677);_0x1cc6a4(_0x182677);}else _0x1cc6a4(_0x537b5e[_0x59631a(0x9e0)]()-(_0x5eec22>0x0?_0x5eec22*0x36ee80:0x0));_0x27716c=new Date(_0x27716c[_0x59631a(0x9e0)]()-_0x5e4799*(_0x187448-0x1));}}return{'start':_0x27716c,'end':_0x537b5e};},_0x41ad82=_0x5947c0[_0x141ae3(0x802)]||_0x5947c0[_0x141ae3(0x4a5)]&&this[_0x141ae3(0x8a3)],_0x267fa9=_0x41ad82&&this[_0x141ae3(0x78c)]==='custom',_0x480b60=_0x41ad82&&this[_0x141ae3(0x78c)]&&this[_0x141ae3(0x78c)]!==_0x141ae3(0x281);if(_0x41ad82){const _0x58e75a=this[_0x141ae3(0xcd0)]();if(_0x58e75a){let {start:_0xf492a7,end:_0xa20cf8}=_0x58e75a;if(_0x480b60){if(_0x5947c0['show_full_period']){const _0x10f882=this['_computeDatePickerWindow'](!![]);if(_0x10f882)_0xa20cf8=_0x10f882['end'];}else(this[_0x141ae3(0x124)]||0x0)===0x0&&(_0xa20cf8[_0x141ae3(0x9e0)]()>_0x33433b[_0x141ae3(0x9e0)]()&&_0x487f22((_0xa20cf8[_0x141ae3(0x9e0)]()-_0xf492a7[_0x141ae3(0x9e0)]())/0x36ee80),_0xa20cf8=_0x33433b);}return _0xa20cf8=_0x3f706c(_0xa20cf8),_0x2343b2(_0xf492a7,_0xa20cf8);}}if(_0x5947c0['energy_date_sync']&&this['_energyStart']&&this['_energyEnd']){const _0x430ff4=this[_0x141ae3(0xb5e)];let _0xf490e2=this[_0x141ae3(0x81f)];return!_0x5947c0['show_full_period']&&_0xf490e2['getTime']()>_0x33433b[_0x141ae3(0x9e0)]()&&(_0x487f22((_0xf490e2[_0x141ae3(0x9e0)]()-_0x430ff4[_0x141ae3(0x9e0)]())/0x36ee80),_0xf490e2=_0x33433b),_0xf490e2=_0x3f706c(_0xf490e2),_0x2343b2(_0x430ff4,_0xf490e2);}const _0x26b27a=(_0x5947c0[_0x141ae3(0x429)]||_0x5947c0[_0x141ae3(0x524)])&&isNum(this['_overrideHoursToShow'])?this['_overrideHoursToShow']:null,_0x5b2a85=isNum(_0x26b27a);let {start:_0x4e090d}=resolveAnchorWindow(_0x5947c0,_0x26b27a,this[_0x141ae3(0xb79)]),_0x223df6=_0x33433b;if(_0x5947c0['show_full_period']&&!_0x5b2a85){const _0x45fe1c=_0x5947c0['graph_start']||null,_0x4393da=endOfPeriodFromGraphStart(_0x45fe1c,_0x33433b,_0x4b679f,resolveFirstWeekday(this['_hass']));if(_0x4393da[_0x141ae3(0x9e0)]()>_0x223df6[_0x141ae3(0x9e0)]()){const _0x293b20=_0x4393da[_0x141ae3(0x9e0)]()-_0x223df6[_0x141ae3(0x9e0)]();_0x223df6=_0x4393da,!_0x5947c0[_0x141ae3(0x59f)]&&(_0x4e090d=new Date(_0x4e090d[_0x141ae3(0x9e0)]()+_0x293b20));}}return _0x5947c0[_0x141ae3(0x59f)]===_0x141ae3(0xa8)&&_0x4e090d['getTime']()>_0x223df6[_0x141ae3(0x9e0)]()&&(_0x223df6=endOfPeriodFromGraphStart(_0x141ae3(0xa8),_0x33433b,_0x4b679f,resolveFirstWeekday(this[_0x141ae3(0xb79)]))),_0x223df6=_0x3f706c(_0x223df6),_0x2343b2(_0x4e090d,_0x223df6);}['_computeDatePickerWindow'](_0x28c6b8){const _0x131f8f=_0x45b7b8,_0xc1a044=this['_dpMode']||'month',_0x27c2aa=this[_0x131f8f(0x124)]||0x0,_0x449015=_0xc1a044===_0x131f8f(0x281)?_0x27c2aa:Math[_0x131f8f(0xd2f)](0x0,_0x27c2aa),_0x55c8c7=new Date(),_0x284b44=resolveDisplayTimeZone(this[_0x131f8f(0xb79)],this['_config']),_0x45d02e=tzParts(_0x55c8c7[_0x131f8f(0x9e0)](),_0x284b44),_0x1c4c49=_0x55c8c7[_0x131f8f(0x9e0)]()%0xea60,_0x37c0a9=(_0x14bc9f,_0x296bb0,_0x1b0b5e,_0x2bfb43=0x0,_0x26b9d4=0x0)=>new Date(zonedWallToMs(_0x14bc9f,_0x296bb0,_0x1b0b5e,_0x2bfb43,_0x26b9d4,0x0,_0x284b44)),_0x1049ca=DATE_PICKER_RELATIVE_MODES[_0xc1a044];if(_0x1049ca){let _0x13f5ed=new Date(_0x55c8c7),_0x1e6afa=new Date(_0x55c8c7);if(_0x1049ca[_0x131f8f(0x4ac)]!=null)_0x13f5ed=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d'],_0x45d02e['h']+_0x449015*_0x1049ca['hours'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49),_0x1e6afa=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d'],_0x45d02e['h']+(_0x449015-0x1)*_0x1049ca['hours'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49);else{if(_0x1049ca['days']!=null)_0x13f5ed=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d']+_0x449015*_0x1049ca[_0x131f8f(0x9ab)],_0x45d02e['h'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49),_0x1e6afa=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d']+(_0x449015-0x1)*_0x1049ca[_0x131f8f(0x9ab)],_0x45d02e['h'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49);else _0x1049ca[_0x131f8f(0x549)]!=null&&(_0x13f5ed=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo']+_0x449015*_0x1049ca[_0x131f8f(0x549)],_0x45d02e['d'],_0x45d02e['h'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49),_0x1e6afa=new Date(zonedWallToMs(_0x45d02e['y'],_0x45d02e['mo']+(_0x449015-0x1)*_0x1049ca[_0x131f8f(0x549)],_0x45d02e['d'],_0x45d02e['h'],_0x45d02e['mi'],0x0,_0x284b44)+_0x1c4c49));}if(!_0x28c6b8&&_0x13f5ed[_0x131f8f(0x9e0)]()>_0x55c8c7[_0x131f8f(0x9e0)]())_0x13f5ed[_0x131f8f(0x91a)](_0x55c8c7[_0x131f8f(0x9e0)]());return{'start':_0x1e6afa,'end':_0x13f5ed};}const _0x4820a8=Math['max'](0x1,parseInt(this[_0x131f8f(0x9b6)]?.[_0x131f8f(0xc91)],0xa)||0x1);let _0xd6c63c,_0x8dcc0e;switch(_0xc1a044){case _0x131f8f(0x962):{_0x8dcc0e=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d']+0x1+_0x449015*_0x4820a8),_0xd6c63c=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo'],_0x45d02e['d']+0x1+_0x449015*_0x4820a8-_0x4820a8);break;}case _0x131f8f(0xb89):{const _0x26456d=_0x45d02e['d']-weekStartOffsetDays(_0x45d02e['wd'],resolveFirstWeekday(this[_0x131f8f(0xb79)]));_0x8dcc0e=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo'],_0x26456d+0x7+_0x449015*_0x4820a8*0x7),_0xd6c63c=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo'],_0x26456d+0x7+_0x449015*_0x4820a8*0x7-_0x4820a8*0x7);break;}case _0x131f8f(0x6e0):{_0x8dcc0e=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo']+0x1+_0x449015*_0x4820a8,0x1),_0xd6c63c=_0x37c0a9(_0x45d02e['y'],_0x45d02e['mo']+0x1+_0x449015*_0x4820a8-_0x4820a8,0x1);break;}case'year':{const _0x530621=_0x45d02e['y']+0x1+_0x449015*_0x4820a8;_0x8dcc0e=_0x37c0a9(_0x530621,0x0,0x1),_0xd6c63c=_0x37c0a9(_0x530621-_0x4820a8,0x0,0x1);break;}case _0x131f8f(0x281):{if(!this['_dpCustomStart']||!this[_0x131f8f(0x53e)])return null;_0xd6c63c=new Date(this['_dpCustomStart']),_0x8dcc0e=new Date(this['_dpCustomEnd']);break;}default:return null;}if(!_0x28c6b8&&_0xc1a044!==_0x131f8f(0x281)){const _0xe3bc64=new Date();if(_0x8dcc0e>_0xe3bc64)_0x8dcc0e=_0xe3bc64;}return{'start':_0xd6c63c,'end':_0x8dcc0e};}[_0x45b7b8(0x9e8)](){const _0x4018b3=_0x45b7b8,_0x594387=this[_0x4018b3(0xcd0)]();if(!_0x594387)return'';const _0x37a3aa=resolveCardLanguage(this[_0x4018b3(0xb79)],this[_0x4018b3(0x9b6)]),_0x92cf3=resolveDisplayTimeZone(this[_0x4018b3(0xb79)],this['_config']),_0x282830=this[_0x4018b3(0x78c)],_0x338605=Math[_0x4018b3(0xc78)](0x1,parseInt(this[_0x4018b3(0x9b6)]?.[_0x4018b3(0xc91)],0xa)||0x1);try{const _0x38f0d9=DATE_PICKER_RELATIVE_MODES[_0x282830];if(_0x38f0d9){if((this[_0x4018b3(0x124)]||0x0)===0x0)return cardT(this[_0x4018b3(0xb79)],this[_0x4018b3(0x9b6)],_0x38f0d9[_0x4018b3(0x72b)]);const _0x4474b6=getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'month':_0x4018b3(0xbd7),'day':_0x4018b3(0xb75),'year':_0x38f0d9[_0x4018b3(0x549)]?_0x4018b3(0xb75):undefined});return _0x4474b6['format'](_0x594387[_0x4018b3(0x866)])+'\x20–\x20'+_0x4474b6['format'](new Date(_0x594387[_0x4018b3(0xbdf)][_0x4018b3(0x9e0)]()-0x1));}if(_0x338605>0x1&&_0x282830!==_0x4018b3(0x281)){const _0x461a25=getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'day':_0x4018b3(0xb75),'month':'short','year':_0x282830==='year'?_0x4018b3(0xb75):undefined}),_0x194e40=new Date(_0x594387['end'][_0x4018b3(0x9e0)]()-0x1);return _0x461a25['format'](_0x594387[_0x4018b3(0x866)])+_0x4018b3(0x4dd)+_0x461a25['format'](_0x194e40);}if(_0x282830==='day')return getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'weekday':_0x4018b3(0xbd7),'month':_0x4018b3(0xbd7),'day':_0x4018b3(0xb75),'year':_0x4018b3(0xb75)})[_0x4018b3(0xb9a)](_0x594387[_0x4018b3(0x866)]);if(_0x282830==='week'){const _0x29937e=new Date(_0x594387[_0x4018b3(0xbdf)][_0x4018b3(0x9e0)]()-0x1),_0x4facb6=getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'month':_0x4018b3(0xbd7),'day':_0x4018b3(0xb75)});return _0x4facb6[_0x4018b3(0xb9a)](_0x594387[_0x4018b3(0x866)])+_0x4018b3(0x4dd)+_0x4facb6[_0x4018b3(0xb9a)](_0x29937e);}if(_0x282830===_0x4018b3(0x6e0))return getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'month':_0x4018b3(0x954),'year':'numeric'})[_0x4018b3(0xb9a)](_0x594387[_0x4018b3(0x866)]);if(_0x282830===_0x4018b3(0x74c))return getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'year':'numeric'})[_0x4018b3(0xb9a)](_0x594387['start']);if(_0x282830==='custom'){const _0x4d8bd3=getCachedDateTimeFormatter(_0x37a3aa,{'timeZone':_0x92cf3||undefined,'month':'short','day':'numeric','year':_0x4018b3(0xb75)});return _0x4d8bd3['format'](_0x594387[_0x4018b3(0x866)])+_0x4018b3(0x4dd)+_0x4d8bd3[_0x4018b3(0xb9a)](new Date(_0x594387['end'][_0x4018b3(0x9e0)]()-0x1));}}catch{}return _0x594387['start'][_0x4018b3(0xce0)]()+'\x20–\x20'+_0x594387[_0x4018b3(0xbdf)][_0x4018b3(0xce0)]();}[_0x45b7b8(0x96a)](){const _0x4b2c0c=_0x45b7b8;if(!this[_0x4b2c0c(0xa9f)])return;isNum(this[_0x4b2c0c(0x490)])?lsSet('sgc-hours:'+this[_0x4b2c0c(0xa9f)],JSON[_0x4b2c0c(0x2f3)]({'hours':this[_0x4b2c0c(0x490)],'label':this['_activeIntervalLabel']})):lsDel(_0x4b2c0c(0x578)+this[_0x4b2c0c(0xa9f)]);}['_persistDatePicker'](){const _0x17591f=_0x45b7b8;if(!this[_0x17591f(0xa9f)])return;const _0x2682a9={'mode':this[_0x17591f(0x78c)],'offset':this[_0x17591f(0x124)],'customStart':this['_dpCustomStart']?this[_0x17591f(0x214)]['toISOString']():null,'customEnd':this[_0x17591f(0x53e)]?this[_0x17591f(0x53e)][_0x17591f(0x1e4)]():null};lsSet(_0x17591f(0x5f6)+this[_0x17591f(0xa9f)],JSON['stringify'](_0x2682a9));}[_0x45b7b8(0x767)](_0x24c4b8,_0x28f020){const _0x5ba7f1=_0x45b7b8,_0x264455=toNum(_0x24c4b8);isNum(this[_0x5ba7f1(0x490)])&&this[_0x5ba7f1(0x490)]===_0x264455?(this['_overrideHoursToShow']=null,this[_0x5ba7f1(0xb9b)]=null):(this[_0x5ba7f1(0x490)]=_0x264455,this[_0x5ba7f1(0xb9b)]=_0x28f020),this['_persistIntervalPicker'](),this[_0x5ba7f1(0x41b)](),this['_scheduleUpdate']();}[_0x45b7b8(0xed)](){const _0x374170=_0x45b7b8;this[_0x374170(0x94b)]();}[_0x45b7b8(0x44c)](_0x173e75){const _0x101541=_0x45b7b8;if(!DATE_PICKER_VALID_MODES['includes'](_0x173e75)&&!(_0x173e75 in DATE_PICKER_RELATIVE_MODES))return;this[_0x101541(0x78c)]=_0x173e75,this[_0x101541(0x124)]=0x0,this[_0x101541(0x94b)](),this[_0x101541(0x6fb)](),this[_0x101541(0x24c)]();}[_0x45b7b8(0x625)](_0x42daf8){const _0xa3631a=_0x45b7b8;if(this[_0xa3631a(0x78c)]==='custom'&&this['_dpCustomStart']&&this[_0xa3631a(0x53e)]){const _0x11a309=this[_0xa3631a(0x53e)]['getTime']()-this['_dpCustomStart'][_0xa3631a(0x9e0)]();if(_0x11a309>0x0){const _0xeda206=_0x42daf8*_0x11a309,_0x361a67=new Date(this[_0xa3631a(0x214)][_0xa3631a(0x9e0)]()+_0xeda206),_0x5a7939=new Date(this[_0xa3631a(0x53e)]['getTime']()+_0xeda206),_0xccdf0c=Date[_0xa3631a(0xcca)]();if(_0x42daf8>0x0&&_0x361a67[_0xa3631a(0x9e0)]()>=_0xccdf0c)return;this[_0xa3631a(0x214)]=_0x361a67,this['_dpCustomEnd']=_0x5a7939;}}else this[_0xa3631a(0x124)]=Math[_0xa3631a(0xd2f)](0x0,this[_0xa3631a(0x124)]+_0x42daf8);this[_0xa3631a(0x94b)](),this[_0xa3631a(0x6fb)](),this[_0xa3631a(0x24c)]();}[_0x45b7b8(0x592)](){const _0x4279f9=_0x45b7b8;if(this[_0x4279f9(0x78c)]===_0x4279f9(0x281)&&this[_0x4279f9(0x214)]&&this[_0x4279f9(0x53e)]){const _0x3ab3d8=this[_0x4279f9(0x53e)][_0x4279f9(0x9e0)]()-this['_dpCustomStart'][_0x4279f9(0x9e0)]();if(_0x3ab3d8>0x0){const _0x3a5f1f=new Date(),_0x53b1e8=new Date(_0x3a5f1f[_0x4279f9(0xc18)](),_0x3a5f1f[_0x4279f9(0xaf5)](),_0x3a5f1f[_0x4279f9(0x5ae)](),_0x3a5f1f[_0x4279f9(0x6d6)](),_0x3a5f1f['getMinutes']()+0x1,0x0);this['_dpCustomEnd']=_0x53b1e8,this[_0x4279f9(0x214)]=new Date(_0x53b1e8[_0x4279f9(0x9e0)]()-_0x3ab3d8),this[_0x4279f9(0x94b)](),this[_0x4279f9(0x6fb)](),this[_0x4279f9(0x24c)]();return;}}this['_dpOffset']=0x0,this[_0x4279f9(0x214)]=null,this[_0x4279f9(0x53e)]=null,this[_0x4279f9(0x94b)](),this[_0x4279f9(0x6fb)](),this['_scheduleUpdate']();}[_0x45b7b8(0xd73)](_0x5ec7a5){const _0x14079f=_0x45b7b8;return _0x5ec7a5==='pph'?this[_0x14079f(0x9b6)]?.[_0x14079f(0x68c)]:_0x5ec7a5===_0x14079f(0x74d)?this['_config']?.[_0x14079f(0x92f)]:null;}[_0x45b7b8(0xd6c)](_0x39b8da){const _0x3be4df=_0x45b7b8,_0x124a8a=this[_0x3be4df(0xd73)](_0x39b8da);if(!_0x124a8a)return;window['dispatchEvent'](new CustomEvent(_0x3be4df(0x9f8),{'detail':{'kind':_0x39b8da,'group':_0x124a8a,'value':_0x39b8da===_0x3be4df(0x7a4)?isNum(toNum(this[_0x3be4df(0x112)]))?toNum(this['_overridePph']):null:this[_0x3be4df(0x239)]||null,'sourceId':this[_0x3be4df(0x705)]}}));}[_0x45b7b8(0x685)](_0x563a3f){const _0x4dad99=_0x45b7b8,_0x24c518=_0x563a3f[_0x4dad99(0xcae)]||{},_0x2891fd=this[_0x4dad99(0xd73)](_0x24c518[_0x4dad99(0xd2c)]);if(!_0x2891fd||!_0x24c518[_0x4dad99(0x4b2)]||_0x24c518['group']!==_0x2891fd)return;if(_0x24c518[_0x4dad99(0x695)]&&_0x24c518[_0x4dad99(0x695)]===this[_0x4dad99(0x705)])return;const _0x26ef5e=this['_overridePph'],_0x4dbcc5=this[_0x4dad99(0x239)];if(_0x24c518[_0x4dad99(0xd2c)]===_0x4dad99(0x7a4)){const _0x241292=toNum(_0x24c518['value']);this[_0x4dad99(0x112)]=isNum(_0x241292)?_0x241292:null;}else this[_0x4dad99(0x239)]=typeof _0x24c518[_0x4dad99(0xba7)]===_0x4dad99(0x5ea)&&_0x24c518['value']?_0x24c518[_0x4dad99(0xba7)]:null;if(this[_0x4dad99(0x112)]===_0x26ef5e&&this[_0x4dad99(0x239)]===_0x4dbcc5)return;const _0x824494={...this[_0x4dad99(0x9b6)]};this['_applyQueryOverrides'](_0x824494),this[_0x4dad99(0x9b6)]=_0x824494,this[_0x4dad99(0x48d)]();try{this[_0x4dad99(0x772)]?.[_0x4dad99(0x60e)]?.[_0x4dad99(0xc5)]?.();}catch(_0x32e389){}this['_updateHistory']()[_0x4dad99(0x32c)](_0x2575e7=>console['error']('[sgc]\x20query\x20sync\x20failed',_0x2575e7)),this['_scheduleRender']();}[_0x45b7b8(0x3df)](_0xf7af86){const _0x1f1b35=_0x45b7b8,_0xfb741c=_0xf7af86[_0x1f1b35(0xcae)]||{},_0x49d770=this[_0x1f1b35(0xd73)](_0xfb741c['kind']);if(!_0x49d770||!_0xfb741c[_0x1f1b35(0x4b2)]||_0xfb741c['group']!==_0x49d770)return;if(_0xfb741c[_0x1f1b35(0x2ef)]&&_0xfb741c[_0x1f1b35(0x2ef)]===this['_instanceId'])return;const _0x5bed61=_0xfb741c[_0x1f1b35(0xd2c)]===_0x1f1b35(0x7a4)?!!this['_config'][_0x1f1b35(0xa04)]:!!this[_0x1f1b35(0x9b6)][_0x1f1b35(0x94a)];if(!_0x5bed61)return;const _0x5d25d1=_0xfb741c[_0x1f1b35(0xd2c)]==='pph'?isNum(toNum(this['_overridePph'])):!!this[_0x1f1b35(0x239)];if(!_0x5d25d1)return;this[_0x1f1b35(0xd6c)](_0xfb741c['kind']);}[_0x45b7b8(0x41b)](){const _0x564244=_0x45b7b8,_0x22fb84=this[_0x564244(0x9b6)]?.[_0x564244(0x524)];if(!_0x22fb84)return;window[_0x564244(0x258)](new CustomEvent(_0x564244(0x684),{'detail':{'group':_0x22fb84,'hours':isNum(this[_0x564244(0x490)])?this[_0x564244(0x490)]:null,'label':this[_0x564244(0xb9b)]||null,'sourceId':this[_0x564244(0x705)]}}));}['_onIntervalSyncEvent'](_0x4b920e){const _0x377ae8=_0x45b7b8,_0xf59b4b=this[_0x377ae8(0x9b6)]?.['interval_picker_group'];if(!_0xf59b4b)return;const _0x168956=_0x4b920e['detail']||{};if(!_0x168956[_0x377ae8(0x4b2)]||_0x168956[_0x377ae8(0x4b2)]!==_0xf59b4b)return;if(_0x168956[_0x377ae8(0x695)]&&_0x168956[_0x377ae8(0x695)]===this['_instanceId'])return;const _0x4ec8a0=toNum(_0x168956['hours']);isNum(_0x4ec8a0)?(this[_0x377ae8(0x490)]=_0x4ec8a0,this['_activeIntervalLabel']=typeof _0x168956[_0x377ae8(0x72b)]===_0x377ae8(0x5ea)?_0x168956[_0x377ae8(0x72b)]:null):(this[_0x377ae8(0x490)]=null,this[_0x377ae8(0xb9b)]=null),this[_0x377ae8(0x96a)](),this[_0x377ae8(0x24c)](),this[_0x377ae8(0x970)]();}[_0x45b7b8(0xa1f)](_0x59d685){const _0x4efe36=_0x45b7b8,_0x1aac30=this['_config']?.[_0x4efe36(0x524)];if(!_0x1aac30)return;const _0x1b2ca6=_0x59d685['detail']||{};if(!_0x1b2ca6['group']||_0x1b2ca6[_0x4efe36(0x4b2)]!==_0x1aac30)return;if(_0x1b2ca6[_0x4efe36(0x2ef)]&&_0x1b2ca6[_0x4efe36(0x2ef)]===this['_instanceId'])return;if(!this['_config'][_0x4efe36(0x429)])return;if(!isNum(this[_0x4efe36(0x490)]))return;this[_0x4efe36(0x41b)]();}[_0x45b7b8(0x6fb)](){const _0x21f3b4=_0x45b7b8,_0x5a0372=this[_0x21f3b4(0x9b6)]?.[_0x21f3b4(0x4a5)];if(!_0x5a0372)return;window[_0x21f3b4(0x258)](new CustomEvent('sgc-datepicker-sync',{'detail':{'group':_0x5a0372,'mode':this[_0x21f3b4(0x78c)],'offset':this['_dpOffset'],'customStart':this['_dpCustomStart']?this[_0x21f3b4(0x214)]['toISOString']():null,'customEnd':this['_dpCustomEnd']?this[_0x21f3b4(0x53e)][_0x21f3b4(0x1e4)]():null,'sourceId':this['_instanceId']}}));}[_0x45b7b8(0x3c4)](_0x170e7c){const _0x3bf2da=_0x45b7b8,_0x534cdd=this[_0x3bf2da(0x9b6)]?.[_0x3bf2da(0x4a5)];if(!_0x534cdd)return;const _0x4f37aa=_0x170e7c[_0x3bf2da(0xcae)]||{};if(!_0x4f37aa[_0x3bf2da(0x4b2)]||_0x4f37aa[_0x3bf2da(0x4b2)]!==_0x534cdd)return;if(_0x4f37aa[_0x3bf2da(0x695)]&&_0x4f37aa['sourceId']===this[_0x3bf2da(0x705)])return;_0x4f37aa[_0x3bf2da(0x78a)]&&(_0x4f37aa[_0x3bf2da(0x78a)]===_0x3bf2da(0x281)||DATE_PICKER_VALID_MODES[_0x3bf2da(0x615)](_0x4f37aa[_0x3bf2da(0x78a)])||_0x4f37aa[_0x3bf2da(0x78a)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x3bf2da(0x78c)]=_0x4f37aa[_0x3bf2da(0x78a)]);typeof _0x4f37aa[_0x3bf2da(0x74a)]==='number'&&(this['_dpOffset']=_0x4f37aa[_0x3bf2da(0x74a)]);if(this[_0x3bf2da(0x78c)]!==_0x3bf2da(0x281)&&(this[_0x3bf2da(0x124)]||0x0)>0x0)this[_0x3bf2da(0x124)]=0x0;if(_0x4f37aa[_0x3bf2da(0x78a)]===_0x3bf2da(0x281)){if(_0x4f37aa[_0x3bf2da(0x42e)])this[_0x3bf2da(0x214)]=new Date(_0x4f37aa[_0x3bf2da(0x42e)]);if(_0x4f37aa['customEnd'])this[_0x3bf2da(0x53e)]=new Date(_0x4f37aa[_0x3bf2da(0xcd7)]);}else _0x4f37aa['mode']&&(DATE_PICKER_VALID_MODES['includes'](_0x4f37aa[_0x3bf2da(0x78a)])||_0x4f37aa[_0x3bf2da(0x78a)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x3bf2da(0x214)]=null,this['_dpCustomEnd']=null);this[_0x3bf2da(0x8a3)]=!![],this['_persistDatePicker'](),this[_0x3bf2da(0x24c)](),this[_0x3bf2da(0x970)]();}[_0x45b7b8(0x3a0)](_0x419bac){const _0x547be1=_0x45b7b8,_0x2cf5ce=this[_0x547be1(0x9b6)]&&this[_0x547be1(0x9b6)][_0x547be1(0x4a5)];if(!_0x2cf5ce)return;const _0x5c9449=_0x419bac['detail']||{};if(!_0x5c9449[_0x547be1(0x4b2)]||_0x5c9449[_0x547be1(0x4b2)]!==_0x2cf5ce)return;if(_0x5c9449['requesterId']&&_0x5c9449[_0x547be1(0x2ef)]===this[_0x547be1(0x705)])return;const _0x161ab5=!!this[_0x547be1(0x9b6)][_0x547be1(0x802)]||!!this[_0x547be1(0x9b6)]['date_picker_default_mode'];if(!_0x161ab5)return;this[_0x547be1(0x6fb)]();}set[_0x45b7b8(0xb46)](_0x9accbc){const _0x35e82e=_0x45b7b8,_0xb87e40=this[_0x35e82e(0xb79)],_0x268453=!_0xb87e40;this[_0x35e82e(0xb79)]=_0x9accbc;if(!this['_config'])return;if(_0x268453){this['_startEnergyDateSync']();if(_0x9accbc?.[_0x35e82e(0x100)])this[_0x35e82e(0x4d8)]();this[_0x35e82e(0x24c)]();return;}if(!this[_0x35e82e(0x19a)])return;let _0x2c289c=![],_0x19ecc0=![],_0x2ef870=![],_0x5b101b=![];if(this[_0x35e82e(0x228)]||this[_0x35e82e(0x442)][_0x35e82e(0x948)]||this[_0x35e82e(0xbbd)][_0x35e82e(0x948)]||this[_0x35e82e(0xa4)][_0x35e82e(0x948)]||this[_0x35e82e(0xaf6)][_0x35e82e(0x948)]||this[_0x35e82e(0x471)][_0x35e82e(0x948)]||this['_config'][_0x35e82e(0x4a8)]){const _0x3c6f43=_0x9accbc[_0x35e82e(0x81a)],_0xdf7303=_0xb87e40['states'];if(this[_0x35e82e(0x228)])for(const _0x442606 of this[_0x35e82e(0x461)]){if(!_0x442606[_0x35e82e(0x9ac)]||_0x442606[_0x35e82e(0x527)])continue;if(_0xdf7303[_0x442606[_0x35e82e(0x9ac)]]!==_0x3c6f43[_0x442606['entity']]){_0x2c289c=!![];break;}}if(!_0x2c289c&&this[_0x35e82e(0xbbd)][_0x35e82e(0x948)])for(const _0x5988a9 of this[_0x35e82e(0xbbd)]){if(_0xdf7303[_0x5988a9]!==_0x3c6f43[_0x5988a9]){_0x2c289c=!![];break;}}if(this['_priceRefIds'][_0x35e82e(0x948)])for(const _0x373561 of this[_0x35e82e(0xaf6)]){if(_0xdf7303[_0x373561]!==_0x3c6f43[_0x373561]){this[_0x35e82e(0x89c)]();break;}}if(this[_0x35e82e(0x442)][_0x35e82e(0x948)])for(const _0x55d93a of this[_0x35e82e(0x442)]){if(_0xdf7303[_0x55d93a]!==_0x3c6f43[_0x55d93a]){_0x19ecc0=!![];break;}}if(this[_0x35e82e(0x471)][_0x35e82e(0x948)])_0x5b101b=this['_processRefTicks'](_0x9accbc);const _0x4bb2bf=this[_0x35e82e(0x9b6)][_0x35e82e(0x4a8)];if(_0x4bb2bf&&_0xdf7303[_0x4bb2bf]!==_0x3c6f43[_0x4bb2bf])_0x2ef870=!![];if(this['_thrColorRefs'][_0x35e82e(0x948)])for(const _0x4a43d5 of this[_0x35e82e(0xa4)]){if(_0xdf7303[_0x4a43d5]!==_0x3c6f43[_0x4a43d5]){this[_0x35e82e(0xa89)]='',this[_0x35e82e(0x970)]();break;}}}_0x5b101b&&!_0x2c289c&&(this[_0x35e82e(0x4a1)]=!![],this[_0x35e82e(0x17d)]());if(!_0x2c289c&&!_0x19ecc0&&!_0x2ef870)return;if(this['_wsUnsub'])return;if(_0x2c289c)this[_0x35e82e(0x189)](_0x9accbc);if(_0x19ecc0)this[_0x35e82e(0xafe)](_0x9accbc);(_0x2c289c||_0x2ef870)&&this['shadowRoot']?.[_0x35e82e(0x845)]?.(_0x35e82e(0x140))&&this[_0x35e82e(0x841)]();}get['hass'](){return this['_hass'];}[_0x45b7b8(0x130)](){const _0x514dc7=_0x45b7b8;if(this[_0x514dc7(0x9b6)]&&this[_0x514dc7(0xb79)])this[_0x514dc7(0x24c)]();if(this[_0x514dc7(0x9b6)])this[_0x514dc7(0x33e)]();!this[_0x514dc7(0x9f3)]&&typeof ResizeObserver!==_0x514dc7(0x173)&&(this[_0x514dc7(0x9f3)]=new ResizeObserver(()=>this[_0x514dc7(0x970)]()),this['_resizeObserver'][_0x514dc7(0x71d)](this)),!this[_0x514dc7(0xc61)]&&(this['_syncHandler']=_0x44bec0=>this['_onTooltipSyncEvent'](_0x44bec0),window[_0x514dc7(0x8a9)](_0x514dc7(0x9fb),this[_0x514dc7(0xc61)])),!this[_0x514dc7(0x486)]&&(this[_0x514dc7(0x486)]=_0x6d600d=>this[_0x514dc7(0x880)](_0x6d600d),window[_0x514dc7(0x8a9)]('sgc-zoom-sync',this[_0x514dc7(0x486)])),!this[_0x514dc7(0x90f)]&&(this['_scrollSyncHandler']=_0x4bab35=>this[_0x514dc7(0xef)](_0x4bab35),window[_0x514dc7(0x8a9)]('sgc-scroll-sync',this[_0x514dc7(0x90f)])),this[_0x514dc7(0x70b)](),!this['_dpSyncHandler']&&(this['_dpSyncHandler']=_0x41b121=>this[_0x514dc7(0x3c4)](_0x41b121),window[_0x514dc7(0x8a9)](_0x514dc7(0x165),this[_0x514dc7(0xcf8)])),!this['_dpSyncRequestHandler']&&(this['_dpSyncRequestHandler']=_0x825814=>this[_0x514dc7(0x3a0)](_0x825814),window[_0x514dc7(0x8a9)](_0x514dc7(0xa6c),this[_0x514dc7(0x8c6)])),!this['_intervalSyncHandler']&&(this[_0x514dc7(0x1fb)]=_0x5bcd2f=>this['_onIntervalSyncEvent'](_0x5bcd2f),window[_0x514dc7(0x8a9)](_0x514dc7(0x684),this[_0x514dc7(0x1fb)])),!this['_intervalSyncRequestHandler']&&(this[_0x514dc7(0xd4)]=_0x39cdf1=>this[_0x514dc7(0xa1f)](_0x39cdf1),window[_0x514dc7(0x8a9)](_0x514dc7(0x655),this['_intervalSyncRequestHandler'])),this[_0x514dc7(0x9b6)]&&this[_0x514dc7(0x9b6)][_0x514dc7(0x524)]&&!this[_0x514dc7(0x1cc)]&&(this['_intervalInitialSyncDone']=!![],setTimeout(()=>{const _0x35db02=_0x514dc7;if(!this[_0x35db02(0x49b)])return;if(this['_config']['show_interval_picker']&&isNum(this['_overrideHoursToShow']))this[_0x35db02(0x41b)]();else!this[_0x35db02(0x9b6)][_0x35db02(0x429)]&&window[_0x35db02(0x258)](new CustomEvent(_0x35db02(0x655),{'detail':{'group':this[_0x35db02(0x9b6)][_0x35db02(0x524)],'requesterId':this[_0x35db02(0x705)]}}));},0x0)),!this['_querySyncHandler']&&(this[_0x514dc7(0x4cf)]=_0x5ca48d=>this[_0x514dc7(0x685)](_0x5ca48d),window[_0x514dc7(0x8a9)](_0x514dc7(0x9f8),this[_0x514dc7(0x4cf)])),!this['_querySyncRequestHandler']&&(this[_0x514dc7(0xa7f)]=_0x2b0ef7=>this['_onQuerySyncRequest'](_0x2b0ef7),window[_0x514dc7(0x8a9)](_0x514dc7(0x7d1),this[_0x514dc7(0xa7f)])),this[_0x514dc7(0x9b6)]&&(this[_0x514dc7(0x9b6)][_0x514dc7(0x68c)]||this[_0x514dc7(0x9b6)][_0x514dc7(0x92f)])&&!this[_0x514dc7(0x777)]&&(this['_queryInitialSyncDone']=!![],setTimeout(()=>{const _0x3e4976=_0x514dc7;if(!this[_0x3e4976(0x49b)])return;for(const _0x4593d0 of[_0x3e4976(0x7a4),_0x3e4976(0x74d)]){const _0xb102d7=this[_0x3e4976(0xd73)](_0x4593d0);if(!_0xb102d7)continue;const _0x4f4a2b=_0x4593d0===_0x3e4976(0x7a4)?this[_0x3e4976(0x9b6)][_0x3e4976(0xa04)]:this[_0x3e4976(0x9b6)][_0x3e4976(0x94a)],_0x316d78=_0x4593d0===_0x3e4976(0x7a4)?isNum(toNum(this[_0x3e4976(0x112)])):!!this[_0x3e4976(0x239)];if(_0x4f4a2b&&_0x316d78)this[_0x3e4976(0xd6c)](_0x4593d0);else!_0x4f4a2b&&window[_0x3e4976(0x258)](new CustomEvent('sgc-query-sync-request',{'detail':{'kind':_0x4593d0,'group':_0xb102d7,'requesterId':this[_0x3e4976(0x705)]}}));}},0x0)),this[_0x514dc7(0x9b6)]&&this['_config'][_0x514dc7(0x4a5)]&&!this[_0x514dc7(0x273)]&&(this[_0x514dc7(0x273)]=!![],setTimeout(()=>{const _0x44afe7=_0x514dc7;if(!this[_0x44afe7(0x49b)])return;const _0x5ec010=!!this[_0x44afe7(0x9b6)]['show_date_picker']||!!this[_0x44afe7(0x9b6)][_0x44afe7(0x643)];_0x5ec010?this['_broadcastDatePickerSync']():window[_0x44afe7(0x258)](new CustomEvent(_0x44afe7(0xa6c),{'detail':{'group':this[_0x44afe7(0x9b6)][_0x44afe7(0x4a5)],'requesterId':this['_instanceId']}}));},0x0)),!this[_0x514dc7(0x1a9)]&&(this[_0x514dc7(0x1a9)]=setInterval(()=>{const _0x31a9c9=_0x514dc7,_0x2cc70a=Date[_0x31a9c9(0xcca)]();for(const [_0x259a63,_0x3321b7]of this['_fetcher'][_0x31a9c9(0x60e)]){if(_0x2cc70a-_0x3321b7['ts']>FETCH_CACHE_TTL_MS)this[_0x31a9c9(0x772)]['_cache'][_0x31a9c9(0x906)](_0x259a63);}},0x5*0x3c*0x3e8));}[_0x45b7b8(0x179)](){const _0x22861f=_0x45b7b8;this[_0x22861f(0x9d3)]=(this[_0x22861f(0x9d3)]||0x0)+0x1;this[_0x22861f(0xbfd)]&&(clearTimeout(this[_0x22861f(0xbfd)]),this['_priceTrailTimer']=null);this[_0x22861f(0x9f3)]&&(this[_0x22861f(0x9f3)][_0x22861f(0x6e6)](),this[_0x22861f(0x9f3)]=null);this[_0x22861f(0xb1e)]&&(this[_0x22861f(0xb1e)][_0x22861f(0x6e6)](),this[_0x22861f(0xb1e)]=null);this[_0x22861f(0x837)]&&(cancelAnimationFrame(this[_0x22861f(0x837)]),this[_0x22861f(0x837)]=0x0);this[_0x22861f(0xd1c)]&&(this[_0x22861f(0xd1c)][_0x22861f(0x51d)](),this[_0x22861f(0xd1c)]=null);if(this[_0x22861f(0xb0)])for(const _0x47fb47 of this[_0x22861f(0xb0)][_0x22861f(0x5e7)]()){_0x47fb47&&_0x47fb47[_0x22861f(0x1ad)]&&(_0x47fb47[_0x22861f(0x1ad)][_0x22861f(0x51d)](),_0x47fb47[_0x22861f(0x1ad)]=null);}this['_renderRAF']&&(cancelAnimationFrame(this[_0x22861f(0x460)]),this[_0x22861f(0x460)]=null),this[_0x22861f(0x3ef)]&&(clearInterval(this[_0x22861f(0x3ef)]),this[_0x22861f(0x3ef)]=null),this[_0x22861f(0x532)]&&(clearTimeout(this[_0x22861f(0x532)]),this['_liveFlushTimer']=null),this[_0x22861f(0xcb9)]&&(clearInterval(this[_0x22861f(0xcb9)]),this[_0x22861f(0xcb9)]=null),this['_syncHandler']&&(window[_0x22861f(0xd04)](_0x22861f(0x9fb),this[_0x22861f(0xc61)]),this[_0x22861f(0xc61)]=null),this['_zoomSyncHandler']&&(window['removeEventListener'](_0x22861f(0xa91),this['_zoomSyncHandler']),this[_0x22861f(0x486)]=null),this['_scrollSyncHandler']&&(window[_0x22861f(0xd04)](_0x22861f(0xcaf),this[_0x22861f(0x90f)]),this['_scrollSyncHandler']=null),this[_0x22861f(0x8c7)]=null,this[_0x22861f(0x8ae)]=null,this[_0x22861f(0xa71)](),this['_unsubscribeEvents'](),this[_0x22861f(0x6f5)](),this[_0x22861f(0xa66)]=null,this[_0x22861f(0xcf8)]&&(window['removeEventListener']('sgc-datepicker-sync',this['_dpSyncHandler']),this[_0x22861f(0xcf8)]=null),this[_0x22861f(0x8c6)]&&(window[_0x22861f(0xd04)](_0x22861f(0xa6c),this[_0x22861f(0x8c6)]),this[_0x22861f(0x8c6)]=null),this[_0x22861f(0x273)]=![],this[_0x22861f(0x1fb)]&&(window['removeEventListener'](_0x22861f(0x684),this['_intervalSyncHandler']),this[_0x22861f(0x1fb)]=null),this['_intervalSyncRequestHandler']&&(window['removeEventListener'](_0x22861f(0x655),this['_intervalSyncRequestHandler']),this[_0x22861f(0xd4)]=null),this[_0x22861f(0x1cc)]=![],this[_0x22861f(0x4cf)]&&(window['removeEventListener'](_0x22861f(0x9f8),this[_0x22861f(0x4cf)]),this[_0x22861f(0x4cf)]=null),this[_0x22861f(0xa7f)]&&(window[_0x22861f(0xd04)](_0x22861f(0x7d1),this[_0x22861f(0xa7f)]),this[_0x22861f(0xa7f)]=null),this[_0x22861f(0x777)]=![],this[_0x22861f(0x1a9)]&&(clearInterval(this[_0x22861f(0x1a9)]),this[_0x22861f(0x1a9)]=null),this[_0x22861f(0xa89)]='';}['_onTooltipSyncEvent'](_0x58c83b){const _0x3b0ae1=_0x45b7b8,_0x2ff9aa=this['_config'];if(!_0x2ff9aa?.['tooltip_sync'])return;const _0x19663a=_0x58c83b[_0x3b0ae1(0xcae)]||{};if(_0x19663a[_0x3b0ae1(0x695)]&&_0x19663a[_0x3b0ae1(0x695)]===this['_instanceId'])return;const _0x5c83b5=_0x2ff9aa[_0x3b0ae1(0x8c4)]||null,_0x4c048f=_0x19663a[_0x3b0ae1(0x4b2)]||null;if(_0x5c83b5!==_0x4c048f)return;_0x19663a[_0x3b0ae1(0x356)]===null||_0x19663a[_0x3b0ae1(0x356)]===undefined?this['_hideSyncedTooltip']?.():this[_0x3b0ae1(0x8c7)]?.(_0x19663a['time']);}[_0x45b7b8(0xa42)](){const _0x24cc36=_0x45b7b8,_0x5168b8=Array[_0x24cc36(0x1d7)](this[_0x24cc36(0xc8)])&&this[_0x24cc36(0xc8)]['length']?this[_0x24cc36(0xc8)][_0x24cc36(0xae9)]():null;this['_viewWindow']=_0x5168b8||null,this[_0x24cc36(0xa89)]='',this['_render'](),this[_0x24cc36(0x9b6)]?.[_0x24cc36(0x34e)]&&window[_0x24cc36(0x258)](new CustomEvent('sgc-zoom-sync',{'detail':{'tStart':_0x5168b8?_0x5168b8[_0x24cc36(0x866)][_0x24cc36(0x9e0)]():null,'tEnd':_0x5168b8?_0x5168b8['end'][_0x24cc36(0x9e0)]():null,'group':this[_0x24cc36(0x9b6)][_0x24cc36(0x79c)]||null,'sourceId':this[_0x24cc36(0x705)]}}));}[_0x45b7b8(0x880)](_0x1ea23d){const _0x5e9d6f=_0x45b7b8,_0x203f46=this[_0x5e9d6f(0x9b6)];if(!_0x203f46?.['zoom_sync'])return;const _0x1a86f0=_0x1ea23d['detail']||{};if(_0x1a86f0['sourceId']&&_0x1a86f0[_0x5e9d6f(0x695)]===this[_0x5e9d6f(0x705)])return;const _0x2a277b=_0x203f46[_0x5e9d6f(0x79c)]||null,_0xa49a0e=_0x1a86f0['group']||null;if(_0x2a277b!==_0xa49a0e)return;if(_0x1a86f0['tStart']==null||_0x1a86f0[_0x5e9d6f(0x128)]==null)this[_0x5e9d6f(0xadb)]&&(this[_0x5e9d6f(0xadb)]=null,this[_0x5e9d6f(0xa89)]='',this[_0x5e9d6f(0x656)]());else{const _0x4a59df=new Date(_0x1a86f0[_0x5e9d6f(0xbae)]),_0x402ba8=new Date(_0x1a86f0[_0x5e9d6f(0x128)]),_0xc9769e=this['_viewWindow'];if(_0xc9769e&&_0xc9769e[_0x5e9d6f(0x866)]instanceof Date&&_0xc9769e[_0x5e9d6f(0xbdf)]instanceof Date&&_0xc9769e['start'][_0x5e9d6f(0x9e0)]()===_0x4a59df[_0x5e9d6f(0x9e0)]()&&_0xc9769e[_0x5e9d6f(0xbdf)][_0x5e9d6f(0x9e0)]()===_0x402ba8[_0x5e9d6f(0x9e0)]())return;this[_0x5e9d6f(0xadb)]={'start':_0x4a59df,'end':_0x402ba8},this['_graphFingerprint']='',this[_0x5e9d6f(0x656)]();}}[_0x45b7b8(0xef)](_0x144b77){const _0x164da3=_0x45b7b8,_0x28214c=this[_0x164da3(0x9b6)];if(!_0x28214c?.[_0x164da3(0x5ef)])return;const _0x186837=_0x144b77['detail']||{};if(_0x186837['sourceId']&&_0x186837[_0x164da3(0x695)]===this[_0x164da3(0x705)])return;const _0x4cab50=_0x28214c[_0x164da3(0xda)]||null,_0x362a9d=_0x186837[_0x164da3(0x4b2)]||null;if(_0x4cab50!==_0x362a9d)return;if(!isNum(_0x186837[_0x164da3(0xd0d)]))return;const _0x5cd592=this[_0x164da3(0x4ad)]?.[_0x164da3(0x845)](_0x164da3(0x463));if(!_0x5cd592)return;const _0xbc7745=_0x5cd592[_0x164da3(0x669)]-_0x5cd592[_0x164da3(0x652)];if(_0xbc7745<=0x0)return;const _0x4c0e28=Math[_0x164da3(0xc78)](0x0,Math[_0x164da3(0xd2f)](_0xbc7745,_0x186837['ratio']*_0xbc7745));if(Math[_0x164da3(0x533)](_0x5cd592[_0x164da3(0xaa4)]-_0x4c0e28)<0x1)return;this['_suppressScrollDispatch']=!![],_0x5cd592[_0x164da3(0xaa4)]=_0x4c0e28,requestAnimationFrame(()=>{this['_suppressScrollDispatch']=![];});}['_maMaxLeadMs'](_0x2cd7dd){const _0xbdf395=_0x45b7b8;let _0x47508c=0x0;for(const _0x522476 of this[_0xbdf395(0x461)]||[]){if(!_0x522476||_0x522476[_0xbdf395(0x8bf)]||_0x522476['data_attribute'])continue;const _0x4cc7e2=resolvePointsPerHour(this[_0xbdf395(0x9b6)],_0x522476,_0x2cd7dd),_0x6e8d51=resolveGroupBy(this['_config'],_0x2cd7dd),_0x3afe2a=groupBucketMs(_0x6e8d51,this[_0xbdf395(0x9b6)][_0xbdf395(0x275)],_0x4cc7e2);if(!isNum(_0x3afe2a)||_0x3afe2a<=0x0)continue;(_0x522476[_0xbdf395(0x234)]===_0xbdf395(0x6dc)||_0x522476[_0xbdf395(0x234)]===_0xbdf395(0x68e)||_0x522476[_0xbdf395(0x234)]===_0xbdf395(0xc7f))&&(_0x47508c=Math[_0xbdf395(0xc78)](_0x47508c,Math['min'](_0x3afe2a,0x18*0x36ee80)));const _0x4b7013=Array['isArray'](_0x522476[_0xbdf395(0x392)])?_0x522476['moving_averages']:null;if(!_0x4b7013||!_0x4b7013[_0xbdf395(0x230)])continue;let _0x9ecbed=0x0;for(const _0xca776a of _0x4b7013){const _0x7b983e=Math[_0xbdf395(0xd3f)](toNum(_0xca776a?.[_0xbdf395(0x81d)])||0x0);if(_0x7b983e>_0x9ecbed)_0x9ecbed=_0x7b983e;}if(_0x9ecbed<0x2)continue;_0x47508c=Math[_0xbdf395(0xc78)](_0x47508c,(_0x9ecbed-0x1)*_0x3afe2a);}return _0x47508c;}[_0x45b7b8(0x330)](){const _0x2e1fec=_0x45b7b8;return Math['max'](0x3,Math[_0x2e1fec(0x5db)]((toNum(this[_0x2e1fec(0x9b6)]?.[_0x2e1fec(0x931)])||0x96)/0x32));}['_applyFillHeight'](){const _0x1c3809=_0x45b7b8,_0x245356=this[_0x1c3809(0x9b6)]?.[_0x1c3809(0x931)],_0x55326f=_0x245356==null||_0x245356===_0x1c3809(0x917)||_0x245356==='',_0x1c759f=(_0x529dc7,_0x49f41e)=>{const _0x10dcee=_0x1c3809;if(!_0x529dc7)return;if(_0x529dc7[_0x10dcee(0x394)]&&_0x529dc7[_0x10dcee(0x394)][_0x10dcee(0x24e)])_0x529dc7[_0x10dcee(0x394)][_0x10dcee(0x9bb)](_0x10dcee(0x32e),_0x49f41e);else{const _0x224094=_0x529dc7[_0x10dcee(0xa59)]&&_0x529dc7[_0x10dcee(0xa59)](_0x10dcee(0x1f0))||'',_0xb572ca=_0x224094['split'](/\s+/)[_0x10dcee(0x615)](_0x10dcee(0x32e));if(_0x49f41e&&!_0xb572ca&&_0x529dc7[_0x10dcee(0xb9c)])_0x529dc7['setAttribute']('class',(_0x224094+_0x10dcee(0x5d4))[_0x10dcee(0x28f)]());else{if(!_0x49f41e&&_0xb572ca&&_0x529dc7[_0x10dcee(0xb9c)])_0x529dc7['setAttribute'](_0x10dcee(0x1f0),_0x224094['split'](/\s+/)[_0x10dcee(0xbb6)](_0x49baec=>_0x49baec!=='sgc-fill-height')[_0x10dcee(0xcdc)]('\x20'));}}},_0x55c892=this[_0x1c3809(0x4ad)]?.[_0x1c3809(0x845)](_0x1c3809(0x902))||this[_0x1c3809(0x4ad)]?.[_0x1c3809(0x845)](_0x1c3809(0xaa8));_0x1c759f(this,_0x55326f),_0x1c759f(_0x55c892,_0x55326f);if(_0x55326f){if(!this[_0x1c3809(0xb1e)]&&typeof ResizeObserver!=='undefined'){let _0x2be9a5=0x0;this[_0x1c3809(0xb1e)]=new ResizeObserver(()=>{const _0x1c5641=_0x1c3809,_0x1e6319=this['shadowRoot']?.[_0x1c5641(0x845)]('.sgc-plot'),_0x31aa13=_0x1e6319?.['clientHeight']||0x0;if(Math['abs'](_0x31aa13-_0x2be9a5)>0x2){_0x2be9a5=_0x31aa13;if(this[_0x1c5641(0x837)])cancelAnimationFrame(this['_fillRaf']);this['_fillRaf']=requestAnimationFrame(()=>{const _0x1262e4=_0x1c5641;this[_0x1262e4(0x837)]=0x0,this['_graphFingerprint']='';try{this[_0x1262e4(0x656)]();}catch(_0x1d454a){}});}}),this[_0x1c3809(0xb1e)][_0x1c3809(0x71d)](this);}}else this[_0x1c3809(0xb1e)]&&(this[_0x1c3809(0xb1e)][_0x1c3809(0x6e6)](),this['_fillResizeObs']=null);}[_0x45b7b8(0xd78)](){const _0x4e3785=_0x45b7b8,_0x1d6029=this[_0x4e3785(0x9b6)]?.[_0x4e3785(0x363)]||{},_0x5813cb={'min_rows':0x2,'min_columns':0x4};if(_0x1d6029[_0x4e3785(0xb32)]!=null&&_0x1d6029['rows']!==_0x4e3785(0x917))_0x5813cb[_0x4e3785(0xb32)]=_0x1d6029[_0x4e3785(0xb32)];if(_0x1d6029[_0x4e3785(0x9fe)]!=null)_0x5813cb['columns']=_0x1d6029[_0x4e3785(0x9fe)];return _0x5813cb;}[_0x45b7b8(0x76d)](){return this['_config'];}[_0x45b7b8(0x33e)](){const _0x1b469e=_0x45b7b8;this['_pollTimer']&&(clearInterval(this[_0x1b469e(0x3ef)]),this[_0x1b469e(0x3ef)]=null);const _0x84aa1d=toNum(this[_0x1b469e(0x9b6)][_0x1b469e(0x92b)]);if(isNum(_0x84aa1d)&&_0x84aa1d>0x0)this[_0x1b469e(0x3ef)]=setInterval(()=>{const _0x46d04c=_0x1b469e;this[_0x46d04c(0x772)][_0x46d04c(0x2ed)](),this[_0x46d04c(0x24c)]();},_0x84aa1d*0x3e8);else this[_0x1b469e(0x8ca)]()&&(this[_0x1b469e(0x3ef)]=setInterval(()=>{const _0x563c18=_0x1b469e;this['_fetcher'][_0x563c18(0x2ed)](),this['_scheduleUpdate']();},0x5*0x3c*0x3e8));this['_slideTimer']&&(clearInterval(this[_0x1b469e(0xcb9)]),this[_0x1b469e(0xcb9)]=null),this[_0x1b469e(0x228)]&&this[_0x1b469e(0xb06)]()&&(this[_0x1b469e(0xcb9)]=setInterval(()=>this[_0x1b469e(0x3f3)](),LIVE_SLIDE_INTERVAL_MS));}[_0x45b7b8(0x8ca)](){const _0x3a3fa9=_0x45b7b8;if(!this[_0x3a3fa9(0x461)]?.[_0x3a3fa9(0x230)])return![];return this[_0x3a3fa9(0x461)][_0x3a3fa9(0x870)](_0x1b4757=>this['_isHistoryAggregated'](_0x1b4757));}[_0x45b7b8(0x194)](){const _0x48ddbc=_0x45b7b8,_0x7186ea=this[_0x48ddbc(0x9b6)];if(_0x7186ea[_0x48ddbc(0x802)])return![];if(_0x7186ea['date_picker_group']&&this['_dpSynced'])return![];if(_0x7186ea[_0x48ddbc(0xb28)]&&this[_0x48ddbc(0xb5e)])return![];return!_0x7186ea[_0x48ddbc(0x59f)];}[_0x45b7b8(0xb06)](){const _0x146b5f=_0x45b7b8,_0x4af34d=this['_config'];if(_0x4af34d[_0x146b5f(0x802)]||_0x4af34d[_0x146b5f(0x4a5)]&&this[_0x146b5f(0x8a3)]){if(this['_dpMode']===_0x146b5f(0x281))return![];if((this[_0x146b5f(0x124)]||0x0)!==0x0)return![];}if(_0x4af34d[_0x146b5f(0xb28)]&&this[_0x146b5f(0x81f)]&&this[_0x146b5f(0x81f)]['getTime']()<=Date[_0x146b5f(0xcca)]())return![];return!![];}[_0x45b7b8(0x36f)](_0x5816df){const _0x545451=_0x45b7b8,_0x4c6134=_0x5816df?.[_0x545451(0xb02)]||_0x5816df?.[_0x545451(0x33b)];if(_0x4c6134===_0x545451(0xb67)||_0x4c6134===_0x545451(0x4f3))return!![];return this[_0x545451(0xb06)]();}[_0x45b7b8(0x24c)](){const _0x3df506=_0x45b7b8;if(this[_0x3df506(0x2b4)])return;this[_0x3df506(0x2b4)]=!![],Promise[_0x3df506(0xbb2)]()[_0x3df506(0x404)](()=>{const _0x3fa373=_0x3df506;this[_0x3fa373(0x2b4)]=![],this['_updateHistory']()[_0x3fa373(0x32c)](_0xc9af49=>console['error']('[sgc]\x20update\x20failed',_0xc9af49));});}[_0x45b7b8(0x970)](){const _0x3ff667=_0x45b7b8;if(this['_renderRAF'])return;this[_0x3ff667(0x460)]=requestAnimationFrame(()=>{const _0x4604fa=_0x3ff667;this[_0x4604fa(0x460)]=null,this[_0x4604fa(0x656)]();});}[_0x45b7b8(0x54b)](_0x7b2211,_0x2d8918){const _0x4848c0=_0x45b7b8;if(!_0x7b2211||typeof _0x7b2211!==_0x4848c0(0x5ea)||!_0x7b2211['includes']('{{')&&!_0x7b2211[_0x4848c0(0x615)]('{%'))return _0x7b2211;return this['_resolvedTemplateColors'][_0x4848c0(0x809)](this[_0x4848c0(0x846)](_0x7b2211,_0x2d8918||null))||null;}[_0x45b7b8(0x761)](_0x35a8c5,_0x2b2d85){const _0x482b0d=_0x45b7b8;return this[_0x482b0d(0x54b)](_0x35a8c5,_0x2b2d85);}[_0x45b7b8(0x310)](_0x3f647c,_0x480ce2){const _0x287d5c=_0x45b7b8;if(typeof _0x3f647c!=='string'||!_0x3f647c[_0x287d5c(0x615)]('{{')&&!_0x3f647c[_0x287d5c(0x615)]('{%'))return _0x3f647c;return this[_0x287d5c(0x116)][_0x287d5c(0x809)](this[_0x287d5c(0x846)](_0x3f647c,_0x480ce2||null))??null;}[_0x45b7b8(0x99f)](_0x404bea,_0x6f49d8){const _0x30c238=_0x45b7b8,_0x459f73=this[_0x30c238(0x54b)](_0x404bea,_0x6f49d8);if(!_0x459f73||typeof _0x459f73!=='string'||!_0x459f73[_0x30c238(0x615)](_0x30c238(0x8ea)))return _0x459f73;try{const _0x19a59d=this[_0x30c238(0x4ad)]?.[_0x30c238(0x845)](_0x30c238(0x902))||this['shadowRoot']||this,_0x59e111=document['createElement'](_0x30c238(0xc95));_0x59e111[_0x30c238(0x538)][_0x30c238(0xacd)]=_0x459f73,_0x59e111[_0x30c238(0x538)][_0x30c238(0x8b4)]=_0x30c238(0x209),_0x19a59d[_0x30c238(0xceb)](_0x59e111);const _0x44020c=getComputedStyle(_0x59e111)[_0x30c238(0xacd)];return _0x59e111['remove'](),_0x44020c&&_0x44020c!==''?_0x44020c:_0x459f73;}catch(_0x28956a){return _0x459f73;}}[_0x45b7b8(0x982)](){const _0x2c6688=_0x45b7b8,_0x1bc2b8=this[_0x2c6688(0x116)];if(!_0x1bc2b8)return![];let _0x2a4455=![];if(this['_tplBoolCard']&&this[_0x2c6688(0x9b6)])for(const _0xe9b562 in this[_0x2c6688(0x9b0)]){const _0xdd7f56=parseTemplateBool(_0x1bc2b8[_0x2c6688(0x809)](this[_0x2c6688(0x9b0)][_0xe9b562]),CARD_DEFAULTS[_0xe9b562]);this['_config'][_0xe9b562]!==_0xdd7f56&&(this[_0x2c6688(0x9b6)][_0xe9b562]=_0xdd7f56,_0x2a4455=!![]);}if(this[_0x2c6688(0xce3)]&&this[_0x2c6688(0x461)]){const _0xe68a92=new Set([_0x2c6688(0x16d),_0x2c6688(0xc74),_0x2c6688(0x976),_0x2c6688(0xbca),_0x2c6688(0x8ab),'show_fill',_0x2c6688(0x872),_0x2c6688(0x395)]);for(let _0x13541c=0x0;_0x13541c{const _0x2975ed=_0x4c26ef;if(!_0x4938b2[_0x2975ed(0xd4f)](_0x26c316))_0x4938b2[_0x2975ed(0x4f1)](_0x26c316,{'template':_0x26c316,'entId':null});};if(this[_0x4c26ef(0x9b0)]){for(const _0xa49a51 in this['_tplBoolCard'])_0x42c989(this[_0x4c26ef(0x9b0)][_0xa49a51]);}for(let _0x499b37=0x0;_0x499b37<(this[_0x4c26ef(0xce3)]||[])[_0x4c26ef(0x230)];_0x499b37++){const _0x8d272=this[_0x4c26ef(0xce3)][_0x499b37];if(!_0x8d272)continue;const _0x586cfb=this['_entities']?.[_0x499b37]?.['entity']||null;for(const _0xed1d16 in _0x8d272){const _0x30d891=this[_0x4c26ef(0x846)](_0x8d272[_0xed1d16],_0x586cfb);if(!_0x4938b2['has'](_0x30d891))_0x4938b2[_0x4c26ef(0x4f1)](_0x30d891,{'template':_0x8d272[_0xed1d16],'entId':_0x30d891===_0x8d272[_0xed1d16]?null:_0x586cfb});}}const _0x4ed1f0=[_0x4c26ef(0xacd),_0x4c26ef(0x8da),_0x4c26ef(0x2a0),_0x4c26ef(0x683),_0x4c26ef(0x3e7),'name',_0x4c26ef(0xc46)];for(const _0xd8b76 of this[_0x4c26ef(0x461)]||[]){for(const _0x1d1cc6 of _0x4ed1f0){const _0x122760=_0xd8b76[_0x1d1cc6];if(typeof _0x122760===_0x4c26ef(0x5ea)&&(_0x122760['includes']('{{')||_0x122760['includes']('{%'))){const _0x2fc35f=_0xd8b76[_0x4c26ef(0x9ac)]||null,_0x2ed08b=this[_0x4c26ef(0x846)](_0x122760,_0x2fc35f);if(!_0x4938b2['has'](_0x2ed08b))_0x4938b2['set'](_0x2ed08b,{'template':_0x122760,'entId':_0x2ed08b===_0x122760?null:_0x2fc35f});}}}const _0x1365b1=['y_axis_color',_0x4c26ef(0x80a),_0x4c26ef(0xc73),'y_grid_color',_0x4c26ef(0x9e2),_0x4c26ef(0x5b9),_0x4c26ef(0x2aa)];for(const _0x12fae1 of _0x1365b1){const _0x3005b8=this[_0x4c26ef(0x9b6)]?.[_0x12fae1];if(typeof _0x3005b8===_0x4c26ef(0x5ea)&&(_0x3005b8[_0x4c26ef(0x615)]('{{')||_0x3005b8[_0x4c26ef(0x615)]('{%')))_0x42c989(_0x3005b8);}for(const _0x1278f4 of this[_0x4c26ef(0x9b6)]?.[_0x4c26ef(0xaef)]||[]){for(const _0x2af2e5 of[_0x4c26ef(0x866),_0x4c26ef(0xbdf),_0x4c26ef(0x356),_0x4c26ef(0xba7),_0x4c26ef(0xad1),_0x4c26ef(0x72b)]){const _0x3e93f7=_0x1278f4?.[_0x2af2e5];if(typeof _0x3e93f7===_0x4c26ef(0x5ea)&&(_0x3e93f7[_0x4c26ef(0x615)]('{{')||_0x3e93f7['includes']('{%')))_0x42c989(_0x3e93f7);}}const _0x3eb316=_0x4938b2[_0x4c26ef(0x948)]+':'+[..._0x4938b2['keys']()][_0x4c26ef(0xa8e)]()['join']('\x0a');if(_0x3eb316===this[_0x4c26ef(0xa66)]&&this[_0x4c26ef(0x4df)][_0x4c26ef(0x230)]===_0x4938b2[_0x4c26ef(0x948)])return;this[_0x4c26ef(0xa66)]=_0x3eb316,this['_teardownColorTemplates']();if(!_0x4938b2['size'])return;for(const [_0x28b894,_0x1064d1]of _0x4938b2){try{const _0x32a04f=this[_0x4c26ef(0xb79)][_0x4c26ef(0x100)][_0x4c26ef(0xab7)](_0x44befc=>{const _0xd4d351=_0x4c26ef,_0x4a1a34=normalizeTemplateResult(_0x44befc?.[_0xd4d351(0xd06)]);if(!_0x4a1a34)return;const _0x528983=this[_0xd4d351(0x116)][_0xd4d351(0x809)](_0x28b894);if(_0x528983===_0x4a1a34)return;this[_0xd4d351(0x116)][_0xd4d351(0x4f1)](_0x28b894,_0x4a1a34),this['_applyTemplatedBools'](),this[_0xd4d351(0xa89)]='',this[_0xd4d351(0x970)]();},_0x1064d1[_0x4c26ef(0xa32)]?{'type':_0x4c26ef(0x4b9),'template':_0x1064d1[_0x4c26ef(0x2f7)],'variables':{'entity':_0x1064d1[_0x4c26ef(0xa32)]}}:{'type':_0x4c26ef(0x4b9),'template':_0x1064d1[_0x4c26ef(0x2f7)]});_0x32a04f['then'](_0x11da35=>{const _0x17df2e=_0x4c26ef;this['_colorTemplateUnsubs'][_0x17df2e(0x9f2)](_0x11da35);})['catch'](()=>{});}catch(_0x42da1a){console[_0x4c26ef(0x5f3)](_0x4c26ef(0x5d7),_0x1064d1[_0x4c26ef(0x2f7)],_0x42da1a);}}}[_0x45b7b8(0x6f5)](){const _0x5ce03c=_0x45b7b8;for(const _0x4cbdc1 of this['_colorTemplateUnsubs']){try{if(typeof _0x4cbdc1===_0x5ce03c(0x57f))_0x4cbdc1();}catch{}}this['_colorTemplateUnsubs']=[];}[_0x45b7b8(0x171)](_0x4577d3){const _0x1a55cf=_0x45b7b8;if(!_0x4577d3||!this[_0x1a55cf(0xb79)]||!this[_0x1a55cf(0x9b6)])return _0x4577d3;const _0x432b3d=this[_0x1a55cf(0x9b6)],_0x61536f=toNum(_0x432b3d[_0x1a55cf(0xb83)])>0x0;if(_0x432b3d[_0x1a55cf(0x5fd)]||_0x432b3d['graph_start']&&!_0x61536f)return _0x4577d3;if(_0x4577d3['end'][_0x1a55cf(0x9e0)]()_0x5381e3)_0x5381e3=_0x3a5052;}return _0x5381e3>_0x4577d3[_0x1a55cf(0xbdf)]['getTime']()&&(_0x4577d3[_0x1a55cf(0xbdf)]=new Date(_0x5381e3+0x36ee80)),_0x4577d3;}async[_0x45b7b8(0x9c4)](){const _0x360b09=_0x45b7b8;if(!this[_0x360b09(0xb79)]||!this[_0x360b09(0x9b6)])return;const _0x1c551e=this[_0x360b09(0x9d3)]=(this[_0x360b09(0x9d3)]||0x0)+0x1;this['_nowStampMs']=Date['now'](),this['_window']=this[_0x360b09(0x7d8)](),this[_0x360b09(0xc8)]=[],this[_0x360b09(0x171)](this[_0x360b09(0x352)]);const _0x353d97=toNum(this[_0x360b09(0x9b6)]?.[_0x360b09(0xb83)]),_0x4401b0=toNum(this[_0x360b09(0x9b6)]?.[_0x360b09(0x5e3)]),_0x3a47e7=isNum(_0x4401b0)&&_0x4401b0>0x0?new Date(Math[_0x360b09(0xd2f)](_0x4401b0,this[_0x360b09(0x352)][_0x360b09(0xbdf)]['getTime']())):this[_0x360b09(0x352)]['end'],_0x24fd40=isNum(_0x353d97)&&_0x353d97>0x0?{'start':new Date(_0x3a47e7[_0x360b09(0x9e0)]()-_0x353d97*0x36ee80),'end':_0x3a47e7}:this[_0x360b09(0x352)];for(const _0x1f35ca of this[_0x360b09(0x461)]){if(_0x1f35ca&&_0x1f35ca[_0x360b09(0x2f6)]!=null&&_0x1f35ca[_0x360b09(0xb1)]){const _0x446494=resolveOffsetHours(this[_0x360b09(0x461)][_0x1f35ca[_0x360b09(0x2f6)]]?.['offset'],this[_0x360b09(0xb79)])||0x0;_0x1f35ca[_0x360b09(0x74a)]=_0x446494+this[_0x360b09(0x80e)](_0x1f35ca[_0x360b09(0xb1)],_0x24fd40);}}const {start:_0x310e39,end:_0x227bf8}=this[_0x360b09(0x352)],_0x50bab4=_0x310e39['getTime']();let _0x55343e=_0x227bf8['getTime']();const _0x5a47b9=this[_0x360b09(0x9b6)],_0x30e026=Math['max'](0x1,(_0x55343e-_0x50bab4)/0x36ee80);Object[_0x360b09(0x222)](_0x5a47b9,_0x360b09(0x1c6),{'value':activeScaleRule(_0x5a47b9,(_0x55343e-_0x50bab4)/0x36ee80),'enumerable':![],'writable':!![],'configurable':!![]});const _0xdf1761=[];for(const _0x16d5e7 of this[_0x360b09(0x461)]||[]){_0x16d5e7?.[_0x360b09(0x527)]&&!(this['_statMeta']&&_0x16d5e7['statistic_id']in this[_0x360b09(0x37d)])&&_0xdf1761['push'](_0x16d5e7[_0x360b09(0x527)]);}if(_0xdf1761[_0x360b09(0x230)]){try{await this[_0x360b09(0x8f1)](_0xdf1761);}catch{}if(_0x1c551e!==this[_0x360b09(0x9d3)])return;}const _0x3cea77=this['_getDataSourceForRange'](_0x30e026);this[_0x360b09(0xc5f)](_0x30e026);const _0xf8dc47=_0x679bd8=>{const _0x457713=_0x360b09;if(!_0x679bd8)return![];if(_0x679bd8['fixed_value']||_0x679bd8[_0x457713(0x6e9)]||_0x679bd8[_0x457713(0x1e0)]||_0x679bd8[_0x457713(0x83e)])return![];if(autoStateMap(_0x679bd8,this['_hass'],this[_0x457713(0x9b6)]?.[_0x457713(0x5f9)]))return![];if(_0x679bd8[_0x457713(0x527)])return!![];if(_0x3cea77[_0x457713(0xb14)]!==_0x457713(0x37e))return![];return this[_0x457713(0x6de)](_0x679bd8);},_0x159c09=new Map(),_0x4d62f2=new Map(),_0x277407=new Array(this[_0x360b09(0x461)]['length'])[_0x360b09(0xaf3)](null),_0xb8177e=new Array(this[_0x360b09(0x461)][_0x360b09(0x230)])[_0x360b09(0xaf3)](![]);this[_0x360b09(0x461)][_0x360b09(0x1ce)]((_0x5b9bfe,_0x3c229e)=>{const _0x147610=_0x360b09;if(_0x5b9bfe['fixed_value'])return;if(_0x5b9bfe['data_attribute'])return;const _0x5383b4=resolveOffsetHours(_0x5b9bfe[_0x147610(0x74a)],this[_0x147610(0xb79)]);if(_0xf8dc47(_0x5b9bfe)){const _0x878eb1=this['_getStatId'](_0x5b9bfe);if(!_0x4d62f2[_0x147610(0xd4f)](_0x5383b4))_0x4d62f2[_0x147610(0x4f1)](_0x5383b4,[]);const _0x740fcf=_0x4d62f2['get'](_0x5383b4);if(!_0x740fcf[_0x147610(0x615)](_0x878eb1))_0x740fcf[_0x147610(0x9f2)](_0x878eb1);_0x277407[_0x3c229e]=_0x878eb1+'__'+_0x5383b4,_0xb8177e[_0x3c229e]=!![];}else{if(_0x5b9bfe[_0x147610(0x9ac)]){if(!_0x159c09[_0x147610(0xd4f)](_0x5383b4))_0x159c09[_0x147610(0x4f1)](_0x5383b4,[]);const _0x3c3622=_0x159c09['get'](_0x5383b4),_0x34c10c=_0x5b9bfe['entity'];!_0x3c3622[_0x147610(0x740)](_0x285850=>_0x285850['id']===_0x34c10c)&&_0x3c3622[_0x147610(0x9f2)]({'id':_0x34c10c,'attribute':this[_0x147610(0x2a3)](_0x5b9bfe,_0x3c229e)}),_0x277407[_0x3c229e]=_0x34c10c+'__'+_0x5383b4;}}});const _0x2b4cbe=this['_config'][_0x360b09(0x9ef)]!==![],_0x2ae51d=_0x3cea77[_0x360b09(0xb14)]===_0x360b09(0x37e)?_0x3cea77[_0x360b09(0x81d)]:_0x360b09(0xd59),_0x18f85e={},_0x307894={};let _0x1b2af4=0x0;for(const _0x1e5973 of this['_entities']||[]){const _0x1c3f23=toNum(_0x1e5973?.[_0x360b09(0xb87)]);if(_0x1c3f23>0x0&&_0x1c3f23*0x36ee80>_0x1b2af4)_0x1b2af4=_0x1c3f23*0x36ee80;}const _0x243c69=this[_0x360b09(0x9a2)]((_0x55343e-_0x50bab4)/0x36ee80),_0x85fa5c=[];for(const [_0x451573,_0x38be5c]of _0x159c09){const _0x2b34f5=_0x451573*0x36ee80,_0xab7cd0=new Date(_0x50bab4-_0x2b34f5-_0x1b2af4-_0x243c69),_0xf9e19d=new Date(_0x55343e-_0x2b34f5);_0x85fa5c['push'](this[_0x360b09(0x772)][_0x360b09(0xc4)](this[_0x360b09(0xb79)],_0x38be5c,_0xab7cd0,_0xf9e19d,_0x2b4cbe)[_0x360b09(0x404)](_0x5b2b1b=>{const _0x544fdb=_0x360b09;for(const _0xc6ffb8 in _0x5b2b1b){const _0x37949e=_0x2b34f5!==0x0?_0x5b2b1b[_0xc6ffb8][_0x544fdb(0x963)](_0x239a22=>({..._0x239a22,'t':_0x239a22['t']+_0x2b34f5})):_0x5b2b1b[_0xc6ffb8];_0x307894[_0xc6ffb8+'__'+_0x451573]=_0x37949e;}}));}const _0x28a7ba=new Set();for(const _0x340f89 of this[_0x360b09(0x461)]){if(!_0xf8dc47(_0x340f89))continue;const _0x397da0=DataProcessor[_0x360b09(0x766)](_0x340f89[_0x360b09(0x234)]||_0x360b09(0x7f0));for(const _0x4b2ad9 of _0x397da0)_0x28a7ba['add'](_0x4b2ad9);if((_0x340f89[_0x360b09(0x234)]||_0x360b09(0x7f0))===_0x360b09(0xc78))_0x28a7ba['add']('min');(_0x340f89[_0x360b09(0x234)]||_0x360b09(0x7f0))===_0x360b09(0x34c)&&(_0x28a7ba[_0x360b09(0x24e)]('min'),_0x28a7ba[_0x360b09(0x24e)](_0x360b09(0xc78))),_0x340f89['show_range_band']&&(_0x28a7ba[_0x360b09(0x24e)](_0x360b09(0xd2f)),_0x28a7ba[_0x360b09(0x24e)]('max'));}if(!_0x28a7ba[_0x360b09(0x948)])_0x28a7ba[_0x360b09(0x24e)](_0x360b09(0x10b));const _0x4ee17e=Array[_0x360b09(0xd22)](_0x28a7ba);for(const [_0x5905dd,_0x56da76]of _0x4d62f2){const _0x38e24e=_0x5905dd*0x36ee80,_0x3f48f8=new Date(_0x50bab4-_0x38e24e-_0x1b2af4-_0x243c69),_0x3bfcdb=new Date(_0x55343e-_0x38e24e);_0x85fa5c[_0x360b09(0x9f2)](this[_0x360b09(0x772)][_0x360b09(0xa79)](this[_0x360b09(0xb79)],_0x56da76,_0x3f48f8,_0x3bfcdb,_0x2ae51d,_0x2b4cbe,_0x4ee17e)[_0x360b09(0x404)](async _0x581c96=>{const _0x236bb0=_0x360b09;if(_0x2ae51d==='5minute'){const _0x36bf39=_0x50bab4-_0x38e24e,_0x4a0286=0x36ee80,_0x33c4bf=[];for(const _0x1a1ee8 of _0x56da76){const _0x61eb11=_0x581c96[_0x1a1ee8];if(!_0x61eb11||!_0x61eb11['length']){_0x33c4bf['push'](_0x1a1ee8);continue;}if(!isNum(_0x61eb11[0x0]?.['t'])||_0x61eb11[0x0]['t']-_0x36bf39>_0x4a0286)_0x33c4bf[_0x236bb0(0x9f2)](_0x1a1ee8);}if(_0x33c4bf['length'])try{const _0x481f8a=await this['_fetcher'][_0x236bb0(0xa79)](this[_0x236bb0(0xb79)],_0x33c4bf,_0x3f48f8,_0x3bfcdb,'hour',_0x2b4cbe,_0x4ee17e);for(const _0x18462d of _0x33c4bf){const _0x330f9d=_0x581c96[_0x18462d],_0x118382=_0x481f8a[_0x18462d];if(!_0x118382||!_0x118382[_0x236bb0(0x230)])continue;if(!_0x330f9d||!_0x330f9d[_0x236bb0(0x230)]){_0x581c96[_0x18462d]=_0x118382;continue;}const _0xdb124c=_0x330f9d[0x0]['t'],_0xeadf4b=_0x118382[_0x236bb0(0xbb6)](_0x1949e8=>_0x1949e8['t']<_0xdb124c);_0x581c96[_0x18462d]=_0xeadf4b[_0x236bb0(0x230)]?_0xeadf4b[_0x236bb0(0x76a)](_0x330f9d):_0x330f9d;}}catch{}}for(const _0x434048 in _0x581c96){const _0x442eb5=_0x38e24e!==0x0?_0x581c96[_0x434048][_0x236bb0(0x963)](_0x1b3305=>({..._0x1b3305,'t':_0x1b3305['t']+_0x38e24e})):_0x581c96[_0x434048];_0x18f85e[_0x434048+'__'+_0x5905dd]=_0x442eb5;}}));}const _0x19bd27=new Map(),_0x27e71f=new Map();for(const _0x58e3b5 of this[_0x360b09(0x461)]){if(!_0x58e3b5?.[_0x360b09(0x3a8)]||_0x58e3b5[_0x360b09(0x8bf)]||_0x58e3b5['data_attribute'])continue;const _0x4822f6=resolveOffsetHours(_0x58e3b5['offset'],this[_0x360b09(0xb79)])||0x0,_0x45e4ae=_0x58e3b5[_0x360b09(0x3a8)]+'__'+_0x4822f6;if(_0x27e71f['has'](_0x45e4ae))continue;const _0x451090=this['_hass']?.[_0x360b09(0x81a)]?.[_0x58e3b5[_0x360b09(0x3a8)]]?.[_0x360b09(0x74e)]?.[_0x360b09(0xbf5)],_0x236cfb=_0x451090===_0x360b09(0xae5)||_0x451090===_0x360b09(0x44b)||_0x451090==='total_increasing';_0x27e71f[_0x360b09(0x4f1)](_0x45e4ae,{'id':_0x58e3b5[_0x360b09(0x3a8)],'attribute':_0x58e3b5[_0x360b09(0xd0e)]||null,'offH':_0x4822f6,'useStats':_0x3cea77[_0x360b09(0xb14)]===_0x360b09(0x37e)&&_0x236cfb&&!_0x58e3b5[_0x360b09(0xd0e)]});}for(const [_0x291d33,_0x2cb512]of _0x27e71f){const _0x4a131b=_0x2cb512[_0x360b09(0x691)]*0x36ee80,_0x204f3d=new Date(_0x50bab4-_0x4a131b-_0x1b2af4-_0x243c69-0x5265c00),_0x14c049=new Date(_0x55343e-_0x4a131b);_0x2cb512['useStats']?_0x85fa5c['push'](this[_0x360b09(0x772)]['fetchStatistics'](this[_0x360b09(0xb79)],[_0x2cb512['id']],_0x204f3d,_0x14c049,_0x360b09(0xd59),_0x2b4cbe,['mean'])[_0x360b09(0x404)](_0x49de03=>{const _0x47f4c7=_0x360b09,_0x4bb139=[];for(const _0xc4179e of _0x49de03[_0x2cb512['id']]||[]){if(isNum(_0xc4179e[_0x47f4c7(0x10b)]))_0x4bb139[_0x47f4c7(0x9f2)]({'t':_0xc4179e['t']+_0x4a131b,'v':_0xc4179e['mean']});}_0x19bd27[_0x47f4c7(0x4f1)](_0x291d33,_0x4bb139);})):_0x85fa5c[_0x360b09(0x9f2)](this[_0x360b09(0x772)][_0x360b09(0xc4)](this['_hass'],[{'id':_0x2cb512['id'],'attribute':_0x2cb512['attribute']}],_0x204f3d,_0x14c049,_0x2b4cbe)[_0x360b09(0x404)](_0x1df259=>{const _0x537ce2=_0x360b09,_0x568bd5=[];for(const _0x4d6ddf of _0x1df259[_0x2cb512['id']]||[]){const _0x8810d2=_0x2cb512[_0x537ce2(0x1e0)]?getAttributePath(_0x4d6ddf[_0x537ce2(0x74e)],_0x2cb512['attribute']):_0x4d6ddf['state'],_0x5798a7=toNum(_0x8810d2);if(_0x5798a7!==null)_0x568bd5[_0x537ce2(0x9f2)]({'t':_0x4d6ddf['t']+_0x4a131b,'v':_0x5798a7});}_0x19bd27[_0x537ce2(0x4f1)](_0x291d33,_0x568bd5);}));}const _0x5c9937=new Map(),_0xa29f71=new Map();this[_0x360b09(0x461)]['forEach']((_0x31a741,_0x18a68c)=>{const _0x25eaf4=_0x360b09;if(!_0x31a741?.['ref_entity']||_0x31a741[_0x25eaf4(0x8bf)]||_0x31a741['data_attribute'])return;const _0x535cd4=resolveOffsetHours(_0x31a741['offset'],this[_0x25eaf4(0xb79)])||0x0,_0x4104b9=this[_0x25eaf4(0xb79)]?.['states']?.[_0x31a741[_0x25eaf4(0x408)]]?.[_0x25eaf4(0x74e)]?.[_0x25eaf4(0xbf5)],_0x184736=_0x4104b9===_0x25eaf4(0xae5)||_0x4104b9==='total'||_0x4104b9===_0x25eaf4(0x941),_0x352402=_0xb8177e[_0x18a68c]&&_0x184736&&!_0x31a741[_0x25eaf4(0x97a)],_0x53f8a4=_0x352402?_0x2ae51d:_0x25eaf4(0x1cf),_0x3605fe=refJobKey(_0x31a741,_0x535cd4,_0x53f8a4);_0x31a741[_0x25eaf4(0x7a9)]=_0x3605fe;if(_0xa29f71[_0x25eaf4(0xd4f)](_0x3605fe))return;_0xa29f71[_0x25eaf4(0x4f1)](_0x3605fe,{'id':_0x31a741[_0x25eaf4(0x408)],'attribute':_0x31a741[_0x25eaf4(0x97a)]||null,'offH':_0x535cd4,'useStats':_0x352402});});for(const [_0x32e8c8,_0x270021]of _0xa29f71){const _0xa1068d=_0x270021['offH']*0x36ee80,_0x34ac8a=new Date(_0x50bab4-_0xa1068d-_0x1b2af4-_0x243c69-0x5265c00),_0x3e29ee=new Date(_0x55343e-_0xa1068d),_0x5e64e3=()=>this[_0x360b09(0x772)][_0x360b09(0xc4)](this[_0x360b09(0xb79)],[{'id':_0x270021['id'],'attribute':_0x270021[_0x360b09(0x1e0)]}],_0x34ac8a,_0x3e29ee,_0x2b4cbe)['then'](_0x5d3e03=>{const _0x2b3788=_0x360b09,_0x599000=[];for(const _0x5e319c of _0x5d3e03[_0x270021['id']]||[]){const _0x4bd921=_0x270021[_0x2b3788(0x1e0)]?getAttributePath(_0x5e319c[_0x2b3788(0x74e)],_0x270021[_0x2b3788(0x1e0)]):_0x5e319c[_0x2b3788(0x992)],_0x23ff29=toNum(_0x4bd921);if(_0x23ff29!==null)_0x599000[_0x2b3788(0x9f2)]({'t':_0x5e319c['t']+_0xa1068d,'v':_0x23ff29});}_0x5c9937['set'](_0x32e8c8,{'samples':_0x599000,'statPeriodMs':0x0,'id':_0x270021['id'],'attribute':_0x270021[_0x2b3788(0x1e0)],'offH':_0x270021[_0x2b3788(0x691)]});});if(_0x270021[_0x360b09(0x55e)]){const _0x48371e=_0x2ae51d===_0x360b09(0x282)?_0x360b09(0xd59):_0x2ae51d,_0x2f1fc5={'5minute':0x493e0,'hour':0x36ee80,'day':0x5265c00,'week':0x240c8400,'month':0x9a7ec800}[_0x48371e]||0x36ee80;_0x85fa5c[_0x360b09(0x9f2)](this[_0x360b09(0x772)]['fetchStatistics'](this[_0x360b09(0xb79)],[_0x270021['id']],_0x34ac8a,_0x3e29ee,_0x48371e,_0x2b4cbe,[_0x360b09(0x10b),'state'])['then'](_0xfaf144=>{const _0x11fd79=_0x360b09,_0x154c10=[];for(const _0x12cb64 of _0xfaf144[_0x270021['id']]||[]){const _0x4cf9ba=isNum(_0x12cb64[_0x11fd79(0x10b)])?_0x12cb64[_0x11fd79(0x10b)]:isNum(_0x12cb64['state'])?_0x12cb64[_0x11fd79(0x992)]:null;if(_0x4cf9ba!==null)_0x154c10['push']({'t':_0x12cb64['t']+_0xa1068d,'v':_0x4cf9ba});}const _0xc276ca=_0x154c10['length']?_0x154c10[0x0]['t']-(_0x34ac8a['getTime']()+_0xa1068d):Infinity;if(!_0x154c10[_0x11fd79(0x230)]||_0xc276ca>_0x2f1fc5*0x2)return _0x5e64e3();_0x5c9937[_0x11fd79(0x4f1)](_0x32e8c8,{'samples':_0x154c10,'statPeriodMs':_0x2f1fc5,'id':_0x270021['id'],'attribute':_0x270021[_0x11fd79(0x1e0)],'offH':_0x270021['offH']});}));}else _0x85fa5c[_0x360b09(0x9f2)](_0x5e64e3());}await Promise[_0x360b09(0x2e9)](_0x85fa5c);if(_0x1c551e!==this[_0x360b09(0x9d3)])return;this['_priceSeries']=_0x19bd27,this[_0x360b09(0x623)]=_0x5c9937,this[_0x360b09(0x7c2)]=Object[_0x360b09(0x526)](null);const _0x3d15b0=_0x50bab4-_0x1b2af4-_0x243c69,_0x17388d=this[_0x360b09(0x9b6)]?.['include_area_names']?buildAreaSuffixes(this['_hass'],this[_0x360b09(0x461)],this[_0x360b09(0x37d)]):null;this['_areaDisambig']=_0x17388d;const _0xa1beba=this[_0x360b09(0x461)][_0x360b09(0x963)]((_0x37725e,_0x14bd20)=>{const _0x53d361=_0x360b09;let _0x1be2f1;if(_0x37725e[_0x53d361(0x8bf)]){const _0x3b2d61=this['_hass'][_0x53d361(0x81a)][_0x37725e[_0x53d361(0x9ac)]],_0x4ea1de=this[_0x53d361(0x2a3)](_0x37725e,_0x14bd20),_0x3db3e9=_0x4ea1de?getAttributePath(_0x3b2d61?.[_0x53d361(0x74e)],_0x4ea1de):_0x3b2d61?.[_0x53d361(0x992)],_0x3f00a5=toNum(_0x3db3e9);_0x3f00a5!==null?_0x1be2f1=[{'t':_0x50bab4,'v':_0x3f00a5},{'t':_0x55343e,'v':_0x3f00a5}]:_0x1be2f1=[];}else{if(_0x37725e[_0x53d361(0x6e9)]){const _0x1d6465=this[_0x53d361(0xb79)][_0x53d361(0x81a)][_0x37725e['entity']];_0x1be2f1=synthesizeForecastSeries(_0x1d6465,_0x37725e,this[_0x53d361(0x352)]['start'],this['_hass']);}else{if(_0xf8dc47(_0x37725e)){const _0x22faaa=_0x277407[_0x14bd20],_0x5cd274=_0x22faaa&&_0x18f85e[_0x22faaa]||[];_0x1be2f1=_0x5cd274[_0x53d361(0x963)](_0x22d61b=>{const _0x33fd7e=_0x53d361,_0x1426f8={'t':_0x22d61b['t'],'v':DataProcessor[_0x33fd7e(0xbc0)](_0x22d61b,_0x37725e[_0x33fd7e(0x234)])};(_0x37725e[_0x33fd7e(0xbca)]||_0x37725e['aggregate_func']===_0x33fd7e(0x34c))&&isNum(_0x22d61b['min'])&&isNum(_0x22d61b[_0x33fd7e(0xc78)])&&(_0x1426f8[_0x33fd7e(0x11f)]=_0x22d61b[_0x33fd7e(0xd2f)],_0x1426f8['bMax']=_0x22d61b['max']);if(_0x37725e[_0x33fd7e(0x234)]===_0x33fd7e(0xc78)){if(isNum(_0x22d61b[_0x33fd7e(0x10b)]))_0x1426f8[_0x33fd7e(0x8b8)]=_0x22d61b[_0x33fd7e(0x10b)];if(isNum(_0x22d61b['min']))_0x1426f8['sMin']=_0x22d61b[_0x33fd7e(0xd2f)];}return _0x1426f8;})[_0x53d361(0xbb6)](_0x2fd9be=>_0x2fd9be['v']!==null&&isNum(_0x2fd9be['v'])&&_0x2fd9be['t']>=_0x3d15b0);if(_0x37725e[_0x53d361(0x234)]==='change'&&_0x37725e[_0x53d361(0x3fa)]===!![]&&_0x5cd274[_0x53d361(0x230)]>0x0){const _0x449122=_0x5cd274[_0x53d361(0x963)](_0xc81ec3=>({'t':_0xc81ec3['t'],'v':isNum(_0xc81ec3[_0x53d361(0x992)])?_0xc81ec3[_0x53d361(0x992)]:isNum(_0xc81ec3['mean'])?_0xc81ec3[_0x53d361(0x10b)]:null}))['filter'](_0xc23d8=>isNum(_0xc23d8['v'])&&_0xc23d8['v']!==0x0&&_0xc23d8['t']>=_0x3d15b0);_0x1be2f1=_0x449122['map']((_0xf3c20d,_0x5c6682)=>({'t':_0xf3c20d['t'],'v':_0x5c6682===0x0?0x0:Math[_0x53d361(0xc78)](0x0,_0xf3c20d['v']-_0x449122[_0x5c6682-0x1]['v'])}));}else{if((_0x37725e['aggregate_func']==='change'||_0x37725e['aggregate_func']===_0x53d361(0xc7f))&&_0x5cd274[_0x53d361(0x230)]>0x0){const _0x3c07e8=_0x5cd274[_0x53d361(0x870)](_0x43a5d9=>isNum(_0x43a5d9[_0x53d361(0x68e)])),_0x2f7ec7=_0x5cd274[_0x53d361(0x870)](_0x240185=>isNum(_0x240185['sum']));if(!_0x3c07e8&&_0x2f7ec7&&_0x1be2f1['length']>0x1){const _0xa6df7=_0x1be2f1[_0x53d361(0x963)](_0x187809=>_0x187809['v']);_0x1be2f1[0x0]['v']=0x0;for(let _0x588c1f=0x1;_0x588c1f<_0x1be2f1[_0x53d361(0x230)];_0x588c1f++){_0x1be2f1[_0x588c1f]['v']=_0xa6df7[_0x588c1f]-_0xa6df7[_0x588c1f-0x1];}}else{if(!_0x3c07e8&&!_0x2f7ec7&&_0x37725e['aggregate_func']===_0x53d361(0x68e)&&_0x1be2f1[_0x53d361(0x230)]>0x1){const _0x771930=this['_isCounterEntity'](_0x37725e),_0x430cea=_0x1be2f1[_0x53d361(0x963)](_0x5cd438=>_0x5cd438['v']);_0x1be2f1[0x0]['v']=0x0;for(let _0x7b7e02=0x1;_0x7b7e02<_0x1be2f1['length'];_0x7b7e02++){const _0x474649=_0x430cea[_0x7b7e02]-_0x430cea[_0x7b7e02-0x1];_0x1be2f1[_0x7b7e02]['v']=_0x771930&&_0x474649<0x0?0x0:_0x474649;}}}_0x37725e[_0x53d361(0x234)]===_0x53d361(0xc7f)&&_0x5cd274[_0x53d361(0x230)]>0x0&&_0x1be2f1[_0x53d361(0x230)]===0x0&&!this[_0x53d361(0xbc8)]&&(this[_0x53d361(0xbc8)]=!![],console[_0x53d361(0x5f3)](_0x53d361(0x108)+this[_0x53d361(0x907)](_0x37725e)+_0x53d361(0x445)+'rows\x20carry\x20no\x20sum/change\x20columns\x20(measurement\x20sensor).\x20Summing\x20means\x20is\x20'+'not\x20meaningful\x20—\x20use\x20\x22avg\x22,\x20\x22max\x22\x20or\x20\x22change\x22\x20instead.\x20Series\x20left\x20empty.'));}}}else{const _0x49c436=_0x277407[_0x14bd20],_0x1021c6=_0x49c436&&_0x307894[_0x49c436]||[],_0x511495=this[_0x53d361(0x2a3)](_0x37725e,_0x14bd20),_0x45d3b0=_0x37725e['state_map']&&_0x37725e[_0x53d361(0x83e)][_0x53d361(0x230)]?_0x37725e[_0x53d361(0x83e)]:_0x511495?null:autoStateMap(_0x37725e,this['_hass'],this[_0x53d361(0x9b6)]?.[_0x53d361(0x5f9)]);_0x1be2f1=_0x1021c6[_0x53d361(0x963)](_0x39c8c6=>{const _0x2ab96f=_0x53d361,_0x4f312e=_0x511495?getAttributePath(_0x39c8c6['attributes'],_0x511495):_0x39c8c6[_0x2ab96f(0x992)];let _0x509e27;_0x45d3b0?_0x509e27=applyStateMap(_0x4f312e,_0x45d3b0)[_0x2ab96f(0xba7)]:_0x509e27=parseFloat(_0x4f312e);if(isNaN(_0x509e27))return null;return{'t':_0x39c8c6['t'],'v':_0x509e27};})[_0x53d361(0xbb6)](Boolean);}}}if(_0x37725e[_0x53d361(0x6e9)]){const _0x1efb52=toNum(_0x37725e[_0x53d361(0xb87)])||0x0,_0x20e931=_0x1efb52<0x0?_0x55343e-_0x1efb52*0x36ee80:_0x55343e;_0x1be2f1=_0x1be2f1['filter'](_0x1a1a2a=>_0x1a1a2a['t']>=_0x50bab4&&_0x1a1a2a['t']<=_0x20e931);}const _0x2e6867=toNum(_0x37725e[_0x53d361(0xb87)]);if(_0x2e6867&&_0x2e6867!==0x0&&Array[_0x53d361(0x1d7)](_0x1be2f1)&&_0x1be2f1[_0x53d361(0x230)]){const _0x5b605b=_0x2e6867*0x36ee80;_0x1be2f1=_0x1be2f1[_0x53d361(0x963)](_0x52df48=>({..._0x52df48,'t':_0x52df48['t']+_0x5b605b}));}_0x1b2af4>0x0&&Array['isArray'](_0x1be2f1)&&_0x1be2f1['length']&&(_0x1be2f1=_0x1be2f1[_0x53d361(0xbb6)](_0x4f4bc7=>_0x4f4bc7['t']>=_0x50bab4&&_0x4f4bc7['t']<=_0x55343e));const _0x28661c=this['_liveStateRaw'](_0x1be2f1,_0x37725e,_0x14bd20,_0x50bab4,_0x55343e),{points:_0x27b23c,maSeries:_0x27a05e}=this[_0x53d361(0xaab)](_0x28661c,_0x37725e,_0xb8177e[_0x14bd20],_0x50bab4,_0x55343e,_0x243c69),_0x5dfc74=this['_hass'][_0x53d361(0x81a)][_0x37725e[_0x53d361(0x9ac)]]||{},_0x5356ab=_0x37725e[_0x53d361(0x527)]||_0x37725e['entity'],_0x547d6a=_0x5356ab&&this[_0x53d361(0x37d)]?.[_0x5356ab]||null,_0x160bae=_0x17388d?_0x17388d['get'](_0x37725e[_0x53d361(0x2f6)]!=null?_0x37725e['_compareOf']:_0x14bd20)||'':'';let _0x201d96=_0x5dfc74[_0x53d361(0x74e)]?.[_0x53d361(0xc8b)]||_0x547d6a?.[_0x53d361(0x10d)];if(_0x37725e[_0x53d361(0x408)]&&!_0x37725e[_0x53d361(0x10d)]&&!_0x37725e[_0x53d361(0x8bf)]&&!_0x37725e[_0x53d361(0x6e9)]){const _0x2d18ec=this[_0x53d361(0xb79)]?.[_0x53d361(0x81a)]?.[_0x37725e[_0x53d361(0x408)]]?.['attributes']?.[_0x53d361(0xc8b)]||_0x37725e[_0x53d361(0x408)],_0xbca18=_0x201d96||_0x37725e[_0x53d361(0x9ac)]||'',_0x3ecf0b=normalizeRefOp(_0x37725e[_0x53d361(0x5cd)]);_0x201d96=_0x3ecf0b===_0x53d361(0xccb)?_0x2d18ec+_0x53d361(0x3e8)+_0xbca18:_0x3ecf0b===_0x53d361(0x6b2)?_0x2d18ec+_0x53d361(0x746)+_0xbca18:_0xbca18+({'add':_0x53d361(0x21d),'multiply':_0x53d361(0x9d5),'divide':'\x20÷\x20'}[_0x3ecf0b]||_0x53d361(0x3e8))+_0x2d18ec;}const _0x5ec3b2={'friendly_name':_0x160bae?(_0x201d96||'')+_0x160bae:_0x201d96,'unit_of_measurement':_0x5dfc74[_0x53d361(0x74e)]?.[_0x53d361(0xcc8)]||_0x547d6a?.[_0x53d361(0xcc8)],'icon':_0x5dfc74[_0x53d361(0x74e)]?.[_0x53d361(0x3e7)],'resolved_name':this[_0x53d361(0x310)](_0x37725e['name'],_0x37725e[_0x53d361(0x9ac)]),'resolved_tooltip_name':this[_0x53d361(0x310)](_0x37725e[_0x53d361(0xc46)],_0x37725e['entity'])};if(_0x37725e[_0x53d361(0x2f6)]!=null){const _0x4f36f1=this['_entities'][_0x37725e[_0x53d361(0x2f6)]],_0x4416e4=_0x4f36f1&&!isTemplateString(_0x4f36f1[_0x53d361(0x10d)])&&_0x4f36f1[_0x53d361(0x10d)]||this[_0x53d361(0x310)](_0x4f36f1?.[_0x53d361(0x10d)],_0x4f36f1?.['entity'])||_0x5ec3b2[_0x53d361(0xc8b)]||_0x37725e[_0x53d361(0x9ac)]||_0x37725e[_0x53d361(0x527)],_0x49b415=Math['max'](0x1,Math[_0x53d361(0xa4c)](toNum(_0x37725e['_compareCfg']?.[_0x53d361(0x2f4)])||0x1)),_0xcd9c8a='\x20('+cardT(this[_0x53d361(0xb79)],this[_0x53d361(0x9b6)],COMPARE_PERIOD_LABELS[_0x37725e[_0x53d361(0xb1)]?.[_0x53d361(0x81d)]]||_0x53d361(0xd17))+(_0x49b415>0x1?'\x20×'+_0x49b415:'')+')';_0x5ec3b2[_0x53d361(0xc8b)]=_0x4416e4+_0xcd9c8a,_0x5ec3b2[_0x53d361(0x901)]=_0x4416e4+_0xcd9c8a,_0x5ec3b2[_0x53d361(0x1a2)]=null;}return{'idx':_0x14bd20,'id':(_0x37725e[_0x53d361(0x9ac)]||_0x37725e[_0x53d361(0x527)])+'__'+_0x14bd20,'entity':_0x37725e,'points':_0x27b23c,'raw':_0x1be2f1,'meta':_0x5ec3b2,'_isStat':_0xb8177e[_0x14bd20],'stats':DataProcessor[_0x53d361(0x101)](_0x27b23c),'maSeries':_0x27a05e??DataProcessor[_0x53d361(0x71e)](_0x27b23c,_0x37725e)};}),_0xac6fd4=this[_0x360b09(0x30c)]>0x0?this['offsetWidth']:0x320,_0xf8a4f=Math[_0x360b09(0xd2f)](0xbb8,Math[_0x360b09(0xc78)](0x190,_0xac6fd4*0x2));for(const _0x4d2c0c of _0xa1beba){_0x4d2c0c['points']&&_0x4d2c0c[_0x360b09(0xaf8)][_0x360b09(0x230)]>_0xf8a4f&&(_0x4d2c0c[_0x360b09(0xaf8)]=DataProcessor[_0x360b09(0x97f)](_0x4d2c0c[_0x360b09(0xaf8)],_0xf8a4f)),_0x4d2c0c[_0x360b09(0x6be)]=resolveBucketPrecision(_0x4d2c0c[_0x360b09(0xaf8)]),_0x4d2c0c['_preciseTsResolved']=![];}this[_0x360b09(0x550)]={'series':_0xa1beba};const _0x338a4d=await this[_0x360b09(0x7d4)](_0x310e39,_0x227bf8);if(_0x1c551e!==this['_updateSeq'])return;this[_0x360b09(0x75e)]=_0x338a4d,this['_prevStamps']=Object[_0x360b09(0x526)](null);if(this[_0x360b09(0x228)])for(const _0x1672d9 of this[_0x360b09(0x461)]){if(!_0x1672d9[_0x360b09(0x9ac)]||_0x1672d9['statistic_id'])continue;const _0x2c7038=this['_hass']['states'][_0x1672d9['entity']];if(_0x2c7038)this[_0x360b09(0x50b)][_0x1672d9[_0x360b09(0x9ac)]]=_0x2c7038[_0x360b09(0xb3)]||_0x2c7038[_0x360b09(0x80c)]||null;}this[_0x360b09(0x415)]=Object[_0x360b09(0x526)](null);for(const _0x251033 of this['_annotationRefs']){const _0x41a28d=this[_0x360b09(0xb79)][_0x360b09(0x81a)][_0x251033];if(_0x41a28d)this[_0x360b09(0x415)][_0x251033]=_0x41a28d['last_updated']||_0x41a28d[_0x360b09(0x80c)]||null;}this[_0x360b09(0x19a)]=!![];if(!this['isConnected'])return;this['_subscribeEvents'](),this[_0x360b09(0x4d8)](),this['_render'](),this[_0x360b09(0xba)]();}[_0x45b7b8(0xba)](){const _0x2d7efd=_0x45b7b8;if(this[_0x2d7efd(0xb52)])return;this[_0x2d7efd(0xb52)]=!![];const _0x503ab0=()=>{const _0x4b59c3=_0x2d7efd;this['_precisePending']=![],this[_0x4b59c3(0x297)]()[_0x4b59c3(0x32c)](()=>{});};typeof requestAnimationFrame===_0x2d7efd(0x57f)?requestAnimationFrame(_0x503ab0):setTimeout(_0x503ab0,0x0);}async['_resolvePreciseRecordTimes'](){const _0x14fe4f=_0x45b7b8;if(!this[_0x14fe4f(0xb79)]?.[_0x14fe4f(0x513)]||!this[_0x14fe4f(0x550)]?.[_0x14fe4f(0x134)])return;if(!this[_0x14fe4f(0x9de)])this[_0x14fe4f(0x9de)]=new Map();const _0x57c0e2=[],_0x2e4707=this['_entities']||[];for(const _0x357c69 of this[_0x14fe4f(0x550)][_0x14fe4f(0x134)]){if(!_0x357c69||!_0x357c69[_0x14fe4f(0x9b5)])continue;if(_0x357c69[_0x14fe4f(0xc5d)])continue;if(!_0x357c69[_0x14fe4f(0x9ac)]||!_0x357c69[_0x14fe4f(0x9ac)][_0x14fe4f(0x9ac)])continue;if(!_0x357c69[_0x14fe4f(0x951)]||!_0x357c69[_0x14fe4f(0xaf8)]||_0x357c69[_0x14fe4f(0xaf8)][_0x14fe4f(0x230)]===0x0)continue;if(_0x357c69[_0x14fe4f(0x6be)]==='raw'||_0x357c69['bucketPrecision']===_0x14fe4f(0x3de)){_0x357c69[_0x14fe4f(0xc5d)]=!![];continue;}const _0x4788a6=new Set();for(let _0x264616=0x0;_0x264616<_0x2e4707[_0x14fe4f(0x230)];_0x264616++){const _0x56045d=_0x2e4707[_0x264616];if(!_0x56045d||!_0x56045d[_0x14fe4f(0x2bb)])continue;const _0x3fe45f=_0x56045d===_0x357c69[_0x14fe4f(0x9ac)]||_0x56045d[_0x14fe4f(0x9ac)]&&_0x56045d[_0x14fe4f(0x9ac)]===_0x357c69[_0x14fe4f(0x9ac)][_0x14fe4f(0x9ac)];if(!_0x3fe45f)continue;let _0xf4de45=_0x56045d['primary_state_as'];if(!_0xf4de45&&_0x56045d['show_state_last'])_0xf4de45=_0x14fe4f(0x503);if(_0xf4de45===_0x14fe4f(0xd2f)||_0xf4de45==='max')_0x4788a6[_0x14fe4f(0x24e)](_0xf4de45);}if(_0x4788a6[_0x14fe4f(0x948)]===0x0){_0x357c69[_0x14fe4f(0xc5d)]=!![];continue;}const _0x29d487=bucketPrecisionToMs(_0x357c69[_0x14fe4f(0x6be)]||_0x14fe4f(0xd59));if(!_0x29d487){_0x357c69['_preciseTsResolved']=!![];continue;}for(const _0x7b49f6 of _0x4788a6){const _0x4df825=_0x7b49f6+'T',_0x4af029=_0x357c69[_0x14fe4f(0x951)][_0x4df825],_0x3e476a=_0x357c69[_0x14fe4f(0x951)][_0x7b49f6];if(!isNum(_0x4af029)||!isNum(_0x3e476a))continue;const _0x3c9399=_0x357c69[_0x14fe4f(0x9ac)][_0x14fe4f(0x9ac)]+'|'+_0x4af029+'|'+_0x29d487+'|'+_0x7b49f6+'|'+_0x3e476a['toFixed'](0x6),_0xd3dbc7=this['_preciseTsCache'][_0x14fe4f(0x809)](_0x3c9399);if(isNum(_0xd3dbc7)){_0x357c69[_0x14fe4f(0x951)][_0x4df825]=_0xd3dbc7,_0x357c69[_0x14fe4f(0x951)][_0x4df825+_0x14fe4f(0x81e)]=!![];continue;}_0x57c0e2['push'](this[_0x14fe4f(0x965)](_0x357c69,_0x4af029,_0x29d487,_0x3e476a,_0x7b49f6,_0x3c9399));}_0x357c69[_0x14fe4f(0xc5d)]=!![];}if(_0x57c0e2[_0x14fe4f(0x230)]===0x0)return;try{await Promise[_0x14fe4f(0x2e9)](_0x57c0e2),this[_0x14fe4f(0x970)]();}catch(_0x3932fd){}}async[_0x45b7b8(0x965)](_0x24fc1e,_0x445848,_0x5ede00,_0x25eae4,_0x40993d,_0x41295f){const _0x4249a9=_0x45b7b8;try{const _0x3fdcec=_0x24fc1e[_0x4249a9(0x9ac)]['entity'],_0x13a553=new Date(_0x445848)['toISOString'](),_0x4b5c93=new Date(_0x445848+_0x5ede00)[_0x4249a9(0x1e4)](),_0x2ffa91=_0x4249a9(0x6c4)+_0x13a553+(_0x4249a9(0xa65)+encodeURIComponent(_0x4b5c93))+(_0x4249a9(0xc03)+encodeURIComponent(_0x3fdcec))+'&minimal_response&no_attributes',_0xf208c9=await this['_hass'][_0x4249a9(0x513)](_0x4249a9(0xa69),_0x2ffa91),_0x2bddbc=_0xf208c9&&_0xf208c9[0x0]||null;if(!Array['isArray'](_0x2bddbc)||_0x2bddbc[_0x4249a9(0x230)]===0x0)return;let _0x4c185d=null;for(const _0x297a94 of _0x2bddbc){const _0x480192=parseFloat(_0x297a94[_0x4249a9(0x992)]);if(!Number[_0x4249a9(0x798)](_0x480192))continue;if(!_0x4c185d||(_0x40993d===_0x4249a9(0xc78)?_0x480192>_0x4c185d['v']:_0x480192<_0x4c185d['v'])||_0x480192===_0x4c185d['v']&&Math[_0x4249a9(0x533)](_0x480192-_0x25eae4)_0x1d4eb3)return;const _0x54d8b0=_0x40993d+'T';_0x24fc1e[_0x4249a9(0x951)][_0x54d8b0]=_0x4c185d['t'],_0x24fc1e[_0x4249a9(0x951)][_0x54d8b0+_0x4249a9(0x81e)]=!![];if(this[_0x4249a9(0x9de)][_0x4249a9(0x948)]>=0x1388){const _0x4ec918=this[_0x4249a9(0x9de)][_0x4249a9(0xc71)]()[_0x4249a9(0x19e)]()['value'];if(_0x4ec918!==undefined)this['_preciseTsCache'][_0x4249a9(0x906)](_0x4ec918);}this['_preciseTsCache'][_0x4249a9(0x4f1)](_0x41295f,_0x4c185d['t']);}catch(_0xee5a58){}}[_0x45b7b8(0x6de)](_0x3dc1df){const _0x54ef2f=_0x45b7b8;if(!_0x3dc1df)return![];if(_0x3dc1df[_0x54ef2f(0x8bf)]||_0x3dc1df[_0x54ef2f(0x1e0)]||_0x3dc1df[_0x54ef2f(0x6e9)]||_0x3dc1df['state_map'])return![];if(autoStateMap(_0x3dc1df,this['_hass'],this[_0x54ef2f(0x9b6)]?.['chart_mode']))return![];if(_0x3dc1df['statistic_id'])return!![];const _0x5eda4c=this[_0x54ef2f(0xb79)]?.[_0x54ef2f(0x81a)]?.[_0x3dc1df[_0x54ef2f(0x9ac)]];if(!_0x5eda4c)return![];const _0x5d2053=_0x5eda4c[_0x54ef2f(0x74e)]?.['state_class'];return _0x5d2053===_0x54ef2f(0xae5)||_0x5d2053===_0x54ef2f(0x44b)||_0x5d2053==='total_increasing';}[_0x45b7b8(0x907)](_0x41044b){const _0xe45ffa=_0x45b7b8;return _0x41044b[_0xe45ffa(0x527)]||_0x41044b['entity'];}[_0x45b7b8(0xd50)](_0x274853){const _0x500fe7=_0x45b7b8;if(!_0x274853)return![];if(_0x274853[_0x500fe7(0x527)]){const _0x108604=this['_statMeta']&&this['_statMeta'][_0x274853[_0x500fe7(0x527)]];if(_0x108604&&(_0x108604[_0x500fe7(0x36e)]||_0x108604[_0x500fe7(0x998)]))return!!_0x108604[_0x500fe7(0x36e)]&&!_0x108604[_0x500fe7(0x998)];const _0x54178a=this[_0x500fe7(0xb79)]?.[_0x500fe7(0x81a)]?.[_0x274853[_0x500fe7(0x527)]];if(_0x54178a){const _0x160f95=_0x54178a[_0x500fe7(0x74e)]?.[_0x500fe7(0xbf5)];return _0x160f95===_0x500fe7(0x44b)||_0x160f95==='total_increasing';}return!![];}const _0x13f941=this[_0x500fe7(0xb79)]?.[_0x500fe7(0x81a)]?.[_0x274853[_0x500fe7(0x9ac)]]?.[_0x500fe7(0x74e)]?.[_0x500fe7(0xbf5)];return _0x13f941===_0x500fe7(0x44b)||_0x13f941===_0x500fe7(0x941);}['_hasCandlestick'](){const _0x44c645=_0x45b7b8;for(const _0x10c4a7 of this[_0x44c645(0x461)]||[]){if(_0x10c4a7&&!_0x10c4a7[_0x44c645(0x8bf)]&&!_0x10c4a7[_0x44c645(0x6e9)]&&(_0x10c4a7['graph_type']||_0x10c4a7['type'])==='candlestick')return!![];}return![];}[_0x45b7b8(0x406)](){const _0x35ada1=_0x45b7b8,_0x26a6f1=new Set([_0x35ada1(0xc78),_0x35ada1(0xd2f),_0x35ada1(0x7f0),_0x35ada1(0x10b),undefined,null,'']);for(const _0x4a8f74 of this[_0x35ada1(0x461)]||[]){if(!_0x4a8f74||_0x4a8f74[_0x35ada1(0x8bf)]||_0x4a8f74[_0x35ada1(0x6e9)])continue;const _0x3fb8af=_0x4a8f74[_0x35ada1(0x234)];if(!_0x26a6f1[_0x35ada1(0xd4f)](_0x3fb8af))continue;if(this[_0x35ada1(0xd50)](_0x4a8f74))return!![];}return![];}['_calendarMaxNeedsHourly'](){const _0x1bf2b7=_0x45b7b8;for(const _0x3ab659 of this['_entities']||[]){if(!_0x3ab659||_0x3ab659['fixed_value']||_0x3ab659[_0x1bf2b7(0x6e9)])continue;if(_0x3ab659['aggregate_func']!=='max')continue;if(this[_0x1bf2b7(0xd50)](_0x3ab659))continue;if(this['_isHistoryAggregated'](_0x3ab659))return!![];}return![];}[_0x45b7b8(0x7cc)](){const _0x37850b=_0x45b7b8;for(const _0x12c25f of this[_0x37850b(0x461)]||[]){if(!_0x12c25f||_0x12c25f[_0x37850b(0x8bf)]||_0x12c25f['data_attribute'])continue;if(_0x12c25f['aggregate_func']!==_0x37850b(0x503)&&_0x12c25f[_0x37850b(0x234)]!==_0x37850b(0x350))continue;if(_0x12c25f['aggregate_func']===_0x37850b(0x503)&&this[_0x37850b(0xd50)](_0x12c25f))continue;if(this[_0x37850b(0xd1)](_0x12c25f))return!![];}return![];}[_0x45b7b8(0x17b)](){const _0x246567=_0x45b7b8;for(const _0x1f200e of this[_0x246567(0x461)]||[]){if(!_0x1f200e||_0x1f200e[_0x246567(0x8bf)]||_0x1f200e[_0x246567(0x6e9)])continue;if(_0x1f200e['aggregate_func']!==_0x246567(0x6dc))continue;if(this['_isCounterEntity'](_0x1f200e))continue;if(this[_0x246567(0xd1)](_0x1f200e))return!![];}return![];}[_0x45b7b8(0xd1)](_0x582517){const _0x17dd31=_0x45b7b8;if(!_0x582517)return![];if(_0x582517[_0x17dd31(0x527)])return!![];if(_0x582517['fixed_value']||_0x582517[_0x17dd31(0x1e0)]||_0x582517[_0x17dd31(0x6e9)]||_0x582517[_0x17dd31(0x83e)])return![];return this[_0x17dd31(0x6de)](_0x582517);}[_0x45b7b8(0x87d)](){const _0x5703c8=_0x45b7b8;if(!this[_0x5703c8(0x461)]?.[_0x5703c8(0x230)])return![];const _0x494f5f=this[_0x5703c8(0x461)][_0x5703c8(0xbb6)](_0x1fed52=>_0x1fed52&&!_0x1fed52[_0x5703c8(0x8bf)]&&!_0x1fed52[_0x5703c8(0x1e0)]&&!_0x1fed52[_0x5703c8(0x6e9)]&&!_0x1fed52['state_map']&&!autoStateMap(_0x1fed52,this[_0x5703c8(0xb79)],this['_config']?.[_0x5703c8(0x5f9)]));if(!_0x494f5f[_0x5703c8(0x230)])return![];return _0x494f5f[_0x5703c8(0x8d1)](_0x4303ac=>this[_0x5703c8(0x6de)](_0x4303ac));}[_0x45b7b8(0xc5f)](_0x4154ff){const _0x3f214f=_0x45b7b8;if(this[_0x3f214f(0x40d)]||_0x4154ff<=0xf0)return;const _0x13fb71=[];for(const _0x1be53d of this['_entities']||[]){if(!_0x1be53d||_0x1be53d[_0x3f214f(0x8bf)]||_0x1be53d[_0x3f214f(0x1e0)]||_0x1be53d[_0x3f214f(0x6e9)]||_0x1be53d['state_map'])continue;if(!this['_hasLTS'](_0x1be53d))_0x13fb71[_0x3f214f(0x9f2)](_0x1be53d[_0x3f214f(0x9ac)]);}_0x13fb71[_0x3f214f(0x230)]&&(console[_0x3f214f(0x5f3)](_0x3f214f(0x616)+_0x13fb71[_0x3f214f(0x230)]+_0x3f214f(0x5f4)+(_0x3f214f(0x5ac)+_0x13fb71[_0x3f214f(0xcdc)](',\x20')+'.\x20')+'Data\x20beyond\x20~10\x20days\x20may\x20be\x20unavailable.'),this[_0x3f214f(0x40d)]=!![]);}[_0x45b7b8(0x78d)](_0x486761){const _0x131884=_0x45b7b8;if(this[_0x131884(0xcd)])return;this['_hourlyCapWarned']=!![],console[_0x131884(0x5f3)](_0x131884(0xbbc)+Math[_0x131884(0xd3f)](_0x486761)+'h\x20exceeds\x20the\x20'+DATE_GROUP_HOURLY_MAX_HOURS_YEAR+'h\x20'+_0x131884(0x857)+_0x131884(0xa07));}[_0x45b7b8(0xb4e)](_0xe9ddae){const _0x4304eb=_0x45b7b8,_0x5af225=resolveGroupBy(this[_0x4304eb(0x9b6)],_0xe9ddae),_0x25a4ff=this[_0x4304eb(0x406)]()||this[_0x4304eb(0x7ff)]()||this['_calendarDiffNeedsHourly']()||this[_0x4304eb(0x7cc)]();if(_0x5af225==='month'||_0x5af225==='year'){if(_0x25a4ff){if(_0xe9ddae<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0xd59)};this[_0x4304eb(0x78d)](_0xe9ddae);}return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x962)};}if(_0x5af225===_0x4304eb(0xb89)){if(_0x25a4ff){if(_0xe9ddae<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x4304eb(0x37e),'period':'hour'};this[_0x4304eb(0x78d)](_0xe9ddae);}if(resolveFirstWeekday(this[_0x4304eb(0xb79)])!==0x1)return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x962)};return{'source':'statistics','period':_0x4304eb(0xb89)};}if(_0x5af225===_0x4304eb(0xa52)){if(_0x25a4ff){if(_0xe9ddae<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x4304eb(0x37e),'period':'hour'};this[_0x4304eb(0x78d)](_0xe9ddae);}if(this[_0x4304eb(0x717)]()&&_0xe9ddae<=DATE_GROUP_HOURLY_MAX_HOURS)return{'source':'statistics','period':'hour'};return{'source':'statistics','period':_0x4304eb(0x962)};}if(_0x5af225==='hour'){if(this['_hasCandlestick']()&&_0xe9ddae<=STATS_5MIN_MAX_HOURS)return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x282)};return{'source':_0x4304eb(0x37e),'period':_0xe9ddae<=STATS_HOURLY_MAX_HOURS?_0x4304eb(0xd59):'day'};}const _0x2828fa=this[_0x4304eb(0x9b6)]['show_date_picker']||this[_0x4304eb(0x9b6)][_0x4304eb(0x4a5)]&&this[_0x4304eb(0x8a3)]||this[_0x4304eb(0x9b6)][_0x4304eb(0xb28)]&&this[_0x4304eb(0xb5e)];if(!_0x2828fa&&!this[_0x4304eb(0x87d)]())return{'source':_0x4304eb(0x8ef)};if(_0xe9ddae<=SHORT_WINDOW_HOURS){const _0x343c92=this[_0x4304eb(0x461)][_0x4304eb(0x870)](_0x22faec=>_0x22faec?.[_0x4304eb(0x527)]),_0x23ffbd=this['_overrideHoursToShow']??toNum(this[_0x4304eb(0x9b6)][_0x4304eb(0x275)])??_0xe9ddae,_0x162d5a=_0x343c92||_0x23ffbd>FORCE_STATS_RAW_HOURS||_0x2828fa;if(_0x162d5a&&(_0x2828fa||this[_0x4304eb(0x87d)]()))return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x282)};return{'source':_0x4304eb(0x8ef)};}if(_0xe9ddae<=STATS_5MIN_MAX_HOURS)return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x282)};if(_0xe9ddae<=STATS_HOURLY_MAX_HOURS)return{'source':_0x4304eb(0x37e),'period':'hour'};if(_0x25a4ff){if(_0xe9ddae<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0xd59)};this[_0x4304eb(0x78d)](_0xe9ddae);}return{'source':_0x4304eb(0x37e),'period':_0x4304eb(0x962)};}async['_ensureStatMeta'](_0x181918){const _0x33300e=_0x45b7b8;if(!this[_0x33300e(0x37d)])this[_0x33300e(0x37d)]=Object[_0x33300e(0x526)](null);if(!this[_0x33300e(0xb79)]?.['callWS'])return;const _0x19b615=[];for(const _0x53c1ad of _0x181918){if(_0x53c1ad&&!(_0x53c1ad in this['_statMeta']))_0x19b615[_0x33300e(0x9f2)](_0x53c1ad);}if(!_0x19b615['length'])return;try{const _0x19d44e=await this[_0x33300e(0xb79)][_0x33300e(0x481)]({'type':_0x33300e(0x2c8)});if(Array[_0x33300e(0x1d7)](_0x19d44e)){const _0x1de64d=new Set(_0x19b615);for(const _0x3872f8 of _0x19d44e){if(!_0x3872f8?.[_0x33300e(0x527)])continue;_0x1de64d[_0x33300e(0xd4f)](_0x3872f8[_0x33300e(0x527)])&&(this[_0x33300e(0x37d)][_0x3872f8['statistic_id']]={'unit_of_measurement':_0x3872f8[_0x33300e(0x196)]||_0x3872f8[_0x33300e(0xcc8)]||null,'has_mean':!!_0x3872f8[_0x33300e(0x998)],'has_sum':!!_0x3872f8[_0x33300e(0x36e)],'source':_0x3872f8[_0x33300e(0xb14)]||null,'name':_0x3872f8[_0x33300e(0x10d)]||null});}for(const _0x4ad856 of _0x19b615){if(!(_0x4ad856 in this['_statMeta']))this[_0x33300e(0x37d)][_0x4ad856]={'unit_of_measurement':null};}}}catch{}}[_0x45b7b8(0xa14)](){const _0x5c5399=_0x45b7b8,_0x429081=new Set();for(const _0x448395 of this[_0x5c5399(0x461)]||[]){if(_0x448395[_0x5c5399(0x9ac)]&&!_0x448395[_0x5c5399(0x527)])_0x429081[_0x5c5399(0x24e)](_0x448395[_0x5c5399(0x9ac)]);}for(const _0x4eb97b of this[_0x5c5399(0x442)]||[])_0x429081[_0x5c5399(0x24e)](_0x4eb97b);for(const _0x15ebc0 of this[_0x5c5399(0xaf6)]||[])_0x429081[_0x5c5399(0x24e)](_0x15ebc0);for(const _0x6f749 of this[_0x5c5399(0x471)]||[])_0x429081[_0x5c5399(0x24e)](_0x6f749);if(this[_0x5c5399(0x9b6)]?.[_0x5c5399(0x4a8)])_0x429081[_0x5c5399(0x24e)](this[_0x5c5399(0x9b6)][_0x5c5399(0x4a8)]);return[..._0x429081]['sort']()[_0x5c5399(0xcdc)]('|');}[_0x45b7b8(0x3b3)](){const _0x3fcf7f=_0x45b7b8;if(this[_0x3fcf7f(0x96d)]||this[_0x3fcf7f(0x354)]||!this['_hass']?.[_0x3fcf7f(0x100)])return;if(!this['_liveEnabled']&&!this['_annotationRefs'][_0x3fcf7f(0x948)]&&!this[_0x3fcf7f(0xaf6)][_0x3fcf7f(0x948)]&&!this[_0x3fcf7f(0x471)]['size']&&!this['_config']?.[_0x3fcf7f(0x4a8)])return;const _0x5e9cde=new Set();for(const _0x5dfb3d of this['_entities']){if(_0x5dfb3d[_0x3fcf7f(0x9ac)]&&!_0x5dfb3d[_0x3fcf7f(0x527)])_0x5e9cde[_0x3fcf7f(0x24e)](_0x5dfb3d['entity']);}for(const _0x4fa71c of this[_0x3fcf7f(0x442)])_0x5e9cde[_0x3fcf7f(0x24e)](_0x4fa71c);for(const _0x472c40 of this[_0x3fcf7f(0xaf6)]||[])_0x5e9cde[_0x3fcf7f(0x24e)](_0x472c40);for(const _0x5cb8e3 of this[_0x3fcf7f(0x471)]||[])_0x5e9cde[_0x3fcf7f(0x24e)](_0x5cb8e3);if(this[_0x3fcf7f(0x9b6)]['battery_entity'])_0x5e9cde[_0x3fcf7f(0x24e)](this['_config'][_0x3fcf7f(0x4a8)]);const _0xade9ec=[..._0x5e9cde];if(!_0xade9ec[_0x3fcf7f(0x230)])return;this[_0x3fcf7f(0x1cb)]=_0xade9ec[_0x3fcf7f(0x376)]()['sort']()['join']('|'),this[_0x3fcf7f(0x354)]=!![];const _0x467fc3=this[_0x3fcf7f(0x1e7)]=(this['_wsGen']||0x0)+0x1,_0x429697=(_0xb43d76,_0x8fe60b)=>{const _0x97832a=_0x3fcf7f;if(!_0x8fe60b||_0x8fe60b[_0x97832a(0x992)]==='unknown'||_0x8fe60b['state']===_0x97832a(0x495))return;if(!this[_0x97832a(0xb79)])return;const _0x9ff4a4=this[_0x97832a(0xb79)];try{let _0x100737=![];if(this[_0x97832a(0x228)])for(const _0x6d0f69 of this[_0x97832a(0x461)]){if(_0x6d0f69[_0x97832a(0x9ac)]===_0xb43d76&&!_0x6d0f69[_0x97832a(0x527)]){_0x100737=!![];break;}}const _0x18a658=this['_annotationRefs'][_0x97832a(0xd4f)](_0xb43d76),_0x58e5ad=this[_0x97832a(0x9b6)][_0x97832a(0x4a8)]===_0xb43d76;if(this[_0x97832a(0xaf6)][_0x97832a(0xd4f)](_0xb43d76))this[_0x97832a(0x89c)]();const _0x5ab638=this[_0x97832a(0x471)]['has'](_0xb43d76)&&this['_processRefTicks']({'states':{[_0xb43d76]:_0x8fe60b}});_0x5ab638&&!_0x100737&&(this['_pendingSyntheticRefresh']=!![],this['_scheduleLiveFlush']());if(_0x100737||_0x18a658){const _0x231a64={..._0x9ff4a4['states']};_0x231a64[_0xb43d76]=_0x8fe60b;const _0x15b3bf={..._0x9ff4a4,'states':_0x231a64};if(_0x100737)this['_processHassChanges'](_0x15b3bf);if(_0x18a658)this[_0x97832a(0xafe)](_0x15b3bf);}(_0x100737||_0x58e5ad)&&this[_0x97832a(0x4ad)]?.['querySelector']?.(_0x97832a(0x140))&&this[_0x97832a(0x841)]();}catch(_0x321fe2){console[_0x97832a(0x5f3)](_0x97832a(0xd3),_0x321fe2);}},_0x452f69=_0xade9ec['length']>0x0&&_0xade9ec[_0x3fcf7f(0x230)]<=0x40,_0x3ef944=()=>{const _0x359f70=_0x3fcf7f;this[_0x359f70(0xb79)][_0x359f70(0x100)][_0x359f70(0x4f5)](_0x22fcb6=>{const _0x32b627=_0x359f70,_0x55c2f8=_0x22fcb6?.[_0x32b627(0x13d)]?.[_0x32b627(0xa9e)];if(!_0x5e9cde[_0x32b627(0xd4f)](_0x55c2f8))return;_0x429697(_0x55c2f8,_0x22fcb6['data'][_0x32b627(0x72c)]);},_0x359f70(0xa0))['then'](_0xe9dd05=>{const _0x34eddb=_0x359f70;if(_0x467fc3!==this['_wsGen']){try{_0xe9dd05();}catch{}return;}this[_0x34eddb(0x96d)]=_0xe9dd05,this[_0x34eddb(0x354)]=![];})[_0x359f70(0x32c)](()=>{const _0x5e4a81=_0x359f70;if(_0x467fc3===this['_wsGen'])this[_0x5e4a81(0x354)]=![];});};_0x452f69?this['_hass'][_0x3fcf7f(0x100)][_0x3fcf7f(0xab7)](_0x3f2d3a=>{const _0x2184ec=_0x3fcf7f,_0x467e5b=_0x3f2d3a?.['variables']?.[_0x2184ec(0x4ea)];if(!_0x467e5b)return;const _0x4a7729=_0x467e5b[_0x2184ec(0xe5)];if(_0x4a7729)_0x429697(_0x4a7729[_0x2184ec(0xa9e)],_0x4a7729);},{'type':_0x3fcf7f(0xa2a),'trigger':{'platform':_0x3fcf7f(0x992),'entity_id':_0xade9ec}})[_0x3fcf7f(0x404)](_0xa8e33f=>{const _0x3edfe0=_0x3fcf7f;if(_0x467fc3!==this['_wsGen']){try{_0xa8e33f();}catch{}return;}this[_0x3edfe0(0x96d)]=_0xa8e33f,this[_0x3edfe0(0x354)]=![];})['catch'](()=>{const _0x364cab=_0x3fcf7f;if(_0x467fc3===this[_0x364cab(0x1e7)])_0x3ef944();}):_0x3ef944();}[_0x45b7b8(0x2be)](){const _0x33f06f=_0x45b7b8;this[_0x33f06f(0x1e7)]=(this[_0x33f06f(0x1e7)]||0x0)+0x1;if(this[_0x33f06f(0x96d)]){try{this[_0x33f06f(0x96d)]();}catch{}this[_0x33f06f(0x96d)]=null;}this[_0x33f06f(0x354)]=![],this[_0x33f06f(0x1cb)]=null;}['_processHassChanges'](_0x3f8492){const _0x584033=_0x45b7b8;let _0x31f787=![];this[_0x584033(0x461)][_0x584033(0x1ce)]((_0x3ab973,_0x2b0e54)=>{const _0x2d2bf1=_0x584033;if(!_0x3ab973[_0x2d2bf1(0x9ac)]||_0x3ab973[_0x2d2bf1(0x527)])return;if(this['_isHistoryAggregated'](_0x3ab973)){const _0x3b149e=_0x3ab973['aggregate_func'];if(_0x3b149e!==_0x2d2bf1(0x503)&&_0x3b149e!==_0x2d2bf1(0x350)&&_0x3b149e!=='max'&&_0x3b149e!==_0x2d2bf1(0xd2f))return;}const _0x5f0252=_0x3f8492['states'][_0x3ab973[_0x2d2bf1(0x9ac)]];if(!_0x5f0252)return;const _0x6de4f3=_0x5f0252[_0x2d2bf1(0xb3)]||_0x5f0252[_0x2d2bf1(0x80c)]||null;if(_0x6de4f3===this[_0x2d2bf1(0x50b)][_0x3ab973[_0x2d2bf1(0x9ac)]])return;this[_0x2d2bf1(0x50b)][_0x3ab973[_0x2d2bf1(0x9ac)]]=_0x6de4f3;if(_0x3ab973[_0x2d2bf1(0x8bf)]||_0x3ab973[_0x2d2bf1(0x6e9)]){this[_0x2d2bf1(0x4a1)]=!![],_0x31f787=!![];return;}const _0x32ff90=this[_0x2d2bf1(0x2a3)](_0x3ab973,_0x2b0e54),_0xc62c9=_0x32ff90?getAttributePath(_0x5f0252[_0x2d2bf1(0x74e)],_0x32ff90):_0x5f0252[_0x2d2bf1(0x992)],_0x1e8fa4=toNum(_0xc62c9);if(_0x1e8fa4===null)return;const _0x1d6333=_0x6de4f3?new Date(_0x6de4f3)[_0x2d2bf1(0x9e0)]():Date[_0x2d2bf1(0xcca)]();(this[_0x2d2bf1(0x9b4)][_0x3ab973[_0x2d2bf1(0x9ac)]]||=[])[_0x2d2bf1(0x9f2)]({'t':_0x1d6333,'v':_0x1e8fa4}),_0x31f787=!![];});if(_0x31f787)this['_scheduleLiveFlush']();}[_0x45b7b8(0xacb)](_0x35699e){const _0x277a08=_0x45b7b8;if(!this[_0x277a08(0x471)]?.[_0x277a08(0x948)]||!this[_0x277a08(0x623)]?.[_0x277a08(0x948)])return![];let _0x1a75f8=![];for(const _0x2810a3 of this['_refRefIds']){const _0x417f32=_0x35699e[_0x277a08(0x81a)]?.[_0x2810a3];if(!_0x417f32)continue;const _0x6ed3fc=_0x417f32['last_updated']||_0x417f32[_0x277a08(0x80c)]||null;if(_0x6ed3fc===this[_0x277a08(0x7c2)][_0x2810a3])continue;this[_0x277a08(0x7c2)][_0x2810a3]=_0x6ed3fc;const _0x46cdbb=_0x6ed3fc?new Date(_0x6ed3fc)['getTime']():Date['now']();for(const _0x1d09b3 of this[_0x277a08(0x623)][_0x277a08(0x5e7)]()){if(_0x1d09b3['id']!==_0x2810a3||!Array[_0x277a08(0x1d7)](_0x1d09b3[_0x277a08(0x9f6)]))continue;const _0x399afe=toNum(_0x1d09b3[_0x277a08(0x1e0)]?getAttributePath(_0x417f32[_0x277a08(0x74e)],_0x1d09b3[_0x277a08(0x1e0)]):_0x417f32['state']);if(_0x399afe===null)continue;const _0x2455c0=_0x46cdbb+(_0x1d09b3[_0x277a08(0x691)]||0x0)*0x36ee80,_0x3bf4ae=_0x1d09b3['samples'][_0x1d09b3[_0x277a08(0x9f6)][_0x277a08(0x230)]-0x1];if(_0x3bf4ae&&_0x2455c0<=_0x3bf4ae['t'])continue;_0x1d09b3['samples'][_0x277a08(0x9f2)]({'t':_0x2455c0,'v':_0x399afe});const _0x39828e=this[_0x277a08(0x352)],_0x31c6df=_0x39828e?this[_0x277a08(0x9a2)]((_0x39828e[_0x277a08(0xbdf)][_0x277a08(0x9e0)]()-_0x39828e[_0x277a08(0x866)]['getTime']())/0x36ee80):0x0,_0x188eaa=(_0x39828e?.[_0x277a08(0x866)]?.[_0x277a08(0x9e0)]()||0x0)-_0x31c6df-0x5265c00;let _0x6b914c=0x0;while(_0x6b914c<_0x1d09b3[_0x277a08(0x9f6)][_0x277a08(0x230)]&&_0x1d09b3[_0x277a08(0x9f6)][_0x6b914c]['t']<_0x188eaa)_0x6b914c++;if(_0x6b914c>0x1)_0x1d09b3[_0x277a08(0x9f6)][_0x277a08(0xad6)](0x0,_0x6b914c-0x1);this[_0x277a08(0xcd3)][_0x277a08(0x24e)](_0x2810a3),_0x1a75f8=!![];}}return _0x1a75f8;}[_0x45b7b8(0xafe)](_0x4ff605){const _0x4dc7cc=_0x45b7b8;let _0x468325=![];for(const _0x311183 of this[_0x4dc7cc(0x442)]){const _0x21b7e2=_0x4ff605[_0x4dc7cc(0x81a)][_0x311183];if(!_0x21b7e2)continue;const _0x53aaf6=_0x21b7e2[_0x4dc7cc(0xb3)]||_0x21b7e2[_0x4dc7cc(0x80c)]||null;if(_0x53aaf6===this[_0x4dc7cc(0x415)][_0x311183])continue;this[_0x4dc7cc(0x415)][_0x311183]=_0x53aaf6,_0x468325=!![];}if(_0x468325)this[_0x4dc7cc(0x970)]();}['_scheduleLiveFlush'](){const _0xb8734b=_0x45b7b8;if(this[_0xb8734b(0x532)])return;this[_0xb8734b(0x532)]=setTimeout(()=>{const _0x405d3c=_0xb8734b;this['_liveFlushTimer']=null,this[_0x405d3c(0x3b8)]();},LIVE_FLUSH_DEBOUNCE_MS);}[_0x45b7b8(0x3b8)](){const _0xa6c11b=_0x45b7b8;if(!this[_0xa6c11b(0x550)]||!this[_0xa6c11b(0x352)])return;const _0x2de802=Object[_0xa6c11b(0xc71)](this[_0xa6c11b(0x9b4)])['length']>0x0;if(!_0x2de802&&!this[_0xa6c11b(0x996)]&&!this[_0xa6c11b(0x4a1)])return;const _0x3e8b7f=this[_0xa6c11b(0x996)];this['_pendingSlide']=![],this[_0xa6c11b(0x4a1)]=![],this[_0xa6c11b(0x42c)]=Date[_0xa6c11b(0xcca)]();if(this[_0xa6c11b(0xb06)]()){const _0x3db883=this[_0xa6c11b(0x7d8)]();_0x3db883&&(this['_extendWindowForForecastData'](_0x3db883),this[_0xa6c11b(0x352)]=_0x3db883);}const _0x55ff6f=this[_0xa6c11b(0x352)][_0xa6c11b(0x866)][_0xa6c11b(0x9e0)](),_0x161446=this[_0xa6c11b(0x352)]['end'][_0xa6c11b(0x9e0)]();Object['defineProperty'](this[_0xa6c11b(0x9b6)],'__sgcActiveRule',{'value':activeScaleRule(this[_0xa6c11b(0x9b6)],(_0x161446-_0x55ff6f)/0x36ee80),'enumerable':![],'writable':!![],'configurable':!![]});const _0x51bdbf=this['_maMaxLeadMs']((_0x161446-_0x55ff6f)/0x36ee80);for(const _0x29b45c of this['_graphData'][_0xa6c11b(0x134)]){const _0x4ca6e7=_0x29b45c[_0xa6c11b(0x9ac)],_0x2f8241=_0x4ca6e7[_0xa6c11b(0x9ac)]?resolveOffsetHours(_0x4ca6e7[_0xa6c11b(0x74a)],this[_0xa6c11b(0xb79)]):0x0,_0x165370=_0x4ca6e7[_0xa6c11b(0x9ac)]&&_0x2f8241===0x0&&this[_0xa6c11b(0x9b4)][_0x4ca6e7[_0xa6c11b(0x9ac)]]?.[_0xa6c11b(0x230)]>0x0,_0x32f71d=_0x4ca6e7[_0xa6c11b(0x8bf)]||_0x4ca6e7[_0xa6c11b(0x6e9)];if(_0x4ca6e7[_0xa6c11b(0x8bf)]){const _0x469948=this[_0xa6c11b(0xb79)]?.['states']?.[_0x4ca6e7[_0xa6c11b(0x9ac)]],_0x273638=_0x4ca6e7[_0xa6c11b(0x1e0)]?getAttributePath(_0x469948?.[_0xa6c11b(0x74e)],_0x4ca6e7[_0xa6c11b(0x1e0)]):_0x469948?.[_0xa6c11b(0x992)],_0x11cd99=toNum(_0x273638);_0x11cd99!==null?_0x29b45c[_0xa6c11b(0x301)]=[{'t':_0x55ff6f,'v':_0x11cd99},{'t':_0x161446,'v':_0x11cd99}]:_0x29b45c['raw']=[];this['_rebuildPoints'](_0x29b45c),_0x29b45c[_0xa6c11b(0x951)]=DataProcessor[_0xa6c11b(0x101)](_0x29b45c['points']);continue;}if(_0x4ca6e7['data_attribute']){const _0x3cf0c7=this['_hass']?.[_0xa6c11b(0x81a)]?.[_0x4ca6e7['entity']],_0x368be4=synthesizeForecastSeries(_0x3cf0c7,_0x4ca6e7,this[_0xa6c11b(0x352)]['start'],this[_0xa6c11b(0xb79)]);_0x29b45c[_0xa6c11b(0x301)]=_0x368be4[_0xa6c11b(0xbb6)](_0x288305=>_0x288305['t']>=_0x55ff6f&&_0x288305['t']<=_0x161446),this[_0xa6c11b(0xba0)](_0x29b45c),_0x29b45c[_0xa6c11b(0x951)]=DataProcessor[_0xa6c11b(0x101)](_0x29b45c[_0xa6c11b(0xaf8)]);continue;}const _0x1eb67f=!!(_0x4ca6e7['ref_entity']&&this[_0xa6c11b(0xcd3)]?.[_0xa6c11b(0xd4f)](_0x4ca6e7[_0xa6c11b(0x408)]));if(!_0x4ca6e7[_0xa6c11b(0x9ac)]||_0x4ca6e7['statistic_id']){if(!_0x3e8b7f&&!_0x1eb67f)continue;let _0x317866=0x0;const _0xd207a1=_0x51bdbf>0x0?_0x55ff6f-_0x51bdbf:_0x55ff6f;while(_0x317866<_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)]&&_0x29b45c['raw'][_0x317866]['t']<_0xd207a1)_0x317866++;if(_0x317866>0x1)_0x29b45c[_0xa6c11b(0x301)]['splice'](0x0,_0x317866-0x1);let _0x101db7=_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)];while(_0x101db7>0x0&&_0x29b45c[_0xa6c11b(0x301)][_0x101db7-0x1]['t']>=_0x161446)_0x101db7--;if(_0x101db7<_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)])_0x29b45c['raw'][_0xa6c11b(0x230)]=_0x101db7;}else{if(!_0x165370&&!_0x3e8b7f&&!_0x1eb67f)continue;const _0x5a9610=_0x2f8241===0x0?this[_0xa6c11b(0x9b4)][_0x4ca6e7[_0xa6c11b(0x9ac)]]:null;if(_0x5a9610?.[_0xa6c11b(0x230)]){_0x5a9610[_0xa6c11b(0xa8e)]((_0x7bc2d8,_0x38d344)=>_0x7bc2d8['t']-_0x38d344['t']);for(let _0x5bc8e8=0x0;_0x5bc8e8<_0x5a9610[_0xa6c11b(0x230)];_0x5bc8e8++)_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x9f2)](_0x5a9610[_0x5bc8e8]);}let _0x4de54f=0x0;const _0x245b94=_0x51bdbf>0x0?_0x55ff6f-_0x51bdbf:_0x55ff6f;while(_0x4de54f<_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)]&&_0x29b45c[_0xa6c11b(0x301)][_0x4de54f]['t']<_0x245b94)_0x4de54f++;if(_0x4de54f>0x1)_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0xad6)](0x0,_0x4de54f-0x1);let _0x28b65b=_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)];while(_0x28b65b>0x0&&_0x29b45c['raw'][_0x28b65b-0x1]['t']>=_0x161446)_0x28b65b--;if(_0x28b65b<_0x29b45c[_0xa6c11b(0x301)]['length'])_0x29b45c[_0xa6c11b(0x301)][_0xa6c11b(0x230)]=_0x28b65b;}this[_0xa6c11b(0xba0)](_0x29b45c),_0x29b45c['stats']=DataProcessor[_0xa6c11b(0x101)](_0x29b45c['points']);}this[_0xa6c11b(0x9b4)]=Object[_0xa6c11b(0x526)](null),this[_0xa6c11b(0xcd3)][_0xa6c11b(0xc5)](),this[_0xa6c11b(0x970)](),this[_0xa6c11b(0xba)]();}['_schedulePriceRefetch'](){const _0x1e5c2d=_0x45b7b8,_0x35bc5d=Date[_0x1e5c2d(0xcca)](),_0x2d70aa=_0x35bc5d-(this[_0x1e5c2d(0x564)]||0x0);if(_0x2d70aa<0x1388){!this[_0x1e5c2d(0xbfd)]&&(this['_priceTrailTimer']=setTimeout(()=>{const _0x3afb62=_0x1e5c2d;this[_0x3afb62(0xbfd)]=null,this[_0x3afb62(0x564)]=Date[_0x3afb62(0xcca)](),this[_0x3afb62(0x24c)]();},0x1388-_0x2d70aa));return;}this['_lastPriceRefetchTs']=_0x35bc5d,this[_0x1e5c2d(0x24c)]();}[_0x45b7b8(0xc9a)](_0x43ed4d){const _0x3fff2e=_0x45b7b8;if(!_0x43ed4d?.[_0x3fff2e(0x3a8)])return null;const _0x112dc2=resolveOffsetHours(_0x43ed4d[_0x3fff2e(0x74a)],this[_0x3fff2e(0xb79)])||0x0;return stepLookup(this['_priceSeries']?.['get'](_0x43ed4d[_0x3fff2e(0x3a8)]+'__'+_0x112dc2),{'clampLeft':!![]});}[_0x45b7b8(0x7c7)](_0x4895cc){const _0x5b6ad8=_0x45b7b8;if(!_0x4895cc?.['ref_entity'])return null;const _0x27f21e=resolveOffsetHours(_0x4895cc[_0x5b6ad8(0x74a)],this[_0x5b6ad8(0xb79)])||0x0,_0x43ee5b=this[_0x5b6ad8(0x623)]?.[_0x5b6ad8(0x809)](_0x4895cc[_0x5b6ad8(0x7a9)]||refJobKey(_0x4895cc,_0x27f21e,_0x5b6ad8(0x1cf)));if(!_0x43ee5b||!_0x43ee5b[_0x5b6ad8(0x9f6)]?.[_0x5b6ad8(0x230)])return null;return stepLookup(_0x43ee5b[_0x5b6ad8(0x9f6)],{'clampLeft':![]});}[_0x45b7b8(0x36a)](_0x33dc75){const _0x58dfb0=_0x45b7b8;if(!_0x33dc75?.[_0x58dfb0(0x408)])return![];const _0x19fbef=normalizeRefOp(_0x33dc75[_0x58dfb0(0x5cd)]);if(_0x19fbef!==_0x58dfb0(0xc0a)&&_0x19fbef!=='add'&&_0x19fbef!==_0x58dfb0(0xccb))return![];return['change',_0x58dfb0(0x6dc),_0x58dfb0(0xc7f),_0x58dfb0(0x34c)][_0x58dfb0(0x615)](_0x33dc75[_0x58dfb0(0x234)]);}[_0x45b7b8(0x47b)](_0x540a47,_0x19af4f){const _0x29a79e=_0x45b7b8;if(!_0x19af4f?.[_0x29a79e(0x408)])return _0x540a47;if(this[_0x29a79e(0x36a)](_0x19af4f)){if(!this[_0x29a79e(0x985)])this[_0x29a79e(0x985)]=new Set();const _0x219953=(_0x19af4f[_0x29a79e(0x9ac)]||_0x19af4f['statistic_id'])+'|'+(_0x19af4f[_0x29a79e(0x5cd)]||'subtract')+'|'+_0x19af4f[_0x29a79e(0x234)];return!this[_0x29a79e(0x985)]['has'](_0x219953)&&(this['_refWarned'][_0x29a79e(0x24e)](_0x219953),console['warn'](_0x29a79e(0x874)+(_0x19af4f[_0x29a79e(0x5cd)]||_0x29a79e(0xc0a))+_0x29a79e(0xaaa)+_0x19af4f['aggregate_func']+_0x29a79e(0x389)+(_0x19af4f['entity']||_0x19af4f[_0x29a79e(0x527)])+_0x29a79e(0xfe))),[];}const _0x2362f0=this[_0x29a79e(0x7c7)](_0x19af4f);if(!_0x2362f0){if(!this[_0x29a79e(0x985)])this[_0x29a79e(0x985)]=new Set();const _0x1b815c=_0x29a79e(0x675)+_0x19af4f[_0x29a79e(0x408)];return!this[_0x29a79e(0x985)]['has'](_0x1b815c)&&(this[_0x29a79e(0x985)]['add'](_0x1b815c),console[_0x29a79e(0x5f3)](_0x29a79e(0x32b)+_0x19af4f[_0x29a79e(0x408)]+_0x29a79e(0xae)+(_0x19af4f[_0x29a79e(0x9ac)]||_0x19af4f[_0x29a79e(0x527)])+'\x22\x20alone\x20under\x20a\x20combined\x20label.')),[];}return DataProcessor['applyRefToSeries'](_0x540a47,_0x2362f0,_0x19af4f[_0x29a79e(0x5cd)]);}[_0x45b7b8(0xaab)](_0x6271ad,_0x270b1a,_0x176ffd,_0x52ae7f,_0x3f36c3,_0xaf3dd7){const _0x3d4ee0=_0x45b7b8,_0xfe14c1=this[_0x3d4ee0(0x9b6)],_0x3cf121=resolveDisplayTimeZone(this[_0x3d4ee0(0xb79)],_0xfe14c1),_0x456930=resolveFirstWeekday(this[_0x3d4ee0(0xb79)]),_0x144c6f=[_0x3d4ee0(0xd59),'date',_0x3d4ee0(0xb89),_0x3d4ee0(0x6e0),'year'],_0x11f746=!_0x270b1a['statistic_id']&&!_0x270b1a[_0x3d4ee0(0x8bf)]&&!_0x270b1a[_0x3d4ee0(0x6e9)]&&_0xfe14c1['chart_mode']!=='state_timeline'&&_0xfe14c1[_0x3d4ee0(0x8d9)]!==_0x3d4ee0(0x301);let _0x390663,_0x9ab749=null;if(_0x11f746){let _0x266d1c=DataProcessor[_0x3d4ee0(0xbde)](_0x270b1a['aggregate_func']===_0x3d4ee0(0x6dc)?DataProcessor[_0x3d4ee0(0x75a)](_0x6271ad):!_0x176ffd&&_0x270b1a[_0x3d4ee0(0x234)]==='change'?DataProcessor[_0x3d4ee0(0xd74)](_0x6271ad,_0x270b1a[_0x3d4ee0(0x3fa)]===!![]):_0x6271ad,_0x270b1a);if(_0x270b1a[_0x3d4ee0(0x408)])_0x266d1c=this[_0x3d4ee0(0x47b)](_0x266d1c,_0x270b1a);const _0x478110=this[_0x3d4ee0(0xc9a)](_0x270b1a);if(_0x478110)_0x266d1c=DataProcessor['applyPriceToSeries'](_0x266d1c,_0x478110);const _0x1cc7c8=(_0x3f36c3-_0x52ae7f)/0x36ee80,_0x2be851=resolvePointsPerHour(_0xfe14c1,_0x270b1a,_0x1cc7c8),_0x11c7b9=resolveGroupBy(_0xfe14c1,_0x1cc7c8),_0x214e9f=groupBucketMs(_0x11c7b9,_0xfe14c1['hours_to_show'],_0x2be851);let _0x5033d8=_0x270b1a[_0x3d4ee0(0x234)];_0x176ffd&&_0x5033d8===_0x3d4ee0(0x68e)&&(_0x5033d8='sum');!_0x176ffd&&_0x5033d8===_0x3d4ee0(0x68e)&&(_0x5033d8=_0x3d4ee0(0xc7f));_0x5033d8===_0x3d4ee0(0x6dc)&&(_0x5033d8=_0x3d4ee0(0xc7f));const _0x1ff6ae=_0x5033d8===_0x3d4ee0(0xc7f)||_0x5033d8===_0x3d4ee0(0x34c),_0x186856=resolveOffsetHours(_0x270b1a[_0x3d4ee0(0x74a)],this[_0x3d4ee0(0xb79)])!==0x0||(toNum(_0x270b1a['forecast_horizon'])?toNum(_0x270b1a['forecast_horizon'])!==0x0:![]),_0x462086=!!_0x270b1a['ref_entity']&&[_0x3d4ee0(0xc0a),_0x3d4ee0(0x24e),_0x3d4ee0(0xccb)][_0x3d4ee0(0x615)](normalizeRefOp(_0x270b1a[_0x3d4ee0(0x5cd)])),_0x4b61b0=_0x270b1a[_0x3d4ee0(0x2d9)]!==![]&&!_0x462086;let _0x2d9c2d,_0x48b0c1=_0x266d1c;if(_0xaf3dd7>0x0&&_0x266d1c[_0x3d4ee0(0x230)]&&_0x266d1c[0x0]['t']<_0x52ae7f){let _0x229fc6=0x0;while(_0x229fc6<_0x266d1c['length']&&_0x266d1c[_0x229fc6]['t']<_0x52ae7f)_0x229fc6++;const _0xbb2c2e=_0x266d1c[_0x3d4ee0(0x376)](_0x229fc6);_0x229fc6>0x0&&!_0x1ff6ae&&!(_0xbb2c2e[_0x3d4ee0(0x230)]&&_0xbb2c2e[0x0]['t']===_0x52ae7f)?_0x48b0c1=[{..._0x266d1c[_0x229fc6-0x1],'t':_0x52ae7f},..._0xbb2c2e]:_0x48b0c1=_0xbb2c2e;}if(_0x144c6f[_0x3d4ee0(0x615)](_0x11c7b9)){const _0x324039=_0x3cf121;_0x4b61b0&&(_0x48b0c1=DataProcessor[_0x3d4ee0(0xd01)](_0x48b0c1,_0x11c7b9,_0x5033d8,_0x324039,this[_0x3d4ee0(0xd50)](_0x270b1a)));_0x2d9c2d=DataProcessor[_0x3d4ee0(0xa3d)](_0x48b0c1,_0x11c7b9,_0x5033d8,_0x3f36c3,_0x324039,(_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a[_0x3d4ee0(0x33b)])===_0x3d4ee0(0xb67),_0x456930);if(!_0x270b1a[_0x3d4ee0(0x240)]){const _0xddb1aa=_0x48b0c1&&_0x48b0c1[_0x3d4ee0(0x230)]>0x0?_0x48b0c1[_0x48b0c1['length']-0x1]['t']:null,_0xbcd1f7=_0x11c7b9===_0x3d4ee0(0xd59)&&Date[_0x3d4ee0(0xcca)]()<=_0x3f36c3+0xea60?0x6ddd00:0x0;_0x2d9c2d=DataProcessor[_0x3d4ee0(0xa45)](_0x2d9c2d,_0x11c7b9,_0x5033d8,{'endMs':_0x3f36c3,'lastRawT':_0xddb1aa,'tz':_0x324039,'carrySlackMs':_0xbcd1f7});}else _0x2d9c2d=DataProcessor[_0x3d4ee0(0xced)](_0x2d9c2d,_0x11c7b9,{'tz':_0x324039});}else _0x214e9f>0x0?_0x2d9c2d=DataProcessor[_0x3d4ee0(0x9c3)](_0x48b0c1,_0x214e9f,_0x52ae7f,_0x3f36c3,_0x5033d8,!!_0x270b1a[_0x3d4ee0(0xbca)]||_0x5033d8==='delta',{'deltaAgg':_0x1ff6ae,'noLeadFill':!!_0x270b1a['ref_entity'],'breakOnNull':!!_0x270b1a['break_on_null'],'carryForwardMs':_0x270b1a['carry_forward_ms'],'alignToClock':this['_shouldAlignToClock'](_0x270b1a),'anchorStart':[_0x3d4ee0(0xb67),'bar'][_0x3d4ee0(0x615)](_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a[_0x3d4ee0(0x33b)]),'ohlc':(_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a[_0x3d4ee0(0x33b)])===_0x3d4ee0(0xb67),'carryPastNow':_0x186856}):_0x2d9c2d=_0x266d1c;_0x5033d8===_0x3d4ee0(0x34c)&&(_0x2d9c2d=DataProcessor[_0x3d4ee0(0x583)](_0x2d9c2d,!!_0x270b1a[_0x3d4ee0(0xbca)]));_0x9ab749=DataProcessor['computeMovingAveragesExt'](_0x266d1c,_0x270b1a,{'startMs':_0x52ae7f,'endMs':_0x3f36c3,'bucketMs':_0x214e9f,'groupBy':_0x11c7b9,'aggFunc':_0x5033d8,'alignToClock':this[_0x3d4ee0(0x36f)](_0x270b1a),'anchorStart':[_0x3d4ee0(0xb67),_0x3d4ee0(0x4f3)]['includes'](_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a[_0x3d4ee0(0x33b)]),'tz':_0x3cf121,'firstWd':_0x456930,'deltaAgg':_0x1ff6ae,'carryPastNow':_0x186856,'damp':_0x4b61b0,'isCounter':this[_0x3d4ee0(0xd50)](_0x270b1a)});if(_0x144c6f[_0x3d4ee0(0x615)](_0x11c7b9)&&!_0x186856&&(_0xfe14c1[_0x3d4ee0(0x5f9)]||_0x3d4ee0(0x3c0))===_0x3d4ee0(0x3c0)&&![_0x3d4ee0(0xb67),_0x3d4ee0(0x4f3)]['includes'](_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a[_0x3d4ee0(0x33b)])){const _0x53a1f4=this['_nowStampMs']||Date[_0x3d4ee0(0xcca)]();if(_0x53a1f4<=_0x3f36c3+0xea60&&_0x2d9c2d['length']){const _0x5c747d=Math[_0x3d4ee0(0xd2f)](_0x53a1f4,_0x3f36c3),_0x931306=calendarCellStartMs(_0x5c747d,_0x11c7b9,_0x3cf121,_0x456930),_0x3437e0=_0x48b0c1&&_0x48b0c1[_0x3d4ee0(0x230)]?_0x48b0c1[_0x48b0c1[_0x3d4ee0(0x230)]-0x1]['t']:null,_0x4a366e=_0x11c7b9===_0x3d4ee0(0xd59)?0x6ddd00:0x0;if(isNum(_0x931306)&&isNum(_0x3437e0)&&_0x3437e0>=_0x931306-_0x4a366e){const _0x3adfea=_0x3e1f68=>{const _0xe6a522=_0x3d4ee0,_0x354b27=_0x3e1f68[_0x3e1f68[_0xe6a522(0x230)]-0x1];return _0x354b27&&_0x354b27['v']!=null&&_0x354b27['t']<=_0x5c747d&&_0x354b27['t']>=_0x931306?_0x3e1f68[_0xe6a522(0x376)](0x0,-0x1)['concat']({..._0x354b27,'t':_0x5c747d}):_0x3e1f68;};_0x2d9c2d=_0x3adfea(_0x2d9c2d);if(Array[_0x3d4ee0(0x1d7)](_0x9ab749))for(const _0x1c6705 of _0x9ab749){if(_0x1c6705&&Array[_0x3d4ee0(0x1d7)](_0x1c6705[_0x3d4ee0(0xaf8)])&&_0x1c6705[_0x3d4ee0(0xaf8)][_0x3d4ee0(0x230)])_0x1c6705[_0x3d4ee0(0xaf8)]=_0x3adfea(_0x1c6705[_0x3d4ee0(0xaf8)]);}}}}_0x390663=DataProcessor[_0x3d4ee0(0x831)](_0x2d9c2d,_0x270b1a,!!_0x270b1a[_0x3d4ee0(0xbca)]);}else{const _0x32e343=_0x270b1a[_0x3d4ee0(0x234)]==='diff'&&!_0x270b1a['fixed_value'],_0x2ddcf4=_0x270b1a['aggregate_func']===_0x3d4ee0(0x68e)&&!_0x176ffd&&!!_0x270b1a[_0x3d4ee0(0x527)];_0x390663=DataProcessor[_0x3d4ee0(0x584)](_0x32e343?DataProcessor[_0x3d4ee0(0x75a)](_0x6271ad):_0x2ddcf4?DataProcessor['changeDiffSeries'](_0x6271ad,_0x270b1a['change_ignore_zero']===!![]):_0x6271ad,_0x270b1a,!![]);_0x270b1a[_0x3d4ee0(0x408)]&&!_0x270b1a[_0x3d4ee0(0x8bf)]&&!_0x270b1a[_0x3d4ee0(0x6e9)]&&(_0x390663=this[_0x3d4ee0(0x47b)](_0x390663,_0x270b1a));const _0x17a9fc=this['_priceLookupFor'](_0x270b1a);_0x17a9fc&&!_0x270b1a['fixed_value']&&!_0x270b1a[_0x3d4ee0(0x6e9)]&&(_0x390663=DataProcessor['applyPriceToSeries'](_0x390663,_0x17a9fc));const _0x5aba4b=(_0x3f36c3-_0x52ae7f)/0x36ee80,_0x589d95=resolveGroupBy(_0xfe14c1,_0x5aba4b),_0x5bfee2=((()=>{const _0x523c95=_0x3d4ee0;let _0x353e2e=_0x270b1a[_0x523c95(0x234)];if(_0x353e2e===_0x523c95(0x68e)&&(_0x176ffd||_0x2ddcf4))_0x353e2e=_0x523c95(0xc7f);if(_0x353e2e===_0x523c95(0x6dc)&&(_0x176ffd||_0x32e343))_0x353e2e='sum';return _0x353e2e;})());if(_0x270b1a[_0x3d4ee0(0x527)]&&_0x390663&&_0x390663['length']>0x1&&_0x144c6f[_0x3d4ee0(0x615)](_0x589d95)){const _0x31175b=(_0x390663[_0x390663['length']-0x1]['t']-_0x390663[0x0]['t'])/Math[_0x3d4ee0(0xc78)](0x1,_0x390663[_0x3d4ee0(0x230)]-0x1),_0x37eccf=groupBucketMs(_0x589d95,_0xfe14c1['hours_to_show'],null);if(_0x37eccf>0x0&&_0x31175b>0x0&&_0x37eccf>_0x31175b*1.5){const _0x11bffe=_0x3cf121;_0x270b1a[_0x3d4ee0(0x2d9)]!==![]&&!(_0x270b1a[_0x3d4ee0(0x408)]&&[_0x3d4ee0(0xc0a),_0x3d4ee0(0x24e),'reverse_subtract']['includes'](normalizeRefOp(_0x270b1a['ref_op'])))&&(_0x390663=DataProcessor['dampResetBoundaryMax'](_0x390663,_0x589d95,_0x5bfee2,_0x11bffe,this[_0x3d4ee0(0xd50)](_0x270b1a))),_0x390663=DataProcessor['calendarGroup'](_0x390663,_0x589d95,_0x5bfee2,_0x3f36c3,_0x11bffe,(_0x270b1a['graph_type']||_0x270b1a[_0x3d4ee0(0x33b)])===_0x3d4ee0(0xb67),_0x456930);}}if(_0x270b1a[_0x3d4ee0(0x527)]&&_0x390663&&_0x390663[_0x3d4ee0(0x230)]>0x0&&_0x144c6f[_0x3d4ee0(0x615)](_0x589d95)&&!_0x270b1a[_0x3d4ee0(0x240)]){const _0x2ed6fc=_0x6271ad&&_0x6271ad['length']>0x0?_0x6271ad[_0x6271ad[_0x3d4ee0(0x230)]-0x1]['t']:null;_0x390663=DataProcessor[_0x3d4ee0(0xa45)](_0x390663,_0x589d95,_0x5bfee2,{'endMs':_0x3f36c3,'lastRawT':_0x2ed6fc,'tz':_0x3cf121});}else _0x270b1a['statistic_id']&&_0x390663&&_0x390663[_0x3d4ee0(0x230)]>0x0&&_0x144c6f[_0x3d4ee0(0x615)](_0x589d95)&&_0x270b1a[_0x3d4ee0(0x240)]&&(_0x390663=DataProcessor[_0x3d4ee0(0xced)](_0x390663,_0x589d95,{'tz':_0x3cf121}));const _0x523424=resolveOffsetHours(_0x270b1a[_0x3d4ee0(0x74a)],this[_0x3d4ee0(0xb79)])!==0x0||(toNum(_0x270b1a['forecast_horizon'])?toNum(_0x270b1a[_0x3d4ee0(0xb87)])!==0x0:![]);if(_0x270b1a[_0x3d4ee0(0x527)]&&_0x390663&&_0x390663[_0x3d4ee0(0x230)]>0x0&&_0x144c6f['includes'](_0x589d95)&&!_0x523424&&(_0xfe14c1[_0x3d4ee0(0x5f9)]||_0x3d4ee0(0x3c0))===_0x3d4ee0(0x3c0)&&!['candlestick',_0x3d4ee0(0x4f3)][_0x3d4ee0(0x615)](_0x270b1a[_0x3d4ee0(0xb02)]||_0x270b1a['type'])){const _0x45c8bf=this['_nowStampMs']||Date[_0x3d4ee0(0xcca)]();if(_0x45c8bf<=_0x3f36c3+0xea60){const _0x3d0bda=_0x390663[_0x390663[_0x3d4ee0(0x230)]-0x1],_0x2f5876=Math[_0x3d4ee0(0xd2f)](_0x45c8bf,_0x3f36c3),_0x4f189d=calendarCellStartMs(_0x2f5876,_0x589d95,_0x3cf121,_0x456930),_0x5c24d9=_0x6271ad&&_0x6271ad[_0x3d4ee0(0x230)]>0x0?_0x6271ad[_0x6271ad[_0x3d4ee0(0x230)]-0x1]['t']:null,_0x210929=_0x589d95===_0x3d4ee0(0xd59)?0x6ddd00:0x0;_0x3d0bda['v']!=null&&isNum(_0x4f189d)&&isNum(_0x5c24d9)&&_0x5c24d9>=_0x4f189d-_0x210929&&_0x3d0bda['t']<=_0x2f5876&&_0x3d0bda['t']>=_0x4f189d&&(_0x390663=_0x390663[_0x3d4ee0(0x376)](0x0,-0x1)[_0x3d4ee0(0x76a)]({..._0x3d0bda,'t':_0x2f5876}));}}_0x270b1a[_0x3d4ee0(0x234)]===_0x3d4ee0(0x34c)&&(_0x390663=DataProcessor['applyBandDelta'](_0x390663,!!_0x270b1a['show_range_band']));_0x390663=DataProcessor[_0x3d4ee0(0x831)](_0x390663,_0x270b1a,!!_0x270b1a[_0x3d4ee0(0xbca)]);if(_0xaf3dd7>0x0&&Array[_0x3d4ee0(0x1d7)](_0x390663)&&_0x390663[_0x3d4ee0(0x230)]){let _0x56e49d=_0x52ae7f;if(_0x270b1a[_0x3d4ee0(0x527)]&&_0x144c6f[_0x3d4ee0(0x615)](_0x589d95)){const _0x2f24f8=tzParts(_0x52ae7f,_0x3cf121);switch(_0x589d95){case _0x3d4ee0(0xd59):_0x56e49d=zonedWallToMs(_0x2f24f8['y'],_0x2f24f8['mo'],_0x2f24f8['d'],_0x2f24f8['h'],0x0,0x0,_0x3cf121);break;case _0x3d4ee0(0xa52):_0x56e49d=zonedWallToMs(_0x2f24f8['y'],_0x2f24f8['mo'],_0x2f24f8['d'],0x0,0x0,0x0,_0x3cf121);break;case _0x3d4ee0(0xb89):_0x56e49d=zonedWallToMs(_0x2f24f8['y'],_0x2f24f8['mo'],_0x2f24f8['d']-weekStartOffsetDays(_0x2f24f8['wd'],_0x456930),0x0,0x0,0x0,_0x3cf121);break;case _0x3d4ee0(0x6e0):_0x56e49d=zonedWallToMs(_0x2f24f8['y'],_0x2f24f8['mo'],0x1,0x0,0x0,0x0,_0x3cf121);break;case _0x3d4ee0(0x74c):_0x56e49d=zonedWallToMs(_0x2f24f8['y'],0x0,0x1,0x0,0x0,0x0,_0x3cf121);break;}}_0x9ab749=DataProcessor[_0x3d4ee0(0x71e)](_0x390663,_0x270b1a);if(_0x9ab749){for(const _0x3b6dfc of _0x9ab749)_0x3b6dfc[_0x3d4ee0(0xaf8)]=_0x3b6dfc[_0x3d4ee0(0xaf8)]['filter'](_0x58da95=>_0x58da95['t']>=_0x56e49d);}_0x390663=_0x390663[_0x3d4ee0(0xbb6)](_0xa04f08=>_0xa04f08['t']>=_0x56e49d);}}return{'points':_0x390663,'maSeries':_0x9ab749};}[_0x45b7b8(0xb81)](_0x2cf6ac,_0x2b3fbf,_0x388faf,_0x206939,_0x545b30){const _0x36558a=_0x45b7b8;if(!_0x2b3fbf||!_0x2b3fbf[_0x36558a(0x9ac)]||_0x2b3fbf['statistic_id'])return _0x2cf6ac;if(_0x2b3fbf[_0x36558a(0x8bf)]||_0x2b3fbf[_0x36558a(0x6e9)])return _0x2cf6ac;if(!this[_0x36558a(0xd1)](_0x2b3fbf))return _0x2cf6ac;if(!this[_0x36558a(0xb06)]())return _0x2cf6ac;if(resolveOffsetHours(_0x2b3fbf[_0x36558a(0x74a)],this[_0x36558a(0xb79)])!==0x0)return _0x2cf6ac;const _0x243b55=_0x2b3fbf[_0x36558a(0x234)]||_0x36558a(0x7f0);if(![_0x36558a(0x503),'first',_0x36558a(0xc78),_0x36558a(0xd2f),_0x36558a(0x7f0),'mean','median'][_0x36558a(0x615)](_0x243b55))return _0x2cf6ac;const _0x97708c=this[_0x36558a(0xb79)]?.['states']?.[_0x2b3fbf['entity']];if(!_0x97708c||_0x97708c[_0x36558a(0x992)]==='unknown'||_0x97708c[_0x36558a(0x992)]===_0x36558a(0x495))return _0x2cf6ac;const _0x226384=this[_0x36558a(0x2a3)](_0x2b3fbf,_0x388faf),_0x103287=_0x226384?getAttributePath(_0x97708c[_0x36558a(0x74e)],_0x226384):_0x97708c[_0x36558a(0x992)],_0x1b7ac9=toNum(_0x103287);if(_0x1b7ac9===null)return _0x2cf6ac;const _0x4a9b05=_0x97708c[_0x36558a(0xb3)]||_0x97708c[_0x36558a(0x80c)]||null;let _0x10af1a=_0x4a9b05?new Date(_0x4a9b05)['getTime']():Date[_0x36558a(0xcca)]();if(_0x10af1a-_0x545b30>=0x36ee80)return _0x2cf6ac;if(!(_0x10af1a>=_0x206939&&_0x10af1a<_0x545b30))_0x10af1a=_0x545b30-0x1;if(_0x10af1a<_0x206939)return _0x2cf6ac;const _0x3259f0=Array['isArray'](_0x2cf6ac)?_0x2cf6ac[_0x36558a(0x376)]():[];return _0x3259f0[_0x36558a(0x9f2)]({'t':_0x10af1a,'v':_0x1b7ac9}),_0x3259f0;}[_0x45b7b8(0xba0)](_0x86ada5){const _0x16f51a=_0x45b7b8,_0x17d1f9=this['_config'],_0x32d243=_0x86ada5[_0x16f51a(0x9ac)],_0x364c54=this[_0x16f51a(0x352)][_0x16f51a(0x866)]['getTime'](),_0x28b844=this[_0x16f51a(0x352)][_0x16f51a(0xbdf)][_0x16f51a(0x9e0)](),_0x6b2516=(_0x28b844-_0x364c54)/0x36ee80,_0x128231=this[_0x16f51a(0x9a2)](_0x6b2516),_0x392af2=this[_0x16f51a(0x461)][_0x16f51a(0x3f8)](_0x32d243),_0x13d3eb=this[_0x16f51a(0xb81)](_0x86ada5[_0x16f51a(0x301)],_0x32d243,_0x392af2,_0x364c54,_0x28b844),{points:_0x66b7d8,maSeries:_0x2c1f63}=this[_0x16f51a(0xaab)](_0x13d3eb,_0x32d243,_0x86ada5[_0x16f51a(0x9b5)],_0x364c54,_0x28b844,_0x128231);_0x86ada5[_0x16f51a(0xaf8)]=_0x66b7d8;const _0x257caf=this[_0x16f51a(0x30c)]>0x0?this[_0x16f51a(0x30c)]:0x320,_0x133fc4=Math[_0x16f51a(0xd2f)](0xbb8,Math['max'](0x190,_0x257caf*0x2));_0x86ada5[_0x16f51a(0x7dc)]=_0x2c1f63??DataProcessor[_0x16f51a(0x71e)](_0x86ada5[_0x16f51a(0xaf8)],_0x86ada5[_0x16f51a(0x9ac)]),_0x86ada5[_0x16f51a(0xaf8)]&&_0x86ada5[_0x16f51a(0xaf8)][_0x16f51a(0x230)]>_0x133fc4&&(_0x86ada5[_0x16f51a(0xaf8)]=DataProcessor['lttbDownsample'](_0x86ada5[_0x16f51a(0xaf8)],_0x133fc4)),_0x86ada5['bucketPrecision']=resolveBucketPrecision(_0x86ada5[_0x16f51a(0xaf8)]),_0x86ada5[_0x16f51a(0xc5d)]=![];}[_0x45b7b8(0x659)](){const _0x1f8d2b=_0x45b7b8,_0x27a3f4=new Set([_0x1f8d2b(0x6dc),'change',_0x1f8d2b(0x34c)]);return(this[_0x1f8d2b(0x461)]||[])[_0x1f8d2b(0x870)](_0x50be5f=>_0x50be5f&&(_0x27a3f4[_0x1f8d2b(0xd4f)](_0x50be5f['aggregate_func'])||_0x50be5f['_compareOf']!=null));}[_0x45b7b8(0x3f3)](){const _0x25cea2=_0x45b7b8;if(!this[_0x25cea2(0xb06)]())return;if(this[_0x25cea2(0x659)]()){this[_0x25cea2(0x24c)]();return;}this['_pendingSlide']=!![],this[_0x25cea2(0x3b8)]();}['_render'](){const _0x55d939=_0x45b7b8;if(!this['_config'])return;this[_0x55d939(0x744)]();if(this['_graphData']?.[_0x55d939(0x134)]?.[_0x55d939(0x230)]){const _0x295692=!!this[_0x55d939(0x9b6)][_0x55d939(0x821)];if(!(this[_0x55d939(0x2ba)]instanceof Map))this[_0x55d939(0x2ba)]=new Map();const _0x287141=this['_autoHideForce']instanceof Set?this[_0x55d939(0x497)]:null;for(const _0x1203b6 of this[_0x55d939(0x550)][_0x55d939(0x134)]){const _0xf174ab=_0x1203b6[_0x55d939(0x9ac)]?.[_0x55d939(0x395)],_0x5da19d=_0x295692?'__card__':_0xf174ab===!![]?!![]:_0xf174ab===![]?![]:'__visible__',_0x4161fa=this[_0x55d939(0x2ba)][_0x55d939(0xd4f)](_0x1203b6['id'])?this[_0x55d939(0x2ba)][_0x55d939(0x809)](_0x1203b6['id']):'__none__',_0x31b47e=_0x287141?.[_0x55d939(0xd4f)](_0x1203b6['id']);if(_0x287141)_0x287141[_0x55d939(0x906)](_0x1203b6['id']);if(_0x5da19d===_0x4161fa&&!_0x31b47e)continue;_0x5da19d==='__card__'||_0x5da19d===!![]?this[_0x55d939(0x810)]['add'](_0x1203b6['id']):(_0x5da19d===![]||_0x4161fa==='__card__'||_0x4161fa===!![]||_0x31b47e)&&this[_0x55d939(0x810)][_0x55d939(0x906)](_0x1203b6['id']),this[_0x55d939(0x2ba)][_0x55d939(0x4f1)](_0x1203b6['id'],_0x5da19d);}}const _0x2a8121=!!this[_0x55d939(0x9b6)][_0x55d939(0x71c)]&&(this[_0x55d939(0x9b6)]['chart_mode']||_0x55d939(0x3c0))===_0x55d939(0x3c0);if(_0x2a8121){this[_0x55d939(0x164)]();return;}this[_0x55d939(0xa22)](),this[_0x55d939(0x227)](),this[_0x55d939(0x195)](),this['_renderAttributeList'](),this[_0x55d939(0xd19)](),this[_0x55d939(0x841)](),this[_0x55d939(0xbaa)]();const _0x513bb6=this[_0x55d939(0x4ad)][_0x55d939(0x845)](_0x55d939(0x463));if(!_0x513bb6)return;const _0x55a2f4=this[_0x55d939(0x4ad)][_0x55d939(0x845)](_0x55d939(0xb7f));if(_0x55a2f4)_0x55a2f4[_0x55d939(0x394)][_0x55d939(0x939)](_0x55d939(0xb3f));this[_0x55d939(0x971)]();if(!this[_0x55d939(0x550)]){_0x513bb6['innerHTML']=_0x55d939(0x25b)+escapeHtml(cardT(this['_hass'],this[_0x55d939(0x9b6)],'Loading…'))+_0x55d939(0x31c),this[_0x55d939(0xa89)]='';return;}const _0x39f29f=this['_config'][_0x55d939(0x5f9)]||'timeline',_0xfd32af=new Set([_0x55d939(0x700),_0x55d939(0x47f),_0x55d939(0x17e),_0x55d939(0x238),_0x55d939(0xa93),_0x55d939(0xcc7),_0x55d939(0x5f5),'state_timeline',_0x55d939(0x95c),_0x55d939(0xd5a),_0x55d939(0x3f6),_0x55d939(0x449)]);if(_0x55a2f4){if(_0xfd32af[_0x55d939(0xd4f)](_0x39f29f))_0x55a2f4[_0x55d939(0x394)][_0x55d939(0x24e)](_0x55d939(0xb8e));else _0x55a2f4[_0x55d939(0x394)][_0x55d939(0x939)]('sgc-no-bleed');}const _0x58704c=this[_0x55d939(0xace)](_0x39f29f),_0x1ecea8=this[_0x55d939(0xc64)](_0x39f29f);if(_0x1ecea8&&_0x1ecea8===this[_0x55d939(0xa89)]&&_0x513bb6[_0x55d939(0x77c)]){this['_renderLegend']();return;}this[_0x55d939(0xa89)]=_0x1ecea8,this['_renderLegend']();try{let _0x1686a2=this[_0x55d939(0x550)][_0x55d939(0x134)][_0x55d939(0xbb6)](_0x1ccaae=>!this['_hiddenEntities']['has'](_0x1ccaae['id'])&&_0x1ccaae[_0x55d939(0x9ac)]?.[_0x55d939(0x29a)]!==![]);const _0x2e7323=this[_0x55d939(0x9b6)]['graph_start_hour'],_0x526e3f=this[_0x55d939(0x9b6)][_0x55d939(0xc13)],_0x1afaac=resolveDynamicValue(_0x2e7323,this['_hass'])??toNum(_0x2e7323),_0x116d04=resolveDynamicValue(_0x526e3f,this[_0x55d939(0xb79)])??toNum(_0x526e3f);if(isNum(_0x1afaac)||isNum(_0x116d04)){const _0x33232a=isNum(_0x1afaac)?_0x1afaac:0x0,_0x1bdcb6=isNum(_0x116d04)?_0x116d04:0x18;_0x1686a2=_0x1686a2[_0x55d939(0x963)](_0x2c974f=>{const _0x2005e4=_0x55d939,_0x447e78=_0x2c974f['points'][_0x2005e4(0x963)](_0x20f2b7=>{const _0x22001c=_0x2005e4;if(_0x20f2b7['v']===null)return _0x20f2b7;const _0x21105b=new Date(_0x20f2b7['t']),_0x12a475=_0x21105b[_0x22001c(0x6d6)]()+_0x21105b[_0x22001c(0x410)]()/0x3c;if(_0x12a475<_0x33232a||_0x12a475>=_0x1bdcb6)return{..._0x20f2b7,'v':null};return _0x20f2b7;});return{..._0x2c974f,'points':_0x447e78};});}_0x58704c[_0x55d939(0x1ca)](_0x513bb6,_0x1686a2,this[_0x55d939(0x9b6)],this['_hass']);}catch(_0x1f5369){console['error'](_0x55d939(0x1f8),_0x1f5369),_0x513bb6[_0x55d939(0x339)]=_0x55d939(0x26b)+escapeHtml(_0x1f5369['message'])+_0x55d939(0x31c),this[_0x55d939(0xa89)]='';}const _0x22ec9d=(this[_0x55d939(0x461)]||[])[_0x55d939(0x870)](_0x5108b5=>_0x5108b5?.[_0x55d939(0x341)]==='click');_0x22ec9d&&_0x55a2f4&&!_0x55a2f4[_0x55d939(0x454)]&&(_0x55a2f4['_sgcExtremaBound']=!![],_0x55a2f4[_0x55d939(0x538)][_0x55d939(0x453)]=_0x55d939(0x70c),_0x55a2f4['addEventListener'](_0x55d939(0x956),_0x53e0f7=>{const _0x5ee4af=_0x55d939;if(_0x53e0f7[_0x5ee4af(0xbd4)]?.[_0x5ee4af(0xa2e)]?.(_0x5ee4af(0x65a)))return;this['_showExtremaOnClick']=!this[_0x5ee4af(0x860)],this[_0x5ee4af(0xa89)]='',this[_0x5ee4af(0x970)]();})),this[_0x55d939(0x373)]();}[_0x45b7b8(0x373)](){const _0x4a72c6=_0x45b7b8,_0xa0da2a=this['shadowRoot'];if(!_0xa0da2a)return;const _0x3dbc50=_0xa0da2a['querySelector'](_0x4a72c6(0xb7f));if(!_0x3dbc50)return;_0x3dbc50[_0x4a72c6(0x506)]('.sgc-y-axis-label')[_0x4a72c6(0x1ce)](_0x1105dc=>_0x1105dc[_0x4a72c6(0x939)]());const _0x31a2ed=this[_0x4a72c6(0x9b6)];if(!_0x31a2ed['show_y_axis_label'])return;const _0x3b5f5d=(this[_0x4a72c6(0x461)]||[])[_0x4a72c6(0xbb6)](_0x3a2419=>_0x3a2419[_0x4a72c6(0x16d)]!==![]||_0x3a2419[_0x4a72c6(0x29a)]!==![]),_0x1328e8=this[_0x4a72c6(0x550)]?.[_0x4a72c6(0x134)]||[],_0x2224b4=new Map(_0x1328e8[_0x4a72c6(0x963)](_0xb695d2=>[_0xb695d2['id'],_0xb695d2])),_0xc6245e=_0x30e08e=>{const _0x33ee16=_0x4a72c6;let _0x5503a1=0x0;for(const _0x2d6cad of this[_0x33ee16(0x461)]||[]){const _0x39de75=_0x2d6cad[_0x33ee16(0x2e3)]==='secondary';if(_0x30e08e===_0x33ee16(0x687)&&_0x39de75||_0x30e08e===_0x33ee16(0x3b9)&&!_0x39de75){if(_0x2d6cad['unit'])return _0x2d6cad[_0x33ee16(0xd4b)];const _0x2cbc30=_0x2d6cad[_0x33ee16(0x9ac)]+'__'+_0x5503a1,_0x1a862a=_0x2224b4[_0x33ee16(0x809)](_0x2cbc30)||_0x1328e8[_0x33ee16(0x740)](_0x284d95=>_0x284d95['entity']===_0x2d6cad),_0x25f3de=_0x1a862a?.[_0x33ee16(0x7cb)]?.[_0x33ee16(0xcc8)]||this[_0x33ee16(0xb79)]?.[_0x33ee16(0x81a)]?.[_0x2d6cad[_0x33ee16(0x9ac)]]?.[_0x33ee16(0x74e)]?.['unit_of_measurement'];if(_0x25f3de)return _0x25f3de;}_0x5503a1++;}return'';},_0x103fef=(this[_0x4a72c6(0x461)]||[])[_0x4a72c6(0x870)](_0x3986d7=>_0x3986d7[_0x4a72c6(0x2e3)]===_0x4a72c6(0x687)),_0x45b704=this[_0x4a72c6(0x811)]??0x8,_0x31edc8=this[_0x4a72c6(0xb31)]??0x8,_0x47653c=(_0x45b704-_0x31edc8)/0x2,_0x2787ae=[_0x4a72c6(0x160)+_0x47653c+_0x4a72c6(0xa98)];if(_0x31a2ed['y_axis_font_size']){const _0x1437e3=String(_0x31a2ed[_0x4a72c6(0xc41)]);_0x2787ae[_0x4a72c6(0x9f2)]('font-size:\x20'+(/[a-z%]$/i[_0x4a72c6(0x7af)](_0x1437e3)?_0x1437e3:_0x1437e3+'px'));}_0x31a2ed[_0x4a72c6(0x719)]&&_0x2787ae['push'](_0x4a72c6(0xca5)+_0x31a2ed[_0x4a72c6(0x719)]);const _0x3802a1=toNum(_0x31a2ed[_0x4a72c6(0xd6d)]);isNum(_0x3802a1)&&_0x2787ae[_0x4a72c6(0x9f2)]('opacity:\x20'+_0x3802a1);const _0x37692d=_0x2787ae[_0x4a72c6(0xcdc)](';\x20')+';';{const _0x375ff3=_0x31a2ed[_0x4a72c6(0x7f6)],_0x9a4078=_0x375ff3!=null&&_0x375ff3!==''?_0x375ff3:_0xc6245e('primary');if(_0x9a4078){const _0x599ba6=document[_0x4a72c6(0xc3b)](_0x4a72c6(0xb8a));_0x599ba6[_0x4a72c6(0xbe4)]=_0x4a72c6(0x492),_0x599ba6[_0x4a72c6(0x538)]['cssText']=_0x37692d,_0x599ba6['textContent']=_0x9a4078,_0x3dbc50[_0x4a72c6(0xceb)](_0x599ba6);}}if(_0x103fef){const _0x2cd5b6=_0x31a2ed[_0x4a72c6(0x11d)],_0x3ae702=_0x2cd5b6!=null&&_0x2cd5b6!==''?_0x2cd5b6:_0xc6245e(_0x4a72c6(0x687));if(_0x3ae702){const _0x2c0248=document[_0x4a72c6(0xc3b)](_0x4a72c6(0xb8a));_0x2c0248[_0x4a72c6(0xbe4)]=_0x4a72c6(0x7fe),_0x2c0248[_0x4a72c6(0x538)]['cssText']=_0x37692d,_0x2c0248[_0x4a72c6(0x7ec)]=_0x3ae702,_0x3dbc50[_0x4a72c6(0xceb)](_0x2c0248);}}}['_renderSparkline'](){const _0x4713f1=_0x45b7b8,_0x3507a9=this[_0x4713f1(0x4ad)];if(!_0x3507a9)return;for(const _0x4e3837 of[_0x4713f1(0xa9c),'.sgc-header-wrap',_0x4713f1(0xb0b),_0x4713f1(0xbb4),_0x4713f1(0xa96),'.sgc-state-wrap','.sgc-legend-wrap','.sgc-detail-legend-wrap']){const _0x518037=_0x3507a9[_0x4713f1(0x845)](_0x4e3837);if(_0x518037)_0x518037[_0x4713f1(0x339)]='';}const _0x5d6ac5=_0x3507a9[_0x4713f1(0x845)]('.sgc-plot-wrap'),_0x183e02=_0x3507a9[_0x4713f1(0x845)](_0x4713f1(0x463));if(!_0x5d6ac5||!_0x183e02)return;_0x5d6ac5['classList'][_0x4713f1(0x24e)]('sgc-spark-mode'),_0x183e02[_0x4713f1(0x538)][_0x4713f1(0x931)]=_0x4713f1(0x917),_0x183e02[_0x4713f1(0x394)]['remove'](_0x4713f1(0xcab),_0x4713f1(0x1eb));const _0x78fd9=this[_0x4713f1(0xb79)],_0x415b9f=this[_0x4713f1(0x461)]||[],_0x4c449f=this[_0x4713f1(0x550)]?.[_0x4713f1(0x134)]||[],_0x10fd5f=new Map(_0x4c449f['map'](_0x4e58f4=>[_0x4e58f4['id'],_0x4e58f4])),_0x2f5e48=_0x415b9f[_0x4713f1(0xbb6)](_0x5c3244=>_0x5c3244[_0x4713f1(0x16d)]!==![]||_0x5c3244['show_graph']!==![])['map'](_0x517f3e=>{const _0x510dd5=_0x4713f1,_0x3e6357=_0x415b9f['indexOf'](_0x517f3e),_0x364aff=_0x517f3e[_0x510dd5(0x9ac)]+'__'+_0x3e6357,_0x12ae0f=_0x10fd5f[_0x510dd5(0x809)](_0x364aff)||_0x4c449f[_0x510dd5(0x740)](_0x146501=>_0x146501[_0x510dd5(0x9ac)]===_0x517f3e),_0x24db7f=_0x12ae0f?.[_0x510dd5(0x7cb)]||{},_0x220c4b=pickName(_0x517f3e['name'],_0x24db7f[_0x510dd5(0x901)],_0x24db7f)??_0x517f3e[_0x510dd5(0x9ac)],_0x3ae32b=_0x517f3e[_0x510dd5(0xd4b)]||_0x24db7f[_0x510dd5(0xcc8)]||'';let _0x48eb59=this['_resolveColor'](_0x517f3e['color'],_0x517f3e['entity'])||_0x517f3e[_0x510dd5(0xacd)]||_0x510dd5(0x65e);const _0x119aab=this['_resolveStateRowValue'](_0x517f3e,_0x3e6357),_0x35cd59=isNum(_0x119aab?.['numeric'])?_0x119aab['numeric']:null,_0x231b55=_0x119aab?.[_0x510dd5(0x72b)]??'—';_0x517f3e[_0x510dd5(0xacd)]===_0x510dd5(0x7e5)&&_0x517f3e[_0x510dd5(0x9a9)]?.[_0x510dd5(0x46d)]&&_0x517f3e[_0x510dd5(0x9a9)]?.[_0x510dd5(0x5e7)]?.['length']&&isNum(_0x35cd59)&&(_0x48eb59=resolveValueColor(_0x35cd59,this[_0x510dd5(0x12f)](_0x517f3e),_0x48eb59)||_0x48eb59);const _0x58e802=_0x12ae0f?.['points']?.[_0x510dd5(0xbb6)](_0x58879b=>_0x58879b['v']!==null&&_0x58879b['v']!==undefined)||[];let _0x4e0212='',_0x31368c='';if(_0x58e802[_0x510dd5(0x230)]>=0x2){const _0x149cf3=0x78,_0x202d28=0x24;let _0x34d8e2=Infinity,_0x1e7f82=-Infinity;for(const _0x2cf75f of _0x58e802){if(_0x2cf75f['v']<_0x34d8e2)_0x34d8e2=_0x2cf75f['v'];if(_0x2cf75f['v']>_0x1e7f82)_0x1e7f82=_0x2cf75f['v'];}_0x1e7f82===_0x34d8e2&&(_0x1e7f82=_0x34d8e2+0x1,_0x34d8e2-=0x1);const _0xc0d918=_0x58e802[0x0]['t'],_0x322f70=_0x58e802[_0x58e802[_0x510dd5(0x230)]-0x1]['t'],_0xb866e6=Math[_0x510dd5(0xc78)](0x1,_0x322f70-_0xc0d918),_0x26b4dc=_0x254140=>(_0x254140-_0xc0d918)/_0xb866e6*_0x149cf3,_0x45fdee=_0x517f3e[_0x510dd5(0x3bb)]!==![],_0xff87b=_0x45fdee?0x6:0x2,_0x2edf2d=_0x5e607d=>_0x202d28-_0xff87b-(_0x5e607d['v']-_0x34d8e2)/(_0x1e7f82-_0x34d8e2)*(_0x202d28-_0xff87b*0x2),_0x2a2b82=_0x45fdee?buildSmoothPath(_0x58e802,_0x26b4dc,_0x2edf2d):buildLinearPath(_0x58e802,_0x26b4dc,_0x2edf2d),_0xa7554=_0x2a2b82+'\x20L\x20'+_0x149cf3+'\x20'+_0x202d28+_0x510dd5(0xb1c)+_0x202d28+'\x20Z',_0x492f26=_0x517f3e[_0x510dd5(0x83f)]!==![],_0x202aa7=toNum(_0x517f3e[_0x510dd5(0x220)])||0x1,_0x46a20e=lineDashArray(_0x517f3e['line_style'],_0x202aa7),_0x5a72d8=_0x46a20e?_0x510dd5(0x7c6)+_0x46a20e+'\x22':'',_0x218802=_0x492f26?_0x510dd5(0x38f):'0',_0x4c79bf=!!(_0x517f3e[_0x510dd5(0x9a9)]?.[_0x510dd5(0x46d)]&&_0x517f3e[_0x510dd5(0x9a9)]?.['values']?.['length']),_0xc387cf=_0x517f3e[_0x510dd5(0x9a9)]?.['direction']===_0x510dd5(0x3ba)?_0x510dd5(0x3ba):'vertical',_0x13f51e=_0x517f3e[_0x510dd5(0x9a9)]?.[_0x510dd5(0x51f)]!==_0x510dd5(0xc63);let _0x835f54='stroke=\x22'+escapeHtml(_0x48eb59)+'\x22',_0x3f6ae6=_0x510dd5(0x9b3)+escapeHtml(_0x48eb59)+_0x510dd5(0x2ce)+_0x218802+'\x22';if(_0x4c79bf){const _0x11c877=[...this[_0x510dd5(0x12f)](_0x517f3e)][_0x510dd5(0xbb6)](_0x526e86=>isNum(toNum(_0x526e86[_0x510dd5(0xba7)]))&&_0x526e86[_0x510dd5(0xacd)])[_0x510dd5(0xa8e)]((_0x97bec4,_0x11de68)=>toNum(_0x97bec4['value'])-toNum(_0x11de68[_0x510dd5(0xba7)]));if(_0x11c877[_0x510dd5(0x230)]){if(_0x517f3e[_0x510dd5(0x9a9)][_0x510dd5(0xd2d)]){const _0x2b3616=_0x58e802[_0x58e802[_0x510dd5(0x230)]-0x1]?.['v'];if(isNum(_0x2b3616)){const _0x34484f=resolveValueColor(_0x2b3616,_0x11c877,_0x48eb59);_0x835f54=_0x510dd5(0x28d)+escapeHtml(_0x34484f)+'\x22',_0x3f6ae6=_0x510dd5(0x9b3)+escapeHtml(_0x34484f)+_0x510dd5(0x2ce)+_0x218802+'\x22';}}else{if(_0xc387cf==='horizontal'){let _0x48cf1f='',_0x342649='';for(let _0x2e72da=0x0;_0x2e72da<_0x58e802[_0x510dd5(0x230)]-0x1;_0x2e72da++){const _0x1ba940=_0x58e802[_0x2e72da]['v'],_0x10a2ee=_0x58e802[_0x2e72da+0x1]['v'],_0x2e9497=(_0x1ba940+_0x10a2ee)/0x2,_0x2b7e3e=resolveValueColor(_0x2e9497,_0x11c877,_0x48eb59,_0x13f51e),_0xac983a=_0x26b4dc(_0x58e802[_0x2e72da]['t']),_0x248526=_0x2edf2d(_0x58e802[_0x2e72da]),_0x38e87e=_0x26b4dc(_0x58e802[_0x2e72da+0x1]['t']),_0x2bf889=_0x2edf2d(_0x58e802[_0x2e72da+0x1]);_0x48cf1f+=_0x510dd5(0xb3e)+_0xac983a+_0x510dd5(0x3be)+_0x248526+'\x22\x20x2=\x22'+_0x38e87e+'\x22\x20y2=\x22'+_0x2bf889+_0x510dd5(0xb50)+escapeHtml(_0x2b7e3e)+'\x22\x20stroke-width=\x22'+_0x202aa7+'\x22'+_0x5a72d8+_0x510dd5(0x300),_0x342649+=_0x510dd5(0xb2f)+_0xac983a+'\x20'+_0x248526+'\x20L\x20'+_0x38e87e+'\x20'+_0x2bf889+_0x510dd5(0x25e)+_0x38e87e+'\x20'+_0x202d28+_0x510dd5(0x25e)+_0xac983a+'\x20'+_0x202d28+_0x510dd5(0x546)+escapeHtml(_0x2b7e3e)+_0x510dd5(0x2ce)+_0x218802+_0x510dd5(0x5c6);}_0x4e0212='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20');}_0x40a165['push'](_0x510dd5(0xfc)+escapeHtml(_0x11c877[0x0][_0x510dd5(0xacd)])+_0x510dd5(0x49f));const _0x5a0404=_0x510dd5(0x425)+_0x5475e5+_0x510dd5(0xaed)+_0x40a165['join']('')+_0x510dd5(0x897);_0x835f54=_0x510dd5(0x678)+_0x5475e5+')\x22',_0x3f6ae6='fill=\x22url(#'+_0x5475e5+_0x510dd5(0x212)+_0x218802+'\x22',_0x4e0212=_0x510dd5(0x176)+_0x149cf3+'\x20'+_0x202d28+_0x510dd5(0x9ee)+_0x5a0404+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20');if(_0x517f3e[_0x510dd5(0x517)]){const _0x17991f=trendDirection(_0x12ae0f,_0x517f3e),_0x2ec87a=_0x17991f==='up'?'▲':_0x17991f==='down'?'▼':'─',_0x17d0dd=_0x17991f==='up'?_0x517f3e['trend_up_color']||_0x510dd5(0x516):_0x17991f===_0x510dd5(0x4c1)?_0x517f3e[_0x510dd5(0x2c5)]||_0x510dd5(0x4d2):_0x517f3e[_0x510dd5(0x35f)]||'var(--secondary-text-color)';_0x31368c=_0x510dd5(0x440)+_0x17d0dd+'\x22>'+_0x2ec87a+_0x510dd5(0xd45);}}const _0x770555=_0x517f3e[_0x510dd5(0x16d)]!==![],_0x25ad6c=_0x517f3e['show_graph']!==![],_0x2609d7=_0x770555?_0x510dd5(0xd39)+escapeHtml(_0x220c4b)+_0x510dd5(0xc98)+escapeHtml(_0x48eb59)+'\x22>'+escapeHtml(String(_0x231b55))+_0x510dd5(0x529)+escapeHtml(_0x3ae32b)+_0x510dd5(0xd45)+_0x31368c+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20':'',_0xe83061=_0x25ad6c?_0x510dd5(0xad7)+_0x4e0212+_0x510dd5(0x31c):'';return _0x510dd5(0x502)+_0x2609d7+_0xe83061+'';})[_0x4713f1(0xcdc)]('');_0x183e02[_0x4713f1(0x339)]=_0x4713f1(0x38d)+_0x2f5e48+_0x4713f1(0x31c),this[_0x4713f1(0xa89)]='';}[_0x45b7b8(0xc64)](_0x3ed6f8){const _0xa87172=_0x45b7b8,_0xa1b387=this[_0xa87172(0x550)];if(!_0xa1b387)return'';const _0x36b8b1=this[_0xa87172(0x352)],_0x56b734=this['_viewWindow'],_0xd5cf31=this[_0xa87172(0x4ad)]?.[_0xa87172(0x845)]?.('.sgc-plot'),_0x15291b=_0xd5cf31?.[_0xa87172(0x652)]|0x0,_0x35c7a3=this[_0xa87172(0x30c)]|0x0,_0x5a05e0=this[_0xa87172(0x4ad)]?.['querySelector']?.(_0xa87172(0xa9c))?.[_0xa87172(0xb2b)]|0x0,_0x172192=resolveDisplayTimeZone(this[_0xa87172(0xb79)],this[_0xa87172(0x9b6)])||_0xa87172(0x202),_0x5cbf8a=_0x35c7a3+'/'+_0x15291b+'/'+_0x5a05e0+'/'+_0x172192+'/'+resolveCardLanguage(this[_0xa87172(0xb79)],this[_0xa87172(0x9b6)]),_0x4a3199=(_0xa1b387[_0xa87172(0x134)]||[])[_0xa87172(0x963)](_0x1f8510=>_0x1f8510['id']+':'+(_0x1f8510[_0xa87172(0xaf8)]?.[_0xa87172(0x230)]||0x0)+':'+(_0x1f8510[_0xa87172(0xaf8)]?.[_0x1f8510[_0xa87172(0xaf8)][_0xa87172(0x230)]-0x1]?.['t']||0x0)+':'+(_0x1f8510[_0xa87172(0xaf8)]?.[_0x1f8510[_0xa87172(0xaf8)]['length']-0x1]?.['v']??''))[_0xa87172(0xcdc)]('|'),_0x4e3ce1=(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)](_0x2076ea=>''+(_0x2076ea?.[_0xa87172(0x976)]?'a':'')+(_0x2076ea?.[_0xa87172(0xbca)]?'b':'')+(_0x2076ea?.[_0xa87172(0x341)]||'')+(Array[_0xa87172(0x1d7)](_0x2076ea?.[_0xa87172(0x392)])&&_0x2076ea['moving_averages'][_0xa87172(0x230)]?'m'+_0x2076ea['moving_averages'][_0xa87172(0x963)](_0x31a391=>_0x31a391?.[_0xa87172(0x81d)]+':'+(_0x31a391?.[_0xa87172(0xacd)]||'')+':'+(_0x31a391?.[_0xa87172(0xaf)]||'')+':'+(_0x31a391?.[_0xa87172(0x2eb)]?'L':''))['join'](','):''))[_0xa87172(0xcdc)](','),_0x4ac41b=[...this[_0xa87172(0x810)]][_0xa87172(0xa8e)]()[_0xa87172(0xcdc)](','),_0x2e0a9f=this[_0xa87172(0x75e)]?.[_0xa87172(0x230)]||0x0,_0x5296a6=_0xa87172(0xb25)+(this[_0xa87172(0x860)]?0x1:0x0),_0x222be6=_0xa87172(0xf8)+(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)]((_0x4f1f52,_0x25cec9)=>_0x4f1f52?.[_0xa87172(0x2e3)]===_0xa87172(0x7be)?_0x25cec9:'')['filter'](Boolean)[_0xa87172(0xcdc)](',');return[_0x3ed6f8,_0x5cbf8a,this[_0xa87172(0x9b6)][_0xa87172(0x71c)]?_0xa87172(0x423):_0xa87172(0x671),this[_0xa87172(0x9b6)][_0xa87172(0x428)]?_0xa87172(0x8ac):'',this[_0xa87172(0x9b6)][_0xa87172(0xc9f)]?_0xa87172(0x7f3):'',_0xa87172(0x61a)+(this[_0xa87172(0x9b6)]['y_axis_decimals']??''),_0xa87172(0x686)+(this['_config'][_0xa87172(0xa0a)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)]['x_grid_style']||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xb5f)]??'')+'|'+(this[_0xa87172(0x9b6)]['x_grid_color']||'')+'|'+(this['_config']['x_grid_opacity']??'')+'|'+(this[_0xa87172(0x9b6)]['y_grid_style']||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x55d)]??'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x364)]||'')+'|'+(this['_config']['y_grid_opacity']??''),this['_config'][_0xa87172(0x646)]?_0xa87172(0xcb)+(this[_0xa87172(0x9b6)][_0xa87172(0x7f6)]||'')+'|'+(this['_config'][_0xa87172(0x11d)]||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xc41)]||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x719)]||'')+'|'+(this['_config'][_0xa87172(0xd6d)]??''):'',_0x3ed6f8==='pie'?'pie:'+(this['_config']['pie_style']||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xbc7)]?0x1:0x0)+'|'+(this['_config']['pie_spacing']??'')+'|'+(this[_0xa87172(0x9b6)]['pie_label_font_size']??'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x895)]||'')+'|'+(this[_0xa87172(0x9b6)]['pie_label_format']||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x311)]??'')+'|'+(this['_config'][_0xa87172(0x3a4)]||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x443)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)]['show_tooltip']!==![]?0x1:0x0):'',_0x3ed6f8==='radialbar'?'rb:'+(this['_config'][_0xa87172(0x443)]!==![]?0x1:0x0)+'|'+(this['_config'][_0xa87172(0x1be)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x461)]||[])['map'](_0x33a10a=>(_0x33a10a['lower_bound']??'')+'/'+(_0x33a10a[_0xa87172(0x3cc)]??''))[_0xa87172(0xcdc)](','):'',_0x3ed6f8===_0xa87172(0x95c)?_0xa87172(0x2d4)+(this[_0xa87172(0x9b6)][_0xa87172(0x633)]??'')+'|'+(this[_0xa87172(0x9b6)]['gauge_span']??'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x94d)]||'')+'|'+(this['_config']['gauge_value_size']??'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x1a4)]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)]['show_tooltip']!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)](_0x4c3bfb=>(_0x4c3bfb[_0xa87172(0xbdd)]??'')+'/'+(_0x4c3bfb[_0xa87172(0x3cc)]??'')+'/'+(_0x4c3bfb[_0xa87172(0x99c)]||'')+'/'+(_0x4c3bfb[_0xa87172(0x295)]!==![]?0x1:0x0)+'/'+(_0x4c3bfb[_0xa87172(0xacd)]||'')+'/'+(_0x4c3bfb['color_thresholds']?.[_0xa87172(0x46d)]?0x1:0x0)+'/'+(_0x4c3bfb['color_thresholds']?.[_0xa87172(0x5e7)]||[])[_0xa87172(0x963)](_0x42fa37=>_0x42fa37[_0xa87172(0xba7)]+':'+_0x42fa37['color'])[_0xa87172(0xcdc)](';')+'/'+(_0x4c3bfb[_0xa87172(0x9a9)]?.['transition']||'')+'/'+(_0x4c3bfb[_0xa87172(0x9a9)]?.[_0xa87172(0xd2d)]?0x1:0x0))[_0xa87172(0xcdc)](','):'',_0x3ed6f8==='ranking'?'rk:'+(this['_config'][_0xa87172(0xbe1)]||'')+'|'+(this['_config'][_0xa87172(0x443)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x1be)]!==![]?0x1:0x0):'',_0x3ed6f8===_0xa87172(0x75f)?_0xa87172(0x89d)+(this[_0xa87172(0x9b6)]['show_y_axis']!==![]?0x1:0x0)+'|'+(this['_config'][_0xa87172(0xc40)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xa0a)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xbad)]??'')+'|'+(this['_config'][_0xa87172(0x5a6)]??'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x80a)]||'')+'|'+(this[_0xa87172(0x9b6)]['y_axis_color']||'')+'|'+(this['_config'][_0xa87172(0x3d5)]||'')+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0xc41)]||''):'',_0x3ed6f8==='heatmap'||_0x3ed6f8===_0xa87172(0x5f5)?'hm:'+_0x3ed6f8+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x1be)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x461)]?.[0x0]?.[_0xa87172(0x234)]||'')+'|'+(this[_0xa87172(0x461)]?.[0x0]?.[_0xa87172(0xbdd)]??'')+'|'+(this[_0xa87172(0x461)]?.[0x0]?.['upper_bound']??''):'',_0x3ed6f8===_0xa87172(0xd5a)?_0xa87172(0x151)+(this[_0xa87172(0x9b6)]['show_tooltip']!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x8d9)]||'')+'|'+(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)](_0x5bb331=>(_0x5bb331[_0xa87172(0xacd)]||'')+'/'+(_0x5bb331[_0xa87172(0x790)]??'')+'/'+(_0x5bb331[_0xa87172(0x234)]||'')+'/'+(_0x5bb331[_0xa87172(0x8f9)]||'')+'/'+(_0x5bb331[_0xa87172(0xd4b)]||''))[_0xa87172(0xcdc)](','):'',_0x3ed6f8===_0xa87172(0x3f6)?_0xa87172(0x736)+(this[_0xa87172(0x9b6)][_0xa87172(0x1be)]!==![]?0x1:0x0)+'|'+(this['_config']['waterfall_total']!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)](_0x419cd6=>(_0x419cd6['color']||'')+'/'+(_0x419cd6[_0xa87172(0x790)]??'')+'/'+(_0x419cd6[_0xa87172(0x234)]||'')+'/'+(_0x419cd6[_0xa87172(0x8f9)]||'')+'/'+(_0x419cd6[_0xa87172(0xd4b)]||'')+'/'+(_0x419cd6['name']||''))['join'](','):'',_0x3ed6f8===_0xa87172(0x449)?_0xa87172(0x3d8)+(this[_0xa87172(0x9b6)][_0xa87172(0x1be)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)][_0xa87172(0x443)]!==![]?0x1:0x0)+'|'+(this[_0xa87172(0x9b6)]['histogram_bins']??'')+'|'+(this[_0xa87172(0x461)]||[])[_0xa87172(0x963)](_0x4d8fec=>(_0x4d8fec['color']||'')+'/'+(_0x4d8fec[_0xa87172(0x790)]??'')+'/'+(_0x4d8fec[_0xa87172(0x8f9)]||'')+'/'+(_0x4d8fec[_0xa87172(0xd4b)]||''))['join'](','):'',((()=>{const _0x481f40=_0xa87172,_0x36b24a=_0x36b8b1?.[_0x481f40(0x866)]?.[_0x481f40(0x9e0)]()||0x0,_0x1c8f61=_0x36b8b1?.[_0x481f40(0xbdf)]?.[_0x481f40(0x9e0)]()||0x0,_0x1bdd07=Math['max'](0x3e8,Math['floor']((_0x1c8f61-_0x36b24a)/Math[_0x481f40(0xc78)](_0x15291b,0x12c))||0x0);return'w:'+Math[_0x481f40(0xd3f)](_0x36b24a/_0x1bdd07)+'~'+Math[_0x481f40(0xd3f)](_0x1c8f61/_0x1bdd07);})()),_0x56b734?.[_0xa87172(0x866)]?.[_0xa87172(0x9e0)]()||0x0,_0x56b734?.[_0xa87172(0xbdf)]?.[_0xa87172(0x9e0)]()||0x0,_0x4ac41b,_0x2e0a9f,this[_0xa87172(0x860)]?0x1:0x0,_0x4e3ce1,_0x222be6,'gsh:'+(resolveDynamicValue(this[_0xa87172(0x9b6)]?.[_0xa87172(0x1d1)],this[_0xa87172(0xb79)])??toNum(this['_config']?.[_0xa87172(0x1d1)])??'')+':'+(resolveDynamicValue(this[_0xa87172(0x9b6)]?.['graph_end_hour'],this[_0xa87172(0xb79)])??toNum(this[_0xa87172(0x9b6)]?.['graph_end_hour'])??''),_0x4a3199][_0xa87172(0xcdc)]('§');}['_getRenderer'](_0x182b09){const _0x50eac0=_0x45b7b8;if(this['_renderers'][_0x50eac0(0xd4f)](_0x182b09))return this[_0x50eac0(0xb0)]['get'](_0x182b09);let _0x329074;if(_0x182b09===_0x50eac0(0x3c0))_0x329074=new TimelineRenderer(this);else{if(_0x182b09==='state_timeline')_0x329074=new StateTimelineRenderer(this);else{if(_0x182b09===_0x50eac0(0x700))_0x329074=new PieRenderer(this);else{if(_0x182b09===_0x50eac0(0x47f))_0x329074=new RadialBarRenderer(this);else{if(_0x182b09===_0x50eac0(0x95c))_0x329074=new GaugeRenderer(this);else{if(_0x182b09===_0x50eac0(0x17e))_0x329074=new PolarAreaRenderer(this);else{if(_0x182b09===_0x50eac0(0x238))_0x329074=new RadarRenderer(this);else{if(_0x182b09===_0x50eac0(0xa93))_0x329074=new RankingRenderer(this);else{if(_0x182b09===_0x50eac0(0x75f))_0x329074=new ScatterRenderer(this);else{if(_0x182b09==='heatmap')_0x329074=new HeatmapRenderer(this);else{if(_0x182b09==='calendar')_0x329074=new CalendarRenderer(this);else{if(_0x182b09===_0x50eac0(0xd5a))_0x329074=new BoxPlotRenderer(this);else{if(_0x182b09===_0x50eac0(0x3f6))_0x329074=new WaterfallRenderer(this);else{if(_0x182b09==='histogram')_0x329074=new HistogramRenderer(this);else _0x329074=new StubRenderer(this,_0x182b09);}}}}}}}}}}}}}return this[_0x50eac0(0xb0)][_0x50eac0(0x4f1)](_0x182b09,_0x329074),_0x329074;}[_0x45b7b8(0x744)](){const _0x2d71b4=_0x45b7b8,_0x228af8=this[_0x2d71b4(0x9b6)]['height'],_0x10215d=_0x228af8==null||_0x228af8==='auto'||_0x228af8==='',_0x26714d=toNum(this[_0x2d71b4(0x9b6)][_0x2d71b4(0x931)])||0x96,_0x2417c5=_0x10215d?'':_0x2d71b4(0xd02)+_0x26714d+_0x2d71b4(0x800),_0x127f02=this[_0x2d71b4(0x9b6)][_0x2d71b4(0xd8)],_0x3dce47=this['_config'][_0x2d71b4(0x927)]===![],_0x1693b8=this[_0x2d71b4(0x9b6)][_0x2d71b4(0x142)]===![],_0x4f5dd8=this[_0x2d71b4(0x9b6)],_0x469728=[];if(_0x127f02)_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x391)+_0x127f02);if(_0x3dce47)_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0xb1a));if(_0x1693b8)_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x1d9));if(_0x4f5dd8[_0x2d71b4(0x19f)]!==null&&_0x4f5dd8[_0x2d71b4(0x19f)]!==undefined&&_0x4f5dd8[_0x2d71b4(0x19f)]!==''){const _0x2c99e7=_0x4f5dd8[_0x2d71b4(0x19f)];_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x5a2)+(typeof _0x2c99e7===_0x2d71b4(0xc7)?_0x2c99e7+'px':_0x2c99e7));}if(_0x4f5dd8[_0x2d71b4(0xb8c)]!==null&&_0x4f5dd8['card_border_radius']!==undefined&&_0x4f5dd8[_0x2d71b4(0xb8c)]!==''){const _0x59b897=_0x4f5dd8[_0x2d71b4(0xb8c)];_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x9a6)+(typeof _0x59b897==='number'?_0x59b897+'px':_0x59b897));}if(!_0x1693b8){if(_0x4f5dd8['card_border_color'])_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0xa16)+_0x4f5dd8[_0x2d71b4(0xd23)]);if(_0x4f5dd8['card_border_width']!==null&&_0x4f5dd8[_0x2d71b4(0x132)]!==undefined&&_0x4f5dd8[_0x2d71b4(0x132)]!==''){const _0xef4fe7=_0x4f5dd8[_0x2d71b4(0x132)];_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0xc59)+(typeof _0xef4fe7==='number'?_0xef4fe7+'px':_0xef4fe7)),_0x469728['push']('border-style:solid');}}if(_0x4f5dd8[_0x2d71b4(0xc10)]){let _0x3bb6cb=String(_0x4f5dd8[_0x2d71b4(0xc10)])[_0x2d71b4(0x28f)]();_0x3bb6cb&&!/^([a-z]+:|\/|data:)/i[_0x2d71b4(0x7af)](_0x3bb6cb)&&(_0x3bb6cb=_0x2d71b4(0xc1d)+_0x3bb6cb[_0x2d71b4(0x8a6)](/^local\//,''));this[_0x2d71b4(0x749)]=_0x3bb6cb;const _0x35d472=_0x4f5dd8[_0x2d71b4(0x51c)]!==null&&_0x4f5dd8[_0x2d71b4(0x51c)]!==undefined&&_0x4f5dd8[_0x2d71b4(0x51c)]!=='';!_0x35d472&&(_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x99a)+_0x3bb6cb['replace'](/'/g,_0x2d71b4(0x40b))+'\x27)'),_0x469728[_0x2d71b4(0x9f2)](_0x2d71b4(0x6f2)),_0x469728['push']('background-position:center'),_0x469728['push'](_0x2d71b4(0x80d)));}else this['_normalizedBgImage']=null;const _0xa6c1f4=_0x469728[_0x2d71b4(0xcdc)](';'),_0x3492fb=getComputedStyle(document[_0x2d71b4(0xc01)])[_0x2d71b4(0x2db)]('--primary-font-family')['trim']()||_0x2d71b4(0x9b9),_0xec6aef=STYLES[_0x2d71b4(0x8a6)](_0x2d71b4(0xc75),_0x2d71b4(0xb4b)+_0x3492fb+';\x20}'),_0x43df8d=[];if(_0x4f5dd8['card_header_color'])_0x43df8d[_0x2d71b4(0x9f2)](_0x2d71b4(0x280)+_0x4f5dd8[_0x2d71b4(0x14a)]);_0x4f5dd8['card_header_weight']!==null&&_0x4f5dd8[_0x2d71b4(0x499)]!==undefined&&_0x4f5dd8[_0x2d71b4(0x499)]!==''&&_0x43df8d['push']('font-weight:'+_0x4f5dd8['card_header_weight']);if(_0x4f5dd8[_0x2d71b4(0xcbc)]!==null&&_0x4f5dd8[_0x2d71b4(0xcbc)]!==undefined&&_0x4f5dd8[_0x2d71b4(0xcbc)]!==''){const _0x18a142=_0x4f5dd8[_0x2d71b4(0xcbc)];_0x43df8d[_0x2d71b4(0x9f2)](_0x2d71b4(0x63f)+(typeof _0x18a142==='number'?_0x18a142+'px':_0x18a142));}let _0x255452=_0x43df8d[_0x2d71b4(0x230)]?_0x2d71b4(0x217)+_0x43df8d[_0x2d71b4(0xcdc)](';')+'}':'';const _0x11e677=_0x4f5dd8['card_background_blur']!==null&&_0x4f5dd8[_0x2d71b4(0x51c)]!==undefined&&_0x4f5dd8['card_background_blur']!=='';if(this[_0x2d71b4(0x749)]&&_0x11e677){const _0x6587aa=_0x4f5dd8['card_background_blur'],_0x44133a=typeof _0x6587aa===_0x2d71b4(0xc7)?_0x6587aa+'px':_0x6587aa,_0x5cf74b=this['_normalizedBgImage']['replace'](/'/g,_0x2d71b4(0x40b));_0x255452+=_0x2d71b4(0x793),_0x255452+=_0x2d71b4(0x54a)+_0x5cf74b+_0x2d71b4(0xbe5)+_0x44133a+_0x2d71b4(0x558),_0x255452+=_0x2d71b4(0x722);}const _0x3d7814=this[_0x2d71b4(0x4ad)][_0x2d71b4(0x845)]('.sgc-card'),_0x4d31e1=this[_0x2d71b4(0x4ad)][_0x2d71b4(0x845)](_0x2d71b4(0x463));if(_0x3d7814&&_0x4d31e1&&!this[_0x2d71b4(0xa5f)]){if((_0x3d7814[_0x2d71b4(0xa59)](_0x2d71b4(0x538))||'')!==_0xa6c1f4){if(_0xa6c1f4)_0x3d7814[_0x2d71b4(0xb9c)](_0x2d71b4(0x538),_0xa6c1f4);else _0x3d7814[_0x2d71b4(0x574)](_0x2d71b4(0x538));}const _0x2e01c7=_0x2417c5;if((_0x4d31e1[_0x2d71b4(0xa59)](_0x2d71b4(0x538))||'')!==_0x2e01c7){if(_0x2e01c7)_0x4d31e1[_0x2d71b4(0xb9c)](_0x2d71b4(0x538),_0x2e01c7);else _0x4d31e1[_0x2d71b4(0x574)]('style');}const _0x540c1f=this[_0x2d71b4(0x4ad)][_0x2d71b4(0x845)](_0x2d71b4(0x2cb));_0x540c1f&&_0x540c1f[_0x2d71b4(0x7ec)]!==_0xec6aef&&(_0x540c1f['textContent']=_0xec6aef);const _0x506055=this[_0x2d71b4(0x4ad)]['querySelector'](_0x2d71b4(0xf3));if(_0x255452){if(_0x506055){if(_0x506055[_0x2d71b4(0x7ec)]!==_0x255452)_0x506055[_0x2d71b4(0x7ec)]=_0x255452;}else{const _0xf35c11=document[_0x2d71b4(0xc3b)](_0x2d71b4(0x538));_0xf35c11['id']=_0x2d71b4(0x197),_0xf35c11['textContent']=_0x255452,this['shadowRoot'][_0x2d71b4(0xfa)](_0xf35c11,_0x3d7814);}}else _0x506055&&_0x506055[_0x2d71b4(0x939)]();return;}this[_0x2d71b4(0xa5f)]=![];const _0x29cbd8=_0xa6c1f4?_0x2d71b4(0x3e0)+_0xa6c1f4+'\x22':'',_0xef61a7=_0x255452?_0x2d71b4(0x977)+_0x255452+_0x2d71b4(0x25a):'';this[_0x2d71b4(0x4ad)]['innerHTML']=_0x2d71b4(0xc94)+_0xec6aef+''+_0xef61a7+'\x0a\x20\x20\x20\x20\x20\x20=0x3?_0x34ff56[_0x275801(0x376)](0x2)[_0x275801(0xcdc)]('.'):null,_0x999d65=this[_0x275801(0xb79)]?.[_0x275801(0x81a)]?.[_0x17ce58];if(!_0x999d65)return 0x14;const _0x2815a2=_0x49e6ac?getAttributePath(_0x999d65['attributes'],_0x49e6ac):_0x999d65['state'],_0x49cfdd=toNum(_0x2815a2);return isNum(_0x49cfdd)?_0x49cfdd:0x14;}['_renderBatteryIcon'](){const _0x57f29d=_0x45b7b8,_0x407e81=this[_0x57f29d(0x9b6)]?.['battery_entity'];if(!_0x407e81)return'';const _0x29ee10=this['_hass']?.[_0x57f29d(0x81a)]?.[_0x407e81];if(!_0x29ee10)return'';const _0x172a08=parseFloat(_0x29ee10['state']);if(Number[_0x57f29d(0x613)](_0x172a08))return'';const _0x12256e=this[_0x57f29d(0x51a)]();let _0x2218e1;if(_0x172a08<=_0x12256e)_0x2218e1='var(--error-color,\x20#ef4444)';else{if(_0x172a08<=0x19)_0x2218e1=_0x57f29d(0x5e9);else{if(_0x172a08<=0x32)_0x2218e1='#f1c40f';else _0x2218e1='var(--success-color,\x20#22c55e)';}}const _0x410111=Math['max'](0x0,Math[_0x57f29d(0xd2f)](0x64,_0x172a08))/0x64*0xa,_0x1270a4=escapeHtml(_0x29ee10[_0x57f29d(0x74e)]?.[_0x57f29d(0xc8b)]||_0x407e81);return _0x57f29d(0x66e)+_0x1270a4+':\x20'+Math[_0x57f29d(0xd3f)](_0x172a08)+_0x57f29d(0x250)+(0x4+(0xa-_0x410111))+'\x22\x20width=\x2210\x22\x20height=\x22'+_0x410111+'\x22\x20rx=\x220.5\x22\x20fill=\x22'+_0x2218e1+_0x57f29d(0x9db)+_0x2218e1+'\x22>'+Math[_0x57f29d(0xd3f)](_0x172a08)+_0x57f29d(0x4e8);}[_0x45b7b8(0xa22)](){const _0x2ff27e=_0x45b7b8,_0xc075ac=this[_0x2ff27e(0x4ad)][_0x2ff27e(0x845)](_0x2ff27e(0x946));if(!_0xc075ac)return;const _0x2a8dbf=this[_0x2ff27e(0x9b6)],_0x91f0d3=!!(_0x2a8dbf[_0x2ff27e(0xd7a)]||_0x2a8dbf[_0x2ff27e(0x2aa)]||_0x2a8dbf[_0x2ff27e(0x64b)]);if(!_0x91f0d3){_0xc075ac['innerHTML']='';return;}const _0x26275a=_0x2a8dbf[_0x2ff27e(0x334)]||_0x2ff27e(0xc7c),_0x229cb7=this['_renderBatteryIcon'](),_0x18627e=_0x256dfa=>_0x256dfa==='center'||_0x256dfa==='right'?_0x256dfa:_0x2ff27e(0x4f8),_0x55871c=_0x18627e(_0x2a8dbf[_0x2ff27e(0x5dd)]),_0x49c6c0=_0x2a8dbf['card_icon_position']===_0x2ff27e(0x896),_0x225baa=_0x2a8dbf[_0x2ff27e(0xae7)]||'22px',_0x105b63=this['_resolveTemplate'](_0x2a8dbf['card_icon']),_0x6b5da0=_0x2a8dbf[_0x2ff27e(0x64b)]?_0x2ff27e(0x903)+escapeHtml(_0x2a8dbf[_0x2ff27e(0x64b)])+_0x2ff27e(0x911)+escapeHtml(_0x225baa)+';height:'+escapeHtml(_0x225baa)+';object-fit:contain;\x22>':_0x105b63?_0x2ff27e(0xd29)+escapeHtml(_0x105b63)+_0x2ff27e(0xaa1)+escapeHtml(_0x2a8dbf['card_icon_color']||_0x2ff27e(0xba9))+';'+(_0x2a8dbf[_0x2ff27e(0xae7)]?_0x2ff27e(0x1e8)+escapeHtml(_0x2a8dbf['card_icon_size'])+';':'')+'\x22>':'',_0x3444b0=_0x2a8dbf[_0x2ff27e(0x334)]?_0x2ff27e(0xc1c)+escapeHtml(_0x2a8dbf[_0x2ff27e(0x334)]):'',_0x5b7401=_0x2a8dbf[_0x2ff27e(0xd7a)]?_0x2ff27e(0xa12)+_0x3444b0+'\x22>'+escapeHtml(_0x2a8dbf[_0x2ff27e(0xd7a)])+_0x2ff27e(0xd45):'',_0x496d80=_0x49c6c0?''+_0x5b7401+_0x6b5da0:''+_0x6b5da0+_0x5b7401,_0x50105f=_0x229cb7?_0x2ff27e(0x88d)+escapeHtml(_0x26275a)+'\x22>'+_0x229cb7+_0x2ff27e(0xd45):'';_0xc075ac[_0x2ff27e(0x339)]=_0x2ff27e(0xca1)+(_0x2ff27e(0x161)+_0x55871c+'\x22>'+_0x496d80+_0x2ff27e(0x31c))+_0x50105f+_0x2ff27e(0x31c);}['_renderIntervalPicker'](){const _0xed25e9=_0x45b7b8,_0x59a940=this[_0xed25e9(0x4ad)][_0xed25e9(0x845)](_0xed25e9(0xb0b));if(!_0x59a940)return;const _0x5aa670=this[_0xed25e9(0x9b6)],_0x375689=_0x5aa670['show_date_picker']||_0x5aa670[_0xed25e9(0x4a5)]&&this[_0xed25e9(0x8a3)],_0x42e0a4=_0x5aa670['energy_date_sync'];if(!_0x5aa670[_0xed25e9(0x429)]||_0x375689||_0x42e0a4){_0x59a940['innerHTML']='';return;}const _0x3310cf=isNum(this[_0xed25e9(0x490)])?this[_0xed25e9(0x490)]:toNum(_0x5aa670[_0xed25e9(0x275)]),_0xda23cf=Array[_0xed25e9(0x1d7)](_0x5aa670[_0xed25e9(0x18d)])&&_0x5aa670[_0xed25e9(0x18d)]['length']?_0x5aa670[_0xed25e9(0x18d)]:INTERVAL_PICKER_DEFAULT_LABELS,_0x21115e=INTERVAL_PICKER_OPTIONS[_0xed25e9(0xbb6)](_0x1caf23=>_0xda23cf[_0xed25e9(0x615)](_0x1caf23['label'])),_0xe3f089=_0x21115e[_0xed25e9(0x963)](_0x223a76=>{const _0x1fce76=_0xed25e9,_0x11b985=_0x223a76[_0x1fce76(0x4ac)]===_0x3310cf?_0x1fce76(0xc37):'';return _0x1fce76(0xbdb)+_0x11b985+_0x1fce76(0xb2d)+_0x223a76[_0x1fce76(0x4ac)]+_0x1fce76(0x614)+escapeHtml(_0x223a76[_0x1fce76(0x72b)])+'\x22>'+escapeHtml(cardT(this['_hass'],this[_0x1fce76(0x9b6)],_0x223a76[_0x1fce76(0x72b)]))+'';})['join'](''),_0x328eb3=_0x5aa670[_0xed25e9(0x3e6)]||'left';_0x59a940['innerHTML']=_0xed25e9(0x624)+escapeHtml(_0x328eb3)+'\x22>'+_0xe3f089+_0xed25e9(0x31c),_0x59a940[_0xed25e9(0x506)](_0xed25e9(0x482))[_0xed25e9(0x1ce)](_0x139008=>{const _0x244d34=_0xed25e9;_0x139008[_0x244d34(0x8a9)](_0x244d34(0x956),()=>{const _0x594b08=_0x244d34,_0x343a15=toNum(_0x139008[_0x594b08(0xbb)][_0x594b08(0x4ac)]),_0x5524be=_0x139008[_0x594b08(0xbb)][_0x594b08(0x72b)];if(isNum(_0x343a15))this[_0x594b08(0x767)](_0x343a15,_0x5524be);});});}[_0x45b7b8(0x2a3)](_0x1989bc,_0x466ab2){const _0x2b0525=_0x45b7b8,_0x9a3194=this[_0x2b0525(0x12d)]?.[_0x466ab2];if(_0x9a3194===undefined)return _0x1989bc[_0x2b0525(0x1e0)]||'';return _0x9a3194;}[_0x45b7b8(0x15c)](_0x43d77f){const _0x381e2c=_0x45b7b8;if(!_0x43d77f)return cardT(this[_0x381e2c(0xb79)],this[_0x381e2c(0x9b6)],_0x381e2c(0x8f3));return String(_0x43d77f)[_0x381e2c(0x8a6)](/_/g,'\x20')[_0x381e2c(0x8a6)](/\b\w/g,_0x5a2ac8=>_0x5a2ac8[_0x381e2c(0xc6e)]());}[_0x45b7b8(0xcce)](_0x3382c3){const _0x5e47bc=_0x45b7b8,_0x38c383=toNum(this[_0x5e47bc(0x112)]);if(isNum(_0x38c383))_0x3382c3[_0x5e47bc(0x8a4)]=_0x38c383;else{if(this['_baseQuery'])_0x3382c3[_0x5e47bc(0x8a4)]=this[_0x5e47bc(0x1bb)]['pph'];}if(this['_overrideGroupBy'])_0x3382c3[_0x5e47bc(0x8d9)]=this[_0x5e47bc(0x239)];else{if(this[_0x5e47bc(0x1bb)])_0x3382c3[_0x5e47bc(0x8d9)]=this['_baseQuery'][_0x5e47bc(0x74d)];}this['_baseQuery']&&(_0x3382c3[_0x5e47bc(0x397)]=isNum(_0x38c383)||this[_0x5e47bc(0x239)]?![]:this['_baseQuery'][_0x5e47bc(0xcaa)]);}['_onQueryPick'](_0x14aab6,_0x8b5dee){const _0x2bfb6d=_0x45b7b8;if(_0x14aab6==='pph'){const _0x538aa9=toNum(_0x8b5dee);this[_0x2bfb6d(0x112)]=isNum(_0x538aa9)?_0x538aa9:null;}else _0x14aab6===_0x2bfb6d(0x74d)&&(this[_0x2bfb6d(0x239)]=_0x8b5dee||null);const _0x4c1191={...this[_0x2bfb6d(0x9b6)]};this[_0x2bfb6d(0xcce)](_0x4c1191),this[_0x2bfb6d(0x9b6)]=_0x4c1191,this['_persistQueryPickers'](),this[_0x2bfb6d(0xd6c)](_0x14aab6);try{this[_0x2bfb6d(0x772)]?.[_0x2bfb6d(0x60e)]?.[_0x2bfb6d(0xc5)]?.();}catch(_0x25d6ae){}this[_0x2bfb6d(0x9c4)]()[_0x2bfb6d(0x32c)](_0x411a96=>console[_0x2bfb6d(0x5d6)](_0x2bfb6d(0x63d),_0x411a96));}['_persistQueryPickers'](){const _0x59b150=_0x45b7b8;isNum(toNum(this[_0x59b150(0x112)]))?lsSet(_0x59b150(0xaad)+this[_0x59b150(0xa9f)],String(this[_0x59b150(0x112)])):lsDel(_0x59b150(0xaad)+this[_0x59b150(0xa9f)]),this[_0x59b150(0x239)]?lsSet('sgc-qgby:'+this[_0x59b150(0xa9f)],this[_0x59b150(0x239)]):lsDel('sgc-qgby:'+this['_instanceKey']);}['_renderQueryPickers'](){const _0x2eac51=_0x45b7b8,_0x58e79d=this['shadowRoot'][_0x2eac51(0x845)](_0x2eac51(0xa96));if(!_0x58e79d)return;const _0x5d25a3=this[_0x2eac51(0x9b6)],_0x37de02=!!_0x5d25a3['show_pph_picker'],_0x301732=!!_0x5d25a3['show_group_by_picker'];if(!_0x37de02&&!_0x301732){_0x58e79d[_0x2eac51(0x339)]='';return;}const _0x34d7eb=(_0xd10aa5,_0x1e058c,_0x407b3b)=>_0x2eac51(0x90d)+escapeHtml(String(_0xd10aa5))+'\x22'+(String(_0x407b3b)===String(_0xd10aa5)?_0x2eac51(0x86e):'')+'>'+escapeHtml(_0x1e058c)+_0x2eac51(0xc4a),_0x476246=[];if(_0x37de02){const _0x590acf=isNum(toNum(this[_0x2eac51(0x112)]))?String(this[_0x2eac51(0x112)]):'',_0x141752=toNum(this[_0x2eac51(0x1bb)]?.[_0x2eac51(0x7a4)]),_0x2871c8=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c];isNum(_0x141752)&&!_0x2871c8[_0x2eac51(0x615)](_0x141752)&&(_0x2871c8['push'](_0x141752),_0x2871c8[_0x2eac51(0xa8e)]((_0x32126c,_0x1d7f8e)=>_0x32126c-_0x1d7f8e));const _0x47b20d=[_0x34d7eb('',cardT(this['_hass'],_0x5d25a3,_0x2eac51(0x340))+'\x20('+(isNum(_0x141752)?_0x141752:0x2)+_0x2eac51(0x38a),_0x590acf)][_0x2eac51(0x76a)](_0x2871c8['map'](_0xe4fe7b=>_0x34d7eb(_0xe4fe7b,_0xe4fe7b+'/h',_0x590acf)))['join']('');_0x476246[_0x2eac51(0x9f2)]([_0x5d25a3['pph_picker_position']||'left',''+escapeHtml(cardT(this['_hass'],_0x5d25a3,'Pts/h'))+''+_0x47b20d+_0x2eac51(0x82c)]);}if(_0x301732){const _0x14dccc=this[_0x2eac51(0x239)]||'',_0x3379e1=this[_0x2eac51(0x1bb)]?.[_0x2eac51(0x74d)]||_0x2eac51(0xb84),_0x1745f8={'interval':_0x2eac51(0x201),'hour':_0x2eac51(0x60c),'2h':'2H','3h':'3H','4h':'4H','6h':'6H','12h':_0x2eac51(0x178),'date':_0x2eac51(0x7aa),'week':_0x2eac51(0x170),'month':_0x2eac51(0x8f6),'year':'Year'},_0x4bc5a3=[_0x34d7eb('',cardT(this[_0x2eac51(0xb79)],_0x5d25a3,_0x2eac51(0x340))+'\x20('+cardT(this[_0x2eac51(0xb79)],_0x5d25a3,_0x1745f8[_0x3379e1]||_0x3379e1)+')',_0x14dccc)][_0x2eac51(0x76a)](Object[_0x2eac51(0xc71)](_0x1745f8)[_0x2eac51(0x963)](_0x4acc3b=>_0x34d7eb(_0x4acc3b,cardT(this[_0x2eac51(0xb79)],_0x5d25a3,_0x1745f8[_0x4acc3b]),_0x14dccc)))[_0x2eac51(0xcdc)]('');_0x476246['push']([_0x5d25a3[_0x2eac51(0x9c6)]||_0x2eac51(0x4f8),_0x2eac51(0x9ae)+escapeHtml(cardT(this[_0x2eac51(0xb79)],_0x5d25a3,_0x2eac51(0x34b)))+_0x2eac51(0x4b8)+_0x4bc5a3+_0x2eac51(0x82c)]);}const _0x338244={'left':'','center':'','right':''};for(const [_0x438a04,_0x3b9fde]of _0x476246)_0x338244[_0x438a04 in _0x338244?_0x438a04:_0x2eac51(0x4f8)]+=_0x3b9fde;_0x58e79d[_0x2eac51(0x339)]=[_0x2eac51(0x4f8),_0x2eac51(0x7e9),_0x2eac51(0x896)]['filter'](_0x4e76d1=>_0x338244[_0x4e76d1])['map'](_0x3c897b=>_0x2eac51(0xcf1)+_0x3c897b+'\x22>'+_0x338244[_0x3c897b]+_0x2eac51(0x31c))[_0x2eac51(0xcdc)](''),_0x58e79d[_0x2eac51(0x506)](_0x2eac51(0x49e))[_0x2eac51(0x1ce)](_0x5a1d30=>{const _0x578d37=_0x2eac51;_0x5a1d30[_0x578d37(0x8a9)](_0x578d37(0x68e),_0x1dde94=>{const _0x555ea7=_0x578d37;this['_onQueryPick'](_0x1dde94['target'][_0x555ea7(0xbb)]['qp'],_0x1dde94[_0x555ea7(0xbd4)][_0x555ea7(0xba7)]);});});}['_renderAttributeList'](){const _0x5715b2=_0x45b7b8,_0x2e1143=this['shadowRoot']['querySelector'](_0x5715b2(0xbb4));if(!_0x2e1143)return;const _0x33a341=this[_0x5715b2(0x9b6)];if(!_0x33a341['show_attribute_list']){_0x2e1143['innerHTML']='';return;}let _0xb5ca5d='';(this[_0x5715b2(0x461)]||[])[_0x5715b2(0x1ce)]((_0xa6c9a2,_0x1b8e82)=>{const _0x56b64f=_0x5715b2;if(_0xa6c9a2['_compareOf']!=null)return;const _0x5efc4c=this[_0x56b64f(0xb79)]?.[_0x56b64f(0x81a)]?.[_0xa6c9a2['entity']];if(!_0x5efc4c)return;const _0x460c71=Object[_0x56b64f(0xc71)](_0x5efc4c[_0x56b64f(0x74e)]||{})[_0x56b64f(0xbb6)](_0x574ce4=>{const _0x2255b7=_0x56b64f,_0x1c832e=_0x5efc4c[_0x2255b7(0x74e)][_0x574ce4];return _0x1c832e!==null&&_0x1c832e!==undefined&&!isNaN(parseFloat(_0x1c832e));})[_0x56b64f(0xa8e)]();if(!_0x460c71[_0x56b64f(0x230)])return;const _0x173567=_0xa6c9a2[_0x56b64f(0xacd)]===_0x56b64f(0x7e5)?PALETTE[_0x1b8e82%PALETTE[_0x56b64f(0x230)]]||'#ff4757':this[_0x56b64f(0x54b)](_0xa6c9a2[_0x56b64f(0xacd)],_0xa6c9a2['entity'])||_0xa6c9a2[_0x56b64f(0xacd)]||PALETTE[_0x1b8e82%PALETTE[_0x56b64f(0x230)]]||_0x56b64f(0x231),_0xd8c443=this['_effectiveAttribute'](_0xa6c9a2,_0x1b8e82),_0x5b3fcc=_0x56b64f(0x97e)+(_0xd8c443===''?_0x56b64f(0x86e):'')+'>'+escapeHtml(cardT(this[_0x56b64f(0xb79)],this[_0x56b64f(0x9b6)],_0x56b64f(0x8f3)))+'',_0x2ad3db=_0x460c71[_0x56b64f(0x963)](_0x535cc2=>''+escapeHtml(this['_formatAttrLabel'](_0x535cc2))+'')[_0x56b64f(0xcdc)]('');_0xb5ca5d+=_0x56b64f(0x605)+(_0x56b64f(0x29f)+escapeHtml(_0x173567)+'\x22>')+(_0x56b64f(0x988)+_0x1b8e82+'\x22>'+_0x5b3fcc+_0x2ad3db+_0x56b64f(0xa2b))+_0x56b64f(0x31c);});if(!_0xb5ca5d){_0x2e1143[_0x5715b2(0x339)]='';return;}const _0x23a393=_0x33a341[_0x5715b2(0x59d)]||'left';_0x2e1143[_0x5715b2(0x339)]=_0x5715b2(0x7b0)+escapeHtml(_0x23a393)+'\x22>'+_0xb5ca5d+_0x5715b2(0x31c),_0x2e1143['querySelectorAll'](_0x5715b2(0x204))['forEach'](_0x57df4a=>{const _0x533d25=_0x5715b2;_0x57df4a[_0x533d25(0x8a9)](_0x533d25(0x68e),_0x410844=>{const _0x498702=_0x533d25,_0x2965ae=parseInt(_0x410844[_0x498702(0xbd4)][_0x498702(0xbb)][_0x498702(0xab8)],0xa);if(isNaN(_0x2965ae))return;this[_0x498702(0x5a5)](_0x2965ae,_0x410844['target']['value']);});});}['_onAttributePick'](_0x16301d,_0x26f7dd){const _0x53aeaa=_0x45b7b8,_0x43b3c5=this[_0x53aeaa(0x461)]?.[_0x16301d];if(!_0x43b3c5)return;const _0x3c7092=_0x43b3c5[_0x53aeaa(0x1e0)]||'';_0x26f7dd===_0x3c7092?delete this['_overrideAttributes'][_0x16301d]:this[_0x53aeaa(0x12d)][_0x16301d]=_0x26f7dd,this[_0x53aeaa(0x9c4)]()['catch'](_0x44cfba=>console[_0x53aeaa(0x5d6)](_0x53aeaa(0xcd5),_0x44cfba));}[_0x45b7b8(0x227)](){const _0xc530a4=_0x45b7b8,_0x27add0=this['shadowRoot']['querySelector'](_0xc530a4(0xa9c));if(!_0x27add0)return;const _0x454eda=this['_config'];if(!_0x454eda['show_date_picker']){_0x27add0[_0xc530a4(0x339)]='';return;}const _0x412d01=[...DATE_PICKER_VALID_MODES,...Object[_0xc530a4(0xc71)](DATE_PICKER_RELATIVE_MODES)],_0x27d78c=Array[_0xc530a4(0x1d7)](_0x454eda[_0xc530a4(0xb42)])&&_0x454eda['date_picker_modes'][_0xc530a4(0x230)]?_0x454eda['date_picker_modes']['filter'](_0x598592=>_0x412d01[_0xc530a4(0x615)](_0x598592)):DATE_PICKER_VALID_MODES,_0x48e989=_0x27d78c[_0xc530a4(0x230)]>0x1,_0x2c1f44=_0x54ef42=>{const _0x177a2a=_0xc530a4,_0x2f8853=_0x54ef42===this[_0x177a2a(0x78c)]?_0x177a2a(0xc37):'',_0x749c49=DATE_PICKER_RELATIVE_MODES[_0x54ef42],_0x49ff75=cardT(this[_0x177a2a(0xb79)],this[_0x177a2a(0x9b6)],_0x749c49?_0x749c49[_0x177a2a(0x96b)]:_0x54ef42[_0x177a2a(0x23b)](0x0)[_0x177a2a(0xc6e)]()),_0x31e4a3={'day':_0x177a2a(0x6e2),'week':'Week','month':_0x177a2a(0x8f6),'year':_0x177a2a(0x6ab)}[_0x54ef42],_0xf1b9c5=cardT(this[_0x177a2a(0xb79)],this[_0x177a2a(0x9b6)],_0x749c49?_0x749c49[_0x177a2a(0x72b)]:_0x31e4a3||_0x54ef42);return _0x177a2a(0x58d)+_0x2f8853+'\x22\x20data-mode=\x22'+escapeHtml(_0x54ef42)+_0x177a2a(0x888)+escapeHtml(_0xf1b9c5)+'\x22>'+escapeHtml(_0x49ff75)+_0x177a2a(0xb20);};let _0x2dde46='';if(_0x48e989){const _0x47ef8a=_0x27d78c[_0xc530a4(0xbb6)](_0x38ce54=>!(_0x38ce54 in DATE_PICKER_RELATIVE_MODES))[_0xc530a4(0x963)](_0x2c1f44)[_0xc530a4(0xcdc)](''),_0xfd7249=_0x27d78c['filter'](_0x295133=>_0x295133 in DATE_PICKER_RELATIVE_MODES)[_0xc530a4(0x963)](_0x2c1f44)[_0xc530a4(0xcdc)](''),_0x12a743=_0x47ef8a&&_0xfd7249?'':'';_0x2dde46=_0x47ef8a+_0x12a743+_0xfd7249;}const _0x43d938=this[_0xc530a4(0x9e8)](),_0x107f28=Date[_0xc530a4(0xcca)](),_0x1f27e8=this[_0xc530a4(0x78c)]===_0xc530a4(0x281)?!!this[_0xc530a4(0x53e)]&&this[_0xc530a4(0x53e)][_0xc530a4(0x9e0)]()>=_0x107f28:this[_0xc530a4(0x124)]===0x0,_0xf5cae=_0x454eda[_0xc530a4(0x5b1)]||_0xc530a4(0x620);_0x27add0[_0xc530a4(0x538)][_0xc530a4(0xd2e)]=_0xf5cae==='bottom'?'99':'';const _0x2b5ffe=!!this[_0xc530a4(0x789)],_0x114081=_0x2b5ffe?''+this[_0xc530a4(0xb57)]()+this[_0xc530a4(0x4b3)]()+_0xc530a4(0x31c):'',_0x3e41f8=(_0x42d3e1,_0x471581)=>[_0xc530a4(0x4f8),_0xc530a4(0x7e9),_0xc530a4(0x896)][_0xc530a4(0x615)](_0x42d3e1)?_0x42d3e1:_0x471581,_0x2d69b1=_0x3e41f8(_0x454eda[_0xc530a4(0xbed)],_0xc530a4(0x4f8)),_0xb071ba=_0x3e41f8(_0x454eda[_0xc530a4(0x4d0)],_0xc530a4(0x896)),_0x4e8cd5=''+escapeHtml(_0x43d938)+_0xc530a4(0x2ea)+(_0x1f27e8?_0xc530a4(0x553):'')+'\x22\x20'+(_0x1f27e8?'disabled':'')+_0xc530a4(0x1f5)+escapeHtml(cardT(this[_0xc530a4(0xb79)],this[_0xc530a4(0x9b6)],_0xc530a4(0x855)))+_0xc530a4(0x921),_0x25edaa=_0xc530a4(0x3d9)+(_0x48e989?_0xc530a4(0x9a7)+_0x2dde46+_0xc530a4(0x31c):'')+_0xc530a4(0x735)+(_0x2b5ffe?_0xc530a4(0xc37):'')+_0xc530a4(0x479)+escapeHtml(cardT(this[_0xc530a4(0xb79)],this[_0xc530a4(0x9b6)],_0xc530a4(0xd49)))+_0xc530a4(0x888)+escapeHtml(cardT(this[_0xc530a4(0xb79)],this[_0xc530a4(0x9b6)],_0xc530a4(0xd49)))+_0xc530a4(0x4ab),_0x1e4601={'left':[],'center':[],'right':[]};_0x1e4601[_0x2d69b1][_0xc530a4(0x9f2)](_0x4e8cd5),_0x1e4601[_0xb071ba]['push'](_0x25edaa);const _0x3a29d5=_0x1e4601[_0xc530a4(0x7e9)][_0xc530a4(0x230)]>0x0&&_0x1e4601[_0xc530a4(0x4f8)]['length']+_0x1e4601[_0xc530a4(0x896)][_0xc530a4(0x230)]>0x0;_0x27add0['innerHTML']=_0xc530a4(0x398)+escapeHtml(_0xf5cae)+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1e4601[_0xc530a4(0x4f8)][_0xc530a4(0xcdc)]('')+_0xc530a4(0x851)+(_0x3a29d5?_0xc530a4(0xae4):'')+'\x22>'+_0x1e4601[_0xc530a4(0x7e9)][_0xc530a4(0xcdc)]('')+_0xc530a4(0xc2)+_0x1e4601[_0xc530a4(0x896)][_0xc530a4(0xcdc)]('')+_0xc530a4(0x593)+_0x114081+_0xc530a4(0x769);if(_0x3a29d5){const _0x126ce0=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0xa81)),_0x571852=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0x4a6));if(_0x126ce0&&_0x571852){_0x126ce0[_0xc530a4(0x538)][_0xc530a4(0x67e)]='';const _0x56c11e=_0x126ce0[_0xc530a4(0x745)](),_0x421326=_0x277c13=>_0x126ce0[_0xc530a4(0x845)](_0x277c13+_0xc530a4(0xb94))||_0x126ce0[_0xc530a4(0x845)](_0x277c13+'\x20.sgc-dp-shortcuts'),_0x2d8ff2=_0x421326(_0xc530a4(0x426)),_0xa7c86d=_0x421326('.dp-zone-right'),_0x5f606e=_0x2d8ff2?_0x2d8ff2[_0xc530a4(0x745)]()[_0xc530a4(0x896)]:_0x56c11e['left'],_0x199891=_0xa7c86d?_0xa7c86d[_0xc530a4(0x745)]()['left']:_0x56c11e['right'],_0x364d38=_0x199891-_0x5f606e-0x10;if(_0x56c11e['width']>0x0&&_0x571852[_0xc530a4(0x745)]()[_0xc530a4(0xaf)]>_0x364d38)_0x126ce0[_0xc530a4(0x394)][_0xc530a4(0x24e)](_0xc530a4(0xcfe)),_0x571852[_0xc530a4(0x394)][_0xc530a4(0x939)]('sgc-dp-center-abs'),_0x571852[_0xc530a4(0x538)][_0xc530a4(0x122)]='';else{const _0x11919a=_0x571852[_0xc530a4(0xb2b)];if(_0x11919a>_0x126ce0[_0xc530a4(0xb2b)])_0x126ce0[_0xc530a4(0x538)][_0xc530a4(0x67e)]=_0x11919a+'px';}}}_0x3a29d5&&typeof requestAnimationFrame===_0xc530a4(0x57f)&&requestAnimationFrame(()=>{const _0x5a4dce=_0xc530a4;try{const _0x499e98=_0x27add0[_0x5a4dce(0x845)](_0x5a4dce(0xa81)),_0x1b73aa=_0x27add0[_0x5a4dce(0x845)](_0x5a4dce(0x4a6));if(!_0x499e98||!_0x1b73aa)return;const _0xe580f=_0x1b73aa[_0x5a4dce(0x745)]();if(!_0xe580f||!_0xe580f[_0x5a4dce(0xaf)])return;const _0x47645a=(_0x7ed2df,_0x33095a)=>{const _0x51746e=_0x5a4dce,_0x1fd2de=_0x499e98[_0x51746e(0x845)](_0x7ed2df+'\x20.sgc-dp-nav')||_0x499e98[_0x51746e(0x845)](_0x7ed2df+_0x51746e(0xb92));if(!_0x1fd2de)return null;const _0x30fe69=_0x1fd2de[_0x51746e(0x745)]();if(!_0x30fe69||!_0x30fe69[_0x51746e(0xaf)])return null;return _0x33095a===_0x51746e(0x896)?_0x30fe69['right']:_0x30fe69['left'];};let _0x4746fb=dpCenterShift(_0xe580f['left'],_0xe580f['right'],_0x47645a(_0x5a4dce(0x426),_0x5a4dce(0x896)),_0x47645a('.dp-zone-right','left'),0x8);const _0x23df75=_0x499e98[_0x5a4dce(0x745)]();_0x23df75['width']>0x0&&(_0x4746fb=Math[_0x5a4dce(0xd2f)](_0x4746fb,_0x23df75['right']-0x4-_0xe580f[_0x5a4dce(0x896)]),_0x4746fb=Math[_0x5a4dce(0xc78)](_0x4746fb,_0x23df75['left']+0x4-_0xe580f[_0x5a4dce(0x4f8)])),_0x1b73aa[_0x5a4dce(0x538)][_0x5a4dce(0x122)]=_0x4746fb?_0x5a4dce(0x293)+_0x4746fb+_0x5a4dce(0x1ba):_0x5a4dce(0xaca);}catch(_0x434e2b){}});_0x27add0[_0xc530a4(0x506)]('.sgc-dp-mode')['forEach'](_0x4cf4a6=>{const _0x5ef7b2=_0xc530a4;_0x4cf4a6[_0x5ef7b2(0x8a9)]('click',()=>this[_0x5ef7b2(0x44c)](_0x4cf4a6[_0x5ef7b2(0xbb)]['mode']));});const _0x13b3cc=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0xc9)),_0x33d2a4=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0x640)),_0x36704f=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0xc1f)),_0x1b9ad2=_0x27add0[_0xc530a4(0x845)](_0xc530a4(0x711));if(_0x13b3cc)_0x13b3cc['addEventListener'](_0xc530a4(0x956),()=>this['_onDatePickerNav'](-0x1));if(_0x33d2a4)_0x33d2a4[_0xc530a4(0x8a9)](_0xc530a4(0x956),()=>this[_0xc530a4(0x625)](+0x1));if(_0x36704f)_0x36704f[_0xc530a4(0x8a9)](_0xc530a4(0x956),()=>this[_0xc530a4(0x592)]());if(_0x1b9ad2)_0x1b9ad2[_0xc530a4(0x8a9)](_0xc530a4(0x956),()=>this['_onDatePickerToggle']());const _0x124cbe=_0x27add0['querySelector']('.sgc-dp-panel');_0x124cbe&&_0x124cbe['addEventListener'](_0xc530a4(0x956),_0x503eb9=>this['_onDatePickerPanelClick'](_0x503eb9));}[_0x45b7b8(0x54d)](){const _0x6f5b55=_0x45b7b8;this[_0x6f5b55(0x789)]=!this[_0x6f5b55(0x789)];if(this['_dpExpanded']){const _0xdd79ac=this[_0x6f5b55(0xcd0)](),_0x206a83=_0xdd79ac?.[_0x6f5b55(0x866)]||new Date();this[_0x6f5b55(0x725)]=_0x206a83[_0x6f5b55(0xaf5)](),this[_0x6f5b55(0x737)]=_0x206a83['getFullYear'](),this[_0x6f5b55(0x372)]=null;}this['_scheduleRender']();}[_0x45b7b8(0xb57)](){const _0x2180a6=_0x45b7b8,_0x1e96a7=resolveCardLanguage(this[_0x2180a6(0xb79)],this['_config']),_0x51c115=new Date(),_0x1e0d44=this[_0x2180a6(0x725)]??_0x51c115[_0x2180a6(0xaf5)](),_0x3c2cd9=this[_0x2180a6(0x737)]??_0x51c115[_0x2180a6(0xc18)](),_0x1c1710=new Date(_0x3c2cd9,_0x1e0d44,0x1),_0x515ee6=new Date(_0x3c2cd9,_0x1e0d44+0x1,0x0),_0x217fa4=_0x515ee6[_0x2180a6(0x5ae)](),_0x10763c=resolveFirstWeekday(this[_0x2180a6(0xb79)]),_0x93db24=weekStartOffsetDays(_0x1c1710[_0x2180a6(0x33d)]()||0x7,_0x10763c);let _0x418b95;try{const _0x1e12d5=getCachedDateTimeFormatter(_0x1e96a7,{'weekday':_0x2180a6(0x1e2)}),_0x5ade43=Array[_0x2180a6(0xd22)]({'length':0x7},(_0x1295f5,_0x3463cd)=>(_0x10763c-0x1+_0x3463cd)%0x7+0x1);_0x418b95=_0x5ade43[_0x2180a6(0x963)](_0xbfa6f8=>_0x1e12d5[_0x2180a6(0xb9a)](new Date(0x7e8,0x0,_0xbfa6f8)));}catch{const _0x227a50=['M','T','W','T','F','S','S'];_0x418b95=_0x227a50[_0x2180a6(0x376)](_0x10763c-0x1)['concat'](_0x227a50[_0x2180a6(0x376)](0x0,_0x10763c-0x1));}let _0x5f4b80;try{const _0x469f22=getCachedDateTimeFormatter(_0x1e96a7,{'month':_0x2180a6(0x954),'year':_0x2180a6(0xb75)})[_0x2180a6(0xb9a)](_0x1c1710);_0x5f4b80=_0x469f22[_0x2180a6(0x23b)](0x0)['toUpperCase']()+_0x469f22[_0x2180a6(0x376)](0x1);}catch{_0x5f4b80=_0x1e0d44+0x1+'/'+_0x3c2cd9;}const _0x3c3e99=this[_0x2180a6(0xcd0)]()||{},_0x2f853a=_0x3c3e99[_0x2180a6(0x866)]?new Date(_0x3c3e99[_0x2180a6(0x866)][_0x2180a6(0xc18)](),_0x3c3e99[_0x2180a6(0x866)]['getMonth'](),_0x3c3e99[_0x2180a6(0x866)][_0x2180a6(0x5ae)]())[_0x2180a6(0x9e0)]():0x0,_0x162c0c=_0x3c3e99['end']?new Date(_0x3c3e99['end'][_0x2180a6(0xc18)](),_0x3c3e99['end']['getMonth'](),_0x3c3e99['end'][_0x2180a6(0x5ae)]())[_0x2180a6(0x9e0)]():0x0,_0x12e892=!!this[_0x2180a6(0x372)],_0xca57c1=_0x12e892?new Date(this['_dpRangeStart'][_0x2180a6(0xc18)](),this[_0x2180a6(0x372)][_0x2180a6(0xaf5)](),this[_0x2180a6(0x372)][_0x2180a6(0x5ae)]())[_0x2180a6(0x9e0)]():0x0,_0x195e53=new Date(_0x51c115[_0x2180a6(0xc18)](),_0x51c115[_0x2180a6(0xaf5)](),_0x51c115['getDate']())[_0x2180a6(0x9e0)]();let _0x48b59c=_0x418b95['map'](_0x403705=>_0x2180a6(0x1c4)+escapeHtml(_0x403705)+_0x2180a6(0x31c))[_0x2180a6(0xcdc)]('');for(let _0x37b789=0x0;_0x37b789<_0x93db24;_0x37b789++)_0x48b59c+='';for(let _0x1912d4=0x1;_0x1912d4<=_0x217fa4;_0x1912d4++){const _0xd801c6=new Date(_0x3c2cd9,_0x1e0d44,_0x1912d4)[_0x2180a6(0x9e0)](),_0x203910=[_0x2180a6(0x94e)];if(_0xd801c6===_0x195e53)_0x203910[_0x2180a6(0x9f2)]('dp-today');if(!_0x12e892&&_0xd801c6>=_0x2f853a&&_0xd801c6<_0x162c0c)_0x203910['push']('dp-in-range');if(_0x12e892&&_0xd801c6===_0xca57c1)_0x203910['push']('dp-range-sel');if(_0xd801c6>_0x195e53)_0x203910[_0x2180a6(0x9f2)](_0x2180a6(0xcf7));const _0x2bd842=_0x3c2cd9+'-'+String(_0x1e0d44+0x1)['padStart'](0x2,'0')+'-'+String(_0x1912d4)[_0x2180a6(0xd3d)](0x2,'0');_0x48b59c+=''+_0x1912d4+_0x2180a6(0x31c);}const _0x4d168b=_0x12e892?_0x2180a6(0x14e)+escapeHtml(cardT(this['_hass'],this['_config'],_0x2180a6(0xc4d)))+'':'';return _0x2180a6(0x966)+escapeHtml(cardT(this[_0x2180a6(0xb79)],this['_config'],_0x2180a6(0xb01)))+_0x2180a6(0x9ff)+escapeHtml(_0x5f4b80)+_0x2180a6(0x447)+escapeHtml(cardT(this[_0x2180a6(0xb79)],this[_0x2180a6(0x9b6)],_0x2180a6(0x834)))+_0x2180a6(0xc3c)+_0x48b59c+'\x0a\x20\x20\x20\x20\x20\x20'+_0x4d168b+'\x0a\x20\x20\x20\x20';}['_renderDatePickerPresets'](){const _0x11904b=_0x45b7b8,_0x593905=[{'label':'Today','mode':_0x11904b(0x962),'offset':0x0},{'label':'Yesterday','mode':_0x11904b(0x962),'offset':-0x1},{'label':_0x11904b(0x18e),'mode':'week','offset':0x0},{'label':_0x11904b(0x759),'mode':_0x11904b(0xb89),'offset':-0x1},{'label':_0x11904b(0x3e9),'mode':_0x11904b(0x6e0),'offset':0x0},{'label':_0x11904b(0xcd6),'mode':_0x11904b(0x6e0),'offset':-0x1},{'label':_0x11904b(0xb1b),'mode':_0x11904b(0x74c),'offset':0x0},{'label':'Last\x20Year','mode':_0x11904b(0x74c),'offset':-0x1}],_0x22dac7=[{'label':_0x11904b(0xb47),'days':0x7},{'label':_0x11904b(0x93a),'days':0x1e},{'label':_0x11904b(0xea),'months':0xc}],_0x52e540=_0x21f78a=>{const _0x5f10a0=_0x11904b;if(this[_0x5f10a0(0x78c)]!==_0x5f10a0(0x281)||!this[_0x5f10a0(0x214)])return![];const _0x2b1854=this[_0x5f10a0(0x688)](_0x21f78a);return Math[_0x5f10a0(0x533)](this[_0x5f10a0(0x214)]['getTime']()-_0x2b1854['getTime']())<0x5265c00;},_0x424212=_0x593905[_0x11904b(0x963)](_0x5162e3=>{const _0xdfb472=_0x11904b,_0x2deb32=this[_0xdfb472(0x78c)]===_0x5162e3[_0xdfb472(0x78a)]&&this[_0xdfb472(0x124)]===_0x5162e3['offset']?_0xdfb472(0xc37):'';return _0xdfb472(0x2c7)+_0x2deb32+'\x22\x20data-dp-preset-mode=\x22'+escapeHtml(_0x5162e3[_0xdfb472(0x78a)])+_0xdfb472(0xaa3)+_0x5162e3[_0xdfb472(0x74a)]+'\x22>'+escapeHtml(cardT(this[_0xdfb472(0xb79)],this['_config'],_0x5162e3[_0xdfb472(0x72b)]))+_0xdfb472(0xb20);})[_0x11904b(0xcdc)](''),_0x131d26=_0x22dac7[_0x11904b(0x963)](_0x3b9129=>{const _0x2b1294=_0x11904b,_0x139119=_0x52e540(_0x3b9129)?_0x2b1294(0xc37):'',_0x2f45a9=_0x3b9129[_0x2b1294(0x9ab)]||'',_0x563459=_0x3b9129['months']||'';return _0x2b1294(0x2c7)+_0x139119+'\x22\x20data-dp-rolling-days=\x22'+_0x2f45a9+'\x22\x20data-dp-rolling-months=\x22'+_0x563459+'\x22>'+escapeHtml(cardT(this[_0x2b1294(0xb79)],this[_0x2b1294(0x9b6)],_0x3b9129[_0x2b1294(0x72b)]))+_0x2b1294(0xb20);})[_0x11904b(0xcdc)]('');return _0x11904b(0xb51)+_0x424212+_0x131d26+'';}[_0x45b7b8(0x688)](_0x49ae9a){const _0x584d2b=_0x45b7b8,_0x5893fd=new Date(),_0xf2a7e5=resolveDisplayTimeZone(this[_0x584d2b(0xb79)],this['_config']),_0x3a5539=tzParts(_0x5893fd['getTime'](),_0xf2a7e5);if(_0x49ae9a['months'])return new Date(zonedWallToMs(_0x3a5539['y'],_0x3a5539['mo']-_0x49ae9a[_0x584d2b(0x549)],_0x3a5539['d'],0x0,0x0,0x0,_0xf2a7e5));return new Date(zonedWallToMs(_0x3a5539['y'],_0x3a5539['mo'],_0x3a5539['d']-_0x49ae9a[_0x584d2b(0x9ab)],0x0,0x0,0x0,_0xf2a7e5));}[_0x45b7b8(0xc08)](_0x23a96d){const _0x1efdfe=_0x45b7b8,_0x1055fd=_0x23a96d[_0x1efdfe(0xbd4)],_0x224973=_0x1055fd['closest'](_0x1efdfe(0x3c1));if(_0x224973){const _0x18bad6=parseInt(_0x224973[_0x1efdfe(0xbb)][_0x1efdfe(0xb2c)],0xa)||0x0;this['_dpCalMonth']=(this[_0x1efdfe(0x725)]??new Date()[_0x1efdfe(0xaf5)]())+_0x18bad6;while(this['_dpCalMonth']<0x0){this['_dpCalMonth']+=0xc,this['_dpCalYear']-=0x1;}while(this[_0x1efdfe(0x725)]>0xb){this['_dpCalMonth']-=0xc,this[_0x1efdfe(0x737)]+=0x1;}this[_0x1efdfe(0x970)]();return;}const _0x3fd2df=_0x1055fd[_0x1efdfe(0xa2e)](_0x1efdfe(0x7a8));if(_0x3fd2df){const [_0x4fae0d,_0x52fdcb,_0x309b82]=_0x3fd2df[_0x1efdfe(0xbb)][_0x1efdfe(0x157)][_0x1efdfe(0x102)]('-'),_0x19e3de=new Date(parseInt(_0x4fae0d,0xa),parseInt(_0x52fdcb,0xa)-0x1,parseInt(_0x309b82,0xa));this[_0x1efdfe(0xa23)](_0x19e3de);return;}const _0x4b3f69=_0x1055fd[_0x1efdfe(0xa2e)](_0x1efdfe(0x818));if(_0x4b3f69){const _0x13438f=_0x4b3f69[_0x1efdfe(0xbb)]['dpPresetMode'],_0x66af20=parseInt(_0x4b3f69[_0x1efdfe(0xbb)][_0x1efdfe(0xd52)],0xa)||0x0;this['_applyDatePickerPreset'](_0x13438f,_0x66af20);return;}const _0x1c1579=_0x1055fd[_0x1efdfe(0xa2e)](_0x1efdfe(0x785));if(_0x1c1579){const _0x3c5475=parseInt(_0x1c1579[_0x1efdfe(0xbb)][_0x1efdfe(0x600)],0xa)||0x0,_0x154bb9=parseInt(_0x1c1579[_0x1efdfe(0xbb)]['dpRollingMonths'],0xa)||0x0;this['_applyDatePickerRolling']({'days':_0x3c5475,'months':_0x154bb9});return;}}[_0x45b7b8(0xa23)](_0x10d555){const _0x5d1e4c=_0x45b7b8;if(this['_dpMode']===_0x5d1e4c(0x962)){const _0x11f1a1=new Date(),_0x5d6465=new Date(_0x11f1a1[_0x5d1e4c(0xc18)](),_0x11f1a1[_0x5d1e4c(0xaf5)](),_0x11f1a1[_0x5d1e4c(0x5ae)]())[_0x5d1e4c(0x9e0)](),_0x2075b0=_0x10d555[_0x5d1e4c(0x9e0)](),_0x3eb185=Math[_0x5d1e4c(0xd3f)]((_0x2075b0-_0x5d6465)/0x5265c00);this['_dpOffset']=_0x3eb185,this[_0x5d1e4c(0x789)]=![],this[_0x5d1e4c(0x94b)](),this[_0x5d1e4c(0x6fb)](),this['_scheduleUpdate'](),this[_0x5d1e4c(0x970)]();return;}if(!this[_0x5d1e4c(0x372)]){this[_0x5d1e4c(0x372)]=_0x10d555,this[_0x5d1e4c(0x970)]();return;}let _0x218af6=this[_0x5d1e4c(0x372)],_0x33cf6f=_0x10d555;if(_0x33cf6f[_0x5d1e4c(0x9e0)]()<_0x218af6[_0x5d1e4c(0x9e0)]()){const _0x2d7883=_0x218af6;_0x218af6=_0x33cf6f,_0x33cf6f=_0x2d7883;}const _0x5edc4d=new Date(_0x33cf6f[_0x5d1e4c(0xc18)](),_0x33cf6f[_0x5d1e4c(0xaf5)](),_0x33cf6f[_0x5d1e4c(0x5ae)]()+0x1),_0x4e2bf9=new Date(_0x218af6[_0x5d1e4c(0xc18)](),_0x218af6[_0x5d1e4c(0xaf5)](),_0x218af6[_0x5d1e4c(0x5ae)]());this[_0x5d1e4c(0x78c)]='custom',this['_dpOffset']=0x0,this['_dpCustomStart']=_0x4e2bf9,this[_0x5d1e4c(0x53e)]=_0x5edc4d,this[_0x5d1e4c(0x372)]=null,this[_0x5d1e4c(0x789)]=![],this[_0x5d1e4c(0x94b)](),this[_0x5d1e4c(0x6fb)](),this[_0x5d1e4c(0x24c)](),this[_0x5d1e4c(0x970)]();}[_0x45b7b8(0x1bf)](_0x99d47a,_0x4f1c1f){const _0x12435d=_0x45b7b8;if(!DATE_PICKER_VALID_MODES[_0x12435d(0x615)](_0x99d47a))return;this['_dpMode']=_0x99d47a,this[_0x12435d(0x124)]=_0x4f1c1f,this[_0x12435d(0x214)]=null,this[_0x12435d(0x53e)]=null,this['_dpRangeStart']=null,this[_0x12435d(0x789)]=![],this[_0x12435d(0x94b)](),this[_0x12435d(0x6fb)](),this[_0x12435d(0x24c)](),this[_0x12435d(0x970)]();}[_0x45b7b8(0x16a)]({days:_0x27143c,months:_0x2c4ce3}){const _0x5206d9=_0x45b7b8,_0x4a257=this['_computeRollingStart']({'days':_0x27143c,'months':_0x2c4ce3}),_0xd38dc5=new Date(),_0x33b040=new Date(_0xd38dc5[_0x5206d9(0xc18)](),_0xd38dc5[_0x5206d9(0xaf5)](),_0xd38dc5[_0x5206d9(0x5ae)](),_0xd38dc5[_0x5206d9(0x6d6)](),_0xd38dc5[_0x5206d9(0x410)]()+0x1,0x0);this[_0x5206d9(0x78c)]=_0x5206d9(0x281),this[_0x5206d9(0x124)]=0x0,this[_0x5206d9(0x214)]=_0x4a257,this['_dpCustomEnd']=_0x33b040,this[_0x5206d9(0x372)]=null,this[_0x5206d9(0x789)]=![],this[_0x5206d9(0x94b)](),this['_broadcastDatePickerSync'](),this['_scheduleUpdate'](),this[_0x5206d9(0x970)]();}[_0x45b7b8(0xbaa)](){const _0x30c8fe=_0x45b7b8,_0xcb0575=this['shadowRoot']?.[_0x30c8fe(0x845)](_0x30c8fe(0x141));if(!_0xcb0575)return;let _0x4ee5db=_0xcb0575[_0x30c8fe(0x845)](_0x30c8fe(0xab2)),_0x2d954d=_0xcb0575[_0x30c8fe(0x845)](_0x30c8fe(0x117));const _0x5f48b2=!!this[_0x30c8fe(0x9b6)][_0x30c8fe(0x71c)]&&(this[_0x30c8fe(0x9b6)]['chart_mode']||_0x30c8fe(0x3c0))===_0x30c8fe(0x3c0);if(this[_0x30c8fe(0x9b6)]['show_export']!==!![]||_0x5f48b2){_0x4ee5db?.[_0x30c8fe(0x939)](),_0x2d954d?.['remove']();return;}if(_0x4ee5db)return;_0x4ee5db=document[_0x30c8fe(0xc3b)](_0x30c8fe(0x7e2)),_0x4ee5db[_0x30c8fe(0xbe4)]=_0x30c8fe(0x55a),_0x4ee5db[_0x30c8fe(0x33b)]=_0x30c8fe(0x7e2),_0x4ee5db[_0x30c8fe(0xc6)]=cardT(this['_hass'],this[_0x30c8fe(0x9b6)],_0x30c8fe(0x2d2)),_0x4ee5db[_0x30c8fe(0x339)]=_0x30c8fe(0x5b5),_0xcb0575[_0x30c8fe(0xceb)](_0x4ee5db),_0x2d954d=document[_0x30c8fe(0xc3b)](_0x30c8fe(0xb8a)),_0x2d954d[_0x30c8fe(0xbe4)]=_0x30c8fe(0x4da),_0x2d954d[_0x30c8fe(0x538)][_0x30c8fe(0x8b4)]=_0x30c8fe(0x209);const _0x119df3=document[_0x30c8fe(0xc3b)](_0x30c8fe(0x7e2));_0x119df3['type']=_0x30c8fe(0x7e2),_0x119df3[_0x30c8fe(0x7ec)]=cardT(this[_0x30c8fe(0xb79)],this[_0x30c8fe(0x9b6)],'Download\x20PNG\x20(Chart)');const _0x3a2aba=document[_0x30c8fe(0xc3b)](_0x30c8fe(0x7e2));_0x3a2aba[_0x30c8fe(0x33b)]='button',_0x3a2aba[_0x30c8fe(0x7ec)]=cardT(this[_0x30c8fe(0xb79)],this[_0x30c8fe(0x9b6)],_0x30c8fe(0x1ef));const _0x195c85=document[_0x30c8fe(0xc3b)](_0x30c8fe(0x7e2));_0x195c85[_0x30c8fe(0x33b)]=_0x30c8fe(0x7e2),_0x195c85[_0x30c8fe(0x7ec)]=cardT(this[_0x30c8fe(0xb79)],this[_0x30c8fe(0x9b6)],_0x30c8fe(0x52e)),_0x2d954d[_0x30c8fe(0xceb)](_0x119df3),_0x2d954d['appendChild'](_0x3a2aba),_0x2d954d['appendChild'](_0x195c85),_0xcb0575[_0x30c8fe(0xceb)](_0x2d954d),_0x3a2aba[_0x30c8fe(0x8a9)]('click',_0x56da9e=>{const _0x4ff9e1=_0x30c8fe;_0x56da9e[_0x4ff9e1(0x16c)](),_0x2d954d[_0x4ff9e1(0x538)][_0x4ff9e1(0x8b4)]='none',this['_exportPngCard']();}),_0x4ee5db[_0x30c8fe(0x8a9)]('click',_0x26d2a3=>{const _0x5e01de=_0x30c8fe;_0x26d2a3[_0x5e01de(0x16c)]();const _0x469e7f=_0x2d954d[_0x5e01de(0x538)]['display']===_0x5e01de(0x209);_0x2d954d[_0x5e01de(0x538)]['display']=_0x469e7f?'':'none',_0x469e7f&&setTimeout(()=>{const _0x31f759=_0x5e01de;document['addEventListener'](_0x31f759(0x956),()=>{const _0x412d39=_0x31f759;_0x2d954d[_0x412d39(0x538)][_0x412d39(0x8b4)]=_0x412d39(0x209);},{'once':!![]});},0x0);}),_0x119df3[_0x30c8fe(0x8a9)](_0x30c8fe(0x956),_0x2db00c=>{const _0x3396b8=_0x30c8fe;_0x2db00c['stopPropagation'](),_0x2d954d[_0x3396b8(0x538)][_0x3396b8(0x8b4)]='none',this[_0x3396b8(0x826)]();}),_0x195c85['addEventListener']('click',_0x5c8c9d=>{const _0x5f4c1a=_0x30c8fe;_0x5c8c9d[_0x5f4c1a(0x16c)](),_0x2d954d[_0x5f4c1a(0x538)][_0x5f4c1a(0x8b4)]='none',this['_exportCsv']();});}['_exportName'](_0x2a313d){const _0x49f861=_0x45b7b8,_0x897310=String(this['_config'][_0x49f861(0xd7a)]||_0x49f861(0x305))[_0x49f861(0x28f)]()[_0x49f861(0x8a6)](/[^\w\-]+/g,'_')[_0x49f861(0x376)](0x0,0x28)||_0x49f861(0x305),_0x307b77=new Date(),_0x509eb6=_0x4bc0cb=>String(_0x4bc0cb)[_0x49f861(0xd3d)](0x2,'0');return _0x897310+'-'+_0x307b77[_0x49f861(0xc18)]()+_0x509eb6(_0x307b77[_0x49f861(0xaf5)]()+0x1)+_0x509eb6(_0x307b77['getDate']())+'-'+_0x509eb6(_0x307b77['getHours']())+_0x509eb6(_0x307b77[_0x49f861(0x410)]())+'.'+_0x2a313d;}[_0x45b7b8(0x689)](_0x988cf0,_0xf226dc){const _0x51c8af=_0x45b7b8,_0x20546a=URL[_0x51c8af(0x344)](_0x988cf0),_0x2709c6=document['createElement']('a');_0x2709c6[_0x51c8af(0x6ed)]=_0x20546a,_0x2709c6['download']=_0xf226dc,this[_0x51c8af(0x4ad)][_0x51c8af(0xceb)](_0x2709c6),_0x2709c6[_0x51c8af(0x956)](),_0x2709c6[_0x51c8af(0x939)](),setTimeout(()=>URL[_0x51c8af(0x989)](_0x20546a),0x1388);}[_0x45b7b8(0xbac)](){const _0x2d2d0d=_0x45b7b8,_0x4f3d10=(this[_0x2d2d0d(0x550)]?.[_0x2d2d0d(0x134)]||[])[_0x2d2d0d(0xbb6)](_0x2ae12f=>!this['_hiddenEntities']['has'](_0x2ae12f['id'])&&_0x2ae12f[_0x2d2d0d(0x9ac)]?.[_0x2d2d0d(0x29a)]!==![]);if(!_0x4f3d10[_0x2d2d0d(0x230)])return null;const _0x37e346=_0x4f3d10['map'](_0x290ecc=>pickName(_0x290ecc[_0x2d2d0d(0x9ac)]['name'],_0x290ecc['meta']?.[_0x2d2d0d(0x901)],_0x290ecc[_0x2d2d0d(0x7cb)])??_0x290ecc['id']),_0x4b6f41=this[_0x2d2d0d(0xadb)],_0x452427=_0x4b6f41?_0x4b6f41[_0x2d2d0d(0x866)]['getTime']():-Infinity,_0x4053e3=_0x4b6f41?_0x4b6f41[_0x2d2d0d(0xbdf)][_0x2d2d0d(0x9e0)]():Infinity,_0x29930c=_0x4f3d10[_0x2d2d0d(0x963)](_0x174d52=>{const _0x253a62=_0x2d2d0d,_0x164613=new Map();for(const _0x1f2d96 of _0x174d52['points']||[]){if(_0x1f2d96&&isNum(_0x1f2d96['v'])&&_0x1f2d96['t']>=_0x452427&&_0x1f2d96['t']<=_0x4053e3)_0x164613[_0x253a62(0x4f1)](_0x1f2d96['t'],_0x1f2d96['v']);}return _0x164613;}),_0x1106c6=new Set();for(const _0x3a1d6a of _0x29930c)for(const _0x1dc0ad of _0x3a1d6a[_0x2d2d0d(0xc71)]())_0x1106c6[_0x2d2d0d(0x24e)](_0x1dc0ad);const _0x13931b=[..._0x1106c6][_0x2d2d0d(0xa8e)]((_0xce8dd9,_0x4e0b01)=>_0xce8dd9-_0x4e0b01),_0x4ee726=_0x219c67=>'\x22'+String(_0x219c67)['replace'](/"/g,'\x22\x22')+'\x22',_0x20b2a5=[[_0x2d2d0d(0x356),..._0x37e346]['map'](_0x4ee726)[_0x2d2d0d(0xcdc)](',')];for(const _0x17e3a5 of _0x13931b){const _0x268370=[_0x4ee726(new Date(_0x17e3a5)[_0x2d2d0d(0x1e4)]())];for(const _0x3f0d0f of _0x29930c)_0x268370[_0x2d2d0d(0x9f2)](_0x3f0d0f['has'](_0x17e3a5)?String(_0x3f0d0f['get'](_0x17e3a5)):'');_0x20b2a5[_0x2d2d0d(0x9f2)](_0x268370[_0x2d2d0d(0xcdc)](','));}return _0x20b2a5[_0x2d2d0d(0xcdc)]('\x0d\x0a');}['_exportCsv'](){const _0x3d80e4=_0x45b7b8,_0xae6123=this[_0x3d80e4(0xbac)]();if(!_0xae6123)return;this[_0x3d80e4(0x689)](new Blob(['\ufeff'+_0xae6123],{'type':_0x3d80e4(0x8f8)}),this['_exportName'](_0x3d80e4(0x518)));}async['_exportPngCard'](){const _0x4d8324=_0x45b7b8,_0x595227=this['shadowRoot']?.[_0x4d8324(0x845)](_0x4d8324(0x141));if(!_0x595227)return;try{const _0x4e8872=_0x595227[_0x4d8324(0x745)](),_0x18878d=Math[_0x4d8324(0xc78)](0x1,Math['round'](_0x4e8872[_0x4d8324(0xaf)])),_0xfdca40=Math[_0x4d8324(0xc78)](0x1,Math['round'](_0x4e8872[_0x4d8324(0x931)])),_0x5f06d7=Math[_0x4d8324(0xc78)](0x2,Math['round'](window[_0x4d8324(0x726)]||0x1)),_0xad4f73=_0x595227['cloneNode'](!![]),_0x145b5d=_0x595227['querySelectorAll']('*'),_0x20f0be=_0xad4f73['querySelectorAll']('*'),_0x1c844f=(_0x2713fa,_0x3a3b02)=>{const _0x27eaf0=_0x4d8324,_0x3b037b=getComputedStyle(_0x2713fa);let _0x314502='';for(let _0x311ae7=0x0;_0x311ae7<_0x3b037b[_0x27eaf0(0x230)];_0x311ae7++){const _0x7b7c97=_0x3b037b[_0x311ae7];_0x314502+=_0x7b7c97+':'+_0x3b037b['getPropertyValue'](_0x7b7c97)+';';}_0x3a3b02['style'][_0x27eaf0(0x783)]=_0x314502;};_0x1c844f(_0x595227,_0xad4f73);for(let _0x538b77=0x0;_0x538b77<_0x145b5d[_0x4d8324(0x230)];_0x538b77++){const _0x119a14=_0x20f0be[_0x538b77]['tagName'];if(_0x119a14===_0x4d8324(0x4a2)||_0x119a14===_0x4d8324(0x522))continue;_0x1c844f(_0x145b5d[_0x538b77],_0x20f0be[_0x538b77]);}for(const _0x178f85 of _0xad4f73['querySelectorAll']('clipPath\x20rect[data-full-x]')){_0x178f85[_0x4d8324(0xb9c)]('x',_0x178f85[_0x4d8324(0xa59)](_0x4d8324(0x2b5))),_0x178f85[_0x4d8324(0xb9c)](_0x4d8324(0xaf),_0x178f85[_0x4d8324(0xa59)](_0x4d8324(0xcf3))),_0x178f85[_0x4d8324(0x538)][_0x4d8324(0x916)]('x'),_0x178f85[_0x4d8324(0x538)]['removeProperty'](_0x4d8324(0xaf));}for(const _0x35a37d of _0xad4f73[_0x4d8324(0x506)]('.sgc-y-axis-sticky')){_0x35a37d[_0x4d8324(0x574)](_0x4d8324(0x122)),_0x35a37d[_0x4d8324(0x538)][_0x4d8324(0x916)](_0x4d8324(0x122)),_0x35a37d[_0x4d8324(0x538)]['removeProperty'](_0x4d8324(0x2e1));}const _0x16dd28=_0x595227[_0x4d8324(0x506)](_0x4d8324(0x852)),_0x31e0ec=_0xad4f73['querySelectorAll'](_0x4d8324(0x852));for(let _0x1d064a=0x0;_0x1d064a<_0x16dd28[_0x4d8324(0x230)];_0x1d064a++){const _0x37dc08=document[_0x4d8324(0xc3b)](_0x4d8324(0x66d));_0x37dc08[_0x4d8324(0xa5b)]=_0x16dd28[_0x1d064a]['toDataURL']('image/png'),_0x37dc08[_0x4d8324(0x538)][_0x4d8324(0x783)]=_0x31e0ec[_0x1d064a]['style'][_0x4d8324(0x783)],_0x31e0ec[_0x1d064a]['replaceWith'](_0x37dc08);}_0xad4f73[_0x4d8324(0x506)](_0x4d8324(0x475))['forEach'](_0x38daa1=>_0x38daa1[_0x4d8324(0x939)]());const _0x2788ba=document[_0x4d8324(0xc3b)](_0x4d8324(0xb8a));_0x2788ba[_0x4d8324(0xb9c)](_0x4d8324(0x667),'http://www.w3.org/1999/xhtml'),_0x2788ba[_0x4d8324(0xceb)](_0xad4f73);const _0x3a0974=new XMLSerializer()[_0x4d8324(0xbf3)](_0x2788ba),_0x3c578d=_0x4d8324(0x9a3)+_0x18878d+_0x4d8324(0x57d)+_0xfdca40+'\x22>'+(_0x4d8324(0x244)+_0x3a0974+''),_0x36dc6f='data:image/svg+xml;charset=utf-8,'+encodeURIComponent(_0x3c578d),_0x1d495b=new Image();await new Promise((_0x2a08ce,_0x5ea1f9)=>{const _0x4a0f50=_0x4d8324;_0x1d495b[_0x4a0f50(0x207)]=_0x2a08ce,_0x1d495b[_0x4a0f50(0x3f2)]=_0x5ea1f9,_0x1d495b['src']=_0x36dc6f;});const _0x30aa80=document[_0x4d8324(0xc3b)](_0x4d8324(0x852));_0x30aa80[_0x4d8324(0xaf)]=_0x18878d*_0x5f06d7,_0x30aa80[_0x4d8324(0x931)]=_0xfdca40*_0x5f06d7;const _0x3fc711=_0x30aa80['getContext']('2d');_0x3fc711['scale'](_0x5f06d7,_0x5f06d7),_0x3fc711[_0x4d8324(0x5cc)](_0x1d495b,0x0,0x0,_0x18878d,_0xfdca40);const _0x3c8f8=await new Promise(_0x12b244=>_0x30aa80[_0x4d8324(0xd77)](_0x12b244,'image/png'));if(!_0x3c8f8)throw new Error(_0x4d8324(0x889));this[_0x4d8324(0x689)](_0x3c8f8,this[_0x4d8324(0xa0f)](_0x4d8324(0xbff)));}catch(_0x36bd40){console[_0x4d8324(0x5f3)]('[sgc]\x20full-card\x20PNG\x20failed,\x20falling\x20back\x20to\x20the\x20chart\x20export',_0x36bd40),this[_0x4d8324(0x826)]();}}async[_0x45b7b8(0x826)](){const _0x17290e=_0x45b7b8,_0x328d5f=this[_0x17290e(0x4ad)]?.[_0x17290e(0x845)](_0x17290e(0x463));if(!_0x328d5f)return;const _0x478805=(getComputedStyle(this)[_0x17290e(0x2db)](_0x17290e(0x144))||'')[_0x17290e(0x28f)]()||_0x17290e(0x80f),_0x2ee7ff=Math['max'](0x2,Math[_0x17290e(0xd3f)](window[_0x17290e(0x726)]||0x1)),_0xbb35f=_0x328d5f[_0x17290e(0x845)]('canvas');if(_0xbb35f){const _0x2d5415=document[_0x17290e(0xc3b)]('canvas');_0x2d5415[_0x17290e(0xaf)]=_0xbb35f[_0x17290e(0xaf)],_0x2d5415[_0x17290e(0x931)]=_0xbb35f['height'];const _0x5cb06d=_0x2d5415[_0x17290e(0x416)]('2d');_0x5cb06d[_0x17290e(0x136)]=_0x478805,_0x5cb06d[_0x17290e(0xb40)](0x0,0x0,_0x2d5415[_0x17290e(0xaf)],_0x2d5415['height']),_0x5cb06d[_0x17290e(0x5cc)](_0xbb35f,0x0,0x0),_0x2d5415[_0x17290e(0xd77)](_0x207083=>{const _0xcda650=_0x17290e;if(_0x207083)this[_0xcda650(0x689)](_0x207083,this[_0xcda650(0xa0f)](_0xcda650(0xbff)));},_0x17290e(0x9b2));return;}const _0x41f4fc=_0x328d5f[_0x17290e(0x845)]('svg');if(!_0x41f4fc)return;const _0x53509e=_0x41f4fc[_0x17290e(0x745)](),_0x2dd8de=Math[_0x17290e(0xc78)](0x1,Math[_0x17290e(0xd3f)](_0x53509e['width']||_0x41f4fc[_0x17290e(0x652)]||0x258)),_0x3e2ab4=Math[_0x17290e(0xc78)](0x1,Math[_0x17290e(0xd3f)](_0x53509e['height']||_0x41f4fc[_0x17290e(0xd41)]||0xc8)),_0x40aa30=_0x41f4fc[_0x17290e(0xcd9)](!![]);for(const _0x3abdec of _0x40aa30[_0x17290e(0x506)](_0x17290e(0x2f1))){_0x3abdec[_0x17290e(0xb9c)]('x',_0x3abdec[_0x17290e(0xa59)](_0x17290e(0x2b5))),_0x3abdec[_0x17290e(0xb9c)]('width',_0x3abdec[_0x17290e(0xa59)](_0x17290e(0xcf3)));}for(const _0x14b3f2 of _0x40aa30[_0x17290e(0x506)](_0x17290e(0x720))){_0x14b3f2['removeAttribute'](_0x17290e(0x122));}_0x40aa30[_0x17290e(0xb9c)](_0x17290e(0xaf),String(_0x2dd8de)),_0x40aa30[_0x17290e(0xb9c)](_0x17290e(0x931),String(_0x3e2ab4)),_0x40aa30['style']['fontFamily']=getComputedStyle(this)[_0x17290e(0x50c)]||_0x17290e(0x995);const _0xe02c2=(getComputedStyle(this)[_0x17290e(0x2db)](_0x17290e(0x53c))||'')['trim']()||_0x17290e(0x4c6),_0x12ed26=document[_0x17290e(0x6ec)](_0x17290e(0x7b1),_0x17290e(0x538));_0x12ed26[_0x17290e(0x7ec)]=_0x17290e(0xcb3)+_0xe02c2+'}'+'.sgc-bar{opacity:0.85}',_0x40aa30['insertBefore'](_0x12ed26,_0x40aa30[_0x17290e(0x77c)]);const _0x4b52fc=new XMLSerializer()['serializeToString'](_0x40aa30),_0xe88574=URL[_0x17290e(0x344)](new Blob([_0x4b52fc],{'type':_0x17290e(0x9f)}));try{const _0xbee376=new Image();await new Promise((_0x40469,_0x4f1af4)=>{const _0x27184f=_0x17290e;_0xbee376[_0x27184f(0x207)]=_0x40469,_0xbee376[_0x27184f(0x3f2)]=_0x4f1af4,_0xbee376['src']=_0xe88574;});const _0x530154=document[_0x17290e(0xc3b)](_0x17290e(0x852));_0x530154[_0x17290e(0xaf)]=_0x2dd8de*_0x2ee7ff,_0x530154['height']=_0x3e2ab4*_0x2ee7ff;const _0x489e5b=_0x530154['getContext']('2d');_0x489e5b[_0x17290e(0x136)]=_0x478805,_0x489e5b['fillRect'](0x0,0x0,_0x530154[_0x17290e(0xaf)],_0x530154[_0x17290e(0x931)]),_0x489e5b[_0x17290e(0x730)](_0x2ee7ff,_0x2ee7ff),_0x489e5b[_0x17290e(0x5cc)](_0xbee376,0x0,0x0,_0x2dd8de,_0x3e2ab4),_0x530154['toBlob'](_0x3bee04=>{const _0x30fd71=_0x17290e;if(_0x3bee04)this[_0x30fd71(0x689)](_0x3bee04,this[_0x30fd71(0xa0f)](_0x30fd71(0xbff)));},_0x17290e(0x9b2));}catch(_0x303b12){console[_0x17290e(0x5f3)](_0x17290e(0x4ec),_0x303b12);}finally{setTimeout(()=>URL['revokeObjectURL'](_0xe88574),0x1388);}}[_0x45b7b8(0x738)](){const _0x179c83=_0x45b7b8,_0x29e5af=this[_0x179c83(0x4ad)]['querySelector'](_0x179c83(0x43b));if(!_0x29e5af){this[_0x179c83(0x4a7)]();return;}const _0x3d924c=this['_config'];if(!_0x3d924c['show_legend']||!this[_0x179c83(0x550)])_0x29e5af[_0x179c83(0x339)]='';else{const _0x3046b2=this[_0x179c83(0x550)][_0x179c83(0x134)][_0x179c83(0xbb6)](_0x3e4568=>!(_0x3e4568[_0x179c83(0x9ac)]?.[_0x179c83(0x2f6)]!=null&&_0x3e4568[_0x179c83(0x9ac)][_0x179c83(0xb1)]?.['show_in_legend']===![]))['map'](_0xd80962=>{const _0x12374d=_0x179c83,_0x46c407=_0xd80962[_0x12374d(0x9ac)],_0x3d7834=pickName(_0x46c407[_0x12374d(0x10d)],_0xd80962['meta']?.[_0x12374d(0x901)],_0xd80962[_0x12374d(0x7cb)])??_0xd80962['id'],_0x2d7b71=this[_0x12374d(0x810)]['has'](_0xd80962['id']),_0x2b85ff=this['_resolveColor'](_0x46c407[_0x12374d(0xacd)],_0x46c407[_0x12374d(0x9ac)])||_0x46c407[_0x12374d(0xacd)]||_0x12374d(0xcf5),_0x1577fe=_0x46c407[_0x12374d(0x432)]!==![]?'background:'+escapeHtml(_0x2b85ff):'background:'+escapeHtml(_0x2b85ff)+_0x12374d(0x9cd);return _0x12374d(0x370)+(_0x2d7b71?_0x12374d(0xac4):'')+_0x12374d(0xcac)+escapeHtml(_0xd80962['id'])+_0x12374d(0x515)+_0x1577fe+_0x12374d(0x333)+escapeHtml(_0x3d7834)+_0x12374d(0xa0b);})['join']('');_0x29e5af[_0x179c83(0x339)]=''+_0x3046b2+_0x179c83(0x31c),_0x29e5af[_0x179c83(0x506)](_0x179c83(0xa15))[_0x179c83(0x1ce)](_0x226a39=>{const _0x1d9e2b=_0x179c83;_0x226a39[_0x1d9e2b(0x8a9)](_0x1d9e2b(0x956),()=>{const _0x6d2ec7=_0x1d9e2b;this['_toggleSeriesVisibility'](_0x226a39[_0x6d2ec7(0xbb)]['id']),this[_0x6d2ec7(0x656)]();});});}this[_0x179c83(0x4a7)]();}[_0x45b7b8(0x4a7)](){const _0x2a33b4=_0x45b7b8,_0x47d43a=this[_0x2a33b4(0x4ad)]['querySelector']('.sgc-detail-legend-wrap');if(!_0x47d43a)return;const _0x381a37=this[_0x2a33b4(0x461)]||[],_0x4a2c03=this['_graphData']?.[_0x2a33b4(0x134)]||[],_0x596fd9=_0x381a37['some'](_0x67c2b7=>_0x67c2b7?.[_0x2a33b4(0x8ab)]);if(!_0x596fd9){_0x47d43a[_0x2a33b4(0x339)]='';return;}const _0x2248fe=this[_0x2a33b4(0xb79)],_0x48d1f4=_0x381a37['map']((_0x234ff9,_0x405f8e)=>{const _0x12df43=_0x2a33b4;if(!_0x234ff9?.[_0x12df43(0x8ab)])return'';const _0x4e8d91=(_0x234ff9[_0x12df43(0x9ac)]||_0x234ff9[_0x12df43(0x527)])+'__'+_0x405f8e,_0x56b7d9=_0x4a2c03[_0x12df43(0x740)](_0x47b1e1=>_0x47b1e1['id']===_0x4e8d91||_0x47b1e1[_0x12df43(0x9ac)]===_0x234ff9),_0x47227b=_0x56b7d9?.['stats']||{},_0x2d3a24=_0x234ff9['legend_stats']&&_0x234ff9['legend_stats']['length']?_0x234ff9[_0x12df43(0x79a)]:[_0x12df43(0xd2f),_0x12df43(0x7f0),'max'],_0x8b7a2a=(_0x31af73,_0x20cdb)=>{if(!isNum(_0x31af73))return'—';const _0x37bb50=_0x20cdb!=null?{..._0x234ff9,'decimals':_0x20cdb}:_0x234ff9;return formatNumber(_0x31af73,_0x37bb50,_0x2248fe);},_0x1191d7=(_0x53c82f,_0x3a0cee)=>_0x12df43(0x459)+escapeHtml(_0x53c82f)+_0x12df43(0xd45)+escapeHtml(_0x3a0cee)+'';let _0x3cc830='';if(_0x2d3a24[_0x12df43(0x615)]('min'))_0x3cc830+=_0x1191d7(cardT(this['_hass'],this['_config'],_0x12df43(0x3b0)),_0x8b7a2a(_0x47227b[_0x12df43(0xd2f)]));if(_0x2d3a24[_0x12df43(0x615)](_0x12df43(0x7f0)))_0x3cc830+=_0x1191d7(cardT(this['_hass'],this['_config'],_0x12df43(0x45f)),_0x8b7a2a(_0x47227b[_0x12df43(0x7f0)],0x2));if(_0x2d3a24[_0x12df43(0x615)]('max'))_0x3cc830+=_0x1191d7(cardT(this['_hass'],this[_0x12df43(0x9b6)],_0x12df43(0x648)),_0x8b7a2a(_0x47227b['max']));if(_0x2d3a24[_0x12df43(0x615)]('last')){const _0x530ec0=_0x56b7d9?.[_0x12df43(0xaf8)]?.['length']?_0x56b7d9['points'][_0x56b7d9[_0x12df43(0xaf8)][_0x12df43(0x230)]-0x1]['v']:null,_0x49398e=_0x2248fe?.[_0x12df43(0x81a)]?.[_0x234ff9[_0x12df43(0x9ac)]]?.['state'],_0x44e03e=isNum(_0x530ec0)?_0x530ec0:_0x49398e!=null?toNum(_0x49398e):null;_0x3cc830+=_0x1191d7(cardT(this[_0x12df43(0xb79)],this['_config'],_0x12df43(0x541)),_0x8b7a2a(_0x44e03e));}if(_0x2d3a24[_0x12df43(0x615)](_0x12df43(0xc7f)))_0x3cc830+=_0x1191d7(cardT(this[_0x12df43(0xb79)],this['_config'],_0x12df43(0x20f)),_0x8b7a2a(_0x47227b[_0x12df43(0xc7f)]));const _0x10e5c6=this[_0x12df43(0x54b)](_0x234ff9['color'],_0x234ff9['entity'])||_0x234ff9['color']||PALETTE[_0x405f8e%PALETTE[_0x12df43(0x230)]]||_0x12df43(0xcf5),_0x524f42=pickName(_0x234ff9[_0x12df43(0x10d)],_0x56b7d9?.[_0x12df43(0x7cb)]?.['resolved_name'],{'friendly_name':_0x56b7d9?.[_0x12df43(0x7cb)]?.[_0x12df43(0xc8b)]??_0x2248fe?.[_0x12df43(0x81a)]?.[_0x234ff9[_0x12df43(0x9ac)]]?.[_0x12df43(0x74e)]?.[_0x12df43(0xc8b)]})??_0x234ff9['entity']??_0x234ff9[_0x12df43(0x527)]??'',_0x3bd37a=this[_0x12df43(0x810)][_0x12df43(0xd4f)](_0x4e8d91)?_0x12df43(0x5d5):'',_0x126958=_0x234ff9[_0x12df43(0x432)]!==![]?_0x12df43(0xa16)+escapeHtml(_0x10e5c6):'border-color:transparent';return _0x12df43(0x838)+_0x3bd37a+_0x12df43(0xcac)+escapeHtml(_0x4e8d91)+_0x12df43(0x779)+_0x126958+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+escapeHtml(_0x524f42)+_0x12df43(0x2c6)+_0x3cc830+'\x0a\x20\x20\x20\x20\x20\x20';})[_0x2a33b4(0xbb6)](Boolean)[_0x2a33b4(0xcdc)]('');_0x47d43a[_0x2a33b4(0x339)]=_0x48d1f4?_0x2a33b4(0x82f)+_0x48d1f4+_0x2a33b4(0x31c):'',_0x47d43a['querySelectorAll'](_0x2a33b4(0x6df))[_0x2a33b4(0x1ce)](_0x2e1bc1=>{const _0x5d7274=_0x2a33b4;_0x2e1bc1['addEventListener'](_0x5d7274(0x956),()=>{const _0x3a8bc7=_0x5d7274;this[_0x3a8bc7(0x83d)](_0x2e1bc1[_0x3a8bc7(0xbb)]['id']),this[_0x3a8bc7(0x656)]();});});}[_0x45b7b8(0x841)](){const _0x222124=_0x45b7b8;if(this['_config']?.['sparkline']&&(this[_0x222124(0x9b6)]['chart_mode']||_0x222124(0x3c0))===_0x222124(0x3c0)){this[_0x222124(0x164)]();return;}this[_0x222124(0x40e)](_0x222124(0x620)),this[_0x222124(0x40e)](_0x222124(0xcba));}[_0x45b7b8(0x40e)](_0x168a27){const _0x14bf0a=_0x45b7b8,_0x1be5e0=this[_0x14bf0a(0x4ad)][_0x14bf0a(0x845)]('.sgc-state-wrap[data-pos=\x22'+_0x168a27+'\x22]');if(!_0x1be5e0)return;const _0x4fd4ae=this[_0x14bf0a(0x9b6)];if(!_0x4fd4ae||_0x4fd4ae[_0x14bf0a(0x71c)]){_0x1be5e0['innerHTML']='';return;}const _0x44f79c=this[_0x14bf0a(0x461)]||[],_0x335b69=_0x44f79c['filter'](_0x587605=>_0x587605[_0x14bf0a(0x16d)]!==![]),_0x418ae6=[],_0x602503=[],_0x221352=[];for(const _0x21f274 of _0x335b69){const _0x3d42bc=_0x21f274[_0x14bf0a(0xaea)]||_0x14bf0a(0x4f8),_0x50f205=_0x3d42bc[_0x14bf0a(0x6a3)](_0x14bf0a(0xcba));if(_0x168a27===_0x14bf0a(0x620)&&_0x50f205)continue;if(_0x168a27===_0x14bf0a(0xcba)&&!_0x50f205)continue;const _0xcf6212=_0x50f205?_0x3d42bc['replace'](_0x14bf0a(0xa83),''):_0x3d42bc;if(_0xcf6212===_0x14bf0a(0x896))_0x221352[_0x14bf0a(0x9f2)](_0x21f274);else{if(_0xcf6212===_0x14bf0a(0x7e9))_0x602503[_0x14bf0a(0x9f2)](_0x21f274);else _0x418ae6[_0x14bf0a(0x9f2)](_0x21f274);}}const _0x5190c8=!!(_0x4fd4ae[_0x14bf0a(0xd7a)]||_0x4fd4ae['card_icon']||_0x4fd4ae['card_icon_image']),_0x442b60=!_0x5190c8&&!!_0x4fd4ae[_0x14bf0a(0x4a8)]&&_0x168a27===_0x14bf0a(0x620),_0x27efc6=_0x442b60?this[_0x14bf0a(0x79e)]():'';if(!_0x418ae6[_0x14bf0a(0x230)]&&!_0x602503['length']&&!_0x221352['length']&&!_0x27efc6){_0x1be5e0['innerHTML']='';return;}const _0xcd583f=_0x4fd4ae[_0x14bf0a(0x32a)]===_0x14bf0a(0x3ba)?_0x14bf0a(0x3ba):_0x14bf0a(0x39d),_0x582186=this[_0x14bf0a(0xb79)],_0x20d32f=_0x4cca0a=>{const _0x56afbd=_0x14bf0a,_0x4b8e65=_0x44f79c['indexOf'](_0x4cca0a);return this[_0x56afbd(0xc2d)](_0x4cca0a,_0x4b8e65,_0x582186);},_0x4c3aa8=_0x418ae6['map'](_0x20d32f)[_0x14bf0a(0xbb6)](Boolean)[_0x14bf0a(0xcdc)](''),_0x522541=_0x602503['map'](_0x20d32f)[_0x14bf0a(0xbb6)](Boolean)[_0x14bf0a(0xcdc)]('');let _0x2ad5fa=_0x221352[_0x14bf0a(0x963)](_0x20d32f)['filter'](Boolean)[_0x14bf0a(0xcdc)](''),_0x2648a6='';if(_0x27efc6){const _0x4e39b8=_0x4fd4ae[_0x14bf0a(0x334)]||'14px';_0x2648a6=_0x14bf0a(0x9e5)+escapeHtml(_0x4e39b8)+'\x22>'+_0x27efc6+_0x14bf0a(0xc85);}_0x1be5e0['className']=_0x14bf0a(0xdb)+_0xcd583f;const _0x52a5c2=_0x4c3aa8?''+_0x4c3aa8+_0x14bf0a(0x31c):'',_0x5d7e9a=_0x522541?''+_0x522541+'':'',_0x37fef1=_0x2ad5fa?_0x14bf0a(0x3b7)+_0x2ad5fa+_0x14bf0a(0x31c):'';_0x1be5e0[_0x14bf0a(0x339)]=''+_0x52a5c2+_0x5d7e9a+_0x37fef1+_0x2648a6+'',_0x1be5e0['querySelectorAll'](_0x14bf0a(0x153))[_0x14bf0a(0x1ce)](_0x208263=>{const _0x1a3989=_0x14bf0a;_0x208263[_0x1a3989(0x538)][_0x1a3989(0x453)]=_0x1a3989(0x70c),_0x208263['addEventListener'](_0x1a3989(0x956),_0x40c69f=>{const _0x3a7095=_0x1a3989,_0x444da3=parseInt(_0x208263[_0x3a7095(0xbb)][_0x3a7095(0x146)],0xa),_0x589cc9=_0x44f79c[_0x444da3];if(!_0x589cc9)return;_0x40c69f[_0x3a7095(0x16c)](),this[_0x3a7095(0xad8)](_0x589cc9,()=>{const _0x42ca9a=_0x3a7095;this[_0x42ca9a(0x83d)]((_0x589cc9[_0x42ca9a(0x9ac)]||_0x589cc9[_0x42ca9a(0x527)])+'__'+_0x444da3),this[_0x42ca9a(0x656)]();});});});}[_0x45b7b8(0x8c2)](_0x304a40){const _0xcf2bf0=_0x45b7b8;if(!this[_0xcf2bf0(0x461)]?.[_0xcf2bf0(0x230)])return null;if(this[_0xcf2bf0(0x9b6)]?.[_0xcf2bf0(0xc9f)])return null;let _0x2f230b=null;for(let _0x44a89c=0x0;_0x44a89c0.000001)return'';const _0x42519a=Math[_0x5c8989(0xd3f)](_0x4c6100);if(_0x42519a<0x0||_0x42519a>=_0x12aaa3[_0x5c8989(0x230)])return'';const _0x67b1f8=_0x12aaa3[_0x42519a];return _0x67b1f8?.[_0x5c8989(0x72b)]||String(_0x67b1f8?.[_0x5c8989(0xba7)]??'');}[_0x45b7b8(0xc2d)](_0x32f01f,_0x19ce93,_0xb59e0f){const _0x3b8e72=_0x45b7b8,_0x289e2d=_0xb59e0f?.[_0x3b8e72(0x81a)]?.[_0x32f01f[_0x3b8e72(0x9ac)]];if(!_0x32f01f[_0x3b8e72(0x9ac)]&&!_0x32f01f[_0x3b8e72(0x527)])return'';const _0x3ac663=_0xa41bea=>{const _0x50e44b=_0x3b8e72;if(_0xa41bea==null||_0xa41bea==='')return'';const _0x3559bc=String(_0xa41bea)[_0x50e44b(0x28f)]();return/[a-z%]$/i[_0x50e44b(0x7af)](_0x3559bc)?_0x50e44b(0xc1c)+_0x3559bc:_0x50e44b(0xc1c)+_0x3559bc+'px';},_0x4b0da8=_0x3ac663(_0x32f01f[_0x3b8e72(0xbf)]),_0x2923fd=_0x3ac663(_0x32f01f['state_size']),_0x276477=_0x32f01f[_0x3b8e72(0xa8f)]?_0x3b8e72(0x1e8)+(/[a-z%]$/i[_0x3b8e72(0x7af)](String(_0x32f01f['icon_size'])[_0x3b8e72(0x28f)]())?String(_0x32f01f['icon_size'])[_0x3b8e72(0x28f)]():String(_0x32f01f[_0x3b8e72(0xa8f)])[_0x3b8e72(0x28f)]()+'px'):'';let _0x48b3e6='';if(!_0x32f01f[_0x3b8e72(0x6fd)]){const _0x917b94=this[_0x3b8e72(0xa17)]?.[_0x3b8e72(0x809)](_0x19ce93)||'',_0x8499bf=_0x289e2d?.['attributes']?.[_0x3b8e72(0xc8b)],_0xa72dc2=_0x917b94&&_0x8499bf!=null?_0x8499bf+_0x917b94:_0x8499bf;let _0x5e2901=pickName(_0x32f01f[_0x3b8e72(0x10d)],this[_0x3b8e72(0x310)](_0x32f01f[_0x3b8e72(0x10d)],_0x32f01f[_0x3b8e72(0x9ac)]),{'friendly_name':_0xa72dc2});if(!_0x5e2901&&_0x32f01f[_0x3b8e72(0x10d)])_0x5e2901=_0x32f01f['entity'];_0x5e2901&&(_0x48b3e6=_0x3b8e72(0xb05)+(_0x4b0da8?'\x20style=\x22'+_0x4b0da8+'\x22':'')+'>'+escapeHtml(_0x5e2901)+_0x3b8e72(0xd45));}const _0x14cabd=_0x32f01f[_0x3b8e72(0xd4b)]??_0x289e2d?.[_0x3b8e72(0x74e)]?.['unit_of_measurement']??(_0x32f01f[_0x3b8e72(0x527)]?this[_0x3b8e72(0x37d)]?.[_0x32f01f[_0x3b8e72(0x527)]]?.[_0x3b8e72(0xcc8)]:null)??'',_0x1d4109=this[_0x3b8e72(0x34a)](_0x32f01f,_0x19ce93),_0x56c4c7=_0x1d4109['numeric'],_0x894ffa=_0x1d4109[_0x3b8e72(0x72b)],_0x8b3570=this['_resolveColor'](_0x32f01f['color'],_0x32f01f[_0x3b8e72(0x9ac)])||_0x32f01f[_0x3b8e72(0xacd)]||PALETTE[_0x19ce93%PALETTE[_0x3b8e72(0x230)]]||_0x3b8e72(0xcf5),_0x35be45=!!_0x32f01f[_0x3b8e72(0x76e)],_0x531785=_0x32f01f['color_thresholds'],_0xcd39aa=!!(_0x531785?.[_0x3b8e72(0x46d)]&&Array[_0x3b8e72(0x1d7)](_0x531785[_0x3b8e72(0x5e7)])&&_0x531785['values']['length']&&isNum(_0x56c4c7)),_0x472b66=(_0x531785?.[_0x3b8e72(0x51f)]??'smooth')!=='hard';let _0x17fa1f=null;if(_0x35be45&&!_0xcd39aa){const _0x33a913=_0x32f01f[_0x3b8e72(0x83e)]||autoStateMap(_0x32f01f,this[_0x3b8e72(0xb79)],this[_0x3b8e72(0x9b6)]?.[_0x3b8e72(0x5f9)]);if(Array[_0x3b8e72(0x1d7)](_0x33a913)&&_0x33a913[_0x3b8e72(0x230)]){let _0x16cc1f=isNum(_0x56c4c7)?Math[_0x3b8e72(0xd3f)](_0x56c4c7):null;if(_0x16cc1f===null&&_0x289e2d&&_0x289e2d[_0x3b8e72(0x992)]!=null){const _0x308355=applyStateMap(_0x289e2d[_0x3b8e72(0x992)],_0x33a913);if(_0x308355&&_0x308355['mapped'])_0x16cc1f=_0x308355[_0x3b8e72(0xba7)];}_0x16cc1f!==null&&_0x16cc1f>=0x0&&_0x16cc1f<_0x33a913['length']&&(_0x17fa1f=_0x33a913[_0x16cc1f]?.[_0x3b8e72(0xacd)]||null);}}const _0x555248=_0x35be45?_0xcd39aa?resolveValueColor(_0x56c4c7,this[_0x3b8e72(0x12f)](_0x32f01f),_0x8b3570,_0x472b66):_0x17fa1f||_0x8b3570:null,_0x2340d7=this[_0x3b8e72(0x54b)](_0x32f01f['icon_color'],_0x32f01f['entity'])||_0x32f01f[_0x3b8e72(0x2a0)],_0x5d7157=this[_0x3b8e72(0x54b)](_0x32f01f[_0x3b8e72(0x683)],_0x32f01f[_0x3b8e72(0x9ac)])||_0x32f01f[_0x3b8e72(0x683)],_0x566efc=_0x35be45?_0x2340d7===_0x3b8e72(0x7e5)?this['_resolveStateColor'](_0x2340d7,_0x32f01f,_0x56c4c7,_0x8b3570):_0x555248:this[_0x3b8e72(0x7e3)](_0x2340d7,_0x32f01f,_0x56c4c7,_0x8b3570),_0x10a414=_0x35be45?_0x5d7157==='threshold'?this[_0x3b8e72(0x7e3)](_0x5d7157,_0x32f01f,_0x56c4c7,_0x8b3570):_0x555248:this[_0x3b8e72(0x7e3)](_0x5d7157,_0x32f01f,_0x56c4c7,_0x8b3570),_0x377501=_0x566efc?_0x3b8e72(0x280)+escapeHtml(_0x566efc):'',_0x32a8f6=_0x10a414?_0x3b8e72(0x280)+escapeHtml(_0x10a414):'',_0x39cd8e=_0x377501,_0x72d4d2=[_0x32a8f6,_0x2923fd]['filter'](Boolean)[_0x3b8e72(0xcdc)](';'),_0x53dafc=this[_0x3b8e72(0x761)](_0x32f01f[_0x3b8e72(0x3e7)],_0x32f01f[_0x3b8e72(0x9ac)]),_0x30b29c=_0x53dafc?_0x3b8e72(0xc6c)+(_0x39cd8e?'\x20style=\x22'+_0x39cd8e+'\x22':'')+_0x3b8e72(0xd5e)+escapeHtml(_0x53dafc)+'\x22'+(_0x276477?_0x3b8e72(0x3e0)+_0x276477+'\x22':'')+_0x3b8e72(0xb91):'';let _0x25379d;{const _0x110dca=this[_0x3b8e72(0xd3e)](_0x32f01f,_0x19ce93,_0x10a414,_0x2923fd),_0x520373=_0x14cabd?_0x3b8e72(0x854)+escapeHtml(_0x14cabd)+_0x3b8e72(0xd45):'',_0x48307b=_0x1d4109[_0x3b8e72(0xc16)]?_0x3b8e72(0x3bc)+escapeHtml(_0x1d4109[_0x3b8e72(0xc16)])+_0x3b8e72(0xd45):'',_0x1be1a2=_0x1d4109[_0x3b8e72(0x243)]?'('+escapeHtml(_0x1d4109['range'][_0x3b8e72(0xd2f)])+_0x3b8e72(0x859)+escapeHtml(_0x1d4109[_0x3b8e72(0x243)][_0x3b8e72(0xc78)])+(_0x14cabd?'\x20'+escapeHtml(_0x14cabd):'')+_0x3b8e72(0x511):'';_0x25379d=_0x3b8e72(0x6f6)+(_0x72d4d2?_0x3b8e72(0x3e0)+_0x72d4d2+'\x22':'')+'>'+escapeHtml(_0x894ffa)+_0x520373+_0x48307b+_0x1be1a2+''+_0x110dca;}const _0x136ba4=_0x35be45?_0x555248||_0x8b3570:_0x8b3570,_0xc077ea=_0x32f01f['show_state']!==![]&&_0x32f01f['show_color_dot']!==![]?_0x3b8e72(0x6ae)+escapeHtml(_0x136ba4)+_0x3b8e72(0xba4):'',_0xff4f30={'up':'▲','down':'▼','stable':'━'},_0x541a64={'up':_0x32f01f['trend_up_color']||_0x3b8e72(0x516),'down':_0x32f01f[_0x3b8e72(0x2c5)]||_0x3b8e72(0x4d2),'stable':_0x32f01f[_0x3b8e72(0x35f)]||_0x3b8e72(0xc3a)},_0x3af640=_0x3ac663(_0x32f01f[_0x3b8e72(0x86b)]);let _0x217bf3=_0x3b8e72(0x335);if(_0x32f01f['show_trend_icon']!==![]){const _0x10b77=_0x32f01f[_0x3b8e72(0x9ac)]+'__'+_0x19ce93,_0x2e147e=this['_graphData']?.[_0x3b8e72(0x134)]?.[_0x3b8e72(0x740)](_0x1141e9=>_0x1141e9['id']===_0x10b77||_0x1141e9[_0x3b8e72(0x9ac)]===_0x32f01f);_0x217bf3=trendDirection(_0x2e147e,_0x32f01f);}const _0x58c719=[_0x3b8e72(0x280)+(_0x541a64[_0x217bf3]||_0x541a64[_0x3b8e72(0x335)]),_0x3af640]['filter'](Boolean)['join'](';'),_0x160dbb=_0x32f01f['show_trend_icon']!==![]&&this[_0x3b8e72(0x9b6)]?.['chart_mode']!==_0x3b8e72(0x622)?_0x3b8e72(0xb59)+_0x58c719+'\x22>'+(_0xff4f30[_0x217bf3]||_0xff4f30[_0x3b8e72(0x335)])+_0x3b8e72(0xd45):'',_0x3cbc14=this[_0x3b8e72(0x810)]?.[_0x3b8e72(0xd4f)]((_0x32f01f['entity']||_0x32f01f[_0x3b8e72(0x527)])+'__'+_0x19ce93)?'\x20sgc-state-row-hidden':'',_0x1e14d1=_0x32f01f[_0x3b8e72(0xb4d)]==='below';if(_0x1e14d1&&_0x48b3e6)return _0x3b8e72(0x88a)+_0x3cbc14+_0x3b8e72(0x26c)+_0x19ce93+'\x22>'+_0xc077ea+_0x30b29c+_0x3b8e72(0x50a)+_0x25379d+_0x160dbb+_0x3b8e72(0xca3)+_0x48b3e6+_0x3b8e72(0x89e);return''+_0xc077ea+_0x30b29c+_0x48b3e6+_0x25379d+_0x160dbb+_0x3b8e72(0x31c);}[_0x45b7b8(0x34a)](_0x1d6e79,_0x1af5c3){const _0x1e9c87=_0x45b7b8,_0x4c5eb4=this[_0x1e9c87(0xb79)],_0x210b1d=_0x4c5eb4?.[_0x1e9c87(0x81a)]?.[_0x1d6e79[_0x1e9c87(0x9ac)]],_0x5dd5a3=()=>{const _0x15d072=_0x1e9c87;if(!this[_0x15d072(0x550)]?.[_0x15d072(0x134)])return null;const _0x530865=(_0x1d6e79[_0x15d072(0x9ac)]||_0x1d6e79[_0x15d072(0x527)])+'__'+_0x1af5c3;return this[_0x15d072(0x550)][_0x15d072(0x134)]['find'](_0x30d7af=>_0x30d7af[_0x15d072(0x9ac)]===_0x1d6e79||_0x30d7af['id']===_0x530865)||this[_0x15d072(0x550)][_0x15d072(0x134)][_0x15d072(0x740)](_0x5c1edf=>_0x5c1edf['id']===(_0x1d6e79[_0x15d072(0x9ac)]||_0x1d6e79[_0x15d072(0x527)]));};let _0x372cc6=_0x1d6e79[_0x1e9c87(0x224)];if(!_0x372cc6&&_0x1d6e79[_0x1e9c87(0x69d)])_0x372cc6=_0x1e9c87(0x503);if(_0x1d6e79[_0x1e9c87(0x408)]&&(!_0x372cc6||_0x372cc6==='state'))_0x372cc6=_0x1e9c87(0x503);if(_0x372cc6&&_0x372cc6!==_0x1e9c87(0x992)){const _0x5c1712=_0x5dd5a3();if(_0x5c1712){const _0x4173dc=_0x56ad9c=>{const _0x4bdad5=_0x1e9c87;if(!_0x1d6e79[_0x4bdad5(0x2bb)])return null;if(_0x56ad9c!=='min'&&_0x56ad9c!=='max'&&_0x56ad9c!==_0x4bdad5(0x350)&&_0x56ad9c!==_0x4bdad5(0x503))return null;const _0x167f58=_0x56ad9c+'T',_0x30e506=_0x5c1712['stats']?.[_0x167f58];if(!isNum(_0x30e506))return null;const _0x36fa7b=!!_0x5c1712[_0x4bdad5(0x951)]?.[_0x167f58+_0x4bdad5(0x81e)],_0x4fc641=_0x36fa7b?_0x4bdad5(0x301):_0x5c1712[_0x4bdad5(0x6be)]||_0x4bdad5(0x301);try{return formatDateTime(new Date(_0x30e506),this[_0x4bdad5(0x9b6)],_0x4c5eb4,{'precision':_0x4fc641});}catch(_0x1572bd){return null;}},_0x196ab7=()=>{const _0x1a84cf=_0x1e9c87;if(!_0x1d6e79[_0x1a84cf(0xcc9)])return null;let _0xd6f66c=Infinity,_0x9bba01=-Infinity;if(_0x5c1712['points']?.[_0x1a84cf(0x230)])for(const _0x23eba3 of _0x5c1712[_0x1a84cf(0xaf8)]){if(isNum(_0x23eba3[_0x1a84cf(0x11f)])&&_0x23eba3[_0x1a84cf(0x11f)]<_0xd6f66c)_0xd6f66c=_0x23eba3[_0x1a84cf(0x11f)];if(isNum(_0x23eba3[_0x1a84cf(0xc97)])&&_0x23eba3[_0x1a84cf(0xc97)]>_0x9bba01)_0x9bba01=_0x23eba3[_0x1a84cf(0xc97)];}if(!isFinite(_0xd6f66c)&&isNum(_0x5c1712[_0x1a84cf(0x951)]?.[_0x1a84cf(0xd2f)]))_0xd6f66c=_0x5c1712[_0x1a84cf(0x951)]['min'];if(!isFinite(_0x9bba01)&&isNum(_0x5c1712[_0x1a84cf(0x951)]?.['max']))_0x9bba01=_0x5c1712[_0x1a84cf(0x951)]['max'];if(!isFinite(_0xd6f66c)||!isFinite(_0x9bba01))return null;return{'min':formatNumber(_0xd6f66c,_0x1d6e79,_0x4c5eb4),'max':formatNumber(_0x9bba01,_0x1d6e79,_0x4c5eb4)};},_0x58fd9f=(_0x1fcfd4,_0x2a2627)=>{const _0x48403a=formatNumber(_0x1fcfd4,_0x1d6e79,_0x4c5eb4),_0x572bd6=_0x4173dc(_0x2a2627),_0x281ecf=_0x196ab7(),_0x2d0daa={'numeric':_0x1fcfd4,'label':_0x48403a};if(_0x572bd6)_0x2d0daa['timestamp']=_0x572bd6;if(_0x281ecf)_0x2d0daa['range']=_0x281ecf;return _0x2d0daa;};if(_0x372cc6===_0x1e9c87(0x503)){const _0x2013f8=_0x5c1712['points']?.[_0x5c1712[_0x1e9c87(0xaf8)]['length']-0x1];if(_0x2013f8&&isNum(_0x2013f8['v']))return _0x58fd9f(_0x2013f8['v'],_0x1e9c87(0x503));}else{const _0x588200=_0x372cc6==='mean'?_0x1e9c87(0x7f0):_0x372cc6,_0x509b7e=_0x5c1712['stats']?.[_0x588200];if(isNum(_0x509b7e))return _0x58fd9f(_0x509b7e,_0x588200);}}}if(_0x1d6e79['ref_entity']&&!_0x1d6e79[_0x1e9c87(0x8bf)]&&!_0x1d6e79[_0x1e9c87(0x6e9)])return{'numeric':null,'label':''};const _0x30098a=resolveOffsetHours(_0x1d6e79[_0x1e9c87(0x74a)],_0x4c5eb4),_0x35cd34=!!_0x1d6e79[_0x1e9c87(0x527)],_0x1522ff=_0x30098a!==0x0||_0x35cd34;if(_0x1522ff){const _0x4bd2e3=_0x5dd5a3(),_0x51837a=_0x4bd2e3?.['points'];if(_0x51837a&&_0x51837a[_0x1e9c87(0x230)]){let _0xfcad3f=_0x51837a[_0x51837a[_0x1e9c87(0x230)]-0x1];if(_0x30098a!==0x0){const _0x78cce7=Date[_0x1e9c87(0xcca)]();let _0x533fe4=Infinity,_0x146a57=null;for(const _0x4692d3 of _0x51837a){if(!isNum(_0x4692d3['v']))continue;const _0x443d18=Math[_0x1e9c87(0x533)](_0x4692d3['t']-_0x78cce7);_0x443d18<_0x533fe4&&(_0x533fe4=_0x443d18,_0x146a57=_0x4692d3);}if(_0x146a57)_0xfcad3f=_0x146a57;}if(_0xfcad3f&&isNum(_0xfcad3f['v']))return{'numeric':_0xfcad3f['v'],'label':formatNumber(_0xfcad3f['v'],_0x1d6e79,_0x4c5eb4)};}}const _0x57de17=this['_effectiveAttribute'](_0x1d6e79,_0x1af5c3),_0x41ad96=_0x57de17?getAttributePath(_0x210b1d?.['attributes'],_0x57de17):_0x210b1d?.[_0x1e9c87(0x992)],_0x57da15=_0x57de17?null:_0x1d6e79[_0x1e9c87(0x83e)]||autoStateMap(_0x1d6e79,_0x4c5eb4,this[_0x1e9c87(0x9b6)]?.[_0x1e9c87(0x5f9)]);if(_0x57da15){const _0x1c7e64=applyStateMap(_0x41ad96,_0x57da15);if(_0x1c7e64[_0x1e9c87(0x19d)]){const _0x4444a6=_0x57da15[_0x1c7e64[_0x1e9c87(0xba7)]],_0x598a9a=_0x4444a6?.['label']||String(_0x4444a6?.[_0x1e9c87(0xba7)]);return{'numeric':_0x1c7e64[_0x1e9c87(0xba7)],'label':_0x598a9a};}}const _0x5bf1e2=toNum(_0x41ad96);if(_0x5bf1e2===null){const _0x14d39a=_0x41ad96==null?'—':String(_0x41ad96);return{'numeric':null,'label':_0x14d39a};}const _0x43090e=DataProcessor[_0x1e9c87(0x764)]({'t':0x0,'v':_0x5bf1e2},_0x1d6e79),_0x364fbe=_0x43090e?.['v']??null;if(_0x364fbe===null)return{'numeric':null,'label':'—'};return{'numeric':_0x364fbe,'label':formatNumber(_0x364fbe,_0x1d6e79,_0x4c5eb4)};}[_0x45b7b8(0xd3e)](_0x262ab,_0x1aac42,_0x500968,_0x5a166e){const _0x535646=_0x45b7b8,_0x39abb6=_0x262ab[_0x535646(0x6fc)];if(!_0x39abb6)return'';const _0xcc7a14=[_0x500968?_0x535646(0x280)+_0x500968:'',_0x5a166e||'']['filter'](Boolean)[_0x535646(0xcdc)](';'),_0x11fa14=_0xcc7a14?_0x535646(0x3e0)+escapeHtml(_0xcc7a14)+'\x22':'',_0x575298=(_0x262ab['entity']||_0x262ab[_0x535646(0x527)])+'__'+_0x1aac42,_0x28cd0c=this['_graphData']?.[_0x535646(0x134)]?.['find'](_0x57440c=>_0x57440c['entity']===_0x262ab||_0x57440c['id']===_0x575298||_0x57440c['id']===(_0x262ab[_0x535646(0x9ac)]||_0x262ab[_0x535646(0x527)]));if(!_0x28cd0c)return'';if(_0x39abb6===_0x535646(0x11c)){const _0xf35fa2=this[_0x535646(0x9b6)]?.['chart_mode'];if(![_0x535646(0x700),_0x535646(0xa93),_0x535646(0x17e)][_0x535646(0x615)](_0xf35fa2))return'';const _0x11e8b0=_0xf35fa2===_0x535646(0xa93)?toNum(this[_0x535646(0x9b6)]?.[_0x535646(0x955)]):null,_0x180eb4=_0x408076=>!isNum(_0x11e8b0)||Math[_0x535646(0x533)](_0x408076)>=_0x11e8b0;let _0x288d4a=0x0;for(const _0x2d5135 of this[_0x535646(0x550)]?.[_0x535646(0x134)]||[]){const _0x14c637=_0x2d5135['entity'];if(!_0x14c637)continue;const _0x25e34b=this[_0x535646(0x4bc)](_0x2d5135,_0x14c637);if(!_0x180eb4(_0x25e34b))continue;_0x288d4a+=Math[_0x535646(0x533)](_0x25e34b);}const _0x332f4f=this[_0x535646(0x4bc)](_0x28cd0c,_0x262ab);if(!_0x180eb4(_0x332f4f)||!(_0x288d4a>0x0))return'';const _0x5f3e0b=Math['abs'](_0x332f4f)/_0x288d4a*0x64,_0x3dfdd8=toNum(_0x262ab[_0x535646(0x790)])??0x1;return _0x535646(0x72d)+_0x11fa14+'>'+escapeHtml(_0x5f3e0b['toFixed'](_0x3dfdd8))+_0x535646(0xd51);}if(!_0x28cd0c[_0x535646(0x951)])return'';const _0x33dc94=_0x39abb6===_0x535646(0x10b)?_0x535646(0x7f0):_0x39abb6,_0x136ae3=_0x28cd0c[_0x535646(0x951)][_0x33dc94];if(!isNum(_0x136ae3))return'';const _0x55130c=_0x39abb6[_0x535646(0xc6e)]();return _0x535646(0x72d)+_0x11fa14+_0x535646(0x799)+escapeHtml(_0x55130c)+_0x535646(0xd45)+escapeHtml(formatNumber(_0x136ae3,_0x262ab,this[_0x535646(0xb79)]))+_0x535646(0xd45);}[_0x45b7b8(0x4bc)](_0x2f48c0,_0x4216e3){const _0x4256d6=_0x45b7b8,_0x31a298=(_0x2f48c0[_0x4256d6(0xaf8)]||[])[_0x4256d6(0xbb6)](_0x1d3761=>_0x1d3761['v']!==null&&_0x1d3761['v']!==undefined),_0x34a3d4=this['_config']?.[_0x4256d6(0x5f9)]===_0x4256d6(0xa93)?_0x4256d6(0x7f0):_0x4256d6(0x503),_0x3ddb3d=_0x4216e3[_0x4256d6(0x234)]||_0x34a3d4;let _0x3a4b50;if(_0x31a298[_0x4256d6(0x230)]){if(_0x3ddb3d===_0x4256d6(0x350))_0x3a4b50=_0x31a298[0x0]['v'];else{if(_0x3ddb3d===_0x4256d6(0xc7f)||_0x3ddb3d===_0x4256d6(0x68e)||_0x3ddb3d===_0x4256d6(0x6dc))_0x3a4b50=_0x31a298['reduce']((_0x11d993,_0x195403)=>_0x11d993+(_0x195403['v']||0x0),0x0);else{if(_0x3ddb3d==='min')_0x3a4b50=_0x31a298[_0x4256d6(0x505)]((_0x471617,_0x433736)=>Math[_0x4256d6(0xd2f)](_0x471617,_0x433736['v']),Infinity);else{if(_0x3ddb3d==='max')_0x3a4b50=_0x31a298[_0x4256d6(0x505)]((_0x3f43b6,_0x50de37)=>Math[_0x4256d6(0xc78)](_0x3f43b6,_0x50de37['v']),-Infinity);else{if(_0x3ddb3d===_0x4256d6(0xb0f))_0x3a4b50=DataProcessor['_aggregate'](_0x31a298[_0x4256d6(0x963)](_0x5b4f0d=>_0x5b4f0d['v']),'median');else{if(_0x3ddb3d===_0x4256d6(0x7f0)||_0x3ddb3d===_0x4256d6(0x10b))_0x3a4b50=_0x31a298[_0x4256d6(0x505)]((_0x1af156,_0x238604)=>_0x1af156+(_0x238604['v']||0x0),0x0)/_0x31a298[_0x4256d6(0x230)];else _0x3a4b50=_0x31a298[_0x31a298[_0x4256d6(0x230)]-0x1]['v'];}}}}}}else{const _0xb41d92=this[_0x4256d6(0xb79)]?.[_0x4256d6(0x81a)]?.[_0x4216e3['entity']];_0x3a4b50=_0xb41d92?parseFloat(_0xb41d92[_0x4256d6(0x992)]):0x0;}if(_0x3a4b50===undefined||_0x3a4b50===null||isNaN(_0x3a4b50))_0x3a4b50=0x0;return _0x3a4b50;}[_0x45b7b8(0x7e3)](_0x5297bd,_0x49b2e9,_0x40991d,_0x3b2300){const _0x21dafb=_0x45b7b8;if(!_0x5297bd)return null;if(_0x5297bd!==_0x21dafb(0x7e5))return _0x5297bd;const _0x19a0ec=_0x49b2e9[_0x21dafb(0x9a9)];if(!_0x19a0ec?.[_0x21dafb(0x46d)]||!Array[_0x21dafb(0x1d7)](_0x19a0ec[_0x21dafb(0x5e7)])||!_0x19a0ec['values'][_0x21dafb(0x230)])return _0x3b2300||null;if(!isNum(_0x40991d))return _0x3b2300||null;return resolveValueColor(_0x40991d,_0x19a0ec[_0x21dafb(0x5e7)],_0x3b2300||'#888');}}class StatisticsGraphChartCardEditor extends HTMLElement{[_0x45b7b8(0x430)](_0x348705){const _0xd351b8=_0x45b7b8;return cardT(this[_0xd351b8(0xb79)],this['_config'],_0x348705);}constructor(){const _0x439ad6=_0x45b7b8;super(),this[_0x439ad6(0xc35)]({'mode':'open'}),this[_0x439ad6(0xb79)]=null,this[_0x439ad6(0x9b6)]={},this[_0x439ad6(0x97d)]={},this['_initialRender']=!![],this['_openPanels']=new Set(['entities']),this[_0x439ad6(0x665)]=null,this[_0x439ad6(0x62a)]={},this['_mainTab']=this[_0x439ad6(0x6b6)]||_0x439ad6(0x8b4),this[_0x439ad6(0x4b7)]=new Map(),this[_0x439ad6(0x5fa)]=[];}set['hass'](_0x155218){const _0x36d0c1=_0x45b7b8,_0xfc8473=this['_hass'];this[_0x36d0c1(0xb79)]=_0x155218;if(_0x155218&&_0x155218[_0x36d0c1(0x100)])this[_0x36d0c1(0x582)]();const _0x4a65d0=this[_0x36d0c1(0x9b6)]&&Object[_0x36d0c1(0xc71)](this[_0x36d0c1(0x9b6)])[_0x36d0c1(0x230)],_0x57e18c=_0x155218?Object[_0x36d0c1(0xc71)](_0x155218['states']||{})[_0x36d0c1(0xa8e)]()[_0x36d0c1(0xcdc)](','):'',_0x33d0de=this[_0x36d0c1(0xcb7)]!==undefined?this['_edStatesSig']:_0xfc8473?Object[_0x36d0c1(0xc71)](_0xfc8473['states']||{})[_0x36d0c1(0xa8e)]()['join'](','):undefined;if(_0x155218)this[_0x36d0c1(0xcb7)]=_0x57e18c;const _0x3433d1=resolveCardLanguage(_0x155218,this[_0x36d0c1(0x9b6)]);if(_0x4a65d0&&_0x155218&&this[_0x36d0c1(0x828)]!==undefined&&this[_0x36d0c1(0x828)]!==_0x3433d1){this[_0x36d0c1(0x656)]();return;}if(!_0xfc8473&&_0x155218&&_0x4a65d0)this[_0x36d0c1(0x656)]();else{if(_0xfc8473&&_0x155218){if(_0x33d0de!==_0x57e18c&&_0x4a65d0)this[_0x36d0c1(0x656)]();}}}[_0x45b7b8(0x179)](){const _0x173efd=_0x45b7b8;for(const _0x6656b1 of this[_0x173efd(0x5fa)]){try{_0x6656b1();}catch(_0x11d2dc){}}this[_0x173efd(0x5fa)]=[],this[_0x173efd(0x33f)]=null;}['_editorTplKey'](_0x4284d4,_0x1c9594){return _0x1c9594&&typeof _0x4284d4==='string'&&/\bentity\b/['test'](_0x4284d4)?_0x4284d4+'\u0000'+_0x1c9594:_0x4284d4;}['_resolveEditorColor'](_0x6da275,_0x28edae){const _0x4bd746=_0x45b7b8;if(!_0x6da275||typeof _0x6da275!==_0x4bd746(0x5ea)||!_0x6da275[_0x4bd746(0x615)]('{{'))return _0x6da275;return this[_0x4bd746(0x4b7)][_0x4bd746(0x809)](this[_0x4bd746(0xb5b)](_0x6da275,_0x28edae||null))||null;}[_0x45b7b8(0x582)](){const _0x1960c6=_0x45b7b8,_0x39e174=new Map();for(const _0x415b69 of this[_0x1960c6(0x461)]||[]){if(typeof _0x415b69[_0x1960c6(0xacd)]==='string'&&_0x415b69['color']['includes']('{{')){const _0x53acec=_0x415b69[_0x1960c6(0x9ac)]||null,_0x4e63e6=this['_editorTplKey'](_0x415b69[_0x1960c6(0xacd)],_0x53acec);if(!_0x39e174[_0x1960c6(0xd4f)](_0x4e63e6))_0x39e174['set'](_0x4e63e6,{'template':_0x415b69[_0x1960c6(0xacd)],'entId':_0x4e63e6===_0x415b69['color']?null:_0x53acec});}}const _0x17d7b4=[..._0x39e174[_0x1960c6(0xc71)]()][_0x1960c6(0xa8e)]()[_0x1960c6(0xcdc)]('|');if(_0x17d7b4===this[_0x1960c6(0x33f)])return;this[_0x1960c6(0x33f)]=_0x17d7b4;for(const _0x28af21 of this[_0x1960c6(0x5fa)]){try{_0x28af21();}catch(_0x583db7){}}this[_0x1960c6(0x5fa)]=[];if(!_0x39e174[_0x1960c6(0x948)])return;for(const [_0x55653e,_0x5ecb0a]of _0x39e174){try{const _0x16aa93=this[_0x1960c6(0xb79)]['connection'][_0x1960c6(0xab7)](_0x1511fa=>{const _0x5753c6=_0x1960c6,_0x52dc73=normalizeTemplateResult(_0x1511fa?.['result']);if(!_0x52dc73)return;const _0x10453a=this['_resolvedColors']['get'](_0x55653e);if(_0x10453a===_0x52dc73)return;this[_0x5753c6(0x4b7)][_0x5753c6(0x4f1)](_0x55653e,_0x52dc73),this[_0x5753c6(0x4ad)]?.[_0x5753c6(0x506)](_0x5753c6(0x673))[_0x5753c6(0x1ce)](_0x262d03=>{const _0x3c764b=_0x5753c6,_0x741e51=parseInt(_0x262d03[_0x3c764b(0xbb)]['index'],0xa),_0x4c383d=this[_0x3c764b(0x461)][_0x741e51];if(_0x4c383d?.['color']===_0x5ecb0a[_0x3c764b(0x2f7)]&&(!_0x5ecb0a[_0x3c764b(0xa32)]||_0x4c383d[_0x3c764b(0x9ac)]===_0x5ecb0a[_0x3c764b(0xa32)])){const _0x30cc01=_0x262d03[_0x3c764b(0x845)](_0x3c764b(0xac8));if(_0x30cc01)_0x30cc01[_0x3c764b(0x538)]['background']=_0x52dc73;}});},_0x5ecb0a[_0x1960c6(0xa32)]?{'type':_0x1960c6(0x4b9),'template':_0x5ecb0a[_0x1960c6(0x2f7)],'variables':{'entity':_0x5ecb0a[_0x1960c6(0xa32)]}}:{'type':_0x1960c6(0x4b9),'template':_0x5ecb0a[_0x1960c6(0x2f7)]});_0x16aa93[_0x1960c6(0x404)](_0x4959e5=>{const _0x2d4bef=_0x1960c6;if(!this[_0x2d4bef(0x49b)]){try{_0x4959e5();}catch(_0x194150){}return;}this['_colorUnsubs'][_0x2d4bef(0x9f2)](_0x4959e5);})[_0x1960c6(0x32c)](()=>{});}catch(_0x23610a){}}}[_0x45b7b8(0xd64)](_0x431ae9){const _0x5ab219=_0x45b7b8;this[_0x5ab219(0x9b6)]=structuredClone(_0x431ae9||{}),this[_0x5ab219(0x97d)]=structuredClone(_0x431ae9||{});if(!this[_0x5ab219(0x97d)][_0x5ab219(0x82b)])this[_0x5ab219(0x97d)][_0x5ab219(0x82b)]=[];this[_0x5ab219(0x33f)]=null;if(this['_hass']?.[_0x5ab219(0x100)])this[_0x5ab219(0x582)]();this[_0x5ab219(0x656)]();}get['_entities'](){const _0x55f670=_0x45b7b8;return Array[_0x55f670(0x1d7)](this[_0x55f670(0x97d)][_0x55f670(0x82b)])?this['_tmp'][_0x55f670(0x82b)]:[];}[_0x45b7b8(0x7d0)](){const _0x558991=_0x45b7b8;if(!this[_0x558991(0xb79)])return[];const _0x5c8c33=new Set((this[_0x558991(0x461)]||[])[_0x558991(0x963)](_0x314070=>_0x314070?.[_0x558991(0x9ac)])['filter'](Boolean));return Object[_0x558991(0xc71)](this[_0x558991(0xb79)]['states']||{})['filter'](_0x5210af=>{const _0x211b0e=_0x558991;if(_0x5c8c33[_0x211b0e(0xd4f)](_0x5210af))return!![];const _0x4a2d2f=this[_0x211b0e(0xb79)][_0x211b0e(0x81a)][_0x5210af];if(!_0x4a2d2f)return![];if(!isNaN(parseFloat(_0x4a2d2f[_0x211b0e(0x992)])))return!![];if(_0x5210af[_0x211b0e(0x6a3)]('sensor.')||_0x5210af[_0x211b0e(0x6a3)]('number.')||_0x5210af[_0x211b0e(0x6a3)]('input_number.'))return!![];const _0x21ed7e=_0x4a2d2f['attributes']||{};for(const _0x365f79 in _0x21ed7e){if(_0x365f79===_0x211b0e(0xc8b)||_0x365f79===_0x211b0e(0x3e7)||_0x365f79===_0x211b0e(0x96c)||_0x365f79===_0x211b0e(0x73f))continue;if(typeof _0x21ed7e[_0x365f79]===_0x211b0e(0xc7))return!![];}return![];})[_0x558991(0xa8e)]();}['_render'](){const _0x739150=_0x45b7b8;this[_0x739150(0x828)]=resolveCardLanguage(this[_0x739150(0xb79)],this[_0x739150(0x9b6)]);const _0x2c60de=this[_0x739150(0x4ad)][_0x739150(0xaec)],_0x4f4097=_0x2c60de?.['selectionStart']!==void 0x0?{'path':this[_0x739150(0x3dc)](_0x2c60de),'ss':_0x2c60de['selectionStart'],'se':_0x2c60de[_0x739150(0x8c8)]}:null,_0x2c1805=this[_0x739150(0x97d)],_0x53a481=getComputedStyle(document[_0x739150(0xc01)])[_0x739150(0x2db)](_0x739150(0x5d3))[_0x739150(0x28f)]()||'Roboto,\x20sans-serif',_0x1b7563=(_0x215b9b,_0x2b2167,_0x49469d=null)=>''+escapeHtml(String(_0x49469d??_0x215b9b))+_0x739150(0xc4a),_0x436f83=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c],_0x10ae5a=(_0x1260fa,_0x76aa2)=>{const _0x873773=_0x739150,_0x57c2d4=_0x1260fa===undefined||_0x1260fa===null||_0x1260fa===''?'':String(_0x1260fa),_0x5dccf6=_0x436f83[_0x873773(0x376)]();return _0x57c2d4!==''&&!_0x5dccf6[_0x873773(0x963)](String)[_0x873773(0x615)](_0x57c2d4)&&isFinite(Number(_0x57c2d4))&&(_0x5dccf6[_0x873773(0x9f2)](Number(_0x57c2d4)),_0x5dccf6['sort']((_0x38a7fb,_0xbd4043)=>_0x38a7fb-_0xbd4043)),(_0x76aa2?_0x873773(0x8ec)+(_0x57c2d4===''?_0x873773(0x9bf):'')+'>'+this[_0x873773(0x430)](_0x873773(0x1fc))+'':'')+_0x5dccf6[_0x873773(0x963)](_0x2d1a57=>_0x1b7563(_0x2d1a57,_0x57c2d4))[_0x873773(0xcdc)]('');},_0x4f2eb1=(_0x56c416,_0x27cd5c)=>_0x56c416===0x0||_0x56c416?_0x56c416:_0x27cd5c,_0x19f86b=_0x2625ea=>_0x739150(0x2da)+this[_0x739150(0x430)](_0x2625ea)+_0x739150(0xcbe),_0x1f41ce=(_0x36d37e,_0x1b8394)=>{const _0x5139ed=_0x739150,_0x72d85c=this['_coerceColor'](_0x1b8394),_0x3f01b3=typeof _0x1b8394===_0x5139ed(0x5ea)&&_0x1b8394[_0x5139ed(0x615)]('{{');return'';},_0x32f117=_0x2c1805[_0x739150(0x5f9)]||_0x739150(0x3c0),_0xb11d81=_0x32f117===_0x739150(0x3c0),_0x12ffd8=_0x32f117==='scatter',_0x2fd314=_0xb11d81||_0x12ffd8,_0x34a637=[_0x739150(0x700),_0x739150(0x47f),_0x739150(0x17e)][_0x739150(0x615)](_0x32f117),_0xf45774=_0x32f117===_0x739150(0x95c),_0x105fa6=[_0x739150(0xcc7),_0x739150(0x5f5)][_0x739150(0x615)](_0x32f117),_0x195957=!!_0x2c1805[_0x739150(0x71c)]&&_0xb11d81,_0xf3485f=(this[_0x739150(0x461)]||[])[_0x739150(0x870)](_0xe031ab=>(_0xe031ab?.[_0x739150(0xb02)]||_0xe031ab?.[_0x739150(0x33b)])===_0x739150(0x4f3)),_0x297aa8=((()=>{const _0x34d1cc=_0x739150;let _0x5cff74=this[_0x34d1cc(0x6b6)]||_0x34d1cc(0x8b4);if(_0x5cff74==='data')_0x5cff74=_0x34d1cc(0x8b4);if(_0x5cff74===_0x34d1cc(0x172))_0x5cff74=_0x34d1cc(0x24d);const _0xe51ea0={'display':!![],'card_style':!_0x195957,'overlay':!_0x195957,'xaxis':(_0x2fd314||_0x105fa6||_0x32f117===_0x34d1cc(0x622))&&!_0x195957,'yaxis':(_0x2fd314||_0x105fa6)&&!_0x195957,'calendar':!_0x195957};if(!_0xe51ea0[_0x5cff74])_0x5cff74='display';return _0x5cff74;})()),_0x21a4fe=_0x739150(0x762)+(this['_openPanels'][_0x739150(0xd4f)](_0x739150(0xc60))?'open':'')+_0x739150(0xa67)+this[_0x739150(0x430)]('General\x20Settings')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this['_eT'](_0x739150(0xa2d))+_0x739150(0x969)+(_0x297aa8===_0x739150(0x8b4)?_0x739150(0xc37):'')+_0x739150(0x72a)+this[_0x739150(0x430)](_0x739150(0x9fd))+'\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'+(!_0x195957?''+this[_0x739150(0x430)]('Overlay')+'':'')+_0x739150(0x90c)+((_0x2fd314||_0x105fa6||_0x32f117===_0x739150(0x622))&&!_0x195957?_0x739150(0x2fa)+(_0x297aa8===_0x739150(0x450)?_0x739150(0xc37):'')+'\x22\x20data-mtab=\x22xaxis\x22>'+this[_0x739150(0x430)](_0x739150(0x5a8))+'':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+((_0x2fd314||_0x105fa6)&&!_0x195957?''+this[_0x739150(0x430)]('Y\x20Axis')+_0x739150(0xb20):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x195957?_0x739150(0x2fa)+(_0x297aa8===_0x739150(0x5f5)?'active':'')+_0x739150(0xbe2)+this[_0x739150(0x430)](_0x739150(0x543))+_0x739150(0xb20):'')+_0x739150(0x734)+(_0x297aa8==='card_style'?_0x739150(0xc37):'')+_0x739150(0x68d)+(!_0x195957?_0x739150(0xa29)+this[_0x739150(0x430)](_0x739150(0x5af))+_0x739150(0x109)+this[_0x739150(0x430)](_0x739150(0xac))+'\x20'+_0x19f86b('Title\x20text\x20shown\x20at\x20the\x20top\x20of\x20the\x20card.\x20Leave\x20empty\x20to\x20hide\x20the\x20header\x20row\x20entirely.')+_0x739150(0x402)+this['_eT'](_0x739150(0x433))+'\x22\x20value=\x22'+escapeHtml(_0x2c1805[_0x739150(0xd7a)]??'')+_0x739150(0x4c4)+this[_0x739150(0x430)](_0x739150(0x236))+'\x20'+_0x19f86b(_0x739150(0x45e))+_0x739150(0x3f9)+escapeHtml(_0x2c1805[_0x739150(0x334)]??'')+_0x739150(0x4c4)+this[_0x739150(0x430)](_0x739150(0x64f))+'\x20'+_0x19f86b(_0x739150(0x1c3))+_0x739150(0x5ff)+[_0x739150(0x4f8),_0x739150(0x7e9),_0x739150(0x896)]['map'](_0x21520d=>_0x1b7563(_0x21520d,_0x2c1805[_0x739150(0x5dd)]??'left',this[_0x739150(0x430)](_0x21520d[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x21520d['slice'](0x1))))[_0x739150(0xcdc)]('')+_0x739150(0x85a)+this[_0x739150(0x430)](_0x739150(0xacf))+'\x20'+_0x19f86b('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.')+_0x739150(0xa3b)+[_0x739150(0x39d),_0x739150(0x3ba)]['map'](_0x1328bd=>_0x1b7563(_0x1328bd,_0x2c1805['state_layout']??_0x739150(0x39d),{'default':this[_0x739150(0x430)](_0x739150(0x755)),'horizontal':this['_eT'](_0x739150(0x9c9))}[_0x1328bd]))[_0x739150(0xcdc)]('')+_0x739150(0x78f)+this['_eT'](_0x739150(0x29b))+'\x20'+_0x19f86b(_0x739150(0xee))+_0x739150(0x213)+this[_0x739150(0x430)]('Auto')+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x14a)]??'')+_0x739150(0x6a9)+escapeHtml(this[_0x739150(0x8dd)](_0x2c1805[_0x739150(0x14a)]||_0x739150(0x427)))+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x739150(0x351)+this[_0x739150(0x430)](_0x739150(0xd2b))+'\x20'+_0x19f86b(_0x739150(0x3e4))+_0x739150(0x820)+this[_0x739150(0x430)](_0x739150(0x340))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x19f)]??'')+_0x739150(0xcdf)+this[_0x739150(0x430)](_0x739150(0xadc))+'\x20'+_0x19f86b('URL\x20of\x20an\x20image\x20to\x20use\x20as\x20the\x20card\x20background.\x20Local\x20files\x20(in\x20www/)\x20are\x20accessed\x20under\x20/local/\x20—\x20you\x20can\x20write\x20either\x20/local/sunset.jpg\x20or\x20just\x20sunset.jpg\x20or\x20local/sub/path.jpg.\x20External\x20URLs\x20work\x20too.\x20Image\x20overlays\x20the\x20background\x20color\x20(transparent\x20rgba\x20colors\x20show\x20through).')+'_0x1b7563(_0x7ddf3a,_0x2c1805[_0x739150(0xbe1)]??_0x739150(0x7e9),this[_0x739150(0x430)](_0x7ddf3a[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x7ddf3a[_0x739150(0x376)](0x1))))[_0x739150(0xcdc)]('')+_0x739150(0xcb4):'')+_0x739150(0x2b6)+this[_0x739150(0x430)]('Localization')+_0x739150(0x30d)+this['_eT'](_0x739150(0xa11))+'\x20'+_0x19f86b('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.')+_0x739150(0xac2)+[{'v':'auto','l':this[_0x739150(0x430)](_0x739150(0x393))},...Object[_0x739150(0xc71)](I18N)[_0x739150(0x963)](_0x3522cc=>({'v':_0x3522cc,'l':LANG_NAMES[_0x3522cc]||_0x3522cc}))['sort']((_0x5b61b3,_0x592769)=>_0x5b61b3['l']['localeCompare'](_0x592769['l'])),..._0x2c1805[_0x739150(0x56e)]&&_0x2c1805['language']!==_0x739150(0x917)&&!I18N[_0x2c1805[_0x739150(0x56e)]]?[{'v':_0x2c1805[_0x739150(0x56e)],'l':_0x2c1805[_0x739150(0x56e)]}]:[]]['map'](_0x38038a=>_0x1b7563(_0x38038a['v'],_0x2c1805[_0x739150(0x56e)]??_0x739150(0x917),_0x38038a['l']))[_0x739150(0xcdc)]('')+_0x739150(0x78f)+this[_0x739150(0x430)](_0x739150(0x78e))+'\x20'+_0x19f86b('Which\x20time\x20zone\x20the\x20card\x20uses\x20for\x20axis\x20labels,\x20tooltips,\x20window\x20boundaries\x20(D/W/M/Y,\x20Graph\x20Start,\x20hour\x20caps)\x20and\x20calendar\x20bucketing.\x20Auto\x20=\x20follow\x20the\x20HA\x20Profile\x20>\x20Time\x20zone\x20preference,\x20exactly\x20like\x20native\x20HA\x20graphs\x20-\x20fixes\x20time\x20mismatches\x20when\x20your\x20device\x20is\x20in\x20a\x20different\x20zone\x20than\x20the\x20server\x20(e.g.\x20while\x20traveling).\x20Local\x20=\x20always\x20use\x20the\x20device/browser\x20zone.\x20Server\x20=\x20always\x20use\x20the\x20HA\x20server\x20zone.\x20A\x20custom\x20IANA\x20name\x20like\x20Europe/Istanbul\x20or\x20America/New_York\x20can\x20also\x20be\x20set\x20in\x20YAML.')+_0x739150(0x885)+[{'v':_0x739150(0x917),'l':this[_0x739150(0x430)](_0x739150(0x2ec))},{'v':_0x739150(0x694),'l':this[_0x739150(0x430)]('Local\x20(device)')},{'v':_0x739150(0xcbb),'l':this[_0x739150(0x430)]('Server')},..._0x2c1805[_0x739150(0x540)]&&!['auto',_0x739150(0x694),_0x739150(0xcbb)][_0x739150(0x615)](_0x2c1805[_0x739150(0x540)])?[{'v':_0x2c1805['time_zone'],'l':_0x2c1805[_0x739150(0x540)]}]:[]][_0x739150(0x963)](_0x5312e9=>_0x1b7563(_0x5312e9['v'],_0x2c1805[_0x739150(0x540)]??_0x739150(0x917),_0x5312e9['l']))['join']('')+_0x739150(0x366)+(_0x297aa8==='display'?'active':'')+'\x22\x20data-mtc=\x22display\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+[{'v':'classic','l':this[_0x739150(0x430)](_0x739150(0xb17))},{'v':_0x739150(0x349),'l':this['_eT']('Thick')},{'v':_0x739150(0x466),'l':this[_0x739150(0x430)](_0x739150(0x53d))},{'v':_0x739150(0xabb),'l':this[_0x739150(0x430)]('Thin')}][_0x739150(0x963)](_0x42bc3a=>_0x1b7563(_0x42bc3a['v'],_0x2c1805['pie_style']??'donut',_0x42bc3a['l']))['join']('')+_0x739150(0x78f)+this[_0x739150(0x430)](_0x739150(0xa50))+'\x20'+_0x19f86b('Gap\x20between\x20slices\x20in\x20degrees.\x200\x20=\x20touching.\x201-5\x20=\x20subtle.\x206-15\x20=\x20clearly\x20separated.\x20Spaced\x20slices\x20automatically\x20get\x20rounded\x20ends.\x20Only\x20applies\x20to\x20donut\x20styles\x20(not\x20Classic).')+_0x739150(0x76c)+escapeHtml(_0x2c1805[_0x739150(0x8c1)]??'')+_0x739150(0x215)+(_0x2c1805[_0x739150(0xbc7)]?_0x739150(0x5a9):'')+_0x739150(0x920)+this['_eT'](_0x739150(0xb1f))+'\x20'+_0x19f86b(_0x739150(0x283))+_0x739150(0x368)+this[_0x739150(0x430)](_0x739150(0xc2e))+'\x20'+_0x19f86b(_0x739150(0x6c0))+_0x739150(0xa6f)+this[_0x739150(0x430)](_0x739150(0x340))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x926)]??'')+_0x739150(0x44a)+this['_eT']('Slice\x20Label\x20Color')+'\x20'+_0x19f86b(_0x739150(0x56a))+''+[{'v':_0x739150(0xba7),'l':this[_0x739150(0x430)](_0x739150(0x1a8))},{'v':_0x739150(0x64e),'l':this[_0x739150(0x430)](_0x739150(0x61b))},{'v':_0x739150(0xa6a),'l':this['_eT'](_0x739150(0xc51))}]['map'](_0x53760a=>_0x1b7563(_0x53760a['v'],_0x2c1805['pie_label_format']??_0x739150(0xba7),_0x53760a['l']))[_0x739150(0xcdc)]('')+_0x739150(0xc6a)+this[_0x739150(0x430)]('Center\x20Label\x20Size')+'\x20'+_0x19f86b(_0x739150(0xc84))+_0x739150(0x44d)+this['_eT'](_0x739150(0x340))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x311)]??'')+_0x739150(0x44a)+this['_eT'](_0x739150(0xb69))+'\x20'+_0x19f86b(_0x739150(0x794))+_0x739150(0x2d7)+this[_0x739150(0x430)]('Auto')+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x3a4)]??'')+_0x739150(0x5d9)+escapeHtml(this[_0x739150(0x8dd)](_0x2c1805['pie_center_color']||_0x739150(0x80f)))+_0x739150(0xd5):'')+_0x739150(0x90c)+(_0xf45774?_0x739150(0x13b)+this[_0x739150(0x430)](_0x739150(0xc9c))+'\x20'+_0x19f86b(_0x739150(0x65b))+_0x739150(0xdf)+this['_eT'](_0x739150(0x340))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x633)]??'')+'\x22>'+this['_eT'](_0x739150(0x727))+_0x739150(0x1af):_0x105fa6?_0x739150(0xa28)+this[_0x739150(0x430)]('Labels')+_0x739150(0x30d)+this[_0x739150(0x430)](_0x739150(0xc47))+'\x20'+_0x19f86b(_0x739150(0x5fc))+_0x739150(0x39f)+escapeHtml(_0x2c1805[_0x739150(0xc41)]??'')+'\x22>px':'')+_0x739150(0x842)+(_0x2c1805[_0x739150(0x947)]!==![]?_0x739150(0x5a9):'')+_0x739150(0x920)+this['_eT'](_0x739150(0xc7d))+'\x20'+_0x19f86b(_0x739150(0x3a7))+_0x739150(0x823)+this[_0x739150(0x430)](_0x739150(0x5b2))+'\x20'+_0x19f86b(_0x739150(0x9a5))+'_0x1b7563(_0x4af550,_0x2c1805[_0x739150(0x9e9)]??_0x739150(0x4ca),_0x48a9b9))[_0x739150(0xcdc)]('')+''+((()=>{const _0x4b9d9e=_0x739150,_0x1b3d8a=_0xd2baec=>{const _0x82af01=_0x45ab,_0x518072=_0x2c1805[_0x82af01(0xb42)],_0x3385a2=_0xd2baec['k']in DATE_PICKER_RELATIVE_MODES,_0x27b492=_0x518072?.[_0x82af01(0x230)]?_0x518072[_0x82af01(0x615)](_0xd2baec['k']):!_0x3385a2;return''+this[_0x82af01(0x430)](_0xd2baec['l'])+_0x82af01(0x41e);},_0x5202ce=(_0x687e3d,_0x15984a,_0xd495d0)=>_0x4b9d9e(0x296)+escapeHtml(this['_eT'](_0x687e3d))+_0x4b9d9e(0xd45)+_0x19f86b(_0x15984a)+_0x4b9d9e(0xc93)+_0xd495d0['map'](_0x1b3d8a)[_0x4b9d9e(0xcdc)]('')+_0x4b9d9e(0x1af);return _0x5202ce(_0x4b9d9e(0x607),_0x4b9d9e(0x476),[{'k':_0x4b9d9e(0x962),'l':'D'},{'k':'week','l':'W'},{'k':_0x4b9d9e(0x6e0),'l':'M'},{'k':_0x4b9d9e(0x74c),'l':'Y'}])+_0x5202ce(_0x4b9d9e(0xa7d),_0x4b9d9e(0xa41),Object['entries'](DATE_PICKER_RELATIVE_MODES)['map'](([_0x583d0c,_0x1bacb8])=>({'k':_0x583d0c,'l':_0x1bacb8[_0x4b9d9e(0x96b)]})));})())+'\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\x20\x20\x20\x20_0x1b7563(_0x6ca23d,_0x2c1805[_0x739150(0x3e6)]??_0x739150(0x4f8),this['_eT'](_0x6ca23d[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x6ca23d[_0x739150(0x376)](0x1))))[_0x739150(0xcdc)]('')+_0x739150(0x718)+this[_0x739150(0x430)](_0x739150(0x34b))+_0x739150(0x981)+escapeHtml(_0x2c1805['interval_picker_group']??'')+_0x739150(0x586)+(_0x2c1805[_0x739150(0xacc)]?_0x739150(0x5a9):'')+'>'+this['_eT'](_0x739150(0xa43))+'\x20'+_0x19f86b(_0x739150(0xa30))+_0x739150(0x87a)+(_0x2c1805[_0x739150(0xacc)]?'':'\x20off')+_0x739150(0xc7b)+[_0x739150(0x4f8),_0x739150(0x7e9),'right'][_0x739150(0x963)](_0x4d237e=>_0x1b7563(_0x4d237e,_0x2c1805['attribute_list_position']??_0x739150(0x4f8),this[_0x739150(0x430)](_0x4d237e[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x4d237e[_0x739150(0x376)](0x1))))[_0x739150(0xcdc)]('')+_0x739150(0xb48)+(_0x2c1805[_0x739150(0xa04)]?'checked':'')+_0x739150(0x920)+this[_0x739150(0x430)](_0x739150(0x787))+'\x20'+_0x19f86b(_0x739150(0x35a))+_0x739150(0x87a)+(_0x2c1805[_0x739150(0xa04)]?'':'\x20off')+_0x739150(0x5bf)+['left',_0x739150(0x7e9),_0x739150(0x896)][_0x739150(0x963)](_0x414196=>_0x1b7563(_0x414196,_0x2c1805['pph_picker_position']??'left',this[_0x739150(0x430)](_0x414196[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x414196[_0x739150(0x376)](0x1))))[_0x739150(0xcdc)]('')+_0x739150(0x4bd)+this[_0x739150(0x430)](_0x739150(0x34b))+_0x739150(0x981)+escapeHtml(_0x2c1805['pph_picker_group']??'')+_0x739150(0xcb0)+(_0x2c1805[_0x739150(0x94a)]?'checked':'')+'>'+this[_0x739150(0x430)]('Group\x20By\x20Picker')+'\x20'+_0x19f86b(_0x739150(0xbe9))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_0x1b7563(_0x4a757b,_0x2c1805['group_by_picker_position']??_0x739150(0x4f8),this['_eT'](_0x4a757b[_0x739150(0x23b)](0x0)[_0x739150(0xc6e)]()+_0x4a757b[_0x739150(0x376)](0x1))))[_0x739150(0xcdc)]('')+'':'')+_0x739150(0x3aa)+(_0x32f117==='ranking'?_0x739150(0xd00)+(_0x2c1805[_0x739150(0x443)]!==![]?_0x739150(0x5a9):'')+_0x739150(0x920)+this[_0x739150(0x430)](_0x739150(0xa99))+'\x20'+_0x19f86b(_0x739150(0x6e7))+_0x739150(0x41e):'')+_0x739150(0x3aa)+(_0x32f117===_0x739150(0x238)?''+this[_0x739150(0x430)]('Zoom\x20Sync')+'\x20'+_0x19f86b(_0x739150(0xa05))+_0x739150(0x87a)+(_0x2c1805[_0x739150(0x34e)]?'':_0x739150(0xc09))+_0x739150(0xcb6)+this[_0x739150(0x430)](_0x739150(0x5ad))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0x79c)]??'')+_0x739150(0xd65):'')+_0x739150(0x3aa)+(_0xb11d81?_0x739150(0xbd1)+(_0x2c1805['scroll_sync']?'checked':'')+_0x739150(0x920)+this[_0x739150(0x430)](_0x739150(0x565))+'\x20'+_0x19f86b(_0x739150(0xbf1))+_0x739150(0x87a)+(_0x2c1805['scroll_sync']?'':_0x739150(0xc09))+'\x22>'+['1H','2H','4H','8H','12H',_0x739150(0x661),'3D','7D','14D',_0x739150(0x399),_0x739150(0x7fd),'6M','1Y'][_0x739150(0x963)](_0x31468c=>{const _0xc2311a=_0x739150,_0x2ba5b5=_0x2c1805[_0xc2311a(0x18d)],_0x2bb75c=['1H','2H','4H','8H',_0xc2311a(0x178),_0xc2311a(0x661),'7D'],_0x4ad0ce=_0x2ba5b5&&Array[_0xc2311a(0x1d7)](_0x2ba5b5)&&_0x2ba5b5[_0xc2311a(0x230)]?_0x2ba5b5['includes'](_0x31468c):_0x2bb75c[_0xc2311a(0x615)](_0x31468c);return _0xc2311a(0x396)+_0x31468c+'\x22\x20'+(_0x4ad0ce?_0xc2311a(0x5a9):'')+_0xc2311a(0x59c)+_0x31468c+_0xc2311a(0x41e);})[_0x739150(0xcdc)]('')+_0x739150(0x1af):'')+_0x739150(0x577):_0x739150(0x93b)+this[_0x739150(0x430)](_0x739150(0x765))+_0x739150(0x1af))+_0x739150(0x3af)+(_0x2fd314&&!_0x195957?_0x739150(0xa28)+this['_eT'](_0x739150(0xaf0))+_0x739150(0x771)+(_0xf3485f?_0x739150(0x412)+(_0x2c1805[_0x739150(0x92e)]?'checked':'')+_0x739150(0x920)+this[_0x739150(0x430)](_0x739150(0xab1))+'\x20'+_0x19f86b(_0x739150(0x8b3))+_0x739150(0x41e)+(_0x2c1805['period_highlight']?_0x739150(0x9d6)+this[_0x739150(0x430)](_0x739150(0x340))+_0x739150(0x981)+escapeHtml(_0x2c1805[_0x739150(0xbab)]??'')+_0x739150(0x436)+escapeHtml(this[_0x739150(0x8dd)](_0x2c1805['period_highlight_color']||_0x739150(0x679)))+_0x739150(0xa10):''):'')+_0x739150(0x1d0)+(_0x2c1805[_0x739150(0x1be)]!==![]?_0x739150(0x5a9):'')+'>'+this['_eT']('Tooltip')+'\x20'+_0x19f86b(_0x739150(0x7a7))+_0x739150(0x41e)+(_0x2c1805[_0x739150(0x1be)]!==![]?_0x739150(0xd00)+(_0x2c1805[_0x739150(0x443)]!==![]?_0x739150(0x5a9):'')+_0x739150(0x920)+this['_eT'](_0x739150(0x4e2))+'\x20'+_0x19f86b(_0x739150(0xbee))+_0x739150(0x41e)+(_0x2c1805[_0x739150(0x974)]?_0x739150(0x125)+(_0x2c1805[_0x739150(0x95a)]!==![]?_0x739150(0x5a9):'')+_0x739150(0x920)+this[_0x739150(0x430)]('Stacked\x20Group\x20Totals')+'\x20'+_0x19f86b(_0x739150(0x7bb))+_0x739150(0x41e):''):'')+(_0xb11d81&&_0x2c1805[_0x739150(0x1be)]!==![]?''+this[_0x739150(0x430)](_0x739150(0xa08))+'\x20'+_0x19f86b(_0x739150(0x534))+_0x739150(0x41e):'')+(_0xb11d81&&_0x2c1805['show_tooltip']!==![]?_0x739150(0x936)+(_0x2c1805['tooltip_sync']?_0x739150(0x5a9):'')+_0x739150(0x920)+this['_eT'](_0x739150(0x147))+'\x20'+_0x19f86b(_0x739150(0xccd))+'_0x1b7563(_0x18e756,_0x2c1805[_0x739150(0x84d)]??'default',_0x26ad17))['join']('')+_0x739150(0xcb4):'')+'':'')+_0x739150(0x3af)+(!_0x195957?_0x739150(0xa29)+this[_0x739150(0x430)](_0x739150(0x4d4))+_0x739150(0x30d)+this[_0x739150(0x430)](_0x739150(0x418))+'\x20'+_0x19f86b('Entity\x20that\x20reports\x20battery\x20level\x20(0–100%).\x20Displays\x20a\x20battery\x20icon\x20with\x20level\x20and\x20percentage\x20in\x20the\x20top-right\x20corner\x20of\x20the\x20card\x20header\x20—\x20or\x20at\x20the\x20top-right\x20of\x20the\x20card\x20when\x20there\x20is\x20no\x20header.\x20Only\x20entities\x20with\x20device_class\x20battery\x20are\x20listed.\x20Leave\x20empty\x20to\x20hide.')+'':'')+_0x273e36(0xd26)+this['_eT'](_0x273e36(0xd60))+'\x20'+_0x19f86b(_0x273e36(0x1a1))+_0x273e36(0x154)+escapeHtml(_0x2d168[_0x273e36(0xbf)]??'')+'\x22\x20'+(_0x3733b8?'':'disabled')+_0x273e36(0xb04)+this['_eT'](_0x273e36(0x1d8))+'\x20'+_0x19f86b(_0x273e36(0x325))+''+this['_eT'](_0x273e36(0xcf0))+'\x20'+_0x19f86b(_0x273e36(0x12b))+_0x273e36(0x114)+(_0x36849e?.[_0x273e36(0x46d)]?_0x273e36(0x5a9):'')+'\x20'+(_0x554ff5?.[_0x273e36(0x46d)]?_0x273e36(0x553):'')+_0x273e36(0x77f)+(_0x554ff5?.[_0x273e36(0x46d)]?_0x273e36(0x5ed)+this[_0x273e36(0x430)](_0x273e36(0x6eb))+_0x273e36(0x31c):'')+_0x273e36(0x4e5)+(!_0x36849e?.[_0x273e36(0x46d)]||_0x554ff5?.[_0x273e36(0x46d)]?_0x273e36(0x2fe):'')+_0x273e36(0xb54)+this['_eT'](_0x273e36(0x61d))+'\x20'+_0x19f86b(_0x273e36(0x817))+_0x273e36(0x2b9)+_0x1b7563(_0x273e36(0x933),_0x36849e?.[_0x273e36(0x7ce)]??_0x273e36(0x933),this[_0x273e36(0x430)](_0x273e36(0x168)))+_0x1b7563(_0x273e36(0x3ba),_0x36849e?.[_0x273e36(0x7ce)]??_0x273e36(0x933),this[_0x273e36(0x430)](_0x273e36(0x9c9)))+''+(_0x45ed2c||_0x273e36(0xb09)+this['_eT'](_0x273e36(0xbc6))+'')+_0x273e36(0xbc1)+(_0x554ff5?.[_0x273e36(0x46d)]?'disabled':'')+'>'+this[_0x273e36(0x430)]('Add\x20Threshold')+'Set\x20entity\x20color\x20to\x20threshold\x20to\x20propagate\x20threshold\x20colors\x20to\x20state\x20row\x20elements.':'')+'\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';})[_0x739150(0xcdc)](''),_0x3ceb85=_0x739150(0x762)+(this[_0x739150(0xb03)]['has'](_0x739150(0x82b))?'open':'')+_0x739150(0x246)+this[_0x739150(0x430)](_0x739150(0x6ea))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x739150(0x461)][_0x739150(0x230)]+'\x20'+this[_0x739150(0x430)](_0x739150(0xaaf))+_0x739150(0xb19)+_0x394819+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c1805[_0x739150(0x5f9)]===_0x739150(0x75f)&&this['_entities']['length']>=0x2||_0x2c1805['chart_mode']===_0x739150(0xcc7)&&this[_0x739150(0x461)][_0x739150(0x230)]>=0x1||_0x2c1805[_0x739150(0x5f9)]===_0x739150(0x5f5)&&this[_0x739150(0x461)][_0x739150(0x230)]>=0x1?'':_0x739150(0xf2)+this[_0x739150(0x430)]('Add\x20Entity')+_0x739150(0xb20))+_0x739150(0x30a),_0x20b9aa='