Files
HomeAssistantVS/www/community/Statistics-Graph-Chart-Card/statistics-graph-chart-card.js
T

2 lines
1.3 MiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const _0x46af5e=_0xa914;(function(_0x82350b,_0x4c2f07){const _0x554710=_0xa914,_0x49c245=_0x82350b();while(!![]){try{const _0x49a917=-parseInt(_0x554710(0x629))/0x1*(-parseInt(_0x554710(0x1a2))/0x2)+parseInt(_0x554710(0xbf3))/0x3+-parseInt(_0x554710(0x426))/0x4*(parseInt(_0x554710(0xced))/0x5)+parseInt(_0x554710(0x7a3))/0x6+-parseInt(_0x554710(0xf6a))/0x7+parseInt(_0x554710(0xcaa))/0x8+-parseInt(_0x554710(0x775))/0x9*(parseInt(_0x554710(0xd19))/0xa);if(_0x49a917===_0x4c2f07)break;else _0x49c245['push'](_0x49c245['shift']());}catch(_0x41cc7b){_0x49c245['push'](_0x49c245['shift']());}}}(_0x5469,0x9a92d));const VERSION=_0x46af5e(0x2b7),INTERVAL_PICKER_OPTIONS=Object[_0x46af5e(0xe00)]([{'hours':0x1,'label':'1H'},{'hours':0x2,'label':'2H'},{'hours':0x4,'label':'4H'},{'hours':0x8,'label':'8H'},{'hours':0xc,'label':'12H'},{'hours':0x18,'label':_0x46af5e(0xf0e)},{'hours':0x48,'label':'3D'},{'hours':0xa8,'label':'7D'},{'hours':0x150,'label':_0x46af5e(0x61f)},{'hours':0x2d0,'label':_0x46af5e(0xbad)},{'hours':0x870,'label':_0x46af5e(0xd7e)},{'hours':0x10e0,'label':'6M'},{'hours':0x2238,'label':'1Y'}]);function intervalLabelForHours(_0x18443a){const _0x247c03=_0x46af5e;if(!isNum(_0x18443a)||_0x18443a<=0x0)return'';const _0x2b3293=INTERVAL_PICKER_OPTIONS[_0x247c03(0x90c)](_0x4e80b8=>_0x4e80b8['hours']===_0x18443a);if(_0x2b3293)return _0x2b3293['label'];if(_0x18443a<0x1)return Math['round'](_0x18443a*0x3c)+'M';if(_0x18443a<0x30)return(Number['isInteger'](_0x18443a)?_0x18443a:Math['round'](_0x18443a*0xa)/0xa)+'H';const _0x19b924=_0x18443a/0x18;return(Number[_0x247c03(0x7e9)](_0x19b924)?_0x19b924:Math[_0x247c03(0x686)](_0x19b924*0xa)/0xa)+'D';}function intervalHoursForLabel(_0x33893e){const _0x26395d=_0x46af5e;if(!_0x33893e||typeof _0x33893e!==_0x26395d(0xade))return null;const _0xc524f7=INTERVAL_PICKER_OPTIONS['find'](_0x30798c=>_0x30798c[_0x26395d(0xf1f)]===_0x33893e[_0x26395d(0xa11)]());return _0xc524f7?_0xc524f7['hours']:null;}const INTERVAL_PICKER_DEFAULT_LABELS=Object['freeze'](['1H','2H','4H','8H',_0x46af5e(0x842),_0x46af5e(0xf0e),'7D']),DATE_PICKER_VALID_MODES=Object[_0x46af5e(0xe00)]([_0x46af5e(0x309),_0x46af5e(0x6f1),_0x46af5e(0xe7d),'year']),CONTROLLER_DATE_PICKER_MODES=Object[_0x46af5e(0xe00)]([...DATE_PICKER_VALID_MODES,'last_1h','last_6h',_0x46af5e(0x606),_0x46af5e(0xf3d),'last_7d',_0x46af5e(0x239)]),DATE_PICKER_RELATIVE_MODES=Object['freeze']({'last_1h':{'hours':0x1,'label':'Last\x201\x20hour','btn':'1H'},'last_6h':{'hours':0x6,'label':'Last\x206\x20hours','btn':'6H'},'last_12h':{'hours':0xc,'label':_0x46af5e(0x6b8),'btn':'12H'},'last_24h':{'hours':0x18,'label':_0x46af5e(0x103b),'btn':_0x46af5e(0xf0e)},'last_3d':{'days':0x3,'label':_0x46af5e(0x43e),'btn':'3D'},'last_7d':{'days':0x7,'label':_0x46af5e(0x6a8),'btn':'7D'},'last_15d':{'days':0xf,'label':_0x46af5e(0xc63),'btn':'15D'},'last_30d':{'days':0x1e,'label':_0x46af5e(0x4f5),'btn':_0x46af5e(0xbad)},'last_90d':{'days':0x5a,'label':_0x46af5e(0xb62),'btn':_0x46af5e(0xd7e)},'last_180d':{'days':0xb4,'label':'Last\x20180\x20days','btn':_0x46af5e(0xfb5)},'last_12m':{'months':0xc,'label':'Last\x2012\x20months','btn':_0x46af5e(0x7e1)},'last_2y':{'months':0x18,'label':'Last\x202\x20years','btn':'2Y'},'last_3y':{'months':0x24,'label':_0x46af5e(0x3cb),'btn':'3Y'},'last_5y':{'months':0x3c,'label':_0x46af5e(0x37d),'btn':'5Y'}}),LIVE_FLUSH_DEBOUNCE_MS=0x3e8,LIVE_SLIDE_INTERVAL_MS=0x7530,NATIVE_AXIS_STYLE=Object[_0x46af5e(0xe00)]({'x_axis_color':_0x46af5e(0x717),'y_axis_color':_0x46af5e(0x717),'x_axis_date_color':_0x46af5e(0x717),'x_axis_font_opacity':0x1,'y_axis_font_opacity':0x1,'x_axis_font_size':0xc,'y_axis_font_size':0xc,'x_grid_color':_0x46af5e(0x390),'y_grid_color':_0x46af5e(0x390),'x_grid_opacity':0x1,'y_grid_opacity':0x1}),CARD_DEFAULTS=Object[_0x46af5e(0xe00)]({'axis_style':_0x46af5e(0x4e7),'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,'styles':null,'card_icon_size':null,'card_icon_position':_0x46af5e(0xaaf),'align_header':_0x46af5e(0xaaf),'chart_mode':'timeline','chart_align':'center','sparkline':![],'height':0x96,'animate_graph':![],'brush_zoom':!![],'drill_down':![],'stacked':![],'enable_zoom':!![],'hours_to_show':0x18,'points_per_hour':0x2,'auto_scale_points':![],'group_by':_0x46af5e(0x1a1),'time_zone':_0x46af5e(0x6c8),'language':'auto','update_interval':null,'cache':!![],'graph_start':null,'graph_start_hour':null,'graph_end_hour':null,'year_start_month':null,'show_full_period':![],'max_visible_interval':null,'extended_window_multiplier':null,'scroll_mode':_0x46af5e(0x50e),'show_grid':!![],'show_cell_values':!![],'show_tooltip':!![],'show_tooltip_total':!![],'tooltip_stacked_total':!![],'crosshair':![],'crosshair_pins':0x1,'crosshair_delta':!![],'crosshair_legend':![],'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':_0x46af5e(0x8e1),'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':_0x46af5e(0x8e1),'x_axis_datetime_format':null,'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,'bar_corner_radius':null,'period_highlight':![],'period_highlight_color':null,'state_timeline_corner_radius':0x3,'state_timeline_row_height':null,'state_timeline_show_labels':!![],'state_strip_height':0x10,'state_strip_labels':!![],'state_strip_titles':![],'state_strip_title_font_size':null,'state_strip_title_position':_0x46af5e(0xdce),'state_timeline_label_font_size':null,'show_export':![],'show_zoom_buttons':![],'pie_style':_0x46af5e(0xcb0),'pie_spacing':0x0,'pie_3d':![],'pie_label_font_size':null,'pie_label_color':null,'pie_label_format':_0x46af5e(0x2ea),'pie_center_font_size':null,'pie_center_color':null,'show_legend':![],'legend_position':_0x46af5e(0x942),'show_interval_picker':![],'default_interval':null,'interval_picker_position':'left','show_attribute_list':![],'attribute_list_position':_0x46af5e(0xaaf),'show_pph_picker':![],'pph_picker_position':_0x46af5e(0xaaf),'show_group_by_picker':![],'group_by_picker_position':_0x46af5e(0xaaf),'pph_picker_group':null,'group_by_picker_group':null,'show_date_picker':![],'date_picker_position':_0x46af5e(0xf55),'date_picker_nav_position':_0x46af5e(0xaaf),'date_picker_shortcuts_position':_0x46af5e(0x1fd),'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,'date_picker_reset':null,'sync_group':null,'tooltip_sync':![],'tooltip_sync_group':null,'zoom_sync':![],'zoom_sync_group':null,'scroll_sync':![],'scroll_sync_group':null,'energy_date_sync':![],'energy_collection_key':null,'include_area_names':![],'include_attribute_name':![],'use_only_attribute_name':![],'state_map':null,'state_layout':_0x46af5e(0x744),'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':_0x46af5e(0xcd2),'y_axis':_0x46af5e(0x8d4),'line_width':2.5,'line_style':_0x46af5e(0xa63),'smooth':!![],'show_line':!![],'show_fill':!![],'show_range_band':![],'gradient':!![],'fill_opacity':null,'show_points':![],'point_size':null,'show_data_labels':![],'show_color_dot':!![],'point_colors':null,'stack_group':null,'invert':![],'attribute':null,'points_per_hour':null,'group_by':null,'aggregate_func':'avg','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':'click','extrema_show_timestamp':!![],'show_extrema_min':!![],'show_extrema_max':!![],'extrema_color':null,'extrema_font_size':null,'extrema_bg_color':null,'extrema_bg_opacity':null,'show_average':![],'break_on_null':![],'carry_forward_ms':null,'show_state':!![],'show_state_last':![],'primary_state_as':null,'show_timestamp':![],'show_range_values':![],'name_position':null,'show_graph':!![],'auto_hide':undefined,'show_in_legend':![],'legend_stats':[_0x46af5e(0xba1),_0x46af5e(0xfbc),_0x46af5e(0x220)],'decimals':0x1,'number_format':'system','align_state':_0x46af5e(0xaaf),'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[_0x46af5e(0xe00)]([_0x46af5e(0x76d),_0x46af5e(0x257),_0x46af5e(0xe18),_0x46af5e(0xeed),_0x46af5e(0x74f),_0x46af5e(0x5b2),_0x46af5e(0xc31),_0x46af5e(0x4f0),'show_y_axis',_0x46af5e(0x589),_0x46af5e(0x9b4),_0x46af5e(0xd51),_0x46af5e(0x3d7),'stacked','period_highlight','logarithmic','state_timeline_show_labels','show_export']),TEMPLATABLE_BOOL_ENTITY_KEYS=Object[_0x46af5e(0xe00)]([_0x46af5e(0x806),_0x46af5e(0xce4),_0x46af5e(0xa43),_0x46af5e(0x460),'show_fill',_0x46af5e(0x3ff),'smooth',_0x46af5e(0x34b),_0x46af5e(0xfe4),_0x46af5e(0xa72),_0x46af5e(0xcfa),_0x46af5e(0x452),_0x46af5e(0xae5),_0x46af5e(0x60f),_0x46af5e(0x3f1),_0x46af5e(0xe6f),_0x46af5e(0x4a8),_0x46af5e(0x283)]),CHART_MODES=Object['freeze']([_0x46af5e(0x325),'state_timeline',_0x46af5e(0xa1c),'pie',_0x46af5e(0xfbd),_0x46af5e(0x37b),_0x46af5e(0x88e),_0x46af5e(0xd20),_0x46af5e(0xa56),_0x46af5e(0xdbc),_0x46af5e(0xa16),'box','waterfall',_0x46af5e(0x9b5)]),MODE_SETS=((()=>{const _0x31206a=_0x46af5e,_0xa739c0='timeline',_0x265790=_0x31206a(0xb4b),_0x86149f='scatter',_0x5279f8=_0x31206a(0xe24),_0x23c11f=_0x31206a(0xfbd),_0x3da545=_0x31206a(0x37b),_0x1669da=_0x31206a(0x88e),_0x416d6d=_0x31206a(0xd20),_0x1faa15=_0x31206a(0xa56),_0x1706cd=_0x31206a(0xdbc),_0x260f79='gauge',_0x260172=_0x31206a(0xef0),_0x29012c=_0x31206a(0x9b5);return{'TL':[_0xa739c0],'NO_STL':CHART_MODES[_0x31206a(0x919)](_0x2bbec5=>_0x2bbec5!==_0x265790),'TL_STL':[_0xa739c0,_0x265790],'TL_SC':[_0xa739c0,_0x86149f],'TL_SC_RD':[_0xa739c0,_0x86149f,_0x416d6d],'TL_RD':[_0xa739c0,_0x416d6d],'GA':[_0x260f79],'PI':[_0x5279f8],'RK':[_0x23c11f],'STL':[_0x265790],'BOUNDS':[_0xa739c0,_0x86149f,_0x3da545,_0x416d6d,_0x1faa15,_0x1706cd,_0x260f79],'GRADIENT':[_0xa739c0,_0x23c11f,_0x416d6d,_0x260f79],'TOOLTIP_NAME':[_0xa739c0,_0x5279f8,_0x23c11f,_0x3da545,_0x1669da,_0x416d6d,_0x260f79],'X_AXIS':[_0xa739c0,_0x265790,_0x86149f,_0x1faa15,_0x1706cd],'TOTAL':[_0xa739c0,_0x5279f8,_0x23c11f,_0x3da545,_0x1669da,_0x260172,_0x29012c],'CHART':[...CHART_MODES]};})()),EDITOR_MODE_MATRIX=((()=>{const _0x2b7e5b=_0x46af5e,_0x506ba3=MODE_SETS;return Object['freeze']({'entity':Object[_0x2b7e5b(0xe00)]({'line_style':_0x506ba3['TL'],'smooth':_0x506ba3['TL'],'show_data_labels':_0x506ba3['TL'],'show_average':_0x506ba3['TL'],'moving_averages':_0x506ba3['TL'],'stack_group':_0x506ba3['TL'],'rise_fall_colors':_0x506ba3['TL'],'line_width':_0x506ba3[_0x2b7e5b(0x2c1)],'show_line':_0x506ba3['TL_RD'],'show_fill':_0x506ba3[_0x2b7e5b(0x2c1)],'show_points':_0x506ba3['TL_SC_RD'],'point_size':_0x506ba3[_0x2b7e5b(0xffc)],'point_colors':_0x506ba3[_0x2b7e5b(0xffc)],'show_extrema':_0x506ba3[_0x2b7e5b(0xab4)],'show_extrema_min':_0x506ba3['TL_SC'],'show_extrema_max':_0x506ba3[_0x2b7e5b(0xab4)],'extrema_show_timestamp':_0x506ba3[_0x2b7e5b(0xab4)],'extrema_color':_0x506ba3[_0x2b7e5b(0xab4)],'extrema_font_size':_0x506ba3[_0x2b7e5b(0xab4)],'extrema_bg_color':_0x506ba3[_0x2b7e5b(0xab4)],'extrema_bg_opacity':_0x506ba3[_0x2b7e5b(0xab4)],'lower_bound':_0x506ba3[_0x2b7e5b(0x374)],'upper_bound':_0x506ba3[_0x2b7e5b(0x374)],'gradient':_0x506ba3['GRADIENT'],'fill_opacity':_0x506ba3[_0x2b7e5b(0x53a)],'tooltip_name':_0x506ba3[_0x2b7e5b(0xa28)],'needle_color':_0x506ba3['GA'],'show_trend_icon':_0x506ba3[_0x2b7e5b(0x600)],'trend_period_hours':_0x506ba3[_0x2b7e5b(0x600)],'trend_icon_size':_0x506ba3[_0x2b7e5b(0x600)],'trend_up_color':_0x506ba3['NO_STL'],'trend_down_color':_0x506ba3['NO_STL'],'trend_stable_color':_0x506ba3[_0x2b7e5b(0x600)]}),'card':Object[_0x2b7e5b(0xe00)]({'show_now_line':_0x506ba3['TL'],'now_line_color':_0x506ba3['TL'],'now_line_opacity':_0x506ba3['TL'],'now_line_style':_0x506ba3['TL'],'now_line_width':_0x506ba3['TL'],'period_highlight':_0x506ba3['TL'],'period_highlight_color':_0x506ba3['TL'],'lower_bound':_0x506ba3['TL'],'upper_bound':_0x506ba3['TL'],'lower_bound_secondary':_0x506ba3['TL'],'upper_bound_secondary':_0x506ba3['TL'],'min_bound_range':_0x506ba3['TL'],'min_bound_range_secondary':_0x506ba3['TL'],'show_y2_axis':_0x506ba3['TL'],'show_x_ticks':_0x506ba3['TL'],'show_y_ticks':_0x506ba3['TL'],'y_axis_number_format':_0x506ba3['TL'],'y_axis_round_ticks':_0x506ba3['TL'],'x_axis_interval':_0x506ba3['TL'],'logarithmic':_0x506ba3['TL'],'stacked':_0x506ba3['TL'],'bar_spacing':_0x506ba3['TL'],'bar_corner_radius':_0x506ba3['TL'],'brush_zoom':_0x506ba3['TL'],'drill_down':_0x506ba3['TL'],'show_zoom_buttons':_0x506ba3['TL'],'sparkline':_0x506ba3['TL'],'extended_window_multiplier':_0x506ba3['TL'],'x_grid_color':_0x506ba3['TL'],'x_grid_opacity':_0x506ba3['TL'],'x_grid_style':_0x506ba3['TL'],'x_grid_width':_0x506ba3['TL'],'y_grid_color':_0x506ba3['TL'],'y_grid_opacity':_0x506ba3['TL'],'y_grid_style':_0x506ba3['TL'],'y_grid_width':_0x506ba3['TL'],'tooltip_match_axis':_0x506ba3['TL'],'tooltip_order':_0x506ba3['TL'],'tooltip_stacked_total':_0x506ba3['TL'],'tooltip_sync':_0x506ba3['TL'],'tooltip_sync_group':_0x506ba3['TL'],'crosshair':_0x506ba3['TL'],'crosshair_pins':_0x506ba3['TL'],'crosshair_delta':_0x506ba3['TL'],'crosshair_legend':_0x506ba3['TL'],'show_grid':_0x506ba3[_0x2b7e5b(0xab4)],'show_x_axis':_0x506ba3['TL_SC'],'show_y_axis':_0x506ba3[_0x2b7e5b(0xab4)],'y_axis_decimals':_0x506ba3[_0x2b7e5b(0xab4)],'y_axis_ticks':_0x506ba3[_0x2b7e5b(0xab4)],'zoom_sync':_0x506ba3[_0x2b7e5b(0x1c3)],'zoom_sync_group':_0x506ba3[_0x2b7e5b(0x1c3)],'scroll_sync':_0x506ba3[_0x2b7e5b(0x1c3)],'scroll_sync_group':_0x506ba3[_0x2b7e5b(0x1c3)],'x_axis_date_color':_0x506ba3[_0x2b7e5b(0x1c3)],'axis_style':_0x506ba3[_0x2b7e5b(0x5ad)],'x_axis_color':_0x506ba3[_0x2b7e5b(0x5ad)],'x_axis_font_opacity':_0x506ba3[_0x2b7e5b(0x5ad)],'x_axis_font_size':_0x506ba3[_0x2b7e5b(0x5ad)],'pie_3d':_0x506ba3['PI'],'pie_style':_0x506ba3['PI'],'pie_spacing':_0x506ba3['PI'],'pie_center_color':_0x506ba3['PI'],'pie_center_font_size':_0x506ba3['PI'],'pie_label_color':_0x506ba3['PI'],'pie_label_font_size':_0x506ba3['PI'],'pie_label_format':_0x506ba3['PI'],'gauge_columns':_0x506ba3['GA'],'gauge_span':_0x506ba3['GA'],'gauge_show_minmax':_0x506ba3['GA'],'gauge_value_position':_0x506ba3['GA'],'gauge_value_size':_0x506ba3['GA'],'ranking_min_value':_0x506ba3['RK'],'ranking_max_value':_0x506ba3['RK'],'chart_align':_0x506ba3['RK'],'state_timeline_corner_radius':_0x506ba3['STL'],'state_timeline_row_height':_0x506ba3['STL'],'state_timeline_show_labels':_0x506ba3[_0x2b7e5b(0x679)],'state_timeline_label_font_size':_0x506ba3[_0x2b7e5b(0x679)],'state_strip_height':_0x506ba3['TL'],'state_strip_labels':_0x506ba3['TL'],'state_strip_titles':_0x506ba3['TL'],'state_strip_title_font_size':_0x506ba3['TL'],'state_strip_title_position':_0x506ba3['TL'],'show_tooltip_total':_0x506ba3[_0x2b7e5b(0x183)],'energy_date_sync':_0x506ba3['CHART'],'energy_collection_key':_0x506ba3[_0x2b7e5b(0x22c)],'graph_start_hour':_0x506ba3['CHART'],'graph_end_hour':_0x506ba3[_0x2b7e5b(0x22c)],'year_start_month':_0x506ba3[_0x2b7e5b(0x22c)],'graph_start':_0x506ba3[_0x2b7e5b(0x22c)],'show_full_period':_0x506ba3[_0x2b7e5b(0x22c)],'show_date_picker':_0x506ba3['CHART'],'show_interval_picker':_0x506ba3[_0x2b7e5b(0x22c)],'default_interval':_0x506ba3[_0x2b7e5b(0x22c)],'interval_picker_position':_0x506ba3[_0x2b7e5b(0x22c)],'interval_picker_group':_0x506ba3[_0x2b7e5b(0x22c)],'show_attribute_list':_0x506ba3[_0x2b7e5b(0x22c)],'attribute_list_position':_0x506ba3['CHART']})});})()),matrixRoot=_0x4cca00=>{const _0x3231cd=_0x46af5e,_0x5a47a7=String(_0x4cca00||''),_0x4904fd=_0x5a47a7[_0x3231cd(0xe65)](/[.[]/);return _0x4904fd===-0x1?_0x5a47a7:_0x5a47a7[_0x3231cd(0x165)](0x0,_0x4904fd);};function isEditorFieldRelevant(_0x691214,_0x3fd0d8,_0x2f222d){const _0x614253=_0x46af5e,_0x40f952=EDITOR_MODE_MATRIX[_0x691214];if(!_0x40f952)return!![];const _0x251275=_0x40f952[_0x3fd0d8]||_0x40f952[matrixRoot(_0x3fd0d8)];if(!_0x251275)return!![];return _0x251275[_0x614253(0xf06)](_0x2f222d||'timeline');}function cloneEntity(_0x4d3a92,_0x4386d8){const _0x3c5b17=_0x46af5e,_0x47b40a=Object[_0x3c5b17(0x977)](Object[_0x3c5b17(0xb36)](_0x4d3a92)||Object[_0x3c5b17(0x47e)],Object[_0x3c5b17(0x52b)](_0x4d3a92));return _0x4386d8?Object['assign'](_0x47b40a,_0x4386d8):_0x47b40a;}const LEGEND_STATS_DEFAULT=Object['freeze']([_0x46af5e(0xba1),_0x46af5e(0xfbc),_0x46af5e(0x220)]);function legendStatsOf(_0x33e55d){const _0x19ce18=_0x46af5e,_0x5233e0=_0x33e55d?.[_0x19ce18(0x5cc)];if(Array[_0x19ce18(0x902)](_0x5233e0))return _0x5233e0[_0x19ce18(0xc02)]?_0x5233e0:LEGEND_STATS_DEFAULT;if(typeof _0x5233e0===_0x19ce18(0xade)){const _0x4ae5f7=_0x5233e0[_0x19ce18(0xbc0)](/[,\s]+/)['filter'](Boolean);return _0x4ae5f7[_0x19ce18(0xc02)]?_0x4ae5f7:LEGEND_STATS_DEFAULT;}return LEGEND_STATS_DEFAULT;}const isTemplateString=_0x12d217=>typeof _0x12d217===_0x46af5e(0xade)&&(_0x12d217[_0x46af5e(0xf06)]('{{')||_0x12d217[_0x46af5e(0xf06)]('{%')),COMPARE_PERIOD_LABELS=Object[_0x46af5e(0xe00)]({'previous_period':_0x46af5e(0x552),'yesterday':_0x46af5e(0x592),'last_week':_0x46af5e(0x7dc),'last_month':'last\x20month','last_year':_0x46af5e(0xe83)});function parseTemplateBool(_0xa12be2,_0x4e3d62){const _0x2a095b=_0x46af5e;if(_0xa12be2===null||_0xa12be2===undefined||_0xa12be2==='')return _0x4e3d62;if(typeof _0xa12be2==='boolean')return _0xa12be2;if(typeof _0xa12be2===_0x2a095b(0x327))return _0xa12be2!==0x0;const _0x43b7ac=String(_0xa12be2)[_0x2a095b(0xa11)]()[_0x2a095b(0x3fb)]();if(_0x43b7ac===_0x2a095b(0xa70)||_0x43b7ac==='on'||_0x43b7ac==='yes'||_0x43b7ac==='1')return!![];if(_0x43b7ac===_0x2a095b(0x9b2)||_0x43b7ac===_0x2a095b(0x16d)||_0x43b7ac==='no'||_0x43b7ac==='0'||_0x43b7ac===_0x2a095b(0x412)||_0x43b7ac===_0x2a095b(0x9ac)||_0x43b7ac===_0x2a095b(0x94d))return![];const _0x567579=Number(_0x43b7ac);if(!Number[_0x2a095b(0xd8f)](_0x567579))return _0x567579!==0x0;return _0x4e3d62;}const PALETTE=Object['freeze']([_0x46af5e(0x3e4),_0x46af5e(0x6cf),_0x46af5e(0x267),_0x46af5e(0x61a),_0x46af5e(0x878),_0x46af5e(0x599),'#e74c3c',_0x46af5e(0xa0b),_0x46af5e(0xfb9),'#2c3e50',_0x46af5e(0x67a),'#d35400',_0x46af5e(0x6d5),'#27ae60',_0x46af5e(0x372),_0x46af5e(0xac6)]),STATE_TIMELINE_COLORS=Object[_0x46af5e(0xe00)]([_0x46af5e(0x1001),_0x46af5e(0x32f),'#2ecc71','#f39c12',_0x46af5e(0x878),_0x46af5e(0x599),'#e67e22','#3498db',_0x46af5e(0xcea),_0x46af5e(0xadf)]);function stateSegmentColor(_0x5d183b,_0x2c1f47,_0x5b8ffd){const _0x32c55b=_0x46af5e;return _0x5d183b?.['color']||_0x2c1f47?.['color']||STATE_TIMELINE_COLORS[_0x5b8ffd%STATE_TIMELINE_COLORS[_0x32c55b(0xc02)]];}function bandedGradient(_0x1b5fa2,_0x17561d=_0x46af5e(0x211)){const _0x1aeb2d=_0x46af5e;if(!_0x1b5fa2||!_0x1b5fa2[_0x1aeb2d(0xc02)])return null;if(_0x1b5fa2['length']===0x1)return _0x1b5fa2[0x0];const _0x36d26c=_0x1b5fa2[_0x1aeb2d(0xc02)],_0x266b3a=_0x1b5fa2['map']((_0x184046,_0x48e132)=>_0x184046+'\x20'+(_0x48e132*0x64/_0x36d26c)[_0x1aeb2d(0x198)](0x3)+'%\x20'+((_0x48e132+0x1)*0x64/_0x36d26c)[_0x1aeb2d(0x198)](0x3)+'%');return _0x1aeb2d(0x512)+_0x17561d+',\x20'+_0x266b3a[_0x1aeb2d(0x888)](',\x20')+')';}function resolveEntityAreaName(_0xd8c499,_0x74d38f){const _0x730aef=_0x46af5e;if(!_0x74d38f||!_0xd8c499)return null;const _0x1d7582=_0xd8c499[_0x730aef(0xd97)]?.[_0x74d38f];let _0x2ea42a=_0x1d7582?.[_0x730aef(0xea2)]||null;if(!_0x2ea42a&&_0x1d7582?.[_0x730aef(0x34a)])_0x2ea42a=_0xd8c499[_0x730aef(0xd66)]?.[_0x1d7582[_0x730aef(0x34a)]]?.[_0x730aef(0xea2)]||null;if(!_0x2ea42a)return null;const _0xb30adc=_0xd8c499['areas']?.[_0x2ea42a]?.[_0x730aef(0xdee)];return typeof _0xb30adc===_0x730aef(0xade)&&_0xb30adc[_0x730aef(0xa11)]()?_0xb30adc[_0x730aef(0xa11)]():null;}function attributeDisplayName(_0x3fb0ac,_0x107922,_0x55f217){const _0x23886d=_0x46af5e;if(!_0x55f217)return'';const _0x51e965=_0x3fb0ac?.[_0x23886d(0x4f9)]?.[_0x107922];try{const _0x343457=_0x3fb0ac?.['formatEntityAttributeName'];if(typeof _0x343457==='function'&&_0x51e965){const _0x1eefe2=_0x343457['call'](_0x3fb0ac,_0x51e965,_0x55f217);if(_0x1eefe2)return String(_0x1eefe2);}}catch(_0x2626fe){}return String(_0x55f217)['replace'](/_/g,'\x20')[_0x23886d(0x5ef)](/\b\w/g,_0x5b63cf=>_0x5b63cf[_0x23886d(0x801)]());}function applyAttributeName(_0x358e6f,_0x18df55,_0x1735aa,_0x4e55c8,_0x7a0541){const _0x3ac51e=_0x46af5e;if(!_0x358e6f||_0x4e55c8?.[_0x3ac51e(0xdee)]!=null)return _0x1735aa;if(!_0x358e6f[_0x3ac51e(0x1015)]&&!_0x358e6f[_0x3ac51e(0x37a)])return _0x1735aa;const _0x5140f3=attributeDisplayName(_0x18df55,_0x4e55c8[_0x3ac51e(0x974)],_0x7a0541);if(!_0x5140f3)return _0x1735aa;if(_0x358e6f[_0x3ac51e(0x37a)])return _0x5140f3;return _0x1735aa?_0x1735aa+_0x3ac51e(0x610)+_0x5140f3:_0x5140f3;}function buildAreaSuffixes(_0xefb07d,_0x2bf88d,_0x177250,_0x3d104b){const _0x1da21b=_0x46af5e,_0x5d49ad=_0x2bf88d||[],_0x40447f=new Map();return _0x5d49ad[_0x1da21b(0xd27)]((_0x1697fc,_0x2e8d05)=>{const _0x6c3d40=_0x1da21b;if(!_0x1697fc||_0x1697fc[_0x6c3d40(0xed4)]!=null)return;if(_0x1697fc[_0x6c3d40(0xdee)]&&typeof _0x1697fc['name']===_0x6c3d40(0xade))return;const _0x1f0f40=resolveEntityAreaName(_0xefb07d,_0x1697fc[_0x6c3d40(0x974)]||_0x1697fc['statistic_id']);if(!_0x1f0f40)return;const _0xafa598=_0xefb07d?.['states']?.[_0x1697fc['entity']],_0x2504b6=String(_0xafa598?.[_0x6c3d40(0x467)]?.[_0x6c3d40(0x457)]||(_0x1697fc['statistic_id']?_0x177250?.[_0x1697fc[_0x6c3d40(0xd53)]]?.[_0x6c3d40(0xdee)]:null)||_0x1697fc[_0x6c3d40(0x974)]||_0x1697fc[_0x6c3d40(0xd53)]||''),_0x1a3c65=_0x3d104b?String(_0x3d104b(_0x1697fc,_0x2e8d05,_0x2504b6)??_0x2504b6):_0x2504b6;if(_0x1a3c65[_0x6c3d40(0x3fb)]()[_0x6c3d40(0xf06)](_0x1f0f40[_0x6c3d40(0x3fb)]()))return;_0x40447f['set'](_0x2e8d05,_0x6c3d40(0x610)+_0x1f0f40);}),_0x40447f['size']?_0x40447f:null;}let _txtMeasureCtx;function measureTextWidth(_0x5accc7,_0x399eda){const _0x4c9f33=_0x46af5e,_0x2d1ccb=String(_0x5accc7==null?'':_0x5accc7);if(_txtMeasureCtx===undefined)try{_txtMeasureCtx=document[_0x4c9f33(0xbde)](_0x4c9f33(0x9f4))[_0x4c9f33(0x805)]('2d')||null;}catch(_0x583145){_txtMeasureCtx=null;}if(!_txtMeasureCtx)return _0x2d1ccb[_0x4c9f33(0xc02)]*0x8;if(_txtMeasureCtx['font']!==_0x399eda)_txtMeasureCtx[_0x4c9f33(0xee3)]=_0x399eda;return _txtMeasureCtx[_0x4c9f33(0x1ab)](_0x2d1ccb)['width'];}function wrapLabelLines(_0x318d0d,_0x193ab3,_0x3b76ee,_0x4f7463){const _0x40cfde=_0x46af5e,_0x4a6180=String(_0x318d0d==null?'':_0x318d0d)[_0x40cfde(0xa11)]();if(!_0x4a6180||_0x193ab3<=0x0)return{'lines':[],'truncated':![]};const _0x2eb941=_0x1fd24e=>measureTextWidth(_0x1fd24e,_0x4f7463),_0x310623=[];let _0x5e5eb2='';const _0xdcf7f6=_0x277e60=>{const _0x2a4525=_0x40cfde;let _0x28a80d=_0x277e60;while(_0x2eb941(_0x28a80d)>_0x193ab3){let _0x5b17d1=_0x28a80d[_0x2a4525(0xc02)]-0x1;while(_0x5b17d1>0x1&&_0x2eb941(_0x28a80d['slice'](0x0,_0x5b17d1))>_0x193ab3)_0x5b17d1--;_0x310623['push'](_0x28a80d['slice'](0x0,_0x5b17d1)),_0x28a80d=_0x28a80d[_0x2a4525(0x165)](_0x5b17d1);}return _0x28a80d;};for(let _0x30bf83 of _0x4a6180[_0x40cfde(0xbc0)](/\s+/)){if(_0x2eb941(_0x30bf83)>_0x193ab3){_0x5e5eb2&&(_0x310623['push'](_0x5e5eb2),_0x5e5eb2='');_0x5e5eb2=_0xdcf7f6(_0x30bf83);continue;}if(!_0x5e5eb2)_0x5e5eb2=_0x30bf83;else{if(_0x2eb941(_0x5e5eb2+'\x20'+_0x30bf83)<=_0x193ab3)_0x5e5eb2+='\x20'+_0x30bf83;else _0x310623['push'](_0x5e5eb2),_0x5e5eb2=_0x30bf83;}}if(_0x5e5eb2)_0x310623['push'](_0x5e5eb2);if(_0x310623['length']<=_0x3b76ee)return{'lines':_0x310623,'truncated':![]};const _0x476e17=_0x310623[_0x40cfde(0x165)](0x0,_0x3b76ee);let _0x1f7e00=_0x476e17[_0x3b76ee-0x1];while(_0x1f7e00[_0x40cfde(0xc02)]>0x1&&_0x2eb941(_0x1f7e00+'…')>_0x193ab3)_0x1f7e00=_0x1f7e00[_0x40cfde(0x165)](0x0,-0x1);return _0x476e17[_0x3b76ee-0x1]=_0x1f7e00+'…',{'lines':_0x476e17,'truncated':!![]};}function pickName(_0x325c0f,_0x159b90,_0x548923){const _0x475647=_0x46af5e,_0x227103=typeof _0x325c0f===_0x475647(0xade)&&(_0x325c0f[_0x475647(0xf06)]('{{')||_0x325c0f[_0x475647(0xf06)]('{%'));if(_0x227103)return _0x159b90!==undefined&&_0x159b90!==null&&_0x159b90!==''?_0x159b90:_0x548923?.[_0x475647(0x457)]??undefined;if(_0x325c0f!==undefined&&_0x325c0f!==null)return _0x325c0f;return _0x548923?.['friendly_name']??undefined;}function normalizeTemplateResult(_0x5902e9){const _0x37be4f=_0x46af5e;if(_0x5902e9===null||_0x5902e9===undefined)return'';const _0x15d44a=typeof _0x5902e9===_0x37be4f(0xade)?_0x5902e9:String(_0x5902e9);return _0x15d44a['trim']();}const isNum=_0x5b5109=>typeof _0x5b5109===_0x46af5e(0x327)&&Number['isFinite'](_0x5b5109),clamp=(_0x3dc4f8,_0x25ce91,_0x17ddd0)=>Math[_0x46af5e(0x220)](_0x25ce91,Math[_0x46af5e(0xba1)](_0x17ddd0,_0x3dc4f8)),toNum=_0x876a42=>{const _0x21468f=_0x46af5e;if(_0x876a42===null||_0x876a42===undefined||_0x876a42==='')return null;const _0x264f78=typeof _0x876a42===_0x21468f(0x327)?_0x876a42:parseFloat(_0x876a42);return Number['isFinite'](_0x264f78)?_0x264f78:null;};function resolveOffsetHours(_0x35656f,_0x1de311){const _0x415db1=_0x46af5e;if(_0x35656f===null||_0x35656f===undefined||_0x35656f==='')return 0x0;if(typeof _0x35656f===_0x415db1(0x327))return Number[_0x415db1(0xf0d)](_0x35656f)?_0x35656f:0x0;const _0x540fb0=String(_0x35656f)[_0x415db1(0xa11)]();if(_0x540fb0==='')return 0x0;const _0x11471c=parseFloat(_0x540fb0);if(!isNaN(_0x11471c)&&/^-?[\d.]+$/['test'](_0x540fb0))return _0x11471c;const _0x44d69f=_0x1de311?.[_0x415db1(0x4f9)]?.[_0x540fb0];if(_0x44d69f){const _0x47392e=parseFloat(_0x44d69f[_0x415db1(0x5f5)]);return Number[_0x415db1(0xf0d)](_0x47392e)?_0x47392e:0x0;}return 0x0;}const _tzFmtCache=new Map(),_tzOffIntervals=new Map();function _tzOffAt(_0x1b9057,_0x5506c7){const _0x498af3=_0x46af5e,_0x2d1dd0={};for(const _0x1d6973 of _tzFmt(_0x5506c7)[_0x498af3(0x1044)](_0x1b9057))_0x2d1dd0[_0x1d6973[_0x498af3(0xefa)]]=_0x1d6973[_0x498af3(0x2ea)];const _0x147cb1=Math[_0x498af3(0xedc)](_0x1b9057/0x3e8)%0x3c,_0x715d07=_0x1b9057-_0x1b9057%0x3e8;return Math[_0x498af3(0x686)]((Date['UTC'](+_0x2d1dd0[_0x498af3(0x73e)],+_0x2d1dd0['month']-0x1,+_0x2d1dd0[_0x498af3(0x309)],_0x2d1dd0[_0x498af3(0x2ab)]==='24'?0x0:+_0x2d1dd0['hour'],+_0x2d1dd0[_0x498af3(0x976)],_0x147cb1)-_0x715d07)/0xea60);}function _tzOffsetFor(_0x5bde6a,_0x356f3d){const _0x37397b=_0x46af5e;let _0xd821f3=_tzOffIntervals['get'](_0x356f3d);!_0xd821f3&&(_0xd821f3=[],_tzOffIntervals[_0x37397b(0xa2d)](_0x356f3d,_0xd821f3));let _0x39b3d2=0x0,_0x314091=_0xd821f3[_0x37397b(0xc02)]-0x1;while(_0x39b3d2<=_0x314091){const _0x432b59=_0x39b3d2+_0x314091>>0x1,_0x4e3e82=_0xd821f3[_0x432b59];if(_0x5bde6a<_0x4e3e82['s'])_0x314091=_0x432b59-0x1;else{if(_0x5bde6a>_0x4e3e82['e'])_0x39b3d2=_0x432b59+0x1;else return _0x4e3e82[_0x37397b(0x16d)];}}const _0x4a1eaf=_tzOffAt(_0x5bde6a,_0x356f3d),_0x1687db=0x240c8400,_0x818969=0x10;let _0x45dd9e=_0x5bde6a,_0x3455fe=_0x5bde6a;for(let _0x48acef=0x0;_0x48acef<_0x818969;_0x48acef++){let _0x1878c6=_0x45dd9e-_0x1687db,_0x354ef9=![];_0x39b3d2>0x0&&_0x1878c6<=_0xd821f3[_0x39b3d2-0x1]['e']&&(_0x1878c6=_0xd821f3[_0x39b3d2-0x1]['e']+0x1,_0x354ef9=!![]);if(_0x1878c6>=_0x45dd9e)break;if(_tzOffAt(_0x1878c6,_0x356f3d)===_0x4a1eaf){_0x45dd9e=_0x1878c6;if(_0x354ef9)break;continue;}let _0x1e88e2=_0x1878c6,_0x36e1c3=_0x45dd9e;while(_0x36e1c3-_0x1e88e2>0x1){const _0x346d44=_0x1e88e2+Math[_0x37397b(0xedc)]((_0x36e1c3-_0x1e88e2)/0x2);if(_tzOffAt(_0x346d44,_0x356f3d)===_0x4a1eaf)_0x36e1c3=_0x346d44;else _0x1e88e2=_0x346d44;}_0x45dd9e=_0x36e1c3;break;}for(let _0xf5397c=0x0;_0xf5397c<_0x818969;_0xf5397c++){let _0x39c1f0=_0x3455fe+_0x1687db,_0xec4af=![];_0x39b3d2<_0xd821f3[_0x37397b(0xc02)]&&_0x39c1f0>=_0xd821f3[_0x39b3d2]['s']&&(_0x39c1f0=_0xd821f3[_0x39b3d2]['s']-0x1,_0xec4af=!![]);if(_0x39c1f0<=_0x3455fe)break;if(_tzOffAt(_0x39c1f0,_0x356f3d)===_0x4a1eaf){_0x3455fe=_0x39c1f0;if(_0xec4af)break;continue;}let _0xcbe5a5=_0x3455fe,_0x508cef=_0x39c1f0;while(_0x508cef-_0xcbe5a5>0x1){const _0x2d0607=_0xcbe5a5+Math[_0x37397b(0xedc)]((_0x508cef-_0xcbe5a5)/0x2);if(_tzOffAt(_0x2d0607,_0x356f3d)===_0x4a1eaf)_0xcbe5a5=_0x2d0607;else _0x508cef=_0x2d0607;}_0x3455fe=_0xcbe5a5;break;}if(_0x45dd9e>_0x5bde6a)_0x45dd9e=_0x5bde6a;if(_0x3455fe<_0x5bde6a)_0x3455fe=_0x5bde6a;const _0x293f93=_0x39b3d2>0x0?_0xd821f3[_0x39b3d2-0x1]:null,_0x361055=_0x39b3d2<_0xd821f3['length']?_0xd821f3[_0x39b3d2]:null;if(_0x293f93&&_0x293f93['off']===_0x4a1eaf&&_0x45dd9e<=_0x293f93['e']+0x1){if(_0x3455fe>_0x293f93['e'])_0x293f93['e']=_0x3455fe;if(_0x361055&&_0x361055['off']===_0x4a1eaf&&_0x293f93['e']>=_0x361055['s']-0x1){if(_0x361055['e']>_0x293f93['e'])_0x293f93['e']=_0x361055['e'];_0xd821f3[_0x37397b(0x76c)](_0x39b3d2,0x1);}return _0x4a1eaf;}if(_0x361055&&_0x361055[_0x37397b(0x16d)]===_0x4a1eaf&&_0x3455fe>=_0x361055['s']-0x1){if(_0x45dd9e<_0x361055['s'])_0x361055['s']=_0x45dd9e;return _0x4a1eaf;}_0xd821f3[_0x37397b(0x76c)](_0x39b3d2,0x0,{'s':_0x45dd9e,'e':_0x3455fe,'off':_0x4a1eaf});if(_0xd821f3[_0x37397b(0xc02)]>0x190)_0xd821f3['splice'](0x0,_0xd821f3[_0x37397b(0xc02)]-0x190);return _0x4a1eaf;}function _tzFmt(_0x1da855){const _0x5e1b86=_0x46af5e;let _0x3ab0b8=_tzFmtCache['get'](_0x1da855);return!_0x3ab0b8&&(_0x3ab0b8=new Intl[(_0x5e1b86(0x1ff))]('en-US',{'timeZone':_0x1da855,'hour12':![],'year':'numeric','month':_0x5e1b86(0x615),'day':_0x5e1b86(0x615),'hour':_0x5e1b86(0x615),'minute':_0x5e1b86(0x615),'second':_0x5e1b86(0x615),'weekday':'short'}),_tzFmtCache[_0x5e1b86(0xa2d)](_0x1da855,_0x3ab0b8)),_0x3ab0b8;}function tzParts(_0x41489d,_0xde12b2){const _0x2f36c0=_0x46af5e;if(!_0xde12b2){const _0x3cb341=new Date(_0x41489d);return{'y':_0x3cb341[_0x2f36c0(0x5e9)](),'mo':_0x3cb341['getMonth'](),'d':_0x3cb341[_0x2f36c0(0x1024)](),'h':_0x3cb341[_0x2f36c0(0x346)](),'mi':_0x3cb341[_0x2f36c0(0xe88)](),'wd':_0x3cb341[_0x2f36c0(0xc39)]()||0x7};}try{const _0x3a4f12=_tzOffsetFor(_0x41489d,_0xde12b2),_0xdc99da=new Date(_0x41489d+_0x3a4f12*0xea60);return{'y':_0xdc99da[_0x2f36c0(0x2fa)](),'mo':_0xdc99da[_0x2f36c0(0x749)](),'d':_0xdc99da[_0x2f36c0(0xb90)](),'h':_0xdc99da[_0x2f36c0(0xdea)](),'mi':_0xdc99da[_0x2f36c0(0x590)](),'wd':_0xdc99da[_0x2f36c0(0x241)]()||0x7};}catch(_0x182ee4){const _0x630c5b=new Date(_0x41489d);return{'y':_0x630c5b[_0x2f36c0(0x5e9)](),'mo':_0x630c5b['getMonth'](),'d':_0x630c5b[_0x2f36c0(0x1024)](),'h':_0x630c5b[_0x2f36c0(0x346)](),'mi':_0x630c5b[_0x2f36c0(0xe88)](),'wd':_0x630c5b[_0x2f36c0(0xc39)]()||0x7};}}function zonedWallToMs(_0x41e831,_0xd910fd,_0x397747,_0xceb801,_0x171875,_0x12d831,_0x165e3f){const _0x3f8edc=_0x46af5e;if(!_0x165e3f)return new Date(_0x41e831,_0xd910fd,_0x397747,_0xceb801,_0x171875,_0x12d831)[_0x3f8edc(0x1028)]();const _0x438e5d=Date[_0x3f8edc(0xe15)](_0x41e831,_0xd910fd,_0x397747,_0xceb801,_0x171875,_0x12d831),_0x26c481=_tzOffsetFor(_0x438e5d-_tzOffsetFor(_0x438e5d,_0x165e3f)*0xea60,_0x165e3f),_0x291d15=_0x438e5d-_0x26c481*0xea60,_0xad94a3=_tzOffsetFor(_0x291d15,_0x165e3f);return _0xad94a3===_0x26c481?_0x291d15:_0x438e5d-Math[_0x3f8edc(0xba1)](_0x26c481,_0xad94a3)*0xea60;}function tzStartOfDayMs(_0x103f92,_0x155b97){const _0x309aeb=tzParts(_0x103f92,_0x155b97);return zonedWallToMs(_0x309aeb['y'],_0x309aeb['mo'],_0x309aeb['d'],0x0,0x0,0x0,_0x155b97);}function wallHourTicks(_0x5694ff,_0x1f3519,_0x8518c6,_0x57f23b,_0x3edca4){const _0x1c163e=_0x46af5e,_0x25ce41=[],_0x52eb3c=tzParts(_0x5694ff,_0x57f23b);let _0x38b83e=Date[_0x1c163e(0xe15)](_0x52eb3c['y'],_0x52eb3c['mo'],_0x52eb3c['d'],_0x52eb3c['h'],0x0,0x0);for(let _0x15e4d9=0x0;_0x15e4d9<0x186a0;_0x15e4d9++){const _0x42f928=new Date(_0x38b83e),_0x129788=_0x42f928[_0x1c163e(0xdea)](),_0x3e4fec=zonedWallToMs(_0x42f928[_0x1c163e(0x2fa)](),_0x42f928[_0x1c163e(0x749)](),_0x42f928[_0x1c163e(0xb90)](),_0x129788,0x0,0x0,_0x57f23b);if(_0x3e4fec>=_0x8518c6)break;if(_0x3e4fec>=_0x3edca4&&tzParts(_0x3e4fec,_0x57f23b)['h']===_0x129788)_0x25ce41[_0x1c163e(0xb31)](_0x3e4fec);_0x38b83e+=_0x1f3519*0x36ee80;}return _0x25ce41;}const _FIRST_WD_NAMES=Object[_0x46af5e(0xe00)]({'monday':0x1,'tuesday':0x2,'wednesday':0x3,'thursday':0x4,'friday':0x5,'saturday':0x6,'sunday':0x7});function resolveFirstWeekday(_0xb33d09){const _0x10d75f=_0x46af5e,_0x201340=_0xb33d09?.[_0x10d75f(0x23e)]?.['first_weekday'];if(_0x201340&&Object['prototype'][_0x10d75f(0x77c)][_0x10d75f(0xbf8)](_FIRST_WD_NAMES,_0x201340))return _FIRST_WD_NAMES[_0x201340];try{const _0x4d8755=_0xb33d09?.[_0x10d75f(0x23e)]?.['language']||_0xb33d09?.[_0x10d75f(0x5cd)]||'en',_0x1657a7=new Intl[(_0x10d75f(0xdc5))](_0x4d8755),_0x2addbd=typeof _0x1657a7['getWeekInfo']===_0x10d75f(0x8c6)?_0x1657a7[_0x10d75f(0x5c6)]():_0x1657a7[_0x10d75f(0x226)],_0x253234=_0x2addbd?.['firstDay'];if(typeof _0x253234===_0x10d75f(0x327)&&_0x253234>=0x1&&_0x253234<=0x7)return _0x253234;}catch{}return 0x1;}const weekStartOffsetDays=(_0x2c63d4,_0x486890)=>(_0x2c63d4-_0x486890+0x7)%0x7,_tzInvalidWarned=new Set();function isValidTimeZone(_0xd35cd6){const _0x7b3954=_0x46af5e;try{return new Intl[(_0x7b3954(0x1ff))]('en',{'timeZone':_0xd35cd6}),!![];}catch{return![];}}function resolveDisplayTimeZone(_0x2a4c32,_0x15456a){const _0x3a5169=_0x46af5e,_0x5a4cd0=String(_0x15456a?.[_0x3a5169(0x1fa)]??_0x3a5169(0x6c8))['trim']();let _0x1bdec2=null;if(_0x5a4cd0===''||_0x5a4cd0===_0x3a5169(0xfdc))return null;if(_0x5a4cd0===_0x3a5169(0xdb2))_0x1bdec2=_0x2a4c32?.[_0x3a5169(0xe3c)]?.[_0x3a5169(0x1fa)]||null;else _0x5a4cd0===_0x3a5169(0x6c8)?_0x1bdec2=_0x2a4c32?.[_0x3a5169(0x23e)]?.[_0x3a5169(0x1fa)]===_0x3a5169(0xdb2)?_0x2a4c32?.[_0x3a5169(0xe3c)]?.[_0x3a5169(0x1fa)]||null:null:_0x1bdec2=_0x5a4cd0;if(!_0x1bdec2)return null;if(!isValidTimeZone(_0x1bdec2))return!_tzInvalidWarned[_0x3a5169(0x101d)](_0x1bdec2)&&(_tzInvalidWarned[_0x3a5169(0x982)](_0x1bdec2),console['warn'](_0x3a5169(0x5de)+_0x1bdec2+_0x3a5169(0x521))),null;try{const _0x6def0e=Intl[_0x3a5169(0x1ff)]()['resolvedOptions']()['timeZone'];if(_0x6def0e&&_0x6def0e===_0x1bdec2)return null;}catch{}return _0x1bdec2;}const LANG_NAMES={'en':_0x46af5e(0x268),'cs':_0x46af5e(0x1e1),'da':_0x46af5e(0xd73),'de':'Deutsch','es':_0x46af5e(0xdd1),'fi':_0x46af5e(0x357),'fr':'Français','it':_0x46af5e(0xd6e),'nl':_0x46af5e(0x7da),'nb':'Norsk','pl':'Polski','pt':_0x46af5e(0x3be),'ru':'Русский','sv':_0x46af5e(0x658),'tr':_0x46af5e(0x4ea),'zh':'中文'},I18N={'en':{}},_sgcLiveCards=new Set(),_langLoads=new Map();let _legacyI18nLoad=null,_i18nVersionWarned=![];function _sgcI18nRerender(){const _0x590b2f=_0x46af5e;for(const _0x10b494 of _sgcLiveCards){try{_0x10b494[_0x590b2f(0x401)]='',_0x10b494[_0x590b2f(0x3ec)]?.();}catch{}}}function _warnI18nVersion(_0x500465){const _0x5e1472=_0x46af5e;if(_i18nVersionWarned||!_0x500465||_0x500465===VERSION)return;_i18nVersionWarned=!![],console[_0x5e1472(0x9a7)](_0x5e1472(0xa8a)+_0x500465+_0x5e1472(0xfc1)+VERSION+_0x5e1472(0xa61));}function _loadLegacyTranslations(){const _0x3f8fab=_0x46af5e;if(_legacyI18nLoad)return _legacyI18nLoad;return _legacyI18nLoad=import(new URL('./translations.js?v='+VERSION,import.meta.url))[_0x3f8fab(0x91a)](_0x5c1a99=>{const _0x5c5113=_0x3f8fab;if(_0x5c1a99?.['I18N']){for(const [_0x302adb,_0x3b7d90]of Object[_0x5c5113(0x653)](_0x5c1a99[_0x5c5113(0x451)]))I18N[_0x302adb]=_0x3b7d90;}if(_0x5c1a99?.[_0x5c5113(0xbbb)])Object[_0x5c5113(0xb67)](LANG_NAMES,_0x5c1a99[_0x5c5113(0xbbb)]);_warnI18nVersion(_0x5c1a99?.[_0x5c5113(0x7f1)]),_sgcI18nRerender();})[_0x3f8fab(0x9d5)](()=>{const _0x1f29ee=_0x3f8fab;console[_0x1f29ee(0xe7b)](_0x1f29ee(0x186));}),_legacyI18nLoad;}function _ensureLang(_0x1395cb){const _0x1bf691=_0x46af5e;let _0x24df26=String(_0x1395cb||'')[_0x1bf691(0x3fb)]();if(!LANG_NAMES[_0x24df26])_0x24df26=_0x24df26[_0x1bf691(0xbc0)]('-')[0x0];if(!_0x24df26||!LANG_NAMES[_0x24df26]||I18N[_0x24df26]||_langLoads['has'](_0x24df26))return;_langLoads['set'](_0x24df26,import(new URL(_0x1bf691(0xeda)+_0x24df26+_0x1bf691(0x734)+VERSION,import.meta.url))[_0x1bf691(0x91a)](_0xe594d5=>{const _0x254cf0=_0x1bf691;if(_0xe594d5?.[_0x254cf0(0x2da)])I18N[_0x24df26]=_0xe594d5['TABLE'],_warnI18nVersion(_0xe594d5[_0x254cf0(0x7f1)]),_sgcI18nRerender();else return _loadLegacyTranslations();})[_0x1bf691(0x9d5)](()=>_loadLegacyTranslations()));}function resolveCardLanguage(_0xe7a987,_0x2b849c){const _0x46a2aa=_0x46af5e,_0x4a13c6=String(_0x2b849c?.['language']??_0x46a2aa(0x6c8))[_0x46a2aa(0xa11)]();if(_0x4a13c6&&_0x4a13c6!==_0x46a2aa(0x6c8))return _0x4a13c6;return _0xe7a987?.[_0x46a2aa(0x23e)]?.[_0x46a2aa(0x5cd)]||typeof navigator!==_0x46a2aa(0xa73)&&navigator[_0x46a2aa(0x5cd)]||'en';}function cardT(_0x183661,_0x4419e9,_0x15da5e){const _0x343191=_0x46af5e;let _0x479dc7=resolveCardLanguage(_0x183661,_0x4419e9)[_0x343191(0x3fb)]();if(_0x479dc7==='no'||_0x479dc7[_0x343191(0xed0)](_0x343191(0x473)))_0x479dc7='nb';const _0x5e18fa=I18N[_0x479dc7]||I18N[_0x479dc7[_0x343191(0xbc0)]('-')[0x0]];if(!_0x5e18fa)_ensureLang(_0x479dc7);return _0x5e18fa&&_0x5e18fa[_0x15da5e]||_0x15da5e;}function localizeEntityState(_0x511227,_0x283aa6,_0x1d0295){const _0x574482=_0x46af5e,_0x34acbc=_0x1d0295??_0x283aa6?.[_0x574482(0x5f5)];if(_0x34acbc==null)return'';try{if(_0x283aa6&&typeof _0x511227?.['formatEntityState']===_0x574482(0x8c6)){const _0x2c6d93=_0x1d0295!=null?_0x511227[_0x574482(0xb15)](_0x283aa6,String(_0x1d0295)):_0x511227[_0x574482(0xb15)](_0x283aa6);if(_0x2c6d93)return _0x2c6d93;}}catch(_0x293c3b){}return String(_0x34acbc);}function niceYTicks(_0x43022c,_0x2b3e77,_0x3784b4=0x4,_0x46af0=0x0){const _0x586137=_0x46af5e;if(!isFinite(_0x43022c)||!isFinite(_0x2b3e77)||_0x2b3e77<=_0x43022c)return null;const _0x185d8b=_0x2b3e77-_0x43022c,_0x13f5b4=_0x185d8b/Math['max'](0x1,_0x3784b4);let _0xaf9736;if(_0x46af0>0x0&&_0x185d8b>=_0x46af0){const _0x40e45e=_0x13f5b4/_0x46af0,_0x5244e7=[0x1,0x2,0x5,0xa,0xf,0x1e,0x3c,0x78,0xb4,0x168,0x2d0,0x5a0,0xb40,0x10e0,0x2760,0xa8c0,0x15180];let _0x570d1b=_0x5244e7[_0x5244e7[_0x586137(0xc02)]-0x1];for(let _0x2d4bb7=0x0;_0x2d4bb7<_0x5244e7[_0x586137(0xc02)];_0x2d4bb7++){const _0x401bfe=_0x5244e7[_0x2d4bb7+0x1];if(_0x401bfe===undefined||_0x40e45e<Math['sqrt'](_0x5244e7[_0x2d4bb7]*_0x401bfe)){_0x570d1b=_0x5244e7[_0x2d4bb7];break;}}_0xaf9736=_0x570d1b*_0x46af0;}else{const _0x575750=Math['pow'](0xa,Math[_0x586137(0xedc)](Math[_0x586137(0x81d)](_0x13f5b4))),_0x2c0349=_0x13f5b4/_0x575750;if(_0x2c0349<1.5)_0xaf9736=0x1*_0x575750;else{if(_0x2c0349<0x3)_0xaf9736=0x2*_0x575750;else{if(_0x2c0349<0x7)_0xaf9736=0x5*_0x575750;else _0xaf9736=0xa*_0x575750;}}}const _0x280ae2=Math[_0x586137(0x6fd)](_0x43022c/_0xaf9736-1e-9)*_0xaf9736,_0x2d489c=[];for(let _0x3b03c0=0x0;_0x3b03c0<0x32;_0x3b03c0++){const _0x32f97f=_0x280ae2+_0x3b03c0*_0xaf9736;if(_0x32f97f>_0x2b3e77+_0xaf9736*0.000001)break;if(_0x32f97f>=_0x43022c-_0xaf9736*0.000001)_0x2d489c[_0x586137(0xb31)](_0x32f97f);}return _0x2d489c[_0x586137(0xc02)]>=0x2?_0x2d489c:null;}function applyStateMap(_0x9aa350,_0x5255ec){const _0x360d8a=_0x46af5e;if(!_0x5255ec||!Array['isArray'](_0x5255ec))return{'value':parseFloat(_0x9aa350),'mapped':![]};const _0x12eadc=_0x5255ec[_0x360d8a(0xbe8)](_0x15e720=>String(_0x15e720['value'])===String(_0x9aa350));if(_0x12eadc!==-0x1)return{'value':_0x12eadc,'mapped':!![],'label':_0x5255ec[_0x12eadc][_0x360d8a(0xf1f)]};return{'value':parseFloat(_0x9aa350),'mapped':![]};}function isStripEntity(_0x44a411){const _0x30c2c2=_0x46af5e;return!!_0x44a411&&_0x44a411[_0x30c2c2(0xc3c)]===_0x30c2c2(0x911);}function bandTailEnd(_0x48a46e,_0x15b8f5,_0x4b8e20){const _0x94aac9=_0x46af5e;if(!_0x48a46e)return _0x15b8f5;if(_0x48a46e[_0x94aac9(0xed4)]!=null)return _0x15b8f5;const _0x45b626=_0x48a46e[_0x94aac9(0x4ff)];if(_0x45b626!==undefined&&_0x45b626!==null&&_0x45b626!==''&&_0x45b626!==0x0)return _0x15b8f5;if(_0x48a46e[_0x94aac9(0x510)]||_0x48a46e[_0x94aac9(0x102c)])return _0x15b8f5;const _0x2837b5=Date[_0x94aac9(0x69d)]();if(_0x2837b5>=_0x15b8f5||_0x2837b5<=_0x4b8e20)return _0x15b8f5;return _0x2837b5;}function autoStateMap(_0x158a49,_0xf1bdaf,_0x4268fc){const _0x2a6a25=_0x46af5e;if(!_0x158a49)return null;if(_0x158a49[_0x2a6a25(0xa7e)])return _0x158a49['state_map'];const _0x58f108=_0x158a49[_0x2a6a25(0xc3c)]===_0x2a6a25(0xfb0)||isStripEntity(_0x158a49)||_0x4268fc===_0x2a6a25(0xb4b);if(!_0x58f108)return null;if(_0x158a49[_0x2a6a25(0xf0f)]||_0x158a49['data_attribute']||_0x158a49[_0x2a6a25(0xbef)])return null;const _0x1290fc=_0x158a49[_0x2a6a25(0x974)]?.[_0x2a6a25(0xbc0)]('.')[0x0];if(_0x1290fc===_0x2a6a25(0x47c)||_0x1290fc===_0x2a6a25(0x623))return[{'value':_0x2a6a25(0x16d)},{'value':'on'}];const _0x548804=_0xf1bdaf?.[_0x2a6a25(0x4f9)]?.[_0x158a49[_0x2a6a25(0x974)]];if(_0x548804&&isNaN(parseFloat(_0x548804[_0x2a6a25(0x5f5)]))&&_0x548804[_0x2a6a25(0x5f5)]!==_0x2a6a25(0x9ac)&&_0x548804[_0x2a6a25(0x5f5)]!==_0x2a6a25(0x94d)){const _0x23c282=new Set();_0x548804[_0x2a6a25(0x467)]?.[_0x2a6a25(0x46c)]?_0x548804['attributes'][_0x2a6a25(0x46c)][_0x2a6a25(0xd27)](_0x2b73d9=>_0x23c282[_0x2a6a25(0x982)](_0x2b73d9)):_0x23c282[_0x2a6a25(0x982)](_0x548804[_0x2a6a25(0x5f5)]);if(_0x23c282['size']>0x0)return[..._0x23c282]['map'](_0x3645b4=>({'value':_0x3645b4}));}return null;}function escapeHtml(_0x87545a){const _0x5be3ca=_0x46af5e;return String(_0x87545a??'')['replace'](/&/g,_0x5be3ca(0x43f))[_0x5be3ca(0x5ef)](/</g,_0x5be3ca(0xd94))[_0x5be3ca(0x5ef)](/>/g,_0x5be3ca(0xb56))['replace'](/"/g,_0x5be3ca(0x789))[_0x5be3ca(0x5ef)](/'/g,_0x5be3ca(0xdae));}function hashString(_0x5a45df){const _0x3718e7=_0x46af5e;let _0x56e387=0x1505;for(let _0x3efcb3=0x0;_0x3efcb3<_0x5a45df[_0x3718e7(0xc02)];_0x3efcb3++)_0x56e387=(_0x56e387<<0x5)+_0x56e387+_0x5a45df[_0x3718e7(0xf79)](_0x3efcb3)>>>0x0;return _0x56e387[_0x3718e7(0x8f1)](0x24);}const lsGet=_0x1c0ce1=>{try{return localStorage['getItem'](_0x1c0ce1);}catch{return null;}},lsSet=(_0x2ec9ea,_0xf6d8ba)=>{try{localStorage['setItem'](_0x2ec9ea,_0xf6d8ba);}catch{}},lsDel=_0x1f8b29=>{const _0x4b08e8=_0x46af5e;try{localStorage[_0x4b08e8(0x508)](_0x1f8b29);}catch{}};function parseColor(_0x19253c){const _0x16911e=_0x46af5e;if(!_0x19253c)return{'r':0x88,'g':0x88,'b':0x88};const _0x2954da=String(_0x19253c)['trim']();if(_0x2954da[_0x16911e(0xed0)]('#')){const _0x23fe83=_0x2954da[_0x16911e(0xc02)]===0x4?_0x2954da['slice'](0x1)[_0x16911e(0xbc0)]('')[_0x16911e(0xb3f)](_0x153302=>_0x153302+_0x153302)[_0x16911e(0x888)](''):_0x2954da[_0x16911e(0x165)](0x1);return{'r':parseInt(_0x23fe83[_0x16911e(0x165)](0x0,0x2),0x10),'g':parseInt(_0x23fe83['slice'](0x2,0x4),0x10),'b':parseInt(_0x23fe83[_0x16911e(0x165)](0x4,0x6),0x10)};}const _0xdb7473=_0x2954da['match'](/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0xdb7473)return{'r':+_0xdb7473[0x1],'g':+_0xdb7473[0x2],'b':+_0xdb7473[0x3]};return{'r':0x88,'g':0x88,'b':0x88};}const rgba=(_0x2fb447,_0x7523f0)=>{const {r:_0x3e600f,g:_0x137d51,b:_0x5d5649}=parseColor(_0x2fb447);return'rgba('+_0x3e600f+','+_0x137d51+','+_0x5d5649+','+_0x7523f0+')';},_dateTimeFormatterCache=new Map();function getCachedDateTimeFormatter(_0x286488,_0x1ec258){const _0x3b5c8c=_0x46af5e,_0x43402e=_0x286488+'|'+JSON[_0x3b5c8c(0x403)](_0x1ec258);let _0xf075b8=_dateTimeFormatterCache[_0x3b5c8c(0xc3f)](_0x43402e);if(_0xf075b8)return _0xf075b8;if(_dateTimeFormatterCache['size']>=0x1e){const _0x52c123=_dateTimeFormatterCache['keys']()[_0x3b5c8c(0x2db)]()[_0x3b5c8c(0x2ea)];if(_0x52c123!==undefined)_dateTimeFormatterCache[_0x3b5c8c(0xcc1)](_0x52c123);}try{_0xf075b8=new Intl['DateTimeFormat'](_0x286488,_0x1ec258);}catch{return null;}return _dateTimeFormatterCache[_0x3b5c8c(0xa2d)](_0x43402e,_0xf075b8),_0xf075b8;}const _numberFormatterCache=new Map();function getCachedNumberFormatter(_0x2f04e7,_0x331324){const _0x47f37c=_0x46af5e,_0x3437c7=_0x2f04e7+'|'+_0x331324;let _0x57df9c=_numberFormatterCache[_0x47f37c(0xc3f)](_0x3437c7);if(_0x57df9c)return _0x57df9c;if(_numberFormatterCache['size']>=0x32){const _0x47210c=_numberFormatterCache[_0x47f37c(0x3ab)]()[_0x47f37c(0x2db)]()[_0x47f37c(0x2ea)];if(_0x47210c!==undefined)_numberFormatterCache[_0x47f37c(0xcc1)](_0x47210c);}try{_0x57df9c=new Intl[(_0x47f37c(0x7d3))](_0x2f04e7,{'minimumFractionDigits':_0x331324,'maximumFractionDigits':_0x331324});}catch{return null;}return _numberFormatterCache['set'](_0x3437c7,_0x57df9c),_0x57df9c;}function compileLabelFormat(_0x13f3b3,_0x43c36a){const _0x3c360c=_0x46af5e;if(typeof _0x13f3b3!==_0x3c360c(0xade))return null;const _0x316f0b=_0x13f3b3[_0x3c360c(0xa11)]();if(!_0x316f0b)return null;const _0x295a0c={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0x43c36a||'s')[_0x3c360c(0x3fb)]()]??0x1,_0x5f06b9=_0x49652a=>String(Math[_0x3c360c(0xedc)](_0x49652a))[_0x3c360c(0x470)](0x2,'0'),_0x31aeaa={'h:mm':_0x3b5bfe=>Math[_0x3c360c(0xedc)](_0x3b5bfe/0xe10)+':'+_0x5f06b9(_0x3b5bfe%0xe10/0x3c),'h:mm:ss':_0x38cd6d=>Math[_0x3c360c(0xedc)](_0x38cd6d/0xe10)+':'+_0x5f06b9(_0x38cd6d%0xe10/0x3c)+':'+_0x5f06b9(_0x38cd6d%0x3c),'mm:ss':_0x3b20e2=>_0x5f06b9(_0x3b20e2/0x3c)+':'+_0x5f06b9(_0x3b20e2%0x3c),'d\x20h:mm':_0x4bbe49=>{const _0xba4474=_0x3c360c,_0x31305f=Math[_0xba4474(0xedc)](_0x4bbe49/0x15180),_0x2c11fd=_0x4bbe49%0x15180,_0x1d9473=Math[_0xba4474(0xedc)](_0x2c11fd/0xe10)+':'+_0x5f06b9(_0x2c11fd%0xe10/0x3c);return _0x31305f>0x0?_0x31305f+'d\x20'+_0x1d9473:_0x1d9473;}},_0x38a257=_0x31aeaa[_0x316f0b['toLowerCase']()];if(_0x38a257)return _0x7a159c=>{const _0x57c21e=_0x3c360c;if(!isNum(_0x7a159c))return null;return(_0x7a159c<0x0?'-':'')+_0x38a257(Math[_0x57c21e(0x1ae)](_0x7a159c)*_0x295a0c);};if(!_0x316f0b[_0x3c360c(0xf06)]('{'))return null;const _0xdf86d7={'floor':Math[_0x3c360c(0xedc)],'ceil':Math['ceil'],'round':Math['round'],'abs':Math[_0x3c360c(0x1ae)],'sqrt':Math[_0x3c360c(0x2ed)]},_0x1255a1={'min':Math[_0x3c360c(0xba1)],'max':Math['max']},_0x22d877={'pad2':_0x3b11aa=>String(Math['floor'](_0x3b11aa))[_0x3c360c(0x470)](0x2,'0'),'pad':(_0x2ca361,_0x2dbf9f)=>String(Math[_0x3c360c(0xedc)](_0x2ca361))[_0x3c360c(0x470)](Math[_0x3c360c(0x220)](0x0,Math['floor'](_0x2dbf9f)),'0'),'fixed':(_0x174b02,_0x58a844)=>Number(_0x174b02)['toFixed'](Math[_0x3c360c(0xba1)](0x14,Math['max'](0x0,Math[_0x3c360c(0xedc)](_0x58a844))))},_0x409b92=_0x4c525c=>{const _0x2f2da8=_0x3c360c,_0x1bcb3a=[];let _0x57d129=0x0;while(_0x57d129<_0x4c525c[_0x2f2da8(0xc02)]){const _0x37674d=_0x4c525c[_0x57d129];if(_0x37674d==='\x20'||_0x37674d==='\x09'){_0x57d129++;continue;}if(/[0-9]/['test'](_0x37674d)){let _0x509b4b=_0x57d129;while(_0x509b4b<_0x4c525c['length']&&/[0-9.]/[_0x2f2da8(0x920)](_0x4c525c[_0x509b4b]))_0x509b4b++;const _0x1c2a66=Number(_0x4c525c['slice'](_0x57d129,_0x509b4b));if(!Number[_0x2f2da8(0xf0d)](_0x1c2a66))throw new Error(_0x2f2da8(0x750));_0x1bcb3a['push']({'t':_0x2f2da8(0x948),'v':_0x1c2a66}),_0x57d129=_0x509b4b;continue;}if(/[a-zA-Z_]/[_0x2f2da8(0x920)](_0x37674d)){let _0x219b9d=_0x57d129;while(_0x219b9d<_0x4c525c[_0x2f2da8(0xc02)]&&/[a-zA-Z0-9_]/[_0x2f2da8(0x920)](_0x4c525c[_0x219b9d]))_0x219b9d++;_0x1bcb3a[_0x2f2da8(0xb31)]({'t':'id','v':_0x4c525c['slice'](_0x57d129,_0x219b9d)}),_0x57d129=_0x219b9d;continue;}if(_0x2f2da8(0x861)[_0x2f2da8(0xf06)](_0x37674d)){_0x1bcb3a[_0x2f2da8(0xb31)]({'t':_0x37674d}),_0x57d129++;continue;}throw new Error('unexpected\x20\x27'+_0x37674d+'\x27');}let _0x387a0e=0x0;const _0x20c533=()=>_0x1bcb3a[_0x387a0e],_0x112389=_0x4cb7ed=>{if(!_0x1bcb3a[_0x387a0e]||_0x1bcb3a[_0x387a0e]['t']!==_0x4cb7ed)throw new Error('expected\x20'+_0x4cb7ed);return _0x1bcb3a[_0x387a0e++];},_0x53de14=()=>{const _0x51dafc=_0x2f2da8,_0x16dced=_0x20c533();if(!_0x16dced)throw new Error(_0x51dafc(0xaa4));if(_0x16dced['t']===_0x51dafc(0x948)){_0x387a0e++;const _0x4ff66d=_0x16dced['v'];return{'fn':()=>_0x4ff66d,'str':![]};}if(_0x16dced['t']==='('){_0x387a0e++;const _0x3d6cce=_0x7ebfe7();return _0x112389(')'),_0x3d6cce;}if(_0x16dced['t']==='-'){_0x387a0e++;const _0x1ffca5=_0x53de14();if(_0x1ffca5[_0x51dafc(0xa62)])throw new Error(_0x51dafc(0xe76));return{'fn':_0x124427=>-_0x1ffca5['fn'](_0x124427),'str':![]};}if(_0x16dced['t']==='id'){_0x387a0e++;const _0x31fa55=_0x16dced['v'];if(_0x20c533()&&_0x20c533()['t']==='('){_0x387a0e++;const _0x23baf0=[];if(_0x20c533()&&_0x20c533()['t']!==')'){_0x23baf0[_0x51dafc(0xb31)](_0x7ebfe7());while(_0x20c533()&&_0x20c533()['t']===','){_0x387a0e++,_0x23baf0['push'](_0x7ebfe7());}}_0x112389(')');if(_0x23baf0[_0x51dafc(0x42a)](_0x35d41b=>_0x35d41b[_0x51dafc(0xa62)]))throw new Error(_0x51dafc(0x90a));if(_0xdf86d7[_0x31fa55]){if(_0x23baf0[_0x51dafc(0xc02)]!==0x1)throw new Error(_0x31fa55+'\x20takes\x201\x20arg');const _0x363dfc=_0xdf86d7[_0x31fa55],_0x3acf76=_0x23baf0[0x0];return{'fn':_0x35a348=>_0x363dfc(_0x3acf76['fn'](_0x35a348)),'str':![]};}if(_0x1255a1[_0x31fa55]){if(_0x23baf0[_0x51dafc(0xc02)]<0x2)throw new Error(_0x31fa55+_0x51dafc(0xd39));const _0x46ed3d=_0x1255a1[_0x31fa55];return{'fn':_0x6134bb=>_0x46ed3d(..._0x23baf0[_0x51dafc(0xb3f)](_0xb50eed=>_0xb50eed['fn'](_0x6134bb))),'str':![]};}if(_0x22d877[_0x31fa55]){const _0x2fc274=_0x31fa55===_0x51dafc(0xc5f)?0x1:0x2;if(_0x23baf0['length']!==_0x2fc274)throw new Error(_0x31fa55+_0x51dafc(0xf2d)+_0x2fc274+_0x51dafc(0x32c));const _0x5c6c43=_0x22d877[_0x31fa55];return{'fn':_0x3b7ff3=>_0x5c6c43(..._0x23baf0[_0x51dafc(0xb3f)](_0x3bdce6=>_0x3bdce6['fn'](_0x3b7ff3))),'str':!![]};}throw new Error(_0x51dafc(0x9bc)+_0x31fa55);}if(_0x31fa55===_0x51dafc(0x2ea))return{'fn':_0x417f0e=>_0x417f0e,'str':![]};throw new Error('unknown\x20identifier\x20'+_0x31fa55);}throw new Error(_0x51dafc(0xb7d)+_0x16dced['t']);},_0x47af12=()=>{const _0x6a326f=_0x2f2da8;let _0x201127=_0x53de14();while(_0x20c533()&&(_0x20c533()['t']==='*'||_0x20c533()['t']==='/'||_0x20c533()['t']==='%')){const _0x4f1728=_0x1bcb3a[_0x387a0e++]['t'],_0x14a185=_0x53de14();if(_0x201127[_0x6a326f(0xa62)]||_0x14a185['str'])throw new Error(_0x6a326f(0xe76));const _0x4e3779=_0x201127['fn'],_0x13df70=_0x14a185['fn'];_0x201127={'fn':_0x4f1728==='*'?_0x1aa62b=>_0x4e3779(_0x1aa62b)*_0x13df70(_0x1aa62b):_0x4f1728==='/'?_0x565c1c=>_0x4e3779(_0x565c1c)/_0x13df70(_0x565c1c):_0x3e3ca7=>_0x4e3779(_0x3e3ca7)%_0x13df70(_0x3e3ca7),'str':![]};}return _0x201127;},_0x7ebfe7=()=>{const _0x370629=_0x2f2da8;let _0x5ca61c=_0x47af12();while(_0x20c533()&&(_0x20c533()['t']==='+'||_0x20c533()['t']==='-')){const _0x4c3ddc=_0x1bcb3a[_0x387a0e++]['t'],_0x1a0e54=_0x47af12();if(_0x5ca61c[_0x370629(0xa62)]||_0x1a0e54[_0x370629(0xa62)])throw new Error(_0x370629(0xe76));const _0x563982=_0x5ca61c['fn'],_0x246678=_0x1a0e54['fn'];_0x5ca61c={'fn':_0x4c3ddc==='+'?_0x5a9fe7=>_0x563982(_0x5a9fe7)+_0x246678(_0x5a9fe7):_0x20f06f=>_0x563982(_0x20f06f)-_0x246678(_0x20f06f),'str':![]};}return _0x5ca61c;},_0x2763f6=_0x7ebfe7();if(_0x387a0e!==_0x1bcb3a['length'])throw new Error(_0x2f2da8(0xace));return _0x2763f6;};try{const _0x2a1a8d=[];let _0x59c5c0=0x0;while(_0x59c5c0<_0x316f0b[_0x3c360c(0xc02)]){const _0x4829e2=_0x316f0b['indexOf']('{',_0x59c5c0);if(_0x4829e2<0x0){_0x2a1a8d[_0x3c360c(0xb31)](_0x316f0b[_0x3c360c(0x165)](_0x59c5c0));break;}if(_0x4829e2>_0x59c5c0)_0x2a1a8d['push'](_0x316f0b['slice'](_0x59c5c0,_0x4829e2));const _0x13c551=_0x316f0b[_0x3c360c(0x2f0)]('}',_0x4829e2);if(_0x13c551<0x0)throw new Error(_0x3c360c(0xd00));const _0x120c7e=_0x316f0b[_0x3c360c(0x165)](_0x4829e2+0x1,_0x13c551)[_0x3c360c(0xa11)]();if(!_0x120c7e)throw new Error('empty\x20expression');_0x2a1a8d[_0x3c360c(0xb31)](_0x409b92(_0x120c7e)),_0x59c5c0=_0x13c551+0x1;}const _0x53f343=_0x397192=>{const _0x190b44=_0x3c360c;if(!Number[_0x190b44(0xf0d)](_0x397192))return String(_0x397192);if(Number[_0x190b44(0x7e9)](_0x397192))return String(_0x397192);return String(+_0x397192[_0x190b44(0x198)](0x6));};return _0x33cc0f=>{const _0x244615=_0x3c360c;if(!isNum(_0x33cc0f))return null;let _0x2d94fb='';for(const _0x33ccd2 of _0x2a1a8d){if(typeof _0x33ccd2===_0x244615(0xade)){_0x2d94fb+=_0x33ccd2;continue;}const _0xf8060=_0x33ccd2['fn'](_0x33cc0f);_0x2d94fb+=_0x33ccd2[_0x244615(0xa62)]?String(_0xf8060):_0x53f343(_0xf8060);}return _0x2d94fb;};}catch(_0x4a9a73){return console[_0x3c360c(0x9a7)](_0x3c360c(0x86a),_0x316f0b,'—',_0x4a9a73?.['message']||_0x4a9a73),null;}}const _axisFmtMemo=new WeakMap(),_axisStepMemo=new WeakMap();function axisMinLabelStep(_0xa0d108,_0x48e077){const _0x4f1a98=_0x46af5e;if(!_0xa0d108||typeof _0xa0d108!==_0x4f1a98(0xc18))return 0x0;let _0x48be83=_axisStepMemo['get'](_0xa0d108);!_0x48be83&&(_0x48be83={},_axisStepMemo[_0x4f1a98(0xa2d)](_0xa0d108,_0x48be83));if(_0x48e077 in _0x48be83)return _0x48be83[_0x48e077];const _0x37fb7f=String((_0x48e077===_0x4f1a98(0xbec)?_0xa0d108[_0x4f1a98(0xfcc)]:_0xa0d108[_0x4f1a98(0xe9c)])||'')['trim']()[_0x4f1a98(0x3fb)](),_0x1ab541={'s':0x1,'sec':0x1,'seconds':0x1,'ms':0.001,'min':0x3c,'h':0xe10,'hour':0xe10,'hours':0xe10}[String(_0xa0d108[_0x4f1a98(0x885)]||'s')[_0x4f1a98(0x3fb)]()]??0x1;let _0x42194c=0x0;if(_0x37fb7f==='h:mm'||_0x37fb7f==='d\x20h:mm')_0x42194c=0x3c;else{if(_0x37fb7f===_0x4f1a98(0xe02)||_0x37fb7f===_0x4f1a98(0x3ca))_0x42194c=0x1;}const _0x5c33f1=_0x42194c>0x0?_0x42194c/_0x1ab541:0x0;return _0x48be83[_0x48e077]=_0x5c33f1,_0x5c33f1;}function axisLabelFormatter(_0x127a11,_0x42b547){const _0x5a1a23=_0x46af5e;if(!_0x127a11||typeof _0x127a11!==_0x5a1a23(0xc18))return null;let _0x28bde2=_axisFmtMemo[_0x5a1a23(0xc3f)](_0x127a11);return!_0x28bde2&&(_0x28bde2={'primary':compileLabelFormat(_0x127a11[_0x5a1a23(0xe9c)],_0x127a11[_0x5a1a23(0x885)]),'secondary':compileLabelFormat(_0x127a11[_0x5a1a23(0xfcc)],_0x127a11[_0x5a1a23(0x885)])},_axisFmtMemo[_0x5a1a23(0xa2d)](_0x127a11,_0x28bde2)),_0x28bde2[_0x42b547]||null;}function formatNumber(_0x1937df,_0x566788,_0x3fc506){const _0x4f10b6=_0x46af5e;if(!isNum(_0x1937df))return'—';if(_0x566788?.[_0x4f10b6(0xd57)])_0x1937df=Math[_0x4f10b6(0x1ae)](_0x1937df);if(typeof _0x566788?.[_0x4f10b6(0x786)]==='function')try{const _0x35c372=_0x566788[_0x4f10b6(0x786)](_0x1937df);if(typeof _0x35c372===_0x4f10b6(0xade))return _0x35c372;}catch(_0x382b90){}const _0x4b5a30=toNum(_0x566788?.[_0x4f10b6(0xbcf)])??0x1,_0x54cb7c=_0x566788?.['number_format']||'system',_0xb426d9=_0x54cb7c==='comma'?_0x4f10b6(0xbd0):_0x54cb7c==='dot'?'en-US':_0x3fc506?.[_0x4f10b6(0x23e)]?.[_0x4f10b6(0x5cd)]||navigator['language']||'en',_0x4e734e=getCachedNumberFormatter(_0xb426d9,_0x4b5a30);if(_0x4e734e)return _0x4e734e[_0x4f10b6(0xf20)](_0x1937df);return _0x1937df[_0x4f10b6(0x198)](_0x4b5a30);}function _resolveHourCycle(_0x51d102){const _0x378c6f=_0x46af5e,_0x5c5fa1=_0x51d102?.[_0x378c6f(0x23e)]?.[_0x378c6f(0x9fa)];if(_0x5c5fa1==='24')return _0x378c6f(0x215);if(_0x5c5fa1==='12')return _0x378c6f(0xb75);return undefined;}function _localeTimeOpts(_0x28f945,_0x307051){const _0x3b5974=_resolveHourCycle(_0x28f945);if(!_0x3b5974)return _0x307051;return{..._0x307051,'hourCycle':_0x3b5974};}function resolveBucketPrecision(_0x5e1aad){const _0x4f5411=_0x46af5e;if(!_0x5e1aad||_0x5e1aad[_0x4f5411(0xc02)]<0x2)return _0x4f5411(0xbcc);const _0x14d38e=[];for(let _0x3489c1=0x1;_0x3489c1<_0x5e1aad[_0x4f5411(0xc02)];_0x3489c1++){const _0xcefc18=_0x5e1aad[_0x3489c1]['t']-_0x5e1aad[_0x3489c1-0x1]['t'];if(_0xcefc18>0x0)_0x14d38e[_0x4f5411(0xb31)](_0xcefc18);}if(!_0x14d38e['length'])return'raw';_0x14d38e['sort']((_0x30fd3b,_0x173ebd)=>_0x30fd3b-_0x173ebd);const _0x18a3a5=_0x14d38e[Math[_0x4f5411(0xedc)](_0x14d38e[_0x4f5411(0xc02)]/0x2)];if(_0x18a3a5>=0x1c*0x5265c00)return _0x4f5411(0xe7d);if(_0x18a3a5>=0x6*0x5265c00)return _0x4f5411(0x6f1);if(_0x18a3a5>=0x17*0x36ee80)return'day';if(_0x18a3a5>=0x32*0xea60)return'hour';if(_0x18a3a5>=0x4*0xea60)return _0x4f5411(0xc08);if(_0x18a3a5>=0x32*0x3e8)return _0x4f5411(0x976);return _0x4f5411(0xbcc);}function bucketPrecisionToMs(_0x105037){const _0x1d05bc=_0x46af5e;switch(_0x105037){case _0x1d05bc(0x73e):return 0x16e*0x5265c00;case _0x1d05bc(0xe7d):return 0x1f*0x5265c00;case _0x1d05bc(0x6f1):return 0x7*0x5265c00;case _0x1d05bc(0x309):return 0x5265c00;case'hour':return 0x36ee80;case _0x1d05bc(0xc08):return 0x5*0xea60;case _0x1d05bc(0x976):return 0xea60;default:return 0x0;}}function applyDatetimePattern(_0x1d1607,_0x438716,_0x166831,_0x2dc4be){const _0x3434b9=_0x46af5e,_0x314a3e=(_0x3cc941,_0x3c786a=0x2)=>String(_0x3cc941)[_0x3434b9(0x470)](_0x3c786a,'0');let _0x444497,_0x544f78,_0x2615d8,_0x5f2a68,_0x5bea10;if(_0x2dc4be){const _0x3ce38c=tzParts(_0x1d1607[_0x3434b9(0x1028)](),_0x2dc4be);_0x444497=_0x3ce38c['y'],_0x544f78=_0x3ce38c['mo']+0x1,_0x2615d8=_0x3ce38c['d'],_0x5f2a68=_0x3ce38c['h'],_0x5bea10=_0x3ce38c['mi'];}else _0x444497=_0x1d1607[_0x3434b9(0x5e9)](),_0x544f78=_0x1d1607[_0x3434b9(0x4a0)]()+0x1,_0x2615d8=_0x1d1607[_0x3434b9(0x1024)](),_0x5f2a68=_0x1d1607['getHours'](),_0x5bea10=_0x1d1607[_0x3434b9(0xe88)]();const _0x31c1c0=_0x2dc4be?_0x1d1607['getUTCSeconds']():_0x1d1607[_0x3434b9(0x808)](),_0x3a1cde=_0x5f2a68%0xc,_0x39793e=_0x3a1cde===0x0?0xc:_0x3a1cde,_0x1ad925=_0x5f2a68<0xc?'AM':'PM',_0x28e0a7=_0x166831||typeof navigator!==_0x3434b9(0xa73)&&navigator['language']||'en',_0x161856=_0x40fdbd=>{const _0x4d083e=_0x3434b9,_0xc09cae=getCachedDateTimeFormatter(_0x28e0a7,_0x2dc4be?{'month':_0x40fdbd,'timeZone':_0x2dc4be}:{'month':_0x40fdbd});return _0xc09cae?_0xc09cae[_0x4d083e(0xf20)](_0x1d1607):String(_0x544f78);},_0x445a5a=_0x2e5d16=>{const _0x474d21=_0x3434b9,_0x2b4e7f=getCachedDateTimeFormatter(_0x28e0a7,_0x2dc4be?{'weekday':_0x2e5d16,'timeZone':_0x2dc4be}:{'weekday':_0x2e5d16});return _0x2b4e7f?_0x2b4e7f[_0x474d21(0xf20)](_0x1d1607):'';},_0x4b8ab4=[[_0x3434b9(0xd85),_0x445a5a('long')],[_0x3434b9(0xed1),_0x445a5a('short')],[_0x3434b9(0xa2e),String(_0x444497)],['YY',String(_0x444497)[_0x3434b9(0x165)](-0x2)],['MMMM',_0x161856(_0x3434b9(0x5cb))],[_0x3434b9(0xe8c),_0x161856(_0x3434b9(0xfec))],['MM',_0x314a3e(_0x544f78)],['DD',_0x314a3e(_0x2615d8)],['HH',_0x314a3e(_0x5f2a68)],['hh',_0x314a3e(_0x39793e)],['mm',_0x314a3e(_0x5bea10)],['ss',_0x314a3e(_0x31c1c0)],['A',_0x1ad925],['a',_0x1ad925[_0x3434b9(0x3fb)]()]],_0x43d12a=_0x4b8ab4[_0x3434b9(0xb3f)]((_0x32a164,_0x67a61f)=>'\x00'+_0x67a61f+'\x00');let _0x19b2c0=_0x438716;return _0x4b8ab4[_0x3434b9(0xd27)](([_0x55b3be],_0x5ec2a6)=>{const _0x38ff14=_0x3434b9;_0x19b2c0=_0x19b2c0[_0x38ff14(0xbc0)](_0x55b3be)[_0x38ff14(0x888)](_0x43d12a[_0x5ec2a6]);}),_0x4b8ab4[_0x3434b9(0xd27)](([,_0x11984e],_0x357eb4)=>{const _0x16348b=_0x3434b9;_0x19b2c0=_0x19b2c0[_0x16348b(0xbc0)](_0x43d12a[_0x357eb4])[_0x16348b(0x888)](_0x11984e);}),_0x19b2c0;}function estPatternChars(_0x57df45){const _0x6b2358=_0x46af5e,_0x5ab39a=String(_0x57df45==null?'':_0x57df45);if(!_0x5ab39a)return 0x3;const _0x3c0454=_0x5ab39a[_0x6b2358(0xbc0)](_0x6b2358(0xd85))['join'](_0x6b2358(0xe20))[_0x6b2358(0xbc0)](_0x6b2358(0x466))[_0x6b2358(0x888)](_0x6b2358(0xe20))[_0x6b2358(0xbc0)]('A')[_0x6b2358(0x888)]('__')['split']('a')['join']('__');return Math[_0x6b2358(0x220)](0x3,_0x3c0454['length']);}function formatDateTime(_0x1a6a09,_0x1c8905,_0x292eb9,_0x162a4d){const _0x59cfcc=_0x46af5e,_0x46d7b4=_0x162a4d&&_0x162a4d[_0x59cfcc(0x70e)]||null,_0x281948=resolveDisplayTimeZone(_0x292eb9,_0x1c8905),_0x5f4be9=effDatetimeFormat(_0x1c8905);if(_0x5f4be9&&_0x5f4be9!==_0x59cfcc(0x8e1))return applyDatetimePattern(_0x1a6a09,_0x5f4be9,resolveCardLanguage(_0x292eb9,_0x1c8905),_0x281948);const _0x39c8bd=resolveCardLanguage(_0x292eb9,_0x1c8905);let _0x4ec118;switch(_0x46d7b4){case'year':_0x4ec118={'year':_0x59cfcc(0x897)};break;case _0x59cfcc(0xe7d):_0x4ec118={'month':_0x59cfcc(0xfec),'year':_0x59cfcc(0x897)};break;case'week':case _0x59cfcc(0x309):_0x4ec118={'month':'short','day':_0x59cfcc(0x897)};break;case'hour':_0x4ec118=_localeTimeOpts(_0x292eb9,{'month':'short','day':'numeric','hour':_0x59cfcc(0x615)});break;default:_0x4ec118=_localeTimeOpts(_0x292eb9,{'month':_0x59cfcc(0xfec),'day':_0x59cfcc(0x897),'hour':_0x59cfcc(0x615),'minute':_0x59cfcc(0x615)});}const _0x13371d=getCachedDateTimeFormatter(_0x39c8bd,_0x281948?{..._0x4ec118,'timeZone':_0x281948}:_0x4ec118);if(_0x13371d)return _0x13371d[_0x59cfcc(0xf20)](_0x1a6a09);return _0x1a6a09[_0x59cfcc(0xaeb)]();}function resolveYearStartMonth(_0x134969){const _0x177782=_0x46af5e,_0x935510=Math[_0x177782(0xedc)](toNum(_0x134969?.[_0x177782(0x3ef)])??0x1);return _0x935510>=0x1&&_0x935510<=0xc?_0x935510-0x1:0x0;}function parseGraphStart(_0x263432,_0x4ed387,_0x3a3dc5,_0x81bc4a=0x1,_0xb9070d=0x0){const _0x42eec5=_0x46af5e,_0x3445f9=tzParts(_0x4ed387[_0x42eec5(0x1028)](),_0x3a3dc5),_0x5567e4=(_0x594f22,_0x5ada5b,_0x12f1b1)=>new Date(zonedWallToMs(_0x594f22,_0x5ada5b,_0x12f1b1,0x0,0x0,0x0,_0x3a3dc5));switch(_0x263432){case'day':case'today':return _0x5567e4(_0x3445f9['y'],_0x3445f9['mo'],_0x3445f9['d']);case _0x42eec5(0x9b9):return _0x5567e4(_0x3445f9['y'],_0x3445f9['mo'],_0x3445f9['d']+0x1);case _0x42eec5(0x6f1):return _0x5567e4(_0x3445f9['y'],_0x3445f9['mo'],_0x3445f9['d']-weekStartOffsetDays(_0x3445f9['wd'],_0x81bc4a));case _0x42eec5(0xe7d):return _0x5567e4(_0x3445f9['y'],_0x3445f9['mo'],0x1);case _0x42eec5(0x73e):return _0x5567e4(_0x3445f9['y']-(_0x3445f9['mo']<_0xb9070d?0x1:0x0),_0xb9070d,0x1);default:return _0x5567e4(_0x3445f9['y'],_0x3445f9['mo'],_0x3445f9['d']);}}function calendarCellStartMs(_0x543dac,_0x2df950,_0x1455f7,_0x2d54b4=0x1){const _0x8a7f3f=_0x46af5e,_0xd477cd=tzParts(_0x543dac,_0x1455f7);switch(_0x2df950){case'hour':return zonedWallToMs(_0xd477cd['y'],_0xd477cd['mo'],_0xd477cd['d'],_0xd477cd['h'],0x0,0x0,_0x1455f7);case _0x8a7f3f(0x88f):return zonedWallToMs(_0xd477cd['y'],_0xd477cd['mo'],_0xd477cd['d'],0x0,0x0,0x0,_0x1455f7);case _0x8a7f3f(0x6f1):return zonedWallToMs(_0xd477cd['y'],_0xd477cd['mo'],_0xd477cd['d']-weekStartOffsetDays(_0xd477cd['wd'],_0x2d54b4),0x0,0x0,0x0,_0x1455f7);case'month':return zonedWallToMs(_0xd477cd['y'],_0xd477cd['mo'],0x1,0x0,0x0,0x0,_0x1455f7);case _0x8a7f3f(0x73e):return zonedWallToMs(_0xd477cd['y'],0x0,0x1,0x0,0x0,0x0,_0x1455f7);default:return NaN;}}function calendarCellEndMs(_0x91614b,_0x3671fe,_0xc44627,_0x4427a3=0x1){const _0x229cad=_0x46af5e,_0x1aa110=calendarCellStartMs(_0x91614b,_0x3671fe,_0xc44627,_0x4427a3);if(!isNum(_0x1aa110))return NaN;const _0x4cab62=tzParts(_0x1aa110,_0xc44627);switch(_0x3671fe){case _0x229cad(0x2ab):return zonedWallToMs(_0x4cab62['y'],_0x4cab62['mo'],_0x4cab62['d'],_0x4cab62['h']+0x1,0x0,0x0,_0xc44627);case'date':return zonedWallToMs(_0x4cab62['y'],_0x4cab62['mo'],_0x4cab62['d']+0x1,0x0,0x0,0x0,_0xc44627);case _0x229cad(0x6f1):return zonedWallToMs(_0x4cab62['y'],_0x4cab62['mo'],_0x4cab62['d']+0x7,0x0,0x0,0x0,_0xc44627);case _0x229cad(0xe7d):return zonedWallToMs(_0x4cab62['y'],_0x4cab62['mo']+0x1,0x1,0x0,0x0,0x0,_0xc44627);case _0x229cad(0x73e):return zonedWallToMs(_0x4cab62['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0xc44627);default:return NaN;}}function endOfPeriodFromGraphStart(_0x27f35a,_0xc3c3aa,_0x7524,_0xdc1bfc=0x1,_0x5d85af=0x0){const _0x5e8fa9=_0x46af5e,_0x30679d=tzParts(_0xc3c3aa['getTime'](),_0x7524),_0x167077=(_0x1266db,_0x27eec2,_0x12fade)=>new Date(zonedWallToMs(_0x1266db,_0x27eec2,_0x12fade,0x0,0x0,0x0,_0x7524));switch(_0x27f35a){case _0x5e8fa9(0x309):case _0x5e8fa9(0x7b0):return _0x167077(_0x30679d['y'],_0x30679d['mo'],_0x30679d['d']+0x1);case _0x5e8fa9(0x9b9):return _0x167077(_0x30679d['y'],_0x30679d['mo'],_0x30679d['d']+0x2);case _0x5e8fa9(0x6f1):return _0x167077(_0x30679d['y'],_0x30679d['mo'],_0x30679d['d']-weekStartOffsetDays(_0x30679d['wd'],_0xdc1bfc)+0x7);case _0x5e8fa9(0xe7d):return _0x167077(_0x30679d['y'],_0x30679d['mo']+0x1,0x1);case'year':return _0x167077(_0x30679d['y']+(_0x30679d['mo']<_0x5d85af?0x0:0x1),_0x5d85af,0x1);default:return _0x167077(_0x30679d['y'],_0x30679d['mo'],_0x30679d['d']+0x1);}}function resolveAnchorWindow(_0x361129,_0x119df9,_0x21638f){const _0x8148b=_0x46af5e,_0x306f9a=new Date();let _0x1c18fd=_0x306f9a,_0x3d039b;if(isNum(_0x119df9))return _0x3d039b=new Date(_0x306f9a[_0x8148b(0x1028)]()-_0x119df9*0xe10*0x3e8),{'start':_0x3d039b,'end':_0x1c18fd};if(_0x361129[_0x8148b(0x69f)])_0x3d039b=parseGraphStart(_0x361129[_0x8148b(0x69f)],_0x306f9a,resolveDisplayTimeZone(_0x21638f,_0x361129),resolveFirstWeekday(_0x21638f),resolveYearStartMonth(_0x361129));else{const _0x40cc17=toNum(_0x361129[_0x8148b(0xabc)])??0x18;_0x3d039b=new Date(_0x306f9a[_0x8148b(0x1028)]()-_0x40cc17*0xe10*0x3e8);}return{'start':_0x3d039b,'end':_0x1c18fd};}function groupBucketMs(_0x3220a2,_0x478d26,_0x188eaf){const _0x56c1b8=_0x46af5e,_0x22ca7e=/^([0-9]+)h$/i['exec'](String(_0x3220a2||''));if(_0x22ca7e&&Number(_0x22ca7e[0x1])>0x0)return Number(_0x22ca7e[0x1])*0xe10*0x3e8;switch(_0x3220a2){case'hour':return 0xe10*0x3e8;case _0x56c1b8(0x88f):case'day':return 0x15180*0x3e8;case _0x56c1b8(0x6f1):return 0x7*0x15180*0x3e8;case _0x56c1b8(0xe7d):return 0x1e*0x15180*0x3e8;case'year':return 0x16d*0x15180*0x3e8;case _0x56c1b8(0xbcc):return 0x0;case _0x56c1b8(0x1a1):default:{const _0x13bf8c=toNum(_0x188eaf);if(isNum(_0x13bf8c)&&_0x13bf8c>0x0)return 0x36ee80/_0x13bf8c;const _0x1c4084=(_0x478d26||0x18)*0xe10*0x3e8;return _0x1c4084/0x3c;}}}function _isAutoScaleSafe(_0x414917){const _0x3081a7=_0x46af5e,_0xbab651=_0x414917?.[_0x3081a7(0xd97)]||[];for(const _0x9bb56c of _0xbab651){if(!_0x9bb56c||typeof _0x9bb56c!=='object')continue;if(_0x9bb56c[_0x3081a7(0xed4)]!=null)continue;const _0x2c7480=_0x9bb56c[_0x3081a7(0x4ff)];if(_0x2c7480!==undefined&&_0x2c7480!==null&&_0x2c7480!==''&&_0x2c7480!==0x0&&_0x2c7480!=='0')return![];const _0xad6d92=toNum(_0x9bb56c[_0x3081a7(0x510)]);if(isNum(_0xad6d92)&&_0xad6d92!==0x0)return![];if(_0x9bb56c[_0x3081a7(0x102c)])return![];}return!![];}const AUTO_SCALE_RULE_GROUPS=new Set([_0x46af5e(0x1a1),'hour','2h','3h','4h','6h',_0x46af5e(0x513),_0x46af5e(0x88f),_0x46af5e(0x6f1),_0x46af5e(0xe7d),_0x46af5e(0x73e),_0x46af5e(0xbcc)]),ENTITY_GROUP_BY=new Set(['hour','2h','3h','4h','6h',_0x46af5e(0x513),_0x46af5e(0x88f),_0x46af5e(0x6f1),_0x46af5e(0xe7d),'year']),_entityGroupByWarned=new Set();function resolveAutoScaleRule(_0x51196b,_0x41313d){const _0x1c9b48=_0x46af5e,_0x3d81f0=_0x51196b?.[_0x1c9b48(0x8eb)];if(!Array[_0x1c9b48(0x902)](_0x3d81f0)||!_0x3d81f0[_0x1c9b48(0xc02)]||!isNum(_0x41313d)||_0x41313d<=0x0)return null;let _0x2a1db9=null;for(const _0x200c23 of _0x3d81f0){if(!_0x200c23||typeof _0x200c23!==_0x1c9b48(0xc18))continue;const _0x35ebfb=toNum(_0x200c23[_0x1c9b48(0x50a)]);let _0x589555=_0x200c23[_0x1c9b48(0x3b2)]===_0x1c9b48(0x309)?_0x1c9b48(0x88f):_0x200c23[_0x1c9b48(0x3b2)];if(typeof _0x589555==='string'&&/^\d+h$/[_0x1c9b48(0x920)](_0x589555)){}else{if(!AUTO_SCALE_RULE_GROUPS[_0x1c9b48(0x101d)](_0x589555))_0x589555=null;}if(!isNum(_0x35ebfb)||_0x35ebfb<=0x0||!_0x589555)continue;if(_0x41313d<=_0x35ebfb&&(!_0x2a1db9||_0x35ebfb<_0x2a1db9['up'])){const _0x2b5557=toNum(_0x200c23['points_per_hour']);_0x2a1db9={'up':_0x35ebfb,'group_by':_0x589555,'points_per_hour':isNum(_0x2b5557)&&_0x2b5557>0x0?_0x2b5557:null,'x_axis_interval':typeof _0x200c23[_0x1c9b48(0x1c9)]===_0x1c9b48(0xade)&&_0x200c23['x_axis_interval'][_0x1c9b48(0xa11)]()?_0x200c23[_0x1c9b48(0x1c9)][_0x1c9b48(0xa11)]():null,'datetime_format':typeof _0x200c23[_0x1c9b48(0x494)]===_0x1c9b48(0xade)&&_0x200c23[_0x1c9b48(0x494)][_0x1c9b48(0xa11)]()?_0x200c23[_0x1c9b48(0x494)][_0x1c9b48(0xa11)]():null,'x_axis_datetime_format':typeof _0x200c23[_0x1c9b48(0xf8f)]===_0x1c9b48(0xade)&&_0x200c23['x_axis_datetime_format']['trim']()?_0x200c23[_0x1c9b48(0xf8f)][_0x1c9b48(0xa11)]():null};}}return _0x2a1db9?{'group_by':_0x2a1db9[_0x1c9b48(0x3b2)],'points_per_hour':_0x2a1db9[_0x1c9b48(0x71e)],'x_axis_interval':_0x2a1db9['x_axis_interval'],'datetime_format':_0x2a1db9[_0x1c9b48(0x494)],'x_axis_datetime_format':_0x2a1db9[_0x1c9b48(0xf8f)]}:null;}function activeScaleRule(_0x28d7ec,_0x525d6b){const _0xf80450=_0x46af5e,_0x5e51da=toNum(_0x28d7ec?.[_0xf80450(0x881)]),_0x2327e7=isNum(_0x5e51da)&&_0x5e51da>0x0?_0x5e51da:_0x525d6b;if(!(_0x28d7ec?.['auto_scale_points']&&isNum(_0x2327e7)&&_0x2327e7>0x0&&_isAutoScaleSafe(_0x28d7ec)))return null;const _0x15a20d=resolveAutoScaleRule(_0x28d7ec,_0x2327e7);if(_0x15a20d&&_0x15a20d['group_by']===(_0x28d7ec['group_by']||_0xf80450(0x1a1))&&_0x15a20d['points_per_hour']==null&&!_0x15a20d[_0xf80450(0x1c9)]&&!_0x15a20d[_0xf80450(0x494)]&&!_0x15a20d[_0xf80450(0xf8f)])return null;return _0x15a20d;}function effXAxisInterval(_0x5042e7){const _0x463779=_0x46af5e,_0x51c7c9=_0x5042e7?.[_0x463779(0xbdf)];if(_0x51c7c9!=null)return _0x51c7c9['x_axis_interval']||null;return _0x5042e7?.['x_axis_interval'];}function effDatetimeFormat(_0x52f87d){const _0x419311=_0x46af5e,_0x34089f=_0x52f87d?.[_0x419311(0xbdf)];if(_0x34089f!=null)return _0x34089f[_0x419311(0x494)]||null;return _0x52f87d?.[_0x419311(0x494)];}function effXAxisDatetimeFormat(_0x11baa9){const _0x5ec092=_0x46af5e,_0x1f3b26=_0x11baa9?.[_0x5ec092(0xbdf)],_0x1528ac=_0x1f3b26!=null?_0x1f3b26[_0x5ec092(0xf8f)]||null:_0x11baa9?.[_0x5ec092(0xf8f)];return typeof _0x1528ac===_0x5ec092(0xade)&&_0x1528ac[_0x5ec092(0xa11)]()&&_0x1528ac!==_0x5ec092(0x8e1)?_0x1528ac[_0x5ec092(0xa11)]():null;}function resolveAutoScale(_0x5249ce){const _0x4487eb=_0x46af5e,_0x5f2638=_0x5249ce;if(!isNum(_0x5f2638)||_0x5f2638<=0x0)return null;if(_0x5f2638<=0x4)return{'group_by':_0x4487eb(0x1a1),'points_per_hour':0xc};if(_0x5f2638<=0xc)return{'group_by':_0x4487eb(0x1a1),'points_per_hour':0x4};if(_0x5f2638<=0x30)return{'group_by':'interval','points_per_hour':0x2};const _0xa18b77=Math[_0x4487eb(0x686)](_0x5f2638/0x18);if(_0xa18b77<=0x6)return{'group_by':'hour','points_per_hour':0x1};if(_0xa18b77<=0x3b)return{'group_by':_0x4487eb(0x88f),'points_per_hour':null};if(_0xa18b77<=0xb4)return{'group_by':'week','points_per_hour':null};return{'group_by':'month','points_per_hour':null};}function sameStateVal(_0x540ed2,_0x2b5508){const _0x42fb21=_0x46af5e;if(_0x540ed2===_0x2b5508)return!![];if(!_0x540ed2||!_0x2b5508)return![];if(_0x540ed2[_0x42fb21(0x5f5)]!==_0x2b5508['state'])return![];const _0x3d6a92=_0x540ed2[_0x42fb21(0x467)],_0x4d7e27=_0x2b5508[_0x42fb21(0x467)];if(_0x3d6a92===_0x4d7e27)return!![];if(!_0x3d6a92||!_0x4d7e27)return![];const _0x1352c1=Object[_0x42fb21(0x3ab)](_0x3d6a92),_0x337dc9=Object['keys'](_0x4d7e27);if(_0x1352c1[_0x42fb21(0xc02)]!==_0x337dc9[_0x42fb21(0xc02)])return![];for(const _0x5a6b5 of _0x1352c1){if(_0x3d6a92[_0x5a6b5]!==_0x4d7e27[_0x5a6b5])return![];}return!![];}function resolvePointsPerHour(_0x3235aa,_0x113141,_0x3ea992){const _0x458f8e=_0x46af5e,_0x145acf=toNum(_0x113141?.['points_per_hour']);if(isNum(_0x145acf)&&_0x145acf>0x0)return _0x145acf;let _0x405032=toNum(_0x3235aa?.[_0x458f8e(0x71e)]);if(!isNum(_0x405032)||_0x405032<=0x0)return null;const _0x3af1b4=toNum(_0x3235aa?.[_0x458f8e(0x881)]),_0x2f8d3d=isNum(_0x3af1b4)&&_0x3af1b4>0x0?_0x3af1b4:_0x3ea992;if(_0x3235aa?.[_0x458f8e(0x323)]&&isNum(_0x2f8d3d)&&_0x2f8d3d>0x0){if(_isAutoScaleSafe(_0x3235aa)){const _0x50c4cc=resolveAutoScaleRule(_0x3235aa,_0x2f8d3d);if(_0x50c4cc){if(_0x50c4cc[_0x458f8e(0x71e)]!==null)return _0x50c4cc['points_per_hour'];if(_0x50c4cc['group_by']!==_0x458f8e(0x1a1)&&_0x50c4cc[_0x458f8e(0x3b2)]!=='raw')return 0x1;}else{const _0x262834=resolveAutoScale(_0x2f8d3d);if(_0x262834&&_0x262834[_0x458f8e(0x71e)]!==null)return _0x262834[_0x458f8e(0x71e)];if(_0x262834)return 0x1;}}const _0x5193b3=toNum(_0x3235aa?.[_0x458f8e(0xabc)])||0x18,_0xd51825=_0x405032*(_0x5193b3/_0x2f8d3d);_0x405032=Math[_0x458f8e(0x91f)](0x2,Math['ceil'](Math[_0x458f8e(0x692)](Math[_0x458f8e(0x220)](0.5,_0xd51825))));}return _0x405032;}function resolveGroupBy(_0x1d16db,_0x15c5c8,_0x3d835e){const _0x37545c=_0x46af5e,_0x24835d=toNum(_0x1d16db?.[_0x37545c(0x881)]),_0x86bed3=isNum(_0x24835d)&&_0x24835d>0x0?_0x24835d:_0x15c5c8;let _0x20d465=_0x1d16db?.[_0x37545c(0x3b2)]||'interval';if(_0x1d16db?.[_0x37545c(0x323)]&&isNum(_0x86bed3)&&_0x86bed3>0x0&&_isAutoScaleSafe(_0x1d16db)){const _0x3d1070=resolveAutoScaleRule(_0x1d16db,_0x86bed3);if(_0x3d1070)_0x20d465=_0x3d1070[_0x37545c(0x3b2)];else{const _0x106a0d=resolveAutoScale(_0x86bed3);if(_0x106a0d)_0x20d465=_0x106a0d[_0x37545c(0x3b2)];}}const _0xaf7aba=_0x1d16db?.[_0x37545c(0xabc)],_0x476057=_0x30d8cf=>_0x30d8cf===_0x37545c(0x309)?_0x37545c(0x88f):String(_0x30d8cf),_0x27acd3=groupBucketMs(_0x20d465,_0xaf7aba,resolvePointsPerHour(_0x1d16db,null,_0x15c5c8));let _0x4b65cc=_0x20d465,_0x57d0be=_0x27acd3;if(_0x20d465!==_0x37545c(0xbcc))for(const _0x50fd31 of _0x1d16db?.['entities']||[]){const _0x13f5ca=_0x50fd31&&_0x50fd31[_0x37545c(0x3b2)]!=null&&_0x50fd31[_0x37545c(0x3b2)]!==''?_0x476057(_0x50fd31[_0x37545c(0x3b2)]):null;if(!_0x13f5ca||!ENTITY_GROUP_BY[_0x37545c(0x101d)](_0x13f5ca))continue;const _0x2dda72=groupBucketMs(_0x13f5ca,_0xaf7aba,null);_0x2dda72<_0x57d0be&&(_0x4b65cc=_0x13f5ca,_0x57d0be=_0x2dda72);}if(!_0x3d835e)return _0x4b65cc;const _0x316cd4=_0x3d835e[_0x37545c(0x3b2)];if(_0x316cd4==null||_0x316cd4==='')return _0x20d465;const _0xe87bb4=_0x476057(_0x316cd4);if(ENTITY_GROUP_BY[_0x37545c(0x101d)](_0xe87bb4)&&_0x20d465!==_0x37545c(0xbcc))return groupBucketMs(_0xe87bb4,_0xaf7aba,null)>=_0x57d0be?_0xe87bb4:_0x4b65cc;const _0x37a797=(_0x3d835e['entity']||'')+'|'+_0xe87bb4+'|'+_0x20d465;return!_entityGroupByWarned['has'](_0x37a797)&&(_entityGroupByWarned[_0x37545c(0x982)](_0x37a797),console[_0x37545c(0x9a7)](_0x37545c(0xab3)+_0xe87bb4+_0x37545c(0xf11)+(_0x3d835e[_0x37545c(0x974)]||_0x37545c(0x974))+_0x37545c(0x6e8))),_0x20d465;}function computeTrend(_0x4126dc,_0x4c6f5f){const _0x21b58d=_0x46af5e;if(!_0x4126dc||_0x4126dc[_0x21b58d(0xc02)]<0x2)return'stable';const _0x4957b5=_0x4126dc[_0x21b58d(0x919)](_0x39d0c2=>_0x39d0c2&&_0x39d0c2['v']!==null&&_0x39d0c2['v']!==undefined&&!Number[_0x21b58d(0xd8f)](_0x39d0c2['v']));if(_0x4957b5[_0x21b58d(0xc02)]<0x2)return _0x21b58d(0x2fd);let _0x4d512a;if(isNum(_0x4c6f5f)&&_0x4c6f5f>0x0){const _0xa73838=_0x4957b5[_0x4957b5[_0x21b58d(0xc02)]-0x1]['t'],_0x196ebf=_0xa73838-_0x4c6f5f*0x36ee80;_0x4d512a=_0x4957b5[_0x21b58d(0x919)](_0x2d7317=>_0x2d7317['t']>=_0x196ebf);}else _0x4d512a=_0x4957b5[_0x21b58d(0x165)](-Math[_0x21b58d(0x220)](0x2,Math[_0x21b58d(0xedc)](_0x4957b5[_0x21b58d(0xc02)]/0x3)));const _0x1ea4ab=0x4;_0x4d512a[_0x21b58d(0xc02)]<_0x1ea4ab&&_0x4957b5['length']>=_0x1ea4ab&&(_0x4d512a=_0x4957b5[_0x21b58d(0x165)](-_0x1ea4ab));if(_0x4d512a['length']<_0x1ea4ab)return _0x21b58d(0x2fd);const _0x2ce8c0=0x78;let _0x3eef69=_0x4d512a;if(_0x4d512a['length']>_0x2ce8c0){_0x3eef69=new Array(_0x2ce8c0);const _0x409d4d=(_0x4d512a[_0x21b58d(0xc02)]-0x1)/(_0x2ce8c0-0x1);for(let _0x28821c=0x0;_0x28821c<_0x2ce8c0;_0x28821c++)_0x3eef69[_0x28821c]=_0x4d512a[Math[_0x21b58d(0x686)](_0x28821c*_0x409d4d)];}const _0x1cf38a=_0x3eef69['length'];let _0x55f3b0=0x0;for(let _0x498f7b=0x0;_0x498f7b<_0x1cf38a;_0x498f7b++){const _0x165562=_0x3eef69[_0x498f7b]['v'];for(let _0x206ced=_0x498f7b+0x1;_0x206ced<_0x1cf38a;_0x206ced++){const _0x2c2600=_0x3eef69[_0x206ced]['v']-_0x165562;if(_0x2c2600>0x0)_0x55f3b0++;else{if(_0x2c2600<0x0)_0x55f3b0--;}}}const _0x10cd5a=_0x1cf38a*(_0x1cf38a-0x1)*(0x2*_0x1cf38a+0x5)/0x12;if(_0x10cd5a<=0x0)return _0x21b58d(0x2fd);const _0x284847=_0x55f3b0>0x0?(_0x55f3b0-0x1)/Math[_0x21b58d(0x2ed)](_0x10cd5a):_0x55f3b0<0x0?(_0x55f3b0+0x1)/Math[_0x21b58d(0x2ed)](_0x10cd5a):0x0,_0x2c741b=1.28;if(_0x284847>_0x2c741b)return'up';if(_0x284847<-_0x2c741b)return _0x21b58d(0x79c);return'stable';}function lineDashArray(_0x3a233c,_0x126636){const _0x3010f3=_0x46af5e;if(_0x3a233c!=='dashed'&&_0x3a233c!==_0x3010f3(0x998))return'';const _0x31b640=Math['max'](toNum(_0x126636)||2.5,0.5);if(_0x3a233c===_0x3010f3(0x2b5))return(_0x31b640*3.2)[_0x3010f3(0x198)](0x1)+','+(_0x31b640*2.2)[_0x3010f3(0x198)](0x1);return'0.1,'+(_0x31b640*2.1)[_0x3010f3(0x198)](0x1);}function trendDirection(_0x4a4e95,_0x38457d){const _0x3ae49a=_0x46af5e;if(!_0x4a4e95)return _0x3ae49a(0x2fd);const _0x204e7f=_0x38457d[_0x3ae49a(0xc48)];if(_0x38457d[_0x3ae49a(0xebb)]||_0x38457d[_0x3ae49a(0x455)]||_0x204e7f===_0x3ae49a(0x934)||_0x204e7f===_0x3ae49a(0xe34)){const _0x21129b=_0x4a4e95[_0x3ae49a(0x93a)];return _0x21129b&&_0x21129b[_0x3ae49a(0xc02)]>=0x2?computeTrend(_0x21129b,toNum(_0x38457d['trend_period_hours'])):_0x3ae49a(0x2fd);}const _0x222e57=_0x4a4e95['raw']&&_0x4a4e95[_0x3ae49a(0xbcc)][_0x3ae49a(0xc02)]>=0x2?_0x4a4e95[_0x3ae49a(0xbcc)]:_0x4a4e95['points'];if(!_0x222e57||_0x222e57[_0x3ae49a(0xc02)]<0x2)return _0x3ae49a(0x2fd);let _0x40e031=computeTrend(_0x222e57,toNum(_0x38457d[_0x3ae49a(0xed9)]));if(_0x38457d[_0x3ae49a(0xd57)])_0x40e031=_0x40e031==='up'?_0x3ae49a(0x79c):_0x40e031===_0x3ae49a(0x79c)?'up':_0x3ae49a(0x2fd);return _0x40e031;}const FETCH_CACHE_TTL_MS=0xea60,VIS_HEARTBEAT_MS=0x7530,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,_sharedFetchCache=new Map(),_inflightFetches=new Map(),INFLIGHT_MAX_MS=0xea60,_inflightGet=_0x4016eb=>{const _0x1c2e86=_0x46af5e,_0x4be2d5=_inflightFetches[_0x1c2e86(0xc3f)](_0x4016eb);if(!_0x4be2d5)return null;if(Date[_0x1c2e86(0x69d)]()-_0x4be2d5['t']>INFLIGHT_MAX_MS*(_0x4be2d5[_0x1c2e86(0x1027)]||0x1))return _0x4be2d5[_0x1c2e86(0xa44)]=!![],null;return _0x4be2d5['prom'];},_inflightSet=(_0x254dfa,_0x13302f,_0x42b4c7)=>{const _0xa021e1=_0x46af5e,_0x42e15e=_inflightFetches['get'](_0x254dfa),_0x16173c=_0x42e15e?.[_0xa021e1(0xa44)]?Math[_0xa021e1(0xba1)]((_0x42e15e[_0xa021e1(0x1027)]||0x1)*0x2,0x8):0x1;return _inflightFetches[_0xa021e1(0xa2d)](_0x254dfa,{'prom':_0x13302f,'token':_0x42b4c7,'t':Date[_0xa021e1(0x69d)](),'gen':_0x16173c}),_0x13302f[_0xa021e1(0x9d5)](()=>{})[_0xa021e1(0xd2c)](()=>{const _0x432c21=_0xa021e1;if(_inflightFetches[_0x432c21(0xc3f)](_0x254dfa)?.[_0x432c21(0xc68)]===_0x13302f)_inflightFetches[_0x432c21(0xcc1)](_0x254dfa);}),_0x13302f;},_inflightCurrent=(_0xccc483,_0x4efcc9)=>_inflightFetches[_0x46af5e(0xc3f)](_0xccc483)?.[_0x46af5e(0xa4a)]===_0x4efcc9,_statPeriodFloor=(_0x4153d9,_0x3fc089,_0x58fc7f)=>{const _0x6ce5e5=_0x46af5e;let _0x5e0629=_0x58fc7f;for(const _0x1e22bd of _0x3fc089){const _0x244b7c=_0x4153d9?.[_0x1e22bd];if(!Array['isArray'](_0x244b7c))continue;for(let _0x2df115=_0x244b7c[_0x6ce5e5(0xc02)]-0x1;_0x2df115>=0x0;_0x2df115--){const _0x3c5e89=_0x244b7c[_0x2df115]?.['t'];if(!isNum(_0x3c5e89)||_0x3c5e89>_0x58fc7f)continue;if(_0x3c5e89<_0x5e0629)_0x5e0629=_0x3c5e89;break;}}return _0x5e0629;},HF_ROWS_PER_HOUR=0xc8,HF_MIN_ROWS=0x1388,HF_MIN_WINDOW_H=0x6,HF_FINE_MAX_H=0xc,_hfDetected=new Map();try{for(let i=localStorage[_0x46af5e(0xc02)]-0x1;i>=0x0;i--){const k=localStorage[_0x46af5e(0x1ec)](i);if(!k||!k[_0x46af5e(0xed0)](_0x46af5e(0xda7)))continue;const ts=+(localStorage[_0x46af5e(0xaea)](k)||0x0);if(Date[_0x46af5e(0x69d)]()-ts<0x240c8400)_hfDetected[_0x46af5e(0xa2d)](k['slice'](0x7),!![]);else localStorage[_0x46af5e(0x508)](k);}}catch{}function _markHighFrequency(_0x248e02){const _0x2752f3=_0x46af5e;if(_hfDetected['has'](_0x248e02))return![];_hfDetected[_0x2752f3(0xa2d)](_0x248e02,!![]);try{localStorage[_0x2752f3(0x387)](_0x2752f3(0xda7)+_0x248e02,String(Date[_0x2752f3(0x69d)]()));}catch{}return console[_0x2752f3(0xe7b)](_0x2752f3(0x418)+_0x248e02+_0x2752f3(0xa5f)),!![];}class DataFetcher{[_0x46af5e(0x1f1)](_0x1e4f8b,_0x528e81){const _0x5ba71f=_0x46af5e;if(this[_0x5ba71f(0x1dd)])console[_0x5ba71f(0x5e8)](_0x5ba71f(0x4d1),_0x1e4f8b,_0x528e81);}constructor(){const _0x558351=_0x46af5e;this[_0x558351(0xd35)]=_sharedFetchCache,this[_0x558351(0xb8e)]=0x0;}['clearCache'](){const _0x48afdd=_0x46af5e;this[_0x48afdd(0xb8e)]=Date[_0x48afdd(0x69d)]();}[_0x46af5e(0xa96)](_0x2f4fb2){const _0x3ef6de=_0x46af5e,_0x5ceb01=this['_cache'][_0x3ef6de(0xc3f)](_0x2f4fb2);if(!_0x5ceb01)return null;if(Date[_0x3ef6de(0x69d)]()-_0x5ceb01['ts']>FETCH_CACHE_TTL_MS||_0x5ceb01['ts']<this['_minTs']){if(Date[_0x3ef6de(0x69d)]()-_0x5ceb01['ts']>FETCH_CACHE_TTL_MS)this['_cache'][_0x3ef6de(0xcc1)](_0x2f4fb2);return null;}return this['_cache'][_0x3ef6de(0xcc1)](_0x2f4fb2),this[_0x3ef6de(0xd35)][_0x3ef6de(0xa2d)](_0x2f4fb2,_0x5ceb01),_0x5ceb01[_0x3ef6de(0x60e)];}[_0x46af5e(0x95a)](_0x11292a,_0x5a2b3a){const _0x5b784f=_0x46af5e,_0x107779=Date['now']();for(const [_0x35aed5,_0x164de1]of this[_0x5b784f(0xd35)]){if(_0x107779-_0x164de1['ts']>FETCH_CACHE_TTL_MS)this[_0x5b784f(0xd35)][_0x5b784f(0xcc1)](_0x35aed5);}if(this[_0x5b784f(0xd35)]['size']>=FETCH_CACHE_MAX){const _0x5a4fd7=this[_0x5b784f(0xd35)][_0x5b784f(0x3ab)]()[_0x5b784f(0x2db)]()[_0x5b784f(0x2ea)];if(_0x5a4fd7!==undefined)this['_cache'][_0x5b784f(0xcc1)](_0x5a4fd7);}this[_0x5b784f(0xd35)]['set'](_0x11292a,{'data':_0x5a2b3a,'ts':_0x107779});}async[_0x46af5e(0xba9)](_0x192d46,_0x28cdf9,_0xbea113,_0x1100d8,_0x95d0ed=!![]){const _0x848cf1=_0x46af5e;if(!_0x28cdf9[_0x848cf1(0xc02)])return{};const _0x83a305=_0x28cdf9[_0x848cf1(0xb3f)](_0x1b1a89=>_0x1b1a89['id']),_0x102b3d=new Map();for(const _0xd7bf2f of _0x28cdf9){const _0x260530=[][_0x848cf1(0x9da)](_0xd7bf2f['attrs']||[],_0xd7bf2f['attribute']?[_0xd7bf2f['attribute']]:[]);for(const _0x4ac645 of _0x260530){if(_0x4ac645===null||_0x4ac645===undefined||_0x4ac645===''||typeof _0x4ac645==='object')continue;if(!_0x102b3d[_0x848cf1(0x101d)](_0xd7bf2f['id']))_0x102b3d['set'](_0xd7bf2f['id'],new Set());_0x102b3d[_0x848cf1(0xc3f)](_0xd7bf2f['id'])[_0x848cf1(0x982)](String(_0x4ac645));}}const _0x50e8e6=_0x102b3d[_0x848cf1(0xc44)]>0x0,_0x35c880=_0x1100d8['getTime']()-_0xbea113[_0x848cf1(0x1028)]()>=0x5265c00?0xea60:0x2710,_0x528429=Math[_0x848cf1(0xedc)](_0xbea113[_0x848cf1(0x1028)]()/_0x35c880)*_0x35c880,_0x3f72de=Math['floor'](_0x1100d8[_0x848cf1(0x1028)]()/_0x35c880)*_0x35c880,_0x34594d=_0x83a305[_0x848cf1(0xb3f)](_0x2db916=>_0x102b3d['has'](_0x2db916)?_0x2db916+'@'+Array[_0x848cf1(0xf9e)](_0x102b3d[_0x848cf1(0xc3f)](_0x2db916))[_0x848cf1(0xd09)]()[_0x848cf1(0x888)]('+'):_0x2db916)[_0x848cf1(0x888)](','),_0x1be68a='h:'+_0x34594d+'|'+(_0x50e8e6?'A':'S')+'|'+_0x528429+'|'+_0x3f72de;if(_0x95d0ed){const _0x2cdae0=this['_cacheGet'](_0x1be68a);if(_0x2cdae0)return this['_dbg'](_0x848cf1(0x431),_0x1be68a),_0x2cdae0;}if(_0x95d0ed){const _0x2fa899=_inflightGet(_0x1be68a);if(_0x2fa899)return this[_0x848cf1(0x1f1)](_0x848cf1(0x682),_0x1be68a),_0x2fa899;}const _0x1ad6e8={},_0x1d15a9=((async()=>{const _0x7f35df=_0x848cf1,_0xd666fc=performance[_0x7f35df(0x69d)]();let _0x2652c7={},_0x38110e=!![],_0xebae7d=_0x7f35df(0x412);try{const _0x59443a=Array[_0x7f35df(0xf9e)](new Set(_0x83a305[_0x7f35df(0x919)](_0x176f97=>_0x102b3d['has'](_0x176f97)))),_0x5d3ac1=Array[_0x7f35df(0xf9e)](new Set(_0x83a305[_0x7f35df(0x919)](_0x521a8b=>!_0x102b3d[_0x7f35df(0x101d)](_0x521a8b)))),_0x14603f=[];_0x59443a['length']&&_0x14603f[_0x7f35df(0xb31)](this['_historyNet'](_0x192d46,_0x59443a,_0xbea113,_0x1100d8,!![])['then'](_0x32caa8=>{const _0x40d669=_0x7f35df;for(const _0x4dc09c in _0x32caa8[_0x40d669(0x72e)])_0x32caa8['rows'][_0x4dc09c]=dedupAttributeRows(_0x32caa8[_0x40d669(0x72e)][_0x4dc09c],_0x102b3d['get'](_0x4dc09c));return _0x32caa8;}));if(_0x5d3ac1[_0x7f35df(0xc02)])_0x14603f[_0x7f35df(0xb31)](this[_0x7f35df(0x9f7)](_0x192d46,_0x5d3ac1,_0xbea113,_0x1100d8,![]));const _0x3ba8dc=await Promise[_0x7f35df(0x4ce)](_0x14603f),_0x44b696=[];for(const _0x184ab6 of _0x3ba8dc){_0x184ab6[_0x7f35df(0x555)]==='fulfilled'?(Object[_0x7f35df(0xb67)](_0x2652c7,_0x184ab6[_0x7f35df(0x2ea)]['rows']),_0x44b696[_0x7f35df(0xb31)](_0x184ab6[_0x7f35df(0x2ea)]['via'])):(_0x38110e=![],console[_0x7f35df(0x9a7)](_0x7f35df(0x274),_0x184ab6[_0x7f35df(0x714)]));}if(_0x44b696[_0x7f35df(0xc02)])_0xebae7d=_0x44b696[_0x7f35df(0x888)]('+');}catch(_0x3932b0){_0x38110e=![],console['warn'](_0x7f35df(0x274),_0x3932b0);}this[_0x7f35df(0x1f1)](_0x7f35df(0x3cf),{'ids':_0x83a305[_0x7f35df(0x888)](','),'via':_0xebae7d,'rows':Object['values'](_0x2652c7)[_0x7f35df(0x617)]((_0x662771,_0x251525)=>_0x662771+_0x251525[_0x7f35df(0xc02)],0x0),'ms':Math[_0x7f35df(0x686)](performance[_0x7f35df(0x69d)]()-_0xd666fc)});if(_0x95d0ed&&_0x38110e&&_inflightCurrent(_0x1be68a,_0x1ad6e8))this[_0x7f35df(0x95a)](_0x1be68a,_0x2652c7);return _0x2652c7;})());return _inflightSet(_0x1be68a,_0x1d15a9,_0x1ad6e8);}async[_0x46af5e(0x9f7)](_0x2c42a8,_0x3d5301,_0x33fab1,_0x194eeb,_0x2b320f){const _0x4a2755=_0x46af5e;if(typeof _0x2c42a8?.[_0x4a2755(0x748)]===_0x4a2755(0x8c6)&&Date['now']()>=_wsHistoryUnavailableUntil)try{const _0x489bcc=await _0x2c42a8['callWS']({'type':_0x4a2755(0x3bb),'start_time':_0x33fab1[_0x4a2755(0x4d9)](),'end_time':_0x194eeb[_0x4a2755(0x4d9)](),'entity_ids':_0x3d5301,'include_start_time_state':!![],'significant_changes_only':!_0x2b320f,'minimal_response':!_0x2b320f,'no_attributes':!_0x2b320f}),_0x14c864={};for(const _0x11d4a9 of _0x3d5301){const _0x45ed63=_0x489bcc?.[_0x11d4a9];if(!Array[_0x4a2755(0x902)](_0x45ed63)||!_0x45ed63[_0x4a2755(0xc02)])continue;_0x14c864[_0x11d4a9]=_0x45ed63[_0x4a2755(0xb3f)](_0x13dc42=>compressedSampleForCache(_0x13dc42,_0x2b320f));}return{'rows':_0x14c864,'via':'ws'};}catch(_0x586791){if(_0x586791&&_0x586791[_0x4a2755(0xc9d)]===_0x4a2755(0x96c))_wsHistoryUnavailableUntil=Date[_0x4a2755(0x69d)]()+0x493e0,!_wsHistoryWarned&&(_wsHistoryWarned=!![],console[_0x4a2755(0xe7b)](_0x4a2755(0x364)));else throw _0x586791;}const _0xcd929a=_0x2b320f?'&significant_changes_only=0':_0x4a2755(0xd2e),_0x323e1f=_0x4a2755(0x9d0)+_0x33fab1[_0x4a2755(0x4d9)]()+(_0x4a2755(0x1bf)+encodeURIComponent(_0x194eeb[_0x4a2755(0x4d9)]()))+(_0x4a2755(0xc30)+encodeURIComponent(_0x3d5301['join'](',')))+_0xcd929a,_0x2b7cd6=await _0x2c42a8[_0x4a2755(0xdfd)](_0x4a2755(0xf8b),_0x323e1f),_0x7a8407={};for(const _0x3dffe0 of _0x2b7cd6||[]){if(!_0x3dffe0?.[_0x4a2755(0xc02)])continue;_0x7a8407[_0x3dffe0[0x0][_0x4a2755(0xa49)]]=_0x3dffe0[_0x4a2755(0xb3f)](_0x26fe67=>stripSampleForCache(_0x26fe67,_0x2b320f));}return{'rows':_0x7a8407,'via':_0x4a2755(0x213)};}async[_0x46af5e(0xa52)](_0x185978,_0xcc1c52,_0x19b07e,_0xba0fba,_0x37b412=_0x46af5e(0x2ab),_0x16aa48=!![],_0x7811db=null){const _0x10fc60=_0x46af5e;if(!_0xcc1c52[_0x10fc60(0xc02)])return{};const _0x4bbf88=_0x7811db&&_0x7811db['length']?Array[_0x10fc60(0xf9e)](new Set(_0x7811db)):[_0x10fc60(0xd0e),_0x10fc60(0xba1),_0x10fc60(0x220),'sum',_0x10fc60(0x5f5),_0x10fc60(0xe34)],_0x3beea7=_0xba0fba[_0x10fc60(0x1028)]()-_0x19b07e[_0x10fc60(0x1028)]()>=0x5265c00?0xea60:0x2710,_0x1fd6fc=Math[_0x10fc60(0xedc)](_0x19b07e[_0x10fc60(0x1028)]()/_0x3beea7)*_0x3beea7,_0x513734=Math[_0x10fc60(0xedc)](_0xba0fba[_0x10fc60(0x1028)]()/_0x3beea7)*_0x3beea7,_0x2b1cc4=_0xcc1c52['slice']()['sort']()[_0x10fc60(0x888)](','),_0x4e93ec=_0x4bbf88[_0x10fc60(0x165)]()[_0x10fc60(0xd09)]()[_0x10fc60(0x888)](','),_0x36da98='s:'+_0x2b1cc4+'|'+_0x1fd6fc+'|'+_0x513734+'|'+_0x37b412+'|'+_0x4e93ec;if(_0x16aa48){const _0xdadf06=this[_0x10fc60(0xa96)](_0x36da98);if(_0xdadf06)return this[_0x10fc60(0x1f1)]('stats:cache',_0x36da98),_0xdadf06;const _0x41e201='s:'+_0x2b1cc4+'|',_0x426823='|'+_0x37b412+'|'+_0x4e93ec,_0x8e2ffb={'5minute':0x493e0,'hour':0x36ee80,'day':0x5265c00,'week':0x240c8400}[_0x37b412]||0x36ee80,_0x587cad=_0x19b07e[_0x10fc60(0x1028)](),_0x4f57c7=_0xba0fba[_0x10fc60(0x1028)](),_0x4b20b9=Date[_0x10fc60(0x69d)]();for(const [_0xec0583,_0x34b7bd]of this['_cache']){if(!_0xec0583[_0x10fc60(0xed0)](_0x41e201)||!_0xec0583['endsWith'](_0x426823))continue;if(_0x4b20b9-_0x34b7bd['ts']>FETCH_CACHE_TTL_MS||_0x34b7bd['ts']<this[_0x10fc60(0xb8e)])continue;const _0x5adef1=_0xec0583[_0x10fc60(0x165)](_0x41e201['length'],_0xec0583[_0x10fc60(0xc02)]-_0x426823[_0x10fc60(0xc02)])[_0x10fc60(0xbc0)]('|');if(_0x5adef1[_0x10fc60(0xc02)]!==0x2)continue;const _0x3f5717=+_0x5adef1[0x0],_0xddc96d=+_0x5adef1[0x1];if(!(_0x3f5717<=_0x1fd6fc&&_0xddc96d>=_0x513734)||_0x3f5717===_0x1fd6fc&&_0xddc96d===_0x513734)continue;const _0x54e038={};for(const _0x5c78f4 of _0xcc1c52){const _0x57aaae=_0x34b7bd[_0x10fc60(0x60e)][_0x5c78f4];if(!Array[_0x10fc60(0x902)](_0x57aaae)){_0x54e038[_0x5c78f4]=[];continue;}_0x54e038[_0x5c78f4]=_0x57aaae[_0x10fc60(0x919)](_0x2ba6a3=>_0x2ba6a3['t']+_0x8e2ffb>_0x587cad&&_0x2ba6a3['t']<_0x4f57c7);}return _0x54e038;}const _0x1298eb=0x36ee80,_0x554ed2=Math[_0x10fc60(0x220)](0x2*_0x8e2ffb,0x6ddd00);let _0x290a68=null,_0x249da3=-Infinity;for(const [_0x1289d7,_0x3d5181]of this['_cache']){if(!_0x1289d7[_0x10fc60(0xed0)](_0x41e201)||!_0x1289d7['endsWith'](_0x426823))continue;if(_0x4b20b9-_0x3d5181['ts']>_0x1298eb||_0x3d5181['ts']<this['_minTs'])continue;const _0x3f90d9=_0x1289d7[_0x10fc60(0x165)](_0x41e201[_0x10fc60(0xc02)],_0x1289d7[_0x10fc60(0xc02)]-_0x426823['length'])[_0x10fc60(0xbc0)]('|');if(_0x3f90d9['length']!==0x2)continue;const _0x532f39=+_0x3f90d9[0x0],_0x2f0f9e=+_0x3f90d9[0x1];if(!(_0x532f39<=_0x1fd6fc&&_0x2f0f9e<_0x513734&&_0x513734-_0x2f0f9e<=_0x554ed2))continue;_0x2f0f9e>_0x249da3&&(_0x290a68=_0x3d5181,_0x249da3=_0x2f0f9e);}if(_0x290a68){const _0x5609a5=_statPeriodFloor(_0x290a68[_0x10fc60(0x60e)],_0xcc1c52,_0x249da3-_0x8e2ffb),_0x41b1aa=await this['_statNet'](_0x185978,_0xcc1c52,new Date(_0x5609a5),_0xba0fba,_0x37b412,_0x4bbf88);if(_0x41b1aa){const _0x4e435d={};for(const _0x720881 of _0xcc1c52){const _0x23eee4=Array[_0x10fc60(0x902)](_0x41b1aa[_0x720881])?_0x41b1aa[_0x720881]:[],_0x244b2e=new Set(_0x23eee4[_0x10fc60(0xb3f)](_0x2d4828=>_0x2d4828['t'])),_0x543846=Array['isArray'](_0x290a68['data'][_0x720881])?_0x290a68[_0x10fc60(0x60e)][_0x720881][_0x10fc60(0x919)](_0x570c96=>_0x570c96['t']<_0x5609a5&&!_0x244b2e[_0x10fc60(0x101d)](_0x570c96['t'])):[];_0x4e435d[_0x720881]=_0x543846['concat'](_0x23eee4);}this[_0x10fc60(0x95a)](_0x36da98,_0x4e435d);const _0x12ed5d={};for(const _0x5012ae of _0xcc1c52)_0x12ed5d[_0x5012ae]=_0x4e435d[_0x5012ae][_0x10fc60(0x919)](_0x3d6308=>_0x3d6308['t']+_0x8e2ffb>_0x587cad&&_0x3d6308['t']<_0x4f57c7);return _0x12ed5d;}}}if(_0x16aa48){const _0x1ffdf7=_inflightGet(_0x36da98);if(_0x1ffdf7)return this['_dbg'](_0x10fc60(0x1043),_0x36da98),_0x1ffdf7;}const _0x4d2c55={},_0x58af2c=((async()=>{const _0x3b3ed4=_0x10fc60,_0x1b119c=performance['now'](),_0x539d34=await this[_0x3b3ed4(0x2e8)](_0x185978,_0xcc1c52,_0x19b07e,_0xba0fba,_0x37b412,_0x4bbf88);this[_0x3b3ed4(0x1f1)](_0x3b3ed4(0x50b),{'ids':_0x2b1cc4,'period':_0x37b412,'rows':_0x539d34?Object['values'](_0x539d34)[_0x3b3ed4(0x617)]((_0x49272a,_0x9f1329)=>_0x49272a+_0x9f1329[_0x3b3ed4(0xc02)],0x0):-0x1,'ms':Math[_0x3b3ed4(0x686)](performance['now']()-_0x1b119c)});if(_0x16aa48&&_0x539d34&&_inflightCurrent(_0x36da98,_0x4d2c55))this['_cacheSet'](_0x36da98,_0x539d34);return _0x539d34||{};})());return _inflightSet(_0x36da98,_0x58af2c,_0x4d2c55);}async[_0x46af5e(0x2e8)](_0x665aaf,_0x19e67e,_0x4bc30a,_0x583158,_0x45f1fb,_0x462ce7){const _0x27a600=_0x46af5e;try{const _0x20d1e2=await _0x665aaf[_0x27a600(0x748)]({'type':_0x27a600(0xd0f),'start_time':_0x4bc30a[_0x27a600(0x4d9)](),'end_time':_0x583158[_0x27a600(0x4d9)](),'statistic_ids':_0x19e67e,'period':_0x45f1fb,'types':_0x462ce7}),_0x155df6={};for(const _0x2ca422 of _0x19e67e){const _0x1e43cc=_0x20d1e2?.[_0x2ca422]||[];_0x155df6[_0x2ca422]=_0x1e43cc['map'](_0x5dadb1=>({'t':new Date(_0x5dadb1[_0x27a600(0x4b0)])[_0x27a600(0x1028)](),'mean':toNum(_0x5dadb1['mean']),'min':toNum(_0x5dadb1['min']),'max':toNum(_0x5dadb1[_0x27a600(0x220)]),'sum':toNum(_0x5dadb1[_0x27a600(0x7e6)]),'state':toNum(_0x5dadb1[_0x27a600(0x5f5)]),'change':toNum(_0x5dadb1[_0x27a600(0xe34)])}));}return _0x155df6;}catch(_0xa88ebb){return console[_0x27a600(0x9a7)]('[sgc]\x20statistics\x20fetch\x20failed',_0xa88ebb),null;}}}function stripSampleForCache(_0x4abd5a,_0x188a6a){const _0x270c61=_0x46af5e,_0x55d4fd={'t':new Date(_0x188a6a?_0x4abd5a[_0x270c61(0x6a4)]||_0x4abd5a[_0x270c61(0xaf1)]:_0x4abd5a['last_changed']||_0x4abd5a[_0x270c61(0x6a4)])[_0x270c61(0x1028)](),'state':_0x4abd5a[_0x270c61(0x5f5)]};if(_0x188a6a&&_0x4abd5a['attributes'])_0x55d4fd['attributes']=_0x4abd5a[_0x270c61(0x467)];else _0x55d4fd['attributes']=null;return _0x55d4fd;}function dedupAttributeRows(_0x318554,_0x4ac29a){const _0x462520=_0x46af5e;if(!Array[_0x462520(0x902)](_0x318554)||_0x318554[_0x462520(0xc02)]<0x2||!_0x4ac29a||!_0x4ac29a[_0x462520(0xc44)])return _0x318554;const _0x219e1b=Array['from'](_0x4ac29a),_0x2ba743=_0x34f811=>_0x34f811!==null&&typeof _0x34f811==='object'?JSON[_0x462520(0x403)](_0x34f811):_0x34f811,_0x31ff0b=_0x638f29=>_0x219e1b[_0x462520(0xb3f)](_0x2c6eb0=>_0x2ba743(getAttributePath(_0x638f29[_0x462520(0x467)],_0x2c6eb0))),_0x157e39=[_0x318554[0x0]];let _0x28f91d=_0x31ff0b(_0x318554[0x0]);for(let _0x413d1b=0x1;_0x413d1b<_0x318554['length'];_0x413d1b++){const _0x31486a=_0x31ff0b(_0x318554[_0x413d1b]);let _0x42fc17=_0x318554[_0x413d1b]['state']===_0x157e39[_0x157e39[_0x462520(0xc02)]-0x1][_0x462520(0x5f5)];for(let _0x4d6cec=0x0;_0x42fc17&&_0x4d6cec<_0x31486a[_0x462520(0xc02)];_0x4d6cec++)if(_0x31486a[_0x4d6cec]!==_0x28f91d[_0x4d6cec])_0x42fc17=![];if(_0x42fc17)continue;_0x157e39[_0x462520(0xb31)](_0x318554[_0x413d1b]),_0x28f91d=_0x31486a;}return _0x157e39;}function collapseSameStateRows(_0x23839b){const _0xc622cf=_0x46af5e;if(!Array['isArray'](_0x23839b)||_0x23839b[_0xc622cf(0xc02)]<0x2)return _0x23839b;const _0x360177=[_0x23839b[0x0]];for(let _0x48da4b=0x1;_0x48da4b<_0x23839b['length'];_0x48da4b++){if(_0x23839b[_0x48da4b][_0xc622cf(0x5f5)]===_0x360177[_0x360177['length']-0x1]['state'])continue;_0x360177['push'](_0x23839b[_0x48da4b]);}return _0x360177;}let _wsHistoryUnavailableUntil=0x0,_wsHistoryWarned=![];function compressedSampleForCache(_0x5309c6,_0x413a36){const _0x31ab11=_0x46af5e,_0x404f31=typeof _0x5309c6['lu']==='number'?_0x5309c6['lu']:typeof _0x5309c6['lc']==='number'?_0x5309c6['lc']:NaN,_0x2ab83c=typeof _0x5309c6['lc']===_0x31ab11(0x327)?_0x5309c6['lc']:_0x404f31,_0x544aa2={'t':Math[_0x31ab11(0x686)]((_0x413a36?_0x404f31:_0x2ab83c)*0x3e8),'state':_0x5309c6['s']};return _0x544aa2[_0x31ab11(0x467)]=_0x413a36&&_0x5309c6['a']&&typeof _0x5309c6['a']==='object'?_0x5309c6['a']:null,_0x544aa2;}const AGG_VALID=new Set([_0x46af5e(0xba1),'max',_0x46af5e(0x7e6),_0x46af5e(0xfbc),_0x46af5e(0xd0e),'first',_0x46af5e(0xa5d),_0x46af5e(0xf49),'delta','diff',_0x46af5e(0xe34)]);class DataProcessor{static[_0x46af5e(0xdaa)](_0x5ecda8,_0x479276){const _0x1ce99d=_0x46af5e;if(!Array[_0x1ce99d(0x902)](_0x5ecda8)||_0x5ecda8[_0x1ce99d(0xc02)]<=_0x479276||_0x479276<0x3)return _0x5ecda8;let _0x58b24d=0x0;for(let _0x4f2c96=0x0;_0x4f2c96<_0x5ecda8['length'];_0x4f2c96++)if(!isNum(_0x5ecda8[_0x4f2c96]['v']))_0x58b24d++;if(!_0x58b24d)return DataProcessor['lttbDownsample'](_0x5ecda8,_0x479276);const _0x4b14fb=new Set(DataProcessor['lttbDownsample'](_0x5ecda8,_0x479276)),_0x12aa76=[];let _0xcec338=0x0;for(let _0x546434=0x0;_0x546434<_0x5ecda8[_0x1ce99d(0xc02)];_0x546434++){const _0x48e10a=_0x5ecda8[_0x546434];if(_0x4b14fb[_0x1ce99d(0x101d)](_0x48e10a)){_0x12aa76[_0x1ce99d(0xb31)](_0x48e10a);continue;}if(isNum(_0x48e10a['v'])||_0xcec338>=_0x479276)continue;const _0x48d5e8=_0x12aa76[_0x12aa76[_0x1ce99d(0xc02)]-0x1];_0x48d5e8&&isNum(_0x48d5e8['v'])&&(_0x12aa76[_0x1ce99d(0xb31)](_0x48e10a),_0xcec338++);}return _0x12aa76;}static[_0x46af5e(0xc27)](_0x2bf42e,_0x2c6ca4){const _0x15d9e2=_0x46af5e;if(!Array[_0x15d9e2(0x902)](_0x2bf42e)||_0x2bf42e[_0x15d9e2(0xc02)]<=_0x2c6ca4||_0x2c6ca4<0x3)return _0x2bf42e;const _0x4f065f=_0x2bf42e[_0x15d9e2(0xc02)],_0xc985e3=new Array(_0x2c6ca4);let _0x5a7c8e=0x0;const _0x3e5ad7=(_0x4f065f-0x2)/(_0x2c6ca4-0x2);let _0x2044c7=0x0;_0xc985e3[_0x5a7c8e++]=_0x2bf42e[_0x2044c7];for(let _0x14ef6d=0x0;_0x14ef6d<_0x2c6ca4-0x2;_0x14ef6d++){let _0x3ba5b4=0x0,_0x2f725a=0x0,_0x32dbba=Math[_0x15d9e2(0xedc)]((_0x14ef6d+0x1)*_0x3e5ad7)+0x1,_0x3deb7b=Math[_0x15d9e2(0xedc)]((_0x14ef6d+0x2)*_0x3e5ad7)+0x1;_0x3deb7b=_0x3deb7b<_0x4f065f?_0x3deb7b:_0x4f065f;const _0x1a9946=_0x3deb7b-_0x32dbba;if(_0x1a9946<=0x0){const _0xe01aba=Math['min'](_0x32dbba,_0x4f065f-0x1);_0xc985e3[_0x5a7c8e++]=_0x2bf42e[_0xe01aba],_0x2044c7=_0xe01aba;continue;}for(let _0x37f3ac=_0x32dbba;_0x37f3ac<_0x3deb7b;_0x37f3ac++){_0x3ba5b4+=_0x2bf42e[_0x37f3ac]['t'],_0x2f725a+=_0x2bf42e[_0x37f3ac]['v']||0x0;}_0x3ba5b4/=_0x1a9946,_0x2f725a/=_0x1a9946;const _0x2de01c=Math[_0x15d9e2(0xedc)](_0x14ef6d*_0x3e5ad7)+0x1,_0x427ad9=Math[_0x15d9e2(0xedc)]((_0x14ef6d+0x1)*_0x3e5ad7)+0x1,_0x44374b=_0x2bf42e[_0x2044c7]['t'],_0x30d272=_0x2bf42e[_0x2044c7]['v']||0x0;let _0x3338c8=-0x1,_0x2f5e2d=_0x2de01c;for(let _0x211fb0=_0x2de01c;_0x211fb0<_0x427ad9;_0x211fb0++){const _0x10d0ff=Math[_0x15d9e2(0x1ae)]((_0x44374b-_0x3ba5b4)*((_0x2bf42e[_0x211fb0]['v']||0x0)-_0x30d272)-(_0x44374b-_0x2bf42e[_0x211fb0]['t'])*(_0x2f725a-_0x30d272))*0.5;_0x10d0ff>_0x3338c8&&(_0x3338c8=_0x10d0ff,_0x2f5e2d=_0x211fb0);}_0xc985e3[_0x5a7c8e++]=_0x2bf42e[_0x2f5e2d],_0x2044c7=_0x2f5e2d;}return _0xc985e3[_0x5a7c8e++]=_0x2bf42e[_0x4f065f-0x1],_0xc985e3;}static[_0x46af5e(0xd77)](_0x556788,_0x211958,_0x250cc9,_0x1255f8,_0x36528e,_0x1e067d,_0x279870={}){const _0x34b732=_0x46af5e;if(!_0x556788?.[_0x34b732(0xc02)]||!_0x211958||_0x1255f8<=_0x250cc9)return _0x556788||[];const _0x21c4c7=0x7d0,_0x48da06=0x7530;let _0x307e71=Math[_0x34b732(0x220)](_0x48da06,_0x211958);const _0x58bd82=_0x1255f8-_0x250cc9;let _0x2affa7=Math[_0x34b732(0x6fd)](_0x58bd82/_0x307e71);_0x2affa7>_0x21c4c7&&(_0x307e71=Math['ceil'](_0x58bd82/_0x21c4c7),_0x2affa7=_0x21c4c7);let _0x15d1e7=_0x250cc9;_0x279870[_0x34b732(0x299)]&&(_0x15d1e7=Math[_0x34b732(0xedc)](_0x250cc9/_0x307e71)*_0x307e71,_0x2affa7=Math[_0x34b732(0xba1)](_0x21c4c7,Math[_0x34b732(0x6fd)]((_0x1255f8-_0x15d1e7)/_0x307e71)));const _0x406900=!!_0x279870[_0x34b732(0x3d6)],_0x3df437=!!_0x279870[_0x34b732(0x886)],_0x361c44=_0x556788,_0x1647da=new Array(_0x2affa7);let _0x252dfa=0x0,_0x3307d5=null,_0x37c4d5=null,_0x33cab4=null,_0x169e75=null,_0x14a817=null;while(_0x252dfa<_0x361c44['length']&&_0x361c44[_0x252dfa]['t']<_0x15d1e7){const _0x221666=_0x361c44[_0x252dfa]['v'];_0x221666!==null&&_0x221666!==undefined&&!Number[_0x34b732(0xd8f)](_0x221666)&&(_0x3307d5=_0x221666,_0x37c4d5=_0x361c44[_0x252dfa]['t']),_0x252dfa++;}const _0xa3387e=isNum(_0x279870[_0x34b732(0x3e1)])?_0x279870[_0x34b732(0x3e1)]:Date[_0x34b732(0x69d)](),_0x2962be=_0x279870['carryPastNow']?_0x1255f8:Math[_0x34b732(0xba1)](_0xa3387e,_0x1255f8),_0x5184f9=!_0x406900&&!_0x279870['carryPastNow']&&_0xa3387e<_0x1255f8,_0x1e68c2=!!_0x279870[_0x34b732(0x90e)],_0x4ee304=!_0x1e68c2?_0x279870[_0x34b732(0x64f)]??Infinity:_0x279870[_0x34b732(0x64f)]??Math[_0x34b732(0xba1)](_0x307e71*0x3,0x1e*0x3c*0x3e8);for(let _0x2ede34=0x0;_0x2ede34<_0x2affa7;_0x2ede34++){const _0x32b970=_0x15d1e7+_0x2ede34*_0x307e71,_0xa6c435=_0x32b970+_0x307e71,_0x5e3006=(_0x32b970+_0xa6c435)/0x2;let _0x37b9da=_0x406900?_0x32b970:_0x5e3006;if(_0x5184f9&&_0x32b970<=_0xa3387e&&_0xa3387e<_0xa6c435)_0x37b9da=_0xa3387e;while(_0x252dfa<_0x361c44[_0x34b732(0xc02)]&&_0x361c44[_0x252dfa]['t']<_0x32b970)_0x252dfa++;const _0x5c07d5=[];let _0x38b2ec=Infinity,_0x5aa299=-Infinity,_0x1af4b7=![],_0xe506bf=null,_0xcf955c=null,_0x351196=null,_0x4bfeb9=_0x252dfa;while(_0x4bfeb9<_0x361c44[_0x34b732(0xc02)]&&_0x361c44[_0x4bfeb9]['t']<_0xa6c435){const _0x440b00=_0x361c44[_0x4bfeb9],_0x2d42e4=_0x440b00['v'];if(_0x2d42e4!==null&&_0x2d42e4!==undefined&&!Number[_0x34b732(0xd8f)](_0x2d42e4)){_0x5c07d5[_0x34b732(0xb31)](_0x2d42e4),_0xe506bf=_0x2d42e4,_0xcf955c=_0x440b00[_0x34b732(0xa84)]!==undefined&&_0x440b00[_0x34b732(0xa84)]!==null?_0x440b00[_0x34b732(0xa84)]:_0x2d42e4,_0x351196=_0x440b00['bMax']!==undefined&&_0x440b00[_0x34b732(0x6a0)]!==null?_0x440b00[_0x34b732(0x6a0)]:_0x2d42e4;if(_0x1e067d){if(_0xcf955c<_0x38b2ec)_0x38b2ec=_0xcf955c;if(_0x351196>_0x5aa299)_0x5aa299=_0x351196;_0x1af4b7=!![];}}_0x4bfeb9++;}if(_0x5c07d5[_0x34b732(0xc02)]>0x0){const _0x25b0b1=DataProcessor[_0x34b732(0x9d9)](_0x5c07d5,_0x36528e);_0x3307d5=_0x25b0b1===null?null:_0xe506bf,_0x37c4d5=_0x5e3006;const _0x422ec4={'t':_0x37b9da,'v':_0x25b0b1};_0x1e067d&&_0x1af4b7&&(_0x422ec4[_0x34b732(0xa84)]=_0x38b2ec,_0x422ec4['bMax']=_0x5aa299,_0x33cab4=_0xcf955c,_0x169e75=_0x351196);if(_0x3df437){const _0x30325a=DataProcessor[_0x34b732(0xd2a)](_0x5c07d5);_0x30325a&&(_0x422ec4['o']=_0x30325a['o'],_0x422ec4['h']=_0x30325a['h'],_0x422ec4['l']=_0x30325a['l'],_0x422ec4['c']=_0x30325a['c'],_0x14a817=_0x30325a);}_0x1647da[_0x2ede34]=_0x422ec4;}else{if(!_0x279870['deltaAgg']&&_0x3307d5!==null&&_0x32b970<=_0x2962be&&_0x4ee304>0x0&&_0x37c4d5!==null&&_0x5e3006-_0x37c4d5<=_0x4ee304){const _0x803da9={'t':_0x37b9da,'v':_0x3307d5};_0x1e067d&&(_0x803da9[_0x34b732(0xa84)]=_0x33cab4??_0x3307d5,_0x803da9[_0x34b732(0x6a0)]=_0x169e75??_0x3307d5);if(_0x3df437){const _0x2c1cc6=_0x14a817?_0x14a817['c']:_0x3307d5;_0x803da9['o']=_0x803da9['h']=_0x803da9['l']=_0x803da9['c']=_0x2c1cc6;}_0x1647da[_0x2ede34]=_0x803da9;}else{const _0x379b16={'t':_0x37b9da,'v':null};_0x1e067d&&(_0x379b16[_0x34b732(0xa84)]=null,_0x379b16[_0x34b732(0x6a0)]=null);if(_0x3df437)_0x379b16['o']=_0x379b16['h']=_0x379b16['l']=_0x379b16['c']=null;_0x1647da[_0x2ede34]=_0x379b16;}}}let _0x4b8251=-0x1;for(let _0x103b48=0x0;_0x103b48<_0x1647da[_0x34b732(0xc02)];_0x103b48++){if(_0x1647da[_0x103b48]['v']!==null){_0x4b8251=_0x103b48;break;}}if(_0x4b8251>0x0&&!_0x279870[_0x34b732(0x4a7)]&&!_0x1e68c2&&!_0x279870[_0x34b732(0x7e3)]){const _0x4c1e21=_0x1647da[_0x4b8251]['v'],_0x57c584=_0x1e067d?_0x1647da[_0x4b8251]['bMin']:null,_0x38e99d=_0x1e067d?_0x1647da[_0x4b8251]['bMax']:null;for(let _0x2a4321=0x0;_0x2a4321<_0x4b8251;_0x2a4321++){_0x1647da[_0x2a4321]['v']=_0x4c1e21,_0x1e067d&&(_0x1647da[_0x2a4321][_0x34b732(0xa84)]=_0x57c584,_0x1647da[_0x2a4321][_0x34b732(0x6a0)]=_0x38e99d);}}return _0x1647da;}static['_aggregate'](_0x13b320,_0x4583b7){const _0x4e0648=_0x46af5e;if(_0x4583b7&&!AGG_VALID[_0x4e0648(0x101d)](_0x4583b7)){DataProcessor[_0x4e0648(0xaf9)]=DataProcessor['_aggWarned']||new Set();if(!DataProcessor[_0x4e0648(0xaf9)][_0x4e0648(0x101d)](_0x4583b7)){DataProcessor[_0x4e0648(0xaf9)]['add'](_0x4583b7);const _0x2d20cd=_0x4583b7===_0x4e0648(0x5f5)?'\x20For\x20cumulative\x20counters\x20use\x20\x22change\x22\x20(per-bucket\x20delta)\x20or\x20\x22last\x22\x20(latest\x20reading).':'';console[_0x4e0648(0x9a7)]('[statistics-graph-chart-card]\x20Unknown\x20aggregate_func:\x20\x22'+_0x4583b7+'\x22.\x20'+('Falling\x20back\x20to\x20\x22avg\x22.\x20Valid\x20values:\x20'+[...AGG_VALID]['join'](',\x20')+'.'+_0x2d20cd));}}const _0x18e257=[];for(const _0x2ed14a of _0x13b320)if(_0x2ed14a!==null&&_0x2ed14a!==undefined&&!Number['isNaN'](_0x2ed14a))_0x18e257[_0x4e0648(0xb31)](_0x2ed14a);if(!_0x18e257['length'])return null;switch(_0x4583b7){case'min':{let _0xb5c26=_0x18e257[0x0];for(let _0xb50db3=0x1;_0xb50db3<_0x18e257[_0x4e0648(0xc02)];_0xb50db3++)if(_0x18e257[_0xb50db3]<_0xb5c26)_0xb5c26=_0x18e257[_0xb50db3];return _0xb5c26;}case _0x4e0648(0x220):{let _0x4d9648=_0x18e257[0x0];for(let _0x31e1aa=0x1;_0x31e1aa<_0x18e257[_0x4e0648(0xc02)];_0x31e1aa++)if(_0x18e257[_0x31e1aa]>_0x4d9648)_0x4d9648=_0x18e257[_0x31e1aa];return _0x4d9648;}case _0x4e0648(0x7e6):return _0x18e257[_0x4e0648(0x617)]((_0x225511,_0x2be511)=>_0x225511+_0x2be511,0x0);case _0x4e0648(0x2d8):case'last':{let _0x18d4f2=0x0;for(let _0x48fd2d=0x1;_0x48fd2d<_0x18e257['length'];_0x48fd2d++){if(_0x18e257[_0x48fd2d-0x1]>0x0&&_0x18e257[_0x48fd2d]<_0x18e257[_0x48fd2d-0x1]*0.1)_0x18d4f2++;}return _0x18d4f2>0x0&&(DataProcessor['_resetAggWarned']=DataProcessor[_0x4e0648(0xd9a)]||new Set(),!DataProcessor[_0x4e0648(0xd9a)]['has'](_0x4583b7)&&(DataProcessor[_0x4e0648(0xd9a)]['add'](_0x4583b7),console[_0x4e0648(0x9a7)](_0x4e0648(0xe7f)+_0x4583b7+'\x22\x20on\x20a\x20series\x20that\x20'+_0x4e0648(0x453)+(_0x4e0648(0xdeb)+(_0x4583b7===_0x4e0648(0xa5d)?'last\x20reading\x20can\x20be\x20the\x20post-reset\x200':_0x4e0648(0x6e1))+',\x20')+_0x4e0648(0x791)+_0x4e0648(0xdbe)))),_0x4583b7===_0x4e0648(0x2d8)?_0x18e257[0x0]:_0x18e257[_0x18e257['length']-0x1];}case _0x4e0648(0xf49):{const _0x36f868=[..._0x18e257][_0x4e0648(0xd09)]((_0x124f7a,_0x438a52)=>_0x124f7a-_0x438a52),_0x158687=Math[_0x4e0648(0xedc)](_0x36f868[_0x4e0648(0xc02)]/0x2);return _0x36f868[_0x4e0648(0xc02)]%0x2?_0x36f868[_0x158687]:(_0x36f868[_0x158687-0x1]+_0x36f868[_0x158687])/0x2;}case _0x4e0648(0xc09):{let _0x1d4f4c=_0x18e257[0x0],_0x8a1073=_0x18e257[0x0];for(let _0x3f8b0d=0x1;_0x3f8b0d<_0x18e257['length'];_0x3f8b0d++){if(_0x18e257[_0x3f8b0d]<_0x1d4f4c)_0x1d4f4c=_0x18e257[_0x3f8b0d];if(_0x18e257[_0x3f8b0d]>_0x8a1073)_0x8a1073=_0x18e257[_0x3f8b0d];}return _0x8a1073-_0x1d4f4c;}case _0x4e0648(0x934):{if(_0x18e257[_0x4e0648(0xc02)]<0x2)return null;return _0x18e257[_0x18e257[_0x4e0648(0xc02)]-0x1]-_0x18e257[0x0];}case'change':{if(_0x18e257[_0x4e0648(0xc02)]<0x2)return null;let _0x197677=0x0;for(let _0x43de3a=0x1;_0x43de3a<_0x18e257['length'];_0x43de3a++){const _0xacf9e5=_0x18e257[_0x43de3a]-_0x18e257[_0x43de3a-0x1];if(_0xacf9e5>=0x0)_0x197677+=_0xacf9e5;}return _0x197677;}case _0x4e0648(0xfbc):case _0x4e0648(0xd0e):default:return _0x18e257[_0x4e0648(0x617)]((_0xefe836,_0x181b54)=>_0xefe836+_0x181b54,0x0)/_0x18e257[_0x4e0648(0xc02)];}}static[_0x46af5e(0xd2a)](_0x343f43){const _0x56707a=_0x46af5e;let _0x37e1cd=null,_0x48784a=null,_0x395fb7=null,_0x134d4d=null;for(const _0x250c82 of _0x343f43){if(_0x250c82===null||_0x250c82===undefined||Number[_0x56707a(0xd8f)](_0x250c82))continue;if(_0x37e1cd===null)_0x37e1cd=_0x250c82,_0x48784a=_0x250c82,_0x395fb7=_0x250c82;else{if(_0x250c82>_0x48784a)_0x48784a=_0x250c82;if(_0x250c82<_0x395fb7)_0x395fb7=_0x250c82;}_0x134d4d=_0x250c82;}return _0x37e1cd===null?null:{'o':_0x37e1cd,'h':_0x48784a,'l':_0x395fb7,'c':_0x134d4d};}static[_0x46af5e(0xa36)](_0x1930b6,_0x47092b){const _0x275b9a=_0x46af5e;if(!Array[_0x275b9a(0x902)](_0x1930b6)||!_0x1930b6['length']||typeof _0x47092b!==_0x275b9a(0x8c6))return _0x1930b6;const _0x1d1ac8=new Array(_0x1930b6[_0x275b9a(0xc02)]);for(let _0x5299c7=0x0;_0x5299c7<_0x1930b6['length'];_0x5299c7++){const _0x448fa8=_0x1930b6[_0x5299c7];if(!_0x448fa8||!isNum(_0x448fa8['v'])){_0x1d1ac8[_0x5299c7]=_0x448fa8;continue;}const _0x3cd877=_0x47092b(_0x448fa8['t']);if(!isNum(_0x3cd877)){_0x1d1ac8[_0x5299c7]=_0x448fa8;continue;}const _0x213074={..._0x448fa8,'v':_0x448fa8['v']*_0x3cd877};if(isNum(_0x448fa8['bMin']))_0x213074[_0x275b9a(0xa84)]=_0x448fa8['bMin']*_0x3cd877;if(isNum(_0x448fa8[_0x275b9a(0x6a0)]))_0x213074['bMax']=_0x448fa8['bMax']*_0x3cd877;if(isNum(_0x448fa8[_0x275b9a(0x72a)]))_0x213074['sMean']=_0x448fa8[_0x275b9a(0x72a)]*_0x3cd877;if(isNum(_0x448fa8[_0x275b9a(0x683)]))_0x213074['sMin']=_0x448fa8[_0x275b9a(0x683)]*_0x3cd877;if(_0x3cd877<0x0&&isNum(_0x213074[_0x275b9a(0xa84)])&&isNum(_0x213074[_0x275b9a(0x6a0)])&&_0x213074[_0x275b9a(0xa84)]>_0x213074[_0x275b9a(0x6a0)]){const _0x382d75=_0x213074[_0x275b9a(0xa84)];_0x213074[_0x275b9a(0xa84)]=_0x213074[_0x275b9a(0x6a0)],_0x213074[_0x275b9a(0x6a0)]=_0x382d75;}_0x1d1ac8[_0x5299c7]=_0x213074;}return _0x1d1ac8;}static['applyRefToSeries'](_0x399c30,_0x6c989,_0x1fa2c5){const _0x45ef5f=_0x46af5e;if(!Array['isArray'](_0x399c30)||!_0x399c30[_0x45ef5f(0xc02)]||typeof _0x6c989!=='function')return _0x399c30;const _0x4341a1=normalizeRefOp(_0x1fa2c5),_0x51c1b4=_0x326ed2=>({..._0x326ed2,'v':null,'bMin':null,'bMax':null,'sMean':null,'sMin':null}),_0x111ca6=new Array(_0x399c30[_0x45ef5f(0xc02)]);for(let _0x34182d=0x0;_0x34182d<_0x399c30[_0x45ef5f(0xc02)];_0x34182d++){const _0x14177b=_0x399c30[_0x34182d];if(!_0x14177b||!isNum(_0x14177b['v'])){_0x111ca6[_0x34182d]=_0x14177b;continue;}const _0x4e3d72=_0x6c989(_0x14177b['t']);if(!isNum(_0x4e3d72)){_0x111ca6[_0x34182d]=_0x51c1b4(_0x14177b);continue;}let _0x5d6fc3;switch(_0x4341a1){case _0x45ef5f(0x982):_0x5d6fc3=_0x2d4f16=>_0x2d4f16+_0x4e3d72;break;case'multiply':_0x5d6fc3=_0x4535cc=>_0x4535cc*_0x4e3d72;break;case _0x45ef5f(0xb7e):_0x5d6fc3=_0x2bd53d=>_0x4e3d72===0x0?null:_0x2bd53d/_0x4e3d72;break;case _0x45ef5f(0xd0d):_0x5d6fc3=_0x50ee8a=>_0x4e3d72-_0x50ee8a;break;case _0x45ef5f(0xf02):_0x5d6fc3=_0xb4f674=>_0xb4f674===0x0?null:_0x4e3d72/_0xb4f674;break;default:_0x5d6fc3=_0x481382=>_0x481382-_0x4e3d72;}const _0x277f8e=_0x5d6fc3(_0x14177b['v']);if(!isNum(_0x277f8e)){_0x111ca6[_0x34182d]=_0x51c1b4(_0x14177b);continue;}const _0x2ac318={..._0x14177b,'v':_0x277f8e};for(const _0x175733 of[_0x45ef5f(0xa84),_0x45ef5f(0x6a0),'sMean',_0x45ef5f(0x683)]){if(isNum(_0x14177b[_0x175733])){const _0x5ac5bc=_0x5d6fc3(_0x14177b[_0x175733]);_0x2ac318[_0x175733]=isNum(_0x5ac5bc)?_0x5ac5bc:null;}}if(isNum(_0x2ac318[_0x45ef5f(0xa84)])&&isNum(_0x2ac318[_0x45ef5f(0x6a0)])&&_0x2ac318['bMin']>_0x2ac318[_0x45ef5f(0x6a0)]){const _0x5ca564=_0x2ac318[_0x45ef5f(0xa84)];_0x2ac318[_0x45ef5f(0xa84)]=_0x2ac318['bMax'],_0x2ac318['bMax']=_0x5ca564;}_0x111ca6[_0x34182d]=_0x2ac318;}return _0x111ca6;}static[_0x46af5e(0x843)](_0x3fc573,_0x5124b1){const _0x462ce0=_0x46af5e;if(!Array['isArray'](_0x3fc573))return _0x3fc573;for(const _0x2d482f of _0x3fc573){if(!_0x2d482f)continue;if(isNum(_0x2d482f[_0x462ce0(0xa84)])&&isNum(_0x2d482f[_0x462ce0(0x6a0)])){if(_0x2d482f['v']!==null&&_0x2d482f['v']!==undefined)_0x2d482f['v']=_0x2d482f['bMax']-_0x2d482f['bMin'];!_0x5124b1&&(delete _0x2d482f[_0x462ce0(0xa84)],delete _0x2d482f['bMax']);}else{if(!_0x5124b1){if(_0x462ce0(0xa84)in _0x2d482f)delete _0x2d482f[_0x462ce0(0xa84)];if('bMax'in _0x2d482f)delete _0x2d482f[_0x462ce0(0x6a0)];}}}return _0x3fc573;}static[_0x46af5e(0xc16)](_0x520376,_0x2ab502){const _0x3a90ec=_0x46af5e,_0x3e47a4=Array['isArray'](_0x2ab502?.[_0x3a90ec(0xdf3)])?_0x2ab502[_0x3a90ec(0xdf3)]:null;if(!_0x3e47a4||!_0x3e47a4[_0x3a90ec(0xc02)]||!Array[_0x3a90ec(0x902)](_0x520376)||!_0x520376[_0x3a90ec(0xc02)])return null;const _0x20c014=(_0x2ab502[_0x3a90ec(0xc3c)]||_0x2ab502[_0x3a90ec(0xefa)])==='candlestick',_0x3809e6=_0x131503=>{if(!_0x131503)return null;const _0x13c268=_0x20c014?isNum(_0x131503['c'])?_0x131503['c']:_0x131503['v']:_0x131503['v'];return isNum(_0x13c268)?_0x13c268:null;},_0x306a39=_0x520376[_0x3a90ec(0xb3f)](_0x3809e6),_0x27757b=_0x520376[_0x3a90ec(0xc02)],_0x2ec4bf=[];for(const _0x23cf63 of _0x3e47a4){const _0x18d939=Math[_0x3a90ec(0x686)](toNum(_0x23cf63?.[_0x3a90ec(0xe4c)])||0x0);if(!(_0x18d939>=0x1))continue;const _0x404102=new Array(_0x27757b);let _0x1d26b9=0x0,_0x4d7f6b=-0x1;for(let _0x201d92=0x0;_0x201d92<_0x27757b;_0x201d92++){const _0x24daad=_0x306a39[_0x201d92];_0x24daad===null?_0x4d7f6b=_0x201d92:_0x1d26b9+=_0x24daad;if(_0x201d92>=_0x18d939){const _0x21670f=_0x306a39[_0x201d92-_0x18d939];if(_0x21670f!==null)_0x1d26b9-=_0x21670f;}const _0x111e19=_0x201d92>=_0x18d939-0x1&&_0x4d7f6b<=_0x201d92-_0x18d939;_0x404102[_0x201d92]={'t':_0x520376[_0x201d92]['t'],'v':_0x111e19?_0x1d26b9/_0x18d939:null};}_0x2ec4bf[_0x3a90ec(0xb31)]({'period':_0x18d939,'color':_0x23cf63['color']||null,'width':_0x23cf63['width']!=null&&_0x23cf63['width']!==''&&isNum(toNum(_0x23cf63['width']))?toNum(_0x23cf63[_0x3a90ec(0x581)]):null,'show_label':!!_0x23cf63[_0x3a90ec(0x6ac)],'points':_0x404102});}return _0x2ec4bf[_0x3a90ec(0xc02)]?_0x2ec4bf:null;}static['computeMovingAveragesExt'](_0x41eedc,_0xc3380,_0x7c5c8a){const _0xa4dab5=_0x46af5e,_0x1e6315=Array[_0xa4dab5(0x902)](_0xc3380?.[_0xa4dab5(0xdf3)])?_0xc3380['moving_averages']['filter'](_0x55d58a=>_0x55d58a&&Math[_0xa4dab5(0x686)](toNum(_0x55d58a['period'])||0x0)>=0x1):null;if(!_0x1e6315||!_0x1e6315['length']||!Array['isArray'](_0x41eedc)||!_0x41eedc[_0xa4dab5(0xc02)])return null;const {startMs:_0x4ceb07,endMs:_0xa32e1b,bucketMs:_0x12c2cd,groupBy:_0x3f8b4c,aggFunc:_0x109ccd,alignToClock:_0x344c69,anchorStart:_0xd99f2f,tz:_0x4c2a4d,deltaAgg:_0x12d1dd,carryPastNow:_0x21a815,damp:_0x3c54b8,isCounter:_0x3429e1,nowMs:_0x373027}=_0x7c5c8a||{};let _0x26cbf1=0x0;for(const _0x4755a4 of _0x1e6315){const _0x438a13=Math[_0xa4dab5(0x686)](toNum(_0x4755a4['period'])||0x0);if(_0x438a13>_0x26cbf1)_0x26cbf1=_0x438a13;}if(!(_0x26cbf1>=0x1))return null;const _0x354b88=(_0xc3380[_0xa4dab5(0xc3c)]||_0xc3380[_0xa4dab5(0xefa)])===_0xa4dab5(0x846),_0x5e08cb=['hour',_0xa4dab5(0x88f),_0xa4dab5(0x6f1),_0xa4dab5(0xe7d),'year'];let _0x459906;if(_0x5e08cb['includes'](_0x3f8b4c)){const _0x36a2fe=_0x3c54b8?DataProcessor[_0xa4dab5(0x324)](_0x41eedc,_0x3f8b4c,_0x109ccd,_0x4c2a4d,!!_0x3429e1):_0x41eedc;_0x459906=DataProcessor[_0xa4dab5(0xd5f)](_0x36a2fe,_0x3f8b4c,_0x109ccd,_0xa32e1b,_0x4c2a4d,_0x354b88,_0x7c5c8a?.[_0xa4dab5(0x4e5)]??0x1);if(!_0xc3380['break_on_null']){const _0x3ad723=_0x41eedc[_0xa4dab5(0xc02)]?_0x41eedc[_0x41eedc['length']-0x1]['t']:null;_0x459906=DataProcessor['carryStateInGaps'](_0x459906,_0x3f8b4c,_0x109ccd,{'endMs':_0xa32e1b,'lastRawT':_0x3ad723,'tz':_0x4c2a4d,'nowMs':_0x373027});}else _0x459906=DataProcessor['breakGapsInCalendar'](_0x459906,_0x3f8b4c,{'tz':_0x4c2a4d});}else{if(isNum(_0x12c2cd)&&_0x12c2cd>0x0){const _0x59f2d5=(_0x26cbf1-0x1)*_0x12c2cd;_0x459906=DataProcessor[_0xa4dab5(0xd77)](_0x41eedc,_0x12c2cd,isNum(_0x4ceb07)?_0x4ceb07-_0x59f2d5:_0x4ceb07,_0xa32e1b,_0x109ccd,![],{'breakOnNull':!!_0xc3380[_0xa4dab5(0x18d)],'carryForwardMs':_0xc3380[_0xa4dab5(0x82e)],'alignToClock':_0x344c69,'anchorStart':_0xd99f2f,'ohlc':_0x354b88,'deltaAgg':!!_0x12d1dd,'carryPastNow':!!_0x21a815,'noLeadFill':!!_0xc3380[_0xa4dab5(0x455)],'nowMs':_0x373027});}else _0x459906=_0x41eedc;}const _0x1ad66b=DataProcessor['applyPostBucketTransform'](_0x459906,_0xc3380,![],{'now':_0x373027,'tz':_0x4c2a4d}),_0x4b38f2=DataProcessor[_0xa4dab5(0xc16)](_0x1ad66b,_0xc3380);if(!_0x4b38f2)return null;if(isNum(_0x4ceb07)){for(const _0x4cd32a of _0x4b38f2)_0x4cd32a[_0xa4dab5(0x93a)]=_0x4cd32a['points'][_0xa4dab5(0x919)](_0x2da7ab=>_0x2da7ab['t']>=_0x4ceb07);}return _0x4b38f2[_0xa4dab5(0xc02)]?_0x4b38f2:null;}static[_0x46af5e(0x324)](_0x34e51f,_0xb3da7d,_0x435adb,_0x1cfece,_0x373fd8){const _0x3cdbc0=_0x46af5e;if(_0x435adb!=='max'||_0xb3da7d!=='date')return _0x34e51f;if(!Array['isArray'](_0x34e51f)||_0x34e51f[_0x3cdbc0(0xc02)]<0x2)return _0x34e51f;const _0xb8f43b=_0x3d263d=>{const _0x5416d2=tzParts(_0x3d263d,_0x1cfece);return _0x5416d2['y']+'-'+_0x5416d2['mo']+'-'+_0x5416d2['d'];},_0x45ce52=_0x282312=>tzStartOfDayMs(_0x282312,_0x1cfece),_0x2ad0f9=new Map();for(const _0x46ec4c of _0x34e51f){if(!isNum(_0x46ec4c['v']))continue;const _0x1e0c10=_0xb8f43b(_0x46ec4c['t']);let _0xd0fadc=_0x2ad0f9[_0x3cdbc0(0xc3f)](_0x1e0c10);!_0xd0fadc&&(_0xd0fadc={'count':0x0,'first':null,'list':[]},_0x2ad0f9[_0x3cdbc0(0xa2d)](_0x1e0c10,_0xd0fadc));_0xd0fadc[_0x3cdbc0(0x556)]++,_0xd0fadc[_0x3cdbc0(0xa4d)][_0x3cdbc0(0xb31)](_0x46ec4c);if(!_0xd0fadc[_0x3cdbc0(0x2d8)]||_0x46ec4c['t']<_0xd0fadc['first']['t'])_0xd0fadc[_0x3cdbc0(0x2d8)]=_0x46ec4c;}const _0x3ff2ce=new Map();for(const _0x5cfc8b of _0x2ad0f9[_0x3cdbc0(0x202)]()){const _0x351b70=_0x5cfc8b[_0x3cdbc0(0x2d8)];_0x5cfc8b[_0x3cdbc0(0x556)]>=0x2&&_0x351b70&&_0x351b70['t']===_0x45ce52(_0x351b70['t'])&&isNum(_0x351b70['v'])&&_0x351b70['v']>0x0&&isNum(_0x351b70['sMean'])&&isNum(_0x351b70[_0x3cdbc0(0x683)])&&_0x351b70[_0x3cdbc0(0x72a)]<_0x351b70['v']*0.3&&_0x351b70[_0x3cdbc0(0x683)]<_0x351b70['v']*0.5&&_0x3ff2ce[_0x3cdbc0(0xa2d)](_0x351b70,_0x351b70['sMin']);if(_0x5cfc8b[_0x3cdbc0(0xa4d)]['length']>=0x2){const _0x4fc817=_0x5cfc8b[_0x3cdbc0(0xa4d)][_0x3cdbc0(0x165)]()[_0x3cdbc0(0xd09)]((_0x27fd63,_0x5b3262)=>_0x27fd63['t']-_0x5b3262['t']),_0x3200d1=_0x4fc817[0x0]['v'];let _0x239ed9=0x0,_0x2daef3=_0x4fc817[0x0]['v'],_0x1e111d=_0x4fc817[0x0]['v'];for(let _0x53eaca=0x1;_0x53eaca<_0x4fc817[_0x3cdbc0(0xc02)];_0x53eaca++){if(!isNum(_0x4fc817[_0x53eaca]['v']))continue;_0x4fc817[_0x53eaca]['v']<_0x2daef3&&(_0x2daef3=_0x4fc817[_0x53eaca]['v'],_0x239ed9=_0x53eaca);if(_0x4fc817[_0x53eaca]['v']>_0x1e111d)_0x1e111d=_0x4fc817[_0x53eaca]['v'];}let _0x224756=![];for(let _0x1ac248=_0x239ed9+0x1;_0x1ac248<_0x4fc817[_0x3cdbc0(0xc02)];_0x1ac248++){if(isNum(_0x4fc817[_0x1ac248]['v'])&&_0x4fc817[_0x1ac248]['v']>_0x2daef3*1.5+1e-9){_0x224756=!![];break;}}const _0x2fed5e=isNum(_0x3200d1)&&_0x3200d1>0x0&&_0x2daef3<_0x3200d1*0.5,_0x4b0b50=!!_0x373fd8||_0x2daef3<=_0x1e111d*0.2;if(_0x239ed9>0x0&&_0x2fed5e&&_0x4b0b50&&_0x224756)for(let _0x37a8f4=0x0;_0x37a8f4<_0x239ed9;_0x37a8f4++){if(isNum(_0x4fc817[_0x37a8f4]['v'])&&_0x4fc817[_0x37a8f4]['v']>_0x2daef3){const _0x5cdd1d=_0x3ff2ce['has'](_0x4fc817[_0x37a8f4])?_0x3ff2ce[_0x3cdbc0(0xc3f)](_0x4fc817[_0x37a8f4]):_0x4fc817[_0x37a8f4]['v'];_0x3ff2ce[_0x3cdbc0(0xa2d)](_0x4fc817[_0x37a8f4],Math[_0x3cdbc0(0xba1)](_0x5cdd1d,_0x2daef3));}}}}if(!_0x3ff2ce[_0x3cdbc0(0xc44)])return _0x34e51f;return _0x34e51f[_0x3cdbc0(0xb3f)](_0x8a9c3=>_0x3ff2ce['has'](_0x8a9c3)?{..._0x8a9c3,'v':_0x3ff2ce[_0x3cdbc0(0xc3f)](_0x8a9c3)}:_0x8a9c3);}static[_0x46af5e(0xd5f)](_0x5ea4f0,_0x1f1d7e,_0x14bcae,_0x4c059f,_0x13bb44,_0x1d653b,_0x167d54=0x1){const _0x42b80a=_0x46af5e;if(!_0x5ea4f0||!_0x5ea4f0[_0x42b80a(0xc02)])return[];const _0x1dc467={},_0x3d95ed=typeof _0x4c059f===_0x42b80a(0x327)&&Number[_0x42b80a(0xf0d)](_0x4c059f);for(const _0xb87f7 of _0x5ea4f0){if(_0xb87f7['v']===null||_0xb87f7['v']===undefined)continue;if(_0x3d95ed&&_0xb87f7['t']>=_0x4c059f)continue;const _0x3c5eea=tzParts(_0xb87f7['t'],_0x13bb44);let _0x5b468d,_0x442d0c;switch(_0x1f1d7e){case _0x42b80a(0x2ab):_0x5b468d=_0x3c5eea['y']+'-'+_0x3c5eea['mo']+'-'+_0x3c5eea['d']+'-'+_0x3c5eea['h'],_0x442d0c=zonedWallToMs(_0x3c5eea['y'],_0x3c5eea['mo'],_0x3c5eea['d'],_0x3c5eea['h'],0x0,0x0,_0x13bb44);break;case _0x42b80a(0x88f):_0x5b468d=_0x3c5eea['y']+'-'+_0x3c5eea['mo']+'-'+_0x3c5eea['d'],_0x442d0c=zonedWallToMs(_0x3c5eea['y'],_0x3c5eea['mo'],_0x3c5eea['d'],0x0,0x0,0x0,_0x13bb44);break;case _0x42b80a(0x6f1):{const _0x43e93a=zonedWallToMs(_0x3c5eea['y'],_0x3c5eea['mo'],_0x3c5eea['d']-weekStartOffsetDays(_0x3c5eea['wd'],_0x167d54),0x0,0x0,0x0,_0x13bb44),_0x17c316=tzParts(_0x43e93a,_0x13bb44);_0x5b468d=_0x17c316['y']+'-'+_0x17c316['mo']+'-'+_0x17c316['d'],_0x442d0c=_0x43e93a;break;}case _0x42b80a(0xe7d):_0x5b468d=_0x3c5eea['y']+'-'+_0x3c5eea['mo'],_0x442d0c=zonedWallToMs(_0x3c5eea['y'],_0x3c5eea['mo'],0x1,0x0,0x0,0x0,_0x13bb44);break;case _0x42b80a(0x73e):_0x5b468d=''+_0x3c5eea['y'],_0x442d0c=zonedWallToMs(_0x3c5eea['y'],0x0,0x1,0x0,0x0,0x0,_0x13bb44);break;default:return _0x5ea4f0;}if(!_0x1dc467[_0x5b468d])_0x1dc467[_0x5b468d]={'vals':[],'t':_0x442d0c,'min':Infinity,'max':-Infinity};_0x1dc467[_0x5b468d]['vals'][_0x42b80a(0xb31)](_0xb87f7['v']);const _0x35e854=_0xb87f7[_0x42b80a(0xa84)]!==undefined&&_0xb87f7['bMin']!==null?_0xb87f7['bMin']:_0xb87f7['v'],_0x1d1bc1=_0xb87f7['bMax']!==undefined&&_0xb87f7[_0x42b80a(0x6a0)]!==null?_0xb87f7[_0x42b80a(0x6a0)]:_0xb87f7['v'];if(_0x35e854<_0x1dc467[_0x5b468d][_0x42b80a(0xba1)])_0x1dc467[_0x5b468d][_0x42b80a(0xba1)]=_0x35e854;if(_0x1d1bc1>_0x1dc467[_0x5b468d]['max'])_0x1dc467[_0x5b468d]['max']=_0x1d1bc1;_0x1dc467[_0x5b468d][_0x42b80a(0xe28)]=_0xb87f7['v'],_0x1dc467[_0x5b468d][_0x42b80a(0x770)]=_0x35e854,_0x1dc467[_0x5b468d][_0x42b80a(0x905)]=_0x1d1bc1;}return Object[_0x42b80a(0x202)](_0x1dc467)['map'](_0x4fcb90=>{const _0x3a3c95=_0x42b80a,_0x4dfc67={'t':_0x4fcb90['t'],'v':DataProcessor[_0x3a3c95(0x9d9)](_0x4fcb90[_0x3a3c95(0x7a0)],_0x14bcae)};_0x4fcb90[_0x3a3c95(0xe28)]!==undefined&&(_0x4dfc67['_lastRaw']=_0x4fcb90[_0x3a3c95(0xe28)],_0x4dfc67['_lastMin']=_0x4fcb90[_0x3a3c95(0x770)],_0x4dfc67[_0x3a3c95(0x77d)]=_0x4fcb90[_0x3a3c95(0x905)]);isFinite(_0x4fcb90['min'])&&(_0x4dfc67[_0x3a3c95(0xa84)]=_0x4fcb90[_0x3a3c95(0xba1)],_0x4dfc67[_0x3a3c95(0x6a0)]=_0x4fcb90[_0x3a3c95(0x220)]);if(_0x1d653b){const _0xb2994b=DataProcessor[_0x3a3c95(0xd2a)](_0x4fcb90[_0x3a3c95(0x7a0)]);_0xb2994b&&(_0x4dfc67['o']=_0xb2994b['o'],_0x4dfc67['c']=_0xb2994b['c'],_0x4dfc67['h']=isFinite(_0x4fcb90[_0x3a3c95(0x220)])?Math['max'](_0x4fcb90[_0x3a3c95(0x220)],_0xb2994b['o'],_0xb2994b['c']):_0xb2994b['h'],_0x4dfc67['l']=isFinite(_0x4fcb90['min'])?Math['min'](_0x4fcb90[_0x3a3c95(0xba1)],_0xb2994b['o'],_0xb2994b['c']):_0xb2994b['l']);}return _0x4dfc67;})['sort']((_0x57159f,_0x38b26c)=>_0x57159f['t']-_0x38b26c['t']);}static[_0x46af5e(0xca5)](_0x531e26,_0x10ee60,_0x5a48e3,_0xce9927={}){const _0x4211ac=_0x46af5e;if(!_0x531e26||_0x531e26[_0x4211ac(0xc02)]===0x0)return _0x531e26||[];const _0x479a07=new Set([_0x4211ac(0xe34),_0x4211ac(0x7e6),_0x4211ac(0x934),_0x4211ac(0xc09)]);if(_0x479a07['has'](_0x5a48e3))return _0x531e26;const _0x533a41=_0xce9927['tz'],_0x54811d=_0x267c27=>{const _0x4d653f=_0x4211ac,_0x31dc8e=tzParts(_0x267c27,_0x533a41);switch(_0x10ee60){case _0x4d653f(0x2ab):return zonedWallToMs(_0x31dc8e['y'],_0x31dc8e['mo'],_0x31dc8e['d'],_0x31dc8e['h']+0x1,0x0,0x0,_0x533a41);case'date':return zonedWallToMs(_0x31dc8e['y'],_0x31dc8e['mo'],_0x31dc8e['d']+0x1,0x0,0x0,0x0,_0x533a41);case _0x4d653f(0x6f1):return zonedWallToMs(_0x31dc8e['y'],_0x31dc8e['mo'],_0x31dc8e['d']+0x7,0x0,0x0,0x0,_0x533a41);case _0x4d653f(0xe7d):return zonedWallToMs(_0x31dc8e['y'],_0x31dc8e['mo']+0x1,0x1,0x0,0x0,0x0,_0x533a41);case _0x4d653f(0x73e):return zonedWallToMs(_0x31dc8e['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x533a41);default:return null;}},_0x1c4aef=isNum(_0xce9927[_0x4211ac(0x3e1)])?_0xce9927[_0x4211ac(0x3e1)]:Date['now'](),_0x45b898=[_0x1c4aef];if(typeof _0xce9927[_0x4211ac(0xb24)]==='number'&&Number[_0x4211ac(0xf0d)](_0xce9927[_0x4211ac(0xb24)]))_0x45b898['push'](_0xce9927['endMs']);typeof _0xce9927[_0x4211ac(0x468)]===_0x4211ac(0x327)&&Number[_0x4211ac(0xf0d)](_0xce9927[_0x4211ac(0x468)])&&_0x45b898['push'](_0xce9927[_0x4211ac(0x468)]+(_0xce9927['carrySlackMs']||0x0));const _0x5bc336=Math[_0x4211ac(0xba1)](..._0x45b898),_0x337959=_0x531e26[_0x4211ac(0x165)]()[_0x4211ac(0xd09)]((_0x2e5be6,_0x2ef2c9)=>_0x2e5be6['t']-_0x2ef2c9['t']),_0x2f42ce=[];let _0x488d40=null,_0x1def94=null,_0x23e572=null,_0x42def8=_0x337959[0x0]['t'],_0x3d3dd7=0x0,_0x12a3a3=_0x337959['length']*0xa+0x3e8;while(_0x42def8<_0x5bc336&&_0x12a3a3-->0x0){const _0x502f69=_0x42def8;let _0x43ece2=null;while(_0x3d3dd7<_0x337959[_0x4211ac(0xc02)]&&_0x337959[_0x3d3dd7]['t']<=_0x502f69){if(_0x337959[_0x3d3dd7]['t']===_0x502f69)_0x43ece2=_0x337959[_0x3d3dd7];_0x3d3dd7++;}if(_0x43ece2){_0x2f42ce[_0x4211ac(0xb31)](_0x43ece2),_0x488d40=_0x43ece2['v']===null?null:_0x43ece2[_0x4211ac(0xe99)]!==undefined?_0x43ece2[_0x4211ac(0xe99)]:_0x43ece2['v'];if(_0x43ece2['_lastMin']!==undefined)_0x1def94=_0x43ece2[_0x4211ac(0x45e)];else{if(_0x43ece2[_0x4211ac(0xa84)]!==undefined)_0x1def94=_0x43ece2[_0x4211ac(0xa84)];}if(_0x43ece2[_0x4211ac(0x77d)]!==undefined)_0x23e572=_0x43ece2[_0x4211ac(0x77d)];else{if(_0x43ece2[_0x4211ac(0x6a0)]!==undefined)_0x23e572=_0x43ece2[_0x4211ac(0x6a0)];}}else{if(_0x488d40!==null){const _0x5ac793={'t':_0x502f69,'v':_0x488d40};if(_0x1def94!==null)_0x5ac793[_0x4211ac(0xa84)]=_0x1def94;if(_0x23e572!==null)_0x5ac793[_0x4211ac(0x6a0)]=_0x23e572;_0x2f42ce[_0x4211ac(0xb31)](_0x5ac793);}}const _0x29acd4=_0x54811d(_0x42def8);if(_0x29acd4===null||_0x29acd4<=_0x502f69)break;_0x42def8=_0x29acd4;}const _0x52a873=typeof _0xce9927['endMs']===_0x4211ac(0x327)&&Number[_0x4211ac(0xf0d)](_0xce9927[_0x4211ac(0xb24)])?_0xce9927['endMs']:Infinity;while(_0x3d3dd7<_0x337959[_0x4211ac(0xc02)]){if(_0x337959[_0x3d3dd7]['t']<_0x52a873)_0x2f42ce[_0x4211ac(0xb31)](_0x337959[_0x3d3dd7]);_0x3d3dd7++;}return _0x2f42ce;}static['breakGapsInCalendar'](_0x29cff2,_0x57e728,_0x144bc9={}){const _0x55ff52=_0x46af5e;if(!_0x29cff2||_0x29cff2[_0x55ff52(0xc02)]<0x2)return _0x29cff2||[];const _0x23be79=_0x144bc9['tz'],_0x2ca738=_0x518285=>{const _0x4b2b6e=_0x55ff52,_0x264c29=tzParts(_0x518285,_0x23be79);switch(_0x57e728){case'hour':return zonedWallToMs(_0x264c29['y'],_0x264c29['mo'],_0x264c29['d'],_0x264c29['h']+0x1,0x0,0x0,_0x23be79);case _0x4b2b6e(0x88f):return zonedWallToMs(_0x264c29['y'],_0x264c29['mo'],_0x264c29['d']+0x1,0x0,0x0,0x0,_0x23be79);case _0x4b2b6e(0x6f1):return zonedWallToMs(_0x264c29['y'],_0x264c29['mo'],_0x264c29['d']+0x7,0x0,0x0,0x0,_0x23be79);case _0x4b2b6e(0xe7d):return zonedWallToMs(_0x264c29['y'],_0x264c29['mo']+0x1,0x1,0x0,0x0,0x0,_0x23be79);case _0x4b2b6e(0x73e):return zonedWallToMs(_0x264c29['y']+0x1,0x0,0x1,0x0,0x0,0x0,_0x23be79);default:return null;}},_0x2fb8b3=_0x29cff2['slice']()[_0x55ff52(0xd09)]((_0x228480,_0x474903)=>_0x228480['t']-_0x474903['t']),_0x15c601=_0x2fb8b3[_0x2fb8b3['length']-0x1]['t'],_0x42e5f0=[];let _0x44b564=_0x2fb8b3[0x0]['t'],_0x5befc4=0x0,_0x5739bc=_0x2fb8b3['length']*0x4+0x7d0;while(_0x44b564<=_0x15c601&&_0x5739bc-->0x0){const _0x1894f5=_0x44b564;let _0x854366=null;while(_0x5befc4<_0x2fb8b3[_0x55ff52(0xc02)]&&_0x2fb8b3[_0x5befc4]['t']<=_0x1894f5){if(_0x2fb8b3[_0x5befc4]['t']===_0x1894f5)_0x854366=_0x2fb8b3[_0x5befc4];_0x5befc4++;}_0x42e5f0[_0x55ff52(0xb31)](_0x854366||{'t':_0x1894f5,'v':null});const _0x267a68=_0x2ca738(_0x44b564);if(_0x267a68===null||_0x267a68<=_0x1894f5)break;_0x44b564=_0x267a68;}return _0x42e5f0;}static['statsFieldCascade'](_0x413075){const _0x2325e7=_0x46af5e;switch(_0x413075){case _0x2325e7(0xa5d):case _0x2325e7(0x2d8):return['state',_0x2325e7(0xe34),'mean'];case _0x2325e7(0xe34):return[_0x2325e7(0xe34),_0x2325e7(0x7e6),_0x2325e7(0xd0e),_0x2325e7(0x5f5)];case _0x2325e7(0x934):return[_0x2325e7(0x5f5),_0x2325e7(0xd0e)];case'sum':return[_0x2325e7(0xe34),'sum'];case _0x2325e7(0xc09):return[_0x2325e7(0xd0e),_0x2325e7(0x5f5)];case _0x2325e7(0xba1):return[_0x2325e7(0xba1),_0x2325e7(0x5f5),_0x2325e7(0xd0e)];case'max':return[_0x2325e7(0x220),_0x2325e7(0x5f5),_0x2325e7(0xd0e)];case _0x2325e7(0xfbc):case _0x2325e7(0xd0e):default:return['mean',_0x2325e7(0x5f5)];}}static[_0x46af5e(0x3ba)](_0x50be8a,_0x4b5fad){const _0x3565fc=_0x46af5e;if(!_0x50be8a)return null;const _0x95c2d8=DataProcessor[_0x3565fc(0x51d)](_0x4b5fad);for(const _0x51ae4a of _0x95c2d8){const _0x501db4=_0x50be8a[_0x51ae4a];if(_0x501db4!==null&&_0x501db4!==undefined&&!Number[_0x3565fc(0xd8f)](_0x501db4))return _0x501db4;}return null;}static[_0x46af5e(0x8df)](_0x2865ef){const _0x35324f=_0x46af5e;if(!Array['isArray'](_0x2865ef)||!_0x2865ef[_0x35324f(0xc02)])return _0x2865ef||[];if(_0x2865ef[_0x35324f(0xc02)]<0x2)return[{..._0x2865ef[0x0],'v':0x0}];const _0x140fbf=_0x2865ef[_0x35324f(0xb3f)](_0x23e301=>_0x23e301['v']),_0x7fc4f7=new Array(_0x2865ef[_0x35324f(0xc02)]);_0x7fc4f7[0x0]={..._0x2865ef[0x0],'v':0x0};for(let _0x53035d=0x1;_0x53035d<_0x2865ef[_0x35324f(0xc02)];_0x53035d++){_0x7fc4f7[_0x53035d]={..._0x2865ef[_0x53035d],'v':_0x140fbf[_0x53035d]-_0x140fbf[_0x53035d-0x1]};}return _0x7fc4f7;}static[_0x46af5e(0x9a6)](_0xdec827,_0x415790){const _0x2ab256=_0x46af5e;if(_0x415790&&Array[_0x2ab256(0x902)](_0xdec827))_0xdec827=_0xdec827[_0x2ab256(0x919)](_0x53838d=>_0x53838d['v']!==0x0);if(!Array[_0x2ab256(0x902)](_0xdec827)||!_0xdec827[_0x2ab256(0xc02)])return _0xdec827||[];if(_0xdec827['length']<0x2)return[{..._0xdec827[0x0],'v':0x0}];const _0x11247e=_0xdec827[_0x2ab256(0xb3f)](_0x4ba150=>_0x4ba150['v']),_0x369174=new Array(_0xdec827[_0x2ab256(0xc02)]);_0x369174[0x0]={..._0xdec827[0x0],'v':0x0};for(let _0xafdce6=0x1;_0xafdce6<_0xdec827['length'];_0xafdce6++){const _0x13308c=_0x11247e[_0xafdce6-0x1],_0x5cc66c=_0x11247e[_0xafdce6];_0x369174[_0xafdce6]={..._0xdec827[_0xafdce6],'v':isNum(_0x13308c)&&isNum(_0x5cc66c)?Math[_0x2ab256(0x220)](0x0,_0x5cc66c-_0x13308c):null};}return _0x369174;}static[_0x46af5e(0xcce)](_0x271bef,_0x29aa20){const _0xf029fb=_0x46af5e;if(!_0x271bef?.[_0xf029fb(0xc02)])return[];const _0x5d9ef7=toNum(_0x29aa20['value_factor']),_0x4edb65=isNum(_0x5d9ef7)&&_0x5d9ef7!==0x0?Math[_0xf029fb(0x91f)](0xa,_0x5d9ef7):0x1,_0x2b5cbc=!!_0x29aa20[_0xf029fb(0xd57)];if(_0x4edb65===0x1&&!_0x2b5cbc)return _0x271bef;const _0x3ec447=_0x1d935a=>{let _0x3b2cdf=_0x1d935a*_0x4edb65;if(_0x2b5cbc)_0x3b2cdf=-_0x3b2cdf;return _0x3b2cdf;},_0x1d5a62=new Array(_0x271bef[_0xf029fb(0xc02)]);for(let _0xd41214=0x0;_0xd41214<_0x271bef[_0xf029fb(0xc02)];_0xd41214++){const _0x26d91f=_0x271bef[_0xd41214];if(!isNum(_0x26d91f['v'])){_0x1d5a62[_0xd41214]=_0x26d91f;continue;}const _0x27d603={'t':_0x26d91f['t'],'v':_0x3ec447(_0x26d91f['v'])};if(isNum(_0x26d91f[_0xf029fb(0xa84)])&&isNum(_0x26d91f['bMax'])){const _0x5b6549=_0x3ec447(_0x26d91f[_0xf029fb(0xa84)]),_0x3da6f6=_0x3ec447(_0x26d91f[_0xf029fb(0x6a0)]);_0x27d603[_0xf029fb(0xa84)]=Math['min'](_0x5b6549,_0x3da6f6),_0x27d603[_0xf029fb(0x6a0)]=Math[_0xf029fb(0x220)](_0x5b6549,_0x3da6f6);}if(isNum(_0x26d91f[_0xf029fb(0x72a)]))_0x27d603[_0xf029fb(0x72a)]=_0x3ec447(_0x26d91f[_0xf029fb(0x72a)]);if(isNum(_0x26d91f[_0xf029fb(0x683)]))_0x27d603['sMin']=_0x3ec447(_0x26d91f['sMin']);_0x1d5a62[_0xd41214]=_0x27d603;}return _0x1d5a62;}static['applyPostBucketTransform'](_0x10719b,_0x487977,_0x296e97,_0x2a4480){const _0x35fa6c=_0x46af5e;if(!_0x10719b?.['length'])return _0x10719b||[];const _0xc7211a=_0x487977[COMPILED_TRANSFORM];if(!_0xc7211a)return _0x10719b;let _0x28b9af=Infinity,_0x2bb8bb=-Infinity,_0x4dd6c9=0x0,_0xec9fd2=0x0,_0x13b130=null,_0x219312=null;for(const _0x47be1a of _0x10719b){if(!isNum(_0x47be1a['v']))continue;if(_0x13b130===null)_0x13b130=_0x47be1a['v'];_0x219312=_0x47be1a['v'];if(_0x47be1a['v']<_0x28b9af)_0x28b9af=_0x47be1a['v'];if(_0x47be1a['v']>_0x2bb8bb)_0x2bb8bb=_0x47be1a['v'];_0x4dd6c9+=_0x47be1a['v'],_0xec9fd2++;}const _0xc26d1f=_0xec9fd2>0x0?{'first':_0x13b130,'last':_0x219312,'min':_0x28b9af,'max':_0x2bb8bb,'avg':_0x4dd6c9/_0xec9fd2}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0},_0x2bb6ba=[];for(let _0x409a98=0x0;_0x409a98<_0x10719b[_0x35fa6c(0xc02)];_0x409a98++){const _0x446db4=_0x10719b[_0x409a98];if(!isNum(_0x446db4['v'])){_0x2bb6ba[_0x35fa6c(0xb31)](_0x446db4);continue;}const _0x45a837=_0x446db4['v'],_0x3b1438={'t':_0x446db4['t'],'now':_0x2a4480?.[_0x35fa6c(0x69d)],'tz':_0x2a4480?.['tz']},_0x4a74ac=_0xc7211a(_0x446db4['v'],_0x409a98,_0xc26d1f,_0x3b1438);if(_0x4a74ac===null){_0x2bb6ba['push'](transformGapPoint(_0x446db4));continue;}const _0x3d872d={'t':_0x446db4['t'],'v':_0x4a74ac};if(_0x45a837!==_0x4a74ac)_0x3d872d[_0x35fa6c(0xce9)]=_0x45a837;const _0x5b6aff=_0x4d1ec3=>{const _0x47f930=_0x35fa6c;if(!isNum(_0x4d1ec3))return null;const _0x16fe1e=_0xc7211a(_0x4d1ec3,_0x409a98,_0xc26d1f,_0x3b1438);return _0x16fe1e===null||Number[_0x47f930(0xd8f)](_0x16fe1e)?null:_0x16fe1e;};if(isNum(_0x446db4['sMean'])){const _0x1c4660=_0x5b6aff(_0x446db4['sMean']);if(_0x1c4660!==null)_0x3d872d[_0x35fa6c(0x72a)]=_0x1c4660;}if(isNum(_0x446db4[_0x35fa6c(0x683)])){const _0x17de76=_0x5b6aff(_0x446db4['sMin']);if(_0x17de76!==null)_0x3d872d[_0x35fa6c(0x683)]=_0x17de76;}if(isNum(_0x446db4['o'])&&isNum(_0x446db4['h'])&&isNum(_0x446db4['l'])&&isNum(_0x446db4['c'])){const _0x4a661a=_0x5b6aff(_0x446db4['o']),_0x27bda9=_0x5b6aff(_0x446db4['h']),_0xc316e9=_0x5b6aff(_0x446db4['l']),_0x56ee06=_0x5b6aff(_0x446db4['c']);_0x4a661a!==null&&_0x27bda9!==null&&_0xc316e9!==null&&_0x56ee06!==null&&(_0x3d872d['o']=_0x4a661a,_0x3d872d['c']=_0x56ee06,_0x3d872d['h']=Math[_0x35fa6c(0x220)](_0x4a661a,_0x27bda9,_0xc316e9,_0x56ee06),_0x3d872d['l']=Math['min'](_0x4a661a,_0x27bda9,_0xc316e9,_0x56ee06));}if(_0x296e97&&_0x446db4[_0x35fa6c(0xa84)]!=null&&_0x446db4['bMax']!=null){const _0x2be80c=_0xc7211a(_0x446db4[_0x35fa6c(0xa84)],_0x409a98,_0xc26d1f,_0x3b1438),_0x5199e6=_0xc7211a(_0x446db4[_0x35fa6c(0x6a0)],_0x409a98,_0xc26d1f,_0x3b1438);_0x2be80c!==null&&_0x5199e6!==null&&!Number['isNaN'](_0x2be80c)&&!Number[_0x35fa6c(0xd8f)](_0x5199e6)&&(_0x3d872d['bMin']=Math[_0x35fa6c(0xba1)](_0x2be80c,_0x5199e6),_0x3d872d[_0x35fa6c(0x6a0)]=Math[_0x35fa6c(0x220)](_0x2be80c,_0x5199e6));}_0x2bb6ba['push'](_0x3d872d);}return _0x2bb6ba;}static[_0x46af5e(0x5b8)](_0x1279c0,_0x5ac4db,_0x3762da=![],_0x19a80a){const _0x2d1723=_0x46af5e;if(!_0x1279c0?.['length'])return[];const _0x125339=_0x3762da?null:_0x5ac4db[COMPILED_TRANSFORM],_0x1d5627=toNum(_0x5ac4db[_0x2d1723(0xde5)]),_0x5489c9=isNum(_0x1d5627)&&_0x1d5627!==0x0?Math[_0x2d1723(0x91f)](0xa,_0x1d5627):0x1,_0x5f5230=!!_0x5ac4db[_0x2d1723(0xd57)],_0x511334=_0x17299=>{if(!isNum(_0x17299))return null;let _0x505c9a=_0x17299;if(_0x5489c9!==0x1)_0x505c9a*=_0x5489c9;if(_0x5f5230)_0x505c9a=-_0x505c9a;return _0x505c9a;};let _0x2f0a72=null;if(_0x125339){let _0x404349=Infinity,_0x557ff1=-Infinity,_0x512509=0x0,_0x30b439=0x0,_0x129844=null,_0x334f43=null;for(const _0x5610b9 of _0x1279c0){const _0x5baf24=_0x511334(_0x5610b9['v']);if(_0x5baf24===null)continue;if(_0x129844===null)_0x129844=_0x5baf24;_0x334f43=_0x5baf24;if(_0x5baf24<_0x404349)_0x404349=_0x5baf24;if(_0x5baf24>_0x557ff1)_0x557ff1=_0x5baf24;_0x512509+=_0x5baf24,_0x30b439++;}_0x2f0a72=_0x30b439>0x0?{'first':_0x129844,'last':_0x334f43,'min':_0x404349,'max':_0x557ff1,'avg':_0x512509/_0x30b439}:{'first':0x0,'last':0x0,'min':0x0,'max':0x0,'avg':0x0};}const _0xa041e3=[],_0x5726c4=(_0x3e6c7a,_0x344bb5,_0x23ff5e)=>{const _0xe527ce=_0x2d1723;let _0x5502c2=_0x511334(_0x3e6c7a);if(_0x5502c2===null)return null;if(_0x125339){_0x5502c2=_0x125339(_0x5502c2,_0x344bb5,_0x2f0a72,{'t':_0x23ff5e,'now':_0x19a80a?.['now'],'tz':_0x19a80a?.['tz']});if(_0x5502c2===null||Number[_0xe527ce(0xd8f)](_0x5502c2))return null;}return _0x5502c2;};for(let _0x28d92e=0x0;_0x28d92e<_0x1279c0['length'];_0x28d92e++){const _0x41fdca=_0x1279c0[_0x28d92e];if(!isNum(_0x41fdca['v'])){_0xa041e3['push'](transformGapPoint(_0x41fdca));continue;}const _0x262240=_0x5726c4(_0x41fdca['v'],_0x28d92e,_0x41fdca['t']);if(_0x262240===null){_0xa041e3['push'](transformGapPoint(_0x41fdca));continue;}const _0x2f3399={'t':_0x41fdca['t'],'v':_0x262240};if(_0x41fdca[_0x2d1723(0xa84)]!=null&&_0x41fdca[_0x2d1723(0x6a0)]!=null){const _0x5a1e22=_0x5726c4(_0x41fdca[_0x2d1723(0xa84)],_0x28d92e,_0x41fdca['t']),_0x1d8089=_0x5726c4(_0x41fdca['bMax'],_0x28d92e,_0x41fdca['t']);_0x5a1e22!==null&&_0x1d8089!==null&&(_0x2f3399[_0x2d1723(0xa84)]=Math[_0x2d1723(0xba1)](_0x5a1e22,_0x1d8089),_0x2f3399[_0x2d1723(0x6a0)]=Math['max'](_0x5a1e22,_0x1d8089));}_0xa041e3[_0x2d1723(0xb31)](_0x2f3399);}return _0xa041e3;}static['applyEntityTransforms'](_0x58fab1,_0x37e160,_0x4824e5){if(_0x58fab1['v']===null)return _0x58fab1;const _0x478b1a=DataProcessor['transformSeries']([_0x58fab1],_0x37e160,![],_0x4824e5);return _0x478b1a[0x0]||{'t':_0x58fab1['t'],'v':null};}static[_0x46af5e(0xb79)](_0x1bfb30){const _0x527fe0=_0x46af5e;if(!_0x1bfb30?.[_0x527fe0(0xc02)])return{'min':null,'max':null,'avg':null,'sum':null,'first':null,'last':null,'minT':null,'maxT':null,'firstT':null,'lastT':null};let _0x49e077=Infinity,_0x45dbd7=-Infinity,_0xebfe4e=0x0,_0x376d8e=0x0,_0x2b22c8=null,_0x4b4b83=null,_0x1e2c30=null,_0x596769=null,_0x398ef7=null,_0x28d45f=null;for(const _0x2d7d40 of _0x1bfb30){if(_0x2d7d40['v']===null)continue;_0x2d7d40['v']<_0x49e077&&(_0x49e077=_0x2d7d40['v'],_0x2b22c8=_0x2d7d40['t']),_0x2d7d40['v']>_0x45dbd7&&(_0x45dbd7=_0x2d7d40['v'],_0x4b4b83=_0x2d7d40['t']),_0xebfe4e+=_0x2d7d40['v'],_0x376d8e++,_0x596769===null&&(_0x596769=_0x2d7d40['v'],_0x1e2c30=_0x2d7d40['t']),_0x28d45f=_0x2d7d40['v'],_0x398ef7=_0x2d7d40['t'];}return{'min':_0x376d8e?_0x49e077:null,'max':_0x376d8e?_0x45dbd7:null,'avg':_0x376d8e?_0xebfe4e/_0x376d8e:null,'sum':_0x376d8e?_0xebfe4e:null,'first':_0x596769,'last':_0x28d45f,'minT':_0x2b22c8,'maxT':_0x4b4b83,'firstT':_0x1e2c30,'lastT':_0x398ef7};}}function dpCenterShift(_0x2ba281,_0x18d7c5,_0x4af698,_0x4d6ae0,_0x3328f7){const _0x3eedeb=_0x46af5e,_0x101a76=isNum(_0x3328f7)?_0x3328f7:0x8,_0x5fe444=_0x4af698===null||_0x4af698===undefined?0x0:Math[_0x3eedeb(0x220)](0x0,_0x4af698+_0x101a76-_0x2ba281),_0x28cf43=_0x4d6ae0===null||_0x4d6ae0===undefined?0x0:Math['max'](0x0,_0x18d7c5+_0x101a76-_0x4d6ae0);if(_0x5fe444>0x0)return _0x5fe444;if(_0x28cf43>0x0)return-_0x28cf43;return 0x0;}function parseCssColorToRgb(_0x7a6698){const _0x412791=_0x46af5e;if(typeof _0x7a6698!=='string')return null;const _0x1e4e1d=_0x7a6698['trim']();let _0x135c31=_0x1e4e1d[_0x412791(0x727)](/^#([0-9a-f]{3,4})$/i);if(_0x135c31){const _0x547f34=_0x135c31[0x1];return[parseInt(_0x547f34[0x0]+_0x547f34[0x0],0x10),parseInt(_0x547f34[0x1]+_0x547f34[0x1],0x10),parseInt(_0x547f34[0x2]+_0x547f34[0x2],0x10)];}_0x135c31=_0x1e4e1d[_0x412791(0x727)](/^#([0-9a-f]{6})([0-9a-f]{2})?$/i);if(_0x135c31){const _0x58d102=_0x135c31[0x1];return[parseInt(_0x58d102[_0x412791(0x165)](0x0,0x2),0x10),parseInt(_0x58d102[_0x412791(0x165)](0x2,0x4),0x10),parseInt(_0x58d102['slice'](0x4,0x6),0x10)];}_0x135c31=_0x1e4e1d['match'](/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})/i);if(_0x135c31)return[Math[_0x412791(0xba1)](0xff,+_0x135c31[0x1]),Math[_0x412791(0xba1)](0xff,+_0x135c31[0x2]),Math['min'](0xff,+_0x135c31[0x3])];return null;}function relLuminance(_0x3b02ae){const _0x52924b=_0x3da0c2=>{const _0x3dec5a=_0x3da0c2/0xff;return _0x3dec5a<=0.03928?_0x3dec5a/12.92:Math['pow']((_0x3dec5a+0.055)/1.055,2.4);};return 0.2126*_0x52924b(_0x3b02ae[0x0])+0.7152*_0x52924b(_0x3b02ae[0x1])+0.0722*_0x52924b(_0x3b02ae[0x2]);}function contrastRatio(_0x110425,_0x4cc4f3){const _0x4c1d49=_0x46af5e,_0x30b955=relLuminance(_0x110425),_0x506982=relLuminance(_0x4cc4f3),_0x1a191d=Math[_0x4c1d49(0x220)](_0x30b955,_0x506982),_0x1f5b0b=Math[_0x4c1d49(0xba1)](_0x30b955,_0x506982);return(_0x1a191d+0.05)/(_0x1f5b0b+0.05);}function mixRgb(_0x339d1c,_0x5c64e0,_0x32769f){const _0x42cbce=_0x46af5e;return[0x0,0x1,0x2]['map'](_0x2b3f6b=>Math[_0x42cbce(0x686)](_0x339d1c[_0x2b3f6b]+(_0x5c64e0[_0x2b3f6b]-_0x339d1c[_0x2b3f6b])*_0x32769f));}function roundedBarPath(_0x372d22,_0x250a12,_0x2a4e17,_0x3de063,_0x32c568,_0x59f514){const _0x257051=_0x46af5e,_0x5126dc=Math[_0x257051(0x220)](0x0,Math[_0x257051(0xba1)](_0x32c568,_0x2a4e17/0x2,_0x3de063));if(_0x59f514===_0x257051(0x8f5))return'M'+_0x372d22+','+_0x250a12+'\x20h'+_0x2a4e17+'\x20v'+(_0x3de063-_0x5126dc)+'\x20a'+_0x5126dc+','+_0x5126dc+_0x257051(0xe98)+-_0x5126dc+','+_0x5126dc+'\x20h'+-(_0x2a4e17-0x2*_0x5126dc)+'\x20a'+_0x5126dc+','+_0x5126dc+_0x257051(0xe98)+-_0x5126dc+','+-_0x5126dc+'\x20z';return'M'+_0x372d22+','+(_0x250a12+_0x5126dc)+'\x20a'+_0x5126dc+','+_0x5126dc+_0x257051(0xe98)+_0x5126dc+','+-_0x5126dc+'\x20h'+(_0x2a4e17-0x2*_0x5126dc)+'\x20a'+_0x5126dc+','+_0x5126dc+_0x257051(0xe98)+_0x5126dc+','+_0x5126dc+'\x20v'+(_0x3de063-_0x5126dc)+'\x20h'+-_0x2a4e17+'\x20z';}function bandLabelFill(_0x56f032){const _0x4750a0=parseCssColorToRgb(_0x56f032);return _0x4750a0&&relLuminance(_0x4750a0)>0.5?'#1d1d1d':'#fff';}function rgbToCss(_0x247f9e){const _0x38065a=_0x46af5e;return _0x38065a(0x62f)+_0x247f9e[0x0]+',\x20'+_0x247f9e[0x1]+',\x20'+_0x247f9e[0x2]+')';}function buildLinearPath(_0x569ac6,_0x8e61c9,_0xaf7c7a){const _0x4e94f0=_0x46af5e;if(!_0x569ac6[_0x4e94f0(0xc02)])return'';let _0x46119c='M\x20'+_0x8e61c9(_0x569ac6[0x0]['t'])+'\x20'+_0xaf7c7a(_0x569ac6[0x0]);for(let _0x4aee2f=0x1;_0x4aee2f<_0x569ac6['length'];_0x4aee2f++)_0x46119c+=_0x4e94f0(0xe71)+_0x8e61c9(_0x569ac6[_0x4aee2f]['t'])+'\x20'+_0xaf7c7a(_0x569ac6[_0x4aee2f]);return _0x46119c;}function buildStepPath(_0x5a0d01,_0x37a97e,_0xa8601f){const _0x5856b8=_0x46af5e;if(!_0x5a0d01[_0x5856b8(0xc02)])return'';let _0x41ce6f='M\x20'+_0x37a97e(_0x5a0d01[0x0]['t'])+'\x20'+_0xa8601f(_0x5a0d01[0x0]);for(let _0x1e9ac5=0x1;_0x1e9ac5<_0x5a0d01[_0x5856b8(0xc02)];_0x1e9ac5++){const _0x5e2dc7=_0x37a97e(_0x5a0d01[_0x1e9ac5]['t']),_0x5af026=_0xa8601f(_0x5a0d01[_0x1e9ac5-0x1]),_0x36fefb=_0xa8601f(_0x5a0d01[_0x1e9ac5]);_0x41ce6f+=_0x5856b8(0xe71)+_0x5e2dc7+'\x20'+_0x5af026;if(_0x36fefb!==_0x5af026)_0x41ce6f+=_0x5856b8(0xe71)+_0x5e2dc7+'\x20'+_0x36fefb;}return _0x41ce6f;}function smoothControlPoints(_0x5bfb35,_0x4d26c9){const _0x29d934=_0x46af5e,_0x42657a=_0x5bfb35[_0x4d26c9-0x1]||_0x5bfb35[_0x4d26c9],_0x5b5fb8=_0x5bfb35[_0x4d26c9],_0xc77aed=_0x5bfb35[_0x4d26c9+0x1],_0x235807=_0x5bfb35[_0x4d26c9+0x2]||_0xc77aed,_0x4ec4f0=_0x5b5fb8['x']<_0xc77aed['x']?_0x5b5fb8['x']:_0xc77aed['x'],_0x1d68d0=_0x5b5fb8['x']<_0xc77aed['x']?_0xc77aed['x']:_0x5b5fb8['x'],_0x180e82=_0x5b5fb8['y']<_0xc77aed['y']?_0x5b5fb8['y']:_0xc77aed['y'],_0x3a9dd2=_0x5b5fb8['y']<_0xc77aed['y']?_0xc77aed['y']:_0x5b5fb8['y'];return{'c1x':Math[_0x29d934(0x220)](_0x4ec4f0,Math[_0x29d934(0xba1)](_0x1d68d0,_0x5b5fb8['x']+(_0xc77aed['x']-_0x42657a['x'])/0x6)),'c1y':Math[_0x29d934(0x220)](_0x180e82,Math['min'](_0x3a9dd2,_0x5b5fb8['y']+(_0xc77aed['y']-_0x42657a['y'])/0x6)),'c2x':Math[_0x29d934(0x220)](_0x4ec4f0,Math[_0x29d934(0xba1)](_0x1d68d0,_0xc77aed['x']-(_0x235807['x']-_0x5b5fb8['x'])/0x6)),'c2y':Math['max'](_0x180e82,Math[_0x29d934(0xba1)](_0x3a9dd2,_0xc77aed['y']-(_0x235807['y']-_0x5b5fb8['y'])/0x6))};}function buildSmoothSegments(_0x1623cd,_0x56748d,_0x18925d){const _0x279c9e=_0x46af5e,_0x488e8d=_0x1623cd[_0x279c9e(0xc02)],_0x139b6f=new Array(_0x488e8d);for(let _0x2df425=0x0;_0x2df425<_0x488e8d;_0x2df425++)_0x139b6f[_0x2df425]={'x':_0x56748d(_0x1623cd[_0x2df425]['t']),'y':_0x18925d(_0x1623cd[_0x2df425])};const _0x90a8f4=[];for(let _0x359ca6=0x0;_0x359ca6<_0x488e8d-0x1;_0x359ca6++){const _0x2c162f=smoothControlPoints(_0x139b6f,_0x359ca6);_0x90a8f4[_0x279c9e(0xb31)]({'d':'M\x20'+_0x139b6f[_0x359ca6]['x']+'\x20'+_0x139b6f[_0x359ca6]['y']+_0x279c9e(0xac1)+_0x2c162f['c1x']+'\x20'+_0x2c162f[_0x279c9e(0x9fe)]+'\x20'+_0x2c162f[_0x279c9e(0x388)]+'\x20'+_0x2c162f[_0x279c9e(0x5c5)]+'\x20'+_0x139b6f[_0x359ca6+0x1]['x']+'\x20'+_0x139b6f[_0x359ca6+0x1]['y'],'from':_0x1623cd[_0x359ca6],'to':_0x1623cd[_0x359ca6+0x1],'cp':_0x2c162f});}return _0x90a8f4;}function buildSegments(_0x5d11d0,_0x453b21,_0x2cc1bc,_0x26bab8,_0x274a21){const _0xca0555=_0x46af5e;if(_0x274a21&&!_0x26bab8&&_0x5d11d0['length']>0x2)return buildSmoothSegments(_0x5d11d0,_0x453b21,_0x2cc1bc);const _0x385cff=[];for(let _0x1bd958=0x0;_0x1bd958<_0x5d11d0[_0xca0555(0xc02)]-0x1;_0x1bd958++){const _0x507aee=_0x5d11d0[_0x1bd958],_0x2b282f=_0x5d11d0[_0x1bd958+0x1],_0x46078c=_0x453b21(_0x507aee['t']),_0xbf15e=_0x453b21(_0x2b282f['t']),_0x337d82=_0x2cc1bc(_0x507aee),_0x1a5cbe=_0x2cc1bc(_0x2b282f);_0x385cff[_0xca0555(0xb31)]({'d':_0x26bab8?'M\x20'+_0x46078c+'\x20'+_0x337d82+_0xca0555(0xe71)+_0xbf15e+'\x20'+_0x337d82+_0xca0555(0xe71)+_0xbf15e+'\x20'+_0x1a5cbe:'M\x20'+_0x46078c+'\x20'+_0x337d82+_0xca0555(0xe71)+_0xbf15e+'\x20'+_0x1a5cbe,'from':_0x507aee,'to':_0x2b282f});}return _0x385cff;}function buildSmoothPath(_0x5178da,_0x3daa5c,_0x4c4ee1){const _0xc7a22e=_0x46af5e;if(_0x5178da[_0xc7a22e(0xc02)]<0x2)return buildLinearPath(_0x5178da,_0x3daa5c,_0x4c4ee1);const _0x26c90e=_0x5178da['length'],_0x254b0f=new Array(_0x26c90e);for(let _0x366d22=0x0;_0x366d22<_0x26c90e;_0x366d22++)_0x254b0f[_0x366d22]={'x':_0x3daa5c(_0x5178da[_0x366d22]['t']),'y':_0x4c4ee1(_0x5178da[_0x366d22])};if(_0x26c90e===0x2)return'M\x20'+_0x254b0f[0x0]['x']+'\x20'+_0x254b0f[0x0]['y']+_0xc7a22e(0xe71)+_0x254b0f[0x1]['x']+'\x20'+_0x254b0f[0x1]['y'];let _0x29023d='M\x20'+_0x254b0f[0x0]['x']+'\x20'+_0x254b0f[0x0]['y'];for(let _0x5d9077=0x0;_0x5d9077<_0x26c90e-0x1;_0x5d9077++){const _0x4e486c=smoothControlPoints(_0x254b0f,_0x5d9077);_0x29023d+=_0xc7a22e(0xac1)+_0x4e486c[_0xc7a22e(0x84e)]+'\x20'+_0x4e486c['c1y']+'\x20'+_0x4e486c['c2x']+'\x20'+_0x4e486c[_0xc7a22e(0x5c5)]+'\x20'+_0x254b0f[_0x5d9077+0x1]['x']+'\x20'+_0x254b0f[_0x5d9077+0x1]['y'];}return _0x29023d;}function topEdgeMode(_0x157bce){const _0x55ab35=_0x46af5e,_0x34dca8=_0x157bce?.['entity'];if(!_0x34dca8)return _0x55ab35(0x853);const _0x25213c=_0x34dca8[_0x55ab35(0xc3c)]||_0x55ab35(0xcd2);if(_0x25213c===_0x55ab35(0x8fb)||_0x25213c==='candlestick')return'linear';const _0x14a146=_0x25213c===_0x55ab35(0xfb0),_0x4ebebe=_0x34dca8[_0x55ab35(0xdd5)];let _0x38b426=!!(_0x4ebebe?.[_0x55ab35(0x1007)]&&_0x4ebebe?.[_0x55ab35(0x202)]?.[_0x55ab35(0xc02)]);if(_0x38b426&&_0x4ebebe[_0x55ab35(0x873)]){const _0x365daf=_0x4ebebe['source']===_0x55ab35(0xbcc);for(let _0x21899a=_0x157bce[_0x55ab35(0x93a)]['length']-0x1;_0x21899a>=0x0;_0x21899a--){const _0x1a5b4d=_0x157bce['points'][_0x21899a],_0x3bd4b5=_0x365daf&&_0x1a5b4d[_0x55ab35(0xce9)]!=null?_0x1a5b4d[_0x55ab35(0xce9)]:_0x1a5b4d['v'];if(isNum(_0x3bd4b5)){_0x38b426=![];break;}}}const _0x37c431=_0x38b426?_0x4ebebe['source']===_0x55ab35(0xbcc)||_0x4ebebe[_0x55ab35(0x38a)]===_0x55ab35(0xc96):!!_0x34dca8['rise_fall_colors']?.[_0x55ab35(0x1007)];if(_0x37c431){const _0x217642=_0x25213c===_0x55ab35(0x93e)||_0x34dca8[_0x55ab35(0xad9)];if(_0x14a146)return _0x217642?'linear':_0x55ab35(0xfb0);return _0x34dca8['smooth']?_0x55ab35(0xe46):_0x55ab35(0x853);}if(_0x14a146)return'step';return _0x34dca8[_0x55ab35(0xe46)]?_0x55ab35(0xe46):_0x55ab35(0x853);}function buildShapePath(_0x1c8caa,_0x32700e,_0x3c3e5c,_0x2d9c29){const _0x58116a=_0x46af5e;return _0x1c8caa===_0x58116a(0xfb0)?buildStepPath(_0x32700e,_0x3c3e5c,_0x2d9c29):_0x1c8caa==='smooth'?buildSmoothPath(_0x32700e,_0x3c3e5c,_0x2d9c29):buildLinearPath(_0x32700e,_0x3c3e5c,_0x2d9c29);}function findClosestPoint(_0x26f76f,_0x4734b2){const _0x174480=_0x46af5e;if(!_0x26f76f['length'])return null;let _0x33b0bb=0x0,_0x325d02=_0x26f76f[_0x174480(0xc02)]-0x1;while(_0x33b0bb<_0x325d02){const _0x31efb5=_0x33b0bb+_0x325d02>>0x1;if(_0x26f76f[_0x31efb5]['t']<_0x4734b2)_0x33b0bb=_0x31efb5+0x1;else _0x325d02=_0x31efb5;}const _0x1991ed=_0x26f76f[_0x33b0bb],_0x4fbb91=_0x26f76f[_0x33b0bb-0x1];if(!_0x4fbb91)return _0x1991ed;return Math[_0x174480(0x1ae)](_0x1991ed['t']-_0x4734b2)<Math[_0x174480(0x1ae)](_0x4fbb91['t']-_0x4734b2)?_0x1991ed:_0x4fbb91;}function resolveValueColor(_0x35af60,_0x386333,_0x488405,_0x220aa0){const _0x581691=_0x46af5e;if(!isNum(_0x35af60)||!_0x386333?.[_0x581691(0xc02)])return _0x488405;const _0x1c7152=[..._0x386333]['filter'](_0x18223d=>isNum(toNum(_0x18223d['value']))&&_0x18223d[_0x581691(0xd95)])[_0x581691(0xd09)]((_0x14fc84,_0x366088)=>toNum(_0x14fc84[_0x581691(0x2ea)])-toNum(_0x366088[_0x581691(0x2ea)]));if(!_0x1c7152[_0x581691(0xc02)])return _0x488405;if(_0x220aa0){if(_0x35af60<=toNum(_0x1c7152[0x0]['value']))return _0x1c7152[0x0][_0x581691(0xd95)];if(_0x35af60>toNum(_0x1c7152[_0x1c7152[_0x581691(0xc02)]-0x1]['value']))return _0x1c7152[_0x1c7152[_0x581691(0xc02)]-0x1][_0x581691(0xd95)];for(let _0x1c3701=0x0;_0x1c3701<_0x1c7152[_0x581691(0xc02)]-0x1;_0x1c3701++){const _0x44afd1=toNum(_0x1c7152[_0x1c3701]['value']),_0x246061=toNum(_0x1c7152[_0x1c3701+0x1][_0x581691(0x2ea)]);if(_0x35af60>_0x44afd1&&_0x35af60<=_0x246061){const _0x36cbe4=(_0x35af60-_0x44afd1)/(_0x246061-_0x44afd1||0x1);return _lerpColor(_0x1c7152[_0x1c3701]['color'],_0x1c7152[_0x1c3701+0x1][_0x581691(0xd95)],_0x36cbe4);}}return _0x1c7152[_0x1c7152[_0x581691(0xc02)]-0x1][_0x581691(0xd95)];}let _0x30abb0=_0x1c7152[0x0][_0x581691(0xd95)]||_0x488405;for(const _0x4da78d of _0x1c7152){if(_0x35af60>toNum(_0x4da78d[_0x581691(0x2ea)]))_0x30abb0=_0x4da78d[_0x581691(0xd95)]||_0x30abb0;}return _0x30abb0;}function _lerpColor(_0x3d1b57,_0x54e376,_0xfa8475){const _0x41725f=_0x46af5e,_0x20f96c=_parseColor(_0x3d1b57),_0x33dd0b=_parseColor(_0x54e376);if(!_0x20f96c||!_0x33dd0b)return _0xfa8475<0.5?_0x3d1b57:_0x54e376;const _0x1f482d=Math[_0x41725f(0x686)](_0x20f96c[0x0]+(_0x33dd0b[0x0]-_0x20f96c[0x0])*_0xfa8475),_0x323c94=Math[_0x41725f(0x686)](_0x20f96c[0x1]+(_0x33dd0b[0x1]-_0x20f96c[0x1])*_0xfa8475),_0x20e8a9=Math[_0x41725f(0x686)](_0x20f96c[0x2]+(_0x33dd0b[0x2]-_0x20f96c[0x2])*_0xfa8475);return _0x41725f(0x62f)+_0x1f482d+','+_0x323c94+','+_0x20e8a9+')';}function _parseColor(_0x43adb3,_0x308bd6){const _0xbec70e=_0x46af5e;if(!_0x43adb3||typeof _0x43adb3!==_0xbec70e(0xade))return null;let _0x273a8c=_0x43adb3[_0xbec70e(0x727)](/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i);if(_0x273a8c)return[parseInt(_0x273a8c[0x1],0x10),parseInt(_0x273a8c[0x2],0x10),parseInt(_0x273a8c[0x3],0x10)];_0x273a8c=_0x43adb3[_0xbec70e(0x727)](/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i);if(_0x273a8c)return[parseInt(_0x273a8c[0x1]+_0x273a8c[0x1],0x10),parseInt(_0x273a8c[0x2]+_0x273a8c[0x2],0x10),parseInt(_0x273a8c[0x3]+_0x273a8c[0x3],0x10)];_0x273a8c=_0x43adb3[_0xbec70e(0x727)](/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/);if(_0x273a8c)return[Math['round'](+_0x273a8c[0x1]),Math[_0xbec70e(0x686)](+_0x273a8c[0x2]),Math['round'](+_0x273a8c[0x3])];if(_0x308bd6)return null;try{const _0x42af7a=document[_0xbec70e(0xbde)]('canvas')[_0xbec70e(0x805)]('2d');return _0x42af7a[_0xbec70e(0x20c)]=_0x43adb3,_parseColor(_0x42af7a[_0xbec70e(0x20c)],!![]);}catch(_0x524ebf){}return null;}function thresholdCrossings(_0x19e6c6,_0x4cad92,_0x569000){const _0x3233fd=_0x46af5e;if(!isNum(_0x19e6c6)||!isNum(_0x4cad92)||!_0x569000?.['length']||_0x19e6c6===_0x4cad92)return[];const _0x7bf705=_0x569000[_0x3233fd(0xb3f)](_0x17b358=>toNum(_0x17b358[_0x3233fd(0x2ea)]))[_0x3233fd(0x919)](_0x5652de=>isNum(_0x5652de))[_0x3233fd(0xd09)]((_0x32e70b,_0x5d045e)=>_0x32e70b-_0x5d045e),_0x524a1f=_0x4cad92>_0x19e6c6,_0x445f9f=Math[_0x3233fd(0xba1)](_0x19e6c6,_0x4cad92),_0x1d0386=Math['max'](_0x19e6c6,_0x4cad92),_0x1c1174=[];for(const _0x5ea8ce of _0x7bf705){if(_0x5ea8ce>_0x445f9f&&_0x5ea8ce<_0x1d0386){_0x1c1174[_0x3233fd(0xb31)](_0x5ea8ce);continue;}if(_0x524a1f&&_0x5ea8ce===_0x19e6c6&&_0x4cad92>_0x5ea8ce)_0x1c1174[_0x3233fd(0xb31)](_0x5ea8ce);else{if(!_0x524a1f&&_0x5ea8ce===_0x4cad92&&_0x19e6c6>_0x5ea8ce)_0x1c1174[_0x3233fd(0xb31)](_0x5ea8ce);}}return _0x524a1f?_0x1c1174:_0x1c1174[_0x3233fd(0x7ea)]();}function segmentRiseFallColor(_0x2d4841,_0x435d72,_0x3d95e9,_0x37176c){const _0x2c4d0=_0x46af5e;if(!_0x2d4841||!_0x435d72||!isNum(_0x2d4841['v'])||!isNum(_0x435d72['v']))return _0x37176c;if(!_0x3d95e9)return _0x37176c;const _0x458102=_0x3d95e9['increase']||_0x3d95e9[_0x2c4d0(0x705)]||_0x37176c,_0x5e88b2=_0x3d95e9[_0x2c4d0(0x6c9)]||_0x3d95e9[_0x2c4d0(0xfc9)]||_0x37176c,_0x461188=_0x3d95e9['stable']||_0x3d95e9[_0x2c4d0(0x38b)]||_0x458102||_0x37176c;if(_0x435d72['v']>_0x2d4841['v'])return _0x458102;if(_0x435d72['v']<_0x2d4841['v'])return _0x5e88b2;return _0x461188;}function resolveDynamicValue(_0x417c61,_0x4701a2){const _0x274104=_0x46af5e;if(_0x417c61===null||_0x417c61===undefined||_0x417c61==='')return null;if(typeof _0x417c61==='number')return Number[_0x274104(0xf0d)](_0x417c61)?_0x417c61:null;const _0x465927=String(_0x417c61)['trim']();if(/^-?\d+(\.\d+)?$/[_0x274104(0x920)](_0x465927)){const _0x8f49e=Number(_0x465927);return Number[_0x274104(0xf0d)](_0x8f49e)?_0x8f49e:null;}const _0x255c8c=_0x465927['match'](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0x255c8c)return null;const _0x3a80c5=_0x255c8c[0x1],_0x319c0b=_0x255c8c[0x2],_0x4548c4=_0x4701a2?.[_0x274104(0x4f9)]?.[_0x3a80c5];if(!_0x4548c4)return null;if(!_0x319c0b)return toNum(_0x4548c4[_0x274104(0x5f5)]);const _0x13a5e4=_0x319c0b[_0x274104(0xbc0)]('.');if(_0x13a5e4[0x0]!==_0x274104(0xf0f)&&_0x13a5e4[0x0]!==_0x274104(0x467)){let _0x2ffc81=_0x4548c4[_0x274104(0x467)];for(const _0x884003 of _0x13a5e4){if(_0x2ffc81===null||_0x2ffc81===undefined)return null;_0x2ffc81=_0x2ffc81[_0x884003];}return toNum(_0x2ffc81);}let _0x1214a4=_0x4548c4[_0x274104(0x467)];for(let _0x349db7=0x1;_0x349db7<_0x13a5e4['length'];_0x349db7++){if(_0x1214a4===null||_0x1214a4===undefined)return null;_0x1214a4=_0x1214a4[_0x13a5e4[_0x349db7]];}return toNum(_0x1214a4);}function _0xa914(_0x2d706e,_0x30c26a){_0x2d706e=_0x2d706e-0x160;const _0x546994=_0x5469();let _0xa914b1=_0x546994[_0x2d706e];return _0xa914b1;}function resolveBoundSpec(_0xc7a846,_0x214549){const _0x4cab56=_0x46af5e;if(_0xc7a846===null||_0xc7a846===undefined||_0xc7a846==='')return null;if(typeof _0xc7a846===_0x4cab56(0x327))return Number[_0x4cab56(0xf0d)](_0xc7a846)?{'value':_0xc7a846,'soft':![]}:null;const _0x513a78=String(_0xc7a846)[_0x4cab56(0xa11)]();if(_0x513a78==='')return null;const _0x12f99f=_0x513a78[_0x4cab56(0xed0)]('~'),_0x2f33cf=_0x12f99f?_0x513a78[_0x4cab56(0x165)](0x1)[_0x4cab56(0xa11)]():_0x513a78,_0x40bfc9=resolveDynamicValue(_0x2f33cf,_0x214549);if(_0x40bfc9===null)return null;return{'value':_0x40bfc9,'soft':_0x12f99f};}const BOUND_CFG_KEYS=[_0x46af5e(0xf24),_0x46af5e(0x443),_0x46af5e(0x8db),_0x46af5e(0x4ca),_0x46af5e(0x103d),_0x46af5e(0xea8)];function boundRefId(_0x2c76f1){const _0x252688=_0x46af5e;if(_0x2c76f1===null||_0x2c76f1===undefined||typeof _0x2c76f1===_0x252688(0x327))return null;const _0x45e891=String(_0x2c76f1)[_0x252688(0xa11)]()['replace'](/^~\s*/,''),_0xb0aab2=_0x45e891['match'](/^([a-z_]+\.[a-z0-9_]+)/i);return _0xb0aab2?_0xb0aab2[0x1]:null;}function collectBoundRefIds(_0x5d907c,_0x340b93){const _0x1d12f1=_0x46af5e,_0x58f883=new Set(),_0x17979e=_0xc42620=>{const _0x5e0c6f=_0xa914,_0x85c933=boundRefId(_0xc42620);if(_0x85c933)_0x58f883[_0x5e0c6f(0x982)](_0x85c933);};for(const _0x3c8ccf of BOUND_CFG_KEYS)_0x17979e(_0x5d907c?.[_0x3c8ccf]);for(const _0x4b9056 of _0x340b93||[]){_0x17979e(_0x4b9056?.[_0x1d12f1(0xf24)]),_0x17979e(_0x4b9056?.[_0x1d12f1(0x443)]);}return _0x58f883;}function enabledRefSpec(_0x44f2bc){const _0x1e1ae8=_0x46af5e;if(typeof _0x44f2bc!=='string')return null;let _0x7341ee=_0x44f2bc[_0x1e1ae8(0xa11)]();const _0x3e897d=_0x7341ee['charAt'](0x0)==='!';if(_0x3e897d)_0x7341ee=_0x7341ee[_0x1e1ae8(0x165)](0x1)[_0x1e1ae8(0xa11)]();if(_0x7341ee[_0x1e1ae8(0xdf0)](0x0)==='~')_0x7341ee=_0x7341ee['slice'](0x1)[_0x1e1ae8(0xa11)]();const _0x555d=_0x7341ee[_0x1e1ae8(0x727)](/^([a-z_]+\.[a-z0-9_]+)$/i);return _0x555d?{'id':_0x555d[0x1],'neg':_0x3e897d}:null;}function collectEnabledRefIds(_0x2c9cd6){const _0x44841a=_0x46af5e,_0x41916d=new Set();for(const _0x1c4786 of _0x2c9cd6||[]){const _0x3a7121=enabledRefSpec(_0x1c4786?.[_0x44841a(0x1007)]);if(_0x3a7121)_0x41916d[_0x44841a(0x982)](_0x3a7121['id']);}return _0x41916d;}function resolveEntityEnabled(_0x259002,_0x119e04){const _0x414381=_0x46af5e,_0x3a2321=_0x259002?.[_0x414381(0x1007)];if(_0x3a2321===![])return![];const _0x5beb5d=enabledRefSpec(_0x3a2321);if(!_0x5beb5d)return!![];const _0x24507e=_0x119e04?.[_0x414381(0x4f9)]?.[_0x5beb5d['id']]?.['state'];if(_0x24507e===undefined||_0x24507e===null)return!![];const _0x440e4f=String(_0x24507e)[_0x414381(0xa11)]()[_0x414381(0x3fb)](),_0x3b6a93=_0x440e4f==='on'||_0x440e4f===_0x414381(0xa70)||_0x440e4f===_0x414381(0x889)||_0x440e4f==='1',_0x315ba9=_0x440e4f===_0x414381(0x16d)||_0x440e4f===_0x414381(0x9b2)||_0x440e4f==='no'||_0x440e4f==='0';if(!_0x3b6a93&&!_0x315ba9)return!![];return _0x5beb5d[_0x414381(0x522)]?!_0x3b6a93:_0x3b6a93;}function boundFpKey(_0x5d90ad,_0x104734,_0x57764f){const _0x2454be=_0x46af5e,_0x8107b8=_0x429e25=>{const _0x4ceb17=_0xa914,_0x34578d=resolveBoundSpec(_0x429e25,_0x57764f);return _0x34578d?''+_0x34578d['value']+(_0x34578d[_0x4ceb17(0x2d5)]?'~':''):'';},_0x4691c3=_0x1057f5=>{const _0x504e92=resolveDynamicValue(_0x1057f5,_0x57764f);return _0x504e92===null?'':String(_0x504e92);};return BOUND_CFG_KEYS[_0x2454be(0xb3f)](_0x534d1b=>_0x534d1b[_0x2454be(0x2f0)](_0x2454be(0x77a))===0x0?_0x4691c3(_0x5d90ad?.[_0x534d1b]):_0x8107b8(_0x5d90ad?.[_0x534d1b]))[_0x2454be(0x888)]('|')+'#'+(_0x104734||[])[_0x2454be(0xb3f)](_0x29ff03=>_0x8107b8(_0x29ff03?.[_0x2454be(0xf24)])+'/'+_0x8107b8(_0x29ff03?.[_0x2454be(0x443)]))[_0x2454be(0x888)](',');}function extractAnnotationRefEntityId(_0x1ffa8e){const _0x855726=_0x46af5e;if(_0x1ffa8e===null||_0x1ffa8e===undefined||_0x1ffa8e==='')return null;if(typeof _0x1ffa8e===_0x855726(0x327))return null;const _0x34f57a=String(_0x1ffa8e)[_0x855726(0xa11)]();if(/^-?\d+(\.\d+)?$/['test'](_0x34f57a))return null;const _0xd371a5=_0x34f57a[_0x855726(0x727)](/^([a-z_]+\.[a-z0-9_]+)/i);return _0xd371a5?_0xd371a5[0x1]:null;}function annotationValueMatches(_0xbfe329,_0x1179e9){const _0x2ff40c=_0x46af5e;if(_0xbfe329===null||_0xbfe329===undefined)return![];const _0x17f352=String(_0xbfe329),_0xc0ef5=_0x1179e9===null||_0x1179e9===undefined?'on':String(_0x1179e9);if(_0x17f352===_0xc0ef5)return!![];const _0x163ecd=_0x17f352[_0x2ff40c(0xa11)](),_0x1448d6=_0xc0ef5['trim'](),_0x130271=/^-?\d+(\.\d+)?$/;return _0x130271[_0x2ff40c(0x920)](_0x163ecd)&&_0x130271[_0x2ff40c(0x920)](_0x1448d6)&&Number(_0x163ecd)===Number(_0x1448d6);}function parseAnnotationTime(_0x5cac6c){const _0x33d422=_0x46af5e;if(_0x5cac6c===null||_0x5cac6c===undefined||_0x5cac6c==='')return null;if(_0x5cac6c instanceof Date)return _0x5cac6c[_0x33d422(0x1028)]();if(typeof _0x5cac6c===_0x33d422(0x327))return Number[_0x33d422(0xf0d)](_0x5cac6c)?_0x5cac6c:null;const _0x1c880f=String(_0x5cac6c)[_0x33d422(0xa11)]();if(_0x1c880f===_0x33d422(0x69d))return Date[_0x33d422(0x69d)]();const _0x2d277b=new Date(_0x1c880f);return isNaN(_0x2d277b)?null:_0x2d277b[_0x33d422(0x1028)]();}function getAttributePath(_0x27f190,_0x42e03f){const _0x4e160c=_0x46af5e;if(!_0x27f190||!_0x42e03f)return undefined;const _0x41355c=String(_0x42e03f)[_0x4e160c(0xbc0)]('.');let _0x328019=_0x27f190;for(const _0x48641d of _0x41355c){if(_0x328019===null||_0x328019===undefined)return undefined;_0x328019=_0x328019[_0x48641d];}return _0x328019;}function transformGapPoint(_0x1967bf){const _0x1bbb4b=_0x46af5e,_0x935de7={..._0x1967bf,'v':null,'bMin':null,'bMax':null,'sMean':null,'sMin':null};'o'in _0x935de7&&(_0x935de7['o']=null,_0x935de7['h']=null,_0x935de7['l']=null,_0x935de7['c']=null);if(_0x1bbb4b(0xce9)in _0x935de7)delete _0x935de7[_0x1bbb4b(0xce9)];return _0x935de7;}const COMPILED_TRANSFORM=Symbol('sgc:compiled_transform'),VT_TIME_ARGS=['t',_0x46af5e(0x69d),_0x46af5e(0x2ab),'weekday'];function vtDeclaresTimeName(_0x1554c3){const _0x26afcf=_0x46af5e;for(const _0xbb6ce9 of VT_TIME_ARGS){if(new RegExp(_0x26afcf(0xe90)+_0xbb6ce9+'\x5cb')[_0x26afcf(0x920)](_0x1554c3))return!![];if(new RegExp(_0x26afcf(0xf62)+_0xbb6ce9+'\x5cb')[_0x26afcf(0x920)](_0x1554c3))return!![];}return![];}function vtUsesName(_0x5af402,_0x264db6){const _0xd95351=_0x46af5e;return new RegExp('\x5cb'+_0x264db6+'\x5cb')[_0xd95351(0x920)](_0x5af402);}function compileValueTransform(_0x384d49){const _0x4589e8=_0x46af5e;if(!_0x384d49||typeof _0x384d49!==_0x4589e8(0xade))return null;const _0x3089bf=!vtDeclaresTimeName(_0x384d49),_0xed40b9=_0x548f1a=>new Function(..._0x548f1a,_0x4589e8(0x946)+_0x384d49),_0x49f789=['x',_0x4589e8(0x2d8),_0x4589e8(0xba1),_0x4589e8(0x220),_0x4589e8(0xfbc),_0x4589e8(0xa5d),_0x4589e8(0x4c3)];let _0x4326fd=null,_0x1a023d=_0x3089bf;try{_0x4326fd=_0xed40b9(_0x3089bf?[..._0x49f789,...VT_TIME_ARGS]:_0x49f789);}catch(_0x4455d0){if(!_0x3089bf)return console[_0x4589e8(0x9a7)](_0x4589e8(0xba8)+_0x4455d0[_0x4589e8(0xf66)],'expr:',_0x384d49),null;_0x1a023d=![];try{_0x4326fd=_0xed40b9(_0x49f789),console[_0x4589e8(0x5e8)]?.(_0x4589e8(0xde1),_0x4455d0['message']);}catch(_0x258cbf){return console['warn'](_0x4589e8(0xba8)+_0x258cbf['message'],'expr:',_0x384d49),null;}}try{const _0x3d6360=_0x1a023d?_0x4326fd(0x1,0x1,0x1,0x1,0x1,0x1,0x0,0x18bcfe56800,0x18bcfe56800,0xc,0x3):_0x4326fd(0x1,0x1,0x1,0x1,0x1,0x1,0x0);_0x3d6360!==undefined&&_0x3d6360!==null&&!Number[_0x4589e8(0xf0d)](_0x3d6360)&&console['warn'](_0x4589e8(0xaa3),_0x384d49,'→',_0x3d6360);}catch(_0x119489){console[_0x4589e8(0x5e8)]?.(_0x4589e8(0xbda),_0x119489['message']);}const _0x4cb17f=(_0x425cee,_0x4adb03,_0x25440a,_0x56c0a8)=>{const _0x5e4189=_0x4589e8;try{const _0x5be20f=_0x25440a?.[_0x5e4189(0x2d8)]??_0x425cee,_0x3314e3=_0x25440a?.[_0x5e4189(0xba1)]??_0x425cee,_0x367549=_0x25440a?.[_0x5e4189(0x220)]??_0x425cee,_0x159a83=_0x25440a?.[_0x5e4189(0xfbc)]??_0x425cee,_0x2b9bf0=_0x25440a?.[_0x5e4189(0xa5d)]??_0x425cee,_0x1a54b7=_0x4adb03??0x0;let _0x5bf57a;if(_0x1a023d){const _0x46a6e2=isNum(_0x56c0a8?.['t'])?_0x56c0a8['t']:0x0,_0x542f77=tzParts(_0x46a6e2,_0x56c0a8?.['tz']);_0x5bf57a=_0x4326fd(_0x425cee,_0x5be20f,_0x3314e3,_0x367549,_0x159a83,_0x2b9bf0,_0x1a54b7,_0x46a6e2,isNum(_0x56c0a8?.[_0x5e4189(0x69d)])?_0x56c0a8[_0x5e4189(0x69d)]:Date[_0x5e4189(0x69d)](),_0x542f77?_0x542f77['h']+_0x542f77['mi']/0x3c:0x0,_0x542f77?_0x542f77['wd']:0x0);}else _0x5bf57a=_0x4326fd(_0x425cee,_0x5be20f,_0x3314e3,_0x367549,_0x159a83,_0x2b9bf0,_0x1a54b7);if(_0x5bf57a===null||_0x5bf57a===undefined)return null;return Number[_0x5e4189(0xf0d)](_0x5bf57a)?_0x5bf57a:null;}catch{return null;}};return _0x4cb17f[_0x4589e8(0x88a)]=_0x1a023d&&VT_TIME_ARGS[_0x4589e8(0x42a)](_0x1a08f2=>vtUsesName(_0x384d49,_0x1a08f2)),_0x4cb17f[_0x4589e8(0x1b3)]=_0x1a023d&&vtUsesName(_0x384d49,_0x4589e8(0x69d)),_0x4cb17f;}function parseForecastTime(_0x5b852a,_0x2fadbf,_0x4fde32,_0x3a8e72){const _0x27d432=_0x46af5e;if(_0x5b852a===null||_0x5b852a===undefined||_0x5b852a==='')return null;const _0x5313de=_0x2fadbf||_0x27d432(0x1d0);if(_0x5313de===_0x27d432(0x1d0)){if(typeof _0x5b852a===_0x27d432(0x327))return Number[_0x27d432(0xf0d)](_0x5b852a)?_0x5b852a:null;if(_0x5b852a instanceof Date)return _0x5b852a[_0x27d432(0x1028)]();const _0x21da3c=new Date(String(_0x5b852a));return isNaN(_0x21da3c)?null:_0x21da3c['getTime']();}if(_0x5313de===_0x27d432(0x950)){const _0x30c55d=toNum(_0x5b852a);return _0x30c55d===null?null:_0x30c55d*0x3e8;}if(_0x5313de===_0x27d432(0x7bf))return toNum(_0x5b852a);const _0xc4b54d=parseInt(_0x3a8e72,0xa),_0x1ae49f=_0x4fde32 instanceof Date?_0x4fde32:new Date(_0x4fde32||Date[_0x27d432(0x69d)]()),_0x15f138=!isNaN(_0xc4b54d)?_0xc4b54d:_0x1ae49f['getFullYear']();if(_0x5313de===_0x27d432(0xe63)){const _0x47c729=toNum(_0x5b852a);if(_0x47c729===null||_0x47c729<0x1||_0x47c729>0xc)return null;return new Date(_0x15f138,_0x47c729-0x1,0x1)[_0x27d432(0x1028)]();}if(_0x5313de===_0x27d432(0xd3b)){const _0x512897=toNum(_0x5b852a);if(_0x512897===null||_0x512897<0x1||_0x512897>0x16e)return null;const _0x27f9b0=new Date(_0x15f138,0x0,0x1);return _0x27f9b0['setDate'](_0x27f9b0['getDate']()+(_0x512897-0x1)),_0x27f9b0[_0x27d432(0x1028)]();}if(_0x5313de===_0x27d432(0x3b0)){const _0x530511=toNum(_0x5b852a);if(_0x530511===null||_0x530511<0x1||_0x530511>0x35)return null;const _0xa8e844=new Date(_0x15f138,0x0,0x4),_0x3807b7=_0xa8e844[_0x27d432(0xc39)]()||0x7,_0x2d3396=new Date(_0x15f138,0x0,0x4-(_0x3807b7-0x1)),_0x28fec7=new Date(_0x2d3396);return _0x28fec7['setDate'](_0x28fec7[_0x27d432(0x1024)]()+(_0x530511-0x1)*0x7),_0x28fec7[_0x27d432(0x1028)]();}if(_0x5313de==='day_of_month'){const _0x2aab28=toNum(_0x5b852a);if(_0x2aab28===null||_0x2aab28<0x1||_0x2aab28>0x1f)return null;const _0x2f6348=_0x1ae49f[_0x27d432(0x4a0)](),_0x59dbe6=new Date(_0x15f138,_0x2f6348+0x1,0x0)['getDate'](),_0x21dde6=Math[_0x27d432(0xba1)](_0x2aab28,_0x59dbe6);return new Date(_0x15f138,_0x2f6348,_0x21dde6)[_0x27d432(0x1028)]();}if(_0x5313de===_0x27d432(0xe14)){const _0x496ed8=toNum(_0x5b852a);if(_0x496ed8===null||_0x496ed8<0x0||_0x496ed8>0x17)return null;const _0x3ef9bb=new Date(_0x1ae49f);return _0x3ef9bb[_0x27d432(0x1b1)](_0x496ed8,0x0,0x0,0x0),_0x3ef9bb[_0x27d432(0x1028)]();}return null;}const EXPR_FUNCS={'min':_0x422388=>Math[_0x46af5e(0xba1)](..._0x422388),'max':_0x44efd9=>Math[_0x46af5e(0x220)](..._0x44efd9),'abs':_0xe271f8=>Math[_0x46af5e(0x1ae)](_0xe271f8[0x0]),'round':_0x5c5ce2=>Math[_0x46af5e(0x686)](_0x5c5ce2[0x0]),'floor':_0x5df2a6=>Math[_0x46af5e(0xedc)](_0x5df2a6[0x0]),'ceil':_0x3f320f=>Math['ceil'](_0x3f320f[0x0]),'sqrt':_0x2e7142=>Math[_0x46af5e(0x2ed)](_0x2e7142[0x0]),'pow':_0x125499=>Math[_0x46af5e(0x91f)](_0x125499[0x0],_0x125499[0x1])};function tokenizeExpr(_0x354c9e){const _0xcc5056=_0x46af5e,_0x5c4d64=[];let _0x24dc56=0x0;const _0x3827af=_0x354c9e[_0xcc5056(0xc02)],_0x1753fd=_0x1beb86=>_0x1beb86>='0'&&_0x1beb86<='9',_0x194952=_0x4634dc=>/[A-Za-z_$]/[_0xcc5056(0x920)](_0x4634dc),_0x21b373=_0x503d6b=>/[A-Za-z0-9_$]/['test'](_0x503d6b);while(_0x24dc56<_0x3827af){const _0x4b52f1=_0x354c9e[_0x24dc56];if(_0x4b52f1==='\x20'||_0x4b52f1==='\x09'||_0x4b52f1==='\x0a'||_0x4b52f1==='\x0d'){_0x24dc56++;continue;}if(_0xcc5056(0x4e3)['indexOf'](_0x4b52f1)!==-0x1){_0x5c4d64[_0xcc5056(0xb31)]({'t':'op','v':_0x4b52f1}),_0x24dc56++;continue;}if(_0x1753fd(_0x4b52f1)||_0x4b52f1==='.'){let _0x56d5e2=_0x24dc56+0x1;while(_0x56d5e2<_0x3827af&&(_0x1753fd(_0x354c9e[_0x56d5e2])||_0x354c9e[_0x56d5e2]==='.'))_0x56d5e2++;const _0x17b7cf=parseFloat(_0x354c9e['slice'](_0x24dc56,_0x56d5e2));if(!isFinite(_0x17b7cf))throw new Error(_0xcc5056(0x474)+_0x354c9e[_0xcc5056(0x165)](_0x24dc56,_0x56d5e2)+'\x22');_0x5c4d64[_0xcc5056(0xb31)]({'t':_0xcc5056(0x948),'v':_0x17b7cf}),_0x24dc56=_0x56d5e2;continue;}if(_0x194952(_0x4b52f1)){let _0x45dfd2=_0x24dc56+0x1;while(_0x45dfd2<_0x3827af&&_0x21b373(_0x354c9e[_0x45dfd2]))_0x45dfd2++;_0x5c4d64[_0xcc5056(0xb31)]({'t':'id','v':_0x354c9e[_0xcc5056(0x165)](_0x24dc56,_0x45dfd2)}),_0x24dc56=_0x45dfd2;continue;}throw new Error(_0xcc5056(0xab6)+_0x4b52f1+'\x22');}return _0x5c4d64;}function compileDataExpression(_0x2722d7){const _0x328fcb=_0x46af5e,_0x992693=tokenizeExpr(String(_0x2722d7));let _0x5a0014=0x0;const _0x155368=()=>_0x992693[_0x5a0014],_0x30bc33=()=>_0x992693[_0x5a0014++],_0x5cfb22=_0x20925b=>{const _0x482b90=_0xa914,_0x4fbbc8=_0x30bc33();if(!_0x4fbbc8||_0x4fbbc8['v']!==_0x20925b)throw new Error(_0x482b90(0x295)+_0x20925b+'\x22');};function _0x506c09(){return _0x136371();}function _0x136371(){let _0x50ba29=_0x5edd2f();while(_0x155368()&&_0x155368()['t']==='op'&&(_0x155368()['v']==='+'||_0x155368()['v']==='-')){const _0x429282=_0x30bc33()['v'],_0x6e56d3=_0x5edd2f(),_0x1c2fb3=_0x50ba29;_0x50ba29=_0x429282==='+'?_0xe1cabf=>_0x1c2fb3(_0xe1cabf)+_0x6e56d3(_0xe1cabf):_0x2e0b57=>_0x1c2fb3(_0x2e0b57)-_0x6e56d3(_0x2e0b57);}return _0x50ba29;}function _0x5edd2f(){let _0x3dff42=_0x4c7fc5();while(_0x155368()&&_0x155368()['t']==='op'&&(_0x155368()['v']==='*'||_0x155368()['v']==='/'||_0x155368()['v']==='%')){const _0x1ae3f9=_0x30bc33()['v'],_0x53e69c=_0x4c7fc5(),_0xf00e4e=_0x3dff42;_0x3dff42=_0x1ae3f9==='*'?_0x4027c7=>_0xf00e4e(_0x4027c7)*_0x53e69c(_0x4027c7):_0x1ae3f9==='/'?_0x4391e2=>_0xf00e4e(_0x4391e2)/_0x53e69c(_0x4391e2):_0x2b565e=>_0xf00e4e(_0x2b565e)%_0x53e69c(_0x2b565e);}return _0x3dff42;}function _0x4c7fc5(){if(_0x155368()&&_0x155368()['t']==='op'&&(_0x155368()['v']==='+'||_0x155368()['v']==='-')){const _0xb4ef13=_0x30bc33()['v'],_0x53e19b=_0x4c7fc5();return _0xb4ef13==='-'?_0x1651e6=>-_0x53e19b(_0x1651e6):_0x53e19b;}return _0x4d95a6();}function _0x4d95a6(){const _0x10df70=_0xa914,_0x1a414f=_0x30bc33();if(!_0x1a414f)throw new Error(_0x10df70(0x5d1));if(_0x1a414f['t']===_0x10df70(0x948)){const _0x136f5e=_0x1a414f['v'];return()=>_0x136f5e;}if(_0x1a414f['t']==='op'&&_0x1a414f['v']==='('){const _0xae9b81=_0x506c09();return _0x5cfb22(')'),_0xae9b81;}if(_0x1a414f['t']==='id'){if(_0x155368()&&_0x155368()['t']==='op'&&_0x155368()['v']==='('){_0x30bc33();const _0x3865ff=[];if(!(_0x155368()&&_0x155368()['t']==='op'&&_0x155368()['v']===')')){_0x3865ff[_0x10df70(0xb31)](_0x506c09());while(_0x155368()&&_0x155368()['t']==='op'&&_0x155368()['v']===','){_0x30bc33(),_0x3865ff[_0x10df70(0xb31)](_0x506c09());}}_0x5cfb22(')');const _0x1be192=EXPR_FUNCS[_0x1a414f['v']];if(!_0x1be192)throw new Error(_0x10df70(0x6ad)+_0x1a414f['v']+'\x22');return _0x2ed1b4=>_0x1be192(_0x3865ff[_0x10df70(0xb3f)](_0xe2e97c=>_0xe2e97c(_0x2ed1b4)));}const _0x466a3f=_0x1a414f['v'];return _0x453b36=>{const _0x1baf96=_0x10df70;if(_0x453b36&&Object[_0x1baf96(0x47e)][_0x1baf96(0x77c)]['call'](_0x453b36,_0x466a3f)){const _0x752b7c=_0x453b36[_0x466a3f];return typeof _0x752b7c===_0x1baf96(0x327)?_0x752b7c:Number(_0x752b7c);}return NaN;};}throw new Error(_0x10df70(0xa69)+_0x1a414f['v']+'\x22');}const _0x15125f=_0x506c09();if(_0x5a0014<_0x992693[_0x328fcb(0xc02)])throw new Error(_0x328fcb(0xb00)+_0x992693[_0x5a0014]['v']+'\x22');return _0x15125f;}const _exprCache=new Map(),_exprWarned=new Set();function getCompiledExpr(_0x34da18){const _0x59ee84=_0x46af5e,_0x525eb7=String(_0x34da18);if(_exprCache[_0x59ee84(0x101d)](_0x525eb7))return _exprCache[_0x59ee84(0xc3f)](_0x525eb7);let _0x2f7c09=null;try{_0x2f7c09=compileDataExpression(_0x525eb7);}catch(_0x34e97c){!_exprWarned[_0x59ee84(0x101d)](_0x525eb7)&&(_exprWarned[_0x59ee84(0x982)](_0x525eb7),console[_0x59ee84(0x9a7)]('[sgc]\x20data_value_expression\x20\x22'+_0x525eb7+'\x22\x20is\x20invalid\x20('+_0x34e97c['message']+_0x59ee84(0xdc2))),_0x2f7c09=null;}return _exprCache[_0x59ee84(0xa2d)](_0x525eb7,_0x2f7c09),_0x2f7c09;}function stepLookup(_0x3a59d7,_0x335747){const _0x24f3f9=_0x46af5e;if(!Array[_0x24f3f9(0x902)](_0x3a59d7)||!_0x3a59d7[_0x24f3f9(0xc02)])return null;const _0x174cac=_0x335747?.[_0x24f3f9(0xaae)]!==![],_0x5a42bb=isNum(_0x335747?.['maxStaleMs'])?_0x335747[_0x24f3f9(0x2af)]:Infinity;return _0x3e44b7=>{if(_0x3e44b7<_0x3a59d7[0x0]['t'])return _0x174cac?_0x3a59d7[0x0]['v']:null;let _0x26a300=0x0,_0x9df624=_0x3a59d7['length']-0x1,_0x1303a6=0x0;while(_0x26a300<=_0x9df624){const _0x17a295=_0x26a300+_0x9df624>>0x1;if(_0x3a59d7[_0x17a295]['t']<=_0x3e44b7)_0x1303a6=_0x17a295,_0x26a300=_0x17a295+0x1;else _0x9df624=_0x17a295-0x1;}if(_0x3e44b7-_0x3a59d7[_0x1303a6]['t']>_0x5a42bb)return null;return _0x3a59d7[_0x1303a6]['v'];};}function refJobKey(_0x35809b,_0x2b1282,_0x3cc2dc){const _0x28935b=_0x46af5e;return _0x35809b[_0x28935b(0x455)]+'__'+(_0x35809b[_0x28935b(0xc00)]||'')+'__'+_0x2b1282+'__'+(_0x3cc2dc||'hist');}const REF_OPS=Object['freeze']([_0x46af5e(0x471),'add',_0x46af5e(0x3f8),'divide',_0x46af5e(0xd0d),_0x46af5e(0xf02)]);function normalizeRefOp(_0x3bc2ae){const _0x1f7437=_0x46af5e;return typeof _0x3bc2ae===_0x1f7437(0xade)&&REF_OPS[_0x1f7437(0xf06)](_0x3bc2ae)?_0x3bc2ae:_0x1f7437(0x471);}function resolveDataVars(_0x25fb60,_0x3f1851){const _0x195b8b=_0x46af5e,_0x3fc5af={};if(!_0x25fb60||typeof _0x25fb60!==_0x195b8b(0xc18)||!_0x3f1851||!_0x3f1851[_0x195b8b(0x4f9)])return _0x3fc5af;for(const [_0x82f12c,_0xd43134]of Object[_0x195b8b(0x653)](_0x25fb60)){if(!_0x82f12c||typeof _0xd43134!=='string')continue;const _0x48de61=_0x3f1851['states'][_0xd43134],_0x386b06=_0x48de61?toNum(_0x48de61[_0x195b8b(0x5f5)]):null;_0x3fc5af[_0x82f12c]=_0x386b06===null||_0x386b06===undefined?NaN:_0x386b06;}return _0x3fc5af;}function synthesizeForecastSeries(_0x1ce148,_0x1fe348,_0x501349,_0x5be9fc){const _0x136731=_0x46af5e;if(!_0x1ce148||!_0x1fe348[_0x136731(0x102c)])return[];let _0x3a67ed=getAttributePath(_0x1ce148[_0x136731(0x467)],_0x1fe348[_0x136731(0x102c)]);if(typeof _0x3a67ed===_0x136731(0xade)){const _0x29abce=_0x3a67ed[_0x136731(0xa11)]();if(_0x29abce[_0x136731(0xed0)]('['))try{_0x3a67ed=JSON[_0x136731(0x9a4)](_0x29abce);}catch(_0x73edda){try{_0x3a67ed=JSON['parse'](_0x29abce[_0x136731(0x5ef)](/'/g,'\x22'));}catch(_0x33aa23){}}}if(!Array[_0x136731(0x902)](_0x3a67ed))return _0x3a67ed!==undefined&&_0x3a67ed!==null&&console[_0x136731(0x9a7)]('[sgc]\x20data_attribute\x20\x22'+_0x1fe348[_0x136731(0x102c)]+_0x136731(0xf11)+_0x1fe348[_0x136731(0x974)]+'\x20is\x20not\x20an\x20array'),[];const _0x663c96=_0x3a67ed[_0x136731(0xb3f)](_0x122b34=>_0x122b34&&typeof _0x122b34===_0x136731(0xc18)&&!Array[_0x136731(0x902)](_0x122b34)?{..._0x122b34}:_0x122b34),_0x374559=_0x1fe348[_0x136731(0xff8)]||_0x136731(0xd5b),_0x5a2d64=_0x1fe348['data_value_field']||_0x136731(0xad3),_0x3ba3b9=_0x1fe348[_0x136731(0xe67)]||_0x136731(0x1d0),_0x4e4d21=_0x1fe348[_0x136731(0x1014)],_0x3a6917=_0x1fe348[_0x136731(0x3f2)]?getCompiledExpr(_0x1fe348[_0x136731(0x3f2)]):null,_0x408a16=_0x3a6917?resolveDataVars(_0x1fe348[_0x136731(0x8d0)],_0x5be9fc):null,_0x46727c=[];for(const _0x14e94a of _0x663c96){if(!_0x14e94a||typeof _0x14e94a!==_0x136731(0xc18))continue;const _0x45b452=getAttributePath(_0x14e94a,_0x374559);let _0x49091c;if(_0x3a6917){let _0x2e4875;try{_0x2e4875=_0x3a6917({..._0x14e94a,..._0x408a16});}catch(_0x422d6c){_0x2e4875=NaN;}_0x49091c=toNum(_0x2e4875);}else _0x49091c=toNum(getAttributePath(_0x14e94a,_0x5a2d64));const _0x400bb8=parseForecastTime(_0x45b452,_0x3ba3b9,_0x501349,_0x4e4d21);if(_0x400bb8===null||_0x49091c===null)continue;_0x46727c['push']({'t':_0x400bb8,'v':_0x49091c});}return _0x46727c[_0x136731(0xd09)]((_0xd5ee74,_0x2bb495)=>_0xd5ee74['t']-_0x2bb495['t']),_0x46727c;}const SVG_NS=_0x46af5e(0x17d),svgEl=(_0x2cc2b9,_0x496318={})=>{const _0x305faa=_0x46af5e,_0x52854d=document[_0x305faa(0xe2c)](SVG_NS,_0x2cc2b9);for(const [_0x1474b3,_0x2d5914]of Object[_0x305faa(0x653)](_0x496318))_0x52854d[_0x305faa(0x751)](_0x1474b3,_0x2d5914);return _0x52854d;},SCROLL_PLOT_PAD_BOTTOM=0xa;class TimelineRenderer{constructor(_0x19782a){const _0x2aae18=_0x46af5e;this[_0x2aae18(0x1d2)]=_0x19782a;}['render'](_0x3f417b,_0x2a5d25,_0x990a01,_0x2e5c6c){const _0x5357fc=_0x46af5e;this[_0x5357fc(0x4c6)]=0x0,_0x2a5d25=_0x2a5d25[_0x5357fc(0xb3f)](_0x35459f=>{const _0x290f88=_0x5357fc,_0x1cc434=_0x35459f['entity']?.['_compareCfg'];if(_0x35459f[_0x290f88(0x974)]?.['_compareOf']==null||_0x1cc434?.['layout']!==_0x290f88(0xe9b)||(_0x1cc434['period']??'previous_period')!==_0x290f88(0x612))return _0x35459f;const _0x22d2c0=(toNum(_0x35459f['entity'][_0x290f88(0x4ff)])||0x0)*0x36ee80;if(_0x22d2c0<=0x0)return _0x35459f;if(_0x22d2c0>this[_0x290f88(0x4c6)])this[_0x290f88(0x4c6)]=_0x22d2c0;return{..._0x35459f,'points':(_0x35459f[_0x290f88(0x93a)]||[])[_0x290f88(0xb3f)](_0x41b12d=>({..._0x41b12d,'t':_0x41b12d['t']-_0x22d2c0})),'raw':(_0x35459f[_0x290f88(0xbcc)]||[])[_0x290f88(0xb3f)](_0x20a27c=>({..._0x20a27c,'t':_0x20a27c['t']-_0x22d2c0})),'tailToMs':isNum(_0x35459f['tailToMs'])?_0x35459f[_0x290f88(0xda8)]-_0x22d2c0:null,'entity':{..._0x35459f[_0x290f88(0x974)],'offset':0x0,'_compareCfg':{..._0x1cc434,'show_delta':![]}}};});{const _0x49d38f=this['card']?.[_0x5357fc(0xe48)]||Date['now'](),_0xeb7775=this['card']?.[_0x5357fc(0xbe0)]?.['end']?.[_0x5357fc(0x1028)]?.(),_0x814b09=isNum(_0xeb7775)&&_0xeb7775<=_0x49d38f,_0x306c7d=_0x1e0784=>_0x1e0784['stack_group']||(_0x990a01[_0x5357fc(0x18a)]&&_0x1e0784[_0x5357fc(0xed4)]==null?'__default':null),_0x1655ac=new Map();for(const _0x43f14e of _0x2a5d25){const _0x45e60c=_0x306c7d(_0x43f14e['entity']||{});if(!_0x45e60c)continue;if(!_0x1655ac[_0x5357fc(0x101d)](_0x45e60c))_0x1655ac[_0x5357fc(0xa2d)](_0x45e60c,new Set());const _0x3059ac=toNum(_0x43f14e['tailToMs']);_0x1655ac[_0x5357fc(0xc3f)](_0x45e60c)[_0x5357fc(0x982)](isNum(_0x3059ac)?_0x3059ac:null);}_0x2a5d25=_0x2a5d25[_0x5357fc(0xb3f)](_0x36c45a=>{const _0x565336=_0x5357fc,_0x2dd170=toNum(_0x36c45a[_0x565336(0xda8)]);if(!isNum(_0x2dd170))return _0x36c45a;const _0x220f7b=_0x36c45a[_0x565336(0x974)]||{},_0x411836=_0x306c7d(_0x220f7b);if(_0x411836){if(!_0x814b09)return _0x36c45a;const _0x223bc8=_0x1655ac[_0x565336(0xc3f)](_0x411836);if(!_0x223bc8||_0x223bc8['size']!==0x1||_0x223bc8['has'](null))return _0x36c45a;}const _0x3d22cd=_0x36c45a['points']||[];let _0x5700cc=_0x3d22cd[_0x565336(0xc02)]-0x1;while(_0x5700cc>=0x0&&!isNum(_0x3d22cd[_0x5700cc]?.['v']))_0x5700cc--;if(_0x5700cc<0x0)return _0x36c45a;const _0xc66b0=_0x3d22cd[_0x5700cc];if(_0xc66b0['_seam']||_0xc66b0['_tail']||_0x2dd170<=_0xc66b0['t']+0x3e8)return _0x36c45a;for(let _0x4f0051=_0x5700cc+0x1;_0x4f0051<_0x3d22cd['length'];_0x4f0051++){if(_0x3d22cd[_0x4f0051]&&_0x3d22cd[_0x4f0051]['t']<_0x2dd170)return _0x36c45a;}return{..._0x36c45a,'points':[..._0x3d22cd[_0x565336(0x165)](0x0,_0x5700cc+0x1),{..._0xc66b0,'t':_0x2dd170,'_tail':!![]},..._0x3d22cd[_0x565336(0x165)](_0x5700cc+0x1)]};});}if(this[_0x5357fc(0x4c6)]>0x0){const _0x2d6573=new Map();for(const _0x5e4784 of _0x2a5d25){if(_0x5e4784[_0x5357fc(0x974)]?.[_0x5357fc(0xed4)]!=null)continue;const _0x4c10b6=(_0x5e4784[_0x5357fc(0x93a)]||[])[_0x5357fc(0x90c)](_0x8e2bf9=>_0x8e2bf9&&_0x8e2bf9['v']!==null);if(_0x4c10b6)_0x2d6573['set'](_0x5e4784[_0x5357fc(0xd18)],_0x4c10b6);}_0x2a5d25=_0x2a5d25[_0x5357fc(0xb3f)](_0x188983=>{const _0x186362=_0x5357fc,_0x42f973=_0x188983[_0x186362(0x974)]?.[_0x186362(0xed4)];if(_0x42f973==null||_0x188983['entity']?.[_0x186362(0xbf6)]?.['layout']!==_0x186362(0xe9b))return _0x188983;const _0x36456b=_0x2d6573['get'](_0x42f973),_0x4ef7fa=_0x188983['points']||[],_0x4da5ae=_0x4ef7fa[_0x186362(0xc02)]?_0x4ef7fa[_0x4ef7fa[_0x186362(0xc02)]-0x1]:null;if(!_0x36456b||!_0x4da5ae||_0x4da5ae['v']===null||_0x36456b['t']<=_0x4da5ae['t'])return _0x188983;return{..._0x188983,'points':[..._0x4ef7fa,{..._0x36456b,'_seam':!![]}]};});}const _0x22b589=_0x3f417b[_0x5357fc(0x810)]||0x190,_0x4c0cbf=_0x990a01[_0x5357fc(0x43d)],_0x4421af=_0x4c0cbf==null||_0x4c0cbf===_0x5357fc(0x6c8)||_0x4c0cbf==='',_0x548f37=this['card'][_0x5357fc(0xa88)]();let _0xa1ff09;if(_0x548f37){_0x3f417b[_0x5357fc(0x944)][_0x5357fc(0x19f)]=_0x5357fc(0xc44);const _0x4d49c2=this[_0x5357fc(0x1d2)][_0x5357fc(0x923)],_0x1a9006=_0x3f417b[_0x5357fc(0x944)]['minHeight']==='200px'&&Math['abs']((_0x3f417b[_0x5357fc(0x94e)]||0x0)-0xc8)<=0x2,_0x5924ec=(_0x3f417b['clientHeight']||0x0)<=(this[_0x5357fc(0x1d2)]['clientHeight']||0x0)+0x2;if(isNum(_0x4d49c2)&&_0x1a9006&&_0x5924ec&&this[_0x5357fc(0x1d2)][_0x5357fc(0xf3c)]===_0x4d49c2)_0xa1ff09=0xc8;else{_0x3f417b[_0x5357fc(0x944)][_0x5357fc(0x518)]='';let _0x4c0667=_0x3f417b['clientHeight']||0x0;const _0x1d0801=this[_0x5357fc(0x1d2)][_0x5357fc(0xf89)]||this[_0x5357fc(0x1d2)][_0x5357fc(0xbe0)],_0x119a11=toNum(_0x990a01['__sgcExtVisibleH']??_0x990a01[_0x5357fc(0x4ad)]),_0x499866=_0x1d0801&&_0x1d0801[_0x5357fc(0x4b0)]&&_0x1d0801['end']?Math[_0x5357fc(0x220)](0x1,_0x1d0801[_0x5357fc(0x244)][_0x5357fc(0x1028)]()-_0x1d0801['start'][_0x5357fc(0x1028)]())/0x36ee80:0x0,_0x477f74=!this['card'][_0x5357fc(0xf89)]&&isNum(_0x119a11)&&_0x119a11>0x0&&_0x499866>_0x119a11;if(_0x477f74&&_0x4c0667>SCROLL_PLOT_PAD_BOTTOM)_0x4c0667-=SCROLL_PLOT_PAD_BOTTOM;_0x4c0667>=0x3c?(_0xa1ff09=_0x4c0667,this[_0x5357fc(0x1d2)]['_fillFallbackHostH']=null):(_0xa1ff09=0xc8,_0x3f417b[_0x5357fc(0x944)][_0x5357fc(0x518)]=_0x5357fc(0xf2b),this[_0x5357fc(0x1d2)][_0x5357fc(0x923)]=this[_0x5357fc(0x1d2)][_0x5357fc(0xf3c)]);}}else _0x4421af?_0xa1ff09=0xc8:_0xa1ff09=toNum(_0x990a01[_0x5357fc(0x43d)])||0x96;const _0x42db17=_0x2a5d25['filter'](_0x496b23=>_0x496b23[_0x5357fc(0x974)]['show_graph']!==![]&&_0x496b23[_0x5357fc(0x93a)][_0x5357fc(0xc02)]),_0x85cba0=_0x42db17[_0x5357fc(0x919)](_0x25068f=>isStripEntity(_0x25068f['entity'])),_0x2b16cc=_0x85cba0['length']?_0x42db17['filter'](_0x550ca6=>!isStripEntity(_0x550ca6[_0x5357fc(0x974)])):_0x42db17,_0x232ecc=_0x2b16cc[_0x5357fc(0x919)](_0x30828c=>_0x30828c[_0x5357fc(0x974)][_0x5357fc(0x8cc)]!==_0x5357fc(0xbec)&&_0x30828c[_0x5357fc(0x974)][_0x5357fc(0x8cc)]!==_0x5357fc(0x397)),_0x16343a=_0x2b16cc[_0x5357fc(0x919)](_0x563f0c=>_0x563f0c[_0x5357fc(0x974)]['y_axis']==='secondary'),_0x2d8a36=_0x16343a[_0x5357fc(0xc02)]>0x0,_0x46cde4=toNum(_0x990a01[_0x5357fc(0x1aa)])||0xa,_0x1de8c9=toNum(_0x990a01[_0x5357fc(0x1010)]),_0x288c29=_0x2b16cc[_0x5357fc(0x617)]((_0x3a503a,_0x30957f)=>{const _0x27fad5=_0x5357fc,_0x40af55=toNum(_0x30957f[_0x27fad5(0x974)]?.[_0x27fad5(0xbcf)]);return isNum(_0x40af55)&&_0x40af55>_0x3a503a?_0x40af55:_0x3a503a;},0x0),_0x786eb6=isNum(_0x1de8c9)?_0x1de8c9:_0x288c29,_0x190612=Math[_0x5357fc(0x220)](0xc,Math[_0x5357fc(0x686)](_0x46cde4*1.2)),_0x5bb31a=(_0x24fdef,_0x285760,_0x14b734)=>{const _0x3cb3a3=_0x5357fc,_0x2c4ffe=this[_0x3cb3a3(0x1d2)]?.[_0x3cb3a3(0xe25)]?.(_0x24fdef);if(_0x2c4ffe&&_0x2c4ffe[_0x3cb3a3(0xc02)]){let _0x51e7f5=0x0;for(const _0x53c778 of _0x2c4ffe){const _0x206d6e=String(_0x53c778?.['label']??_0x53c778?.[_0x3cb3a3(0x2ea)]??'');if(_0x206d6e[_0x3cb3a3(0xc02)]>_0x51e7f5)_0x51e7f5=_0x206d6e[_0x3cb3a3(0xc02)];}return Math[_0x3cb3a3(0x220)](0x20,Math['round'](_0x51e7f5*_0x46cde4*0.62+0xe));}if(_0x285760){const _0x32bedd=axisLabelFormatter(_0x990a01,_0x24fdef);if(_0x32bedd){const _0x557655=String(_0x32bedd(_0x285760['lo'])??''),_0x11769b=String(_0x32bedd(_0x285760['hi'])??''),_0x339056=Math[_0x3cb3a3(0x220)](_0x557655[_0x3cb3a3(0xc02)],_0x11769b['length'],0x4);return Math[_0x3cb3a3(0x220)](0x20,Math[_0x3cb3a3(0x686)](_0x339056*_0x46cde4*0.62+0xc));}const _0x33da9e=isNum(_0x14b734)?_0x14b734:0x1,_0xd3f8d7=_0x285760['lo']['toFixed'](_0x33da9e),_0x2f3db4=_0x285760['hi'][_0x3cb3a3(0x198)](_0x33da9e),_0xf6d51a=Math[_0x3cb3a3(0x220)](_0xd3f8d7[_0x3cb3a3(0xc02)],_0x2f3db4[_0x3cb3a3(0xc02)]);return Math['max'](0x20,Math[_0x3cb3a3(0x686)](_0xf6d51a*_0x46cde4*0.62+0xc));}const _0x2c3099=0x4+(_0x786eb6>0x0?_0x786eb6+0x1:0x0);return Math['max'](0x20,Math[_0x3cb3a3(0x686)](_0x2c3099*_0x46cde4*0.62+0xc));},_0x587b63=this[_0x5357fc(0x718)](_0x2b16cc,_0x990a01),_0x199dee=_0x990a01['zoom_rescale_y']!==![]?this[_0x5357fc(0x1d2)]?.['_viewWindow']:null,_0x99173a=_0x199dee?_0x199dee[_0x5357fc(0x4b0)]['getTime']():0x0,_0x4629f9=_0x199dee?_0x199dee[_0x5357fc(0x244)][_0x5357fc(0x1028)]():0x0,_0x1de639=_0x1d6c59=>{const _0x527d46=_0x5357fc;if(!_0x199dee)return _0x1d6c59;const _0x44b46b=_0x1d6c59['map'](_0x4a3acf=>({..._0x4a3acf,'points':(_0x4a3acf[_0x527d46(0x93a)]||[])[_0x527d46(0x919)](_0x273fff=>_0x273fff['t']>=_0x99173a&&_0x273fff['t']<=_0x4629f9)}));return _0x44b46b['some'](_0x7bb5b2=>_0x7bb5b2[_0x527d46(0x93a)][_0x527d46(0x42a)](_0x2625b7=>isNum(_0x2625b7?.['v'])))?_0x44b46b:_0x1d6c59;},_0x35d7f1=_0x199dee?this['_buildStackState'](_0x1de639(_0x2b16cc),_0x990a01):_0x587b63,_0x513b8f=(_0x245ff0,_0x518c9d)=>{const _0x4db1ad=_0x5357fc,_0x55c32a=this[_0x4db1ad(0x9d6)](_0x1de639(_0x245ff0),_0x990a01,_0x518c9d,_0x35d7f1);return _0x55c32a||this[_0x4db1ad(0x9d6)](_0x245ff0,_0x990a01,_0x518c9d,_0x587b63);},_0x44169c=_0x199dee?_0x513b8f(_0x232ecc,![]):this[_0x5357fc(0x9d6)](_0x232ecc,_0x990a01,![],_0x587b63),_0x4c3fd1=_0x2d8a36?_0x199dee?_0x513b8f(_0x16343a,!![]):this['_computeYBounds'](_0x16343a,_0x990a01,!![],_0x587b63):null,_0x2400bf=(_0x4d6027,_0x2a39c9)=>{const _0x419492=_0x5357fc;if(!_0x4d6027||!_0x2a39c9[_0x419492(0x42a)](_0x19d926=>_0x19d926?.[_0x419492(0x974)]?.['show_data_labels']===!![]))return;const _0x3aa717=_0x4d6027['hi']-_0x4d6027['lo'];if(_0x3aa717>0x0)_0x4d6027['hi']=_0x4d6027['hi']+_0x3aa717*0.12;};_0x2400bf(_0x44169c,_0x232ecc),_0x2400bf(_0x4c3fd1,_0x16343a);const _0x1f0e8f=(_0x512607,_0x30d88c)=>{const _0x3d7822=_0x5357fc,_0x186ff6=toNum(_0x990a01[_0x3d7822(0x1010)]);if(isNum(_0x186ff6))return _0x186ff6;let _0x30488a=-0x1;for(const _0x207ad3 of _0x512607){const _0x3dd342=toNum(_0x207ad3[_0x3d7822(0x974)]?.[_0x3d7822(0xbcf)]);if(isNum(_0x3dd342)&&_0x3dd342>_0x30488a)_0x30488a=_0x3dd342;}if(_0x30488a>=0x0)return _0x30488a;if(_0x30d88c){const _0x337fbb=_0x30d88c['hi']-_0x30d88c['lo'],_0x4d4c9d=toNum(_0x990a01[_0x3d7822(0x41c)])||0x4,_0x2f461c=_0x337fbb/_0x4d4c9d;if(_0x2f461c>0x0&&_0x2f461c<0x1)return Math[_0x3d7822(0x6fd)](-Math[_0x3d7822(0x81d)](_0x2f461c));if(Math[_0x3d7822(0x1ae)](_0x30d88c['hi'])<0x64&&Math['abs'](_0x30d88c['lo'])<0x64)return 0x1;return 0x0;}return 0x1;},_0x236c1a=_0x1f0e8f(_0x232ecc,_0x44169c),_0x51b5c7=_0x2d8a36?_0x1f0e8f(_0x16343a,_0x4c3fd1):0x1,_0x3d1a9a=this[_0x5357fc(0x1d2)]?.[_0x5357fc(0x2d4)]?.[_0x5357fc(0xfa8)]||_0x2a5d25,_0x4a7ff9=_0x3d1a9a['filter'](_0x287428=>_0x287428[_0x5357fc(0x974)]?.[_0x5357fc(0xa43)]!==![]&&_0x287428['points']?.[_0x5357fc(0xc02)]&&!isStripEntity(_0x287428[_0x5357fc(0x974)])&&_0x287428[_0x5357fc(0x974)][_0x5357fc(0x8cc)]!==_0x5357fc(0xbec)&&_0x287428['entity']['y_axis']!==_0x5357fc(0x397)),_0x365a5b=_0x3d1a9a[_0x5357fc(0x919)](_0x1b0f0c=>_0x1b0f0c[_0x5357fc(0x974)]?.[_0x5357fc(0xa43)]!==![]&&_0x1b0f0c[_0x5357fc(0x93a)]?.[_0x5357fc(0xc02)]&&!isStripEntity(_0x1b0f0c['entity'])&&_0x1b0f0c[_0x5357fc(0x974)][_0x5357fc(0x8cc)]===_0x5357fc(0xbec)),_0x47a14a=_0x4a7ff9['length']?_0x4a7ff9:_0x232ecc,_0x252f29=_0x365a5b[_0x5357fc(0xc02)]?_0x365a5b:_0x16343a,_0x29ee41=_0x4a7ff9[_0x5357fc(0xc02)]===_0x232ecc[_0x5357fc(0xc02)],_0x42e1bb=_0x365a5b['length']===_0x16343a['length'],_0x2a1c28=_0x29ee41?_0x44169c:_0x4a7ff9[_0x5357fc(0xc02)]?_0x199dee?_0x513b8f(_0x47a14a,![]):this[_0x5357fc(0x9d6)](_0x47a14a,_0x990a01,![],_0x587b63):_0x44169c,_0x557ad=_0x42e1bb?_0x4c3fd1:_0x365a5b[_0x5357fc(0xc02)]?_0x199dee?_0x513b8f(_0x252f29,!![]):this[_0x5357fc(0x9d6)](_0x252f29,_0x990a01,!![],_0x587b63):_0x4c3fd1,_0x1e773b=_0x29ee41?_0x236c1a:_0x1f0e8f(_0x47a14a,_0x2a1c28),_0x3b5f65=_0x42e1bb?_0x51b5c7:_0x365a5b[_0x5357fc(0xc02)]?_0x1f0e8f(_0x252f29,_0x557ad):_0x51b5c7,_0x4f6b0f=_0x5bb31a(_0x5357fc(0x8d4),_0x2a1c28,_0x1e773b),_0x1ed33e=_0x5bb31a('secondary',_0x557ad,_0x3b5f65),_0x57220f=_0x365a5b[_0x5357fc(0xc02)]>0x0||_0x2d8a36,_0x599671=Math[_0x5357fc(0x220)](0x1,(_0x990a01[_0x5357fc(0xe1e)]?_0x4f6b0f:0x0)+(_0x990a01[_0x5357fc(0x3d7)]?_0x190612:0x0)),_0x4161d7=!_0x57220f&&!_0x990a01[_0x5357fc(0x589)]?0x1:Math['max'](0x1,(_0x990a01[_0x5357fc(0x589)]!==![]?_0x1ed33e:0x0)+(_0x990a01[_0x5357fc(0x3d7)]?_0x190612:0x0)),_0x12da5e=0x8,_0x115599=_0x990a01['show_x_axis']?0x16:0x8,_0x5dd25e=this[_0x5357fc(0x1d2)][_0x5357fc(0xf89)]||this[_0x5357fc(0x1d2)][_0x5357fc(0xbe0)],_0x2a39bd=_0x5dd25e[_0x5357fc(0x4b0)][_0x5357fc(0x1028)]()-(this[_0x5357fc(0x1d2)]['_viewWindow']?0x0:this[_0x5357fc(0x4c6)]||0x0),_0x3525b8=_0x5dd25e[_0x5357fc(0x244)]['getTime'](),_0x5b75ff=Math['max'](0x1,_0x3525b8-_0x2a39bd),_0x24fce4=0x4,_0x384618=resolveGroupBy(_0x990a01,_0x5b75ff/0x36ee80),_0x253f50=_0x85cba0['length']>0x0&&_0x384618!==_0x5357fc(0xe7d)&&_0x384618!==_0x5357fc(0x73e);let _0x1b3dd3=clamp(toNum(_0x990a01[_0x5357fc(0x973)])||0x10,0x6,0x3c);const _0x4f017c=clamp(toNum(_0x990a01[_0x5357fc(0x4bf)])||0xa,0x6,0x28),_0x27ba91=_0x990a01[_0x5357fc(0x4bd)]===!![],_0x1f4206=_0x990a01[_0x5357fc(0x4a6)]===_0x5357fc(0xaaf)?_0x5357fc(0xaaf):_0x5357fc(0xdce);let _0xfab323=_0x27ba91&&_0x1f4206==='above'?_0x4f017c+0x3:0x0,_0x3d1113=0x0;if(_0x253f50){const _0x3b2da3=Math['max'](0x0,_0xa1ff09-_0x12da5e-_0x115599-0x28);_0x3d1113=_0x24fce4+_0x85cba0[_0x5357fc(0xc02)]*(_0x1b3dd3+0x2+_0xfab323),_0x3d1113>_0x3b2da3&&(_0x1b3dd3=Math[_0x5357fc(0x220)](0x4,Math[_0x5357fc(0xedc)]((_0x3b2da3-_0x24fce4)/_0x85cba0[_0x5357fc(0xc02)])-0x2-_0xfab323),_0xfab323&&_0x1b3dd3<0x6&&(_0xfab323=0x0,_0x1b3dd3=Math[_0x5357fc(0x220)](0x4,Math['floor']((_0x3b2da3-_0x24fce4)/_0x85cba0[_0x5357fc(0xc02)])-0x2)),_0x3d1113=Math[_0x5357fc(0xba1)](_0x3b2da3,_0x24fce4+_0x85cba0[_0x5357fc(0xc02)]*(_0x1b3dd3+0x2+_0xfab323)));}const _0x336357=_0x27ba91&&(_0x1f4206===_0x5357fc(0xaaf)||_0xfab323>0x0);this[_0x5357fc(0x1d2)]['_lastPadT']=_0x12da5e,this[_0x5357fc(0x1d2)]['_lastPadB']=_0x115599+_0x3d1113;const _0x48143b=_0x5b75ff/0x36ee80,_0x486349=toNum(_0x990a01['__sgcExtVisibleH']??_0x990a01[_0x5357fc(0x4ad)]),_0x3e9aea=!this['card'][_0x5357fc(0xf89)]&&isNum(_0x486349)&&_0x486349>0x0&&_0x48143b>_0x486349,_0x454d9d=_0x3e9aea?_0x48143b/_0x486349:0x1,_0x146c3a=_0x3e9aea?Math[_0x5357fc(0x686)](_0x22b589*_0x454d9d):_0x22b589,_0x83eeac=Math[_0x5357fc(0x220)](0xa,_0x146c3a-_0x599671-_0x4161d7),_0x2f0e7b=Math[_0x5357fc(0x220)](0xa,_0xa1ff09-_0x12da5e-_0x115599-_0x3d1113),_0x5d0836=new Map();for(const _0x1ee400 of _0x2b16cc){if(_0x1ee400['entity'][_0x5357fc(0x8cc)]!==_0x5357fc(0x397))continue;const _0x55af96={..._0x990a01,'lower_bound':null,'upper_bound':null,'lower_bound_secondary':null,'upper_bound_secondary':null,'min_bound_range':null,'min_bound_range_secondary':null},_0x360c43=(_0x199dee?this[_0x5357fc(0x9d6)](_0x1de639([_0x1ee400]),_0x55af96,![],null):null)||this['_computeYBounds']([_0x1ee400],_0x55af96,![],null);_0x360c43&&(_0x1ee400[_0x5357fc(0x974)]?.[_0x5357fc(0xfe4)]===!![]&&_0x360c43['hi']>_0x360c43['lo']&&(_0x360c43['hi']=_0x360c43['hi']+(_0x360c43['hi']-_0x360c43['lo'])*0.12),_0x5d0836[_0x5357fc(0xa2d)](_0x1ee400[_0x5357fc(0xd18)],_0x360c43));}const _0x3c5960=_0x148397=>{const _0x3bfae2=_0x5357fc,_0x47628f=_0x148397?.['entity']||_0x148397,_0xa49fc9=_0x148397?.['idx'];if(_0x47628f?.[_0x3bfae2(0x8cc)]==='independent'&&_0xa49fc9!=null)return _0x5d0836[_0x3bfae2(0xc3f)](_0xa49fc9)||_0x44169c;return _0x47628f?.[_0x3bfae2(0x8cc)]===_0x3bfae2(0xbec)?_0x4c3fd1:_0x44169c;},_0x4eef=_0x2b16cc[_0x5357fc(0x42a)](_0x3621c8=>(_0x3621c8[_0x5357fc(0x974)]?.[_0x5357fc(0xc3c)]||_0x3621c8['entity']?.[_0x5357fc(0xefa)])==='bar');let _0x452ff2=_0x2a39bd,_0x94530b=_0x3525b8,_0x3602e6=_0x5b75ff;if(_0x4eef){const _0x111aa5=resolveGroupBy(_0x990a01,_0x5b75ff/0x36ee80),_0xf735bc=toNum(_0x990a01[_0x5357fc(0x71e)])||0x2,_0x337e81=_0x5b75ff/0x36ee80,_0x29adc8=groupBucketMs(_0x111aa5,_0x337e81,_0xf735bc);let _0x24eb34=Infinity,_0x165e6d=Infinity,_0x378131=-Infinity;for(const _0x5e1675 of _0x2b16cc){const _0x596d23=_0x5e1675[_0x5357fc(0x974)]?.[_0x5357fc(0xc3c)]||_0x5e1675[_0x5357fc(0x974)]?.[_0x5357fc(0xefa)];if(_0x596d23!==_0x5357fc(0x8fb)&&_0x596d23!==_0x5357fc(0x846))continue;const _0x167b05=(_0x5e1675['points']||[])[_0x5357fc(0x919)](_0x5f139d=>isNum(_0x5f139d['v']));for(let _0x1235ba=0x0;_0x1235ba<_0x167b05['length'];_0x1235ba++){if(_0x1235ba>0x0){const _0x52727c=_0x167b05[_0x1235ba]['t']-_0x167b05[_0x1235ba-0x1]['t'];if(_0x52727c>0x0&&_0x52727c<_0x24eb34)_0x24eb34=_0x52727c;}const _0x540eb2=_0x167b05[_0x1235ba]['t'];if(_0x540eb2>=_0x2a39bd&&_0x540eb2<_0x3525b8){if(_0x540eb2<_0x165e6d)_0x165e6d=_0x540eb2;if(_0x540eb2>_0x378131)_0x378131=_0x540eb2;}}}const _0x100d71=Math[_0x5357fc(0xba1)](_0x29adc8/0x2,_0x5b75ff/0x4,isFinite(_0x24eb34)?_0x24eb34/0x2:Infinity);if(isFinite(_0x100d71)&&isFinite(_0x165e6d))_0x452ff2=Math['min'](_0x2a39bd,_0x165e6d-_0x100d71),_0x94530b=Math[_0x5357fc(0x220)](_0x3525b8,_0x378131+_0x100d71);else isFinite(_0x100d71)&&(_0x452ff2=_0x2a39bd-_0x100d71,_0x94530b=_0x3525b8+_0x100d71);_0x3602e6=Math[_0x5357fc(0x220)](0x1,_0x94530b-_0x452ff2);}let _0x32acae,_0x58c8ae=![];const _0xddf0b8=resolveGroupBy(_0x990a01,_0x5b75ff/0x36ee80),_0x29a1ca=_0xddf0b8===_0x5357fc(0x73e)&&_0x990a01['chart_mode']!==_0x5357fc(0xb4b)&&_0x2b16cc['every'](_0x5e38e6=>{const _0x1d0252=_0x5357fc,_0x192e00=_0x5e38e6[_0x1d0252(0x974)]||{};return!_0x192e00[_0x1d0252(0x102c)]&&!_0x192e00[_0x1d0252(0xbef)]&&!_0x192e00['state_map'];});this[_0x5357fc(0x5af)]=_0x29a1ca,this['_stretchSlots']=![];if(_0xddf0b8===_0x5357fc(0xe7d)){const _0x5d0f6c=new Date(_0x2a39bd),_0x2aee34=_0x5d0f6c[_0x5357fc(0x5e9)](),_0x54f7a5=_0x5d0f6c['getMonth'](),_0x5a7927=new Date(_0x3525b8-0x1),_0x48a9dc=Math[_0x5357fc(0x220)](0x1,(_0x5a7927['getFullYear']()-_0x2aee34)*0xc+(_0x5a7927[_0x5357fc(0x4a0)]()-_0x54f7a5)+0x1),_0x214b48=_0x2b16cc[_0x5357fc(0x42a)](_0x236488=>{const _0x42c2ee=_0x5357fc,_0x31b828=_0x236488[_0x42c2ee(0x974)]?.[_0x42c2ee(0xc3c)]||_0x236488[_0x42c2ee(0x974)]?.[_0x42c2ee(0xefa)];return _0x31b828===_0x42c2ee(0x8fb)||_0x31b828===_0x42c2ee(0x846);}),_0x4152b8=!_0x214b48&&_0x48a9dc>0x1;this[_0x5357fc(0x294)]=_0x4152b8;const _0x4b28dd=_0x33ecfa=>_0x4152b8?Math[_0x5357fc(0x220)](0x0,Math[_0x5357fc(0xba1)](0x1,(_0x33ecfa-0.5)/(_0x48a9dc-0x1))):_0x33ecfa/_0x48a9dc,_0x43a0c6=Date[_0x5357fc(0x69d)]();let _0x18adca=null,_0x35e1b0=null,_0x18670f=null;if(!_0x214b48&&_0x43a0c6>_0x2a39bd&&_0x43a0c6<_0x3525b8){const _0x421936=new Date(_0x43a0c6);_0x35e1b0=_0x421936[_0x5357fc(0x5e9)](),_0x18670f=_0x421936['getMonth']();const _0x2748a1=(_0x35e1b0-_0x2aee34)*0xc+(_0x18670f-_0x54f7a5),_0x4622ab=new Date(_0x35e1b0,_0x18670f+0x1,0x0)[_0x5357fc(0x1024)](),_0x5739f3=(_0x421936[_0x5357fc(0x1024)]()-0x1+_0x421936[_0x5357fc(0x346)]()/0x18)/_0x4622ab;_0x18adca=_0x599671+_0x4b28dd(_0x2748a1+_0x5739f3)*_0x83eeac;}_0x32acae=_0x19c566=>{const _0x22d4d8=_0x5357fc,_0x5dd96a=new Date(_0x19c566);if(_0x18adca!==null&&_0x5dd96a['getFullYear']()===_0x35e1b0&&_0x5dd96a[_0x22d4d8(0x4a0)]()===_0x18670f)return _0x18adca;const _0x217ba8=(_0x5dd96a[_0x22d4d8(0x5e9)]()-_0x2aee34)*0xc+(_0x5dd96a[_0x22d4d8(0x4a0)]()-_0x54f7a5);return _0x599671+_0x4b28dd(_0x217ba8+0.5)*_0x83eeac;};}else{if(_0x29a1ca){const {refY:_0xc2482a,totalYears:_0x37b162}=this['_yearSlotSpan'](_0x2a39bd,_0x3525b8),_0x3ba22e=_0x2b16cc['some'](_0xc3c85=>{const _0xf900af=_0x5357fc,_0x4f7571=_0xc3c85[_0xf900af(0x974)]?.[_0xf900af(0xc3c)]||_0xc3c85[_0xf900af(0x974)]?.[_0xf900af(0xefa)];return _0x4f7571==='bar'||_0x4f7571===_0xf900af(0x846);}),_0x30bf32=!_0x3ba22e&&_0x37b162>0x1;if(_0x30bf32)this['_stretchSlots']=!![];const _0xb55e24=_0x4c8592=>_0x30bf32?Math['max'](0x0,Math[_0x5357fc(0xba1)](0x1,(_0x4c8592-0.5)/(_0x37b162-0x1))):_0x4c8592/_0x37b162,_0x5c02f4=Date[_0x5357fc(0x69d)]();let _0x2ea7e5=null,_0x21920e=null;if(!_0x3ba22e&&_0x5c02f4>_0x2a39bd&&_0x5c02f4<_0x3525b8){const _0x21177a=new Date(_0x5c02f4);_0x21920e=_0x21177a[_0x5357fc(0x5e9)]();const _0x5ae539=_0x21920e-_0xc2482a,_0x5c19da=new Date(_0x21177a[_0x5357fc(0x5e9)](),0x0,0x1)[_0x5357fc(0x1028)](),_0x1598a3=new Date(_0x21177a[_0x5357fc(0x5e9)]()+0x1,0x0,0x1)[_0x5357fc(0x1028)]();_0x2ea7e5=_0x599671+_0xb55e24(_0x5ae539+(_0x5c02f4-_0x5c19da)/(_0x1598a3-_0x5c19da))*_0x83eeac;}_0x32acae=_0x9e0f8c=>{const _0x4c24af=_0x5357fc,_0x2bbceb=new Date(_0x9e0f8c);if(_0x2ea7e5!==null&&_0x2bbceb[_0x4c24af(0x5e9)]()===_0x21920e)return _0x2ea7e5;const _0x42ec41=_0x2bbceb['getFullYear']()-_0xc2482a;return _0x599671+_0xb55e24(_0x42ec41+0.5)*_0x83eeac;};}else _0x32acae=_0x207820=>_0x599671+(_0x207820-_0x452ff2)/_0x3602e6*_0x83eeac,_0x58c8ae=!![];}const _0x200ecb=!!_0x990a01['logarithmic'],_0x2aff97=(_0x37a7eb,_0x24ec47)=>{const _0x1f581e=_0x5357fc;if(!_0x24ec47)return _0x12da5e+_0x2f0e7b/0x2;const {lo:_0x245726,hi:_0x353918}=_0x24ec47;if(_0x353918===_0x245726)return _0x12da5e+_0x2f0e7b/0x2;if(_0x200ecb){const _0x1938f3=Math[_0x1f581e(0x220)](_0x245726,1e-10),_0x182d1e=Math[_0x1f581e(0x220)](_0x353918,_0x1938f3*0xa),_0xa0262d=Math[_0x1f581e(0x220)](_0x37a7eb,_0x1938f3),_0x49a7a8=Math[_0x1f581e(0x81d)](_0x1938f3),_0x411278=Math[_0x1f581e(0x81d)](_0x182d1e),_0x5b2b61=Math[_0x1f581e(0x81d)](_0xa0262d);return _0x12da5e+_0x2f0e7b-(_0x5b2b61-_0x49a7a8)/(_0x411278-_0x49a7a8)*_0x2f0e7b;}return _0x12da5e+_0x2f0e7b-(_0x37a7eb-_0x245726)/(_0x353918-_0x245726)*_0x2f0e7b;},_0x1e4cbe=_0x3e9aea?{'width':String(_0x146c3a),'height':String(_0xa1ff09),'viewBox':_0x5357fc(0x44c)+_0x146c3a+'\x20'+_0xa1ff09,'preserveAspectRatio':_0x5357fc(0x412),'class':'sgc-svg'}:{'width':'100%','height':String(_0xa1ff09),'viewBox':_0x5357fc(0x44c)+_0x146c3a+'\x20'+_0xa1ff09,'preserveAspectRatio':_0x5357fc(0x412),'class':_0x5357fc(0xb94)},_0x4ca6cf=svgEl(_0x5357fc(0x5d7),_0x1e4cbe),_0x1869e3=svgEl(_0x5357fc(0xe91));_0x4ca6cf[_0x5357fc(0x319)](_0x1869e3);const _0x4116d6=_0x5357fc(0x979)+this['card'][_0x5357fc(0x6e9)],_0x486634=svgEl(_0x5357fc(0x940),{'id':_0x4116d6});let _0xb64d13=0x0;for(const _0x39f868 of _0x2b16cc){const _0x4f9ad8=toNum(_0x39f868[_0x5357fc(0x974)]?.[_0x5357fc(0x4e0)]),_0x5529dc=isNum(_0x4f9ad8)&&_0x4f9ad8>0x0?_0x4f9ad8:2.5;if(_0x5529dc>_0xb64d13)_0xb64d13=_0x5529dc;}_0xb64d13=Math['min'](0x4,Math[_0x5357fc(0x6fd)](_0xb64d13/0x2)+0x1);const _0x2f57ef=svgEl(_0x5357fc(0x53f),{'x':String(_0x599671-_0xb64d13),'y':String(_0x12da5e-_0xb64d13),'width':String(_0x83eeac+_0xb64d13*0x2),'height':String(_0x2f0e7b+_0xb64d13*0x2),'data-full-x':String(_0x599671-_0xb64d13),'data-full-w':String(_0x83eeac+_0xb64d13*0x2)});_0x486634[_0x5357fc(0x319)](_0x2f57ef),_0x1869e3[_0x5357fc(0x319)](_0x486634);const _0x2f594d=_0x5357fc(0x1a0)+this[_0x5357fc(0x1d2)][_0x5357fc(0x6e9)],_0x2c353f=svgEl(_0x5357fc(0x940),{'id':_0x2f594d}),_0x2403cd=svgEl(_0x5357fc(0x53f),{'x':String(_0x599671),'y':'0','width':String(_0x83eeac),'height':String(_0xa1ff09),'data-full-x':String(_0x599671),'data-full-w':String(_0x83eeac)});_0x2c353f[_0x5357fc(0x319)](_0x2403cd),_0x1869e3['appendChild'](_0x2c353f);const _0x5dd58b=(_0x350f30,_0x4b90c8)=>{const _0x583cf8=_0x5357fc;if(!_0x350f30)return null;const _0x4c86c3=toNum(_0x990a01[_0x583cf8(0x41c)]),_0x591197=this[_0x583cf8(0x1d2)]?.[_0x583cf8(0xe25)]?.('primary'),_0x17a921=isNum(_0x4c86c3)?_0x4c86c3:_0x591197?Math[_0x583cf8(0x220)](0x1,_0x591197[_0x583cf8(0xc02)]-0x1):0x4,_0x102a55=_0x4b90c8,_0x471b6e=_0x350f30['hi']-_0x350f30['lo'];if(_0x471b6e>0x0){const _0x40a757=Math[_0x583cf8(0x91f)](0xa,-_0x102a55),_0x4baa5a=Math[_0x583cf8(0x220)](0x1,Math[_0x583cf8(0xedc)](_0x471b6e/_0x40a757+1e-9));return Math[_0x583cf8(0xba1)](_0x17a921,_0x4baa5a);}return _0x17a921;},_0x13f5a0=_0x5dd58b(_0x44169c,_0x236c1a),_0x93c5f5=_0x990a01['y_axis_round_ticks']!==![],_0x4f60bf=_0x93c5f5&&_0x44169c&&!_0x990a01[_0x5357fc(0xe44)]&&!this[_0x5357fc(0x1d2)]?.[_0x5357fc(0xe25)]?.(_0x5357fc(0x8d4))?niceYTicks(_0x44169c['lo'],_0x44169c['hi'],_0x13f5a0||0x4,axisMinLabelStep(_0x990a01,_0x5357fc(0x8d4))):null,_0xf4a45=_0x93c5f5&&_0x2d8a36&&_0x4c3fd1&&!_0x990a01[_0x5357fc(0xe44)]&&!this[_0x5357fc(0x1d2)]?.['_getAxisStateMap']?.(_0x5357fc(0xbec))?niceYTicks(_0x4c3fd1['lo'],_0x4c3fd1['hi'],toNum(_0x990a01['y_axis_ticks'])||0x4,axisMinLabelStep(_0x990a01,_0x5357fc(0xbec))):null;if(_0x990a01[_0x5357fc(0x257)]){let _0x34b472=this[_0x5357fc(0x618)](_0x83eeac,_0x452ff2,_0x94530b,_0x990a01,_0x2e5c6c);if(!_0x34b472)_0x34b472=this[_0x5357fc(0xc32)](_0x83eeac,_0x452ff2,_0x94530b,_0x990a01,_0x2e5c6c);this['_drawGrid'](_0x4ca6cf,_0x599671,_0x12da5e,_0x83eeac,_0x2f0e7b,_0x990a01,_0x34b472,_0x13f5a0,_0x4f60bf,_0x44169c);}let _0x2ca5c3=null,_0x4cee3d=null;_0x990a01[_0x5357fc(0xe1e)]&&_0x44169c&&(_0x2ca5c3=this[_0x5357fc(0xe4a)](_0x4ca6cf,_0x599671,_0x12da5e,_0x2f0e7b,_0x44169c,![],_0x990a01,_0x13f5a0,_0x236c1a,_0x4f60bf));if(_0x2d8a36&&_0x4c3fd1&&_0x990a01[_0x5357fc(0x589)]){const _0x4fc0ed=_0x4f60bf&&_0x4f60bf[_0x5357fc(0xc02)]>=0x2&&_0x44169c&&_0x44169c['hi']>_0x44169c['lo']?_0x4f60bf[_0x5357fc(0xb3f)](_0x499760=>(_0x499760-_0x44169c['lo'])/(_0x44169c['hi']-_0x44169c['lo'])):null;_0x4cee3d=this['_drawYAxis'](_0x4ca6cf,_0x599671+_0x83eeac,_0x12da5e,_0x2f0e7b,_0x4c3fd1,!![],_0x990a01,null,_0x51b5c7,_0xf4a45,_0x4fc0ed);}_0x990a01[_0x5357fc(0x4f0)]&&this['_drawXAxis'](_0x4ca6cf,_0x599671,_0x12da5e+_0x2f0e7b,_0x83eeac,_0x452ff2,_0x94530b,_0x990a01,_0x2e5c6c);let _0x2f1e43=null;_0x253f50&&_0x58c8ae&&_0x3d1113>0x0&&(_0x2f1e43=this[_0x5357fc(0xdf1)](_0x4ca6cf,_0x85cba0,_0x990a01,_0x2e5c6c,{'padL':_0x599671,'plotW':_0x83eeac,'mapX':_0x32acae,'tEnd':_0x3525b8,'top':_0x12da5e+_0x2f0e7b+_0x115599+_0x24fce4,'rowH':_0x1b3dd3,'titleH':_0xfab323,'titleFs':_0x4f017c,'titlePos':_0x1f4206,'showTitles':_0x336357,'titleMaxW':_0x1f4206===_0x5357fc(0xaaf)?_0x599671-0x6:Math[_0x5357fc(0x220)](0x14,(_0x3e9aea?_0x22b589-_0x599671-_0x4161d7:_0x83eeac)-0x4)}));const _0x4065a4=this[_0x5357fc(0x1d2)][_0x5357fc(0xe35)](),_0x58bf1b=svgEl('g',{'class':_0x5357fc(0xa12),'clip-path':'url(#'+_0x4116d6+')'});_0x4ca6cf[_0x5357fc(0x319)](_0x58bf1b);const _0x15c3af=_0x2b16cc[_0x5357fc(0xb3f)]((_0x18c791,_0x399d1a)=>({'s':_0x18c791,'i':_0x399d1a,'z':toNum(_0x18c791[_0x5357fc(0x974)]?.[_0x5357fc(0x8a5)])||0x0}))[_0x5357fc(0xd09)]((_0x30e5e2,_0x5dda0e)=>_0x30e5e2['z']-_0x5dda0e['z']||_0x30e5e2['i']-_0x5dda0e['i'])['map'](_0x1ac971=>_0x1ac971['s']);for(const _0x506049 of _0x15c3af){if(!_0x506049[_0x5357fc(0x974)]?.['show_range_band'])continue;const _0xf41475=_0x3c5960(_0x506049);if(!_0xf41475)continue;this['_drawRangeBand'](_0x58bf1b,_0x506049,_0xf41475,_0x32acae,_0x2aff97);}const _0xdd9c21=_0x2b16cc['filter'](_0x5bb933=>{const _0x156dad=_0x5357fc,_0x45ee4d=_0x5bb933[_0x156dad(0x974)]?.['graph_type']||_0x5bb933[_0x156dad(0x974)]?.[_0x156dad(0xefa)];return(_0x45ee4d===_0x156dad(0x8fb)||_0x45ee4d===_0x156dad(0x846))&&_0x5bb933[_0x156dad(0x974)]?.['show_graph']!==![];}),_0x3ce8ef=new Map();if(_0xdd9c21[_0x5357fc(0xc02)]>0x0){if(_0x990a01['stacked']){const _0x4a21bf=[],_0x5b8d58={};for(const _0x49e31a of _0xdd9c21){const _0xace936=_0x49e31a[_0x5357fc(0x974)][_0x5357fc(0xe81)]||_0x5357fc(0x60a);!(_0xace936 in _0x5b8d58)&&(_0x5b8d58[_0xace936]=_0x4a21bf[_0x5357fc(0xc02)],_0x4a21bf[_0x5357fc(0xb31)](_0xace936));}const _0x1af573=_0x4a21bf[_0x5357fc(0xc02)];for(const _0x42e0b4 of _0xdd9c21){_0x3ce8ef[_0x5357fc(0xa2d)](_0x42e0b4[_0x5357fc(0xd18)],{'index':_0x5b8d58[_0x42e0b4[_0x5357fc(0x974)]['stack_group']||'_default'],'total':_0x1af573});}}else{const _0x220976=_0x228e30=>resolveGroupBy(_0x990a01,_0x5b75ff/0x36ee80,_0x228e30[_0x5357fc(0x974)]),_0x52bf66=new Map();for(const _0x3f44b6 of _0xdd9c21)_0x52bf66[_0x5357fc(0xa2d)](_0x220976(_0x3f44b6),(_0x52bf66['get'](_0x220976(_0x3f44b6))||0x0)+0x1);const _0x216322=new Map();for(const _0x3e75d3 of _0xdd9c21){const _0xa2fbc0=_0x220976(_0x3e75d3),_0x5dca7d=_0x216322['get'](_0xa2fbc0)||0x0;_0x216322[_0x5357fc(0xa2d)](_0xa2fbc0,_0x5dca7d+0x1),_0x3ce8ef[_0x5357fc(0xa2d)](_0x3e75d3[_0x5357fc(0xd18)],{'index':_0x5dca7d,'total':_0x52bf66[_0x5357fc(0xc3f)](_0xa2fbc0)});}}}this['_calBarPositions']=null;for(const _0x23a7ba of _0x15c3af){const _0x2c6049=_0x3c5960(_0x23a7ba);if(!_0x2c6049)continue;const _0x5a0ba4=_0x587b63?.['baselineByIdx']?.[_0x5357fc(0xc3f)](_0x23a7ba[_0x5357fc(0xd18)])||null,_0x87ad4b=_0x3ce8ef['get'](_0x23a7ba[_0x5357fc(0xd18)])||null;let _0x20186a=_0x58bf1b;if(_0x23a7ba[_0x5357fc(0x974)]?.[_0x5357fc(0xed4)]!=null){const _0x59b49b=toNum(_0x23a7ba[_0x5357fc(0x974)][_0x5357fc(0xbf6)]?.[_0x5357fc(0x7a2)]);_0x20186a=svgEl('g',{'opacity':isNum(_0x59b49b)?clamp(_0x59b49b,0.05,0x1):0.45}),_0x58bf1b[_0x5357fc(0x319)](_0x20186a);}const _0x4ab6ec=_0x587b63?.[_0x5357fc(0x279)]?.[_0x5357fc(0xc3f)](_0x23a7ba[_0x5357fc(0xd18)])||null,_0x16ccf1={'pos':_0x587b63?.[_0x5357fc(0x3bc)]?.[_0x5357fc(0xc3f)](_0x23a7ba['idx'])||null,'neg':_0x587b63?.[_0x5357fc(0x781)]?.[_0x5357fc(0xc3f)](_0x23a7ba[_0x5357fc(0xd18)])||null,'solo':!!_0x587b63?.['soloByIdx']?.[_0x5357fc(0x101d)](_0x23a7ba[_0x5357fc(0xd18)])};this[_0x5357fc(0x5f0)](_0x20186a,_0x1869e3,_0x23a7ba,_0x2c6049,_0x32acae,_0x2aff97,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'tStart':_0x2a39bd,'tEnd':_0x3525b8,'xStart':_0x452ff2,'xEnd':_0x94530b,'xRange':_0x3602e6,'yearEqualSpace':_0x29a1ca,'yearTotal':_0x29a1ca?this[_0x5357fc(0xe60)](_0x2a39bd,_0x3525b8)['totalYears']:0x1},_0x990a01,_0x5a0ba4,_0x87ad4b,_0x4ab6ec,_0x16ccf1);}const _0x496d85=_0x3e9aea?((()=>{const _0x719cdd=_0x5357fc,_0x4d7205=svgEl('g',{'class':_0x719cdd(0x3df),'clip-path':'url(#'+_0x4116d6+')'});return _0x4ca6cf[_0x719cdd(0x319)](_0x4d7205),_0x4d7205;})()):_0x4ca6cf;this['_drawAnnotationsBackground'](_0x496d85,_0x4065a4,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x2e5c6c),this[_0x5357fc(0x416)](_0x496d85,_0x4065a4,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x2e5c6c),this[_0x5357fc(0x16c)](_0x496d85,_0x2b16cc,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x990a01,_0x2e5c6c),this[_0x5357fc(0xdc0)](_0x496d85,_0x2b16cc,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x990a01,_0x2e5c6c);{if(_0x990a01[_0x5357fc(0xc31)]!==![]){const _0x2fdf05=Date[_0x5357fc(0x69d)]();if(_0x2fdf05>_0x2a39bd&&_0x2fdf05<_0x3525b8-(_0x3525b8-_0x2a39bd)*0.01){let _0x121045;const _0x1c9d8f=_0xddf0b8;if(_0x1c9d8f===_0x5357fc(0xe7d)){const _0x241539=new Date(_0x2fdf05),_0x268866=new Date(_0x2a39bd),_0xaf1ae3=_0x268866[_0x5357fc(0x5e9)](),_0x302080=_0x268866[_0x5357fc(0x4a0)](),_0x241238=new Date(_0x3525b8-0x1),_0x32352f=Math[_0x5357fc(0x220)](0x1,(_0x241238[_0x5357fc(0x5e9)]()-_0xaf1ae3)*0xc+(_0x241238[_0x5357fc(0x4a0)]()-_0x302080)+0x1),_0x88cf0c=(_0x241539[_0x5357fc(0x5e9)]()-_0xaf1ae3)*0xc+(_0x241539[_0x5357fc(0x4a0)]()-_0x302080),_0x4fa159=new Date(_0x241539[_0x5357fc(0x5e9)](),_0x241539[_0x5357fc(0x4a0)]()+0x1,0x0)[_0x5357fc(0x1024)](),_0x3d4642=(_0x241539[_0x5357fc(0x1024)]()-0x1+_0x241539[_0x5357fc(0x346)]()/0x18)/_0x4fa159;_0x121045=_0x599671+(this[_0x5357fc(0x294)]&&_0x32352f>0x1?Math[_0x5357fc(0x220)](0x0,Math[_0x5357fc(0xba1)](0x1,(_0x88cf0c+_0x3d4642-0.5)/(_0x32352f-0x1))):(_0x88cf0c+_0x3d4642)/_0x32352f)*_0x83eeac;}else{if(_0x29a1ca){const _0x51f696=new Date(_0x2fdf05),{refY:_0xc3027,totalYears:_0x35abf6}=this[_0x5357fc(0xe60)](_0x2a39bd,_0x3525b8),_0x41c9fd=_0x51f696[_0x5357fc(0x5e9)]()-_0xc3027,_0x1f2d8c=new Date(_0x51f696['getFullYear'](),0x0,0x1)['getTime'](),_0x2a9ab=new Date(_0x51f696['getFullYear']()+0x1,0x0,0x1)[_0x5357fc(0x1028)]();_0x121045=_0x599671+(this[_0x5357fc(0x294)]&&_0x35abf6>0x1?Math[_0x5357fc(0x220)](0x0,Math['min'](0x1,(_0x41c9fd+(_0x2fdf05-_0x1f2d8c)/(_0x2a9ab-_0x1f2d8c)-0.5)/(_0x35abf6-0x1))):(_0x41c9fd+(_0x2fdf05-_0x1f2d8c)/(_0x2a9ab-_0x1f2d8c))/_0x35abf6)*_0x83eeac;}else{if(_0x4eef&&(_0x1c9d8f===_0x5357fc(0x88f)||_0x1c9d8f===_0x5357fc(0x6f1)||_0x1c9d8f===_0x5357fc(0x2ab))){const _0x6c9c43=new Date(_0x2fdf05);let _0x16ff18,_0x1c264e;if(_0x1c9d8f===_0x5357fc(0x88f))_0x16ff18=new Date(_0x6c9c43[_0x5357fc(0x5e9)](),_0x6c9c43[_0x5357fc(0x4a0)](),_0x6c9c43[_0x5357fc(0x1024)]())[_0x5357fc(0x1028)](),_0x1c264e=0x5265c00;else{if(_0x1c9d8f===_0x5357fc(0x6f1)){const _0x352016=_0x6c9c43['getDay']()||0x7;_0x16ff18=new Date(_0x6c9c43[_0x5357fc(0x5e9)](),_0x6c9c43['getMonth'](),_0x6c9c43[_0x5357fc(0x1024)]()-weekStartOffsetDays(_0x352016,resolveFirstWeekday(_0x2e5c6c)))['getTime'](),_0x1c264e=0x7*0x5265c00;}else _0x16ff18=new Date(_0x6c9c43['getFullYear'](),_0x6c9c43[_0x5357fc(0x4a0)](),_0x6c9c43[_0x5357fc(0x1024)](),_0x6c9c43['getHours']())['getTime'](),_0x1c264e=0x36ee80;}const _0x13303a=Math['min'](0x1,(_0x2fdf05-_0x16ff18)/_0x1c264e),_0x4fbc01=_0x32acae(_0x16ff18),_0x2b2f0c=_0x32acae(_0x16ff18+_0x1c264e)-_0x4fbc01,_0x4cf23a=toNum(_0x990a01['bar_spacing'])||0x0,_0xc13d78=Math['max'](0x1,_0x2b2f0c-Math[_0x5357fc(0xba1)](_0x4cf23a,_0x2b2f0c*0.3));_0x121045=_0x4fbc01-_0xc13d78/0x2+_0x13303a*_0xc13d78;}else _0x121045=_0x32acae(_0x2fdf05);}}const _0x56159b=_0x990a01[_0x5357fc(0x996)]||_0x5357fc(0x717),_0x3c018d=toNum(_0x990a01[_0x5357fc(0x29b)]),_0x130e4f=isNum(_0x3c018d)?String(_0x3c018d):_0x5357fc(0xaed),_0x1f0fd7=isNum(_0x3c018d)?String(Math[_0x5357fc(0xba1)](0x1,_0x3c018d+0.05)):_0x5357fc(0xb41),_0x2a3243=toNum(_0x990a01[_0x5357fc(0xbfc)]),_0x2ff348=isNum(_0x2a3243)&&_0x2a3243>0x0?String(_0x2a3243):_0x5357fc(0xbf1),_0x1eb444=_0x990a01['now_line_style'];let _0x28a062=_0x5357fc(0xcf4);if(_0x1eb444===_0x5357fc(0xa63))_0x28a062=null;else{if(_0x1eb444==='dashed')_0x28a062=_0x5357fc(0xb70);else{if(_0x1eb444==='dotted')_0x28a062=_0x5357fc(0x6a1);else{if(_0x1eb444==='long-dash')_0x28a062=_0x5357fc(0x593);else{if(_0x1eb444&&typeof _0x1eb444==='string')_0x28a062=_0x1eb444;}}}}const _0x560bca={'x1':String(_0x121045),'x2':String(_0x121045),'y1':String(_0x12da5e),'y2':String(_0x12da5e+_0x2f0e7b),'stroke':_0x56159b,'stroke-width':_0x2ff348,'opacity':_0x130e4f,'class':_0x5357fc(0x4f4),'style':'pointer-events:none'};if(_0x28a062)_0x560bca[_0x5357fc(0xd08)]=_0x28a062;const _0x46a6f9=svgEl('line',_0x560bca);_0x496d85[_0x5357fc(0x319)](_0x46a6f9);const _0x968a70=svgEl(_0x5357fc(0x8a1),{'x':String(_0x121045),'y':String(_0x12da5e-0x2),'text-anchor':_0x5357fc(0x6d4),'font-size':'8','fill':_0x56159b,'opacity':_0x1f0fd7,'class':_0x5357fc(0x2ff),'style':_0x5357fc(0x381)});_0x968a70['textContent']=cardT(this[_0x5357fc(0x1d2)]?.[_0x5357fc(0x1dc)],this[_0x5357fc(0x1d2)]?.[_0x5357fc(0xfe9)],_0x5357fc(0x69d)),_0x496d85[_0x5357fc(0x319)](_0x968a70);}}}this[_0x5357fc(0x9a9)](_0x496d85,_0x2b16cc,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x990a01,_0x2e5c6c),this[_0x5357fc(0x4fd)](_0x496d85,_0x2b16cc,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960},_0x990a01,_0x2e5c6c),_0x3f417b[_0x5357fc(0x17c)]='',_0x3f417b[_0x5357fc(0x9a1)][_0x5357fc(0xa90)](_0x5357fc(0x542),_0x3e9aea);const _0x35eff3=_0x3e9aea&&_0x990a01['scroll_mode']==='wheel';_0x3f417b[_0x5357fc(0x9a1)][_0x5357fc(0xa90)](_0x5357fc(0xe1a),_0x35eff3),_0x3f417b[_0x5357fc(0x319)](_0x4ca6cf);if(_0x990a01[_0x5357fc(0x8fc)]&&typeof _0x4ca6cf['querySelectorAll']==='function')try{const _0x1e3206=[..._0x4ca6cf['querySelectorAll'](_0x5357fc(0x913))],_0x51e913=_0x1e3206[_0x5357fc(0xb3f)](_0x7b0421=>typeof _0x7b0421['getTotalLength']===_0x5357fc(0x8c6)?_0x7b0421[_0x5357fc(0x930)]():0x0);_0x1e3206[_0x5357fc(0xd27)]((_0x2afb67,_0x4a5a85)=>{const _0x3f64ec=_0x5357fc,_0x264eba=_0x51e913[_0x4a5a85];if(_0x264eba&&isFinite(_0x264eba)&&_0x264eba>0x0)_0x2afb67[_0x3f64ec(0x944)][_0x3f64ec(0x935)](_0x3f64ec(0x757),_0x264eba);});}catch(_0x20eab4){}if(_0x3e9aea&&(_0x2ca5c3||_0x4cee3d)){const _0x41acb3=_0x990a01[_0x5357fc(0xa4c)]||_0x5357fc(0xc74);if(_0x2ca5c3){const _0x51f71f=svgEl(_0x5357fc(0x53f),{'x':'0','y':'0','width':String(_0x599671),'height':String(_0xa1ff09),'fill':_0x41acb3,'class':'sgc-y-axis-bg'});_0x2ca5c3['insertBefore'](_0x51f71f,_0x2ca5c3[_0x5357fc(0x87c)]),_0x2ca5c3[_0x5357fc(0x9a1)]['add'](_0x5357fc(0x359)),_0x2ca5c3[_0x5357fc(0x751)](_0x5357fc(0xcb9),'left'),_0x4ca6cf[_0x5357fc(0x319)](_0x2ca5c3);}if(_0x4cee3d){const _0x5b40c6=Math[_0x5357fc(0x220)](0x0,_0x146c3a-_0x599671-_0x83eeac),_0x3d764c=svgEl(_0x5357fc(0x53f),{'x':String(_0x599671+_0x83eeac),'y':'0','width':String(_0x5b40c6),'height':String(_0xa1ff09),'fill':_0x41acb3,'class':_0x5357fc(0x595)});_0x4cee3d[_0x5357fc(0x52e)](_0x3d764c,_0x4cee3d['firstChild']),_0x4cee3d[_0x5357fc(0x9a1)][_0x5357fc(0x982)](_0x5357fc(0x359)),_0x4cee3d[_0x5357fc(0x751)]('data-axis-side','right'),_0x4ca6cf[_0x5357fc(0x319)](_0x4cee3d);}}_0x2f1e43&&(_0x3e9aea&&(_0x2f1e43[_0x5357fc(0x9a1)][_0x5357fc(0x982)](_0x5357fc(0x359)),_0x2f1e43[_0x5357fc(0x751)]('data-axis-side',_0x5357fc(0xaaf))),_0x4ca6cf[_0x5357fc(0x319)](_0x2f1e43));if(_0x3e9aea){const _0x9f9748=this[_0x5357fc(0x1d2)];for(const _0x36e138 of _0x4ca6cf[_0x5357fc(0xf98)](_0x5357fc(0xb4a))){_0x36e138[_0x5357fc(0x751)](_0x5357fc(0xd6a),_0x5357fc(0x820)+_0x2f594d+')');}const _0x4e9c73=_0x9f9748['_savedScrollLeft'];if(_0x4e9c73!=null)_0x3f417b['scrollLeft']=_0x4e9c73;else{const _0x33f4eb=toNum(_0x990a01['__sgcExtAnchorMs']);if(isNum(_0x33f4eb)&&_0x33f4eb>_0x452ff2&&_0x33f4eb<_0x3525b8){const _0x12f651=Math[_0x5357fc(0x220)](0x0,Math[_0x5357fc(0x686)](_0x32acae(_0x33f4eb))-_0x3f417b[_0x5357fc(0x810)]);if(_0x12f651>0x0)_0x9f9748[_0x5357fc(0x68e)]=!![];_0x3f417b[_0x5357fc(0x60c)]=_0x12f651;}else _0x3f417b['scrollLeft']=_0x3f417b[_0x5357fc(0xc29)];}const _0x5013d6=()=>{const _0x4460c5=_0x5357fc,_0x4c0f4a=_0x3f417b[_0x4460c5(0xc29)]-_0x3f417b['clientWidth'],_0x4c984a=_0x3f417b[_0x4460c5(0x60c)],_0xd8be4e=_0x4ca6cf['querySelectorAll'](_0x4460c5(0xadd));for(const _0x43d8cf of _0xd8be4e){const _0x8327db=_0x43d8cf[_0x4460c5(0xffb)](_0x4460c5(0xcb9)),_0x47921f=_0x8327db===_0x4460c5(0x1fd)?_0x4c984a-_0x4c0f4a:_0x4c984a;_0x43d8cf[_0x4460c5(0x751)](_0x4460c5(0x427),_0x4460c5(0x235)+_0x47921f+_0x4460c5(0xcf9));}const _0x34e06e=_0x2ca5c3?_0x599671:0x0,_0x39c1df=_0x4cee3d?Math[_0x4460c5(0x220)](0x0,_0x146c3a-_0x599671-_0x83eeac):0x0,_0x5e545e=String(_0x4c984a+_0x34e06e),_0x36a253=String(Math['max'](0x0,_0x3f417b['clientWidth']-_0x34e06e-_0x39c1df));_0x2f57ef[_0x4460c5(0x751)]('x',_0x5e545e),_0x2f57ef['setAttribute'](_0x4460c5(0x581),_0x36a253),_0x2403cd[_0x4460c5(0x751)]('x',_0x5e545e),_0x2403cd[_0x4460c5(0x751)]('width',_0x36a253);};_0x5013d6();if(this[_0x5357fc(0xba4)])_0x3f417b['removeEventListener'](_0x5357fc(0xedb),this[_0x5357fc(0xba4)]);this[_0x5357fc(0xba4)]=()=>{const _0x47d497=_0x5357fc;_0x9f9748[_0x47d497(0xc0e)]=_0x3f417b[_0x47d497(0x60c)],_0x5013d6();if(_0x9f9748[_0x47d497(0x68e)]){_0x9f9748['_suppressScrollDispatch']=![];return;}if(!_0x9f9748[_0x47d497(0xfe9)]?.[_0x47d497(0xcfc)])return;const _0xe96053=_0x3f417b[_0x47d497(0xc29)]-_0x3f417b[_0x47d497(0x810)];if(_0xe96053<=0x0)return;const _0x8b05d9=_0x3f417b[_0x47d497(0x60c)]/_0xe96053;window['dispatchEvent'](new CustomEvent(_0x47d497(0xfa4),{'detail':{'ratio':_0x8b05d9,'group':_0x9f9748['_config']['scroll_sync_group']||null,'sourceId':_0x9f9748[_0x47d497(0x6e9)]}}));},_0x3f417b[_0x5357fc(0x171)](_0x5357fc(0xedb),this[_0x5357fc(0xba4)],{'passive':!![]});if(this['_wheelHandler'])_0x3f417b[_0x5357fc(0x1ea)]('wheel',this[_0x5357fc(0xb8c)]);_0x35eff3?(this[_0x5357fc(0xb8c)]=_0x5f43fd=>{const _0x4e8e2e=_0x5357fc;if(_0x3f417b[_0x4e8e2e(0xc29)]<=_0x3f417b[_0x4e8e2e(0x810)])return;_0x5f43fd['preventDefault'](),_0x5f43fd['stopPropagation'](),_0x3f417b[_0x4e8e2e(0x60c)]+=_0x5f43fd['deltaY']!==0x0?_0x5f43fd[_0x4e8e2e(0x7f0)]:_0x5f43fd[_0x4e8e2e(0x698)];},_0x3f417b[_0x5357fc(0x171)](_0x5357fc(0x7f6),this[_0x5357fc(0xb8c)],{'passive':![]})):this[_0x5357fc(0xb8c)]=null;}else this[_0x5357fc(0x1d2)][_0x5357fc(0xc0e)]=null,this[_0x5357fc(0xba4)]&&(_0x3f417b[_0x5357fc(0x1ea)](_0x5357fc(0xedb),this[_0x5357fc(0xba4)]),this[_0x5357fc(0xba4)]=null),this['_wheelHandler']&&(_0x3f417b[_0x5357fc(0x1ea)](_0x5357fc(0x7f6),this[_0x5357fc(0xb8c)]),this[_0x5357fc(0xb8c)]=null);(_0x990a01[_0x5357fc(0xeed)]||_0x990a01[_0x5357fc(0x298)])&&this['_attachTooltip'](_0x4ca6cf,_0x85cba0[_0x5357fc(0xc02)]?_0x2b16cc[_0x5357fc(0x9da)](_0x85cba0):_0x2b16cc,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'mapX':_0x32acae,'mapY':_0x2aff97,'yBounds':_0x44169c,'y2Bounds':_0x4c3fd1,'boundsFor':_0x3c5960,'tStart':_0x2a39bd,'tEnd':_0x3525b8},_0x990a01,_0x2e5c6c,_0x3f417b,_0x587b63);const _0x2187d3=_0x3f417b['parentElement'];this[_0x5357fc(0xfed)]&&(this[_0x5357fc(0xfed)][_0x5357fc(0x582)](),this[_0x5357fc(0xfed)]=null),_0x990a01[_0x5357fc(0x236)]!==![]&&this[_0x5357fc(0x409)](_0x2187d3,_0x3f417b,{'padL':_0x599671,'padT':_0x12da5e,'plotW':_0x83eeac,'plotH':_0x2f0e7b,'tStart':_0x2a39bd,'tEnd':_0x3525b8,'isScroll':_0x3e9aea,'width':_0x146c3a,'svgViewWidth':_0x146c3a});}['_attachZoomHandlers'](_0x50909f,_0x2bb923,_0x49718f){const _0x2b541a=_0x46af5e;if(!_0x50909f||!_0x2bb923)return;const _0x214e69=this[_0x2b541a(0x1d2)];if(this[_0x2b541a(0xfed)])this[_0x2b541a(0xfed)][_0x2b541a(0x582)]();this[_0x2b541a(0xfed)]=new AbortController();const _0xb7e51e=this[_0x2b541a(0xfed)][_0x2b541a(0x5fe)],{padL:_0x55083a,padT:_0xd03095,plotW:_0x5df4d7,plotH:_0x48917f,tStart:_0xbe57aa,tEnd:_0x19a37a,isScroll:_0x5470a3,svgViewWidth:_0x2b4e01}=_0x49718f;this['_zoomGeom']={'padL':_0x55083a,'plotW':_0x5df4d7,'tStart':_0xbe57aa,'tEnd':_0x19a37a,'isScroll':_0x5470a3,'svgViewWidth':_0x2b4e01},this[_0x2b541a(0x3fe)](_0x50909f,_0x2bb923);const _0x44a635=Math[_0x2b541a(0x220)](0x1,_0x19a37a-_0xbe57aa),_0x3276bc=_0x50909f['querySelector']('.sgc-zoom-brush'),_0x1f66bd=_0x3276bc?.[_0x2b541a(0xee6)](_0x2b541a(0xcd1)),_0x2f9d1b=_0x3276bc?.[_0x2b541a(0xee6)](_0x2b541a(0x721));if(!_0x3276bc)return;_0x3276bc[_0x2b541a(0x944)][_0x2b541a(0x4c4)]=_0x2b541a(0x412);let _0x44f515=null;const _0x4f3bfd=_0x57671c=>{const _0x5dbeb8=_0x2b541a,_0x17578f=_0x50909f[_0x5dbeb8(0x9cc)](),_0x48e386=_0x17578f[_0x5dbeb8(0x581)]||0x1,_0x328b5c=_0x5470a3?_0x2bb923[_0x5dbeb8(0x60c)]+_0x57671c/_0x48e386*_0x2bb923[_0x5dbeb8(0x810)]:_0x57671c/_0x48e386*_0x2b4e01,_0x429a3c=Math[_0x5dbeb8(0x220)](_0x55083a,Math[_0x5dbeb8(0xba1)](_0x55083a+_0x5df4d7,_0x328b5c)),_0x2ffd83=(_0x429a3c-_0x55083a)/_0x5df4d7;return _0xbe57aa+_0x2ffd83*_0x44a635;},_0x1bea7f=_0x3d7f44=>{const _0x1c2607=_0x2b541a,_0x478fcd=new Date(_0x3d7f44),_0x2abb3a=String(_0x478fcd['getHours']())['padStart'](0x2,'0'),_0x3cb14c=String(_0x478fcd[_0x1c2607(0xe88)]())['padStart'](0x2,'0'),_0x4bd666=String(_0x478fcd[_0x1c2607(0x1024)]())[_0x1c2607(0x470)](0x2,'0'),_0x1c001e=String(_0x478fcd[_0x1c2607(0x4a0)]()+0x1)['padStart'](0x2,'0');return _0x4bd666+'/'+_0x1c001e+'\x20'+_0x2abb3a+':'+_0x3cb14c;},_0x193766=(_0x16902c,_0x72af67)=>{const _0x3615dd=_0x2b541a,_0x175905=_0x50909f[_0x3615dd(0x9cc)](),_0x172edb=_0x175905[_0x3615dd(0x581)],_0x38eece=_0x5470a3?0x0:_0x55083a/_0x2b4e01*_0x172edb,_0x3af8c7=_0x5470a3?_0x172edb:(_0x55083a+_0x5df4d7)/_0x2b4e01*_0x172edb,_0x1abdd8=Math[_0x3615dd(0x220)](_0x38eece,Math[_0x3615dd(0xba1)](_0x3af8c7,_0x16902c)),_0x15ca48=Math[_0x3615dd(0x220)](_0x38eece,Math['min'](_0x3af8c7,_0x72af67)),_0x5c6f0c=Math[_0x3615dd(0xba1)](_0x1abdd8,_0x15ca48),_0xdd6872=Math[_0x3615dd(0x1ae)](_0x15ca48-_0x1abdd8);_0x3276bc[_0x3615dd(0x944)]['left']=_0x5c6f0c+'px',_0x3276bc[_0x3615dd(0x944)][_0x3615dd(0x581)]=_0xdd6872+'px';if(_0xdd6872>0x14&&_0x1f66bd&&_0x2f9d1b){const _0x24cc87=_0x4f3bfd(_0x5c6f0c),_0x330f52=_0x4f3bfd(_0x5c6f0c+_0xdd6872);_0x1f66bd[_0x3615dd(0x3d2)]=_0x1bea7f(_0x24cc87),_0x2f9d1b['textContent']=_0x1bea7f(_0x330f52),_0x1f66bd[_0x3615dd(0x944)]['display']='',_0x2f9d1b[_0x3615dd(0x944)][_0x3615dd(0x4c4)]='';}else _0x1f66bd&&_0x2f9d1b&&(_0x1f66bd['style']['display']=_0x3615dd(0x412),_0x2f9d1b['style'][_0x3615dd(0x4c4)]=_0x3615dd(0x412));},_0x44e089=_0x36bf47=>{const _0x570594=_0x2b541a,_0x47fb57=_0x50909f['getBoundingClientRect'](),_0x153037=_0x36bf47-_0x47fb57[_0x570594(0xaaf)];if(_0x153037<0x0||_0x153037>_0x47fb57[_0x570594(0x581)])return;_0x44f515=_0x153037,_0x214e69[_0x570594(0xa38)]=!![],_0x3276bc['style'][_0x570594(0x4c4)]='',_0x3276bc[_0x570594(0x944)][_0x570594(0xaaf)]=_0x153037+'px',_0x3276bc[_0x570594(0x944)]['width']=_0x570594(0xcee);};let _0x46d3bb=null,_0x333bf8=0x0;const _0x78c08e=_0x19d494=>{const _0x32bb54=_0x2b541a;if(_0x214e69[_0x32bb54(0x691)]){_0x554101();return;}if(_0x44f515===null)return;const _0x29bece=_0x50909f[_0x32bb54(0x9cc)]();_0x46d3bb=_0x19d494-_0x29bece[_0x32bb54(0xaaf)];if(_0x333bf8)return;_0x333bf8=requestAnimationFrame(()=>{_0x333bf8=0x0;if(_0x44f515===null||_0x46d3bb===null)return;_0x193766(_0x44f515,_0x46d3bb);});},_0x57061f=_0x272c07=>{const _0x52b457=_0x2b541a;if(_0x214e69[_0x52b457(0x691)]){_0x554101();return;}if(_0x44f515===null)return;const _0x3f21f6=_0x50909f['getBoundingClientRect'](),_0x1e9b13=Math['max'](0x0,Math[_0x52b457(0xba1)](_0x3f21f6[_0x52b457(0x581)],_0x272c07-_0x3f21f6[_0x52b457(0xaaf)])),_0x37b035=_0x44f515;_0x44f515=null,_0x214e69[_0x52b457(0xa38)]=![],_0x3276bc['style'][_0x52b457(0x4c4)]=_0x52b457(0x412);_0x333bf8&&(cancelAnimationFrame(_0x333bf8),_0x333bf8=0x0);const _0x936155=Math[_0x52b457(0x1ae)](_0x1e9b13-_0x37b035);if(_0x936155<0xf){if(_0x214e69[_0x52b457(0xfe9)]?.[_0x52b457(0x206)]&&!(_0x214e69[_0x52b457(0xfe9)]?.['crosshair']===!![]&&_0x214e69[_0x52b457(0xfe9)]?.[_0x52b457(0xeed)]!==![])){const _0x85c9ff=_0x4f3bfd(_0x1e9b13);clearTimeout(_0x214e69[_0x52b457(0x3e8)]),_0x214e69['_drillTimer']=setTimeout(()=>{const _0x962ee1=_0x52b457;_0x214e69[_0x962ee1(0x3e8)]=null,_0x214e69[_0x962ee1(0x659)](_0x85c9ff);},0x104);}return;}const _0x30f43d=_0x4f3bfd(Math['min'](_0x37b035,_0x1e9b13)),_0x6e27d6=_0x4f3bfd(Math[_0x52b457(0x220)](_0x37b035,_0x1e9b13));if(_0x6e27d6-_0x30f43d<0xea60)return;_0x214e69['_pushViewWindow'](_0x30f43d,_0x6e27d6);},_0x554101=()=>{const _0x115f32=_0x2b541a;_0x44f515=null,_0x214e69[_0x115f32(0xa38)]=![],_0x3276bc[_0x115f32(0x944)][_0x115f32(0x4c4)]=_0x115f32(0x412),_0x333bf8&&(cancelAnimationFrame(_0x333bf8),_0x333bf8=0x0);};_0x50909f[_0x2b541a(0x171)](_0x2b541a(0xc95),_0x119642=>{const _0x183827=_0x2b541a;if(_0x119642[_0x183827(0xa3d)]!==0x0)return;if(_0x214e69[_0x183827(0x38f)]!=null)return;if(_0x5470a3&&_0x119642['target']===_0x2bb923){const _0x15115f=_0x2bb923[_0x183827(0x9cc)](),_0x42378a=_0x119642[_0x183827(0x6a3)]-_0x15115f[_0x183827(0xf55)];if(_0x42378a>_0x2bb923[_0x183827(0x94e)])return;}_0x119642[_0x183827(0xac3)](),_0x44e089(_0x119642[_0x183827(0x51e)]);},{'signal':_0xb7e51e}),window[_0x2b541a(0x171)](_0x2b541a(0xd96),_0x5e0cd1=>{if(_0x44f515===null)return;_0x78c08e(_0x5e0cd1['clientX']);},{'signal':_0xb7e51e}),window['addEventListener'](_0x2b541a(0x27a),_0x440487=>{const _0x582136=_0x2b541a;if(_0x44f515===null)return;_0x57061f(_0x440487[_0x582136(0x51e)]);},{'signal':_0xb7e51e}),_0x50909f[_0x2b541a(0x171)]('mouseleave',()=>{if(_0x44f515!==null)_0x554101();},{'signal':_0xb7e51e}),_0x50909f[_0x2b541a(0x171)]('dblclick',()=>{const _0x389984=_0x2b541a;clearTimeout(_0x214e69[_0x389984(0x3e8)]),_0x214e69[_0x389984(0x3e8)]=null;if(Date['now']()-(_0x214e69[_0x389984(0xfd1)]||0x0)<0x2bc)return;_0x214e69[_0x389984(0xf64)]?.();if(_0x214e69['_viewWindow']){_0x214e69['_popZoomHistory']();return;}_0x214e69['_drillUp']();},{'signal':_0xb7e51e});let _0x1f949d=null,_0x3c00fe=null,_0x15e146=null,_0x122e5b=![],_0x4ba922=![];const _0x1c1ac2=0x258,_0x349400=0x8;_0xb7e51e[_0x2b541a(0x171)](_0x2b541a(0x582),()=>{_0x1f949d&&(clearTimeout(_0x1f949d),_0x1f949d=null);}),_0x50909f['addEventListener'](_0x2b541a(0x594),_0x440ec5=>{const _0x41fabc=_0x2b541a;if(_0x440ec5[_0x41fabc(0x9e4)]['length']!==0x1)return;if(_0x214e69[_0x41fabc(0x38f)]!=null)return;const _0x571747=_0x440ec5[_0x41fabc(0x9e4)][0x0];_0x122e5b=![],_0x4ba922=![],_0x214e69[_0x41fabc(0xb0b)]=![],_0x3c00fe=_0x571747['clientX'],_0x15e146=_0x571747[_0x41fabc(0x6a3)],_0x1f949d=setTimeout(()=>{const _0x3f8f7f=_0x41fabc;!_0x122e5b&&(_0x4ba922=!![],_0x214e69[_0x3f8f7f(0xb0b)]=!![]);},_0x1c1ac2);},{'passive':!![],'signal':_0xb7e51e}),_0x50909f[_0x2b541a(0x171)](_0x2b541a(0xa3c),_0x328f11=>{const _0x397247=_0x2b541a;if(_0x328f11[_0x397247(0x9e4)][_0x397247(0xc02)]!==0x1)return;const _0x20926f=_0x328f11['touches'][0x0],_0x4173a8=Math[_0x397247(0x1ae)](_0x20926f['clientX']-_0x3c00fe),_0x3e932d=Math[_0x397247(0x1ae)](_0x20926f['clientY']-_0x15e146);!_0x122e5b&&(_0x4173a8>_0x349400||_0x3e932d>_0x349400)&&(_0x122e5b=!![],_0x1f949d&&(clearTimeout(_0x1f949d),_0x1f949d=null),_0x4ba922&&_0x44f515===null&&_0x44e089(_0x3c00fe)),_0x44f515!==null&&(_0x328f11['preventDefault'](),_0x78c08e(_0x20926f[_0x397247(0x51e)]));},{'passive':![],'signal':_0xb7e51e}),_0x50909f['addEventListener'](_0x2b541a(0x161),_0x517ddc=>{const _0xe57a41=_0x2b541a;_0x1f949d&&(clearTimeout(_0x1f949d),_0x1f949d=null),_0x44f515!==null&&_0x517ddc['changedTouches'][_0xe57a41(0xc02)]===0x1&&_0x57061f(_0x517ddc['changedTouches'][0x0][_0xe57a41(0x51e)]),_0x214e69[_0xe57a41(0xb0b)]=![],_0x3c00fe=null,_0x15e146=null,_0x122e5b=![],_0x4ba922=![];},{'passive':!![],'signal':_0xb7e51e}),_0x50909f['addEventListener']('touchcancel',()=>{_0x1f949d&&(clearTimeout(_0x1f949d),_0x1f949d=null),_0x554101(),_0x214e69['_brushArmed']=![],_0x3c00fe=null,_0x15e146=null,_0x122e5b=![],_0x4ba922=![];},{'passive':!![],'signal':_0xb7e51e});}[_0x46af5e(0x3fe)](_0x1ecf06,_0x1bc99e){const _0x584718=_0x46af5e;if(this[_0x584718(0xc40)]||!_0x1ecf06||!_0x1bc99e)return;this[_0x584718(0xc40)]=!![];const _0x16a551=this[_0x584718(0x1d2)];let _0x190fae=null,_0x36bc8d=0x0,_0x322d52=null,_0x1c4de9=0x0,_0x1ac8c4=0x0,_0xbcd1a0=0x0;const _0x1ed5f2=(_0xa3e376,_0x3d9a9a)=>{const _0x4ed214=_0x584718,_0x44cb5c=this[_0x4ed214(0x954)];if(!_0x44cb5c)return null;const _0x40832f=_0x1ecf06['getBoundingClientRect'](),_0x3bfc46=_0x40832f[_0x4ed214(0x581)]||0x1,_0x4ea3da=_0x44cb5c[_0x4ed214(0x5ca)]?_0x1bc99e[_0x4ed214(0x60c)]+_0xa3e376/_0x3bfc46*_0x1bc99e[_0x4ed214(0x810)]:_0xa3e376/_0x3bfc46*_0x44cb5c[_0x4ed214(0xb91)],_0x4a1b80=Math[_0x4ed214(0x220)](_0x44cb5c[_0x4ed214(0xcd9)],Math[_0x4ed214(0xba1)](_0x44cb5c[_0x4ed214(0xcd9)]+_0x44cb5c['plotW'],_0x4ea3da)),_0x1b30c6=(_0x4a1b80-_0x44cb5c[_0x4ed214(0xcd9)])/_0x44cb5c[_0x4ed214(0x477)];return _0x3d9a9a['s']+_0x1b30c6*(_0x3d9a9a['e']-_0x3d9a9a['s']);},_0x4a1d03=0xa,_0xdfe986=()=>{const _0x2914ef=_0x584718;_0x36bc8d=0x0;if(!_0x190fae||_0x322d52===null)return;const _0x33d4da=Math[_0x2914ef(0x91f)](_0x190fae[_0x2914ef(0x6e6)]/_0x322d52,_0x4a1d03);_0x322d52=null;const {s:_0x413f14,e:_0x471d34}=_0x190fae[_0x2914ef(0xe45)],_0x313ba7=_0x190fae[_0x2914ef(0x2a3)]??(_0x413f14+_0x471d34)/0x2;let _0x353b46=_0x313ba7-(_0x313ba7-_0x413f14)*_0x33d4da,_0x30620f=_0x313ba7+(_0x471d34-_0x313ba7)*_0x33d4da;if(_0x30620f-_0x353b46<0xea60){const _0x2da28f=(_0x353b46+_0x30620f)/0x2;_0x353b46=_0x2da28f-0x7530,_0x30620f=_0x2da28f+0x7530;}const _0x45fef8=_0x16a551[_0x2914ef(0xbe0)];if(_0x45fef8){const _0x4180a9=_0x45fef8[_0x2914ef(0x4b0)][_0x2914ef(0x1028)](),_0x438554=_0x45fef8[_0x2914ef(0x244)][_0x2914ef(0x1028)]();if(_0x353b46<_0x4180a9)_0x353b46=_0x4180a9;if(_0x30620f>_0x438554)_0x30620f=_0x438554;if(_0x30620f-_0x353b46>=_0x438554-_0x4180a9-0x3e8){!_0x190fae[_0x2914ef(0xb95)]&&(_0x49c4ed(),_0x190fae[_0x2914ef(0xb95)]=!![]);_0x16a551[_0x2914ef(0xf89)]=null,_0x16a551[_0x2914ef(0x401)]='',_0x16a551[_0x2914ef(0x103c)]();return;}}!_0x190fae['pushed']&&(_0x49c4ed(),_0x190fae[_0x2914ef(0xb95)]=!![]),_0x16a551[_0x2914ef(0xf89)]={'start':new Date(_0x353b46),'end':new Date(_0x30620f)},_0x16a551['_graphFingerprint']='',_0x16a551[_0x2914ef(0x103c)]();},_0x49c4ed=()=>{const _0x5baba7=_0x584718;if(!Array[_0x5baba7(0x902)](_0x16a551[_0x5baba7(0xc60)]))_0x16a551[_0x5baba7(0xc60)]=[];_0x16a551['_zoomHistory'][_0x5baba7(0xb31)](_0x16a551[_0x5baba7(0xf89)]?{'start':_0x16a551[_0x5baba7(0xf89)][_0x5baba7(0x4b0)],'end':_0x16a551[_0x5baba7(0xf89)]['end']}:null);if(_0x16a551[_0x5baba7(0xc60)]['length']>0x14)_0x16a551[_0x5baba7(0xc60)][_0x5baba7(0x4b7)]();};let _0x6eb33=null,_0x280452=0x0,_0x5a1551=null;const _0x1bcea9=0x8,_0x3bbf10=()=>{const _0x58b3de=_0x584718;_0x280452=0x0;if(!_0x6eb33||!_0x6eb33[_0x58b3de(0xf67)]||_0x5a1551===null)return;const _0x399d58=this[_0x58b3de(0x954)];if(!_0x399d58)return;const _0x3652aa=_0x1ecf06[_0x58b3de(0x9cc)]()[_0x58b3de(0x581)]||0x1,_0x2cdf3d=_0x5a1551-_0x6eb33['x0'];_0x5a1551=null;const _0x4284a4=_0x6eb33['e0']-_0x6eb33['s0'],_0x277317=-(_0x2cdf3d/_0x3652aa)*(_0x399d58[_0x58b3de(0xb91)]/_0x399d58[_0x58b3de(0x477)])*_0x4284a4;let _0x326779=_0x6eb33['s0']+_0x277317;const _0x1a4b80=_0x16a551[_0x58b3de(0xbe0)];if(_0x1a4b80){const _0x22bde2=_0x1a4b80[_0x58b3de(0x4b0)][_0x58b3de(0x1028)](),_0x16458f=_0x1a4b80[_0x58b3de(0x244)][_0x58b3de(0x1028)]();if(_0x4284a4>=_0x16458f-_0x22bde2)return;if(_0x326779<_0x22bde2)_0x326779=_0x22bde2;if(_0x326779+_0x4284a4>_0x16458f)_0x326779=_0x16458f-_0x4284a4;}const _0x50c882=_0x326779+_0x4284a4,_0x53c1af=_0x16a551[_0x58b3de(0xf89)];if(_0x53c1af&&_0x53c1af[_0x58b3de(0x4b0)][_0x58b3de(0x1028)]()===_0x326779&&_0x53c1af[_0x58b3de(0x244)][_0x58b3de(0x1028)]()===_0x50c882)return;_0x16a551[_0x58b3de(0xf89)]={'start':new Date(_0x326779),'end':new Date(_0x50c882)},_0x16a551[_0x58b3de(0x401)]='',_0x16a551[_0x58b3de(0x103c)]();},_0x33518d=_0x5abd3d=>{const _0x4bbb83=_0x584718;if(!_0x6eb33)return;_0x280452&&(cancelAnimationFrame(_0x280452),_0x280452=0x0);if(_0x6eb33[_0x4bbb83(0xf67)]&&_0x5a1551!==null)_0x3bbf10();const _0x4d527b=_0x6eb33['id'],_0x44dcca=_0x6eb33[_0x4bbb83(0xf67)];_0x6eb33=null,_0x5a1551=null;if(!_0x44dcca)return;_0x16a551[_0x4bbb83(0x564)]=![];if(!_0x16a551['_pinchActive'])_0x16a551[_0x4bbb83(0xa38)]=![];_0x16a551[_0x4bbb83(0xea5)]=Date[_0x4bbb83(0x69d)]();try{_0x1ecf06[_0x4bbb83(0x697)](_0x4d527b);}catch(_0x42bf8f){}if(_0x5abd3d&&_0x16a551[_0x4bbb83(0xfe9)]?.['zoom_sync']){const _0x3e76c5=_0x16a551[_0x4bbb83(0xf89)];window[_0x4bbb83(0x5c9)](new CustomEvent(_0x4bbb83(0xadb),{'detail':{'tStart':_0x3e76c5?_0x3e76c5[_0x4bbb83(0x4b0)][_0x4bbb83(0x1028)]():null,'tEnd':_0x3e76c5?_0x3e76c5[_0x4bbb83(0x244)][_0x4bbb83(0x1028)]():null,'group':_0x16a551['_config'][_0x4bbb83(0x178)]||null,'sourceId':_0x16a551[_0x4bbb83(0x6e9)]}}));}};_0x1ecf06[_0x584718(0x171)](_0x584718(0xf92),_0x25c354=>{const _0x4c24cb=_0x584718;if(_0x25c354[_0x4c24cb(0x876)]!==_0x4c24cb(0x637)||!_0x25c354[_0x4c24cb(0xfc2)])return;if(!_0x16a551[_0x4c24cb(0xf89)]||_0x16a551[_0x4c24cb(0xfe9)]?.[_0x4c24cb(0x236)]===![])return;if((_0x16a551['_config']?.[_0x4c24cb(0x815)]||'timeline')!==_0x4c24cb(0x325))return;if(_0x16a551[_0x4c24cb(0x691)]||_0x16a551['_isZooming']||_0x16a551[_0x4c24cb(0x38f)]!=null)return;const _0x4f70de=this[_0x4c24cb(0x954)];if(!_0x4f70de||_0x4f70de[_0x4c24cb(0x5ca)])return;_0x6eb33={'id':_0x25c354[_0x4c24cb(0x67d)],'x0':_0x25c354[_0x4c24cb(0x51e)],'y0':_0x25c354[_0x4c24cb(0x6a3)],'t0':Date[_0x4c24cb(0x69d)](),'s0':_0x16a551[_0x4c24cb(0xf89)][_0x4c24cb(0x4b0)][_0x4c24cb(0x1028)](),'e0':_0x16a551[_0x4c24cb(0xf89)][_0x4c24cb(0x244)]['getTime'](),'locked':![]};}),_0x1ecf06[_0x584718(0x171)](_0x584718(0x483),_0x397629=>{const _0x73b79f=_0x584718;if(!_0x6eb33||_0x397629[_0x73b79f(0x67d)]!==_0x6eb33['id'])return;if(_0x16a551[_0x73b79f(0x691)]||!_0x16a551['_viewWindow']||_0x16a551['_pinDrag']!=null){_0x33518d(![]);return;}if(!_0x6eb33[_0x73b79f(0xf67)]){const _0x44a92f=_0x397629['clientX']-_0x6eb33['x0'],_0x5dac56=_0x397629[_0x73b79f(0x6a3)]-_0x6eb33['y0'];if(Math[_0x73b79f(0x1ae)](_0x44a92f)<_0x1bcea9&&Math[_0x73b79f(0x1ae)](_0x5dac56)<_0x1bcea9)return;if(Math[_0x73b79f(0x1ae)](_0x5dac56)>=Math[_0x73b79f(0x1ae)](_0x44a92f)||_0x16a551[_0x73b79f(0xa38)]||_0x16a551['_brushArmed']){_0x6eb33=null;return;}_0x6eb33[_0x73b79f(0xf67)]=!![],_0x16a551['_panActive']=!![],_0x16a551[_0x73b79f(0xa38)]=!![],_0x16a551[_0x73b79f(0xadc)]?.();try{_0x1ecf06[_0x73b79f(0x742)](_0x397629[_0x73b79f(0x67d)]);}catch(_0x224e06){}}if(_0x397629[_0x73b79f(0x4f7)])_0x397629[_0x73b79f(0xac3)]();_0x5a1551=_0x397629['clientX'];if(!_0x280452)_0x280452=requestAnimationFrame(_0x3bbf10);}),_0x1ecf06[_0x584718(0x171)](_0x584718(0x1be),_0x1258fd=>{const _0x59878d=_0x584718;if(_0x6eb33&&_0x1258fd[_0x59878d(0x67d)]===_0x6eb33['id'])_0x33518d(!![]);}),_0x1ecf06[_0x584718(0x171)](_0x584718(0xf9f),_0x4498a3=>{const _0x4dc7b9=_0x584718;if(_0x6eb33&&_0x4498a3[_0x4dc7b9(0x67d)]===_0x6eb33['id'])_0x33518d(![]);}),_0x1ecf06[_0x584718(0x171)](_0x584718(0x594),_0x38317b=>{const _0x576d73=_0x584718;if(_0x16a551['_config']?.[_0x576d73(0x236)]===![])return;if((_0x16a551[_0x576d73(0xfe9)]?.[_0x576d73(0x815)]||_0x576d73(0x325))!==_0x576d73(0x325))return;if(_0x38317b[_0x576d73(0x9e4)][_0x576d73(0xc02)]!==0x2)return;const _0xad8291=_0x16a551[_0x576d73(0xf89)]||_0x16a551[_0x576d73(0xbe0)];if(!_0xad8291)return;if(!_0x38317b[_0x576d73(0x4f7)])return;_0x38317b[_0x576d73(0xac3)]();const [_0x2846e8,_0x4d82c3]=[_0x38317b[_0x576d73(0x9e4)][0x0],_0x38317b[_0x576d73(0x9e4)][0x1]],_0x36006e=_0x1ecf06[_0x576d73(0x9cc)](),_0x458f13=(_0x2846e8[_0x576d73(0x51e)]+_0x4d82c3[_0x576d73(0x51e)])/0x2-_0x36006e[_0x576d73(0xaaf)],_0x2769ad={'s':_0xad8291['start']['getTime'](),'e':_0xad8291[_0x576d73(0x244)]['getTime']()};_0x190fae={'startDist':Math['max'](0x14,Math[_0x576d73(0xfdf)](_0x2846e8[_0x576d73(0x51e)]-_0x4d82c3[_0x576d73(0x51e)],_0x2846e8[_0x576d73(0x6a3)]-_0x4d82c3[_0x576d73(0x6a3)])),'startWin':_0x2769ad,'anchorT':_0x1ed5f2(_0x458f13,_0x2769ad),'pushed':![]},_0x16a551[_0x576d73(0xa38)]=!![],_0x16a551[_0x576d73(0x691)]=!![];},{'passive':![]}),_0x1ecf06['addEventListener']('touchmove',_0xdeed2b=>{const _0x2c5825=_0x584718;if(!_0x190fae||_0xdeed2b['touches']['length']!==0x2)return;if(_0xdeed2b['cancelable'])_0xdeed2b[_0x2c5825(0xac3)]();_0x322d52=Math[_0x2c5825(0x220)](0x14,Math[_0x2c5825(0xfdf)](_0xdeed2b['touches'][0x0][_0x2c5825(0x51e)]-_0xdeed2b[_0x2c5825(0x9e4)][0x1]['clientX'],_0xdeed2b['touches'][0x0][_0x2c5825(0x6a3)]-_0xdeed2b['touches'][0x1]['clientY']));if(!_0x36bc8d)_0x36bc8d=requestAnimationFrame(_0xdfe986);},{'passive':![]});const _0x353462=()=>{const _0xd43853=_0x584718;if(!_0x190fae)return;_0x36bc8d&&(cancelAnimationFrame(_0x36bc8d),_0x36bc8d=0x0);if(_0x322d52!==null)_0xdfe986();_0x190fae=null,_0x322d52=null,_0x16a551[_0xd43853(0xa38)]=![],_0x16a551[_0xd43853(0x691)]=![];if(_0x16a551[_0xd43853(0xfe9)]?.[_0xd43853(0x66b)]){const _0x191ba6=_0x16a551[_0xd43853(0xf89)];window[_0xd43853(0x5c9)](new CustomEvent(_0xd43853(0xadb),{'detail':{'tStart':_0x191ba6?_0x191ba6[_0xd43853(0x4b0)]['getTime']():null,'tEnd':_0x191ba6?_0x191ba6['end'][_0xd43853(0x1028)]():null,'group':_0x16a551[_0xd43853(0xfe9)]['zoom_sync_group']||null,'sourceId':_0x16a551[_0xd43853(0x6e9)]}}));}};_0x1ecf06[_0x584718(0x171)](_0x584718(0x161),_0xfadf9b=>{const _0x485646=_0x584718;if(_0x190fae&&_0xfadf9b[_0x485646(0x9e4)][_0x485646(0xc02)]<0x2){_0x353462();return;}if(_0xfadf9b[_0x485646(0x362)][0x0]?.[_0x485646(0x6bc)]?.['closest']?.('.sgc-zoom-ctl'))return;if(_0xfadf9b[_0x485646(0x9e4)][_0x485646(0xc02)]===0x0&&_0xfadf9b[_0x485646(0x362)][_0x485646(0xc02)]===0x1){if(_0x16a551[_0x485646(0xfe9)]?.[_0x485646(0x236)]===![])return;const _0x6c7499=_0xfadf9b['changedTouches'][0x0],_0xcf02ac=Date[_0x485646(0x69d)]();if(_0x16a551[_0x485646(0x564)]||_0xcf02ac-(_0x16a551[_0x485646(0xea5)]||0x0)<0x190){_0x1c4de9=0x0;return;}const _0x31a143=_0xcf02ac-_0x1c4de9<0x12c&&Math[_0x485646(0x1ae)](_0x6c7499['clientX']-_0x1ac8c4)<0x1e&&Math['abs'](_0x6c7499[_0x485646(0x6a3)]-_0xbcd1a0)<0x1e;_0x1c4de9=_0xcf02ac,_0x1ac8c4=_0x6c7499[_0x485646(0x51e)],_0xbcd1a0=_0x6c7499[_0x485646(0x6a3)],_0x31a143&&_0x16a551['_viewWindow']&&(_0x1c4de9=0x0,_0x16a551[_0x485646(0xfd1)]=Date[_0x485646(0x69d)](),_0x16a551[_0x485646(0xf64)]?.(),_0x16a551[_0x485646(0x8d6)]());}},{'passive':!![]}),_0x1ecf06[_0x584718(0x171)](_0x584718(0x343),()=>{if(_0x190fae)_0x353462();},{'passive':!![]});}['_computeYBounds'](_0xb2b841,_0x2bf567,_0x3fd6e9,_0x5777b2){const _0x2a9502=_0x46af5e;if(!_0xb2b841[_0x2a9502(0xc02)])return null;let _0x15b7e7=Infinity,_0x5749d5=-Infinity;const _0x359ebd=new Set();for(const _0x320145 of _0xb2b841){const _0x413c0a=_0x5777b2?.[_0x2a9502(0x2cb)]?.[_0x2a9502(0xc3f)](_0x320145[_0x2a9502(0xd18)]);if(_0x413c0a){if(_0x359ebd[_0x2a9502(0x101d)](_0x413c0a))continue;_0x359ebd[_0x2a9502(0x982)](_0x413c0a);const _0x249b06=_0x5777b2[_0x2a9502(0x9b6)]['get'](_0x413c0a);if(_0x249b06){if(_0x249b06[_0x2a9502(0xba1)]<_0x15b7e7)_0x15b7e7=_0x249b06[_0x2a9502(0xba1)];if(_0x249b06[_0x2a9502(0x220)]>_0x5749d5)_0x5749d5=_0x249b06['max'];}}else{const _0x4a971e=_0x320145[_0x2a9502(0x974)]?.['graph_type']==='candlestick';for(const _0x26d9ab of _0x320145[_0x2a9502(0x93a)]){if(_0x26d9ab['v']===null)continue;let _0x2fa7d0=_0x26d9ab['v'],_0x189bad=_0x26d9ab['v'];if(_0x4a971e){if(isNum(_0x26d9ab['l'])&&_0x26d9ab['l']<_0x2fa7d0)_0x2fa7d0=_0x26d9ab['l'];if(isNum(_0x26d9ab['h'])&&_0x26d9ab['h']>_0x189bad)_0x189bad=_0x26d9ab['h'];}if(_0x2fa7d0<_0x15b7e7)_0x15b7e7=_0x2fa7d0;if(_0x189bad>_0x5749d5)_0x5749d5=_0x189bad;if(_0x320145[_0x2a9502(0x974)]?.[_0x2a9502(0xd0a)]){if(isNum(_0x26d9ab[_0x2a9502(0xa84)])&&_0x26d9ab['bMin']<_0x15b7e7)_0x15b7e7=_0x26d9ab[_0x2a9502(0xa84)];if(isNum(_0x26d9ab[_0x2a9502(0x6a0)])&&_0x26d9ab[_0x2a9502(0x6a0)]>_0x5749d5)_0x5749d5=_0x26d9ab[_0x2a9502(0x6a0)];}}}}if(_0x15b7e7===Infinity)return null;const _0x9a163a=this[_0x2a9502(0x1d2)]?.['_hass'];let _0x53bada=null,_0x5cb4a6=null,_0x30e099=null,_0x255783=null;for(const _0x112168 of _0xb2b841){const _0x57270b=resolveBoundSpec(_0x112168[_0x2a9502(0x974)][_0x2a9502(0xf24)],_0x9a163a),_0x38ab0d=resolveBoundSpec(_0x112168[_0x2a9502(0x974)][_0x2a9502(0x443)],_0x9a163a);if(_0x57270b){if(_0x57270b[_0x2a9502(0x2d5)]){if(_0x53bada===null||_0x57270b[_0x2a9502(0x2ea)]<_0x53bada)_0x53bada=_0x57270b['value'];}else{if(_0x5cb4a6===null||_0x57270b[_0x2a9502(0x2ea)]<_0x5cb4a6)_0x5cb4a6=_0x57270b['value'];}}if(_0x38ab0d){if(_0x38ab0d[_0x2a9502(0x2d5)]){if(_0x30e099===null||_0x38ab0d[_0x2a9502(0x2ea)]>_0x30e099)_0x30e099=_0x38ab0d[_0x2a9502(0x2ea)];}else{if(_0x255783===null||_0x38ab0d[_0x2a9502(0x2ea)]>_0x255783)_0x255783=_0x38ab0d[_0x2a9502(0x2ea)];}}}const _0x449c63=resolveBoundSpec(_0x3fd6e9?_0x2bf567['lower_bound_secondary']:_0x2bf567[_0x2a9502(0xf24)],_0x9a163a),_0x2b7cd3=resolveBoundSpec(_0x3fd6e9?_0x2bf567[_0x2a9502(0x4ca)]:_0x2bf567[_0x2a9502(0x443)],_0x9a163a);let _0x358d34=![],_0x354a7e=![];if(_0x449c63?.['soft']===![])_0x15b7e7=_0x449c63['value'],_0x358d34=!![];else{if(_0x5cb4a6!==null)_0x15b7e7=Math[_0x2a9502(0xba1)](_0x15b7e7,_0x5cb4a6);else{if(_0x449c63?.[_0x2a9502(0x2d5)]===!![]&&_0x15b7e7>_0x449c63[_0x2a9502(0x2ea)])_0x15b7e7=_0x449c63[_0x2a9502(0x2ea)];else _0x53bada!==null&&_0x15b7e7>_0x53bada&&(_0x15b7e7=_0x53bada);}}if(_0x2b7cd3?.[_0x2a9502(0x2d5)]===![])_0x5749d5=_0x2b7cd3[_0x2a9502(0x2ea)],_0x354a7e=!![];else{if(_0x255783!==null)_0x5749d5=Math[_0x2a9502(0x220)](_0x5749d5,_0x255783);else{if(_0x2b7cd3?.[_0x2a9502(0x2d5)]===!![]&&_0x5749d5<_0x2b7cd3[_0x2a9502(0x2ea)])_0x5749d5=_0x2b7cd3['value'];else _0x30e099!==null&&_0x5749d5<_0x30e099&&(_0x5749d5=_0x30e099);}}const _0x35763f=_0x3fd6e9?_0x2bf567[_0x2a9502(0xea8)]:_0x2bf567[_0x2a9502(0x103d)],_0x2c81da=resolveDynamicValue(_0x35763f,_0x9a163a);if(isNum(_0x2c81da)&&_0x5749d5-_0x15b7e7<_0x2c81da){if(_0x358d34&&!_0x354a7e)_0x5749d5=_0x15b7e7+_0x2c81da;else{if(_0x354a7e&&!_0x358d34)_0x15b7e7=_0x5749d5-_0x2c81da;else{const _0x47aafd=(_0x15b7e7+_0x5749d5)/0x2;_0x15b7e7=_0x47aafd-_0x2c81da/0x2,_0x5749d5=_0x47aafd+_0x2c81da/0x2;}}}if(!_0x358d34||!_0x354a7e){const _0x52ba39=_0x5749d5-_0x15b7e7,_0x21272f=_0x52ba39===0x0?Math['abs'](_0x5749d5)*0.1||0x1:_0x52ba39*0.08,_0x3cb286=_0x15b7e7;if(!_0x358d34)_0x15b7e7-=_0x21272f;if(!_0x354a7e)_0x5749d5+=_0x21272f;if(_0x3cb286>=0x0&&_0x15b7e7<0x0)_0x15b7e7=0x0;}const _0xed577c=_0x3fd6e9?_0x2a9502(0xbec):'primary',_0x3a0477=this[_0x2a9502(0x1d2)]?.[_0x2a9502(0xe25)]?.(_0xed577c);return _0x3a0477&&_0x3a0477['length']>0x0&&!_0x358d34&&!_0x354a7e&&(_0x15b7e7=0x0,_0x5749d5=Math[_0x2a9502(0x220)](0x0,_0x3a0477[_0x2a9502(0xc02)]-0x1)),{'lo':_0x15b7e7,'hi':_0x5749d5};}[_0x46af5e(0x1004)](_0xdd35ae,_0x342ecb,_0x395b4c,_0x294358,_0x2916f0,_0x450f46,_0x4b6ef5,_0x3fed2d,_0x31c3b8,_0x2f67ed){const _0x40e015=_0x46af5e,_0x246ddb=svgEl('g',{'class':_0x40e015(0xca8)}),_0x112c65=_0x4a4b32=>{const _0x38d9d4=_0x40e015;if(!_0x4a4b32||_0x4a4b32==='solid')return null;if(_0x4a4b32===_0x38d9d4(0x2b5))return _0x38d9d4(0xb70);if(_0x4a4b32===_0x38d9d4(0x998))return _0x38d9d4(0x6a1);if(_0x4a4b32===_0x38d9d4(0x65b))return _0x38d9d4(0x593);return String(_0x4a4b32);},_0x40fb4e=(_0x4ed96c,_0x36bbaf,_0x545082,_0xd23606)=>{const _0x3f2ccd=_0x40e015,_0x331437=[];if(_0x4ed96c)_0x331437[_0x3f2ccd(0xb31)]('stroke:'+_0x4ed96c);if(_0x36bbaf!=null)_0x331437[_0x3f2ccd(0xb31)]('stroke-width:'+_0x36bbaf);if(_0x545082===_0x3f2ccd(0xa63))_0x331437[_0x3f2ccd(0xb31)](_0x3f2ccd(0x933));else{if(_0x545082){const _0x1d98c2=_0x112c65(_0x545082);if(_0x1d98c2)_0x331437[_0x3f2ccd(0xb31)](_0x3f2ccd(0x406)+_0x1d98c2);}}if(_0xd23606!=null&&_0xd23606!==''&&isFinite(Number(_0xd23606))){const _0x540758=Math[_0x3f2ccd(0x220)](0x0,Math['min'](0x1,Number(_0xd23606)));_0x331437[_0x3f2ccd(0xb31)](_0x3f2ccd(0xe30)+_0x540758);}return _0x331437[_0x3f2ccd(0x888)](';');},_0x549407=_0x40fb4e(_0x450f46?.[_0x40e015(0xc57)],toNum(_0x450f46?.['y_grid_width']),_0x450f46?.[_0x40e015(0xc0f)],_0x450f46?.['y_grid_opacity']);if(Array['isArray'](_0x31c3b8)&&_0x31c3b8[_0x40e015(0xc02)]&&_0x2f67ed&&_0x2f67ed['hi']>_0x2f67ed['lo']){const _0x15eec3=_0x2f67ed['hi']-_0x2f67ed['lo'];for(const _0x3d80d2 of _0x31c3b8){const _0x1f2b3a=_0x395b4c+_0x2916f0*(0x1-(_0x3d80d2-_0x2f67ed['lo'])/_0x15eec3),_0x4d48dc={'x1':_0x342ecb,'x2':_0x342ecb+_0x294358,'y1':_0x1f2b3a,'y2':_0x1f2b3a,'class':_0x40e015(0xa86)};if(_0x549407)_0x4d48dc[_0x40e015(0x944)]=_0x549407;_0x246ddb[_0x40e015(0x319)](svgEl(_0x40e015(0xcd2),_0x4d48dc));}}else{const _0xaa7b25=isNum(_0x3fed2d)?Math[_0x40e015(0x220)](0x1,_0x3fed2d):Math[_0x40e015(0x220)](0x2,toNum(_0x450f46?.[_0x40e015(0x41c)])||0x5)-0x1;for(let _0x200477=0x0;_0x200477<=_0xaa7b25;_0x200477++){const _0x5ce043=_0x395b4c+_0x2916f0*_0x200477/_0xaa7b25,_0x1b6d2f={'x1':_0x342ecb,'x2':_0x342ecb+_0x294358,'y1':_0x5ce043,'y2':_0x5ce043,'class':'sgc-grid-line\x20sgc-y-grid-line'};if(_0x549407)_0x1b6d2f[_0x40e015(0x944)]=_0x549407;_0x246ddb[_0x40e015(0x319)](svgEl(_0x40e015(0xcd2),_0x1b6d2f));}}if(Array['isArray'](_0x4b6ef5)&&_0x4b6ef5[_0x40e015(0xc02)]){const _0x55c0d7=_0x40fb4e(_0x450f46?.['x_grid_color'],toNum(_0x450f46?.[_0x40e015(0x571)]),_0x450f46?.[_0x40e015(0x86c)],_0x450f46?.[_0x40e015(0x598)]);for(const _0x287bb7 of _0x4b6ef5){const _0x117eaf=_0x342ecb+_0x287bb7['x'],_0x577920={'x1':_0x117eaf,'x2':_0x117eaf,'y1':_0x395b4c,'y2':_0x395b4c+_0x2916f0,'class':_0x40e015(0x711)};if(_0x55c0d7)_0x577920[_0x40e015(0x944)]=_0x55c0d7;_0x246ddb[_0x40e015(0x319)](svgEl(_0x40e015(0xcd2),_0x577920));}}_0xdd35ae[_0x40e015(0x319)](_0x246ddb);}[_0x46af5e(0xa39)](_0x33985b,_0x30b8e4,_0xccc703,_0x3d034d,_0x53ee35){const _0x951ece=_0x46af5e,_0x1392f2=_0x30b8e4[_0x951ece(0x93a)];if(!_0x1392f2||_0x1392f2[_0x951ece(0xc02)]<0x2)return;const _0x115bf9=[];let _0x583db1=[];for(const _0x1e2f68 of _0x1392f2){if(_0x1e2f68&&_0x1e2f68[_0x951ece(0xa84)]!=null&&_0x1e2f68['bMax']!=null)_0x583db1[_0x951ece(0xb31)](_0x1e2f68);else{if(_0x583db1['length'])_0x115bf9[_0x951ece(0xb31)](_0x583db1);_0x583db1=[];}}if(_0x583db1['length'])_0x115bf9[_0x951ece(0xb31)](_0x583db1);const _0x456c12=_0x115bf9['filter'](_0x3b85c1=>_0x3b85c1[_0x951ece(0xc02)]>=0x2);if(!_0x456c12[_0x951ece(0xc02)])return;const _0xcfd6ac=this['card'][_0x951ece(0x349)](_0x30b8e4['entity']?.[_0x951ece(0xd95)],_0x30b8e4[_0x951ece(0x974)]?.[_0x951ece(0x974)])||_0x30b8e4[_0x951ece(0x974)]?.[_0x951ece(0xd95)]||_0x951ece(0x960),_0x534603=_0x30b8e4['entity']||{},_0x35348b=(_0x534603['graph_type']||_0x534603[_0x951ece(0xefa)])===_0x951ece(0xfb0),_0x2bce0d=!!_0x534603[_0x951ece(0xe46)]&&!_0x35348b;for(const _0x4a5af9 of _0x456c12){if(_0x2bce0d){const _0x506968=_0x390bce=>_0x3d034d(_0x390bce),_0x259d69=buildSmoothPath(_0x4a5af9,_0x506968,_0x100c5a=>_0x53ee35(_0x100c5a[_0x951ece(0x6a0)],_0xccc703)),_0x37d695=_0x4a5af9[_0x951ece(0x165)]()[_0x951ece(0x7ea)](),_0x307e9e=buildSmoothPath(_0x37d695,_0x506968,_0x346fde=>_0x53ee35(_0x346fde[_0x951ece(0xa84)],_0xccc703)),_0x580c88=_0x307e9e['replace'](/^M /,'L\x20'),_0x254ec0=_0x259d69+'\x20'+_0x580c88+'\x20Z';_0x33985b['appendChild'](svgEl('path',{'d':_0x254ec0,'fill':_0xcfd6ac,'fill-opacity':'0.16','stroke':_0x951ece(0x412),'class':_0x951ece(0x4cf)}));continue;}const _0x4fb59f=[],_0x3dc4b0=[];for(const _0x175bcd of _0x4a5af9){const _0x5834cf=_0x3d034d(_0x175bcd['t']);_0x4fb59f[_0x951ece(0xb31)](_0x5834cf+','+_0x53ee35(_0x175bcd[_0x951ece(0x6a0)],_0xccc703)),_0x3dc4b0[_0x951ece(0xb31)](_0x5834cf+','+_0x53ee35(_0x175bcd[_0x951ece(0xa84)],_0xccc703));}_0x33985b[_0x951ece(0x319)](svgEl(_0x951ece(0x723),{'points':[..._0x4fb59f,..._0x3dc4b0[_0x951ece(0x7ea)]()][_0x951ece(0x888)]('\x20'),'fill':_0xcfd6ac,'fill-opacity':'0.16','stroke':'none','class':_0x951ece(0x4cf)}));}}[_0x46af5e(0xc7b)](){const _0x4a26d9=_0x46af5e;try{if(typeof getComputedStyle!==_0x4a26d9(0x8c6)||!this[_0x4a26d9(0x1d2)])return null;const _0x3f8afe=getComputedStyle(this[_0x4a26d9(0x1d2)]);for(const _0x11fd0e of[_0x4a26d9(0x5a7),_0x4a26d9(0xa1b),_0x4a26d9(0xe50)]){const _0x297fa7=_0x3f8afe[_0x4a26d9(0x767)]?_0x3f8afe[_0x4a26d9(0x767)](_0x11fd0e):null,_0x131bb3=parseCssColorToRgb(_0x297fa7&&_0x297fa7[_0x4a26d9(0xa11)]());if(_0x131bb3)return _0x131bb3;}return parseCssColorToRgb(_0x3f8afe[_0x4a26d9(0xf04)]);}catch(_0x31c9fc){return null;}}[_0x46af5e(0x16c)](_0x5969e,_0x1a357f,_0x1a50ab,_0x39b967,_0x476faa){const _0x139ba9=_0x46af5e,{padL:_0x5c02b2,padT:_0x20076c,plotW:_0x5709d5,plotH:_0x4b3f15,yBounds:_0x16005b,y2Bounds:_0x23ea28,boundsFor:_0x2f5c51}=_0x1a50ab,_0x57714e=svgEl('g',{'class':_0x139ba9(0x1b2)});let _0x2015f7=![];for(const _0x4062a7 of _0x1a357f){if(!_0x4062a7[_0x139ba9(0x974)]?.[_0x139ba9(0xa72)])continue;const _0x213d85=_0x2f5c51?_0x2f5c51(_0x4062a7):_0x4062a7[_0x139ba9(0x974)]['y_axis']===_0x139ba9(0xbec)?_0x23ea28:_0x16005b;if(!_0x213d85)continue;const _0x2505eb=_0x4062a7['stats']?.['avg'];if(_0x2505eb==null||!isNum(_0x2505eb))continue;const _0x164a1c=_0x20076c+_0x4b3f15*(0x1-(_0x2505eb-_0x213d85['lo'])/Math[_0x139ba9(0x220)](1e-9,_0x213d85['hi']-_0x213d85['lo']));if(_0x164a1c<_0x20076c-0x1||_0x164a1c>_0x20076c+_0x4b3f15+0x1)continue;const _0x341d4d=this[_0x139ba9(0x1d2)][_0x139ba9(0x349)](_0x4062a7['entity']?.['color'],_0x4062a7[_0x139ba9(0x974)]?.[_0x139ba9(0x974)])||_0x4062a7[_0x139ba9(0x974)]?.['color']||'var(--primary-color,\x20#4A90D9)';let _0x5a0543=_0x341d4d;const _0x5b7a75=parseCssColorToRgb(_0x39b967?.[_0x139ba9(0xa4c)])||this['_resolvedCardBgRgb'](),_0x3ed058=parseCssColorToRgb(_0x5a0543);if(_0x5b7a75&&_0x3ed058&&contrastRatio(_0x3ed058,_0x5b7a75)<1.45){const _0x40f259=relLuminance(_0x5b7a75)>=0.5?[0x0,0x0,0x0]:[0xff,0xff,0xff];for(let _0x1f603c=0.15;_0x1f603c<=0.61;_0x1f603c+=0.15){const _0x1435f9=mixRgb(_0x3ed058,_0x40f259,_0x1f603c);_0x5a0543=rgbToCss(_0x1435f9);if(contrastRatio(_0x1435f9,_0x5b7a75)>=2.2)break;}}const _0x3529d6=svgEl(_0x139ba9(0xcd2),{'x1':_0x5c02b2,'x2':_0x5c02b2+_0x5709d5,'y1':_0x164a1c,'y2':_0x164a1c,'stroke':_0x5a0543,'stroke-width':'1','stroke-dasharray':_0x139ba9(0x42e),'opacity':_0x139ba9(0xdbd),'class':_0x139ba9(0x5e6)});_0x57714e['appendChild'](_0x3529d6);const _0x15b342=formatNumber(_0x2505eb,_0x4062a7[_0x139ba9(0x974)],_0x476faa),_0x1a9d00=svgEl('text',{'x':_0x5c02b2+_0x5709d5-0x4,'y':_0x164a1c-0x4,'text-anchor':_0x139ba9(0x244),'font-size':'10','font-weight':'600','fill':_0x5a0543,'opacity':'0.85','style':_0x139ba9(0xa5b)});_0x1a9d00['textContent']=_0x15b342,_0x57714e[_0x139ba9(0x319)](_0x1a9d00),_0x2015f7=!![];}if(_0x2015f7)_0x5969e[_0x139ba9(0x319)](_0x57714e);}[_0x46af5e(0xdc0)](_0x32f4ca,_0x5bd59a,_0x33962d,_0x2d1e59,_0x383df8){const _0x210274=_0x46af5e,{padL:_0x29f70c,padT:_0x2e4672,plotW:_0xa2d250,plotH:_0x1e30a4,mapX:_0x1001e6,mapY:_0x549be4,yBounds:_0x5e5364,y2Bounds:_0x5db1dd,boundsFor:_0x737447}=_0x33962d,_0x56c4c4=_0x2d1e59?.['card_background_color']||_0x210274(0xc74);let _0x14dcd4=null;for(const _0x2e016b of _0x5bd59a){const _0x54365f=_0x2e016b['maSeries'];if(!Array['isArray'](_0x54365f)||!_0x54365f[_0x210274(0xc02)])continue;if(_0x2e016b[_0x210274(0x974)]?.[_0x210274(0xa43)]===![])continue;const _0x5560ab=_0x737447?_0x737447(_0x2e016b):_0x2e016b[_0x210274(0x974)]?.[_0x210274(0x8cc)]===_0x210274(0xbec)?_0x5db1dd:_0x5e5364;if(!_0x5560ab)continue;const _0xd6e8d3=_0x29f70c-0x2,_0x34266d=_0x29f70c+_0xa2d250+0x2;for(const _0x1750a7 of _0x54365f){const _0x4fcf53=_0x1750a7['points']||[];if(!_0x4fcf53[_0x210274(0xc02)])continue;let _0x31ce60='',_0x5e6873=![],_0x4abaa1=null,_0x3ad79b=null;for(let _0x2f310c=0x0;_0x2f310c<_0x4fcf53[_0x210274(0xc02)];_0x2f310c++){const _0x1b1eec=_0x4fcf53[_0x2f310c];if(!_0x1b1eec||_0x1b1eec['v']==null||!isNum(_0x1b1eec['v'])){_0x5e6873=![];continue;}const _0x5db8f6=_0x1001e6(_0x1b1eec['t']);if(!isNum(_0x5db8f6)||_0x5db8f6<_0xd6e8d3||_0x5db8f6>_0x34266d){_0x5e6873=![];continue;}const _0x32135f=_0x549be4(_0x1b1eec['v'],_0x5560ab);if(!isNum(_0x32135f)){_0x5e6873=![];continue;}_0x31ce60+=(_0x5e6873?'L':'M')+_0x5db8f6['toFixed'](0x1)+','+_0x32135f['toFixed'](0x1)+'\x20',_0x5e6873=!![],_0x4abaa1=_0x5db8f6,_0x3ad79b=_0x32135f;}if(!_0x31ce60)continue;if(!_0x14dcd4)_0x14dcd4=svgEl('g',{'class':_0x210274(0x8d3)});const _0x1b6e88=this['card']?.[_0x210274(0x349)]?.(_0x1750a7[_0x210274(0xd95)])||_0x1750a7['color']||'var(--primary-color,\x20#4A90D9)',_0xec2133=isNum(_0x1750a7['width'])&&_0x1750a7[_0x210274(0x581)]>0x0?_0x1750a7[_0x210274(0x581)]:1.5;_0x14dcd4[_0x210274(0x319)](svgEl(_0x210274(0x89b),{'d':_0x31ce60[_0x210274(0xa11)](),'fill':'none','stroke':_0x1b6e88,'stroke-width':String(_0xec2133),'stroke-linejoin':_0x210274(0x686),'stroke-linecap':_0x210274(0x686),'opacity':'0.95','class':_0x210274(0x541)}));if(_0x1750a7[_0x210274(0x6ac)]&&_0x4abaa1!=null&&_0x3ad79b!=null&&isNum(_0x1750a7[_0x210274(0xe4c)])){const _0x33209b=0xa;let _0x3299c0=Math['max'](_0x29f70c+0x2,Math[_0x210274(0xba1)](_0x29f70c+_0xa2d250-0x2,_0x4abaa1)),_0x228450=Math['max'](_0x2e4672+_0x33209b,Math[_0x210274(0xba1)](_0x2e4672+_0x1e30a4-0x2,_0x3ad79b-0x5));const _0x2f16fd=svgEl(_0x210274(0x8a1),{'x':_0x3299c0[_0x210274(0x198)](0x1),'y':_0x228450[_0x210274(0x198)](0x1),'text-anchor':_0x210274(0x244),'font-size':String(_0x33209b),'font-weight':_0x210274(0x31b),'fill':_0x1b6e88,'stroke':_0x56c4c4,'stroke-width':'3','paint-order':_0x210274(0x3c1),'stroke-linejoin':_0x210274(0x686),'opacity':'0.95','class':_0x210274(0x250)});_0x2f16fd[_0x210274(0x3d2)]='MA'+_0x1750a7['period'],_0x14dcd4[_0x210274(0x319)](_0x2f16fd);}}}if(_0x14dcd4)_0x32f4ca[_0x210274(0x319)](_0x14dcd4);}[_0x46af5e(0x9a9)](_0x33860b,_0x4274d9,_0xa78136,_0x2a0017,_0x2220be){const _0x51aea9=_0x46af5e,{padL:_0x5ece5f,padT:_0x2222f6,plotW:_0x1fbc52,plotH:_0x439cd2,mapX:_0x729e57,mapY:_0x42f95b,yBounds:_0xdb0df3,y2Bounds:_0x34690f,boundsFor:_0x186290}=_0xa78136;let _0x300625=null;const _0x16be0a=_0x2a0017[_0x51aea9(0xa4c)]||'var(--ha-card-background,\x20var(--card-background-color,\x20var(--primary-background-color,\x20#1c1c1c)))';for(const _0x36b9a0 of _0x4274d9){const _0x2528fd=_0x36b9a0[_0x51aea9(0x974)]||{};if(_0x2528fd[_0x51aea9(0xfe4)]!==!![])continue;const _0x41d567=_0x36b9a0[_0x51aea9(0x93a)]||[];if(!_0x41d567[_0x51aea9(0xc02)])continue;const _0x5b7413=_0x186290?_0x186290(_0x36b9a0):_0x2528fd[_0x51aea9(0x8cc)]===_0x51aea9(0xbec)?_0x34690f:_0xdb0df3;if(!_0x5b7413)continue;!_0x300625&&(_0x300625=svgEl('g',{'class':_0x51aea9(0xeb1)}));const _0x2b40e7=(_0x2528fd[_0x51aea9(0xc3c)]||'line')===_0x51aea9(0x8fb),_0x265326=this[_0x51aea9(0x1d2)]?.[_0x51aea9(0x349)]?.(_0x2528fd['color'],_0x2528fd[_0x51aea9(0x974)])||_0x2528fd[_0x51aea9(0xd95)]||'var(--primary-text-color,\x20#fff)',_0x9475fb=_0x5ece5f-0x2,_0x103aec=_0x5ece5f+_0x1fbc52+0x2,_0x11f9ee=_0x2222f6+0x2,_0x31ced2=isNum(toNum(_0x2528fd[_0x51aea9(0xa13)]))?toNum(_0x2528fd['data_labels_font_size']):0xa,_0x2be434=0.6,_0x4e84e6=_0x2b40e7&&isNum(_0x36b9a0[_0x51aea9(0x738)])?_0x36b9a0[_0x51aea9(0x738)]*0x2:null;for(let _0x43ab05=0x0;_0x43ab05<_0x41d567[_0x51aea9(0xc02)];_0x43ab05++){const _0x2456b0=_0x41d567[_0x43ab05];if(_0x2456b0==null||_0x2456b0['v']==null||!isNum(_0x2456b0['v'])||_0x2456b0[_0x51aea9(0xa46)]||_0x2456b0['_seam'])continue;const _0x1bb660=_0x2b40e7?_0x36b9a0['_barCenters']?.[_0x51aea9(0xc3f)](_0x2456b0['t']):null,_0x2bf8b4=_0x1bb660??_0x729e57(_0x2456b0['t']);if(!isNum(_0x2bf8b4)||_0x2bf8b4<_0x9475fb||_0x2bf8b4>_0x103aec)continue;const _0xa4c20=_0x42f95b(_0x2456b0['v'],_0x5b7413);if(!isNum(_0xa4c20))continue;const _0x177eb2=formatNumber(_0x2456b0['v'],_0x2528fd,_0x2220be);let _0x2cb869=_0x31ced2;if(_0x4e84e6&&_0x4e84e6>0x0&&_0x177eb2){const _0x34efd0=_0x31ced2*_0x2be434*_0x177eb2['length'];_0x34efd0>_0x4e84e6-0x2&&(_0x2cb869=Math['max'](0x7,Math[_0x51aea9(0xedc)]((_0x4e84e6-0x2)/(_0x2be434*_0x177eb2['length']))));}const _0x38710f=Math[_0x51aea9(0x220)](_0x11f9ee+_0x2cb869,_0xa4c20-0x4),_0x29ddad=svgEl(_0x51aea9(0x8a1),{'x':String(_0x2bf8b4),'y':String(_0x38710f),'text-anchor':_0x51aea9(0x6d4),'dominant-baseline':_0x51aea9(0x5f4),'class':'sgc-data-label'}),_0x553b71=[_0x51aea9(0x67f)+_0x265326,_0x51aea9(0x574),_0x51aea9(0x2f3)+_0x16be0a,_0x51aea9(0xd60),'stroke-linejoin:round','pointer-events:none','font-size:'+_0x2cb869+'px'];_0x29ddad[_0x51aea9(0x751)](_0x51aea9(0x944),_0x553b71['join'](';')),_0x29ddad[_0x51aea9(0x3d2)]=_0x177eb2,_0x300625[_0x51aea9(0x319)](_0x29ddad);}}if(_0x300625)_0x33860b['appendChild'](_0x300625);}[_0x46af5e(0x4fd)](_0x472841,_0x5e5b8d,_0x7fba98,_0x4844b8,_0x15e902){const _0x4aac05=_0x46af5e,_0x1b1a67=this[_0x4aac05(0x1d2)],_0x1cb326=!!_0x1b1a67?.['_showExtremaOnClick'],{padL:_0x478021,padT:_0x1eb157,plotW:_0x4dce45,plotH:_0x42c48b,mapX:_0x1bc8d1,mapY:_0x241c93,yBounds:_0x30b0ff,y2Bounds:_0x104373,boundsFor:_0x5735e2}=_0x7fba98,_0x48b388=svgEl('g',{'class':_0x4aac05(0x7eb)});let _0x41a235=![];for(const _0x39be93 of _0x5e5b8d){const _0x514cdf=_0x39be93[_0x4aac05(0x974)][_0x4aac05(0x199)]||'never',_0xe34ce5=_0x514cdf==='always'||_0x514cdf===_0x4aac05(0xe5e)&&_0x1cb326;if(!_0xe34ce5)continue;if(!_0x39be93[_0x4aac05(0x93a)]||!_0x39be93[_0x4aac05(0x93a)][_0x4aac05(0xc02)])continue;const _0x2ca3d7=_0x5735e2?_0x5735e2(_0x39be93):_0x39be93[_0x4aac05(0x974)]['y_axis']===_0x4aac05(0xbec)?_0x104373:_0x30b0ff;if(!_0x2ca3d7)continue;let _0x496e80=-0x1,_0x5ada90=-0x1;for(let _0x573285=0x0;_0x573285<_0x39be93[_0x4aac05(0x93a)][_0x4aac05(0xc02)];_0x573285++){const _0x4a2960=_0x39be93[_0x4aac05(0x93a)][_0x573285];if(_0x4a2960['v']==null||!isNum(_0x4a2960['v'])||_0x4a2960['_tail']||_0x4a2960[_0x4aac05(0x580)])continue;if(_0x496e80<0x0||_0x4a2960['v']<_0x39be93[_0x4aac05(0x93a)][_0x496e80]['v'])_0x496e80=_0x573285;if(_0x5ada90<0x0||_0x4a2960['v']>_0x39be93[_0x4aac05(0x93a)][_0x5ada90]['v'])_0x5ada90=_0x573285;}if(_0x496e80<0x0||_0x5ada90<0x0)continue;const _0x9a23e4=_0x39be93[_0x4aac05(0x93a)][_0x496e80],_0x201f1c=_0x39be93['points'][_0x5ada90],_0x1ec35f=(_0x39be93[_0x4aac05(0x974)][_0x4aac05(0xc3c)]||'line')===_0x4aac05(0x8fb),_0x6a41fd=_0x1ec35f?_0x39be93['_barCenters']?.[_0x4aac05(0xc3f)](_0x201f1c['t']):null,_0x53e81e=_0x1ec35f?_0x39be93[_0x4aac05(0xa8f)]?.[_0x4aac05(0xc3f)](_0x9a23e4['t']):null,_0x3b6a05=_0x53e81e??_0x1bc8d1(_0x9a23e4['t']),_0x102702=_0x241c93(_0x9a23e4['v'],_0x2ca3d7),_0x43eefc=_0x6a41fd??_0x1bc8d1(_0x201f1c['t']),_0x1332ae=_0x241c93(_0x201f1c['v'],_0x2ca3d7),_0x21b666=_0x2f5068=>formatNumber(_0x2f5068,_0x39be93[_0x4aac05(0x974)],_0x15e902),_0x414cee=_0x1c7822=>{const _0x20b5dc=_0x4aac05,_0xa6a6da=_0x39be93[_0x20b5dc(0xb86)]||resolveBucketPrecision(_0x39be93[_0x20b5dc(0x93a)]);return formatDateTime(new Date(_0x1c7822),_0x4844b8,_0x15e902,{'precision':_0xa6a6da});},_0x3f63df=_0x39be93[_0x4aac05(0x974)][_0x4aac05(0x4a8)]!==![],_0x526a21=((()=>{const _0x569575=_0x4aac05,_0x1cf3f6=toNum(_0x39be93[_0x569575(0x974)][_0x569575(0xf6d)]);return isNum(_0x1cf3f6)&&_0x1cf3f6>0x0?_0x1cf3f6:0xd;})()),_0x309703=Math[_0x4aac05(0x220)](0x8,Math['round'](_0x526a21*0.77)),_0x4f45ac=_0x39be93[_0x4aac05(0x974)][_0x4aac05(0x1da)]||_0x4aac05(0x717),_0x12e1cc=_0x39be93[_0x4aac05(0x974)][_0x4aac05(0x1da)]||_0x4aac05(0xd56),_0x2d7c25=_0x39be93['entity'][_0x4aac05(0x469)]||null,_0x1aef3a=((()=>{const _0x235950=_0x4aac05,_0xdabf2a=toNum(_0x39be93[_0x235950(0x974)][_0x235950(0xd65)]);return isNum(_0xdabf2a)?Math['max'](0x0,Math[_0x235950(0xba1)](0x1,_0xdabf2a)):null;})()),_0x2d7637=_0x2d7c25!==null||_0x1aef3a!==null,_0x592a81=_0x4aac05(0xa5b),_0x66b30=_0x2d7c25||'var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c))',_0x15d8e0=_0x1aef3a!==null?_0x1aef3a:0x1,_0xc78e93=(_0x15e1e6,_0x2e83e4,_0x1d739d,_0x394ba1,_0xe4d57c)=>{const _0x528860=_0x4aac05,_0x583c8e=svgEl('circle',{'cx':_0x15e1e6,'cy':_0x2e83e4,'r':'4','fill':'var(--primary-text-color)','opacity':'0.6'});_0x48b388[_0x528860(0x319)](_0x583c8e);const _0x5e3311=_0x21b666(_0x1d739d),_0x255758=_0x3f63df?_0x414cee(_0x394ba1):null,_0x752e72=_0x2e83e4+_0xe4d57c,_0x2211de=_0x752e72+Math[_0x528860(0x686)](_0x526a21*0.92),_0x54a3cc=Math[_0x528860(0x220)](_0x5e3311[_0x528860(0xc02)],_0x255758?_0x255758[_0x528860(0xc02)]:0x0),_0x315b11=_0x54a3cc*_0x526a21*0.55*0.5;let _0x5acdac=_0x528860(0x6d4);if(_0x15e1e6-_0x315b11<_0x478021+0x2)_0x5acdac='start';else{if(_0x15e1e6+_0x315b11>_0x478021+_0x4dce45-0x2)_0x5acdac='end';}if(_0x2d7637){const _0x3c7b39=0x4,_0x1a81f0=0x2,_0x293531=_0x526a21*0.6,_0x59f67c=_0x309703*0.6,_0x2fafa0=_0x5e3311[_0x528860(0xc02)]*_0x293531,_0x2dbc58=_0x255758?_0x255758['length']*_0x59f67c:0x0,_0x49dd97=Math['max'](_0x2fafa0,_0x2dbc58)+_0x3c7b39*0x2,_0x41c4ad=_0x752e72-_0x526a21*0.85-_0x1a81f0,_0x1a497a=(_0x255758?_0x2211de+_0x309703*0.25:_0x752e72+_0x526a21*0.3)+_0x1a81f0,_0x4b66cf=_0x1a497a-_0x41c4ad;let _0x4ea39c;if(_0x5acdac===_0x528860(0x4b0))_0x4ea39c=_0x15e1e6-_0x3c7b39;else{if(_0x5acdac==='end')_0x4ea39c=_0x15e1e6-_0x49dd97+_0x3c7b39;else _0x4ea39c=_0x15e1e6-_0x49dd97/0x2;}const _0x482a80=svgEl(_0x528860(0x53f),{'x':_0x4ea39c,'y':_0x41c4ad,'width':_0x49dd97,'height':_0x4b66cf,'rx':0x3,'ry':0x3,'fill':_0x66b30,'fill-opacity':String(_0x15d8e0)});_0x48b388['appendChild'](_0x482a80);}const _0x298339=svgEl(_0x528860(0x8a1),{'x':_0x15e1e6,'y':_0x752e72,'text-anchor':_0x5acdac,'font-size':String(_0x526a21),'font-weight':'600','fill':_0x4f45ac,'style':_0x2d7637?'':_0x592a81});_0x298339[_0x528860(0x3d2)]=_0x5e3311,_0x48b388[_0x528860(0x319)](_0x298339);if(_0x255758){const _0x8f76ea=svgEl('text',{'x':_0x15e1e6,'y':_0x2211de,'text-anchor':_0x5acdac,'font-size':String(_0x309703),'fill':_0x12e1cc,'style':_0x2d7637?'':_0x592a81});_0x8f76ea[_0x528860(0x3d2)]=_0x255758,_0x48b388[_0x528860(0x319)](_0x8f76ea);}},_0x5a0c96=_0x39be93[_0x4aac05(0x974)]['show_extrema_min']!==![],_0x361014=_0x39be93[_0x4aac05(0x974)][_0x4aac05(0xe6f)]!==![];if(!_0x5a0c96&&!_0x361014)continue;const _0x1ae51a=Math[_0x4aac05(0x1ae)](_0x43eefc-_0x3b6a05)<0x2&&Math['abs'](_0x1332ae-_0x102702)<0x2;if(_0x361014)_0xc78e93(_0x43eefc,_0x1332ae,_0x201f1c['v'],_0x201f1c['t'],-0xa);if(_0x5a0c96&&!_0x1ae51a)_0xc78e93(_0x3b6a05,_0x102702,_0x9a23e4['v'],_0x9a23e4['t'],0x16);_0x41a235=!![];}if(_0x41a235)_0x472841[_0x4aac05(0x319)](_0x48b388);}[_0x46af5e(0xe4a)](_0x3deb49,_0x25bfa7,_0x149b5c,_0x4b3bb3,_0x390060,_0x25989e,_0x1bbfad,_0x196a8f,_0x386987,_0x37a738,_0x119222){const _0x43ff7a=_0x46af5e,_0x3ab98c=svgEl('g',{'class':_0x43ff7a(0x58b)}),_0x3671e0=_0x25989e?_0x43ff7a(0xbec):'primary',_0x3fe0a7=this['card']?.['_getAxisStateMap']?.(_0x3671e0),_0xeea26e=toNum(_0x1bbfad['y_axis_ticks']),_0x285f82=isNum(_0xeea26e)?_0xeea26e:_0x3fe0a7?Math['max'](0x1,_0x3fe0a7[_0x43ff7a(0xc02)]-0x1):0x4,_0x25572b=isNum(_0x386987)?_0x386987:0x1;let _0x219ef2=_0x285f82;if(isNum(_0x196a8f)&&!_0x25989e)_0x219ef2=_0x196a8f;else{const _0x55d2bc=_0x390060['hi']-_0x390060['lo'];if(_0x55d2bc>0x0){const _0x320e35=Math[_0x43ff7a(0x91f)](0xa,-_0x25572b),_0x9bcd7a=Math[_0x43ff7a(0x220)](0x1,Math[_0x43ff7a(0xedc)](_0x55d2bc/_0x320e35+1e-9));_0x219ef2=Math[_0x43ff7a(0xba1)](_0x285f82,_0x9bcd7a);}}const _0x3475a0=!!_0x1bbfad['show_y_ticks'],_0x36caa9=0x4,_0x3b7d75=_0x1bbfad[_0x43ff7a(0x5bd)]||'var(--secondary-text-color,\x20#888)',_0x4756ed=_0x1bbfad['y_axis_number_format']||_0x43ff7a(0x8e1),_0x13f9ee=_0x4756ed===_0x43ff7a(0xd6f)?_0x43ff7a(0xbd0):_0x4756ed===_0x43ff7a(0xbb0)?_0x43ff7a(0xe85):resolveCardLanguage(this[_0x43ff7a(0x1d2)]?.[_0x43ff7a(0x1dc)],_0x1bbfad),_0x466456=axisLabelFormatter(_0x1bbfad,_0x3671e0),_0x393d0c=(_0x571bd8,_0x117e6e)=>{const _0x355d74=_0x43ff7a;if(_0x466456){const _0x4adf7b=_0x466456(_0x571bd8);if(typeof _0x4adf7b===_0x355d74(0xade))return _0x4adf7b;}const _0x3597f9=getCachedNumberFormatter(_0x13f9ee,_0x117e6e);return _0x3597f9?_0x3597f9[_0x355d74(0xf20)](_0x571bd8):_0x571bd8[_0x355d74(0x198)](_0x117e6e);},_0x52761c=toNum(_0x1bbfad[_0x43ff7a(0xd8c)]),_0x30f44d=isNum(_0x52761c)?_0x52761c:0.65,_0x446940=!!_0x1bbfad['logarithmic'];let _0x254a22=0x0,_0x49c6e0=0x0;if(_0x446940){const _0x29a58d=Math[_0x43ff7a(0x220)](_0x390060['lo'],1e-10),_0x512a33=Math[_0x43ff7a(0x220)](_0x390060['hi'],_0x29a58d*0xa);_0x254a22=Math['log10'](_0x29a58d),_0x49c6e0=Math[_0x43ff7a(0x81d)](_0x512a33);}const _0x211fb9=Array[_0x43ff7a(0x902)](_0x37a738)&&_0x37a738['length']>=0x2&&!_0x446940&&!_0x3fe0a7&&_0x390060['hi']>_0x390060['lo'],_0x3ccc8c=[];if(_0x1bbfad[_0x43ff7a(0x1aa)]){const _0x426c5a=String(_0x1bbfad['y_axis_font_size']);_0x3ccc8c['push'](_0x43ff7a(0xb58)+(/[a-z%]$/i[_0x43ff7a(0x920)](_0x426c5a)?_0x426c5a:_0x426c5a+'px'));}if(_0x1bbfad[_0x43ff7a(0x5bd)])_0x3ccc8c[_0x43ff7a(0xb31)](_0x43ff7a(0x67f)+_0x1bbfad[_0x43ff7a(0x5bd)]);if(isNum(_0x52761c))_0x3ccc8c[_0x43ff7a(0xb31)](_0x43ff7a(0x102d)+_0x52761c);const _0x3a6b93=_0x3ccc8c['join'](';'),_0x3fc2eb=(_0x399893,_0x13756c)=>{const _0x2a720b=_0x43ff7a;if(_0x3475a0){const _0x4daf68=svgEl(_0x2a720b(0xcd2),{'x1':_0x25989e?_0x25bfa7:_0x25bfa7-_0x36caa9,'x2':_0x25989e?_0x25bfa7+_0x36caa9:_0x25bfa7,'y1':_0x399893,'y2':_0x399893,'stroke':_0x3b7d75,'stroke-width':'1','opacity':String(_0x30f44d),'class':_0x2a720b(0x6de)});_0x3ab98c[_0x2a720b(0x319)](_0x4daf68);}const _0x33be66=svgEl(_0x2a720b(0x8a1),{'x':_0x25989e?_0x25bfa7+_0x36caa9+0x4:_0x25bfa7-_0x36caa9-0x4,'y':_0x399893+0x3,'text-anchor':_0x25989e?'start':_0x2a720b(0x244),'class':_0x2a720b(0x981)});if(_0x3a6b93)_0x33be66[_0x2a720b(0x751)]('style',_0x3a6b93);_0x33be66[_0x2a720b(0x3d2)]=_0x13756c,_0x3ab98c['appendChild'](_0x33be66);},_0x6b40ca=new Set(),_0x529e3d=(_0x292b42,_0x5424ef)=>{const _0x3ae1a3=_0x43ff7a;if(_0x6b40ca[_0x3ae1a3(0x101d)](_0x5424ef))return;_0x6b40ca[_0x3ae1a3(0x982)](_0x5424ef),_0x3fc2eb(_0x292b42,_0x5424ef);},_0x5e413f=_0x25989e&&Array[_0x43ff7a(0x902)](_0x119222)&&_0x119222[_0x43ff7a(0xc02)]>=0x2&&!_0x446940&&!_0x3fe0a7&&_0x390060['hi']>_0x390060['lo'];if(_0x5e413f){const _0x4f38f5=_0x390060['hi']-_0x390060['lo'];for(const _0x1d2ab6 of _0x119222){if(_0x1d2ab6<-0.001||_0x1d2ab6>1.001)continue;const _0x238d66=_0x149b5c+_0x4b3bb3*(0x1-_0x1d2ab6),_0x205396=_0x390060['lo']+_0x1d2ab6*_0x4f38f5;_0x529e3d(_0x238d66,_0x393d0c(_0x205396,_0x25572b));}}else{if(_0x211fb9){const _0x472a1e=_0x390060['hi']-_0x390060['lo'];for(const _0x36ba05 of _0x37a738){const _0x3d20a2=_0x149b5c+_0x4b3bb3*(0x1-(_0x36ba05-_0x390060['lo'])/_0x472a1e);_0x529e3d(_0x3d20a2,_0x393d0c(_0x36ba05,_0x25572b));}}else for(let _0x40eabd=0x0;_0x40eabd<=_0x219ef2;_0x40eabd++){const _0x3cb424=_0x149b5c+_0x4b3bb3*(_0x219ef2-_0x40eabd)/_0x219ef2,_0xae693e=_0x446940?Math['pow'](0xa,_0x254a22+(_0x49c6e0-_0x254a22)*_0x40eabd/_0x219ef2):_0x390060['lo']+(_0x390060['hi']-_0x390060['lo'])*_0x40eabd/_0x219ef2;let _0x2178c1;if(_0x3fe0a7){const _0x877382=this['card'][_0x43ff7a(0xa1f)](_0xae693e,_0x3fe0a7);_0x2178c1=_0x877382!==null?_0x877382:_0x393d0c(_0xae693e,_0x25572b);}else _0x2178c1=_0x393d0c(_0xae693e,_0x25572b);_0x529e3d(_0x3cb424,_0x2178c1);}}if(!_0x446940&&!_0x3fe0a7&&_0x390060['lo']<0x0&&_0x390060['hi']>0x0){const _0x1ea90d=_0x390060['hi']-_0x390060['lo'],_0x39c4f1=_0x1ea90d/_0x219ef2,_0x4231f0=(0x0-_0x390060['lo'])/_0x1ea90d,_0x5d3bf7=_0x149b5c+_0x4b3bb3-_0x4231f0*_0x4b3bb3,_0x3ccac2=(toNum(_0x1bbfad[_0x43ff7a(0x1aa)])||0xa)+0x2;let _0x45c7de=![];for(let _0x400d15=0x0;_0x400d15<=_0x219ef2;_0x400d15++){const _0x2c03ca=_0x390060['lo']+_0x39c4f1*_0x400d15;if(parseFloat(_0x2c03ca[_0x43ff7a(0x198)](_0x25572b))===0x0){_0x45c7de=!![];break;}}if(!_0x45c7de){const _0xf67322=Array[_0x43ff7a(0xf9e)](_0x3ab98c[_0x43ff7a(0x285)]);for(const _0x4f8701 of _0xf67322){if(_0x4f8701[_0x43ff7a(0x9eb)]==='text'&&_0x4f8701[_0x43ff7a(0x9a1)]['contains']('sgc-y-label')){const _0x3de04b=parseFloat(_0x4f8701[_0x43ff7a(0xffb)]('y'))-0x3;if(Math[_0x43ff7a(0x1ae)](_0x3de04b-_0x5d3bf7)<_0x3ccac2){_0x3ab98c['removeChild'](_0x4f8701);for(const _0x30a880 of Array[_0x43ff7a(0xf9e)](_0x3ab98c['childNodes'])){if(_0x30a880[_0x43ff7a(0x9eb)]==='line'&&_0x30a880['classList'][_0x43ff7a(0x2a0)](_0x43ff7a(0xd3f))){const _0x1d69c0=parseFloat(_0x30a880[_0x43ff7a(0xffb)]('y1'));if(Math['abs'](_0x1d69c0-_0x3de04b)<0x1){_0x3ab98c['removeChild'](_0x30a880);break;}}}}}}const _0xda032d=svgEl(_0x43ff7a(0x8a1),{'x':_0x25989e?_0x25bfa7+_0x36caa9+0x4:_0x25bfa7-_0x36caa9-0x4,'y':_0x5d3bf7+0x3,'text-anchor':_0x25989e?'start':'end','class':_0x43ff7a(0x981)}),_0x360160=[];if(_0x1bbfad[_0x43ff7a(0x1aa)]){const _0x25960c=String(_0x1bbfad[_0x43ff7a(0x1aa)]);_0x360160[_0x43ff7a(0xb31)](_0x43ff7a(0xb58)+(/[a-z%]$/i[_0x43ff7a(0x920)](_0x25960c)?_0x25960c:_0x25960c+'px'));}if(_0x1bbfad['y_axis_color'])_0x360160[_0x43ff7a(0xb31)]('fill:'+_0x1bbfad[_0x43ff7a(0x5bd)]);if(isNum(_0x52761c))_0x360160[_0x43ff7a(0xb31)](_0x43ff7a(0x102d)+_0x52761c);if(_0x360160[_0x43ff7a(0xc02)])_0xda032d[_0x43ff7a(0x751)](_0x43ff7a(0x944),_0x360160[_0x43ff7a(0x888)](';'));_0xda032d[_0x43ff7a(0x3d2)]='0',_0x3ab98c[_0x43ff7a(0x319)](_0xda032d),_0x3475a0&&_0x3ab98c[_0x43ff7a(0x319)](svgEl(_0x43ff7a(0xcd2),{'x1':_0x25989e?_0x25bfa7:_0x25bfa7-_0x36caa9,'x2':_0x25989e?_0x25bfa7+_0x36caa9:_0x25bfa7,'y1':_0x5d3bf7,'y2':_0x5d3bf7,'stroke':_0x3b7d75,'stroke-width':'1','opacity':String(_0x30f44d),'class':_0x43ff7a(0x6de)}));}}return _0x3deb49[_0x43ff7a(0x319)](_0x3ab98c),_0x3ab98c;}[_0x46af5e(0xe60)](_0x3776cb,_0x45d190){const _0x107381=_0x46af5e,_0x40eb65=new Date(_0x3776cb)[_0x107381(0x5e9)](),_0x1a4a3b=new Date(Math[_0x107381(0x220)](_0x3776cb,_0x45d190-0x1))[_0x107381(0x5e9)]();return{'refY':_0x40eb65,'totalYears':Math[_0x107381(0x220)](0x1,_0x1a4a3b-_0x40eb65+0x1)};}[_0x46af5e(0x100f)](_0x3c6f0a,_0x1bf7ed){const _0x29a093=_0x46af5e,_0x3496d6=resolveCardLanguage(_0x1bf7ed,this[_0x29a093(0x1d2)]?.['_config']),_0x54fd66=resolveDisplayTimeZone(_0x1bf7ed,_0x3c6f0a),_0x425f14=toNum(_0x3c6f0a[_0x29a093(0x339)])||0xa,_0x2c52ae=effDatetimeFormat(_0x3c6f0a),_0x207118=_0x2c52ae&&_0x2c52ae!==_0x29a093(0x8e1),_0x239a62=effXAxisDatetimeFormat(_0x3c6f0a),_0x5a816e=getCachedDateTimeFormatter(_0x3496d6,_0x54fd66?{'day':_0x29a093(0x897),'month':'short','timeZone':_0x54fd66}:{'day':_0x29a093(0x897),'month':_0x29a093(0xfec)}),_0x1bf092=getCachedDateTimeFormatter(_0x3496d6,_localeTimeOpts(_0x1bf7ed,_0x54fd66?{'hour':_0x29a093(0x615),'minute':_0x29a093(0x615),'timeZone':_0x54fd66}:{'hour':_0x29a093(0x615),'minute':'2-digit'})),_0x128162=_0x3d827b=>{const _0x4b7fcd=_0x29a093;if(_0x239a62)return applyDatetimePattern(_0x3d827b,_0x239a62,_0x3496d6,_0x54fd66);if(_0x207118&&_0x2c52ae[_0x4b7fcd(0xf06)](_0x4b7fcd(0xed1)))return applyDatetimePattern(_0x3d827b,_0x2c52ae,_0x3496d6,_0x54fd66);if(_0x207118){const _0x33952f=String(_0x2c52ae)[_0x4b7fcd(0xa11)]();if(_0x33952f===_0x4b7fcd(0xebc)||_0x33952f==='MM/DD')return applyDatetimePattern(_0x3d827b,_0x33952f,_0x3496d6,_0x54fd66);}return _0x5a816e?_0x5a816e[_0x4b7fcd(0xf20)](_0x3d827b):_0x3d827b['toLocaleDateString']();},_0x4e9f2b=_0x45e6fe=>{const _0x30eeaa=_0x29a093;if(_0x239a62)return applyDatetimePattern(_0x45e6fe,_0x239a62,_0x3496d6,_0x54fd66);if(_0x207118){const _0x257c46=_0x2c52ae['includes'](_0x30eeaa(0xed1))&&!/[Hhms]/[_0x30eeaa(0x920)](_0x2c52ae);if(!_0x257c46)return applyDatetimePattern(_0x45e6fe,_0x2c52ae,_0x3496d6,_0x54fd66);}return _0x1bf092?_0x1bf092[_0x30eeaa(0xf20)](_0x45e6fe):_0x45e6fe[_0x30eeaa(0xb0f)]();};return{'lang':_0x3496d6,'tz':_0x54fd66,'xFontSize':_0x425f14,'explicitFmt':_0x207118,'fmtTimeF':_0x1bf092,'fmtDate':_0x128162,'fmtTime':_0x4e9f2b,'xPat':_0x239a62};}[_0x46af5e(0x618)](_0x127342,_0x45498d,_0x2227ea,_0x1fd423,_0x478195){const _0x1ddfd2=_0x46af5e;if(!isNum(_0x45498d)||!isNum(_0x2227ea)||_0x2227ea<=_0x45498d)return null;const {lang:_0x35a7f2,tz:_0x2e044b,xFontSize:_0x1b7238,explicitFmt:_0x5ef9c4,fmtDate:_0x4dab85,fmtTime:_0x141bfb,xPat:_0x12d1c9}=this['_xAxisLabelFormatters'](_0x1fd423,_0x478195),_0x1f2e61=getCachedDateTimeFormatter(_0x35a7f2,_0x2e044b?{'month':_0x1ddfd2(0xfec),'timeZone':_0x2e044b}:{'month':_0x1ddfd2(0xfec)}),_0x499dcb=getCachedDateTimeFormatter(_0x35a7f2,_0x2e044b?{'month':_0x1ddfd2(0xfec),'year':'2-digit','timeZone':_0x2e044b}:{'month':_0x1ddfd2(0xfec),'year':_0x1ddfd2(0x615)}),_0x167c6e=(_0xd4538d,_0x38f49d)=>{const _0x1dfae1=_0x1ddfd2;if(_0x12d1c9)return applyDatetimePattern(_0xd4538d,_0x12d1c9,_0x35a7f2,_0x2e044b);const _0x304492=_0x38f49d?_0x499dcb:_0x1f2e61;return _0x304492?_0x304492[_0x1dfae1(0xf20)](_0xd4538d):_0xd4538d[_0x1dfae1(0x1021)]();},_0x37311f=(_0x2dbef7,_0x12f867)=>_0x12d1c9?applyDatetimePattern(new Date(_0x12f867),_0x12d1c9,_0x35a7f2,_0x2e044b):String(_0x2dbef7),_0x2d347f=[];let _0x223ff6=-Infinity;const _0x580520=_0x1b7238*3.5+0xa,_0xaae38c=(_0x1e727e,_0x9ba31a,_0x465a66,_0x5491c1)=>{const _0x48bd63=_0x1ddfd2,_0x2a2add=(_0x1e727e-_0x45498d)/(_0x2227ea-_0x45498d)*_0x127342;if(_0x2a2add<-0x2||_0x2a2add>_0x127342+0x2)return;if(_0x2a2add-_0x223ff6<_0x580520){if(_0x5491c1&&_0x2d347f[_0x48bd63(0xc02)]>0x0){if(_0x2a2add-_0x223ff6<_0x580520*0.5)return;}else{if(_0x465a66&&_0x2d347f[_0x48bd63(0xc02)]>0x0){const _0x3a4c00=_0x2d347f[_0x2d347f['length']-0x1];if(!_0x3a4c00[_0x48bd63(0xbfb)]){_0x2d347f[_0x48bd63(0x18e)](),_0x223ff6=_0x2d347f['length']>0x0?_0x2d347f[_0x2d347f[_0x48bd63(0xc02)]-0x1]['x']:-Infinity;if(_0x2a2add-_0x223ff6<_0x580520)return;}else return;}else return;}}_0x223ff6=_0x2a2add,_0x2d347f[_0x48bd63(0xb31)]({'x':_0x2a2add,'label':_0x9ba31a,'isDate':_0x465a66});},_0x37af63=effXAxisInterval(_0x1fd423);let _0x567d40=null,_0x5db8bf=null;if(_0x37af63){const _0x17e3b3=String(_0x37af63)[_0x1ddfd2(0x727)](/^(\d+)\s*(h|d|w|M)$/);if(_0x17e3b3){const _0x461f12=parseInt(_0x17e3b3[0x1],0xa),_0x5d6783=_0x17e3b3[0x2];if(_0x5d6783==='h')_0x567d40=_0x461f12<=0xc?_0x1ddfd2(0x2ab):_0x1ddfd2(0x309),_0x5db8bf=_0x461f12*0x36ee80;else{if(_0x5d6783==='d')_0x567d40=_0x1ddfd2(0x309),_0x5db8bf=_0x461f12*0x5265c00;else{if(_0x5d6783==='w')_0x567d40='week',_0x5db8bf=_0x461f12*0x240c8400;else _0x5d6783==='M'&&(_0x567d40=_0x1ddfd2(0xe7d),_0x5db8bf=_0x461f12);}}}}if(!_0x567d40){const _0x210969=(_0x2227ea-_0x45498d)/0x36ee80,_0x3a5223=resolveGroupBy(_0x1fd423,_0x210969);if(_0x3a5223==='month')_0x567d40=_0x1ddfd2(0xe7d);else{if(_0x3a5223===_0x1ddfd2(0x73e))_0x567d40=_0x1ddfd2(0x73e);else{if(_0x3a5223===_0x1ddfd2(0x6f1))_0x567d40=_0x1ddfd2(0x6f1);else{if(_0x3a5223===_0x1ddfd2(0x88f))_0x567d40=_0x1ddfd2(0x309);else{if(_0x3a5223===_0x1ddfd2(0x2ab))_0x567d40='hour';}}}}}if(!_0x567d40)return null;const _0x3269a6=this[_0x1ddfd2(0x1d2)]?.[_0x1ddfd2(0xf89)]||this['card']?.['_window'],_0x595a12=_0x3269a6?_0x3269a6[_0x1ddfd2(0x244)][_0x1ddfd2(0x1028)]():_0x2227ea,_0x17563d=new Date(_0x45498d),_0x194152=new Date(_0x2227ea);if(_0x567d40===_0x1ddfd2(0xe7d)){const _0x1f63e0=_0x37af63&&_0x5db8bf?_0x5db8bf:0x1,_0x4018b5=resolveGroupBy(_0x1fd423,(_0x2227ea-_0x45498d)/0x36ee80)===_0x1ddfd2(0xe7d);if(_0x4018b5){const _0x250157=this[_0x1ddfd2(0x1d2)]?.[_0x1ddfd2(0xf89)]||this[_0x1ddfd2(0x1d2)]?.[_0x1ddfd2(0xbe0)],_0x14825b=_0x250157?_0x250157[_0x1ddfd2(0x4b0)][_0x1ddfd2(0x1028)]():_0x45498d,_0x597ebf=_0x250157?_0x250157[_0x1ddfd2(0x244)][_0x1ddfd2(0x1028)]():_0x2227ea,_0x5299ec=tzParts(_0x14825b,_0x2e044b),_0x55f111=tzParts(_0x597ebf-0x1,_0x2e044b),_0xacd57b=Math[_0x1ddfd2(0x220)](0x1,(_0x55f111['y']-_0x5299ec['y'])*0xc+(_0x55f111['mo']-_0x5299ec['mo'])+0x1),_0x3e03d6=tzParts(_0x597ebf,_0x2e044b)['y']!==_0x5299ec['y'],_0x3b2747=zonedWallToMs(_0x55f111['y'],_0x55f111['mo'],0x1,0x0,0x0,0x0,_0x2e044b),_0x224697=!!this[_0x1ddfd2(0x294)]&&_0xacd57b>0x1;for(let _0x645ad=0x0;;_0x645ad+=_0x1f63e0){const _0x55790a=zonedWallToMs(_0x5299ec['y'],_0x5299ec['mo']+_0x645ad,0x1,0x0,0x0,0x0,_0x2e044b);if(_0x55790a>_0x3b2747)break;const _0xe5a9aa=(_0x224697?_0x645ad/(_0xacd57b-0x1):(_0x645ad+0.5)/_0xacd57b)*_0x127342;if(_0xe5a9aa<-0x2||_0xe5a9aa>_0x127342+0x2)continue;if(_0xe5a9aa-_0x223ff6<_0x580520)continue;_0x223ff6=_0xe5a9aa,_0x2d347f['push']({'x':_0xe5a9aa,'label':_0x167c6e(new Date(_0x55790a),_0x3e03d6),'isDate':!![]});}}else{const _0x486402=tzParts(_0x45498d,_0x2e044b),_0x4385b0=tzParts(_0x2227ea,_0x2e044b)['y']!==_0x486402['y'];for(let _0xdb0d79=0x0;;_0xdb0d79+=_0x1f63e0){const _0x13e27c=zonedWallToMs(_0x486402['y'],_0x486402['mo']+_0xdb0d79,0x1,0x0,0x0,0x0,_0x2e044b);if(_0x13e27c>_0x2227ea)break;_0xaae38c(_0x13e27c,_0x167c6e(new Date(_0x13e27c),_0x4385b0),!![]);}}}else{if(_0x567d40===_0x1ddfd2(0x73e)){if(this[_0x1ddfd2(0x5af)]){const _0x61138c=this[_0x1ddfd2(0x1d2)]?.[_0x1ddfd2(0xf89)]||this[_0x1ddfd2(0x1d2)]?.['_window'],_0x29d296=_0x61138c?_0x61138c['start']['getTime']():_0x45498d,_0x3fc761=_0x61138c?_0x61138c['end'][_0x1ddfd2(0x1028)]():this[_0x1ddfd2(0x1d2)]?_0x595a12:_0x2227ea,{refY:_0x1cccf0,totalYears:_0x202952}=this[_0x1ddfd2(0xe60)](_0x29d296,_0x3fc761),_0x1c106d=!!this[_0x1ddfd2(0x294)]&&_0x202952>0x1;for(let _0x5deaee=_0x1cccf0;_0x5deaee<_0x1cccf0+_0x202952;_0x5deaee++){const _0x1ba2ba=_0x5deaee-_0x1cccf0,_0x862b73=(_0x1c106d?_0x1ba2ba/(_0x202952-0x1):(_0x1ba2ba+0.5)/_0x202952)*_0x127342;if(_0x862b73<-0x2||_0x862b73>_0x127342+0x2)continue;if(_0x862b73-_0x223ff6<_0x580520)continue;_0x223ff6=_0x862b73,_0x2d347f[_0x1ddfd2(0xb31)]({'x':_0x862b73,'label':_0x37311f(_0x5deaee,zonedWallToMs(_0x5deaee,0x0,0x1,0x0,0x0,0x0,_0x2e044b)),'isDate':!![]});}}else{const _0x51495f=tzParts(_0x595a12-0x1,_0x2e044b)['y'];for(let _0x1e779c=tzParts(_0x45498d,_0x2e044b)['y'];_0x1e779c<=_0x51495f;_0x1e779c++){_0xaae38c(zonedWallToMs(_0x1e779c,0x0,0x1,0x0,0x0,0x0,_0x2e044b),_0x37311f(_0x1e779c,zonedWallToMs(_0x1e779c,0x0,0x1,0x0,0x0,0x0,_0x2e044b)),!![]);}}}else{if(_0x567d40===_0x1ddfd2(0x6f1)){const _0x39d904=_0x5db8bf?Math[_0x1ddfd2(0x686)](_0x5db8bf/0x240c8400)*0x7:0x7,_0x78b775=tzParts(_0x45498d,_0x2e044b);let _0x415b4d=zonedWallToMs(_0x78b775['y'],_0x78b775['mo'],_0x78b775['d']-weekStartOffsetDays(_0x78b775['wd'],resolveFirstWeekday(_0x478195)),0x0,0x0,0x0,_0x2e044b);if(_0x415b4d<_0x45498d){const _0x573f6c=tzParts(_0x415b4d,_0x2e044b);_0x415b4d=zonedWallToMs(_0x573f6c['y'],_0x573f6c['mo'],_0x573f6c['d']+0x7,0x0,0x0,0x0,_0x2e044b);}while(_0x415b4d<_0x595a12){_0xaae38c(_0x415b4d,_0x4dab85(new Date(_0x415b4d)),!![]);const _0x452040=tzParts(_0x415b4d,_0x2e044b);_0x415b4d=zonedWallToMs(_0x452040['y'],_0x452040['mo'],_0x452040['d']+_0x39d904,0x0,0x0,0x0,_0x2e044b);}}else{if(_0x567d40===_0x1ddfd2(0x309)){const _0x58e786=0x5265c00;let _0x1b49d5=tzStartOfDayMs(_0x45498d,_0x2e044b);if(_0x1b49d5<_0x45498d){const _0x377a6c=tzParts(_0x1b49d5,_0x2e044b);_0x1b49d5=zonedWallToMs(_0x377a6c['y'],_0x377a6c['mo'],_0x377a6c['d']+0x1,0x0,0x0,0x0,_0x2e044b);}const _0x35b9f9=tzStartOfDayMs(_0x595a12-0x1,_0x2e044b),_0x1a89a3=Math[_0x1ddfd2(0x220)](0x1,Math[_0x1ddfd2(0x686)]((_0x35b9f9-_0x1b49d5)/_0x58e786)+0x1),_0x32314a=_0x5db8bf?Math[_0x1ddfd2(0x220)](0x1,Math[_0x1ddfd2(0x686)](_0x5db8bf/_0x58e786)):null;let _0x4218a2;if(_0x32314a)_0x4218a2=_0x32314a;else{const _0x9b98dd=0x3c,_0x40e445=Math[_0x1ddfd2(0x220)](0x2,Math[_0x1ddfd2(0xedc)](_0x127342/_0x9b98dd));_0x4218a2=Math[_0x1ddfd2(0x220)](0x1,Math[_0x1ddfd2(0x6fd)]((_0x1a89a3-0x1)/(_0x40e445-0x1)));}const _0x38675d=toNum(_0x1fd423?.[_0x1ddfd2(0x881)]),_0x3ee401=isNum(_0x38675d)&&_0x38675d>0x0?_0x38675d/0x18:(_0x2227ea-_0x45498d)/_0x58e786,_0x3c7e5e=getCachedDateTimeFormatter(_0x35a7f2,_0x2e044b?{'weekday':'short','day':_0x1ddfd2(0x897),'timeZone':_0x2e044b}:{'weekday':_0x1ddfd2(0xfec),'day':'numeric'}),_0x388d77=getCachedDateTimeFormatter(_0x35a7f2,_0x2e044b?{'day':_0x1ddfd2(0x897),'month':'short','timeZone':_0x2e044b}:{'day':_0x1ddfd2(0x897),'month':_0x1ddfd2(0xfec)});let _0x503402=-0x1;const _0x2ec421=_0x47fd24=>{const _0x51bb19=_0x1ddfd2,_0x1424ac=new Date(_0x47fd24);if(_0x12d1c9||_0x5ef9c4)return _0x4dab85(_0x1424ac);if(_0x3ee401<=29.5)return _0x3c7e5e?_0x3c7e5e[_0x51bb19(0xf20)](_0x1424ac):_0x4dab85(_0x1424ac);const _0x3484bc=tzParts(_0x47fd24,_0x2e044b),_0x1d0fb=_0x503402!==_0x3484bc['mo'];_0x503402=_0x3484bc['mo'];if(_0x1d0fb)return _0x388d77?_0x388d77[_0x51bb19(0xf20)](_0x1424ac):_0x4dab85(_0x1424ac);return String(_0x3484bc['d']);},_0x51b0f5=tzParts(_0x1b49d5,_0x2e044b);let _0x5725ba=0x0;while(_0x5725ba<_0x1a89a3-0x1){const _0x533cc9=zonedWallToMs(_0x51b0f5['y'],_0x51b0f5['mo'],_0x51b0f5['d']+_0x5725ba,0x0,0x0,0x0,_0x2e044b);_0xaae38c(_0x533cc9,_0x2ec421(_0x533cc9),!![]),_0x5725ba+=_0x4218a2;}_0xaae38c(_0x35b9f9,_0x2ec421(_0x35b9f9),!![],!![]);}else{if(_0x567d40==='hour'){const _0x537edd=_0x5db8bf||0x36ee80,_0x398da5=_0x537edd/0x36ee80,_0x2df3af=new Date(_0x17563d);_0x2df3af[_0x1ddfd2(0x1ee)](0x0,0x0,0x0);if(_0x2df3af[_0x1ddfd2(0x1028)]()<_0x45498d)_0x2df3af[_0x1ddfd2(0x423)](_0x2df3af[_0x1ddfd2(0x1028)]()+0x36ee80);if(_0x398da5>=0x1){const _0x31ff57=tzParts(_0x2df3af[_0x1ddfd2(0x1028)](),_0x2e044b),_0x302af0=_0x31ff57['h']%_0x398da5;_0x302af0!==0x0&&_0x2df3af[_0x1ddfd2(0x423)](zonedWallToMs(_0x31ff57['y'],_0x31ff57['mo'],_0x31ff57['d'],_0x31ff57['h']+(_0x398da5-_0x302af0),0x0,0x0,_0x2e044b));}for(const _0x3575c7 of wallHourTicks(_0x2df3af[_0x1ddfd2(0x1028)](),_0x398da5,_0x595a12,_0x2e044b,_0x45498d)){const _0x4f8c44=new Date(_0x3575c7),_0x1c99e3=tzParts(_0x3575c7,_0x2e044b),_0x5c4985=_0x1c99e3['h']===0x0&&_0x1c99e3['mi']===0x0;_0xaae38c(_0x3575c7,_0x5c4985?_0x4dab85(_0x4f8c44):_0x141bfb(_0x4f8c44),_0x5c4985);}}}}}}if(_0x567d40==='year'&&!this[_0x1ddfd2(0x5af)]&&_0x2d347f['length']<0x2)return null;return _0x2d347f[_0x1ddfd2(0xc02)]>0x0?_0x2d347f:null;}[_0x46af5e(0xc32)](_0x3b7322,_0x39ee4b,_0x4d9abd,_0x26d22b,_0x8f10e5){const _0x5e839a=_0x46af5e,_0x19745d=(_0x4d9abd-_0x39ee4b)/0x36ee80,{tz:_0x4c5386,xFontSize:_0x57cdf7,explicitFmt:_0x449620,fmtTimeF:_0x37b95f,fmtDate:_0x3ed61e,fmtTime:_0x43752b,xPat:_0x1af286}=this['_xAxisLabelFormatters'](_0x26d22b,_0x8f10e5),_0x5e7a27=_0x57cdf7*0.62;let _0x19abf7=0xb;if(_0x1af286)_0x19abf7=estPatternChars(_0x1af286);else{if(_0x449620)_0x19abf7=Math[_0x5e839a(0x220)](0x5,estPatternChars(effDatetimeFormat(_0x26d22b)));else{if(_0x37b95f)try{const _0x32920b=_0x37b95f[_0x5e839a(0xf20)](new Date(0x7e8,0x0,0x1,0xd,0x1e));_0x19abf7=Math['max'](0x5,_0x32920b[_0x5e839a(0xc02)]);}catch(_0x1ff52f){_0x19abf7=0x5;}else _0x19abf7=0x5;}}const _0x4e4f61=_0x19abf7*_0x5e7a27+0x8,_0x477b6a=Math[_0x5e839a(0x220)](0x3,Math[_0x5e839a(0xedc)](_0x3b7322/(_0x4e4f61+0x10))),_0x185da5=_0x4e4f61+0x6,_0x2bba2f=[{'hours':0.25,'align':'minute'},{'hours':0.5,'align':_0x5e839a(0x976)},{'hours':0x1,'align':_0x5e839a(0x2ab)},{'hours':0x2,'align':'hour'},{'hours':0x3,'align':_0x5e839a(0x2ab)},{'hours':0x4,'align':_0x5e839a(0x2ab)},{'hours':0x6,'align':'hour'},{'hours':0x8,'align':_0x5e839a(0x2ab)},{'hours':0xc,'align':_0x5e839a(0x2ab)},{'hours':0x18,'align':_0x5e839a(0x309)},{'hours':0x30,'align':'day'},{'hours':0xa8,'align':_0x5e839a(0x309)}];let _0x1e298f=_0x2bba2f[_0x2bba2f['length']-0x1];for(const _0xa143fa of _0x2bba2f){if(_0x19745d/_0xa143fa[_0x5e839a(0x560)]<=_0x477b6a){_0x1e298f=_0xa143fa;break;}}const _0x220a1e=_0x1e298f[_0x5e839a(0x560)]*0x36ee80,_0x9b6f7a=new Date(_0x39ee4b);let _0x13724f;if(_0x1e298f[_0x5e839a(0xda9)]==='day'){let _0x186eb2=tzStartOfDayMs(_0x39ee4b,_0x4c5386);if(_0x186eb2<_0x39ee4b){const _0xbcc04c=tzParts(_0x186eb2,_0x4c5386);_0x186eb2=zonedWallToMs(_0xbcc04c['y'],_0xbcc04c['mo'],_0xbcc04c['d']+0x1,0x0,0x0,0x0,_0x4c5386);}_0x13724f=new Date(_0x186eb2);}else{if(_0x1e298f[_0x5e839a(0xda9)]==='hour'){_0x13724f=new Date(_0x9b6f7a),_0x13724f[_0x5e839a(0x1ee)](0x0,0x0,0x0);if(_0x13724f[_0x5e839a(0x1028)]()<_0x39ee4b)_0x13724f[_0x5e839a(0x423)](_0x13724f[_0x5e839a(0x1028)]()+0x36ee80);const _0x2c6631=_0x1e298f[_0x5e839a(0x560)],_0x1c983c=tzParts(_0x13724f[_0x5e839a(0x1028)](),_0x4c5386),_0x42c2e5=_0x1c983c['h']%_0x2c6631;_0x42c2e5!==0x0&&_0x13724f[_0x5e839a(0x423)](zonedWallToMs(_0x1c983c['y'],_0x1c983c['mo'],_0x1c983c['d'],_0x1c983c['h']+(_0x2c6631-_0x42c2e5),0x0,0x0,_0x4c5386));}else{const _0x5d86ea=_0x1e298f['hours']*0x3c;_0x13724f=new Date(_0x9b6f7a),_0x13724f[_0x5e839a(0xd22)](0x0,0x0);const _0x4733d3=_0x13724f[_0x5e839a(0xe88)](),_0x346356=_0x4733d3%_0x5d86ea;if(_0x346356!==0x0||_0x13724f[_0x5e839a(0x1028)]()<_0x39ee4b)_0x13724f['setMinutes'](_0x4733d3+(_0x5d86ea-_0x346356),0x0,0x0);}}const _0x2dd6a0=[];let _0x5604b8=-Infinity;const _0x175903=this[_0x5e839a(0x1d2)]?.[_0x5e839a(0xf89)]||this[_0x5e839a(0x1d2)]?.['_window'],_0x2a56bf=_0x175903?_0x175903['end']['getTime']():_0x4d9abd,_0x3bd875=[];if(_0x1e298f[_0x5e839a(0xda9)]===_0x5e839a(0x309)){const _0x4e647a=Math['max'](0x1,Math[_0x5e839a(0x686)](_0x1e298f[_0x5e839a(0x560)]/0x18));let _0x4b8d00=_0x13724f[_0x5e839a(0x1028)]();while(_0x4b8d00<_0x2a56bf){_0x3bd875[_0x5e839a(0xb31)](_0x4b8d00);const _0x193450=tzParts(_0x4b8d00,_0x4c5386);_0x4b8d00=zonedWallToMs(_0x193450['y'],_0x193450['mo'],_0x193450['d']+_0x4e647a,0x0,0x0,0x0,_0x4c5386);}}else{if(_0x1e298f[_0x5e839a(0xda9)]===_0x5e839a(0x2ab)){for(const _0x3cc9af of wallHourTicks(_0x13724f[_0x5e839a(0x1028)](),_0x1e298f[_0x5e839a(0x560)],_0x2a56bf,_0x4c5386,_0x39ee4b))_0x3bd875[_0x5e839a(0xb31)](_0x3cc9af);}else{for(let _0x25aada=_0x13724f[_0x5e839a(0x1028)]();_0x25aada<_0x2a56bf;_0x25aada+=_0x220a1e)_0x3bd875['push'](_0x25aada);}}for(const _0x2c609b of _0x3bd875){if(_0x2c609b<_0x39ee4b)continue;const _0x24d0cf=(_0x2c609b-_0x39ee4b)/(_0x4d9abd-_0x39ee4b)*_0x3b7322,_0x66e36f=new Date(_0x2c609b),_0x34f568=tzParts(_0x2c609b,_0x4c5386),_0x3bdb34=_0x34f568['h']===0x0&&_0x34f568['mi']===0x0&&_0x19745d>=0xc;if(_0x24d0cf-_0x5604b8<_0x185da5){if(_0x3bdb34&&_0x2dd6a0[_0x5e839a(0xc02)]>0x0){const _0x367479=_0x2dd6a0[_0x2dd6a0[_0x5e839a(0xc02)]-0x1];if(!_0x367479[_0x5e839a(0xbfb)]){_0x2dd6a0['pop'](),_0x5604b8=_0x2dd6a0['length']>0x0?_0x2dd6a0[_0x2dd6a0[_0x5e839a(0xc02)]-0x1]['x']:-Infinity;if(_0x24d0cf-_0x5604b8<_0x185da5)continue;}else continue;}else continue;}_0x5604b8=_0x24d0cf,_0x2dd6a0[_0x5e839a(0xb31)]({'x':_0x24d0cf,'label':_0x3bdb34?_0x3ed61e(_0x66e36f):_0x43752b(_0x66e36f),'isDate':_0x3bdb34});}return _0x2dd6a0;}['_drawXAxis'](_0xc1a283,_0x405668,_0x52788a,_0x1f45b1,_0xcd887e,_0x45d212,_0x309110,_0x58be38){const _0x20495d=_0x46af5e,_0x3ef0f5=svgEl('g',{'class':_0x20495d(0x430)});let _0x47de0a=this[_0x20495d(0x618)](_0x1f45b1,_0xcd887e,_0x45d212,_0x309110,_0x58be38);if(!_0x47de0a)_0x47de0a=this[_0x20495d(0xc32)](_0x1f45b1,_0xcd887e,_0x45d212,_0x309110,_0x58be38);if(!_0x47de0a||!_0x47de0a[_0x20495d(0xc02)]){_0xc1a283[_0x20495d(0x319)](_0x3ef0f5);return;}const _0x192ca6=!!_0x309110[_0x20495d(0x9b4)],_0x3558eb=0x4,_0x266043=toNum(_0x309110[_0x20495d(0x339)])||0xa,_0x370ce7=_0x266043+0x1,_0x48ea5a=toNum(_0x309110[_0x20495d(0xb66)]),_0x3eca60=isNum(_0x48ea5a)?_0x48ea5a:0.5,_0x3127f4=_0x309110[_0x20495d(0xdb6)]||_0x20495d(0x7cb),_0x85da64=_0x309110[_0x20495d(0xdca)]||_0x309110[_0x20495d(0xdb6)]||_0x20495d(0x960);for(const _0x319b49 of _0x47de0a){const _0x3d943a=_0x405668+_0x319b49['x'],_0x34c098=!!_0x319b49[_0x20495d(0xbfb)],_0x10c43e=_0x3d943a,_0x7b18a='middle';_0x192ca6&&_0x3ef0f5[_0x20495d(0x319)](svgEl(_0x20495d(0xcd2),{'x1':_0x3d943a,'x2':_0x3d943a,'y1':_0x52788a,'y2':_0x52788a+_0x3558eb,'stroke':_0x34c098?_0x85da64:_0x3127f4,'stroke-width':'1','opacity':String(_0x3eca60),'class':'sgc-axis-tick\x20sgc-x-tick'}));const _0x4054d9=[];if(_0x34c098)_0x4054d9['push'](_0x20495d(0xc8c)),_0x4054d9[_0x20495d(0xb31)](_0x20495d(0x67f)+_0x85da64),_0x4054d9[_0x20495d(0xb31)](_0x20495d(0xa8b)),_0x4054d9[_0x20495d(0xb31)](_0x20495d(0xb58)+_0x370ce7+'px');else{if(_0x309110[_0x20495d(0x339)]){const _0x3eacff=String(_0x309110[_0x20495d(0x339)]);_0x4054d9[_0x20495d(0xb31)]('font-size:'+(/[a-z%]$/i['test'](_0x3eacff)?_0x3eacff:_0x3eacff+'px'));}if(_0x309110['x_axis_color'])_0x4054d9[_0x20495d(0xb31)](_0x20495d(0x67f)+_0x309110['x_axis_color']);if(isNum(_0x48ea5a))_0x4054d9['push']('opacity:'+_0x48ea5a);}const _0x1984b6=svgEl(_0x20495d(0x8a1),{'x':_0x10c43e,'y':_0x52788a+(_0x192ca6?_0x3558eb+0xc:0xe),'text-anchor':_0x7b18a,'class':_0x20495d(0xe09)+(_0x34c098?_0x20495d(0x9ba):'')});if(_0x4054d9['length'])_0x1984b6[_0x20495d(0x751)](_0x20495d(0x944),_0x4054d9[_0x20495d(0x888)](';'));_0x1984b6[_0x20495d(0x3d2)]=_0x319b49[_0x20495d(0xf1f)],_0x3ef0f5[_0x20495d(0x319)](_0x1984b6);}_0xc1a283[_0x20495d(0x319)](_0x3ef0f5);}['_buildStackState'](_0x4aff07,_0xa514aa){const _0x979fbe=_0x46af5e;if(!_0x4aff07[_0x979fbe(0xc02)])return null;const _0x583458=!!_0xa514aa['stacked'],_0x4beefd=new Map(),_0x22a41a=new Map();for(const _0x2f3076 of _0x4aff07){const _0x2834b3=_0x2f3076['entity'][_0x979fbe(0xe81)]||(_0x583458&&_0x2f3076[_0x979fbe(0x974)][_0x979fbe(0xed4)]==null?_0x979fbe(0x840):null);if(!_0x2834b3)continue;const _0x5101db=_0x2f3076[_0x979fbe(0x974)][_0x979fbe(0x8cc)]===_0x979fbe(0xbec)?'y2':'y1',_0x510b9b=(_0x2f3076[_0x979fbe(0x974)]['graph_type']||_0x979fbe(0xcd2))===_0x979fbe(0x8fb)?_0x979fbe(0x8fb):'line',_0x5cb6eb=_0x2f3076[_0x979fbe(0x974)][_0x979fbe(0xd57)]?_0x979fbe(0x3d9):_0x979fbe(0xed7),_0x5cb226=_0x2834b3+'::'+_0x5101db+'::'+_0x510b9b+'::'+resolveGroupBy(_0xa514aa,toNum(_0xa514aa[_0x979fbe(0xabc)])||0x18,_0x2f3076[_0x979fbe(0x974)])+'::'+_0x5cb6eb;if(!_0x22a41a[_0x979fbe(0x101d)](_0x5cb226))_0x22a41a[_0x979fbe(0xa2d)](_0x5cb226,[]);_0x22a41a[_0x979fbe(0xc3f)](_0x5cb226)['push'](_0x2f3076);}for(const [_0x569acd,_0x193ba3]of[..._0x22a41a]){if(_0x193ba3[_0x979fbe(0xc02)]!==0x1)continue;const _0x189621=_0x193ba3[0x0]['entity'],_0x2535be=_0x189621[_0x979fbe(0xc3c)]||_0x189621['type']||_0x979fbe(0xcd2),_0x26f394=_0x2535be==='bar'||_0x2535be===_0x979fbe(0x93e)||!!_0x189621['show_fill'];if(!_0x26f394)_0x22a41a[_0x979fbe(0xcc1)](_0x569acd);}if(!_0x22a41a[_0x979fbe(0xc44)])return null;for(const [_0x2e50b9,_0x119f9b]of _0x22a41a){for(const _0x2011b4 of _0x119f9b)_0x4beefd['set'](_0x2011b4[_0x979fbe(0xd18)],_0x2e50b9);}const _0x2286e7=new Map();for(const [,_0x1f0dd1]of _0x22a41a){let _0x4c0d62=null;for(const _0x4e7e23 of _0x1f0dd1){_0x2286e7['set'](_0x4e7e23[_0x979fbe(0xd18)],_0x4c0d62);if(_0x4e7e23['points'][_0x979fbe(0x42a)](_0x523352=>isNum(_0x523352['v'])&&_0x523352['v']!==0x0))_0x4c0d62=_0x4e7e23;}}const _0x2d6d55=new Map(),_0x162c31=new Map(),_0x43125f=new Map(),_0x722523=new Map(),_0x3f5c54=new Set();for(const [_0x43f1c7,_0x4c2f7d]of _0x22a41a){const _0x57435d=new Map(),_0x1962d1=new Map(),_0x5544a9=new Map(),_0x3e6051=new Map(),_0x1aa4e4=_0x43f1c7[_0x979fbe(0xc65)]('::inv')?_0x43f1c7[_0x979fbe(0x165)](0x0,-0x5)+'::std':_0x43f1c7[_0x979fbe(0x165)](0x0,-0x5)+_0x979fbe(0xc88);if(_0x4c2f7d[_0x979fbe(0xc02)]===0x1&&!_0x22a41a[_0x979fbe(0x101d)](_0x1aa4e4))_0x3f5c54['add'](_0x4c2f7d[0x0]['idx']);let _0x32f7a0=Infinity,_0x59f6f0=-Infinity;for(const _0x33e5ac of _0x4c2f7d){const _0x197c82=new Map();for(const _0x2aaa29 of _0x33e5ac[_0x979fbe(0x93a)]){if(!isNum(_0x2aaa29['v']))continue;_0x197c82[_0x979fbe(0xa2d)](_0x2aaa29['t'],_0x57435d['get'](_0x2aaa29['t'])||0x0);}_0x2d6d55[_0x979fbe(0xa2d)](_0x33e5ac[_0x979fbe(0xd18)],_0x197c82);for(const _0x48e5d2 of _0x33e5ac[_0x979fbe(0x93a)]){if(!isNum(_0x48e5d2['v'])||_0x48e5d2['v']===0x0)continue;const _0xe4f654=_0x57435d[_0x979fbe(0xc3f)](_0x48e5d2['t'])||0x0,_0x9201c8=_0xe4f654+_0x48e5d2['v'];_0x57435d[_0x979fbe(0xa2d)](_0x48e5d2['t'],_0x9201c8);if(_0x9201c8<_0x32f7a0)_0x32f7a0=_0x9201c8;if(_0x9201c8>_0x59f6f0)_0x59f6f0=_0x9201c8;if(_0xe4f654<_0x32f7a0)_0x32f7a0=_0xe4f654;if(_0xe4f654>_0x59f6f0)_0x59f6f0=_0xe4f654;if(!_0x1962d1[_0x979fbe(0x101d)](_0x33e5ac['idx']))_0x1962d1['set'](_0x33e5ac['idx'],new Map());_0x1962d1[_0x979fbe(0xc3f)](_0x33e5ac[_0x979fbe(0xd18)])[_0x979fbe(0xa2d)](_0x48e5d2['t'],[_0xe4f654,_0x9201c8]);const _0x5cc200=Math['max'](_0xe4f654,_0x9201c8),_0x2cf6ed=Math['min'](_0xe4f654,_0x9201c8);if(!_0x5544a9[_0x979fbe(0x101d)](_0x48e5d2['t'])||_0x5cc200>_0x5544a9[_0x979fbe(0xc3f)](_0x48e5d2['t']))_0x5544a9['set'](_0x48e5d2['t'],_0x5cc200);if(!_0x3e6051['has'](_0x48e5d2['t'])||_0x2cf6ed<_0x3e6051[_0x979fbe(0xc3f)](_0x48e5d2['t']))_0x3e6051[_0x979fbe(0xa2d)](_0x48e5d2['t'],_0x2cf6ed);}}for(const [_0x11f394,_0x20fb48]of _0x1962d1){for(const [_0x42f390,[_0x14b776,_0x157069]]of _0x20fb48){const _0x2e14d3=Math['max'](_0x14b776,_0x157069),_0x442919=Math['min'](_0x14b776,_0x157069);if(_0x2e14d3>0x0&&_0x2e14d3===_0x5544a9[_0x979fbe(0xc3f)](_0x42f390)){if(!_0x43125f['has'](_0x11f394))_0x43125f[_0x979fbe(0xa2d)](_0x11f394,new Set());_0x43125f[_0x979fbe(0xc3f)](_0x11f394)[_0x979fbe(0x982)](_0x42f390);}if(_0x442919<0x0&&_0x442919===_0x3e6051['get'](_0x42f390)){if(!_0x722523['has'](_0x11f394))_0x722523['set'](_0x11f394,new Set());_0x722523[_0x979fbe(0xc3f)](_0x11f394)['add'](_0x42f390);}}}_0x32f7a0!==Infinity&&_0x162c31['set'](_0x43f1c7,{'min':Math[_0x979fbe(0xba1)](_0x32f7a0,0x0),'max':Math['max'](_0x59f6f0,0x0)});}return{'stackKeyByIdx':_0x4beefd,'baselineByIdx':_0x2d6d55,'groupExtremesByKey':_0x162c31,'boundaryOwnerByIdx':_0x2286e7,'outerPosByIdx':_0x43125f,'outerNegByIdx':_0x722523,'soloByIdx':_0x3f5c54};}[_0x46af5e(0xdf1)](_0x24a4c5,_0x4524bc,_0x308fce,_0x92302c,_0x2aa9d9){const _0x4deef9=_0x46af5e,{padL:_0x445b6d,plotW:_0x294263,mapX:_0x31c023,tEnd:_0x2f2842,top:_0x1522e7,rowH:_0x3a7236,titleH:titleH=0x0,titleFs:titleFs=0xa,titleMaxW:titleMaxW=_0x294263,titlePos:titlePos=_0x4deef9(0xdce),showTitles:showTitles=titleH>0x0}=_0x2aa9d9,_0x3e81bf=svgEl('g',{'class':_0x4deef9(0xbc4)}),_0x3bcfc9=showTitles&&(titlePos===_0x4deef9(0xaaf)?titleMaxW>=0xa:titleH>0x0)?svgEl('g',{'class':_0x4deef9(0x101f)}):null,_0x2742c5=_0x3bcfc9?_0x4deef9(0x42c)+titleFs+'px\x20'+(getComputedStyle(this[_0x4deef9(0x1d2)])[_0x4deef9(0x767)]('--primary-font-family')[_0x4deef9(0xa11)]()||_0x4deef9(0xbc1)):'',_0x4b721e=_0x308fce[_0x4deef9(0x54c)]!==![],_0x508ff5=0xa,_0x461b32=((()=>{const _0x3bfa07=_0x4deef9,_0x43738e=_0x308fce['state_timeline_corner_radius'],_0x3ab399=_0x43738e==null||_0x43738e===''?0x3:Number(_0x43738e);if(!isFinite(_0x3ab399)||_0x3ab399<0x0)return 0x3;return Math[_0x3bfa07(0xba1)](_0x3ab399,_0x3a7236/0x2);})());return _0x4524bc[_0x4deef9(0xd27)]((_0x20f884,_0x3a3353)=>{const _0x453f25=_0x4deef9,_0x176677=_0x20f884[_0x453f25(0x974)]||{},_0x1f2698=_0x20f884['points']||[];if(!_0x1f2698[_0x453f25(0xc02)])return;const _0x2e41fb=_0x176677[_0x453f25(0xa7e)]||_0x20f884[_0x453f25(0xfac)]||autoStateMap(_0x176677,_0x92302c,_0x308fce?.['chart_mode'])||[],_0x9652c0=!!_0x176677[_0x453f25(0xa7e)],_0x2eba1f=_0x1522e7+_0x3a3353*(_0x3a7236+0x2+titleH)+titleH;if(_0x3bcfc9){const _0x242f4d=pickName(_0x176677[_0x453f25(0xdee)],_0x20f884[_0x453f25(0x731)]?.['resolved_name'],_0x20f884['meta']);let _0x391d9e=_0x242f4d===''?'':_0x242f4d!=null?String(_0x242f4d):_0x176677['entity']||'';if(_0x391d9e&&measureTextWidth(_0x391d9e,_0x2742c5)>titleMaxW){let _0x5834fa=0x0,_0x585fbd=_0x391d9e[_0x453f25(0xc02)];while(_0x5834fa<_0x585fbd){const _0x6f6411=_0x5834fa+_0x585fbd+0x1>>0x1;if(measureTextWidth(_0x391d9e['slice'](0x0,_0x6f6411)+'…',_0x2742c5)<=titleMaxW)_0x5834fa=_0x6f6411;else _0x585fbd=_0x6f6411-0x1;}_0x391d9e=_0x5834fa>0x0?_0x391d9e[_0x453f25(0x165)](0x0,_0x5834fa)+'…':'';}if(_0x391d9e){const _0x22b722=svgEl(_0x453f25(0x8a1),{'x':String(titlePos===_0x453f25(0xaaf)?_0x445b6d-0x4:_0x445b6d+0x2),'y':String(titlePos===_0x453f25(0xaaf)?_0x2eba1f+_0x3a7236/0x2:_0x2eba1f-0x3),'text-anchor':titlePos==='left'?_0x453f25(0x244):'start',...titlePos==='left'?{'dominant-baseline':_0x453f25(0x3ae)}:{},'fill':_0x453f25(0x368),'font-size':String(titleFs),'style':_0x453f25(0x6d1)+(_0x176677[_0x453f25(0xed4)]!=null?'0.55':_0x453f25(0x408))+_0x453f25(0x9c0),'class':_0x453f25(0xed3)});_0x22b722['textContent']=_0x391d9e,_0x3bcfc9[_0x453f25(0x319)](_0x22b722);}}const _0x4dc957=[];let _0x1c5865=_0x1f2698[0x0]['t'],_0x4592a2=_0x1f2698[0x0]['v'];for(let _0x41c097=0x1;_0x41c097<_0x1f2698[_0x453f25(0xc02)];_0x41c097++){_0x1f2698[_0x41c097]['v']!==_0x4592a2&&(_0x4592a2!==null&&_0x4592a2!==undefined&&_0x4dc957[_0x453f25(0xb31)]({'start':_0x1c5865,'end':_0x1f2698[_0x41c097]['t'],'val':_0x4592a2}),_0x1c5865=_0x1f2698[_0x41c097]['t'],_0x4592a2=_0x1f2698[_0x41c097]['v']);}_0x4592a2!==null&&_0x4592a2!==undefined&&_0x4dc957['push']({'start':_0x1c5865,'end':bandTailEnd(_0x176677,_0x2f2842,_0x1c5865),'val':_0x4592a2});for(const _0x4c1675 of _0x4dc957){const _0x1514d7=Math[_0x453f25(0x220)](_0x31c023(_0x4c1675['start']),_0x445b6d),_0x5e5da4=Math['min'](_0x31c023(_0x4c1675[_0x453f25(0x244)]),_0x445b6d+_0x294263),_0x80541=_0x5e5da4-_0x1514d7;if(_0x80541<0.5)continue;const _0x29ce88=Math[_0x453f25(0x686)](_0x4c1675['val']),_0x2339b5=_0x2e41fb[_0x453f25(0xc02)]?(_0x29ce88%_0x2e41fb['length']+_0x2e41fb['length'])%_0x2e41fb[_0x453f25(0xc02)]:0x0,_0x574f38=_0x2e41fb[_0x29ce88]||_0x2e41fb[_0x2339b5],_0xe81f6b=_0x574f38?.[_0x453f25(0xd95)]||(_0x9652c0&&_0x176677[_0x453f25(0xd95)]?_0x176677[_0x453f25(0xd95)]:STATE_TIMELINE_COLORS[_0x2339b5%STATE_TIMELINE_COLORS[_0x453f25(0xc02)]])||_0x176677[_0x453f25(0xd95)]||'#888',_0x392009=svgEl(_0x453f25(0x53f),{'x':String(_0x1514d7),'y':String(_0x2eba1f),'width':String(_0x80541),'height':String(_0x3a7236),'rx':String(_0x461b32),'ry':String(_0x461b32),'fill':_0xe81f6b,'opacity':String(_0x176677[_0x453f25(0xed4)]!=null?0.85*Math[_0x453f25(0x220)](0.55,_0x176677['_compareCfg']?.[_0x453f25(0x7a2)]??0.45):0.85),'class':_0x453f25(0xec0)});_0x3e81bf[_0x453f25(0x319)](_0x392009);if(!_0x4b721e||_0x80541<=0x28)continue;const _0x486726=_0x9652c0&&_0x574f38?.[_0x453f25(0xf1f)]||(_0x92302c?.[_0x453f25(0x4f9)]?.[_0x176677[_0x453f25(0x974)]]?.['attributes']?.[_0x453f25(0x398)]?String(_0x574f38?.[_0x453f25(0x2ea)]??_0x29ce88):localizeEntityState(_0x92302c,_0x92302c?.[_0x453f25(0x4f9)]?.[_0x176677['entity']],_0x574f38?.[_0x453f25(0x2ea)]??_0x29ce88));if(!_0x486726)continue;const _0x7c0eec=svgEl(_0x453f25(0x8a1),{'x':String(_0x1514d7+_0x80541/0x2),'y':String(_0x2eba1f+_0x3a7236/0x2+0x1),'text-anchor':_0x453f25(0x6d4),'dominant-baseline':_0x453f25(0x3ae),'fill':bandLabelFill(_0xe81f6b),'font-size':String(_0x508ff5),'class':_0x453f25(0x100c)});_0x7c0eec['textContent']=_0x486726,_0x3e81bf['appendChild'](_0x7c0eec);}}),_0x24a4c5[_0x4deef9(0x319)](_0x3e81bf),_0x3bcfc9;}[_0x46af5e(0x5f0)](_0xedb794,_0x148c8c,_0x23de41,_0x41645f,_0x19e0cc,_0x593405,_0x2b8925,_0x241e98,_0x3c0446,_0x35b05a,_0x1e7b17,_0xb4606c=null){const _0x46bf30=_0x46af5e,{padL:_0x2e59de,padT:_0x1f421b,plotW:_0x437911,plotH:_0x205bb7,tStart:_0x39376f,tEnd:_0x46c931}=_0x2b8925,_0x124428=!!_0x2b8925[_0x46bf30(0x609)],_0x442ac1=_0x2b8925[_0x46bf30(0x2d3)]||0x1,_0x5874cd=_0x2b8925[_0x46bf30(0x66c)]??Math[_0x46bf30(0x220)](0x1,_0x46c931-_0x39376f),_0x4df3c1=_0x23de41['entity'],_0x1c9883=this['card'][_0x46bf30(0x349)](_0x4df3c1['color'],_0x4df3c1[_0x46bf30(0x974)])||_0x4df3c1[_0x46bf30(0xd95)]||_0x46bf30(0xae9),_0x3aea73=_0x4df3c1[_0x46bf30(0xc3c)]||'line',_0x16b3cf=_0x23de41[_0x46bf30(0x93a)][_0x46bf30(0x919)](_0x28b769=>_0x28b769['v']!==null);if(!_0x16b3cf[_0x46bf30(0xc02)])return;const _0x31faea=!!_0x3c0446,_0x4efb43=_0x23c8e7=>_0x3c0446?.[_0x46bf30(0xc3f)](_0x23c8e7)??0x0,_0xcfdc34=_0x31faea?_0x1fa148=>_0x593405(_0x4efb43(_0x1fa148['t'])+_0x1fa148['v'],_0x41645f):_0x2fbe91=>_0x593405(_0x2fbe91['v'],_0x41645f),_0x5a5729=!!(_0x4df3c1[_0x46bf30(0xdd5)]?.[_0x46bf30(0x1007)]&&_0x4df3c1['color_thresholds']?.[_0x46bf30(0x202)]?.[_0x46bf30(0xc02)]),_0x16b526=!!_0x4df3c1[_0x46bf30(0xc6b)]?.['enabled'],_0x2e0de8=_0x5a5729?this[_0x46bf30(0x1d2)][_0x46bf30(0x83c)](_0x4df3c1):null,_0x54394d=_0x4df3c1[_0x46bf30(0xdd5)]?.['transition']===_0x46bf30(0xab7)?'hard':'smooth',_0x149a27=_0x4df3c1[_0x46bf30(0xdd5)]?.[_0x46bf30(0x38a)]===_0x46bf30(0xc96)?_0x46bf30(0xc96):_0x46bf30(0x40d),_0x41f76b=_0x4df3c1[_0x46bf30(0xdd5)]?.['source']==='raw'?'raw':'value',_0x568c6a=!!_0x4df3c1['color_thresholds']?.[_0x46bf30(0x873)],_0x1ab093=_0x54394d==='smooth',_0x423940=_0x16b526?_0x4df3c1[_0x46bf30(0xc6b)]:null;let _0x39bf3a=_0x1c9883,_0x197654=_0x5a5729;if(_0x5a5729&&_0x568c6a){let _0x2b86c0=null;for(let _0x5d0c61=_0x16b3cf[_0x46bf30(0xc02)]-0x1;_0x5d0c61>=0x0;_0x5d0c61--){const _0x5a0ccb=_0x16b3cf[_0x5d0c61],_0xd4409c=_0x41f76b===_0x46bf30(0xbcc)&&_0x5a0ccb[_0x46bf30(0xce9)]!=null?_0x5a0ccb[_0x46bf30(0xce9)]:_0x5a0ccb['v'];if(isNum(_0xd4409c)){_0x2b86c0=_0xd4409c;break;}}_0x2b86c0!=null&&(_0x39bf3a=resolveValueColor(_0x2b86c0,_0x2e0de8,_0x1c9883)),_0x197654=![];}let _0x32eacd=null,_0x1cb7ff=null;if(_0x197654&&_0x149a27==='vertical'&&_0x41f76b!==_0x46bf30(0xbcc)){const _0x33fdeb=_0x46bf30(0x224)+_0x23de41[_0x46bf30(0xd18)]+'-'+this['card'][_0x46bf30(0x6e9)],_0x434a51=_0x46bf30(0x9f9)+_0x23de41[_0x46bf30(0xd18)]+'-'+this['card'][_0x46bf30(0x6e9)];_0x32eacd=this['_buildThresholdGradient'](_0x148c8c,_0x33fdeb,_0x2e0de8,_0x41645f,_0x1f421b,_0x205bb7,_0x54394d,0x1,_0x1c9883),_0x1cb7ff=this['_buildThresholdGradient'](_0x148c8c,_0x434a51,_0x2e0de8,_0x41645f,_0x1f421b,_0x205bb7,_0x54394d,0.3,_0x1c9883);}const _0x839db2=(_0x543afc,_0x34f017)=>{const _0x5e3cfc=_0x46bf30;if(_0x197654){const _0x4f0afb=_0x41f76b===_0x5e3cfc(0xbcc)&&_0x543afc[_0x5e3cfc(0xce9)]!=null?_0x543afc[_0x5e3cfc(0xce9)]:_0x543afc['v'];return resolveValueColor(_0x4f0afb,_0x2e0de8,_0x39bf3a,_0x1ab093);}if(_0x16b526&&_0x34f017>0x0)return segmentRiseFallColor(_0x16b3cf[_0x34f017-0x1],_0x543afc,_0x423940,_0x39bf3a);return _0x39bf3a;},_0x97484e=svgEl('g',{'class':'sgc-series\x20sgc-type-'+_0x3aea73+(_0x31faea?'\x20sgc-stacked':'')});if(_0x3aea73===_0x46bf30(0x846)){const _0x3fdadf=_0x19e0cc,_0x21b56a=resolveGroupBy(_0x241e98,(_0x46c931-_0x39376f)/0x36ee80);if(_0x21b56a===_0x46bf30(0xe7d)&&_0x16b3cf['length']>0x0){if(!this['_calBarPositions'])this[_0x46bf30(0x891)]=new Map();for(const _0xc53126 of _0x23de41[_0x46bf30(0x93a)])this[_0x46bf30(0x891)][_0x46bf30(0xa2d)](_0xc53126['t'],_0x3fdadf(_0xc53126['t']));}let _0x2d8ede=Infinity;for(let _0x13c1b9=0x1;_0x13c1b9<_0x16b3cf[_0x46bf30(0xc02)];_0x13c1b9++){const _0x87ae8e=_0x3fdadf(_0x16b3cf[_0x13c1b9]['t'])-_0x3fdadf(_0x16b3cf[_0x13c1b9-0x1]['t']);if(_0x87ae8e>0x0&&_0x87ae8e<_0x2d8ede)_0x2d8ede=_0x87ae8e;}let _0x344d31;if(_0x21b56a===_0x46bf30(0xe7d)){const _0x470f86=new Date(_0x39376f),_0x38f200=new Date(_0x46c931),_0x1300a8=Math[_0x46bf30(0x220)](0x1,(_0x38f200[_0x46bf30(0x5e9)]()-_0x470f86[_0x46bf30(0x5e9)]())*0xc+(_0x38f200[_0x46bf30(0x4a0)]()-_0x470f86[_0x46bf30(0x4a0)]())+0x1);_0x344d31=_0x437911/_0x1300a8;}else{if(_0x124428)_0x344d31=_0x437911/_0x442ac1;else{const _0x50d8cf=toNum(_0x241e98[_0x46bf30(0x71e)])||0x2,_0x332d54=groupBucketMs(_0x21b56a,(_0x46c931-_0x39376f)/0x36ee80,_0x50d8cf);_0x344d31=Math[_0x46bf30(0xba1)](_0x437911,_0x332d54/Math[_0x46bf30(0x220)](0x1,_0x5874cd)*_0x437911);}}const _0x2e76cc=isFinite(_0x2d8ede)?_0x2d8ede:Math[_0x46bf30(0x220)](0x1,_0x344d31),_0x41310a=toNum(_0x241e98[_0x46bf30(0x8e9)]),_0x1a7c5a=Math[_0x46bf30(0x220)](0x0,_0x2e76cc*0.4),_0x1336e4=isNum(_0x41310a)&&_0x41310a>0x0?Math[_0x46bf30(0xba1)](_0x41310a,_0x1a7c5a):Math['max'](0x1,_0x2e76cc*0.25),_0x24bd26=Math['max'](0x1,_0x2e76cc-_0x1336e4),_0x2907c5=Math['max'](0x1,_0x35b05a?.[_0x46bf30(0xe04)]||0x1),_0x2d714c=_0x35b05a?.['index']||0x0,_0x162361=Math[_0x46bf30(0x220)](0x1,_0x24bd26/_0x2907c5);_0x23de41[_0x46bf30(0xa8f)]=new Map(),_0x23de41[_0x46bf30(0x738)]=_0x162361/0x2;const _0x59ee3e=_0x4df3c1[_0x46bf30(0xc6b)]?.['enabled']?_0x4df3c1['rise_fall_colors']:null,_0x48346e=_0x59ee3e&&(_0x59ee3e[_0x46bf30(0x17a)]||_0x59ee3e[_0x46bf30(0x705)]),_0x25dad4=_0x59ee3e&&(_0x59ee3e[_0x46bf30(0x6c9)]||_0x59ee3e['fall_color']),_0x419282=this['card'][_0x46bf30(0x349)](_0x48346e)||_0x48346e||_0x46bf30(0x736),_0x5bd749=this[_0x46bf30(0x1d2)][_0x46bf30(0x349)](_0x25dad4)||_0x25dad4||_0x46bf30(0x57a);_0x23de41['_candleColors']={'up':_0x419282,'down':_0x5bd749};const _0x3362a8=Math[_0x46bf30(0x220)](0x1,Math[_0x46bf30(0xba1)](0x2,_0x162361*0.14));_0x16b3cf['forEach'](_0x5d97db=>{const _0x152bf7=_0x46bf30;if(!isNum(_0x5d97db['v']))return;if(_0x5d97db['t']<_0x39376f||_0x5d97db['t']>=_0x46c931)return;const _0x48d76c=isNum(_0x5d97db['o'])?_0x5d97db['o']:_0x5d97db['v'],_0x540953=isNum(_0x5d97db['c'])?_0x5d97db['c']:_0x5d97db['v'],_0x3de267=isNum(_0x5d97db['h'])?_0x5d97db['h']:Math['max'](_0x48d76c,_0x540953),_0x5a23a6=isNum(_0x5d97db['l'])?_0x5d97db['l']:Math[_0x152bf7(0xba1)](_0x48d76c,_0x540953),_0x1471d8=_0x3fdadf(_0x5d97db['t']),_0x576513=_0x1471d8-_0x24bd26/0x2+_0x2d714c*_0x162361,_0x39edc9=_0x576513+_0x162361/0x2;_0x23de41[_0x152bf7(0xa8f)][_0x152bf7(0xa2d)](_0x5d97db['t'],_0x39edc9);const _0x452488=_0x540953>=_0x48d76c,_0x3abd2f=_0x452488?_0x419282:_0x5bd749,_0x1e1d9d=_0x593405(_0x3de267,_0x41645f),_0x25d652=_0x593405(_0x5a23a6,_0x41645f);_0x97484e['appendChild'](svgEl('line',{'x1':_0x39edc9,'y1':Math[_0x152bf7(0xba1)](_0x1e1d9d,_0x25d652),'x2':_0x39edc9,'y2':Math[_0x152bf7(0x220)](_0x1e1d9d,_0x25d652),'stroke':_0x3abd2f,'stroke-width':String(_0x3362a8),'class':_0x152bf7(0x1030)}));const _0x191ae5=_0x593405(_0x48d76c,_0x41645f),_0x441cf5=_0x593405(_0x540953,_0x41645f);let _0x2759d8=Math['min'](_0x191ae5,_0x441cf5),_0x170f9c=Math[_0x152bf7(0x1ae)](_0x191ae5-_0x441cf5);_0x170f9c<0x1&&(_0x170f9c=0x1,_0x2759d8-=0.5),_0x97484e[_0x152bf7(0x319)](svgEl(_0x152bf7(0x53f),{'x':_0x576513,'y':_0x2759d8,'width':_0x162361,'height':_0x170f9c,'fill':_0x3abd2f,'stroke':_0x3abd2f,'stroke-width':'1','data-t':String(_0x5d97db['t']),'data-x':String(_0x576513),'data-w':String(_0x162361),'class':_0x152bf7(0x4ee)+(_0x452488?'up':'down')}));}),_0xedb794['appendChild'](_0x97484e);return;}if(_0x3aea73===_0x46bf30(0x8fb)){const _0x1ca726=_0x19e0cc,_0x268365=resolveGroupBy(_0x241e98,(_0x46c931-_0x39376f)/0x36ee80),_0x1d74f7=resolveGroupBy(_0x241e98,(_0x46c931-_0x39376f)/0x36ee80,_0x4df3c1),_0x4a31f7=_0x1d74f7!==_0x268365&&['date',_0x46bf30(0x6f1),_0x46bf30(0xe7d),_0x46bf30(0x73e)]['includes'](_0x1d74f7),_0x51cebc=_0x4a31f7?resolveDisplayTimeZone(this[_0x46bf30(0x1d2)]?.[_0x46bf30(0x1dc)],_0x241e98):null,_0x579a47=_0x4a31f7?resolveFirstWeekday(this[_0x46bf30(0x1d2)]?.[_0x46bf30(0x1dc)]):0x1;_0x23de41[_0x46bf30(0xff0)]=_0x4a31f7,_0x23de41[_0x46bf30(0x91c)]=_0x4a31f7?_0x1d74f7:null;if(_0x268365===_0x46bf30(0xe7d)&&_0x16b3cf[_0x46bf30(0xc02)]>0x0){if(!this[_0x46bf30(0x891)])this[_0x46bf30(0x891)]=new Map();for(const _0x297b34 of _0x23de41[_0x46bf30(0x93a)]){this[_0x46bf30(0x891)][_0x46bf30(0xa2d)](_0x297b34['t'],_0x1ca726(_0x297b34['t']));}}let _0x7e4e3b=Infinity;for(let _0x3fd4d7=0x1;_0x3fd4d7<_0x16b3cf[_0x46bf30(0xc02)];_0x3fd4d7++){const _0x273e2d=_0x1ca726(_0x16b3cf[_0x3fd4d7]['t'])-_0x1ca726(_0x16b3cf[_0x3fd4d7-0x1]['t']);if(_0x273e2d>0x0&&_0x273e2d<_0x7e4e3b)_0x7e4e3b=_0x273e2d;}let _0x47736b;if(_0x268365===_0x46bf30(0xe7d)){const _0x49b393=new Date(_0x39376f),_0x3af273=new Date(_0x46c931),_0x3a7b54=Math[_0x46bf30(0x220)](0x1,(_0x3af273[_0x46bf30(0x5e9)]()-_0x49b393['getFullYear']())*0xc+(_0x3af273['getMonth']()-_0x49b393[_0x46bf30(0x4a0)]())+0x1);_0x47736b=_0x437911/_0x3a7b54;}else{if(_0x124428)_0x47736b=_0x437911/_0x442ac1;else{const _0x3337ef=toNum(_0x241e98[_0x46bf30(0x71e)])||0x2,_0x4c6f65=groupBucketMs(_0x268365,(_0x46c931-_0x39376f)/0x36ee80,_0x3337ef);_0x47736b=Math[_0x46bf30(0xba1)](_0x437911,_0x4c6f65/Math[_0x46bf30(0x220)](0x1,_0x5874cd)*_0x437911);}}const _0x4f1e68=isFinite(_0x7e4e3b)?_0x7e4e3b:Math['max'](0x1,_0x47736b),_0x122b8c=toNum(_0x241e98['bar_spacing']),_0x5919e7=Math[_0x46bf30(0x220)](0x0,_0x4f1e68*0.3),_0x272f20=isNum(_0x122b8c)&&_0x122b8c>0x0?Math[_0x46bf30(0xba1)](_0x122b8c,_0x5919e7):0x0,_0x167293=Math[_0x46bf30(0x220)](0x1,_0x4f1e68-_0x272f20),_0x2e075f=Math[_0x46bf30(0x220)](0x1,_0x35b05a?.[_0x46bf30(0xe04)]||0x1),_0x34b50c=_0x35b05a?.[_0x46bf30(0x4c3)]||0x0,_0x370eb2=Math[_0x46bf30(0x220)](0x1,_0x167293/_0x2e075f);_0x23de41['_barCenters']=new Map(),_0x23de41[_0x46bf30(0x738)]=_0x370eb2/0x2;const _0x2ab7d6=_0x593405(clamp(0x0,_0x41645f['lo'],_0x41645f['hi']),_0x41645f),_0xd1a033=_0x4df3c1[_0x46bf30(0x34b)]!==![],_0x2933c5=toNum(_0x241e98[_0x46bf30(0xf2c)]),_0x27826e=isNum(_0x2933c5)?Math['max'](0x0,_0x2933c5):Math[_0x46bf30(0x220)](0x0,Math['min'](0x5,_0x370eb2/0x3));let _0x10feff=null;const _0x4b22f4=new Map();_0xd1a033&&(_0x10feff=_0x46bf30(0xf86)+_0x23de41[_0x46bf30(0xd18)]+'-'+this[_0x46bf30(0x1d2)][_0x46bf30(0x6e9)]);_0x16b3cf[_0x46bf30(0xd27)]((_0xa5114a,_0x8fa70a)=>{const _0x4a8b0e=_0x46bf30;if(!isNum(_0xa5114a['v']))return;if(_0xa5114a['t']>=_0x46c931)return;if(_0x4a31f7?calendarCellEndMs(_0xa5114a['t'],_0x1d74f7,_0x51cebc,_0x579a47)<=_0x39376f:_0xa5114a['t']<_0x39376f)return;let _0x5c7a00=_0x1ca726(_0xa5114a['t']);if(!isFinite(_0x7e4e3b)&&_0x167293<=_0x437911){const _0x385f96=_0x167293/0x2;if(_0x5c7a00-_0x385f96<_0x2e59de)_0x5c7a00=_0x2e59de+_0x385f96;else{if(_0x5c7a00+_0x385f96>_0x2e59de+_0x437911)_0x5c7a00=_0x2e59de+_0x437911-_0x385f96;}}let _0x76ceb=_0x5c7a00-_0x167293/0x2+_0x34b50c*_0x370eb2,_0x4ec70d=_0x370eb2;if(_0x4a31f7){const _0x7f3243=Math[_0x4a8b0e(0x220)](_0x2e59de,_0x1ca726(_0xa5114a['t'])),_0x18c864=Math['min'](_0x2e59de+_0x437911,_0x1ca726(calendarCellEndMs(_0xa5114a['t'],_0x1d74f7,_0x51cebc,_0x579a47))),_0xb38f1c=Math[_0x4a8b0e(0x220)](0x1,_0x18c864-_0x7f3243-_0x272f20);_0x4ec70d=Math[_0x4a8b0e(0x220)](0x1,_0xb38f1c/_0x2e075f),_0x76ceb=_0x7f3243+_0x272f20/0x2+_0x34b50c*_0x4ec70d;}_0x23de41[_0x4a8b0e(0xa8f)][_0x4a8b0e(0xa2d)](_0xa5114a['t'],_0x76ceb+_0x4ec70d/0x2);if(_0xa5114a['v']===0x0)return;const _0x305596=_0x31faea?_0x4efb43(_0xa5114a['t']):0x0,_0x4a728b=_0x593405(_0x305596+_0xa5114a['v'],_0x41645f),_0x471847=_0x31faea?_0x593405(_0x305596,_0x41645f):_0x2ab7d6;let _0x3971fb=Math['min'](_0x4a728b,_0x471847),_0x1edd93=Math[_0x4a8b0e(0x1ae)](_0x471847-_0x4a728b);_0x1edd93<0x2&&(_0x1edd93=0x2,_0x3971fb=_0x4a728b<=_0x471847?_0x471847-0x2:_0x471847);const _0x14dc34=_0x839db2(_0xa5114a,_0x8fa70a);let _0x5ad839=_0x14dc34;if(_0xd1a033){const _0x52bdc5=_0xa5114a['v']<0x0,_0x2c7364=_0x14dc34+'|'+(_0x52bdc5?0x1:0x0);let _0x2c31bb=_0x4b22f4[_0x4a8b0e(0xc3f)](_0x2c7364);if(!_0x2c31bb){_0x2c31bb=_0x10feff+'-'+_0x4b22f4[_0x4a8b0e(0xc44)];const _0x506e46=svgEl('linearGradient',{'id':_0x2c31bb,'x1':'0','y1':_0x52bdc5?'1':'0','x2':'0','y2':_0x52bdc5?'0':'1','gradientUnits':'objectBoundingBox'});_0x506e46[_0x4a8b0e(0x319)](svgEl(_0x4a8b0e(0x1026),{'offset':'0%','stop-color':_0x14dc34,'stop-opacity':'1'})),_0x506e46[_0x4a8b0e(0x319)](svgEl('stop',{'offset':'100%','stop-color':_0x14dc34,'stop-opacity':'0.4'})),_0x148c8c[_0x4a8b0e(0x319)](_0x506e46),_0x4b22f4[_0x4a8b0e(0xa2d)](_0x2c7364,_0x2c31bb);}_0x5ad839=_0x4a8b0e(0x820)+_0x2c31bb+')';}let _0x1d2d4a=_0x4a8b0e(0xda4);if(_0x31faea&&!_0xb4606c?.[_0x4a8b0e(0x6dd)]){const _0x510523=!!(_0xb4606c?.[_0x4a8b0e(0x9d3)]&&_0xb4606c[_0x4a8b0e(0x9d3)][_0x4a8b0e(0x101d)](_0xa5114a['t'])),_0xa1609e=!!(_0xb4606c?.[_0x4a8b0e(0x522)]&&_0xb4606c[_0x4a8b0e(0x522)][_0x4a8b0e(0x101d)](_0xa5114a['t']));_0x1d2d4a=_0x510523&&_0xa1609e?'all':_0x510523?'top':_0xa1609e?'bottom':'none';}const _0x3aafb4=_0x1d2d4a===_0x4a8b0e(0xf55)||_0x1d2d4a==='bottom',_0x14acba=Math[_0x4a8b0e(0x220)](0x0,Math[_0x4a8b0e(0xba1)](_0x27826e,_0x4ec70d/0x2,_0x3aafb4?_0x1edd93:_0x1edd93/0x2)),_0x27f69e={'fill':_0x5ad839,'data-t':String(_0xa5114a['t']),'data-x':String(_0x76ceb),'data-w':String(_0x4ec70d),'data-band-x':String(_0x4a31f7?_0x76ceb-_0x34b50c*_0x4ec70d-_0x272f20/0x2:_0x5c7a00-_0x4f1e68/0x2),'data-band-w':String(_0x4a31f7?_0x4ec70d*_0x2e075f+_0x272f20:_0x4f1e68),'class':_0x241e98[_0x4a8b0e(0x8fc)]?_0x4a8b0e(0x36c):_0x4a8b0e(0xcbc)};if(_0x14acba>0x0&&(_0x1d2d4a===_0x4a8b0e(0xf55)||_0x1d2d4a==='bottom'))_0x97484e[_0x4a8b0e(0x319)](svgEl(_0x4a8b0e(0x89b),{'d':roundedBarPath(_0x76ceb,_0x3971fb,_0x4ec70d,_0x1edd93,_0x14acba,_0x1d2d4a),..._0x27f69e}));else{const _0x4b5678=_0x1d2d4a===_0x4a8b0e(0x412)?0x0:_0x14acba;_0x97484e[_0x4a8b0e(0x319)](svgEl('rect',{'x':_0x76ceb,'y':_0x3971fb,'width':_0x4ec70d,'height':_0x1edd93,'rx':_0x4b5678,'ry':_0x4b5678,..._0x27f69e}));}}),_0xedb794[_0x46bf30(0x319)](_0x97484e);return;}const _0xde772f=_0x3aea73===_0x46bf30(0x93e)||_0x4df3c1[_0x46bf30(0xad9)],_0x2d4c28=toNum(_0x4df3c1['fill_opacity']),_0x576a6e=isNum(_0x2d4c28)?Math['max'](0x0,Math['min'](0x1,_0x2d4c28)):0.4,_0x39303e=String(_0x576a6e),_0x7dee1e=String(_0x576a6e/0x8),_0x17509c=_0x4df3c1[_0x46bf30(0x460)]!==![],_0x3fcd25=_0x3aea73==='step',_0x2273dc=!!_0x4df3c1['smooth']&&!_0x3fcd25,_0x902605=_0x197654&&(_0x41f76b===_0x46bf30(0xbcc)||_0x149a27===_0x46bf30(0xc96))?_0x46bf30(0x2a9):_0x197654?_0x46bf30(0x34b):_0x16b526?_0x46bf30(0x4b9):_0x46bf30(0xe4e),_0x1ded87=_0x31faea&&!(_0x23de41[_0x46bf30(0x93a)]||_0x16b3cf)[_0x46bf30(0x42a)](_0x9c1af7=>isNum(_0x9c1af7['v'])&&_0x9c1af7['v']!==0x0),_0x536dd5=_0x1ded87?()=>!![]:_0x1b7321=>!isNum(_0x1b7321['v']),_0x1ab966=[];{let _0x119d1e=[];for(const _0x257507 of _0x23de41['points']||_0x16b3cf){if(_0x536dd5(_0x257507)){if(_0x119d1e[_0x46bf30(0xc02)])_0x1ab966[_0x46bf30(0xb31)](_0x119d1e);_0x119d1e=[];}else _0x119d1e[_0x46bf30(0xb31)](_0x257507);}if(_0x119d1e[_0x46bf30(0xc02)])_0x1ab966[_0x46bf30(0xb31)](_0x119d1e);}if(!_0x1ab966[_0x46bf30(0xc02)]){_0xedb794[_0x46bf30(0x319)](_0x97484e);return;}const _0xfe54d5=topEdgeMode(_0x23de41),_0x27788f=_0x459f45=>buildShapePath(_0xfe54d5,_0x459f45,_0x19e0cc,_0xcfdc34),_0x53c0fe=_0x269028=>{const _0x10beba=_0x46bf30,_0x138efb=_0x27788f(_0x269028);if(!_0x138efb)return'';if(_0x31faea){const _0x802394=_0x1e7b17?topEdgeMode(_0x1e7b17):_0x10beba(0x853),_0x336c39=_0x3538bd=>_0x593405(_0x4efb43(_0x3538bd['t']),_0x41645f),_0x4f7fe0=_0x269028[_0x10beba(0x165)]()[_0x10beba(0x7ea)]();let _0x2de051;if(_0x802394===_0x10beba(0xfb0)){_0x2de051='L\x20'+_0x19e0cc(_0x4f7fe0[0x0]['t'])+'\x20'+_0x336c39(_0x4f7fe0[0x0]);for(let _0x1f5f06=0x1;_0x1f5f06<_0x4f7fe0['length'];_0x1f5f06++){const _0x16e08e=_0x336c39(_0x4f7fe0[_0x1f5f06-0x1]),_0x28f3d0=_0x336c39(_0x4f7fe0[_0x1f5f06]);if(_0x28f3d0!==_0x16e08e)_0x2de051+=_0x10beba(0xe71)+_0x19e0cc(_0x4f7fe0[_0x1f5f06-0x1]['t'])+'\x20'+_0x28f3d0;_0x2de051+=_0x10beba(0xe71)+_0x19e0cc(_0x4f7fe0[_0x1f5f06]['t'])+'\x20'+_0x28f3d0;}}else{const _0x709d93=buildShapePath(_0x802394,_0x4f7fe0,_0x19e0cc,_0x336c39);_0x2de051=_0x709d93?'L'+_0x709d93['slice'](0x1):'';}return _0x138efb+'\x20'+_0x2de051+'\x20Z';}const _0x11884b=_0x593405(clamp(0x0,_0x41645f['lo'],_0x41645f['hi']),_0x41645f);return _0x138efb+_0x10beba(0xe71)+_0x19e0cc(_0x269028[_0x269028[_0x10beba(0xc02)]-0x1]['t'])+'\x20'+_0x11884b+_0x10beba(0xe71)+_0x19e0cc(_0x269028[0x0]['t'])+'\x20'+_0x11884b+'\x20Z';};if(_0xde772f){const _0x36f3c0=((()=>{const _0x413c05=_0x46bf30;let _0x32cf7f=![],_0x1e34b4=![],_0x1e5605=Infinity,_0x378e83=-Infinity;for(const _0x5f1242 of _0x23de41['points']||[]){if(!isNum(_0x5f1242?.['v']))continue;if(_0x5f1242['v']>0x0)_0x1e34b4=!![];if(_0x5f1242['v']<0x0)_0x32cf7f=!![];if(_0x5f1242['v']<_0x1e5605)_0x1e5605=_0x5f1242['v'];if(_0x5f1242['v']>_0x378e83)_0x378e83=_0x5f1242['v'];}const _0x2054c1=_0x1e34b4&&_0x32cf7f;return{'neg':_0x32cf7f&&!_0x1e34b4,'mixed':_0x2054c1,'f':_0x2054c1?Math['max'](0.05,Math[_0x413c05(0xba1)](0.95,_0x378e83/(_0x378e83-_0x1e5605))):0x0};})()),_0x47447d=_0x36f3c0[_0x46bf30(0x522)],_0x48adb5=(_0x2cd939,_0x6fd444)=>{const _0x1d2ff8=_0x46bf30;_0x36f3c0[_0x1d2ff8(0x732)]?(_0x2cd939[_0x1d2ff8(0x319)](svgEl(_0x1d2ff8(0x1026),{'offset':'0%','stop-color':_0x6fd444,'stop-opacity':_0x39303e})),_0x2cd939[_0x1d2ff8(0x319)](svgEl(_0x1d2ff8(0x1026),{'offset':Math['round'](_0x36f3c0['f']*0x3e8)/0xa+'%','stop-color':_0x6fd444,'stop-opacity':_0x7dee1e})),_0x2cd939[_0x1d2ff8(0x319)](svgEl(_0x1d2ff8(0x1026),{'offset':_0x1d2ff8(0x583),'stop-color':_0x6fd444,'stop-opacity':_0x39303e}))):(_0x2cd939[_0x1d2ff8(0x319)](svgEl(_0x1d2ff8(0x1026),{'offset':'0%','stop-color':_0x6fd444,'stop-opacity':_0x39303e})),_0x2cd939[_0x1d2ff8(0x319)](svgEl('stop',{'offset':'100%','stop-color':_0x6fd444,'stop-opacity':_0x7dee1e})));};if(_0x902605==='segments'||_0x902605===_0x46bf30(0x2a9)){const _0x557ecf=new Map(),_0x1af17c=(_0x239e90,_0x26c968,_0x300395,_0x176fcb,_0x30c2aa,_0x3c0d53,_0x394268,_0x4261aa)=>{const _0x522d0a=_0x46bf30,_0x1d68db=_0x3fcd25?'L\x20'+_0x300395+'\x20'+_0x26c968:_0x4261aa?'C\x20'+_0x4261aa[_0x522d0a(0x84e)]+'\x20'+_0x4261aa[_0x522d0a(0x9fe)]+'\x20'+_0x4261aa[_0x522d0a(0x388)]+'\x20'+_0x4261aa[_0x522d0a(0x5c5)]+'\x20'+_0x300395+'\x20'+_0x176fcb:'L\x20'+_0x300395+'\x20'+_0x176fcb,_0x2bd357='M\x20'+_0x239e90+'\x20'+_0x26c968+'\x20'+_0x1d68db+_0x522d0a(0xe71)+_0x300395+'\x20'+_0x3c0d53+_0x522d0a(0xe71)+_0x239e90+'\x20'+_0x30c2aa+'\x20Z';let _0x23bb51;if(_0x4df3c1['gradient']){let _0x3025c3=_0x557ecf[_0x522d0a(0xc3f)](_0x394268);if(!_0x3025c3){_0x3025c3=_0x522d0a(0xff3)+_0x23de41[_0x522d0a(0xd18)]+'-'+_0x557ecf[_0x522d0a(0xc44)]+'-'+this[_0x522d0a(0x1d2)][_0x522d0a(0x6e9)];const _0x152970=_0x47447d,_0x43d510=svgEl(_0x522d0a(0xcc2),{'id':_0x3025c3,'x1':'0','y1':_0x152970?'1':'0','x2':'0','y2':_0x152970?'0':'1'});_0x48adb5(_0x43d510,_0x394268),_0x148c8c['appendChild'](_0x43d510),_0x557ecf[_0x522d0a(0xa2d)](_0x394268,_0x3025c3);}_0x23bb51=_0x522d0a(0x820)+_0x3025c3+')';}else _0x23bb51=rgba(_0x394268,_0x576a6e*0.625);_0x97484e['appendChild'](svgEl(_0x522d0a(0x89b),{'d':_0x2bd357,'fill':_0x23bb51,'stroke':_0x522d0a(0x412),'class':_0x522d0a(0xc5b)}));};for(const _0x961b80 of _0x1ab966){const _0x37d0f4=buildSegments(_0x961b80,_0x19e0cc,_0xcfdc34,_0x3fcd25,_0x2273dc);for(const {from:_0x500a5a,to:_0x3a2542,cp:_0x35cda8}of _0x37d0f4){const _0x4127ef=_0x3a2542&&_0x500a5a[_0x46bf30(0xce9)]!=null?_0x500a5a[_0x46bf30(0xce9)]:_0x500a5a['v'],_0x59a105=_0x3a2542[_0x46bf30(0xce9)]!=null?_0x3a2542['rawV']:_0x3a2542['v'],_0x58ac83=_0x19e0cc(_0x500a5a['t']),_0x25dea4=_0x19e0cc(_0x3a2542['t']),_0x4a5ab7=_0xcfdc34(_0x500a5a),_0x27718b=_0xcfdc34(_0x3a2542),_0x13b45f=_0x593405(clamp(0x0,_0x41645f['lo'],_0x41645f['hi']),_0x41645f),_0x1c2909=_0x31faea?_0x593405(_0x4efb43(_0x500a5a['t']),_0x41645f):_0x13b45f,_0x1015bd=_0x31faea?_0x593405(_0x4efb43(_0x3a2542['t']),_0x41645f):_0x13b45f;if(_0x902605!==_0x46bf30(0x2a9)){const _0x1276c7=segmentRiseFallColor(_0x500a5a,_0x3a2542,_0x423940,_0x1c9883);_0x1af17c(_0x58ac83,_0x4a5ab7,_0x25dea4,_0x27718b,_0x1c2909,_0x1015bd,_0x1276c7,_0x35cda8);continue;}const _0x414a4d=thresholdCrossings(_0x4127ef,_0x59a105,_0x2e0de8);if(!_0x414a4d[_0x46bf30(0xc02)]||_0x3fcd25){const _0x50369a=resolveValueColor(_0x4127ef,_0x2e0de8,_0x1c9883,_0x1ab093);_0x1af17c(_0x58ac83,_0x4a5ab7,_0x25dea4,_0x27718b,_0x1c2909,_0x1015bd,_0x50369a,_0x35cda8);continue;}let _0x39d386=_0x58ac83,_0x28ab1b=_0x4a5ab7,_0x2b1a1d=_0x1c2909,_0x401668=_0x4127ef;for(const _0x32d02d of _0x414a4d){const _0x361d33=(_0x32d02d-_0x4127ef)/(_0x59a105-_0x4127ef),_0x5d0bd6=_0x58ac83+(_0x25dea4-_0x58ac83)*_0x361d33,_0x52837d=_0x4a5ab7+(_0x27718b-_0x4a5ab7)*_0x361d33,_0x3787e6=_0x1c2909+(_0x1015bd-_0x1c2909)*_0x361d33,_0x37ef19=(_0x401668+_0x32d02d)/0x2,_0x95382e=resolveValueColor(_0x37ef19,_0x2e0de8,_0x1c9883,_0x1ab093);_0x1af17c(_0x39d386,_0x28ab1b,_0x5d0bd6,_0x52837d,_0x2b1a1d,_0x3787e6,_0x95382e),_0x39d386=_0x5d0bd6,_0x28ab1b=_0x52837d,_0x2b1a1d=_0x3787e6,_0x401668=_0x32d02d;}const _0x5297d2=(_0x401668+_0x59a105)/0x2,_0x1e1274=resolveValueColor(_0x5297d2,_0x2e0de8,_0x1c9883,_0x1ab093);_0x1af17c(_0x39d386,_0x28ab1b,_0x25dea4,_0x27718b,_0x2b1a1d,_0x1015bd,_0x1e1274);}}}else{let _0x3f898f;if(_0x902605==='gradient')_0x3f898f=_0x1cb7ff;else{if(_0x4df3c1[_0x46bf30(0x34b)]){const _0x496363=_0x46bf30(0xebf)+_0x23de41[_0x46bf30(0xd18)]+'-'+this[_0x46bf30(0x1d2)][_0x46bf30(0x6e9)],_0x37e36d=_0x47447d,_0x2f395d=svgEl(_0x46bf30(0xcc2),{'id':_0x496363,'x1':'0','y1':_0x37e36d?'1':'0','x2':'0','y2':_0x37e36d?'0':'1'});_0x48adb5(_0x2f395d,_0x39bf3a),_0x148c8c[_0x46bf30(0x319)](_0x2f395d),_0x3f898f='url(#'+_0x496363+')';}else _0x3f898f=rgba(_0x39bf3a,_0x576a6e/0x2);}for(const _0x327295 of _0x1ab966){const _0x5947d6=_0x53c0fe(_0x327295);if(!_0x5947d6)continue;_0x97484e[_0x46bf30(0x319)](svgEl(_0x46bf30(0x89b),{'d':_0x5947d6,'fill':_0x3f898f,'class':_0x46bf30(0x492)}));}}}if(_0x17509c){const _0x5d6ba0=String(toNum(_0x4df3c1[_0x46bf30(0x4e0)])||2.5),_0x2afcb3=!!_0x241e98[_0x46bf30(0x8fc)],_0x37c94d=_0x2afcb3?_0x46bf30(0xfb2):'',_0x4e8ef4=lineDashArray(_0x4df3c1[_0x46bf30(0x3da)],toNum(_0x4df3c1['line_width'])||2.5);if(_0x902605===_0x46bf30(0x4b9)||_0x902605===_0x46bf30(0x2a9)){const _0x4f7d6b=(_0x2031b1,_0x38ae6c)=>{const _0x54d2d7=_0x46bf30;_0x97484e[_0x54d2d7(0x319)](svgEl(_0x54d2d7(0x89b),{'d':_0x2031b1,'fill':_0x54d2d7(0x412),'stroke':_0x38ae6c,'stroke-width':_0x5d6ba0,'stroke-linejoin':_0x54d2d7(0x686),'stroke-linecap':_0x54d2d7(0x686),..._0x4e8ef4?{'stroke-dasharray':_0x4e8ef4}:{},'class':_0x54d2d7(0x8b5)+_0x37c94d}));},_0x5f6b90=(_0x36e694,_0x1b68e8,_0x2b293b,_0x1e1385,_0x51ac94)=>_0x4f7d6b('M\x20'+_0x36e694+'\x20'+_0x1b68e8+'\x20L\x20'+_0x2b293b+'\x20'+_0x1e1385,_0x51ac94);for(const _0x3ad7a6 of _0x1ab966){const _0x1a7259=buildSegments(_0x3ad7a6,_0x19e0cc,_0xcfdc34,_0x3fcd25,_0x2273dc);for(const {d:_0x130324,from:_0x1098b2,to:_0x4410f1}of _0x1a7259){if(_0x902605!==_0x46bf30(0x2a9)){const _0x1f92ba=segmentRiseFallColor(_0x1098b2,_0x4410f1,_0x423940,_0x1c9883);_0x97484e[_0x46bf30(0x319)](svgEl('path',{'d':_0x130324,'fill':_0x46bf30(0x412),'stroke':_0x1f92ba,'stroke-width':_0x5d6ba0,'stroke-linejoin':'round','stroke-linecap':'round',..._0x4e8ef4?{'stroke-dasharray':_0x4e8ef4}:{},'class':_0x46bf30(0x8b5)+_0x37c94d}));continue;}const _0x586fd3=_0x1098b2['rawV']!=null?_0x1098b2[_0x46bf30(0xce9)]:_0x1098b2['v'],_0x2b5c97=_0x4410f1[_0x46bf30(0xce9)]!=null?_0x4410f1[_0x46bf30(0xce9)]:_0x4410f1['v'],_0x111c49=_0x19e0cc(_0x1098b2['t']),_0xe35489=_0x19e0cc(_0x4410f1['t']),_0x574f79=_0xcfdc34(_0x1098b2),_0xe1afeb=_0xcfdc34(_0x4410f1),_0x4cff91=thresholdCrossings(_0x586fd3,_0x2b5c97,_0x2e0de8);if(!_0x4cff91[_0x46bf30(0xc02)]||_0x3fcd25){const _0x102135=resolveValueColor(_0x586fd3,_0x2e0de8,_0x1c9883,_0x1ab093);_0x4f7d6b(_0x130324,_0x102135);continue;}let _0x4bd1f0=_0x111c49,_0x254b2b=_0x574f79,_0x1a77c4=_0x586fd3;for(const _0x345c64 of _0x4cff91){const _0x2d3cdb=(_0x345c64-_0x586fd3)/(_0x2b5c97-_0x586fd3),_0x524f70=_0x111c49+(_0xe35489-_0x111c49)*_0x2d3cdb,_0x4ca97b=_0x574f79+(_0xe1afeb-_0x574f79)*_0x2d3cdb,_0x17f096=(_0x1a77c4+_0x345c64)/0x2,_0x3f29fe=resolveValueColor(_0x17f096,_0x2e0de8,_0x1c9883,_0x1ab093);_0x5f6b90(_0x4bd1f0,_0x254b2b,_0x524f70,_0x4ca97b,_0x3f29fe),_0x4bd1f0=_0x524f70,_0x254b2b=_0x4ca97b,_0x1a77c4=_0x345c64;}const _0x16b5b1=(_0x1a77c4+_0x2b5c97)/0x2,_0x6f1c1d=resolveValueColor(_0x16b5b1,_0x2e0de8,_0x1c9883,_0x1ab093);_0x5f6b90(_0x4bd1f0,_0x254b2b,_0xe35489,_0xe1afeb,_0x6f1c1d);}}}else{let _0x1fb8c9='';for(const _0x22b386 of _0x1ab966){const _0x48fd84=_0x27788f(_0x22b386);if(_0x48fd84)_0x1fb8c9+=(_0x1fb8c9?'\x20':'')+_0x48fd84;}_0x1fb8c9&&_0x97484e[_0x46bf30(0x319)](svgEl('path',{'d':_0x1fb8c9,'fill':_0x46bf30(0x412),'stroke':_0x902605===_0x46bf30(0x34b)?_0x32eacd:_0x39bf3a,'stroke-width':_0x5d6ba0,'stroke-linejoin':_0x46bf30(0x686),'stroke-linecap':_0x46bf30(0x686),..._0x4e8ef4?{'stroke-dasharray':_0x4e8ef4}:{},'class':_0x46bf30(0x851)+_0x37c94d}));}}const _0x359703=_0x1ab966[_0x46bf30(0x919)](_0x221e27=>_0x221e27['length']===0x1);if(_0x4df3c1[_0x46bf30(0x3ff)]||_0x359703[_0x46bf30(0xc02)]){const _0x51226b=_0x4df3c1['show_points']?_0x1ab966:_0x359703,_0x95ec64=new Map();for(let _0x4e7925=0x0;_0x4e7925<_0x16b3cf[_0x46bf30(0xc02)];_0x4e7925++)_0x95ec64['set'](_0x16b3cf[_0x4e7925],_0x4e7925);const _0x10f00d=toNum(_0x4df3c1[_0x46bf30(0x759)]),_0x29b656=isNum(_0x10f00d)&&_0x10f00d>0x0?clamp(_0x10f00d,0.5,0x14):Math['max'](0x2,(toNum(_0x4df3c1[_0x46bf30(0x4e0)])||2.5)*0.8);for(const _0xa10173 of _0x51226b){for(const _0x548dd1 of _0xa10173){if(_0x548dd1['_seam']||_0x548dd1['_tail'])continue;const _0x2a6093=_0x95ec64[_0x46bf30(0xc3f)](_0x548dd1)??0x0;_0x97484e[_0x46bf30(0x319)](svgEl(_0x46bf30(0x854),{'cx':_0x19e0cc(_0x548dd1['t']),'cy':_0xcfdc34(_0x548dd1),'r':_0x29b656,'fill':_0x839db2(_0x548dd1,_0x2a6093),'class':'sgc-point'}));}}}_0xedb794[_0x46bf30(0x319)](_0x97484e);}[_0x46af5e(0x76b)](_0x278fc4,_0x384427,_0x1194ba,_0x5138d0,_0x367002,_0x5c429a,_0x29a00b,_0x5df024,_0x1b12d4){const _0x1f7cda=_0x46af5e,_0x2ab230=[..._0x1194ba]['filter'](_0x142c91=>isNum(toNum(_0x142c91[_0x1f7cda(0x2ea)]))&&_0x142c91[_0x1f7cda(0xd95)])[_0x1f7cda(0xd09)]((_0x46b671,_0x122767)=>toNum(_0x46b671[_0x1f7cda(0x2ea)])-toNum(_0x122767['value']));if(!_0x2ab230[_0x1f7cda(0xc02)])return null;const {lo:_0x5e6a5e,hi:_0x512849}=_0x5138d0,_0x5531b0=_0x512849-_0x5e6a5e||0x1,_0x10e99a=_0x364296=>clamp((_0x512849-_0x364296)/_0x5531b0,0x0,0x1),_0x50bf4b=_0x2c2244=>(_0x2c2244*0x64)[_0x1f7cda(0x198)](0x2)+'%',_0x403519=svgEl(_0x1f7cda(0xcc2),{'id':_0x384427,'gradientUnits':_0x1f7cda(0x788),'x1':'0','y1':String(_0x367002),'x2':'0','y2':String(_0x367002+_0x5c429a)}),_0x492a2e=[..._0x2ab230][_0x1f7cda(0x7ea)]();_0x403519['appendChild'](svgEl(_0x1f7cda(0x1026),{'offset':'0%','stop-color':_0x492a2e[0x0]['color'],'stop-opacity':String(_0x5df024)}));if(_0x29a00b===_0x1f7cda(0xab7))for(let _0x4ae4f4=0x0;_0x4ae4f4<_0x492a2e[_0x1f7cda(0xc02)];_0x4ae4f4++){const _0x30301e=_0x10e99a(toNum(_0x492a2e[_0x4ae4f4]['value'])),_0x452961=_0x492a2e[_0x4ae4f4]['color'],_0x5aea00=_0x492a2e[_0x4ae4f4+0x1]?.['color']||_0x492a2e[_0x4ae4f4]['color'];_0x403519[_0x1f7cda(0x319)](svgEl(_0x1f7cda(0x1026),{'offset':_0x50bf4b(_0x30301e),'stop-color':_0x452961,'stop-opacity':String(_0x5df024)})),_0x403519[_0x1f7cda(0x319)](svgEl('stop',{'offset':_0x50bf4b(_0x30301e),'stop-color':_0x5aea00,'stop-opacity':String(_0x5df024)}));}else for(let _0x4d8f3f=0x0;_0x4d8f3f<_0x492a2e['length'];_0x4d8f3f++){const _0x215ca9=_0x10e99a(toNum(_0x492a2e[_0x4d8f3f][_0x1f7cda(0x2ea)]));_0x403519[_0x1f7cda(0x319)](svgEl('stop',{'offset':_0x50bf4b(_0x215ca9),'stop-color':_0x492a2e[_0x4d8f3f][_0x1f7cda(0xd95)],'stop-opacity':String(_0x5df024)}));}return _0x403519[_0x1f7cda(0x319)](svgEl('stop',{'offset':_0x1f7cda(0x583),'stop-color':_0x492a2e[_0x492a2e['length']-0x1]['color'],'stop-opacity':String(_0x5df024)})),_0x278fc4['appendChild'](_0x403519),'url(#'+_0x384427+')';}[_0x46af5e(0x737)](_0x171a12,_0x1c9ede,_0x538fef,_0x1e456e){const _0x18b108=_0x46af5e;if(!Array['isArray'](_0x1c9ede)||!_0x1c9ede[_0x18b108(0xc02)])return;const _0x491ffa=svgEl('g',{'class':'sgc-annotations-bg'});for(const _0x29e4e2 of _0x1c9ede){if(!_0x29e4e2||typeof _0x29e4e2!==_0x18b108(0xc18))continue;if(_0x29e4e2[_0x18b108(0xefa)]===_0x18b108(0xed2))this[_0x18b108(0x990)](_0x491ffa,_0x29e4e2,_0x538fef,_0x1e456e);else{if(_0x29e4e2['type']==='span')this[_0x18b108(0x347)](_0x491ffa,_0x29e4e2,_0x538fef);}}if(_0x491ffa[_0x18b108(0x285)]['length'])_0x171a12[_0x18b108(0x319)](_0x491ffa);}[_0x46af5e(0x416)](_0x26531d,_0x510568,_0x4ff3e4,_0x685571){const _0x172596=_0x46af5e;if(!Array['isArray'](_0x510568)||!_0x510568['length'])return;const _0x585041=svgEl('g',{'class':_0x172596(0x7de)});for(const _0x126328 of _0x510568){if(!_0x126328||typeof _0x126328!==_0x172596(0xc18))continue;if(_0x126328[_0x172596(0xefa)]==='threshold')this[_0x172596(0x1d6)](_0x585041,_0x126328,_0x4ff3e4,_0x685571);else{if(_0x126328[_0x172596(0xefa)]===_0x172596(0x536))this['_drawEventAnnotation'](_0x585041,_0x126328,_0x4ff3e4);}}if(_0x585041['childNodes'][_0x172596(0xc02)])_0x26531d[_0x172596(0x319)](_0x585041);}[_0x46af5e(0x1b9)](_0x6986bc){const _0x5e3cbc=_0x46af5e;switch(_0x6986bc){case _0x5e3cbc(0xa63):return null;case'dotted':return _0x5e3cbc(0x6a1);case _0x5e3cbc(0x2b5):default:return _0x5e3cbc(0xb70);}}[_0x46af5e(0x7c9)](_0x230d6d,_0x2b8c8d,_0x3535b5){const _0x489431=_0x46af5e,_0x472ed4=svgEl(_0x489431(0x8a1),_0x2b8c8d);return _0x472ed4[_0x489431(0x3d2)]=_0x3535b5,_0x230d6d[_0x489431(0x319)](_0x472ed4),_0x472ed4;}[_0x46af5e(0xb11)](_0x2bd10b){const _0x38aff1=_0x46af5e,_0x7ca85f=toNum(_0x2bd10b?.[_0x38aff1(0xa9b)]);if(isNum(_0x7ca85f))return String(clamp(_0x7ca85f,0x0,0x1));const _0x1bd1b5=toNum(_0x2bd10b?.[_0x38aff1(0x7a2)]);if(!isNum(_0x1bd1b5))return'1';const _0x211659=_0x2bd10b?.[_0x38aff1(0xefa)]===_0x38aff1(0xed2)||_0x2bd10b?.[_0x38aff1(0xefa)]===_0x38aff1(0x7db)?0.15:0x1;return String(clamp(_0x1bd1b5/_0x211659,0x0,0x1));}[_0x46af5e(0x1d6)](_0x51d727,_0x1fed9a,_0x4ee69f,_0x11b14e){const _0x2a724c=_0x46af5e,_0x2b0ee0=resolveDynamicValue(_0x1fed9a[_0x2a724c(0x2ea)],_0x11b14e);if(!isNum(_0x2b0ee0))return;const {padL:_0x1e0ebb,plotW:_0x2c1e1a,yBounds:_0x433d2b,y2Bounds:_0x2d11af,mapY:_0x33980e}=_0x4ee69f,_0xcd3d2=_0x1fed9a[_0x2a724c(0x8cc)]==='secondary'?_0x2d11af:_0x433d2b;if(!_0xcd3d2)return;if(_0x2b0ee0<_0xcd3d2['lo']||_0x2b0ee0>_0xcd3d2['hi'])return;const _0xc5b0ff=_0x33980e(_0x2b0ee0,_0xcd3d2),_0x50f728=_0x1fed9a[_0x2a724c(0xd95)]||_0x2a724c(0xae9),_0x253210=toNum(_0x1fed9a['line_width'])||1.5,_0x2f967c=this['_annotationLineDash'](_0x1fed9a['line_style']||_0x2a724c(0x2b5)),_0x25360f=toNum(_0x1fed9a[_0x2a724c(0x7a2)]),_0x532359=svgEl('line',{'x1':_0x1e0ebb,'x2':_0x1e0ebb+_0x2c1e1a,'y1':_0xc5b0ff,'y2':_0xc5b0ff,'stroke':_0x50f728,'stroke-width':String(_0x253210),'stroke-opacity':isNum(_0x25360f)?String(_0x25360f):'1','class':_0x2a724c(0x6ff)});if(_0x2f967c)_0x532359[_0x2a724c(0x751)](_0x2a724c(0xd08),_0x2f967c);_0x51d727[_0x2a724c(0x319)](_0x532359);const _0x34ffc4=_0x1fed9a['show_values']!==![],_0x2ab868=_0x1fed9a[_0x2a724c(0xf1f)]?_0x34ffc4?_0x1fed9a[_0x2a724c(0xf1f)]+'\x20('+_0x2b0ee0+')':String(_0x1fed9a[_0x2a724c(0xf1f)]):_0x34ffc4?String(_0x2b0ee0):null;if(_0x2ab868){const _0x129599=_0x1fed9a[_0x2a724c(0x684)]||_0x2a724c(0x1fd),_0x3dc150=_0x129599==='left'?_0x1e0ebb+0x4:_0x1e0ebb+_0x2c1e1a-0x4,_0x522941=_0x129599===_0x2a724c(0xaaf)?_0x2a724c(0x4b0):_0x2a724c(0x244);this[_0x2a724c(0x7c9)](_0x51d727,{'x':String(_0x3dc150),'y':String(_0xc5b0ff-0x3),'text-anchor':_0x522941,'class':_0x2a724c(0x925),'fill':_0x1fed9a['label_color']||_0x50f728,'font-size':String(toNum(_0x1fed9a[_0x2a724c(0x6e0)])||0xa),'opacity':this[_0x2a724c(0xb11)](_0x1fed9a)},_0x2ab868);}}['_drawBandAnnotation'](_0x5edde5,_0x265f2f,_0xa5855,_0xb1459b){const _0x297163=_0x46af5e,_0x13c17f=resolveDynamicValue(_0x265f2f[_0x297163(0x2ea)]??_0x265f2f['from'],_0xb1459b),_0x5bb87f=resolveDynamicValue(_0x265f2f[_0x297163(0xee4)]??_0x265f2f['to'],_0xb1459b);if(!isNum(_0x13c17f)||!isNum(_0x5bb87f))return;const {padL:_0x205d01,plotW:_0x2b0fc8,yBounds:_0x3549b5,y2Bounds:_0x4a0214,mapY:_0x1ec687}=_0xa5855,_0x5e92ae=_0x265f2f[_0x297163(0x8cc)]==='secondary'?_0x4a0214:_0x3549b5;if(!_0x5e92ae)return;const _0x1b11d9=Math[_0x297163(0xba1)](_0x13c17f,_0x5bb87f),_0x58165f=Math[_0x297163(0x220)](_0x13c17f,_0x5bb87f),_0x4ea61a=clamp(_0x1b11d9,_0x5e92ae['lo'],_0x5e92ae['hi']),_0x211895=clamp(_0x58165f,_0x5e92ae['lo'],_0x5e92ae['hi']);if(_0x211895<=_0x4ea61a)return;const _0x556487=_0x1ec687(_0x211895,_0x5e92ae),_0x4bf4ba=_0x1ec687(_0x4ea61a,_0x5e92ae),_0x5a4299=_0x265f2f[_0x297163(0xd95)]||_0x297163(0xae9),_0x217b84=toNum(_0x265f2f[_0x297163(0x7a2)]);_0x5edde5[_0x297163(0x319)](svgEl(_0x297163(0x53f),{'x':String(_0x205d01),'y':String(_0x556487),'width':String(_0x2b0fc8),'height':String(Math['max'](0x1,_0x4bf4ba-_0x556487)),'fill':_0x5a4299,'fill-opacity':String(isNum(_0x217b84)?_0x217b84:0.15),'class':_0x297163(0xd90)}));if(_0x265f2f[_0x297163(0xf1f)]){const _0x44b242=_0x265f2f[_0x297163(0x205)]!==![],_0x565241=_0x44b242?'\x20('+_0x1b11d9+'–'+_0x58165f+')':'';this['_appendText'](_0x5edde5,{'x':String(_0x205d01+_0x2b0fc8-0x4),'y':String((_0x556487+_0x4bf4ba)/0x2+0x3),'text-anchor':'end','class':_0x297163(0x81e),'fill':_0x265f2f[_0x297163(0xf29)]||_0x5a4299,'font-size':String(toNum(_0x265f2f[_0x297163(0x6e0)])||0xa),'opacity':this[_0x297163(0xb11)](_0x265f2f)},String(_0x265f2f[_0x297163(0xf1f)])+_0x565241);}else _0x265f2f[_0x297163(0x205)]!==![]&&this[_0x297163(0x7c9)](_0x5edde5,{'x':String(_0x205d01+_0x2b0fc8-0x4),'y':String((_0x556487+_0x4bf4ba)/0x2+0x3),'text-anchor':_0x297163(0x244),'class':_0x297163(0x81e),'fill':_0x265f2f[_0x297163(0xf29)]||_0x5a4299,'font-size':String(toNum(_0x265f2f['label_font_size'])||0xa),'opacity':this[_0x297163(0xb11)](_0x265f2f)},_0x1b11d9+'–'+_0x58165f);}[_0x46af5e(0x347)](_0x528bab,_0x4830e1,_0x5c0575){const _0x460f51=_0x46af5e,_0x2740bc=isNum(_0x4830e1[_0x460f51(0x4b0)])?_0x4830e1[_0x460f51(0x4b0)]:parseAnnotationTime(_0x4830e1[_0x460f51(0x4b0)]),_0x26a9a3=isNum(_0x4830e1[_0x460f51(0x244)])?_0x4830e1['end']:parseAnnotationTime(_0x4830e1[_0x460f51(0x244)]);if(!isNum(_0x2740bc)||!isNum(_0x26a9a3))return;const _0x445f57=this[_0x460f51(0x1d2)][_0x460f51(0xf89)]||this[_0x460f51(0x1d2)][_0x460f51(0xbe0)],_0x43b97f=_0x445f57['start'][_0x460f51(0x1028)](),_0x1320f5=_0x445f57[_0x460f51(0x244)]['getTime'](),{padT:_0x3723be,plotH:_0x3e072b,mapX:_0x2bd223}=_0x5c0575,_0x161e33=clamp(Math['min'](_0x2740bc,_0x26a9a3),_0x43b97f,_0x1320f5),_0x305d8c=clamp(Math['max'](_0x2740bc,_0x26a9a3),_0x43b97f,_0x1320f5);if(_0x305d8c<=_0x161e33)return;const _0x5e32c1=_0x2bd223(_0x161e33),_0x71b602=_0x2bd223(_0x305d8c),_0x460338=_0x4830e1['color']||_0x460f51(0xae9),_0x519532=toNum(_0x4830e1[_0x460f51(0x7a2)]);_0x528bab[_0x460f51(0x319)](svgEl(_0x460f51(0x53f),{'x':String(_0x5e32c1),'y':String(_0x3723be),'width':String(Math[_0x460f51(0x220)](0x1,_0x71b602-_0x5e32c1)),'height':String(_0x3e072b),'fill':_0x460338,'fill-opacity':String(isNum(_0x519532)?_0x519532:0.15),'class':_0x460f51(0xfa0)})),_0x4830e1[_0x460f51(0xf1f)]&&this['_appendText'](_0x528bab,{'x':String((_0x5e32c1+_0x71b602)/0x2),'y':String(_0x3723be+0xc),'text-anchor':_0x460f51(0x6d4),'class':_0x460f51(0xaff),'fill':_0x4830e1[_0x460f51(0xf29)]||_0x460338,'font-size':String(toNum(_0x4830e1[_0x460f51(0x6e0)])||0xa),'opacity':this[_0x460f51(0xb11)](_0x4830e1)},String(_0x4830e1['label']));}[_0x46af5e(0xa2c)](_0x50020f,_0x28bfd6,_0x191483){const _0x3d61cd=_0x46af5e,_0x1932e5=isNum(_0x28bfd6['time'])?_0x28bfd6[_0x3d61cd(0xfe2)]:parseAnnotationTime(_0x28bfd6[_0x3d61cd(0xfe2)]);if(!isNum(_0x1932e5))return;const _0x2e49d9=this[_0x3d61cd(0x1d2)][_0x3d61cd(0xf89)]||this['card'][_0x3d61cd(0xbe0)],_0x3783ba=_0x2e49d9[_0x3d61cd(0x4b0)][_0x3d61cd(0x1028)](),_0x5ad5f3=_0x2e49d9['end'][_0x3d61cd(0x1028)]();if(_0x1932e5<_0x3783ba||_0x1932e5>_0x5ad5f3)return;const {padT:_0x4b3abc,plotH:_0x471d38,mapX:_0x2dfb7e}=_0x191483,_0x324887=_0x2dfb7e(_0x1932e5),_0x3324d2=_0x28bfd6[_0x3d61cd(0xd95)]||_0x3d61cd(0xae9),_0x23b69b=toNum(_0x28bfd6[_0x3d61cd(0x4e0)])||1.5,_0x18dbaf=this['_annotationLineDash'](_0x28bfd6[_0x3d61cd(0x3da)]||_0x3d61cd(0x998)),_0x1b0800=toNum(_0x28bfd6['opacity']),_0x545fea=svgEl(_0x3d61cd(0xcd2),{'x1':String(_0x324887),'x2':String(_0x324887),'y1':String(_0x4b3abc),'y2':String(_0x4b3abc+_0x471d38),'stroke':_0x3324d2,'stroke-width':String(_0x23b69b),'stroke-opacity':isNum(_0x1b0800)?String(_0x1b0800):'1','class':'sgc-ann-event'});if(_0x18dbaf)_0x545fea[_0x3d61cd(0x751)](_0x3d61cd(0xd08),_0x18dbaf);_0x50020f[_0x3d61cd(0x319)](_0x545fea);if(_0x28bfd6[_0x3d61cd(0xf1f)]){const _0x310353=_0x28bfd6[_0x3d61cd(0x684)]||_0x3d61cd(0xf55),_0x3a95a4=_0x310353==='bottom'?_0x4b3abc+_0x471d38-0x4:_0x4b3abc+0xc;this[_0x3d61cd(0x7c9)](_0x50020f,{'x':String(_0x324887+0x4),'y':String(_0x3a95a4),'text-anchor':_0x3d61cd(0x4b0),'class':_0x3d61cd(0xceb),'fill':_0x28bfd6[_0x3d61cd(0xf29)]||_0x3324d2,'font-size':String(toNum(_0x28bfd6[_0x3d61cd(0x6e0)])||0xa),'opacity':this[_0x3d61cd(0xb11)](_0x28bfd6)},String(_0x28bfd6[_0x3d61cd(0xf1f)]));}}[_0x46af5e(0xbdb)](_0x28cb0c,_0x404cb8,_0x5f04c7,_0x50e4ed,_0xb0acfc){const _0x4b77c5=_0x46af5e,_0x267fef=resolveCardLanguage(_0x5f04c7,this[_0x4b77c5(0x1d2)]?.[_0x4b77c5(0xfe9)]),_0xdb019=resolveDisplayTimeZone(_0x5f04c7,_0x404cb8),_0x11d9db=new Date(_0x28cb0c);let _0x3405e7=null;const _0x34ccb7=effXAxisInterval(_0x404cb8);if(_0x34ccb7){const _0x3beccc=String(_0x34ccb7)['match'](/^(\d+)\s*(h|d|w|M)$/);if(_0x3beccc){const _0x24b27f=_0x3beccc[0x2],_0x1a0ca5=parseInt(_0x3beccc[0x1],0xa);_0x3405e7=_0x24b27f==='M'?_0x4b77c5(0xe7d):_0x24b27f==='w'?_0x4b77c5(0x6f1):_0x24b27f==='d'?_0x4b77c5(0x309):_0x1a0ca5<=0xc?_0x4b77c5(0x2ab):'day';}}if(!_0x3405e7&&isNum(_0x50e4ed)&&isNum(_0xb0acfc)){const _0x8cf5ae=resolveGroupBy(_0x404cb8,(_0xb0acfc-_0x50e4ed)/0x36ee80);if(_0x8cf5ae===_0x4b77c5(0xe7d))_0x3405e7=_0x4b77c5(0xe7d);else{if(_0x8cf5ae===_0x4b77c5(0x73e))_0x3405e7=_0x4b77c5(0x73e);else{if(_0x8cf5ae==='week')_0x3405e7=_0x4b77c5(0x6f1);else{if(_0x8cf5ae===_0x4b77c5(0x88f))_0x3405e7='day';else{if(_0x8cf5ae==='hour')_0x3405e7=_0x4b77c5(0x2ab);}}}}}const _0x2226c7=toNum(_0x404cb8?.[_0x4b77c5(0x881)]),_0x782f2b=isNum(_0x2226c7)&&_0x2226c7>0x0?_0x2226c7*0x36ee80:isNum(_0x50e4ed)&&isNum(_0xb0acfc)?_0xb0acfc-_0x50e4ed:NaN;!_0x3405e7&&isNum(_0x782f2b)&&(_0x3405e7=_0x782f2b<0x2*0x5265c00?'hour':'day');const _0x1f994a=_0x1cacb2=>{const _0x5ec846=_0x4b77c5,_0x555071=getCachedDateTimeFormatter(_0x267fef,_0xdb019?{..._0x1cacb2,'timeZone':_0xdb019}:_0x1cacb2);return _0x555071?_0x555071[_0x5ec846(0xf20)](_0x11d9db):_0x11d9db[_0x5ec846(0xaeb)]();};if(_0x3405e7===_0x4b77c5(0x73e))return _0x1f994a({'year':'numeric'});if(_0x3405e7===_0x4b77c5(0xe7d)){const _0x2c8fe9=isNum(_0x50e4ed)&&isNum(_0xb0acfc)&&tzParts(_0x50e4ed,_0xdb019)['y']!==tzParts(_0xb0acfc,_0xdb019)['y'];return _0x1f994a(_0x2c8fe9?{'month':_0x4b77c5(0xfec),'year':_0x4b77c5(0x615)}:{'month':_0x4b77c5(0xfec)});}const _0x1db538=effDatetimeFormat(_0x404cb8);if((_0x3405e7===_0x4b77c5(0x2ab)||_0x3405e7===_0x4b77c5(0x976))&&isNum(_0x782f2b)&&_0x782f2b<0x2*0x5265c00){if(_0x1db538&&_0x1db538!==_0x4b77c5(0x8e1)&&!(_0x1db538[_0x4b77c5(0xf06)](_0x4b77c5(0xed1))&&!/[Hhms]/[_0x4b77c5(0x920)](_0x1db538)))return applyDatetimePattern(_0x11d9db,_0x1db538,_0x267fef,_0xdb019);return _0x1f994a(_localeTimeOpts(_0x5f04c7,{'hour':_0x4b77c5(0x615),'minute':_0x4b77c5(0x615)}));}if(_0x1db538&&_0x1db538!=='system'&&_0x1db538[_0x4b77c5(0xf06)](_0x4b77c5(0xed1)))return applyDatetimePattern(_0x11d9db,_0x1db538,_0x267fef,_0xdb019);const _0x530792=toNum(_0x404cb8?.[_0x4b77c5(0x881)]),_0x3e54ad=isNum(_0x530792)&&_0x530792>0x0?_0x530792/0x18:isNum(_0x50e4ed)&&isNum(_0xb0acfc)?(_0xb0acfc-_0x50e4ed)/0x5265c00:null;if(_0x3405e7===_0x4b77c5(0x309)&&_0x3e54ad!==null&&_0x3e54ad<=29.5)return _0x1f994a({'weekday':_0x4b77c5(0xfec),'day':_0x4b77c5(0x897),'month':'short'});return _0x1f994a({'month':'short','day':_0x4b77c5(0x897)});}['_attachTooltip'](_0x57fbc3,_0x13c880,_0x329c1a,_0x52fcaf,_0x23f43a,_0x5469f1,_0x2cb626){const _0x52ad0c=_0x46af5e,{padL:_0x2836d5,padT:_0x31afab,plotW:_0x2e01c2,plotH:_0x5566c0,mapX:_0x2bd984,mapY:_0x4eb6d6,yBounds:_0x3b72a8,y2Bounds:_0x3e8d0a,boundsFor:_0x28f91f,tStart:_0x2dcf8b,tEnd:_0x16cf66}=_0x329c1a,_0x28b2f5=this['card'],_0x157daf=_0x52fcaf[_0x52ad0c(0xeed)]!==![],_0x1fd569=_0x52fcaf['crosshair']===!![]&&_0x157daf,_0x1f9f6a=Math['max'](0x1,Math[_0x52ad0c(0xba1)](0x2,Math['round'](toNum(_0x52fcaf[_0x52ad0c(0xbe7)]))||0x1)),_0x4847c4=_0x26a7d4=>_0x2836d5+(_0x26a7d4-_0x2dcf8b)/(_0x16cf66-_0x2dcf8b)*_0x2e01c2,_0xf0ad8c=_0x546b55=>_0x2dcf8b+(_0x546b55-_0x2836d5)/_0x2e01c2*(_0x16cf66-_0x2dcf8b);let _0x4f2955=[];_0x28b2f5[_0x52ad0c(0x38f)]=null;if(Array[_0x52ad0c(0x902)](_0x28b2f5['_pins'])&&_0x28b2f5['_pins']['length']>_0x1f9f6a)_0x28b2f5[_0x52ad0c(0x9cd)]=_0x28b2f5['_pins'][_0x52ad0c(0x165)](0x0,_0x1f9f6a);let _0x2f0895=_0x5469f1[_0x52ad0c(0xee6)](_0x52ad0c(0xc43));!_0x2f0895&&(_0x2f0895=document[_0x52ad0c(0xbde)]('div'),_0x2f0895[_0x52ad0c(0x400)]=_0x52ad0c(0xfd6),_0x5469f1[_0x52ad0c(0x319)](_0x2f0895));_0x2f0895[_0x52ad0c(0x944)][_0x52ad0c(0x4c4)]=_0x52ad0c(0x412);const _0x48f3e5=svgEl(_0x52ad0c(0xcd2),{'class':'sgc-crosshair','y1':String(_0x31afab),'y2':String(_0x31afab+_0x5566c0)});_0x48f3e5[_0x52ad0c(0x944)][_0x52ad0c(0x4c4)]=_0x52ad0c(0x412),_0x57fbc3[_0x52ad0c(0x319)](_0x48f3e5);let _0xc76ef3=null;if(_0x52fcaf['period_highlight']){_0xc76ef3=svgEl(_0x52ad0c(0x53f),{'class':_0x52ad0c(0x77e),'y':String(_0x31afab),'height':String(_0x5566c0)});if(_0x52fcaf[_0x52ad0c(0x80a)]){const _0x4933bd=String(_0x52fcaf[_0x52ad0c(0x80a)])[_0x52ad0c(0xa11)]();_0xc76ef3[_0x52ad0c(0x944)][_0x52ad0c(0x290)]=_0x4933bd;const _0x598020=/^(rgba|hsla)\(/i[_0x52ad0c(0x920)](_0x4933bd)||/^#([0-9a-fA-F]{4}|[0-9a-fA-F]{8})$/[_0x52ad0c(0x920)](_0x4933bd);_0xc76ef3[_0x52ad0c(0x944)]['fillOpacity']=_0x598020?'':_0x52ad0c(0x687);}_0xc76ef3[_0x52ad0c(0x944)][_0x52ad0c(0x4c4)]=_0x52ad0c(0x412);const _0x54de7f=_0x57fbc3[_0x52ad0c(0xee6)](_0x52ad0c(0x828))||_0x57fbc3['querySelector'](_0x52ad0c(0x754));if(_0x54de7f)_0x57fbc3[_0x52ad0c(0x52e)](_0xc76ef3,_0x54de7f);else _0x57fbc3[_0x52ad0c(0x319)](_0xc76ef3);}const _0x507145=svgEl('g',{'class':_0x52ad0c(0x6db)});_0x57fbc3[_0x52ad0c(0x319)](_0x507145);const _0x4d66ac=svgEl('g',{'class':_0x52ad0c(0xd0c)});_0x57fbc3[_0x52ad0c(0x319)](_0x4d66ac);const _0xe1744c=[],_0x51f61b=_0x36a343=>{const _0x33a173=_0x52ad0c;while(_0xe1744c[_0x33a173(0xc02)]<_0x36a343){const _0x22d2b4=svgEl(_0x33a173(0x854),{'class':_0x33a173(0x666),'r':'4'});_0x22d2b4[_0x33a173(0x944)]['display']=_0x33a173(0x412),_0x507145[_0x33a173(0x319)](_0x22d2b4),_0xe1744c['push'](_0x22d2b4);}},_0x5ee02c=()=>{const _0x245ab3=_0x52ad0c;for(const _0x174ae6 of _0xe1744c)_0x174ae6[_0x245ab3(0x944)][_0x245ab3(0x4c4)]=_0x245ab3(0x412);},_0x14470a=_0x1c33bf=>{const _0x4c5b55=_0x52ad0c,_0x582599=_0x57fbc3[_0x4c5b55(0x9cc)](),_0x1b2e62=_0x5469f1[_0x4c5b55(0x9cc)](),_0x26440a=parseFloat(_0x57fbc3['getAttribute'](_0x4c5b55(0xf19))[_0x4c5b55(0xbc0)]('\x20')[0x2]),_0x398681=_0x582599[_0x4c5b55(0x581)]/_0x26440a;return{'x':_0x582599[_0x4c5b55(0xaaf)]-_0x1b2e62[_0x4c5b55(0xaaf)]+_0x1c33bf*_0x398681,'y':_0x582599[_0x4c5b55(0xf55)]-_0x1b2e62['top']+(_0x31afab+_0x5566c0/0x2)*_0x398681};},_0x412793=this[_0x52ad0c(0x891)],_0x183948=_0x517792=>_0x412793?_0x412793[_0x52ad0c(0xc3f)](_0x517792)??_0x2bd984(_0x517792):_0x2bd984(_0x517792),_0x11db8a=resolveDisplayTimeZone(_0x23f43a,_0x52fcaf),_0x438cf0=resolveFirstWeekday(_0x23f43a),_0x215ae1=(_0xba79ab,_0x5d9000)=>{const _0x45907e=_0x52ad0c,_0x47a581=[];let _0x3f8b71=0x0,_0x58b550=Infinity,_0x274cbb=_0xba79ab;const _0x403556=_0xde9950=>[_0x45907e(0x8fb),'candlestick']['includes'](_0xde9950['entity']?.[_0x45907e(0xc3c)]||_0xde9950['entity']?.[_0x45907e(0xefa)]);let _0x55fe0a=null;if(_0x412793){let _0x15f2ce=Infinity;for(const _0x285042 of _0x13c880){if(!_0x403556(_0x285042))continue;for(const _0x245059 of _0x285042[_0x45907e(0x93a)]){if(_0x245059['v']===null)continue;const _0xd624ff=_0x412793[_0x45907e(0xc3f)](_0x245059['t']);if(_0xd624ff===undefined)continue;const _0xf5c66c=Math[_0x45907e(0x1ae)](_0xd624ff-_0xba79ab);_0xf5c66c<_0x15f2ce&&(_0x15f2ce=_0xf5c66c,_0x55fe0a=_0x245059['t']);}}}else{for(const _0x415b08 of _0x13c880){if(!_0x403556(_0x415b08)||_0x415b08[_0x45907e(0xff0)]||!_0x415b08[_0x45907e(0xa8f)]||!isNum(_0x415b08['_barHalfWidth']))continue;const _0x3b7309=_0x415b08[_0x45907e(0x738)];for(const _0x229666 of _0x415b08[_0x45907e(0x93a)]){if(_0x229666['v']===null)continue;const _0x3cac4c=_0x415b08['_barCenters']['get'](_0x229666['t']);if(_0x3cac4c===undefined)continue;if(_0xba79ab>=_0x3cac4c-_0x3b7309&&_0xba79ab<=_0x3cac4c+_0x3b7309){_0x55fe0a=_0x229666['t'];break;}}if(_0x55fe0a!==null)break;}if(_0x55fe0a===null){let _0x18affd=Infinity;for(const _0x12c83b of _0x13c880){if(!_0x403556(_0x12c83b)||_0x12c83b[_0x45907e(0xff0)]||!_0x12c83b[_0x45907e(0xa8f)])continue;for(const _0x35a0e2 of _0x12c83b[_0x45907e(0x93a)]){if(_0x35a0e2['v']===null)continue;const _0x423aab=_0x12c83b['_barCenters'][_0x45907e(0xc3f)](_0x35a0e2['t']);if(_0x423aab===undefined)continue;const _0x3e2874=Math[_0x45907e(0x1ae)](_0x423aab-_0xba79ab);_0x3e2874<_0x18affd&&(_0x18affd=_0x3e2874,_0x55fe0a=_0x35a0e2['t']);}}}}for(const _0x12f662 of _0x13c880){let _0x4d2b1b;const _0x2402b8=_0x403556(_0x12f662);if(isStripEntity(_0x12f662['entity'])){_0x4d2b1b=null;for(const _0x306e7f of _0x12f662[_0x45907e(0x93a)]){if(_0x306e7f['t']>_0x5d9000)break;if(_0x306e7f['v']!==null&&_0x306e7f['v']!==undefined)_0x4d2b1b=_0x306e7f;}}else{if(_0x2402b8&&_0x12f662['_spanBars'])_0x4d2b1b=_0x12f662[_0x45907e(0x93a)][_0x45907e(0x90c)](_0x5d1345=>_0x5d1345['v']!==null&&_0x5d1345['t']<=_0x5d9000&&_0x5d9000<calendarCellEndMs(_0x5d1345['t'],_0x12f662[_0x45907e(0x91c)],_0x11db8a,_0x438cf0))||null;else{if(_0x2402b8){if(_0x55fe0a===null)continue;_0x4d2b1b=_0x12f662[_0x45907e(0x93a)][_0x45907e(0x90c)](_0x5b60ff=>_0x5b60ff['t']===_0x55fe0a&&_0x5b60ff['v']!==null)||null;}else{const _0x217862=_0x12f662[_0x45907e(0x93a)][_0x45907e(0x42a)](_0x138b30=>_0x138b30['_tail'])?_0x12f662['points'][_0x45907e(0x919)](_0x388091=>!_0x388091[_0x45907e(0xa46)]):_0x12f662[_0x45907e(0x93a)];_0x4d2b1b=findClosestPoint(_0x217862,_0x5d9000);if(_0x4d2b1b&&_0x4d2b1b['_seam'])_0x4d2b1b=null;if(_0x4d2b1b&&_0x12f662['points'][_0x45907e(0xc02)]>0x1){const _0x425acf=_0x12f662['points'][0x0]['t'],_0x50636d=_0x12f662[_0x45907e(0x93a)][_0x12f662[_0x45907e(0x93a)]['length']-0x1]['t'],_0x509f56=(_0x50636d-_0x425acf)/(_0x12f662[_0x45907e(0x93a)][_0x45907e(0xc02)]-0x1);if(_0x5d9000<_0x425acf-_0x509f56||_0x5d9000>_0x50636d+_0x509f56)_0x4d2b1b=null;}}}}if(!_0x4d2b1b||_0x4d2b1b['v']===null)continue;_0x47a581[_0x45907e(0xb31)]({'s':_0x12f662,'p':_0x4d2b1b});if(_0x12f662[_0x45907e(0x974)]?.['_compareOf']==null&&!isStripEntity(_0x12f662[_0x45907e(0x974)])&&!_0x12f662[_0x45907e(0xff0)])_0x3f8b71+=_0x4d2b1b['v'];if(_0x2402b8&&!_0x12f662[_0x45907e(0xff0)]&&_0x12f662[_0x45907e(0xa8f)]){const _0x5bdf6e=_0x12f662[_0x45907e(0xa8f)]['get'](_0x4d2b1b['t']);if(_0x5bdf6e!==undefined){const _0x165079=Math[_0x45907e(0x1ae)](_0x5bdf6e-_0xba79ab);_0x165079<_0x58b550&&(_0x58b550=_0x165079,_0x274cbb=_0x5bdf6e);}}}return{'rows':_0x47a581,'total':_0x3f8b71,'snapX':_0x274cbb};},_0x4320ff=_0x25f177=>{const _0x22ef8b=_0x52ad0c;let _0x12ebd0=0x0;for(const _0x395288 of _0x25f177)_0x12ebd0+=_0x395288[_0x22ef8b(0xc02)];_0x51f61b(_0x12ebd0),_0x5ee02c();let _0x763b41=0x0;for(const _0x5b4239 of _0x25f177){for(const {s:_0x103c63,p:_0x597efe}of _0x5b4239){const _0x168618=_0x103c63[_0x22ef8b(0x974)];if(_0x168618[_0x22ef8b(0xa43)]===![]||isStripEntity(_0x168618)){_0x763b41++;continue;}const _0x185ebd=_0x28f91f?_0x28f91f(_0x103c63):_0x168618[_0x22ef8b(0x8cc)]===_0x22ef8b(0xbec)?_0x3e8d0a:_0x3b72a8;if(!_0x185ebd){_0x763b41++;continue;}const _0x1289f6=_0x183948(_0x597efe['t']),_0x13f0ce=_0x2cb626?.['baselineByIdx']?.[_0x22ef8b(0xc3f)](_0x103c63[_0x22ef8b(0xd18)])||null,_0x357e06=_0x13f0ce?(_0x13f0ce[_0x22ef8b(0xc3f)](_0x597efe['t'])??0x0)+_0x597efe['v']:_0x597efe['v'],_0x205026=_0x4eb6d6(_0x357e06,_0x185ebd),_0x24f472=_0xe1744c[_0x763b41++];_0x24f472[_0x22ef8b(0x751)]('cx',String(_0x1289f6)),_0x24f472[_0x22ef8b(0x751)]('cy',String(_0x205026)),_0x24f472[_0x22ef8b(0x751)]('fill',this['card'][_0x22ef8b(0x349)](_0x168618[_0x22ef8b(0xd95)],_0x168618[_0x22ef8b(0x974)])||_0x168618[_0x22ef8b(0xd95)]||_0x22ef8b(0xae9)),_0x24f472[_0x22ef8b(0x944)][_0x22ef8b(0x4c4)]='';}}},_0x498ecb={'day':0x1,'week':0x2,'month':0x3,'year':0x4},_0x45026b=(_0x213a57,_0xa80c1)=>{const _0x19d9b2=_0x52ad0c,_0x45443b=_0x213a57[_0x19d9b2(0x919)](_0x20dac9=>!isStripEntity(_0x20dac9['s'][_0x19d9b2(0x974)]));let _0x25b09a=null;for(const {s:_0x1751e7}of _0x45443b[_0x19d9b2(0xc02)]?_0x45443b:_0x213a57){const _0x348cb6=_0x498ecb[_0x1751e7?.[_0x19d9b2(0xb86)]]?_0x1751e7[_0x19d9b2(0xb86)]:null;if(!_0x348cb6){_0x25b09a=null;break;}if(!_0x25b09a||_0x498ecb[_0x348cb6]<_0x498ecb[_0x25b09a])_0x25b09a=_0x348cb6;}let _0x17ee06=null,_0x4a1d18=Infinity;for(const _0xb4ee34 of _0x45443b[_0x19d9b2(0xc02)]?_0x45443b:_0x213a57){if(!_0xb4ee34||!_0xb4ee34['p']||!isNum(_0xb4ee34['p']['t'])||isStripEntity(_0xb4ee34['s']['entity']))continue;const _0x436521=Math['abs'](_0xb4ee34['p']['t']-_0xa80c1);_0x436521<_0x4a1d18&&(_0x4a1d18=_0x436521,_0x17ee06=_0xb4ee34);}const _0x2700ba=_0x17ee06?_0x17ee06['p']['t']:_0xa80c1,_0x38d7b3=_0x52fcaf[_0x19d9b2(0x553)]?this['_axisDateLabel'](_0x2700ba,_0x52fcaf,_0x23f43a,_0x2dcf8b,_0x16cf66):formatDateTime(new Date(_0x2700ba),_0x52fcaf,_0x23f43a,_0x25b09a?{'precision':_0x25b09a}:undefined);return{'headerGrain':_0x25b09a,'dateStr':_0x38d7b3};},_0x3ce5a4=_0x2d1bf2=>{const _0x513f8c=_0x52ad0c,_0x415b99=_0x2d1bf2['entity'],_0xd88847=typeof _0x415b99['tooltip_name']===_0x513f8c(0xade)&&(_0x415b99['tooltip_name'][_0x513f8c(0xf06)]('{{')||_0x415b99['tooltip_name']['includes']('{%')),_0x5ceb45=_0x415b99['tooltip_name']!==undefined?_0xd88847?pickName(_0x415b99['tooltip_name'],this[_0x513f8c(0x1d2)][_0x513f8c(0x7be)](_0x415b99[_0x513f8c(0xce6)],_0x415b99['entity'])??_0x2d1bf2[_0x513f8c(0x731)]?.[_0x513f8c(0x17e)],_0x2d1bf2[_0x513f8c(0x731)])??'':_0x415b99[_0x513f8c(0xce6)]:pickName(_0x415b99[_0x513f8c(0xdee)],this[_0x513f8c(0x1d2)]['_resolveTemplateText'](_0x415b99[_0x513f8c(0xdee)],_0x415b99[_0x513f8c(0x974)])??_0x2d1bf2[_0x513f8c(0x731)]?.[_0x513f8c(0x40b)],_0x2d1bf2[_0x513f8c(0x731)])??_0x2d1bf2['id'],_0x241a05=_0x415b99[_0x513f8c(0x32e)]??_0x2d1bf2['meta']?.['unit_of_measurement']??'',_0x28bcd2=_0x241a05==null||_0x241a05===![]?'':String(_0x241a05),_0x4b7da4=this[_0x513f8c(0x1d2)]['_resolveColor'](_0x415b99[_0x513f8c(0xd95)],_0x415b99[_0x513f8c(0x974)])||_0x415b99['color']||_0x513f8c(0xae9),_0x184d95=_0x415b99[_0x513f8c(0x452)]===![],_0xf32984=_0x513f8c(0xd70)+escapeHtml(_0x4b7da4)+(_0x184d95?_0x513f8c(0x2c2):'')+'\x22></span>',_0x5b5f7c=_0x5ceb45?'<span\x20class=\x22sgc-tt-name\x22>'+escapeHtml(_0x5ceb45)+_0x513f8c(0x644):'';return{'ent':_0x415b99,'nameHtml':_0x5b5f7c,'swatch':_0xf32984,'unit':_0x28bcd2,'color':_0x4b7da4,'hideDot':_0x184d95};},_0xa9c3fb=_0x52c569=>{const _0x1d6703=_0x52ad0c;if(_0x52fcaf[_0x1d6703(0x45f)]===_0x1d6703(0x7ea))return _0x52c569[_0x1d6703(0x165)]()[_0x1d6703(0x7ea)]();if(_0x52fcaf[_0x1d6703(0x45f)]===_0x1d6703(0x5f4)){const _0x155fc5=({s:_0x4bbb89})=>{const _0x39d445=_0x1d6703,_0x4cbb3e=_0x4bbb89[_0x39d445(0x974)];return String((_0x4cbb3e['tooltip_name']!==undefined?pickName(_0x4cbb3e[_0x39d445(0xce6)],this[_0x39d445(0x1d2)]['_resolveTemplateText'](_0x4cbb3e[_0x39d445(0xce6)],_0x4cbb3e[_0x39d445(0x974)])??_0x4bbb89[_0x39d445(0x731)]?.[_0x39d445(0x17e)],_0x4bbb89[_0x39d445(0x731)]):pickName(_0x4cbb3e[_0x39d445(0xdee)],this[_0x39d445(0x1d2)][_0x39d445(0x7be)](_0x4cbb3e[_0x39d445(0xdee)],_0x4cbb3e[_0x39d445(0x974)])??_0x4bbb89[_0x39d445(0x731)]?.[_0x39d445(0x40b)],_0x4bbb89[_0x39d445(0x731)])??_0x4bbb89['id'])||'');};return _0x52c569[_0x1d6703(0x165)]()['sort']((_0x3613fe,_0x31dae2)=>_0x155fc5(_0x3613fe)[_0x1d6703(0xb1c)](_0x155fc5(_0x31dae2),undefined,{'sensitivity':'base'}));}return _0x52c569;},_0x288ea3=(_0xc95821,_0x36a60b,_0x1aac9d)=>{const _0x8813a6=_0x52ad0c,_0x3750fe=_0xc95821[_0x8813a6(0x974)],_0x538c9e=_0x3750fe['state_map']&&_0x3750fe[_0x8813a6(0xa7e)][_0x8813a6(0xc02)]?_0x3750fe['state_map']:this[_0x8813a6(0x1d2)][_0x8813a6(0x88b)](_0x3750fe,_0xc95821[_0x8813a6(0xd18)])?null:_0xc95821[_0x8813a6(0xfac)]||autoStateMap(_0x3750fe,_0x23f43a,_0x52fcaf?.[_0x8813a6(0x815)]);if(_0x538c9e&&_0x538c9e[_0x8813a6(0xc02)]&&isNum(_0x36a60b['v'])){const _0x424f7d=Math[_0x8813a6(0x686)](_0x36a60b['v']);if(_0x424f7d>=0x0&&_0x424f7d<_0x538c9e['length']){const _0x5a9a8b=_0xc95821['meta']?.[_0x8813a6(0x398)],_0x48a5d2=String(_0x538c9e[_0x424f7d]?.[_0x8813a6(0xf1f)]||(_0x5a9a8b?_0x538c9e[_0x424f7d]?.['value']??'':localizeEntityState(_0x23f43a,_0x23f43a?.[_0x8813a6(0x4f9)]?.[_0x3750fe[_0x8813a6(0x974)]],_0x538c9e[_0x424f7d]?.[_0x8813a6(0x2ea)]??'')))[_0x8813a6(0xa11)]();if(_0x48a5d2)return{'text':_0x48a5d2,'mapped':!![]};}}return{'text':formatNumber(_0x36a60b['v'],_0x3750fe,_0x23f43a)+'\x20'+_0x1aac9d,'mapped':![]};},_0x361196=(_0xfc3ed,_0x34de77,_0x29c9bf)=>_0x288ea3(_0xfc3ed,_0x34de77,_0x29c9bf)[_0x52ad0c(0x8a1)],_0x333cd5=({s:_0x585c05})=>{const _0x466f33=_0x52ad0c,_0x8455d5=_0x585c05[_0x466f33(0x974)][_0x466f33(0x32e)]??_0x585c05[_0x466f33(0x731)]?.[_0x466f33(0x398)]??'';return _0x8455d5==null||_0x8455d5===![]?'':String(_0x8455d5);},_0x5b1309=_0x54ee21=>toNum(_0x54ee21?.[_0x52ad0c(0xbcf)])??0x1,_0x5badd2=(_0x23138,_0x412d5e,_0x1067dd,_0x5f3706)=>{const _0x2016eb=_0x52ad0c,_0x3e3a86=_0x1067dd-_0x412d5e,_0x8a035e=Math['max'](0x0,Math[_0x2016eb(0x686)](toNum(_0x23138?.[_0x2016eb(0xbcf)])??0x1)),_0xaee75c=Math[_0x2016eb(0x91f)](0xa,_0x8a035e),_0x336ab2=Math[_0x2016eb(0x686)](_0x3e3a86*_0xaee75c)/_0xaee75c,_0xd3f51c=_0x336ab2>0x0?_0x2016eb(0x8d2):_0x336ab2<0x0?_0x2016eb(0xcf3):_0x2016eb(0xd56),_0x11831a=_0x412d5e!==0x0?'\x20('+(_0x336ab2>0x0?'+':'')+(_0x3e3a86/Math[_0x2016eb(0x1ae)](_0x412d5e)*0x64)['toFixed'](0x1)+'%)':'',_0x5a8477=''+(_0x336ab2>0x0?'+':'')+formatNumber(_0x336ab2,_0x23138,_0x23f43a)+(_0x5f3706?'\x20'+_0x5f3706:'')+_0x11831a;return{'txt':_0x5a8477,'col':_0xd3f51c,'trend':_0x336ab2>0x0?'up':_0x336ab2<0x0?_0x2016eb(0x79c):_0x2016eb(0x438)};},_0x5df275=(_0x395cc1,_0x5c2eea,_0x4a5b60,_0x2bf581,_0x186cec,_0x4389f1)=>{const _0x54bee7=_0x52ad0c,_0x799566=_0x4a5b60[_0x54bee7(0xe97)](_0x4dbf41=>_0x4dbf41===_0x4a5b60[0x0])?_0x4a5b60[0x0]:'',_0x1775ed=_0x2bf581&&_0x2bf581['length']?_0x2bf581:[],_0xb59678=_0x1775ed[_0x54bee7(0xc02)]?Math[_0x54bee7(0x220)](..._0x1775ed[_0x54bee7(0xb3f)](_0x5b1309)):0x1,_0x460206=_0x1775ed[_0x54bee7(0xc02)]?_0x1775ed[0x0][_0x54bee7(0x3de)]||_0x54bee7(0x8e1):'system',_0x441f2c=_0x1775ed[_0x54bee7(0xe97)](_0x5cc86a=>(_0x5cc86a[_0x54bee7(0x3de)]||_0x54bee7(0x8e1))===_0x460206)?_0x460206:'system',_0x26bdc3={'decimals':_0xb59678,'number_format':_0x441f2c};let _0x17f616=escapeHtml(formatNumber(_0x5c2eea,_0x26bdc3,_0x23f43a));if(isNum(_0x4389f1)){_0x17f616+=_0x54bee7(0x929)+escapeHtml(formatNumber(_0x4389f1,_0x26bdc3,_0x23f43a));if(_0x799566)_0x17f616+='\x20'+escapeHtml(_0x799566);if(_0x52fcaf[_0x54bee7(0xb33)]!==![]){const _0x1d2607=_0x5badd2(_0x26bdc3,_0x5c2eea,_0x4389f1,_0x799566);_0x17f616+='\x20<span\x20style=\x22color:'+_0x1d2607[_0x54bee7(0xa65)]+_0x54bee7(0x38c)+escapeHtml(_0x1d2607[_0x54bee7(0xac9)])+_0x54bee7(0x644);}return'<div\x20class=\x22sgc-tt-row\x20sgc-tt-total\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>'+escapeHtml(_0x395cc1)+_0x54bee7(0x93c)+_0x17f616+(_0x186cec||'')+_0x54bee7(0x79b);}return'<div\x20class=\x22sgc-tt-row\x20sgc-tt-total\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>'+escapeHtml(_0x395cc1)+_0x54bee7(0x93c)+_0x17f616+(_0x799566?'\x20'+escapeHtml(_0x799566):'')+(_0x186cec||'')+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>';},_0x38cb7a=(_0x5627da,_0x59287a,_0x23c01d,_0x3bfbda)=>{const _0x43eb6f=_0x52ad0c;_0x2f0895[_0x43eb6f(0x17c)]=_0x5627da,_0x2f0895[_0x43eb6f(0x944)][_0x43eb6f(0x4c4)]='';const _0x970f8b=_0x5469f1[_0x43eb6f(0x9cc)](),_0x103109=_0x2f0895[_0x43eb6f(0x9cc)]();let _0x47d1df,_0x42dd21;if(_0x23c01d)_0x47d1df=_0x23c01d[_0x43eb6f(0x51e)]-_0x970f8b[_0x43eb6f(0xaaf)],_0x42dd21=_0x23c01d[_0x43eb6f(0x6a3)]-_0x970f8b[_0x43eb6f(0xf55)];else{const _0x1d3e59=_0x14470a(_0x59287a);_0x47d1df=_0x1d3e59['x'],_0x42dd21=_0x1d3e59['y'];}let _0x1b0480=_0x47d1df+0xc,_0x229337=_0x42dd21+0xc;if(_0x1b0480+_0x103109[_0x43eb6f(0x581)]>_0x970f8b[_0x43eb6f(0x581)])_0x1b0480=_0x47d1df-_0x103109[_0x43eb6f(0x581)]-0xc;if(_0x229337+_0x103109[_0x43eb6f(0x43d)]>_0x970f8b['height'])_0x229337=_0x42dd21-_0x103109[_0x43eb6f(0x43d)]-0xc;_0x1b0480=Math[_0x43eb6f(0x220)](0x0,_0x1b0480),_0x229337=Math['max'](0x0,_0x229337);const _0x2e988a=_0x5469f1[_0x43eb6f(0x60c)]||0x0;_0x2f0895[_0x43eb6f(0x944)][_0x43eb6f(0xaaf)]=_0x1b0480+_0x2e988a+'px',_0x2f0895[_0x43eb6f(0x944)][_0x43eb6f(0xf55)]=_0x229337+'px',_0x5adf74(_0x3bfbda);},_0x55e653=(_0x513304,_0x574b48,_0x15f818)=>{const _0x5ad3f7=_0x52ad0c;if(_0x513304<_0x2836d5||_0x513304>_0x2836d5+_0x2e01c2)return _0x1d9d91();const {rows:_0x5efd2f,total:_0x4a5604,snapX:_0x2cb8dc}=_0x215ae1(_0x513304,_0x574b48);_0x4f2955=_0x5efd2f;if(!_0x5efd2f[_0x5ad3f7(0xc02)])return _0x1d9d91();if(!_0x157daf){_0x2f0895[_0x5ad3f7(0x944)][_0x5ad3f7(0x4c4)]='none',_0x48f3e5[_0x5ad3f7(0x944)][_0x5ad3f7(0x4c4)]=_0x5ad3f7(0x412),_0x5ee02c(),_0x5adf74(_0x513304);return;}_0x48f3e5[_0x5ad3f7(0x751)]('x1',String(_0x2cb8dc)),_0x48f3e5[_0x5ad3f7(0x751)]('x2',String(_0x2cb8dc)),_0x48f3e5[_0x5ad3f7(0x944)]['display']='',_0x4320ff([_0x5efd2f]);const {headerGrain:_0x414724,dateStr:_0x42f060}=_0x45026b(_0x5efd2f,_0x574b48);let _0x2458d0=_0x5ad3f7(0x47a)+escapeHtml(_0x42f060)+_0x5ad3f7(0x743);const _0x1c63eb=_0xa9c3fb(_0x5efd2f);let _0x55b67f=null;for(const {s:_0x5d2ef3,p:_0x3c2fa8}of _0x1c63eb){const {ent:_0x1d692b,nameHtml:_0x2d249f,swatch:_0x262a1f,unit:_0x2d48dc,color:_0x1018d2,hideDot:_0x37136b}=_0x3ce5a4(_0x5d2ef3);let _0x1c1a3c='';if(_0x1d692b[_0x5ad3f7(0xed4)]!=null){const _0x54d994=toNum(_0x1d692b['offset']);if(isNum(_0x54d994)&&_0x54d994!==0x0){const _0xc60895=_0x3c2fa8['t']-_0x54d994*0x36ee80,_0x3c80ee=formatDateTime(new Date(_0xc60895),_0x52fcaf,_0x23f43a,_0x414724?{'precision':_0x414724}:undefined);_0x3c80ee!==_0x55b67f&&(_0x2458d0+='<div\x20class=\x22sgc-tt-row\x22\x20style=\x22opacity:0.6;font-size:0.85em;margin-top:2px\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22visibility:hidden\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>'+escapeHtml(_0x3c80ee)+_0x5ad3f7(0xaef),_0x55b67f=_0x3c80ee);}const _0x2b763f=_0x5efd2f['filter'](_0x37fa51=>_0x37fa51['s']['entity']?.[_0x5ad3f7(0xed4)]===_0x1d692b['_compareOf'])[_0x5ad3f7(0xc02)];if(_0x2b763f>0x1&&_0x1d692b[_0x5ad3f7(0xbf6)]?.['show_delta']){const _0x250237=_0x5efd2f[_0x5ad3f7(0x90c)](_0x52b3ef=>_0x52b3ef['s'][_0x5ad3f7(0x974)]?.['_compareOf']==null&&_0x52b3ef['s'][_0x5ad3f7(0xd18)]===_0x1d692b[_0x5ad3f7(0xed4)]);if(_0x250237&&isNum(_0x250237['p']?.['v'])&&isNum(_0x3c2fa8['v'])&&_0x3c2fa8['v']!==0x0){const _0x519ce0=(_0x250237['p']['v']-_0x3c2fa8['v'])/Math['abs'](_0x3c2fa8['v'])*0x64,_0x518207=_0x519ce0>0x0?_0x5ad3f7(0x8d2):_0x519ce0<0x0?_0x5ad3f7(0xcf3):_0x5ad3f7(0xd56);_0x1c1a3c='\x20<span\x20style=\x22opacity:0.8;font-size:0.9em;color:'+_0x518207+'\x22>'+(_0x519ce0>0x0?'+':'')+_0x519ce0[_0x5ad3f7(0x198)](0x1)+_0x5ad3f7(0x890);}}}if(_0x1d692b[_0x5ad3f7(0xed4)]==null&&_0x1d692b[_0x5ad3f7(0xc80)]){const _0x2ef2fe=_0x5efd2f[_0x5ad3f7(0x919)](_0x4eb08c=>_0x4eb08c['s'][_0x5ad3f7(0x974)]?.['_compareOf']===_0x5d2ef3[_0x5ad3f7(0xd18)]);if(_0x2ef2fe[_0x5ad3f7(0xc02)]===0x1){const _0x4eafce=_0x2ef2fe[0x0],_0x59d4a0=_0x4eafce['s'][_0x5ad3f7(0x974)]?.['_compareCfg'];if(_0x59d4a0?.[_0x5ad3f7(0xc8a)]&&isNum(_0x4eafce['p']?.['v'])&&_0x4eafce['p']['v']!==0x0&&isNum(_0x3c2fa8['v'])){const _0x165b7f=(_0x3c2fa8['v']-_0x4eafce['p']['v'])/Math[_0x5ad3f7(0x1ae)](_0x4eafce['p']['v'])*0x64,_0x37444e=_0x165b7f>0x0?_0x5ad3f7(0x8d2):_0x165b7f<0x0?'var(--error-color,\x20#ef5350)':_0x5ad3f7(0xd56);_0x1c1a3c=_0x5ad3f7(0x5ba)+_0x37444e+'\x22>'+(_0x165b7f>0x0?'+':'')+_0x165b7f[_0x5ad3f7(0x198)](0x1)+_0x5ad3f7(0x890);}}}_0x2458d0+='<div\x20class=\x22sgc-tt-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x262a1f+_0x5ad3f7(0x859)+_0x2d249f+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>'+escapeHtml(_0x361196(_0x5d2ef3,_0x3c2fa8,_0x2d48dc))+_0x1c1a3c+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>';if(_0x1d692b['graph_type']===_0x5ad3f7(0x846)&&isNum(_0x3c2fa8['o'])){_0x2458d0+=_0x5ad3f7(0xe9e)+escapeHtml(formatNumber(_0x3c2fa8['o'],_0x1d692b,_0x23f43a))+_0x5ad3f7(0xa67)+escapeHtml(formatNumber(_0x3c2fa8['h'],_0x1d692b,_0x23f43a))+_0x5ad3f7(0xa67)+escapeHtml(formatNumber(_0x3c2fa8['l'],_0x1d692b,_0x23f43a))+'\x20/\x20'+escapeHtml(formatNumber(_0x3c2fa8['c'],_0x1d692b,_0x23f43a))+'\x20'+escapeHtml(_0x2d48dc)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>';const _0xd2ff6d=(_0x4d374c,_0x8cc814)=>isNum(_0x4d374c)&&isNum(_0x8cc814)&&_0x8cc814!==0x0?_0x4d374c/_0x8cc814*0x64:null,_0x3e9c2f=(_0x4251f3,_0x12354f)=>{const _0x44ed04=_0x5ad3f7;if(_0x4251f3===null)return null;const _0x36744c=_0x12354f&&_0x4251f3>0x0?'+':'';return''+_0x36744c+_0x4251f3[_0x44ed04(0x198)](0x2)+'%';},_0x10db97=_0xd2ff6d(_0x3c2fa8['c']-_0x3c2fa8['o'],_0x3c2fa8['o']),_0x1664cb=_0xd2ff6d(_0x3c2fa8['h']-_0x3c2fa8['l'],_0x3c2fa8['l']);if(_0x10db97!==null){const _0x540663=_0x10db97>0x0,_0x557a01=_0x10db97===0x0,_0x3d2eaa=_0x5d2ef3[_0x5ad3f7(0x428)]||{},_0x5389fb=_0x557a01?_0x5ad3f7(0xd56):_0x540663?_0x3d2eaa['up']||_0x5ad3f7(0x8d2):_0x3d2eaa[_0x5ad3f7(0x79c)]||_0x5ad3f7(0xcf3);_0x2458d0+=_0x5ad3f7(0x1003)+escapeHtml(cardT(_0x23f43a,_0x52fcaf,_0x5ad3f7(0xf9c)))+_0x5ad3f7(0xd74)+_0x5389fb+'\x22>'+escapeHtml(_0x3e9c2f(_0x10db97,!![]))+_0x5ad3f7(0xebe);}_0x1664cb!==null&&(_0x2458d0+=_0x5ad3f7(0x1003)+escapeHtml(cardT(_0x23f43a,_0x52fcaf,_0x5ad3f7(0x3b9)))+_0x5ad3f7(0xc99)+escapeHtml(_0x3e9c2f(_0x1664cb,![]))+_0x5ad3f7(0xebe));}if(_0x1d692b[_0x5ad3f7(0xd0a)]&&_0x3c2fa8[_0x5ad3f7(0xa84)]!=null&&_0x3c2fa8['bMax']!=null){const _0x2898b7='<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22background:transparent;border:1.5px\x20solid\x20'+escapeHtml(_0x1018d2)+';width:6px;height:6px'+(_0x37136b?_0x5ad3f7(0x2c2):'')+_0x5ad3f7(0x9d2);_0x2458d0+=_0x5ad3f7(0xea9)+_0x2898b7+_0x5ad3f7(0x6eb)+escapeHtml(cardT(_0x23f43a,_0x52fcaf,_0x5ad3f7(0xbce)))+_0x5ad3f7(0xf7d)+escapeHtml(formatNumber(_0x3c2fa8[_0x5ad3f7(0xa84)],_0x1d692b,_0x23f43a))+_0x5ad3f7(0x929)+escapeHtml(formatNumber(_0x3c2fa8[_0x5ad3f7(0x6a0)],_0x1d692b,_0x23f43a))+'\x20'+escapeHtml(_0x2d48dc)+_0x5ad3f7(0xd6d);}}const _0x513686=_0x5efd2f[_0x5ad3f7(0x919)](_0x347986=>!isStripEntity(_0x347986['s'][_0x5ad3f7(0x974)]));if(_0x513686[_0x5ad3f7(0xc02)]>0x1){if(_0x52fcaf[_0x5ad3f7(0x18a)]&&_0x52fcaf[_0x5ad3f7(0x5b2)]!==![]){const _0x36b4f6='\u0000cmp:',_0x181d08=new Map();for(const _0x418d2a of _0x513686){const _0x3e714b=_0x418d2a['s'][_0x5ad3f7(0x974)][_0x5ad3f7(0xe81)],_0x530085=_0x3e714b===undefined||_0x3e714b===null||_0x3e714b===''?_0x5ad3f7(0x840):String(_0x3e714b);let _0x37ae9c=_0x181d08[_0x5ad3f7(0xc3f)](_0x530085);!_0x37ae9c&&(_0x37ae9c={'sum':0x0,'units':[],'ents':[],'cmpEnt':null},_0x181d08[_0x5ad3f7(0xa2d)](_0x530085,_0x37ae9c));if(isNum(_0x418d2a['p']['v']))_0x37ae9c[_0x5ad3f7(0x7e6)]+=_0x418d2a['p']['v'];_0x37ae9c[_0x5ad3f7(0xbba)][_0x5ad3f7(0xb31)](_0x333cd5(_0x418d2a)),_0x37ae9c[_0x5ad3f7(0x7d1)][_0x5ad3f7(0xb31)](_0x418d2a['s']['entity']);if(_0x418d2a['s'][_0x5ad3f7(0x974)][_0x5ad3f7(0xed4)]!=null&&!_0x37ae9c['cmpEnt'])_0x37ae9c['cmpEnt']=_0x418d2a['s'][_0x5ad3f7(0x974)];}if(_0x181d08[_0x5ad3f7(0xc44)]>0x1)for(const [_0x4ff8dd,_0x497aed]of _0x181d08){const _0x1932a9=_0x4ff8dd[_0x5ad3f7(0x2f0)](_0x36b4f6),_0x169164=_0x1932a9>=0x0,_0x5b24af=_0x169164?_0x4ff8dd[_0x5ad3f7(0x165)](0x0,_0x1932a9):_0x4ff8dd,_0x308647=_0x5b24af===_0x5ad3f7(0x840)?'':_0x5b24af;if(!_0x308647&&!_0x169164)continue;let _0x5570fa=(_0x308647?_0x308647+'\x20':'')+cardT(_0x23f43a,_0x52fcaf,'Total'),_0x5e13e7='';if(_0x169164){const _0x1889ef=_0x497aed[_0x5ad3f7(0xbdd)]?.[_0x5ad3f7(0xbf6)],_0x5cdb8e=Math[_0x5ad3f7(0x220)](0x1,Math['floor'](toNum(_0x1889ef?.['periods_back'])||0x1));_0x5570fa+='\x20('+cardT(_0x23f43a,_0x52fcaf,COMPARE_PERIOD_LABELS[_0x1889ef?.[_0x5ad3f7(0xe4c)]]||'previous\x20period')+(_0x5cdb8e>0x1?'\x20×'+_0x5cdb8e:'')+')',_0x2458d0+=_0x5ad3f7(0x1de)+_0x5df275(_0x5570fa,_0x497aed['sum'],_0x497aed[_0x5ad3f7(0xbba)],_0x497aed[_0x5ad3f7(0x7d1)])+'</div>';continue;}const _0x4f7265=[];for(const _0x365952 of _0x181d08[_0x5ad3f7(0x3ab)]()){if(_0x365952[_0x5ad3f7(0xed0)](_0x4ff8dd+_0x36b4f6)||_0x5b24af==='__default'&&_0x365952[_0x5ad3f7(0xed0)](_0x5ad3f7(0x840)+_0x36b4f6))_0x4f7265['push'](_0x365952);}if(_0x4f7265['length']===0x1){const _0x25f4a1=_0x181d08[_0x5ad3f7(0xc3f)](_0x4f7265[0x0]);if(_0x25f4a1['cmpEnt']?.['_compareCfg']?.[_0x5ad3f7(0xc8a)]!==![]&&isNum(_0x25f4a1[_0x5ad3f7(0x7e6)])&&_0x25f4a1['sum']!==0x0&&isNum(_0x497aed[_0x5ad3f7(0x7e6)])){const _0x2400cf=(_0x497aed[_0x5ad3f7(0x7e6)]-_0x25f4a1[_0x5ad3f7(0x7e6)])/Math[_0x5ad3f7(0x1ae)](_0x25f4a1[_0x5ad3f7(0x7e6)])*0x64,_0x59f8d6=_0x2400cf>0x0?'var(--success-color,\x20#26a69a)':_0x2400cf<0x0?_0x5ad3f7(0xcf3):'var(--secondary-text-color)';_0x5e13e7=_0x5ad3f7(0x5ba)+_0x59f8d6+'\x22>'+(_0x2400cf>0x0?'+':'')+_0x2400cf[_0x5ad3f7(0x198)](0x1)+_0x5ad3f7(0x890);}}_0x2458d0+=_0x5df275(_0x5570fa,_0x497aed[_0x5ad3f7(0x7e6)],_0x497aed['units'],_0x497aed[_0x5ad3f7(0x7d1)],_0x5e13e7);}}_0x52fcaf['show_tooltip_total']!==![]&&(_0x2458d0+=_0x5df275(cardT(_0x23f43a,_0x52fcaf,_0x5ad3f7(0xe62)),_0x4a5604,_0x513686['map'](_0x333cd5),_0x513686['map'](_0x46e87a=>_0x46e87a['s'][_0x5ad3f7(0x974)])));}_0x38cb7a(_0x2458d0,_0x2cb8dc,_0x15f818,_0x513304);},_0x33ff01=_0x4d4bd2=>{const _0xd7423e=_0x52ad0c,_0x1b113c=Math['round'](Math[_0xd7423e(0x1ae)](_0x4d4bd2)/0x3e8);if(_0x1b113c<0x3c)return _0x1b113c+'s';const _0x44ad5d=Math[_0xd7423e(0x686)](_0x1b113c/0x3c),_0x518c98=Math['floor'](_0x44ad5d/0x5a0),_0x3c8af8=Math[_0xd7423e(0xedc)](_0x44ad5d%0x5a0/0x3c),_0x1f82cb=_0x44ad5d%0x3c,_0x443b64=[];if(_0x518c98)_0x443b64[_0xd7423e(0xb31)](_0x518c98+'d');if(_0x3c8af8)_0x443b64[_0xd7423e(0xb31)](_0x3c8af8+'h');if(_0x1f82cb||!_0x443b64[_0xd7423e(0xc02)])_0x443b64[_0xd7423e(0xb31)](_0x1f82cb+'m');return _0x443b64[_0xd7423e(0x888)]('\x20');},_0x1542cd=()=>(_0x28b2f5[_0x52ad0c(0x9cd)]||[])[_0x52ad0c(0x42a)](_0x5ae758=>_0x5ae758['t']>=_0x2dcf8b&&_0x5ae758['t']<=_0x16cf66),_0x5a9439=()=>{const _0x4c0319=_0x52ad0c;while(_0x4d66ac['firstChild'])_0x4d66ac[_0x4c0319(0x5a6)](_0x4d66ac['firstChild']);const _0x4dc11b=_0x28b2f5[_0x4c0319(0x9cd)]||[];_0x4dc11b[_0x4c0319(0xd27)]((_0x4f34d6,_0x13bed1)=>{const _0xd930d3=_0x4c0319;if(_0x4f34d6['t']<_0x2dcf8b||_0x4f34d6['t']>_0x16cf66)return;const _0x51fe4e=String(_0x4847c4(_0x4f34d6['t']));_0x4d66ac[_0xd930d3(0x319)](svgEl(_0xd930d3(0xcd2),{'class':_0xd930d3(0x4ba),'x1':_0x51fe4e,'x2':_0x51fe4e,'y1':String(_0x31afab),'y2':String(_0x31afab+_0x5566c0)})),_0x4d66ac[_0xd930d3(0x319)](svgEl('line',{'class':'sgc-pin-hit','data-pin':String(_0x13bed1),'x1':_0x51fe4e,'x2':_0x51fe4e,'y1':String(_0x31afab),'y2':String(_0x31afab+_0x5566c0)}));if(_0x4dc11b[_0xd930d3(0xc02)]>0x1){const _0x4f71c2=svgEl(_0xd930d3(0x8a1),{'class':_0xd930d3(0x415),'x':String(_0x4847c4(_0x4f34d6['t'])+0x4),'y':String(_0x31afab+0xa)});_0x4f71c2[_0xd930d3(0x3d2)]=_0x13bed1===0x0?'A':'B',_0x4d66ac[_0xd930d3(0x319)](_0x4f71c2);}});},_0x14eb75=_0x1b8b36=>{_0x28b2f5['_pinReadout']=_0x1b8b36,_0x28b2f5['_updatePinReadout']?.();},_0x42a2d4=()=>{const _0x2ac375=_0x52ad0c,_0x3184de=_0x28b2f5[_0x2ac375(0x9cd)]||[];_0x5a9439();if(!_0x3184de[_0x2ac375(0xc02)]){_0x14eb75(null);return;}const _0x45d1a5=new Map(),_0x271a51=_0x3184de[_0x2ac375(0x919)](_0x253f04=>_0x253f04['t']>=_0x2dcf8b&&_0x253f04['t']<=_0x16cf66);if(_0x3184de[_0x2ac375(0xc02)]===0x1){if(!_0x271a51[_0x2ac375(0xc02)]){_0x1d9d91(),_0x14eb75(null);return;}_0x55e653(_0x4847c4(_0x3184de[0x0]['t']),_0x3184de[0x0]['t'],null);for(const {s:_0x12cc1a,p:_0x5e98e8}of _0x4f2955){const {unit:_0x531cf7}=_0x3ce5a4(_0x12cc1a);_0x45d1a5[_0x2ac375(0xa2d)](_0x12cc1a['id'],{'text':_0x361196(_0x12cc1a,_0x5e98e8,_0x531cf7)});}_0x14eb75(_0x45d1a5);return;}const _0x5dbcf6=_0x3184de[0x0]['t'],_0x7f7307=_0x3184de[0x1]['t'],_0x9ecfc6=_0x4a8a98=>_0x4a8a98>=_0x2dcf8b&&_0x4a8a98<=_0x16cf66,_0x5caec1=_0x9ecfc6(_0x5dbcf6)?_0x215ae1(_0x4847c4(_0x5dbcf6),_0x5dbcf6):{'rows':[],'total':0x0,'snapX':_0x4847c4(_0x5dbcf6)},_0xfd49d2=_0x9ecfc6(_0x7f7307)?_0x215ae1(_0x4847c4(_0x7f7307),_0x7f7307):{'rows':[],'total':0x0,'snapX':_0x4847c4(_0x7f7307)};_0x48f3e5[_0x2ac375(0x944)]['display']=_0x2ac375(0x412);if(!_0x157daf||!_0x5caec1['rows'][_0x2ac375(0xc02)]&&!_0xfd49d2[_0x2ac375(0x72e)][_0x2ac375(0xc02)]){_0x1d9d91(),_0x14eb75(null);return;}_0x4320ff([_0x5caec1[_0x2ac375(0x72e)],_0xfd49d2['rows']]);const _0x35e876=_0x45026b(_0x5caec1[_0x2ac375(0x72e)],_0x5dbcf6)[_0x2ac375(0x399)],_0x467a9f=_0x45026b(_0xfd49d2[_0x2ac375(0x72e)],_0x7f7307)[_0x2ac375(0x399)];let _0x50b10c=_0x2ac375(0x47a)+escapeHtml(_0x35e876)+_0x2ac375(0x929)+escapeHtml(_0x467a9f)+'<span\x20class=\x22sgc-tt-span\x22>'+escapeHtml(_0x33ff01(_0x7f7307-_0x5dbcf6))+'</span></div>';const _0x2b5a4b=_0x52fcaf[_0x2ac375(0xb33)]!==![];let _0x1aa32f=0x0,_0x1d2f50=0x0,_0x3c9aa5=0x0;const _0xf24a9b=[],_0x2357d1=[],_0x162919=[];for(const _0xbead9f of _0x13c880){const _0x2c5d00=_0x5caec1[_0x2ac375(0x72e)]['find'](_0x156090=>_0x156090['s']===_0xbead9f),_0x148cac=_0xfd49d2[_0x2ac375(0x72e)]['find'](_0x31aaaa=>_0x31aaaa['s']===_0xbead9f);if(_0x2c5d00||_0x148cac)_0x162919[_0x2ac375(0xb31)]({'s':_0xbead9f,'a':_0x2c5d00,'b':_0x148cac});}for(const {s:_0x1b4642,a:_0x530a87,b:_0x455ce8}of _0xa9c3fb(_0x162919)){const {ent:_0xdfedfc,nameHtml:_0xe7dded,swatch:_0x3cd230,unit:_0x1ec732}=_0x3ce5a4(_0x1b4642),_0x2b677d=_0x530a87?_0x288ea3(_0x1b4642,_0x530a87['p'],_0x1ec732):null,_0x1fe4a7=_0x455ce8?_0x288ea3(_0x1b4642,_0x455ce8['p'],_0x1ec732):null,_0x914e57=_0x2b677d?_0x2b677d[_0x2ac375(0x8a1)]:'—',_0x13f247=_0x1fe4a7?_0x1fe4a7[_0x2ac375(0x8a1)]:'—';_0x50b10c+=_0x2ac375(0xd55)+_0x3cd230+_0x2ac375(0x859)+_0xe7dded+_0x2ac375(0x797)+escapeHtml(_0x914e57)+_0x2ac375(0x929)+escapeHtml(_0x13f247)+_0x2ac375(0x79b);let _0x282a8e={'text':_0x914e57+'\x20→\x20'+_0x13f247};const _0x304fec=_0x530a87&&_0x455ce8&&isNum(_0x530a87['p']['v'])&&isNum(_0x455ce8['p']['v'])&&!_0x2b677d['mapped']&&!_0x1fe4a7[_0x2ac375(0xd54)]&&!isStripEntity(_0xdfedfc)&&_0xdfedfc[_0x2ac375(0xed4)]==null;if(_0x304fec){_0x3c9aa5++,_0x1aa32f+=_0x530a87['p']['v'],_0x1d2f50+=_0x455ce8['p']['v'],_0xf24a9b[_0x2ac375(0xb31)](_0x1ec732),_0x2357d1['push'](_0xdfedfc);if(_0x2b5a4b){const _0x27ef90=_0x52bc81=>_0xdfedfc['invert']?Math[_0x2ac375(0x1ae)](_0x52bc81):_0x52bc81,_0x15a3f4=_0x5badd2(_0xdfedfc[_0x2ac375(0xd57)]?cloneEntity(_0xdfedfc,{'invert':![]}):_0xdfedfc,_0x27ef90(_0x530a87['p']['v']),_0x27ef90(_0x455ce8['p']['v']),_0x1ec732);_0x50b10c+=_0x2ac375(0xaaa)+_0x15a3f4[_0x2ac375(0xa65)]+'\x22>'+escapeHtml(_0x15a3f4[_0x2ac375(0xac9)])+_0x2ac375(0x79b),_0x282a8e={'text':_0x914e57+_0x2ac375(0x929)+_0x13f247+_0x2ac375(0xb4c)+_0x15a3f4[_0x2ac375(0xac9)],'trend':_0x15a3f4[_0x2ac375(0x1d1)]};}}_0x45d1a5[_0x2ac375(0xa2d)](_0x1b4642['id'],_0x282a8e);}_0x3c9aa5>0x1&&_0x52fcaf[_0x2ac375(0x74f)]!==![]&&(_0x50b10c+=_0x5df275(cardT(_0x23f43a,_0x52fcaf,_0x2ac375(0xe62)),_0x1aa32f,_0xf24a9b,_0x2357d1,'',_0x1d2f50));const _0x5ca659=_0x9ecfc6(_0x7f7307)?_0x4847c4(_0x7f7307):_0x4847c4(_0x5dbcf6);_0x38cb7a(_0x50b10c,_0x5ca659,null,_0x5ca659),_0x14eb75(_0x45d1a5);};let _0x5d4600=[],_0x4bbe0b=null;const _0x14f097=()=>{const _0x18f8db=_0x52ad0c;for(const _0x3b26bd of _0x5d4600)_0x3b26bd[_0x18f8db(0x9a1)][_0x18f8db(0x547)](_0x18f8db(0xbbd));_0x5d4600=[];if(_0xc76ef3)_0xc76ef3[_0x18f8db(0x944)][_0x18f8db(0x4c4)]=_0x18f8db(0x412);},_0x5adf74=_0x30655f=>{const _0x2ee5be=_0x52ad0c;_0x14f097();if(_0x30655f==null)return;const _0x1acc3b=_0x4bbe0b||(_0x4bbe0b=_0x57fbc3['querySelectorAll'](_0x2ee5be(0xeb6))),_0xbdde86=new Set();let _0xf16674=null,_0x54c60c=null;for(const _0x5b7af3 of _0x1acc3b){const _0x5a1627=parseFloat(_0x5b7af3[_0x2ee5be(0xffb)](_0x2ee5be(0x58f))),_0xb4d74e=parseFloat(_0x5b7af3['getAttribute']('data-w'));if(!isFinite(_0x5a1627)||!isFinite(_0xb4d74e))continue;if(_0x30655f>=_0x5a1627&&_0x30655f<=_0x5a1627+_0xb4d74e){const _0x12e6c3=_0x5b7af3[_0x2ee5be(0xffb)]('data-t');if(_0x12e6c3!=null)_0xbdde86[_0x2ee5be(0x982)](_0x12e6c3);if(_0xf16674===null){const _0x249923=parseFloat(_0x5b7af3['getAttribute'](_0x2ee5be(0xd71))),_0x31fa2b=parseFloat(_0x5b7af3[_0x2ee5be(0xffb)](_0x2ee5be(0x50d)));isFinite(_0x249923)&&isFinite(_0x31fa2b)&&(_0xf16674=_0x249923,_0x54c60c=_0x31fa2b);}}}if(!_0xbdde86[_0x2ee5be(0xc44)])return;for(const _0x35ea12 of _0x1acc3b){_0xbdde86[_0x2ee5be(0x101d)](_0x35ea12[_0x2ee5be(0xffb)](_0x2ee5be(0x78a)))&&(_0x35ea12[_0x2ee5be(0x9a1)]['add'](_0x2ee5be(0xbbd)),_0x5d4600['push'](_0x35ea12));}if(_0xc76ef3&&_0xf16674!==null){const _0x43a499=Math[_0x2ee5be(0x220)](_0x2836d5,_0xf16674),_0x433076=Math[_0x2ee5be(0xba1)](_0x2836d5+_0x2e01c2,_0xf16674+_0x54c60c);_0xc76ef3[_0x2ee5be(0x751)]('x',String(_0x43a499)),_0xc76ef3[_0x2ee5be(0x751)]('width',String(Math[_0x2ee5be(0x220)](0x0,_0x433076-_0x43a499))),_0xc76ef3[_0x2ee5be(0x944)][_0x2ee5be(0x4c4)]='';}},_0x1d9d91=()=>{const _0x59689b=_0x52ad0c;_0x2f0895[_0x59689b(0x944)]['display']=_0x59689b(0x412),_0x48f3e5[_0x59689b(0x944)][_0x59689b(0x4c4)]=_0x59689b(0x412),_0x5ee02c(),_0x14f097();},_0x18d41f=_0x1cdad3=>{const _0x55e6c9=_0x52ad0c;if(!_0x52fcaf[_0x55e6c9(0xb38)])return;window['dispatchEvent'](new CustomEvent('sgc-tooltip-sync',{'detail':{'time':_0x1cdad3,'group':_0x52fcaf[_0x55e6c9(0xb60)]||null,'sourceId':_0x28b2f5[_0x55e6c9(0x6e9)]}}));},_0x35e591=()=>{const _0x1e9a81=_0x52ad0c;if(_0x28b2f5[_0x1e9a81(0x9cd)]?.[_0x1e9a81(0xc02)]&&_0x1542cd())return;_0x1d9d91(),_0x18d41f(null);},_0x22808d=()=>{const _0x228121=_0x52ad0c;if(_0x28b2f5[_0x228121(0x9cd)]?.[_0x228121(0xc02)])_0x28b2f5[_0x228121(0x383)]={'pins':_0x28b2f5[_0x228121(0x9cd)][_0x228121(0x165)](),'at':Date['now']()};_0x28b2f5[_0x228121(0x9cd)]=[],_0x28b2f5['_pinDrag']=null,_0x5a9439(),_0x1d9d91(),_0x14eb75(null),_0x18d41f(null);};let _0x3846a1=null;const _0x3f8e22=_0x10751a=>{const _0x4e49c=_0x52ad0c;if(!_0x5a8f49)_0x5a8f49=_0x57fbc3[_0x4e49c(0x9cc)]();if(_0x1abf8b==null)_0x1abf8b=parseFloat(_0x57fbc3[_0x4e49c(0xffb)]('viewBox')[_0x4e49c(0xbc0)]('\x20')[0x2]);return{'x':(_0x10751a-_0x5a8f49['left'])/(_0x5a8f49[_0x4e49c(0x581)]/_0x1abf8b),'scale':_0x5a8f49['width']/_0x1abf8b};},_0x2580c5=_0x174ca8=>{const _0x55b661=_0x52ad0c;_0x3846a1=null;if(!_0x1fd569)return;if(_0x174ca8[_0x55b661(0xa3d)]!==0x0)return;if(_0x28b2f5[_0x55b661(0xa38)]||_0x28b2f5[_0x55b661(0x691)]||_0x28b2f5[_0x55b661(0x564)])return;const _0x30c53c=_0x174ca8[_0x55b661(0x6bc)]?.[_0x55b661(0x6c0)]?.('.sgc-pin-hit');let _0x199a61=_0x30c53c?parseInt(_0x30c53c['getAttribute'](_0x55b661(0xafa)),0xa):-0x1;const _0x567b58=_0x28b2f5['_pins']||[];if(!(_0x199a61>=0x0)&&_0x567b58['length']){const {x:_0x34826f,scale:_0x351f40}=_0x3f8e22(_0x174ca8[_0x55b661(0x51e)]);_0x567b58[_0x55b661(0xd27)]((_0xf294c5,_0x4e76a3)=>{const _0x54d2e5=_0x55b661;if(Math[_0x54d2e5(0x1ae)](_0x4847c4(_0xf294c5['t'])-_0x34826f)*_0x351f40<=0xc)_0x199a61=_0x4e76a3;});}if(_0x199a61>=0x0&&_0x199a61<_0x567b58[_0x55b661(0xc02)]){_0x28b2f5[_0x55b661(0x38f)]=_0x199a61;try{_0x57fbc3['setPointerCapture'](_0x174ca8['pointerId']);}catch(_0x1d1b2b){}if(_0x174ca8[_0x55b661(0x4f7)])_0x174ca8[_0x55b661(0xac3)]();return;}_0x3846a1={'id':_0x174ca8['pointerId'],'x':_0x174ca8[_0x55b661(0x51e)],'y':_0x174ca8[_0x55b661(0x6a3)],'at':Date[_0x55b661(0x69d)]()};},_0x58b13d=_0xa61028=>{const _0x20ca3f=_0x52ad0c;if(_0x28b2f5[_0x20ca3f(0x38f)]==null)return![];_0x28b2f5[_0x20ca3f(0x38f)]=null;try{_0x57fbc3[_0x20ca3f(0x697)](_0xa61028[_0x20ca3f(0x67d)]);}catch(_0xf9394a){}if(_0x28b2f5[_0x20ca3f(0x9cd)]?.[_0x20ca3f(0xc02)])_0x18d41f(_0x28b2f5[_0x20ca3f(0x9cd)][0x0]['t']);return!![];},_0x2a08aa=_0xc660fb=>{const _0x3d2d98=_0x52ad0c;if(_0x58b13d(_0xc660fb))return;const _0x18740f=_0x3846a1;_0x3846a1=null;if(!_0x1fd569||!_0x18740f||_0x18740f['id']!==_0xc660fb[_0x3d2d98(0x67d)])return;if(Math[_0x3d2d98(0x1ae)](_0xc660fb[_0x3d2d98(0x51e)]-_0x18740f['x'])>0x8||Math['abs'](_0xc660fb['clientY']-_0x18740f['y'])>0x8||Date[_0x3d2d98(0x69d)]()-_0x18740f['at']>0x190)return;if(_0x28b2f5['_pinchActive']||_0x28b2f5[_0x3d2d98(0x564)])return;if(Date[_0x3d2d98(0x69d)]()-(_0x28b2f5[_0x3d2d98(0xea5)]||0x0)<0x190||Date[_0x3d2d98(0x69d)]()-(_0x28b2f5[_0x3d2d98(0xfd1)]||0x0)<0x2bc)return;const {x:_0x67ee4}=_0x3f8e22(_0xc660fb[_0x3d2d98(0x51e)]);if(_0x67ee4<_0x2836d5||_0x67ee4>_0x2836d5+_0x2e01c2)return;if(!Array[_0x3d2d98(0x902)](_0x28b2f5[_0x3d2d98(0x9cd)]))_0x28b2f5[_0x3d2d98(0x9cd)]=[];if(_0x28b2f5[_0x3d2d98(0x9cd)][_0x3d2d98(0xc02)]>=_0x1f9f6a){_0x22808d();return;}_0x28b2f5[_0x3d2d98(0x9cd)]['push']({'t':_0xf0ad8c(_0x67ee4),'at':Date['now']()}),_0x28b2f5[_0x3d2d98(0x9cd)][_0x3d2d98(0xd09)]((_0x1fcf60,_0x426276)=>_0x1fcf60['t']-_0x426276['t']),clearTimeout(_0x28b2f5['_drillTimer']),_0x28b2f5[_0x3d2d98(0x3e8)]=null,_0x42a2d4(),_0x18d41f(_0x28b2f5[_0x3d2d98(0x9cd)][0x0]['t']);},_0x28fbcf=_0x51ecc5=>{_0x58b13d(_0x51ecc5),_0x3846a1=null;};_0x28b2f5[_0x52ad0c(0x898)]=_0x22808d,_0x28b2f5[_0x52ad0c(0xf64)]=()=>{const _0x4d68e0=_0x52ad0c,_0x24a109=Date[_0x4d68e0(0x69d)](),_0x3d8823=_0x28b2f5[_0x4d68e0(0x383)];if(_0x3d8823&&_0x24a109-_0x3d8823['at']<0x1f4&&_0x3d8823[_0x4d68e0(0x904)][_0x4d68e0(0xc02)]){_0x28b2f5[_0x4d68e0(0x383)]=null,_0x28b2f5['_pins']=_0x3d8823['pins'][_0x4d68e0(0xb3f)](_0x5a1b30=>({'t':_0x5a1b30['t'],'at':0x0})),_0x42a2d4(),_0x18d41f(_0x28b2f5['_pins'][0x0]['t']);return;}const _0x4b21bb=(_0x28b2f5['_pins']||[])[_0x4d68e0(0x919)](_0x11f638=>_0x24a109-_0x11f638['at']>0x1f4);if(_0x4b21bb['length']===(_0x28b2f5[_0x4d68e0(0x9cd)]||[])[_0x4d68e0(0xc02)])return;_0x28b2f5[_0x4d68e0(0x9cd)]=_0x4b21bb;if(_0x4b21bb[_0x4d68e0(0xc02)])_0x42a2d4();else _0x22808d();};let _0x5a8f49=null,_0x1abf8b=null;const _0x200839=()=>{_0x5a8f49=null,_0x1abf8b=null;},_0x180540=new ResizeObserver(_0x200839);_0x180540[_0x52ad0c(0xe73)](_0x57fbc3),window[_0x52ad0c(0x171)](_0x52ad0c(0xedb),_0x200839,{'passive':!![]}),_0x5469f1[_0x52ad0c(0x171)](_0x52ad0c(0xedb),_0x200839,{'passive':!![]});let _0x553c5d=0x0,_0x3e0ff0=null;const _0x454b29=()=>{const _0x4d55b3=_0x52ad0c;_0x553c5d=0x0;const _0x354b03=_0x3e0ff0;_0x3e0ff0=null;if(!_0x354b03)return;if(_0x28b2f5[_0x4d55b3(0xa38)]){if(_0x2f0895['style'][_0x4d55b3(0x4c4)]!==_0x4d55b3(0x412))_0x35e591();return;}if(_0x28b2f5[_0x4d55b3(0x9cd)]?.[_0x4d55b3(0xc02)]&&_0x1542cd()){const _0x5a8928=_0x28b2f5[_0x4d55b3(0x38f)];if(_0x5a8928==null||!_0x28b2f5[_0x4d55b3(0x9cd)][_0x5a8928])return;const {x:_0x1a9219}=_0x3f8e22(_0x354b03[_0x4d55b3(0x51e)]),_0x395dca=Math[_0x4d55b3(0x220)](_0x2836d5,Math['min'](_0x2836d5+_0x2e01c2,_0x1a9219));_0x28b2f5['_pins'][_0x5a8928]['t']=_0xf0ad8c(_0x395dca);_0x28b2f5[_0x4d55b3(0x9cd)]['length']>0x1&&_0x28b2f5[_0x4d55b3(0x9cd)][0x0]['t']>_0x28b2f5['_pins'][0x1]['t']&&(_0x28b2f5[_0x4d55b3(0x9cd)][_0x4d55b3(0x7ea)](),_0x28b2f5['_pinDrag']=_0x5a8928===0x0?0x1:0x0);_0x42a2d4(),_0x18d41f(_0x28b2f5['_pins'][0x0]['t']);return;}const {x:_0x231e1b}=_0x3f8e22(_0x354b03[_0x4d55b3(0x51e)]);if(_0x231e1b<_0x2836d5||_0x231e1b>_0x2836d5+_0x2e01c2)return _0x35e591();const _0xb02257=_0xf0ad8c(_0x231e1b);_0x55e653(_0x231e1b,_0xb02257,_0x354b03),_0x18d41f(_0xb02257);},_0xbd6db3=_0x5591fc=>{_0x3e0ff0=_0x5591fc;if(_0x553c5d)return;_0x553c5d=requestAnimationFrame(_0x454b29);};if(_0x28b2f5[_0x52ad0c(0xa64)])_0x28b2f5[_0x52ad0c(0xa64)][_0x52ad0c(0x582)]();const _0x42325a=new AbortController();_0x57fbc3[_0x52ad0c(0x171)]('pointermove',_0xbd6db3,{'signal':_0x42325a[_0x52ad0c(0x5fe)]}),_0x57fbc3[_0x52ad0c(0x171)](_0x52ad0c(0xf92),_0xbd6db3,{'signal':_0x42325a[_0x52ad0c(0x5fe)]}),_0x57fbc3[_0x52ad0c(0x171)](_0x52ad0c(0x5c2),_0x35e591,{'signal':_0x42325a['signal']});_0x1fd569&&(_0x57fbc3['addEventListener']('pointerdown',_0x2580c5,{'signal':_0x42325a[_0x52ad0c(0x5fe)]}),_0x57fbc3[_0x52ad0c(0x171)]('pointerup',_0x2a08aa,{'signal':_0x42325a[_0x52ad0c(0x5fe)]}),_0x57fbc3[_0x52ad0c(0x171)](_0x52ad0c(0xf9f),_0x28fbcf,{'signal':_0x42325a[_0x52ad0c(0x5fe)]}));_0x42325a[_0x52ad0c(0x5fe)][_0x52ad0c(0x171)](_0x52ad0c(0x582),()=>{const _0x223bac=_0x52ad0c;_0x553c5d&&(cancelAnimationFrame(_0x553c5d),_0x553c5d=0x0),_0x3e0ff0=null,_0x180540[_0x223bac(0xf4a)](),window['removeEventListener'](_0x223bac(0xedb),_0x200839),_0x5469f1[_0x223bac(0x1ea)]('scroll',_0x200839);}),_0x28b2f5[_0x52ad0c(0xa64)]=_0x42325a,_0x28b2f5['_showTooltipAtTime']=_0x14ebc6=>{const _0x456a3f=_0x52ad0c;if(_0x28b2f5[_0x456a3f(0x9cd)]?.[_0x456a3f(0xc02)]&&_0x1542cd())return;if(_0x14ebc6<_0x2dcf8b||_0x14ebc6>_0x16cf66)return _0x1d9d91();_0x55e653(_0x4847c4(_0x14ebc6),_0x14ebc6,null);},_0x28b2f5[_0x52ad0c(0xadc)]=()=>{const _0x2dfd52=_0x52ad0c;if(!(_0x28b2f5[_0x2dfd52(0x9cd)]?.[_0x2dfd52(0xc02)]&&_0x1542cd()))_0x1d9d91();};if(!_0x1fd569)_0x28b2f5[_0x52ad0c(0x9cd)]?.[_0x52ad0c(0xc02)]&&(_0x28b2f5[_0x52ad0c(0x9cd)]=[],_0x28b2f5[_0x52ad0c(0x38f)]=null),_0x14eb75(null);else _0x28b2f5[_0x52ad0c(0x9cd)]?.[_0x52ad0c(0xc02)]?_0x42a2d4():_0x14eb75(null);if(!(_0x28b2f5[_0x52ad0c(0x9cd)]?.['length']&&_0x1542cd())&&_0x28b2f5[_0x52ad0c(0x523)]!=null)_0x28b2f5[_0x52ad0c(0x5c4)](_0x28b2f5[_0x52ad0c(0x523)]);}}class BaseCanvasRenderer{constructor(_0x812f41){const _0x5b8bd7=_0x46af5e;this[_0x5b8bd7(0x1d2)]=_0x812f41,this[_0x5b8bd7(0xccb)]=null;}[_0x46af5e(0xa34)](_0x223fba,_0x202ae8){const _0x3f8a20=_0x46af5e;if(this[_0x3f8a20(0xccb)])this[_0x3f8a20(0xccb)][_0x3f8a20(0x582)]();return this['_abort']=new AbortController(),{'W':Math['max'](0x28,_0x223fba['clientWidth']||this[_0x3f8a20(0x1d2)][_0x3f8a20(0x342)]||0x190),'H':Math['max'](0x50,parseInt(_0x202ae8['height'],0xa)||0xc8)};}['_animateDraw'](_0x2a9a19,_0x3499d5,_0x5838e2,_0x264894,_0x53fe88,_0x5674b4,_0x36556e,_0x126a0e){const _0x26fec5=_0x46af5e;this[_0x26fec5(0xb26)]&&(cancelAnimationFrame(this[_0x26fec5(0xb26)]),this[_0x26fec5(0xb26)]=0x0);if(_0x53fe88[_0x26fec5(0x8fc)]){this['_animStart']=performance['now'](),this['_cssColorMemo']=new Map();const _0x314ab9=_0x179a5a=>{const _0x351451=_0x26fec5,_0x54c8dc=Math[_0x351451(0xba1)](0x1,Math[_0x351451(0x220)](0x0,(_0x179a5a-this[_0x351451(0x2a1)])/0x258)),_0x443915=0x1-Math['pow'](0x1-_0x54c8dc,0x3);this['_draw'](_0x2a9a19,_0x3499d5,_0x5838e2,_0x264894,_0x53fe88,_0x5674b4,_0x443915),_0x54c8dc<0x1?this[_0x351451(0xb26)]=requestAnimationFrame(_0x314ab9):(this['_animRaf']=0x0,this['_cssColorMemo']=null,this[_0x351451(0x180)](_0x36556e,_0x126a0e,_0x53fe88,_0x5674b4));};this[_0x26fec5(0xb26)]=requestAnimationFrame(_0x314ab9);}else this['_draw'](_0x2a9a19,_0x3499d5,_0x5838e2,_0x264894,_0x53fe88,_0x5674b4,0x1),this[_0x26fec5(0x180)](_0x36556e,_0x126a0e,_0x53fe88,_0x5674b4);}[_0x46af5e(0xa0a)](_0x5179a5,_0x59330a){const _0x16c573=_0x46af5e;return _0x5179a5[_0x16c573(0x17c)]=_0x16c573(0xea0)+_0x59330a+_0x16c573(0x713),{'container':_0x5179a5['querySelector'](_0x16c573(0x93f)),'canvas':_0x5179a5['querySelector'](_0x16c573(0x1cf)),'tooltipEl':_0x5179a5[_0x16c573(0xee6)](_0x16c573(0x19a))};}[_0x46af5e(0x7bc)](_0x4a0346,_0x52df7b,_0x35b089){const _0x373d7f=_0x46af5e;_0x4a0346[_0x373d7f(0x944)][_0x373d7f(0x7a2)]='1';const _0x2e4f36=_0x4a0346[_0x373d7f(0x342)];let _0x23f0b0=_0x35b089+0x10;if(_0x23f0b0+_0x2e4f36>_0x52df7b[_0x373d7f(0x581)])_0x23f0b0=_0x23f0b0-_0x2e4f36-0x20;_0x4a0346[_0x373d7f(0x944)][_0x373d7f(0xaaf)]=Math[_0x373d7f(0x220)](0x0,_0x23f0b0)+'px',_0x4a0346['style'][_0x373d7f(0xf55)]='0';}[_0x46af5e(0x7ab)](_0x118a56,_0x18d87f,_0xef9bb9,_0x32325e){const _0x526174=_0x46af5e;_0x118a56['addEventListener'](_0x526174(0xd96),_0xef9bb9,{'signal':_0x32325e}),_0x118a56['addEventListener'](_0x526174(0xcb5),()=>{const _0x2e8690=_0x526174;_0x18d87f[_0x2e8690(0x944)][_0x2e8690(0x7a2)]='0';},{'signal':_0x32325e}),_0x118a56[_0x526174(0x171)](_0x526174(0xa3c),_0x567642=>{const _0x38a5f7=_0x526174;if(_0x567642['touches']['length']===0x1)_0xef9bb9({'clientX':_0x567642[_0x38a5f7(0x9e4)][0x0]['clientX'],'clientY':_0x567642[_0x38a5f7(0x9e4)][0x0][_0x38a5f7(0x6a3)]});},{'signal':_0x32325e,'passive':!![]}),_0x118a56[_0x526174(0x171)]('touchend',()=>{const _0x86ea2d=_0x526174;_0x18d87f[_0x86ea2d(0x944)][_0x86ea2d(0x7a2)]='0';},{'signal':_0x32325e});}[_0x46af5e(0xdfc)](_0x4350bd,_0x3573f9,_0x128b76,_0x559188){const _0x121f6e=_0x46af5e;let _0x142b07=_0x4350bd[_0x121f6e(0x974)]&&typeof _0x4350bd[_0x121f6e(0x974)]===_0x121f6e(0xc18)?_0x4350bd['entity']:null;if(!_0x142b07){const _0x11dbc5=String(_0x4350bd['id']||'')[_0x121f6e(0x727)](/^(.+)__(\d+)$/);if(_0x11dbc5)_0x142b07=_0x128b76[parseInt(_0x11dbc5[0x2],0xa)]||_0x128b76['find'](_0x4a520e=>_0x4a520e['entity']===_0x11dbc5[0x1]);}if(!_0x142b07)_0x142b07={};if(_0x142b07[_0x121f6e(0xbef)])return null;const _0x47ef13=_0x142b07[_0x121f6e(0xc48)],_0x2ef1ef=(_0x47ef13||'')+'|'+(_0x142b07[_0x121f6e(0xde5)]??'')+'|'+(_0x142b07[_0x121f6e(0xd57)]?0x1:0x0)+'|'+(_0x142b07[_0x121f6e(0xebb)]||'')+'|'+(_0x142b07[COMPILED_TRANSFORM]?.[_0x121f6e(0x1b3)]?Math[_0x121f6e(0xedc)]((this['card']?.[_0x121f6e(0xe48)]||Date['now']())/0xea60):'')+'|'+(_0x142b07[_0x121f6e(0x625)]||'')+'|'+(_0x142b07[_0x121f6e(0x949)]||'')+'|'+(this[_0x121f6e(0x1d2)]?.[_0x121f6e(0xe22)]||0x0)+'|'+(_0x142b07[_0x121f6e(0x455)]||'')+'|'+(_0x142b07['ref_attribute']||'')+'|'+(_0x142b07[_0x121f6e(0x58d)]||''),_0x3303dd=Array['isArray'](_0x4350bd['raw'])&&_0x4350bd[_0x121f6e(0xbcc)][_0x121f6e(0xc02)]&&_0x47ef13!==_0x121f6e(0xe34)&&!(_0x142b07[_0x121f6e(0x455)]&&typeof this[_0x121f6e(0x1d2)]?.['_refRefused']===_0x121f6e(0x8c6)&&this[_0x121f6e(0x1d2)][_0x121f6e(0xbe4)](_0x142b07)),_0x5c3025=_0x3303dd?_0x4350bd[_0x121f6e(0xbcc)]:_0x4350bd[_0x121f6e(0x93a)]||[],_0x35a10e=''+(_0x3303dd?'r':'p')+_0x5c3025['length']+'|'+(_0x5c3025['length']?_0x5c3025[0x0]['t']:0x0)+'|'+(_0x5c3025[_0x121f6e(0xc02)]?_0x5c3025[_0x5c3025[_0x121f6e(0xc02)]-0x1]['t']:0x0),_0x37b631=_0x4350bd['id']||'i'+_0x3573f9,_0x3f77e1=this['_prep']['get'](_0x37b631);let _0x5cbb11;if(_0x3f77e1&&_0x3f77e1['ref']===_0x5c3025&&_0x3f77e1[_0x121f6e(0xe58)]===_0x2ef1ef&&_0x3f77e1[_0x121f6e(0xc9e)]===_0x35a10e)_0x5cbb11=_0x3f77e1['out'];else{let _0x15ae4c=_0x5c3025;if(_0x3303dd){_0x15ae4c=_0x47ef13===_0x121f6e(0x934)?DataProcessor[_0x121f6e(0x8df)](_0x15ae4c):_0x15ae4c;try{_0x15ae4c=DataProcessor[_0x121f6e(0xcce)](_0x15ae4c,_0x142b07);}catch(_0x5473bd){}try{if(_0x142b07[_0x121f6e(0x455)]&&!_0x142b07[_0x121f6e(0xbef)]&&!_0x142b07[_0x121f6e(0x102c)])_0x15ae4c=this[_0x121f6e(0x1d2)]['_applyRefTo'](_0x15ae4c,_0x142b07);const _0x3598f1=this[_0x121f6e(0x1d2)][_0x121f6e(0xc51)](_0x142b07);if(_0x3598f1)_0x15ae4c=DataProcessor[_0x121f6e(0xa36)](_0x15ae4c,_0x3598f1);}catch(_0xd10134){}try{_0x15ae4c=DataProcessor[_0x121f6e(0xb5c)](_0x15ae4c,_0x142b07,![],{'now':this[_0x121f6e(0x1d2)]?.[_0x121f6e(0xe48)]||Date[_0x121f6e(0x69d)](),'tz':resolveDisplayTimeZone(this[_0x121f6e(0x1d2)]?.[_0x121f6e(0x1dc)],this[_0x121f6e(0x1d2)]?.[_0x121f6e(0xfe9)])});}catch(_0x425d59){}}_0x5cbb11=_0x559188(_0x15ae4c),this[_0x121f6e(0xd44)]['set'](_0x37b631,{'ref':_0x5c3025,'eSig':_0x2ef1ef,'dSig':_0x35a10e,'out':_0x5cbb11});}return{'ent':_0x142b07,'out':_0x5cbb11,'eSig':_0x2ef1ef,'dSig':_0x35a10e};}[_0x46af5e(0x97e)](_0x510830,_0x4add53,_0x2f515c,_0x2eeefe,_0xb8fe1c){const _0x33ea20=_0x46af5e,{W:_0x2e658d,H:_0x203bf2}=this['_beginRender'](_0x510830,_0x2f515c);if(!_0x4add53[_0x33ea20(0xc02)]){_0x510830['innerHTML']='<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20entity\x20to\x20display.</div>';return;}const _0x9ff39e=_0x4add53[0x0],_0x51a48b=this[_0x33ea20(0x3bf)](_0x9ff39e,this[_0x33ea20(0x1d2)][_0x33ea20(0xfef)]||[]);this[_0x33ea20(0x1a7)]=_0x51a48b,this[_0x33ea20(0x2be)]=_0x9ff39e[_0x33ea20(0x731)]||{},this['_color']=this[_0x33ea20(0x1d2)]['_resolveColor'](_0x51a48b[_0x33ea20(0xd95)],_0x51a48b['entity'])||_0x51a48b[_0x33ea20(0xd95)]||_0x33ea20(0x776);if(this[_0x33ea20(0xa59)]===_0x33ea20(0xe42))this[_0x33ea20(0xa59)]='#4A90D9';this[_0x33ea20(0x833)]=_0x4add53;const _0x569baa=this[_0x33ea20(0x49f)](_0x9ff39e,_0x51a48b,resolveFirstWeekday(_0x2eeefe));this[_0x33ea20(0x6c4)]=_0x569baa;if(!(_0x569baa['days']||_0x569baa[_0x33ea20(0x3b5)]||[])[_0x33ea20(0xc02)]){_0x510830[_0x33ea20(0x17c)]=_0x33ea20(0xa17)+_0xb8fe1c+_0x33ea20(0x743);return;}const {container:_0x2ea148,canvas:_0x1795a5,tooltipEl:_0x2df0e0}=this['_mountCanvas'](_0x510830,_0x203bf2);if(!_0x1795a5)return;this['_draw'](_0x1795a5,_0x569baa,_0x2e658d,_0x203bf2,_0x2f515c,_0x2eeefe),this[_0x33ea20(0x180)](_0x2ea148,_0x2df0e0,_0x2f515c,_0x2eeefe);}[_0x46af5e(0x3bf)](_0x426980,_0x5924d8){const _0x4421e5=_0x46af5e;if(_0x426980[_0x4421e5(0x974)]&&typeof _0x426980['entity']===_0x4421e5(0xc18))return _0x426980['entity'];const _0x2e0bd8=String(_0x426980['id']||'')[_0x4421e5(0x727)](/^(.+)__(\d+)$/);let _0x503908=null;if(_0x2e0bd8)_0x503908=_0x5924d8[parseInt(_0x2e0bd8[0x2],0xa)]||_0x5924d8[_0x4421e5(0x90c)](_0x1e99b6=>_0x1e99b6['entity']===_0x2e0bd8[0x1]);if(!_0x503908)_0x503908=_0x5924d8['find'](_0x30132f=>_0x30132f['entity']===_0x426980[_0x4421e5(0x974)]);return _0x503908||{'entity':_0x426980[_0x4421e5(0x974)],'color':_0x4421e5(0x776)};}[_0x46af5e(0xa24)](_0x102ea2,_0x2fd5d8){const _0x2915e8=_0x46af5e;if(!_0x102ea2)return _0x2fd5d8;if(typeof _0x102ea2===_0x2915e8(0xade)&&_0x102ea2[_0x2915e8(0xf06)](_0x2915e8(0x26c))){const _0xb2cf18=this['_cssColorMemo'];if(_0xb2cf18&&_0xb2cf18['has'](_0x102ea2))return _0xb2cf18[_0x2915e8(0xc3f)](_0x102ea2);try{const _0x4a4f83=this[_0x2915e8(0x1d2)]?.[_0x2915e8(0xbb2)]?.[_0x2915e8(0xee6)](_0x2915e8(0xe1d))||this[_0x2915e8(0x1d2)]||document['body'],_0x8e53e8=document[_0x2915e8(0xbde)](_0x2915e8(0x76f));_0x8e53e8[_0x2915e8(0x944)][_0x2915e8(0xd95)]=_0x102ea2,_0x4a4f83['appendChild'](_0x8e53e8);const _0x3bac6b=getComputedStyle(_0x8e53e8)[_0x2915e8(0xd95)];_0x4a4f83[_0x2915e8(0x5a6)](_0x8e53e8);if(_0x3bac6b){if(this['_cssColorMemo'])this[_0x2915e8(0x487)][_0x2915e8(0xa2d)](_0x102ea2,_0x3bac6b);return _0x3bac6b;}}catch(_0x33fb15){}return _0x2fd5d8;}return _0x102ea2;}[_0x46af5e(0xc07)](){const _0x4bfe9a=_0x46af5e;try{const _0x508d70=getComputedStyle(document[_0x4bfe9a(0xc11)])[_0x4bfe9a(0x767)](_0x4bfe9a(0xcd3))[_0x4bfe9a(0xa11)]();if(_0x508d70)return _0x508d70;}catch(_0x39888f){}return'Roboto,\x20sans-serif';}[_0x46af5e(0xbc8)](_0xda4609,_0x13da67,_0x2f5876){const _0x3722af=_0x46af5e,_0x317f8c=_0xda4609[_0x3722af(0x805)]('2d'),_0x9faac=window['devicePixelRatio']||0x1;return _0xda4609[_0x3722af(0x581)]=_0x13da67*_0x9faac,_0xda4609[_0x3722af(0x43d)]=_0x2f5876*_0x9faac,_0x317f8c[_0x3722af(0xa42)](_0x9faac,_0x9faac),_0x317f8c[_0x3722af(0x69a)](0x0,0x0,_0x13da67,_0x2f5876),_0x317f8c;}['_detectDark'](){const _0x5b1311=_0x46af5e;try{const _0xacd48a=getComputedStyle(document[_0x5b1311(0xc11)])[_0x5b1311(0x767)](_0x5b1311(0x4fb))[_0x5b1311(0xa11)](),_0x1b12e5=_0xacd48a[_0x5b1311(0x727)](/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x1b12e5){const _0x5893b1=(parseInt(_0x1b12e5[0x1])+parseInt(_0x1b12e5[0x2])+parseInt(_0x1b12e5[0x3]))/0x3;return _0x5893b1>0x80;}}catch(_0x40c036){}try{const _0x29df83=getComputedStyle(document[_0x5b1311(0x87f)])[_0x5b1311(0x767)]('--rgb-primary-text-color')[_0x5b1311(0xa11)](),_0x140ccb=_0x29df83[_0x5b1311(0x727)](/(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x140ccb){const _0x1ad82f=(parseInt(_0x140ccb[0x1])+parseInt(_0x140ccb[0x2])+parseInt(_0x140ccb[0x3]))/0x3;return _0x1ad82f>0x80;}}catch(_0x2fdff2){}try{const _0x1a4f7a=document['createElement'](_0x5b1311(0x76f));_0x1a4f7a[_0x5b1311(0x944)][_0x5b1311(0xd95)]='var(--primary-text-color)',_0x1a4f7a[_0x5b1311(0x944)][_0x5b1311(0x405)]=_0x5b1311(0xc2a),_0x1a4f7a[_0x5b1311(0x944)][_0x5b1311(0xcf5)]='hidden',_0x1a4f7a[_0x5b1311(0x944)][_0x5b1311(0xf3f)]=_0x5b1311(0x412),document[_0x5b1311(0x87f)][_0x5b1311(0x319)](_0x1a4f7a);const _0x557e01=getComputedStyle(_0x1a4f7a)[_0x5b1311(0xd95)];document[_0x5b1311(0x87f)][_0x5b1311(0x5a6)](_0x1a4f7a);const _0xe3459b=_0x557e01&&_0x557e01['match'](/(\d+)\D+(\d+)\D+(\d+)/);if(_0xe3459b){const _0x10734a=(parseInt(_0xe3459b[0x1])+parseInt(_0xe3459b[0x2])+parseInt(_0xe3459b[0x3]))/0x3;if(_0x10734a!==0x0||_0x557e01[_0x5b1311(0xf06)](_0x5b1311(0xeaf)))return _0x10734a>0x80;}}catch(_0x557bf9){}try{let _0x9fb3ff=this[_0x5b1311(0x1d2)],_0x49192e=null;for(let _0x37b7d1=0x0;_0x37b7d1<0xa&&_0x9fb3ff;_0x37b7d1++){if(_0x9fb3ff[_0x5b1311(0xcaf)]===0x1&&_0x9fb3ff['tagName']===_0x5b1311(0x320)){_0x49192e=_0x9fb3ff;break;}_0x9fb3ff=_0x9fb3ff[_0x5b1311(0x100a)]||_0x9fb3ff[_0x5b1311(0x514)]&&_0x9fb3ff['getRootNode']()['host'];}if(_0x49192e){const _0x3e6da1=getComputedStyle(_0x49192e)[_0x5b1311(0xf04)],_0x38e94f=_0x3e6da1&&_0x3e6da1[_0x5b1311(0x727)](/(\d+)\D+(\d+)\D+(\d+)/);if(_0x38e94f){const _0x5dfd51=(parseInt(_0x38e94f[0x1])+parseInt(_0x38e94f[0x2])+parseInt(_0x38e94f[0x3]))/0x3;return _0x5dfd51<0x80;}}}catch(_0x394096){}try{const _0x13ef31=getComputedStyle(document['body'])[_0x5b1311(0xf04)],_0x59439a=_0x13ef31&&_0x13ef31[_0x5b1311(0x727)](/(\d+)\D+(\d+)\D+(\d+)/);if(_0x59439a){const _0x2d72d9=(parseInt(_0x59439a[0x1])+parseInt(_0x59439a[0x2])+parseInt(_0x59439a[0x3]))/0x3;return _0x2d72d9<0x80;}}catch(_0x332dc6){}return window[_0x5b1311(0xb2b)]&&window[_0x5b1311(0xb2b)](_0x5b1311(0x356))[_0x5b1311(0x6cb)];}}class PieRenderer extends BaseCanvasRenderer{constructor(_0x3758b9){const _0x2e0895=_0x46af5e;super(_0x3758b9),this['_pieItems']=[],this[_0x2e0895(0xc1a)]=[],this[_0x2e0895(0xb26)]=0x0,this['_animStart']=0x0;}[_0x46af5e(0x59c)](_0x3d4019,_0x3e4857,_0x482bfe,_0x199f57){const _0x15704d=_0x46af5e,{W:_0x15072b,H:_0x4f0a9a}=this[_0x15704d(0xa34)](_0x3d4019,_0x482bfe),_0x565d67=this[_0x15704d(0x1d2)][_0x15704d(0xfef)]||[],_0x147494=[];_0x3e4857[_0x15704d(0xd27)](_0x5aefff=>{const _0x2c1816=_0x15704d,_0x145fe0=this[_0x2c1816(0x3bf)](_0x5aefff,_0x565d67),_0x5bffcd=(_0x5aefff[_0x2c1816(0x93a)]||[])[_0x2c1816(0x919)](_0x5cfa3c=>_0x5cfa3c['v']!==null&&_0x5cfa3c['v']!==undefined),_0x417d1d=_0x199f57?.[_0x2c1816(0x4f9)]?.[_0x145fe0[_0x2c1816(0x974)]],_0x111967=_0x145fe0['aggregate_func']||'last';let _0x13a816;if(_0x5bffcd[_0x2c1816(0xc02)])_0x13a816=reduceByAggregate(_0x5bffcd,_0x111967);else _0x417d1d?_0x13a816=parseFloat(_0x417d1d['state']):_0x13a816=0x0;if(_0x13a816===undefined||_0x13a816===null||isNaN(_0x13a816))_0x13a816=0x0;const _0x1f8553=_0x5aefff[_0x2c1816(0x731)]||{},_0x5e117a=pickName(_0x145fe0[_0x2c1816(0xce6)]!==undefined?_0x145fe0[_0x2c1816(0xce6)]:_0x145fe0[_0x2c1816(0xdee)],_0x1f8553[_0x2c1816(0x17e)]!==undefined&&_0x145fe0['tooltip_name']!==undefined?_0x1f8553['resolved_tooltip_name']:_0x1f8553[_0x2c1816(0x40b)],_0x1f8553)??_0x145fe0[_0x2c1816(0x974)]??'?';_0x147494['push']({'name':pickName(_0x145fe0[_0x2c1816(0xdee)],_0x1f8553['resolved_name'],_0x1f8553)??'','tooltipName':_0x5e117a,'value':Math[_0x2c1816(0x1ae)](_0x13a816),'color':(_0x145fe0[_0x2c1816(0xd95)]===_0x2c1816(0xe42)?null:this[_0x2c1816(0x1d2)][_0x2c1816(0x3c6)](_0x145fe0['color'],_0x145fe0[_0x2c1816(0x974)])||_0x145fe0[_0x2c1816(0xd95)])||_0x2c1816(0x776),'unit':_0x145fe0[_0x2c1816(0x32e)]||_0x1f8553[_0x2c1816(0x398)]||'','entity':_0x145fe0});});const {container:_0x493afe,canvas:_0x55f37e,tooltipEl:_0x2d7c95}=this[_0x15704d(0xa0a)](_0x3d4019,_0x4f0a9a);if(!_0x55f37e)return;this[_0x15704d(0xef2)]=_0x147494,this[_0x15704d(0x724)](_0x55f37e,_0x147494,_0x15072b,_0x4f0a9a,_0x482bfe,_0x199f57,_0x493afe,_0x2d7c95);}[_0x46af5e(0xd26)](_0x851f4f,_0x55a8fe,_0x4a372b,_0x15afd3,_0x224c57,_0x59750d,_0x32e7ad){const _0x56726c=_0x46af5e;if(_0x32e7ad===undefined)_0x32e7ad=0x1;const _0x4c8ad9=this[_0x56726c(0xbc8)](_0x851f4f,_0x4a372b,_0x15afd3),_0x3641d6=this[_0x56726c(0xffd)](),_0x483cee=_0x3641d6?_0x56726c(0xdb7):'rgba(0,0,0,0.75)',_0x4b0556=_0x3641d6?_0x56726c(0x62b):'rgba(0,0,0,0.4)',_0x131118=this[_0x56726c(0xc07)](),_0x339197=_0x55a8fe[_0x56726c(0x617)]((_0x508b31,_0x46793a)=>_0x508b31+_0x46793a[_0x56726c(0x2ea)],0x0),_0x2515e2={'classic':0x0,'thick':0.3,'donut':0.55,'thin':0.78},_0x4fb0b5=_0x224c57[_0x56726c(0x367)]||_0x56726c(0xcb0);let _0x589700=_0x2515e2[_0x4fb0b5]!=null?_0x2515e2[_0x4fb0b5]:0.55;const _0xceeaf8=_0x224c57[_0x56726c(0x74f)]!==![];if(_0xceeaf8&&_0x589700<0.42)_0x589700=0.42;const _0x22a654=!!_0x224c57[_0x56726c(0x82a)],_0x2610c5=_0x22a654?0.72:0x1,_0x260546=Math['max'](0x0,Math[_0x56726c(0xba1)](0xf,parseFloat(_0x224c57[_0x56726c(0xdd3)])||0x0)),_0x1a3d14=_0x260546*Math['PI']/0xb4,_0x207afa=_0x22a654?Math[_0x56726c(0xba1)](0x10,Math[_0x56726c(0xba1)](_0x15afd3,_0x4a372b)*0.06):0x0,_0x553434=_0x15afd3-0x10-_0x207afa,_0x37ff88=_0x4a372b-0x10,_0x4702b6=Math[_0x56726c(0xba1)](_0x37ff88/0x2,_0x553434/0x2/_0x2610c5)*0.88,_0xec4e=_0x4702b6*_0x589700,_0x5a65bc=_0x4a372b/0x2,_0x4e3bba=_0x15afd3/0x2-_0x207afa/0x2,_0x51f10b=_0x1a3d14>0x0&&_0xec4e>0x0,_0x90f0d2=_0x51f10b?Math[_0x56726c(0xba1)]((_0x4702b6-_0xec4e)*0.4,0x6):0x0,_0x43090e=(_0x411dab,_0x1ff80a,_0x1af395)=>{const _0x2687e9=_0x56726c;_0x4c8ad9[_0x2687e9(0xb64)]();if(_0x51f10b){const _0x4fa1b3=(_0xae43c8,_0x3060d2)=>_0x5a65bc+Math[_0x2687e9(0x576)](_0x3060d2)*_0xae43c8,_0x2f3c00=(_0x17f32b,_0x4783f3)=>_0x4e3bba+_0x1af395+Math[_0x2687e9(0xeac)](_0x4783f3)*_0x17f32b*_0x2610c5,_0x471d70=Math[_0x2687e9(0xba1)](_0x90f0d2/_0x4702b6,(_0x1ff80a-_0x411dab)/0x2-0.0001),_0x28e282=Math[_0x2687e9(0xba1)](_0x90f0d2/_0xec4e,(_0x1ff80a-_0x411dab)/0x2-0.0001);_0x4c8ad9[_0x2687e9(0x811)](_0x4fa1b3(_0x4702b6,_0x411dab+_0x471d70),_0x2f3c00(_0x4702b6,_0x411dab+_0x471d70)),_0x4c8ad9[_0x2687e9(0x7cd)](_0x5a65bc,_0x4e3bba+_0x1af395,_0x4702b6,_0x4702b6*_0x2610c5,0x0,_0x411dab+_0x471d70,_0x1ff80a-_0x471d70),_0x4c8ad9[_0x2687e9(0xaa6)](_0x4fa1b3(_0x4702b6,_0x1ff80a),_0x2f3c00(_0x4702b6,_0x1ff80a),_0x4fa1b3(_0x4702b6-_0x90f0d2,_0x1ff80a),_0x2f3c00(_0x4702b6-_0x90f0d2,_0x1ff80a)),_0x4c8ad9['lineTo'](_0x4fa1b3(_0xec4e+_0x90f0d2,_0x1ff80a),_0x2f3c00(_0xec4e+_0x90f0d2,_0x1ff80a)),_0x4c8ad9[_0x2687e9(0xaa6)](_0x4fa1b3(_0xec4e,_0x1ff80a),_0x2f3c00(_0xec4e,_0x1ff80a),_0x4fa1b3(_0xec4e,_0x1ff80a-_0x28e282),_0x2f3c00(_0xec4e,_0x1ff80a-_0x28e282)),_0x4c8ad9[_0x2687e9(0x7cd)](_0x5a65bc,_0x4e3bba+_0x1af395,_0xec4e,_0xec4e*_0x2610c5,0x0,_0x1ff80a-_0x28e282,_0x411dab+_0x28e282,!![]),_0x4c8ad9[_0x2687e9(0xaa6)](_0x4fa1b3(_0xec4e,_0x411dab),_0x2f3c00(_0xec4e,_0x411dab),_0x4fa1b3(_0xec4e+_0x90f0d2,_0x411dab),_0x2f3c00(_0xec4e+_0x90f0d2,_0x411dab)),_0x4c8ad9[_0x2687e9(0x779)](_0x4fa1b3(_0x4702b6-_0x90f0d2,_0x411dab),_0x2f3c00(_0x4702b6-_0x90f0d2,_0x411dab)),_0x4c8ad9[_0x2687e9(0xaa6)](_0x4fa1b3(_0x4702b6,_0x411dab),_0x2f3c00(_0x4702b6,_0x411dab),_0x4fa1b3(_0x4702b6,_0x411dab+_0x471d70),_0x2f3c00(_0x4702b6,_0x411dab+_0x471d70));}else _0xec4e>0x0?(_0x4c8ad9['ellipse'](_0x5a65bc,_0x4e3bba+_0x1af395,_0x4702b6,_0x4702b6*_0x2610c5,0x0,_0x411dab,_0x1ff80a),_0x4c8ad9[_0x2687e9(0x7cd)](_0x5a65bc,_0x4e3bba+_0x1af395,_0xec4e,_0xec4e*_0x2610c5,0x0,_0x1ff80a,_0x411dab,!![])):(_0x4c8ad9[_0x2687e9(0x811)](_0x5a65bc,_0x4e3bba+_0x1af395),_0x4c8ad9[_0x2687e9(0x7cd)](_0x5a65bc,_0x4e3bba+_0x1af395,_0x4702b6,_0x4702b6*_0x2610c5,0x0,_0x411dab,_0x1ff80a),_0x4c8ad9[_0x2687e9(0x779)](_0x5a65bc,_0x4e3bba+_0x1af395));_0x4c8ad9[_0x2687e9(0x9f8)]();},_0x33ad53=(_0x2bdb49,_0x52ee2c)=>{const _0xafccec=_0x56726c;let _0x15928f=String(_0x2bdb49||'#888');if(_0x15928f[_0xafccec(0xed0)]('#'))_0x15928f=_0x15928f[_0xafccec(0x165)](0x1);if(_0x15928f[_0xafccec(0xc02)]===0x3)_0x15928f=_0x15928f[_0xafccec(0xbc0)]('')[_0xafccec(0xb3f)](_0x56db7a=>_0x56db7a+_0x56db7a)[_0xafccec(0x888)]('');if(_0x15928f[_0xafccec(0xc02)]<0x6)return _0x2bdb49;const _0x1d4574=parseInt(_0x15928f[_0xafccec(0x165)](0x0,0x2),0x10),_0x49363e=parseInt(_0x15928f[_0xafccec(0x165)](0x2,0x4),0x10),_0x183a1c=parseInt(_0x15928f[_0xafccec(0x165)](0x4,0x6),0x10),_0x2952b4=0x1-_0x52ee2c;return _0xafccec(0x62f)+Math[_0xafccec(0x686)](_0x1d4574*_0x2952b4)+','+Math[_0xafccec(0x686)](_0x49363e*_0x2952b4)+','+Math['round'](_0x183a1c*_0x2952b4)+')';};if(_0x339197===0x0){_0x4c8ad9[_0x56726c(0xb64)]();_0xec4e>0x0?(_0x4c8ad9[_0x56726c(0x7cd)](_0x5a65bc,_0x4e3bba,_0x4702b6,_0x4702b6*_0x2610c5,0x0,0x0,Math['PI']*0x2),_0x4c8ad9[_0x56726c(0x7cd)](_0x5a65bc,_0x4e3bba,_0xec4e,_0xec4e*_0x2610c5,0x0,0x0,Math['PI']*0x2,!![])):_0x4c8ad9['ellipse'](_0x5a65bc,_0x4e3bba,_0x4702b6,_0x4702b6*_0x2610c5,0x0,0x0,Math['PI']*0x2);_0x4c8ad9[_0x56726c(0x9f8)](),_0x4c8ad9[_0x56726c(0x20c)]=_0x3641d6?_0x56726c(0x995):_0x56726c(0x5c8),_0x4c8ad9[_0x56726c(0x290)](),_0x4c8ad9[_0x56726c(0x20c)]=_0x4b0556,_0x4c8ad9[_0x56726c(0xee3)]='500\x20'+Math[_0x56726c(0xba1)](0xd,Math[_0x56726c(0x220)](0xa,_0x4702b6*0.18))+_0x56726c(0xd01)+_0x131118,_0x4c8ad9[_0x56726c(0x3b1)]=_0x56726c(0x942),_0x4c8ad9[_0x56726c(0xf1b)]='middle',_0x4c8ad9['fillText'](cardT(this[_0x56726c(0x1d2)]?.[_0x56726c(0x1dc)],this[_0x56726c(0x1d2)]?.['_config'],_0x56726c(0xa5c)),_0x5a65bc,_0x4e3bba),this['_pieSlices']=[];return;}const _0xef3a9d=-Math['PI']/0x2+Math['PI']*0x2*_0x32e7ad,_0x46d140=[];let _0x787080=-Math['PI']/0x2;_0x55a8fe[_0x56726c(0xd27)](_0x21e7a4=>{const _0x31aedf=_0x56726c,_0x2447ea=_0x21e7a4[_0x31aedf(0x2ea)]/_0x339197*Math['PI']*0x2,_0x249a78=_0x787080+_0x2447ea,_0x3604d6=_0xec4e>0x0?Math[_0x31aedf(0xba1)](_0x1a3d14/0x2,_0x2447ea/0x4):0x0;let _0x42381a=_0x787080+_0x3604d6,_0x509683=_0x249a78-_0x3604d6;if(_0x509683>_0xef3a9d)_0x509683=Math[_0x31aedf(0x220)](_0x42381a,_0xef3a9d);_0x46d140[_0x31aedf(0xb31)]({'sa':_0x787080,'ea':_0x249a78,'sweep':_0x2447ea,'drawSa':_0x42381a,'drawEa':_0x509683,'item':_0x21e7a4}),_0x787080=_0x249a78;});if(_0x22a654&&_0x207afa>0x0){const _0x5e25f5=Math['max'](0x4,Math['round'](_0x207afa));for(let _0x3d73bc=_0x5e25f5;_0x3d73bc>=0x1;_0x3d73bc--){const _0x4db07c=_0x3d73bc*(_0x207afa/_0x5e25f5);_0x46d140[_0x56726c(0xd27)](_0x496813=>{const _0x183ae9=_0x56726c;if(_0x496813['drawEa']<=_0x496813[_0x183ae9(0x79e)])return;let _0x5843f5=_0x496813[_0x183ae9(0xf40)][_0x183ae9(0xd95)];const _0x5ff9c6=_0x496813[_0x183ae9(0xf40)][_0x183ae9(0x974)];_0x5ff9c6?.[_0x183ae9(0xdd5)]?.['enabled']&&_0x5ff9c6[_0x183ae9(0xdd5)]['values']?.[_0x183ae9(0xc02)]&&(_0x5843f5=resolveValueColor(_0x496813[_0x183ae9(0xf40)][_0x183ae9(0x2ea)],this['card'][_0x183ae9(0x83c)](_0x5ff9c6),_0x5843f5)),_0x43090e(_0x496813[_0x183ae9(0x79e)],_0x496813[_0x183ae9(0xfd0)],_0x4db07c),_0x4c8ad9['fillStyle']=_0x33ad53(_0x5843f5,0.45+_0x3d73bc/_0x5e25f5*0.15),_0x4c8ad9['fill']();});}}this['_pieSlices']=[],_0x46d140[_0x56726c(0xd27)](_0x134a9b=>{const _0x2743ec=_0x56726c;if(_0x134a9b[_0x2743ec(0xfd0)]<=_0x134a9b[_0x2743ec(0x79e)])return;let _0x30617e=_0x134a9b[_0x2743ec(0xf40)][_0x2743ec(0xd95)];const _0xc2a0a5=_0x134a9b[_0x2743ec(0xf40)][_0x2743ec(0x974)];_0xc2a0a5?.[_0x2743ec(0xdd5)]?.[_0x2743ec(0x1007)]&&_0xc2a0a5[_0x2743ec(0xdd5)][_0x2743ec(0x202)]?.[_0x2743ec(0xc02)]&&(_0x30617e=resolveValueColor(_0x134a9b['item']['value'],this[_0x2743ec(0x1d2)][_0x2743ec(0x83c)](_0xc2a0a5),_0x30617e));_0x43090e(_0x134a9b[_0x2743ec(0x79e)],_0x134a9b[_0x2743ec(0xfd0)],0x0),_0x4c8ad9[_0x2743ec(0x20c)]=_0x30617e,_0x4c8ad9[_0x2743ec(0xd80)]=_0x22a654?0.95:0.8,_0x4c8ad9['fill'](),_0x4c8ad9[_0x2743ec(0xd80)]=0x1;if(_0x22a654){_0x43090e(_0x134a9b['drawSa'],_0x134a9b[_0x2743ec(0xfd0)],0x0);const _0x1dbe50=_0x4c8ad9[_0x2743ec(0x1008)](_0x5a65bc,_0x4e3bba-_0x4702b6*_0x2610c5,_0x5a65bc,_0x4e3bba+_0x4702b6*_0x2610c5);_0x1dbe50['addColorStop'](0x0,_0x2743ec(0x184)),_0x1dbe50[_0x2743ec(0x36e)](0.5,_0x2743ec(0x5d9)),_0x1dbe50[_0x2743ec(0x36e)](0x1,_0x2743ec(0xec5)),_0x4c8ad9[_0x2743ec(0x20c)]=_0x1dbe50,_0x4c8ad9[_0x2743ec(0x290)]();}this[_0x2743ec(0xc1a)][_0x2743ec(0xb31)]({'startAngle':_0x134a9b[_0x2743ec(0x79e)],'endAngle':_0x134a9b[_0x2743ec(0xfd0)],'item':_0x134a9b[_0x2743ec(0xf40)],'cx':_0x5a65bc,'cy':_0x4e3bba,'radius':_0x4702b6,'innerRadius':_0xec4e,'yScale':_0x2610c5});});if(_0x32e7ad>=0.999){const _0x235d3f=Math[_0x56726c(0xba1)](0xc,Math[_0x56726c(0x220)](0x9,_0x4702b6*0.14)),_0x2c7efa=parseFloat(_0x224c57['pie_label_font_size'])>0x0?parseFloat(_0x224c57[_0x56726c(0xf50)]):_0x235d3f,_0x163f7e=this[_0x56726c(0xa24)](_0x224c57[_0x56726c(0xdaf)],_0x3641d6?_0x56726c(0x223):_0x56726c(0x232)),_0x327583=_0x224c57[_0x56726c(0xb03)]||_0x56726c(0x2ea),_0x419e0f=_0x4ffaa6=>{const _0x1a4bbe=_0x56726c,_0x36a128=_0x4ffaa6['value']/_0x339197*0x64,_0x43308e=toNum(_0x4ffaa6[_0x1a4bbe(0x974)]?.[_0x1a4bbe(0xbcf)])??0x0;if(_0x327583===_0x1a4bbe(0xed5))return _0x36a128['toFixed'](_0x43308e)+'%';const _0x4dc572=formatNumber(_0x4ffaa6[_0x1a4bbe(0x2ea)],_0x4ffaa6[_0x1a4bbe(0x974)],_0x59750d);if(_0x327583===_0x1a4bbe(0x2ba))return''+_0x4dc572+(_0x4ffaa6[_0x1a4bbe(0x32e)]?'\x20'+_0x4ffaa6[_0x1a4bbe(0x32e)]:'')+'\x20('+_0x36a128[_0x1a4bbe(0x198)](_0x43308e)+'%)';return''+_0x4dc572+(_0x4ffaa6[_0x1a4bbe(0x32e)]?'\x20'+_0x4ffaa6[_0x1a4bbe(0x32e)]:'');},_0xab4860=0x5,_0x3a92ee=_0x224c57['pie_label_color']?_0x163f7e:_0x4b0556||_0x56726c(0xec4);_0x46d140[_0x56726c(0xd27)](_0x12a232=>{const _0x402940=_0x56726c;if(_0x12a232[_0x402940(0xfd0)]<=_0x12a232['drawSa'])return;const _0x57a31f=_0x12a232[_0x402940(0xf40)][_0x402940(0x2ea)]/_0x339197*0x64;if(_0x57a31f<=0x0)return;const _0x5e1071=(_0x12a232[_0x402940(0x79e)]+_0x12a232[_0x402940(0xfd0)])/0x2,_0x4b5b63=_0x419e0f(_0x12a232['item']);_0x4c8ad9[_0x402940(0xee3)]=_0x402940(0x821)+_0x2c7efa+_0x402940(0xd01)+_0x131118,_0x4c8ad9[_0x402940(0xf1b)]=_0x402940(0x6d4);if(_0x57a31f>=_0xab4860){const _0x247273=_0xec4e>0x0?(_0x4702b6+_0xec4e)/0x2:_0x4702b6*0.65,_0xcb7bfb=_0x5a65bc+Math['cos'](_0x5e1071)*_0x247273,_0x156626=_0x4e3bba+Math[_0x402940(0xeac)](_0x5e1071)*_0x247273*_0x2610c5;_0x4c8ad9[_0x402940(0x20c)]=_0x163f7e,_0x4c8ad9[_0x402940(0x3b1)]=_0x402940(0x942),_0x4c8ad9[_0x402940(0xa74)](_0x4b5b63,_0xcb7bfb,_0x156626);}else{const _0x3b7c1c=_0x12a232[_0x402940(0xf40)]['entity']?.[_0x402940(0xdd5)]?.[_0x402940(0x1007)]&&_0x12a232[_0x402940(0xf40)][_0x402940(0x974)]['color_thresholds'][_0x402940(0x202)]?.[_0x402940(0xc02)]?resolveValueColor(_0x12a232[_0x402940(0xf40)][_0x402940(0x2ea)],this[_0x402940(0x1d2)]['_thrVals'](_0x12a232[_0x402940(0xf40)][_0x402940(0x974)]),_0x12a232[_0x402940(0xf40)][_0x402940(0xd95)]):_0x12a232['item'][_0x402940(0xd95)],_0x1c15dc=_0x5a65bc+Math[_0x402940(0x576)](_0x5e1071)*_0x4702b6,_0x117a04=_0x4e3bba+Math[_0x402940(0xeac)](_0x5e1071)*_0x4702b6*_0x2610c5,_0x3e5217=_0x4702b6+0x6,_0x197599=_0x5a65bc+Math[_0x402940(0x576)](_0x5e1071)*_0x3e5217,_0x2d2197=_0x4e3bba+Math[_0x402940(0xeac)](_0x5e1071)*_0x3e5217*_0x2610c5,_0x22f6d3=Math[_0x402940(0x576)](_0x5e1071)>=0x0,_0x32b8d6=_0x197599+(_0x22f6d3?0x6:-0x6),_0x192dc4=_0x197599+(_0x22f6d3?0x4:-0x4);_0x4c8ad9[_0x402940(0x5dd)]=_0x3b7c1c||_0x3a92ee,_0x4c8ad9[_0x402940(0xf10)]=0x1,_0x4c8ad9[_0x402940(0xd80)]=0.85,_0x4c8ad9['beginPath'](),_0x4c8ad9[_0x402940(0x811)](_0x1c15dc,_0x117a04),_0x4c8ad9[_0x402940(0x779)](_0x197599,_0x2d2197),_0x4c8ad9[_0x402940(0x779)](_0x192dc4,_0x2d2197),_0x4c8ad9[_0x402940(0x3c1)](),_0x4c8ad9[_0x402940(0xd80)]=0x1,_0x4c8ad9[_0x402940(0x20c)]=_0x163f7e,_0x4c8ad9['textAlign']=_0x22f6d3?_0x402940(0xaaf):_0x402940(0x1fd),_0x4c8ad9[_0x402940(0xa74)](_0x4b5b63,_0x32b8d6,_0x2d2197);}});}if(_0xceeaf8&&_0x32e7ad>=0.999){const _0x32b58d=_0x55a8fe[0x0]?.[_0x56726c(0x32e)]||'',_0x20c0c2=formatNumber(_0x339197,_0x55a8fe[0x0]?.['entity']||{'decimals':0x1},_0x59750d)+(_0x32b58d?'\x20'+_0x32b58d:''),_0x3b4672=_0xec4e>0x0?_0xec4e*0x2*0.85:Math[_0x56726c(0xba1)](_0x4a372b,_0x15afd3)*0.4,_0xfcb187=Math[_0x56726c(0xba1)](0x12,_0x4702b6*0.32);let _0x46717d=parseFloat(_0x224c57['pie_center_font_size'])>0x0?parseFloat(_0x224c57['pie_center_font_size']):_0xfcb187;_0x4c8ad9['font']='500\x20'+_0x46717d+_0x56726c(0xd01)+_0x131118;const _0x3a71ab=_0x4c8ad9[_0x56726c(0x1ab)](_0x20c0c2)['width'];_0x3a71ab>_0x3b4672&&(_0x46717d=Math[_0x56726c(0x220)](0x8,_0x46717d*(_0x3b4672/_0x3a71ab)),_0x4c8ad9[_0x56726c(0xee3)]=_0x56726c(0x42c)+_0x46717d+'px\x20'+_0x131118);const _0x1734c7=this['_resolveCssColor'](_0x224c57['pie_center_color'],_0x483cee);_0x4c8ad9['fillStyle']=_0x1734c7,_0x4c8ad9['textAlign']=_0x56726c(0x942),_0x4c8ad9[_0x56726c(0xf1b)]=_0x56726c(0x6d4),_0x4c8ad9[_0x56726c(0xa74)](_0x20c0c2,_0x5a65bc,_0x4e3bba-_0x46717d*0.35);const _0x4644b0=Math['max'](0x7,Math[_0x56726c(0xba1)](0xa,_0x46717d*0.55)),_0x4567c6=_0x224c57[_0x56726c(0xe38)]?_0x1734c7:_0x4b0556;_0x4c8ad9[_0x56726c(0x20c)]=_0x4567c6,_0x4c8ad9['globalAlpha']=_0x224c57[_0x56726c(0xe38)]?0.6:0x1,_0x4c8ad9[_0x56726c(0xee3)]=_0x4644b0+_0x56726c(0xd01)+_0x131118,_0x4c8ad9[_0x56726c(0xa74)](cardT(this[_0x56726c(0x1d2)]?.[_0x56726c(0x1dc)],this[_0x56726c(0x1d2)]?.[_0x56726c(0xfe9)],'Total'),_0x5a65bc,_0x4e3bba+_0x46717d*0.55),_0x4c8ad9[_0x56726c(0xd80)]=0x1;}}[_0x46af5e(0x180)](_0x4e89e7,_0x34cb84,_0x3e8d64,_0x28d212){const _0x33fd58=_0x46af5e;if(!_0x34cb84||!_0x4e89e7||_0x3e8d64[_0x33fd58(0xeed)]===![]||!this[_0x33fd58(0xc1a)]?.[_0x33fd58(0xc02)])return;const _0x6c70bb=this[_0x33fd58(0xccb)][_0x33fd58(0x5fe)],_0x315e7e=_0xf8d12f=>{const _0x34a3e0=_0x33fd58,_0x464cad=_0x4e89e7[_0x34a3e0(0x9cc)](),_0x556c29=_0xf8d12f[_0x34a3e0(0x51e)]-_0x464cad[_0x34a3e0(0xaaf)],_0x51e9e3=_0xf8d12f[_0x34a3e0(0x6a3)]-_0x464cad[_0x34a3e0(0xf55)];let _0x23a098=null;for(const _0x9e715f of this[_0x34a3e0(0xc1a)]){const _0x578169=_0x9e715f[_0x34a3e0(0x246)]||0x1,_0x282c02=_0x556c29-_0x9e715f['cx'],_0x202c9c=(_0x51e9e3-_0x9e715f['cy'])/_0x578169,_0x5e2945=Math[_0x34a3e0(0x2ed)](_0x282c02*_0x282c02+_0x202c9c*_0x202c9c);if(_0x5e2945<_0x9e715f[_0x34a3e0(0x491)]||_0x5e2945>_0x9e715f['radius'])continue;let _0x3b10b6=Math[_0x34a3e0(0xa6e)](_0x202c9c,_0x282c02);if(_0x3b10b6<-Math['PI']/0x2)_0x3b10b6+=Math['PI']*0x2;if(_0x3b10b6>=_0x9e715f['startAngle']&&_0x3b10b6<_0x9e715f[_0x34a3e0(0xa33)]){_0x23a098=_0x9e715f;break;}}if(!_0x23a098){_0x34cb84['style'][_0x34a3e0(0x7a2)]='0';return;}const _0xee4e2=this[_0x34a3e0(0xef2)][_0x34a3e0(0x617)]((_0x480dd6,_0x369438)=>_0x480dd6+_0x369438[_0x34a3e0(0x2ea)],0x0),_0x457c9f=toNum(_0x23a098[_0x34a3e0(0xf40)][_0x34a3e0(0x974)]?.[_0x34a3e0(0xbcf)])??0x1,_0x5e7245=_0xee4e2>0x0?(_0x23a098[_0x34a3e0(0xf40)][_0x34a3e0(0x2ea)]/_0xee4e2*0x64)['toFixed'](_0x457c9f):'0',_0x243067=formatNumber(_0x23a098[_0x34a3e0(0xf40)][_0x34a3e0(0x2ea)],_0x23a098['item'][_0x34a3e0(0x974)],_0x28d212),_0x3de845=_0x23a098['item'][_0x34a3e0(0x974)]?.[_0x34a3e0(0x452)]!==![]?escapeHtml(_0x23a098[_0x34a3e0(0xf40)][_0x34a3e0(0xd95)]):_0x34a3e0(0x2ca);_0x34cb84['innerHTML']=_0x34a3e0(0x20e)+_0x3de845+_0x34a3e0(0x23f)+escapeHtml(_0x23a098[_0x34a3e0(0xf40)]['tooltipName']||_0x23a098[_0x34a3e0(0xf40)]['name']||'')+_0x34a3e0(0xd5c)+escapeHtml(String(_0x243067))+'\x20'+escapeHtml(_0x23a098[_0x34a3e0(0xf40)]['unit']||'')+_0x34a3e0(0xc3d)+(_0x34a3e0(0xf6b)+escapeHtml(cardT(_0x28d212,_0x3e8d64,'Share'))+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+_0x5e7245+_0x34a3e0(0x760)),this[_0x34a3e0(0x7bc)](_0x34cb84,_0x464cad,_0x556c29);};this[_0x33fd58(0x7ab)](_0x4e89e7,_0x34cb84,_0x315e7e,_0x6c70bb),_0x4e89e7[_0x33fd58(0x944)]['cursor']=_0x33fd58(0x670),_0x4e89e7['addEventListener']('click',_0x3171c5=>{const _0x11fb11=_0x33fd58,_0x218881=_0x4e89e7['getBoundingClientRect'](),_0xd3273c=_0x3171c5['clientX']-_0x218881[_0x11fb11(0xaaf)],_0x3577f2=_0x3171c5['clientY']-_0x218881['top'];let _0x51f778=null;for(const _0x504efe of this[_0x11fb11(0xc1a)]){const _0x36e8e4=_0x504efe[_0x11fb11(0x246)]||0x1,_0x2ed457=_0xd3273c-_0x504efe['cx'],_0x59dcec=(_0x3577f2-_0x504efe['cy'])/_0x36e8e4,_0x48369f=Math[_0x11fb11(0x2ed)](_0x2ed457*_0x2ed457+_0x59dcec*_0x59dcec);if(_0x48369f<_0x504efe['innerRadius']||_0x48369f>_0x504efe['radius'])continue;let _0x5ce551=Math['atan2'](_0x59dcec,_0x2ed457);if(_0x5ce551<-Math['PI']/0x2)_0x5ce551+=Math['PI']*0x2;if(_0x5ce551>=_0x504efe[_0x11fb11(0x93b)]&&_0x5ce551<_0x504efe[_0x11fb11(0xa33)]){_0x51f778=_0x504efe;break;}}if(!_0x51f778)return;_0x3171c5['stopPropagation'](),this['card'][_0x11fb11(0x7f2)](_0x51f778[_0x11fb11(0xf40)]?.[_0x11fb11(0x974)]);},{'signal':_0x6c70bb});}}class RadialBarRenderer extends BaseCanvasRenderer{constructor(_0x24985c){const _0x582a50=_0x46af5e;super(_0x24985c),this['_items']=[],this[_0x582a50(0x29c)]=[],this[_0x582a50(0xb26)]=0x0,this[_0x582a50(0x2a1)]=0x0;}[_0x46af5e(0x59c)](_0x43036a,_0x3ca833,_0x3a5a99,_0x2b3a1a){const _0x5bb217=_0x46af5e,{W:_0x4bebf5,H:_0x55a65e}=this['_beginRender'](_0x43036a,_0x3a5a99),_0x4e0285=this[_0x5bb217(0x1d2)][_0x5bb217(0xfef)]||[],_0x52e71b=[];_0x3ca833['forEach'](_0x3ea60b=>{const _0x4931bc=_0x5bb217,_0x180aa6=this['_seriesEntity'](_0x3ea60b,_0x4e0285),_0x418dd3=(_0x3ea60b[_0x4931bc(0x93a)]||[])[_0x4931bc(0x919)](_0x2a21da=>_0x2a21da['v']!==null&&_0x2a21da['v']!==undefined),_0x389713=_0x2b3a1a?.[_0x4931bc(0x4f9)]?.[_0x180aa6[_0x4931bc(0x974)]],_0x8c8a23=_0x180aa6[_0x4931bc(0xc48)]||_0x4931bc(0xa5d);let _0x47ce64;if(_0x418dd3[_0x4931bc(0xc02)])_0x47ce64=reduceByAggregate(_0x418dd3,_0x8c8a23);else _0x389713?_0x47ce64=parseFloat(_0x389713[_0x4931bc(0x5f5)]):_0x47ce64=0x0;if(_0x47ce64===undefined||_0x47ce64===null||isNaN(_0x47ce64))_0x47ce64=0x0;const _0x2de8ea=resolveEntityBound(_0x180aa6[_0x4931bc(0xf24)],0x0,_0x2b3a1a),_0x2605ad=resolveEntityBound(_0x180aa6[_0x4931bc(0x443)],0x64,_0x2b3a1a),_0x4926ac=_0x2605ad>_0x2de8ea?Math[_0x4931bc(0x220)](0x0,Math[_0x4931bc(0xba1)](0x1,(_0x47ce64-_0x2de8ea)/(_0x2605ad-_0x2de8ea))):0x0,_0xd4a4ac=_0x3ea60b[_0x4931bc(0x731)]||{},_0xcd388f=pickName(_0x180aa6[_0x4931bc(0xce6)]!==undefined?_0x180aa6[_0x4931bc(0xce6)]:_0x180aa6[_0x4931bc(0xdee)],_0xd4a4ac['resolved_tooltip_name']!==undefined&&_0x180aa6[_0x4931bc(0xce6)]!==undefined?_0xd4a4ac['resolved_tooltip_name']:_0xd4a4ac[_0x4931bc(0x40b)],_0xd4a4ac)??_0x180aa6[_0x4931bc(0x974)]??'?';_0x52e71b[_0x4931bc(0xb31)]({'name':pickName(_0x180aa6['name'],_0xd4a4ac[_0x4931bc(0x40b)],_0xd4a4ac)??'','tooltipName':_0xcd388f,'value':_0x47ce64,'pct':_0x4926ac,'min':_0x2de8ea,'max':_0x2605ad,'color':(_0x180aa6['color']===_0x4931bc(0xe42)?null:this['card'][_0x4931bc(0x3c6)](_0x180aa6['color'],_0x180aa6[_0x4931bc(0x974)])||_0x180aa6['color'])||_0x4931bc(0x776),'unit':_0x180aa6[_0x4931bc(0x32e)]||_0xd4a4ac['unit_of_measurement']||'','entity':_0x180aa6});});const {container:_0x30bc48,canvas:_0x18224b,tooltipEl:_0xa44dd}=this[_0x5bb217(0xa0a)](_0x43036a,_0x55a65e);if(!_0x18224b)return;this[_0x5bb217(0x6e7)]=_0x52e71b,this[_0x5bb217(0x724)](_0x18224b,_0x52e71b,_0x4bebf5,_0x55a65e,_0x3a5a99,_0x2b3a1a,_0x30bc48,_0xa44dd);}[_0x46af5e(0xd26)](_0x56df7f,_0x69d960,_0x1b4a46,_0x1146ac,_0x5f1cd1,_0x4b0bf8,_0x713200){const _0x6bcc71=_0x46af5e;if(_0x713200===undefined)_0x713200=0x1;const _0x4ace28=this['_setupCanvas'](_0x56df7f,_0x1b4a46,_0x1146ac),_0x3bba66=this[_0x6bcc71(0xffd)](),_0x6019a4=_0x3bba66?'rgba(255,255,255,0.85)':_0x6bcc71(0x98d),_0x4df405=_0x3bba66?_0x6bcc71(0x7fb):'rgba(0,0,0,0.35)',_0x464d63=_0x3bba66?_0x6bcc71(0x995):_0x6bcc71(0x5c8),_0x2f3810=this[_0x6bcc71(0xc07)](),_0x591874=_0x69d960[_0x6bcc71(0xc02)];if(!_0x591874)return;const _0x4db8b0=Math[_0x6bcc71(0xba1)](_0x1146ac-0x14,_0x1b4a46-0x14),_0x2bbba8=_0x4db8b0/0x2*0.92,_0x558a69=Math[_0x6bcc71(0x220)](0x8,Math[_0x6bcc71(0xba1)](0x1c,_0x2bbba8*0.7/_0x591874)),_0x4e6b89=Math['max'](0x3,_0x558a69*0.2),_0x2aa558=_0x1b4a46/0x2,_0x4d1853=_0x1146ac/0x2,_0x1e3645=-Math['PI']*0.75,_0x1efda0=Math['PI']*0.75,_0x5024a1=_0x1efda0-_0x1e3645;this[_0x6bcc71(0x29c)]=[],_0x69d960[_0x6bcc71(0xd27)]((_0x4aee42,_0x1583fc)=>{const _0x3a84a7=_0x6bcc71,_0x4e5788=_0x2bbba8-_0x1583fc*(_0x558a69+_0x4e6b89);if(_0x4e5788<_0x558a69)return;_0x4ace28[_0x3a84a7(0xb64)](),_0x4ace28[_0x3a84a7(0x456)](_0x2aa558,_0x4d1853,_0x4e5788,_0x1e3645,_0x1efda0),_0x4ace28[_0x3a84a7(0x5dd)]=_0x464d63,_0x4ace28[_0x3a84a7(0xf10)]=_0x558a69,_0x4ace28['lineCap']=_0x3a84a7(0x686),_0x4ace28[_0x3a84a7(0x3c1)]();const _0x27e8a9=_0x1e3645+_0x5024a1*_0x4aee42['pct']*_0x713200;if(_0x4aee42['pct']*_0x713200>0.005){let _0x2940a3=_0x4aee42['color'];const _0x2c539b=_0x4aee42[_0x3a84a7(0x974)];_0x2c539b?.[_0x3a84a7(0xdd5)]?.[_0x3a84a7(0x1007)]&&_0x2c539b[_0x3a84a7(0xdd5)][_0x3a84a7(0x202)]?.[_0x3a84a7(0xc02)]&&(_0x2940a3=resolveValueColor(_0x4aee42['value'],this[_0x3a84a7(0x1d2)][_0x3a84a7(0x83c)](_0x2c539b),_0x2940a3)),_0x4ace28[_0x3a84a7(0xb64)](),_0x4ace28['arc'](_0x2aa558,_0x4d1853,_0x4e5788,_0x1e3645,_0x27e8a9),_0x4ace28[_0x3a84a7(0x5dd)]=_0x2940a3,_0x4ace28[_0x3a84a7(0xf10)]=_0x558a69,_0x4ace28[_0x3a84a7(0xb27)]=_0x3a84a7(0x686),_0x4ace28[_0x3a84a7(0xd80)]=0.85,_0x4ace28[_0x3a84a7(0x3c1)](),_0x4ace28[_0x3a84a7(0xd80)]=0x1;}this[_0x3a84a7(0x29c)][_0x3a84a7(0xb31)]({'cx':_0x2aa558,'cy':_0x4d1853,'r':_0x4e5788,'barThickness':_0x558a69,'startAngle':_0x1e3645,'valueAngle':_0x27e8a9,'endAngleFull':_0x1efda0,'item':_0x4aee42});});if(_0x591874>0x0&&_0x5f1cd1[_0x6bcc71(0x74f)]!==![]&&_0x713200>=0.999){const _0x305c56=_0x69d960[_0x6bcc71(0x617)]((_0x4014ce,_0xf766a7)=>_0x4014ce+_0xf766a7[_0x6bcc71(0x2ea)],0x0)/_0x591874,_0xf99448=_0x69d960[0x0]?.[_0x6bcc71(0x32e)]||'';_0x4ace28['fillStyle']=_0x6019a4,_0x4ace28[_0x6bcc71(0xee3)]=_0x6bcc71(0x821)+Math[_0x6bcc71(0xba1)](0x14,_0x2bbba8*0.3)+_0x6bcc71(0xd01)+_0x2f3810,_0x4ace28[_0x6bcc71(0x3b1)]='center',_0x4ace28['textBaseline']=_0x6bcc71(0x6d4);const _0x391a3c=_0x69d960[0x0]?.[_0x6bcc71(0x974)]||{'decimals':0x1};_0x4ace28[_0x6bcc71(0xa74)](formatNumber(_0x305c56,_0x391a3c,_0x4b0bf8),_0x2aa558,_0x4d1853-0x6),_0x4ace28['fillStyle']=_0x4df405,_0x4ace28[_0x6bcc71(0xee3)]=Math['min'](0xa,_0x2bbba8*0.15)+_0x6bcc71(0xd01)+_0x2f3810,_0x4ace28[_0x6bcc71(0xa74)](_0x591874>0x1?_0x6bcc71(0xce2)+_0xf99448:_0xf99448,_0x2aa558,_0x4d1853+0xa);}}[_0x46af5e(0x180)](_0x14e42d,_0x3dcead,_0x2f14fd,_0x536ddb){const _0x5a752d=_0x46af5e;if(!_0x3dcead||!_0x14e42d||_0x2f14fd['show_tooltip']===![]||!this[_0x5a752d(0x29c)]?.[_0x5a752d(0xc02)])return;const _0x34d171=this['_abort'][_0x5a752d(0x5fe)],_0x1180ae=_0xcc0f13=>{const _0x592855=_0x5a752d,_0x404d38=_0x14e42d[_0x592855(0x9cc)](),_0x3de110=_0xcc0f13['clientX']-_0x404d38['left'],_0x27b4f1=_0xcc0f13[_0x592855(0x6a3)]-_0x404d38[_0x592855(0xf55)];let _0x2faccf=null;for(const _0x56f4e8 of this[_0x592855(0x29c)]){const _0x220956=_0x3de110-_0x56f4e8['cx'],_0x30f74d=_0x27b4f1-_0x56f4e8['cy'],_0x1ab76a=Math['sqrt'](_0x220956*_0x220956+_0x30f74d*_0x30f74d),_0xea781e=_0x56f4e8[_0x592855(0x8ee)]/0x2;if(_0x1ab76a<_0x56f4e8['r']-_0xea781e||_0x1ab76a>_0x56f4e8['r']+_0xea781e)continue;let _0x453941=Math[_0x592855(0xa6e)](_0x30f74d,_0x220956);if(_0x453941<_0x56f4e8[_0x592855(0x93b)])_0x453941+=Math['PI']*0x2;if(_0x453941>=_0x56f4e8[_0x592855(0x93b)]&&_0x453941<=_0x56f4e8['endAngleFull']){_0x2faccf=_0x56f4e8;break;}}if(!_0x2faccf){_0x3dcead[_0x592855(0x944)]['opacity']='0';return;}const _0x4d5602=(_0x2faccf[_0x592855(0xf40)][_0x592855(0x7a1)]*0x64)[_0x592855(0x198)](0x1),_0x44180e=formatNumber(_0x2faccf[_0x592855(0xf40)][_0x592855(0x2ea)],_0x2faccf[_0x592855(0xf40)][_0x592855(0x974)],_0x536ddb),_0x8396da=formatNumber(_0x2faccf[_0x592855(0xf40)][_0x592855(0xba1)],_0x2faccf[_0x592855(0xf40)][_0x592855(0x974)],_0x536ddb),_0x3f4a0e=formatNumber(_0x2faccf[_0x592855(0xf40)][_0x592855(0x220)],_0x2faccf[_0x592855(0xf40)][_0x592855(0x974)],_0x536ddb),_0x209c12=_0x2faccf[_0x592855(0xf40)][_0x592855(0x974)]?.['show_color_dot']!==![]?escapeHtml(_0x2faccf[_0x592855(0xf40)][_0x592855(0xd95)]):_0x592855(0x2ca);_0x3dcead[_0x592855(0x17c)]='<div\x20class=\x22sgc-pie-tt-row\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:'+_0x209c12+'\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>'+escapeHtml(_0x2faccf['item'][_0x592855(0x208)]||_0x2faccf[_0x592855(0xf40)][_0x592855(0xdee)]||'')+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+escapeHtml(String(_0x44180e))+'\x20'+escapeHtml(_0x2faccf[_0x592855(0xf40)][_0x592855(0x32e)]||'')+'</span></div>'+(_0x592855(0xf6b)+escapeHtml(cardT(_0x536ddb,_0x2f14fd,_0x592855(0xbce)))+_0x592855(0xd5c)+escapeHtml(String(_0x8396da))+_0x592855(0x929)+escapeHtml(String(_0x3f4a0e))+_0x592855(0xc3d))+(_0x592855(0xf6b)+escapeHtml(cardT(_0x536ddb,_0x2f14fd,'Progress'))+_0x592855(0xd5c)+_0x4d5602+_0x592855(0x760)),this['_placeTooltip'](_0x3dcead,_0x404d38,_0x3de110);};this[_0x5a752d(0x7ab)](_0x14e42d,_0x3dcead,_0x1180ae,_0x34d171),_0x14e42d['style'][_0x5a752d(0x2a5)]=_0x5a752d(0x670),_0x14e42d[_0x5a752d(0x171)]('click',_0x2cf4ba=>{const _0x476b15=_0x5a752d,_0x478ab5=_0x14e42d['getBoundingClientRect'](),_0x446132=_0x2cf4ba['clientX']-_0x478ab5[_0x476b15(0xaaf)],_0x6f7caa=_0x2cf4ba[_0x476b15(0x6a3)]-_0x478ab5[_0x476b15(0xf55)];let _0x4e1353=null;for(const _0x3270c7 of this[_0x476b15(0x29c)]){const _0x3b07ba=_0x446132-_0x3270c7['cx'],_0x1e62d3=_0x6f7caa-_0x3270c7['cy'],_0x3d3d60=Math[_0x476b15(0x2ed)](_0x3b07ba*_0x3b07ba+_0x1e62d3*_0x1e62d3),_0x1d6b20=_0x3270c7[_0x476b15(0x8ee)]/0x2;if(_0x3d3d60<_0x3270c7['r']-_0x1d6b20||_0x3d3d60>_0x3270c7['r']+_0x1d6b20)continue;let _0x5481a8=Math[_0x476b15(0xa6e)](_0x1e62d3,_0x3b07ba);if(_0x5481a8<_0x3270c7['startAngle'])_0x5481a8+=Math['PI']*0x2;if(_0x5481a8>=_0x3270c7['startAngle']&&_0x5481a8<=_0x3270c7[_0x476b15(0x51a)]){_0x4e1353=_0x3270c7;break;}}if(!_0x4e1353)return;_0x2cf4ba[_0x476b15(0x7ba)](),this['card'][_0x476b15(0x7f2)](_0x4e1353[_0x476b15(0xf40)]?.['entity']);},{'signal':_0x34d171});}}class GaugeRenderer extends BaseCanvasRenderer{constructor(_0x56e066){const _0x2a3627=_0x46af5e;super(_0x56e066),this['_items']=[],this['_cells']=[],this[_0x2a3627(0xb26)]=0x0,this[_0x2a3627(0x2a1)]=0x0;}[_0x46af5e(0x59c)](_0x33ec3d,_0x6cee6d,_0x23650a,_0x3f1542){const _0x51ddf3=_0x46af5e,{W:_0x2df1bc,H:_0x5a234e}=this['_beginRender'](_0x33ec3d,_0x23650a),_0x186442=this[_0x51ddf3(0x1d2)][_0x51ddf3(0xfef)]||[],_0x56b361=[];_0x6cee6d[_0x51ddf3(0xd27)](_0x43105e=>{const _0xc4ba9d=_0x51ddf3,_0x499dda=this[_0xc4ba9d(0x3bf)](_0x43105e,_0x186442),_0x34594b=(_0x43105e[_0xc4ba9d(0x93a)]||[])[_0xc4ba9d(0x919)](_0x354394=>_0x354394['v']!==null&&_0x354394['v']!==undefined),_0x4927e2=_0x3f1542?.[_0xc4ba9d(0x4f9)]?.[_0x499dda[_0xc4ba9d(0x974)]];let _0x77416b=_0x499dda[_0xc4ba9d(0x455)]||!_0x4927e2?NaN:parseFloat(_0x4927e2['state']);if(!isFinite(_0x77416b))_0x77416b=_0x34594b['length']?_0x34594b[_0x34594b[_0xc4ba9d(0xc02)]-0x1]['v']:0x0;if(_0x77416b===undefined||_0x77416b===null||isNaN(_0x77416b))_0x77416b=0x0;const _0x5ca6e8=resolveEntityBound(_0x499dda[_0xc4ba9d(0xf24)],0x0,_0x3f1542),_0x1d16d7=resolveEntityBound(_0x499dda[_0xc4ba9d(0x443)],0x64,_0x3f1542),_0x8023ff=_0x43105e['meta']||{};let _0x169290=_0x77416b,_0x40e095=_0x77416b;for(const _0x376f8e of _0x34594b){if(_0x376f8e['v']>_0x169290)_0x169290=_0x376f8e['v'];if(_0x376f8e['v']<_0x40e095)_0x40e095=_0x376f8e['v'];}const _0x5db163=_0x1d16d7>_0x5ca6e8?Math['max'](0x0,Math[_0xc4ba9d(0xba1)](0x1,(_0x77416b-_0x5ca6e8)/(_0x1d16d7-_0x5ca6e8))):0x0,_0x4973a2=_0x1d16d7>_0x5ca6e8?Math[_0xc4ba9d(0x220)](0x0,Math[_0xc4ba9d(0xba1)](0x1,(_0x169290-_0x5ca6e8)/(_0x1d16d7-_0x5ca6e8))):0x0,_0x384757=_0x1d16d7>_0x5ca6e8?Math[_0xc4ba9d(0x220)](0x0,Math[_0xc4ba9d(0xba1)](0x1,(_0x40e095-_0x5ca6e8)/(_0x1d16d7-_0x5ca6e8))):0x0,_0x2b9bdf=pickName(_0x499dda[_0xc4ba9d(0xce6)]!==undefined?_0x499dda[_0xc4ba9d(0xce6)]:_0x499dda[_0xc4ba9d(0xdee)],_0x8023ff[_0xc4ba9d(0x17e)]!==undefined&&_0x499dda[_0xc4ba9d(0xce6)]!==undefined?_0x8023ff['resolved_tooltip_name']:_0x8023ff[_0xc4ba9d(0x40b)],_0x8023ff)??_0x499dda[_0xc4ba9d(0x974)]??'?';_0x56b361['push']({'name':pickName(_0x499dda[_0xc4ba9d(0xdee)],_0x8023ff[_0xc4ba9d(0x40b)],_0x8023ff)??'','tooltipName':_0x2b9bdf,'value':_0x77416b,'pct':_0x5db163,'peak':_0x169290,'peakPct':_0x4973a2,'pminPct':_0x384757,'pmin':_0x40e095,'min':_0x5ca6e8,'max':_0x1d16d7,'color':(_0x499dda['color']==='threshold'?null:this['card']['_resolveCanvasColor'](_0x499dda[_0xc4ba9d(0xd95)],_0x499dda[_0xc4ba9d(0x974)])||_0x499dda[_0xc4ba9d(0xd95)])||_0xc4ba9d(0x776),'unit':_0x499dda[_0xc4ba9d(0x32e)]||_0x8023ff['unit_of_measurement']||'','entity':_0x499dda});});const {container:_0x822263,canvas:_0x4dc11d,tooltipEl:_0xa2a215}=this[_0x51ddf3(0xa0a)](_0x33ec3d,_0x5a234e);if(!_0x4dc11d)return;this[_0x51ddf3(0x6e7)]=_0x56b361,this['_animateDraw'](_0x4dc11d,_0x56b361,_0x2df1bc,_0x5a234e,_0x23650a,_0x3f1542,_0x822263,_0xa2a215);}[_0x46af5e(0xd26)](_0xff500b,_0x5a9063,_0x551091,_0xa44d7c,_0x3ffaa6,_0x37539b,_0xfac9a1){const _0x16fb91=_0x46af5e;if(_0xfac9a1===undefined)_0xfac9a1=0x1;const _0x149347=this['_setupCanvas'](_0xff500b,_0x551091,_0xa44d7c),_0x430a06=this[_0x16fb91(0xffd)](),_0x498c71=_0x430a06?_0x16fb91(0xdb7):_0x16fb91(0x98d),_0x19e2bc=_0x430a06?'rgba(255,255,255,0.45)':_0x16fb91(0xd4e),_0x47e1a1=_0x430a06?_0x16fb91(0x3af):_0x16fb91(0xeb5),_0x2566d7=this['_haFont'](),_0x272851=_0x5a9063[_0x16fb91(0xc02)];if(!_0x272851)return;let _0x1bf3f5=parseInt(_0x3ffaa6['gauge_columns'],0xa);if(!_0x1bf3f5||_0x1bf3f5<0x1||isNaN(_0x1bf3f5))_0x1bf3f5=Math[_0x16fb91(0x220)](0x1,Math[_0x16fb91(0xba1)](_0x272851,Math[_0x16fb91(0xedc)](_0x551091/0xaa)||0x1));_0x1bf3f5=Math['max'](0x1,Math[_0x16fb91(0xba1)](_0x1bf3f5,_0x272851));const _0x519a0d=Math[_0x16fb91(0x6fd)](_0x272851/_0x1bf3f5),_0x229747=_0x551091/_0x1bf3f5,_0x41e8c5=_0xa44d7c/_0x519a0d;let _0x3627e9=parseFloat(_0x3ffaa6['gauge_span']);if(!_0x3627e9||isNaN(_0x3627e9))_0x3627e9=0x10e;_0x3627e9=Math['max'](0x5a,Math[_0x16fb91(0xba1)](0x168,_0x3627e9));const _0x265e40=_0x3627e9*Math['PI']/0xb4,_0x285db5=Math['PI']*0x2-_0x265e40,_0x4c8a2a=Math['PI']/0x2+_0x285db5/0x2,_0x1cae84=_0x4c8a2a+_0x265e40,_0x352d19=_0x5298ff=>_0x5298ff<_0x4c8a2a?_0x4c8a2a:_0x5298ff>_0x1cae84?_0x1cae84:_0x5298ff,_0x5c6799=!!_0x3ffaa6[_0x16fb91(0xb43)],_0x8d3dca=_0x3ffaa6[_0x16fb91(0x665)]==='above'?'above':_0x16fb91(0x38d);let _0x4b62ff=parseFloat(_0x3ffaa6[_0x16fb91(0x882)]);if(isNaN(_0x4b62ff)||_0x4b62ff<=0x0)_0x4b62ff=0x0;this[_0x16fb91(0x24b)]=[],_0x5a9063[_0x16fb91(0xd27)]((_0x193a69,_0x1071ad)=>{const _0x1bd7e2=_0x16fb91,_0x399938=_0x1071ad%_0x1bf3f5,_0x375bfd=Math['floor'](_0x1071ad/_0x1bf3f5),_0x43630a=_0x229747*_0x399938,_0x1996d5=_0x41e8c5*_0x375bfd,_0x40b783=_0x193a69[_0x1bd7e2(0x974)],_0x43c5b8=_0x40b783?.[_0x1bd7e2(0xdd5)]?.[_0x1bd7e2(0x1007)]&&_0x40b783[_0x1bd7e2(0xdd5)]['values']?.[_0x1bd7e2(0xc02)]?this[_0x1bd7e2(0x1d2)][_0x1bd7e2(0x83c)](_0x40b783):null,_0x2ee300=_0x40b783?.[_0x1bd7e2(0xdd5)]?.[_0x1bd7e2(0x36b)]!==_0x1bd7e2(0xab7),_0x5ca3f6=!!_0x40b783?.['color_thresholds']?.[_0x1bd7e2(0x873)],_0x2f97e4=_0x43c5b8?resolveValueColor(_0x193a69[_0x1bd7e2(0x2ea)],_0x43c5b8,_0x193a69[_0x1bd7e2(0xd95)],_0x2ee300):_0x193a69[_0x1bd7e2(0xd95)],_0x32b0f7=_0x40b783||{'decimals':0x1},_0x46c15f=_0x4b62ff||Math['max'](0xd,Math[_0x1bd7e2(0xba1)](0x1e,Math[_0x1bd7e2(0xba1)](_0x229747,_0x41e8c5)*0.17)),_0x18002e=_0x43630a+_0x229747/0x2,_0x9bbff1=Math['max'](0xa,Math['min'](_0x229747,_0x41e8c5)*0.34),_0x3afb83=_0x9bbff1*Math[_0x1bd7e2(0x576)](_0x285db5/0x2),_0x3c24a2=0x12,_0x2da6fb=_0x9bbff1+_0x3afb83+_0x3c24a2+_0x46c15f,_0x39e8f5=_0x1996d5+Math[_0x1bd7e2(0x220)](0x2,(_0x41e8c5-_0x2da6fb)/0x2);let _0x2f8d83,_0x378cf0;_0x8d3dca===_0x1bd7e2(0xdce)?(_0x378cf0=_0x39e8f5+_0x46c15f/0x2,_0x2f8d83=_0x39e8f5+_0x46c15f+_0x3c24a2+_0x9bbff1):(_0x2f8d83=_0x39e8f5+_0x9bbff1,_0x378cf0=_0x2f8d83+_0x3afb83+_0x3c24a2+_0x46c15f/0x2);const _0xca4c3a=Math['max'](0x5,_0x9bbff1*0.2),_0x4a38d7=_0x40b783?.[_0x1bd7e2(0x34b)]!==![];_0x149347[_0x1bd7e2(0xb64)](),_0x149347[_0x1bd7e2(0x456)](_0x18002e,_0x2f8d83,_0x9bbff1,_0x4c8a2a,_0x4c8a2a+_0x265e40),_0x149347['strokeStyle']=_0x47e1a1,_0x149347[_0x1bd7e2(0xf10)]=_0xca4c3a,_0x149347[_0x1bd7e2(0xb27)]=_0x1bd7e2(0x9f5),_0x149347[_0x1bd7e2(0x3c1)]();if(_0x43c5b8){const _0x3b35ce=Math[_0x1bd7e2(0x220)](0x1,Math[_0x1bd7e2(0xba1)](0x48,Math[_0x1bd7e2(0x686)](_0x265e40*_0x9bbff1/1.5))),_0x6bfe6=Math[_0x1bd7e2(0xba1)](0.002,_0x265e40/_0x3b35ce);_0x149347[_0x1bd7e2(0xd80)]=0.45;for(let _0x506406=0x0;_0x506406<_0x3b35ce;_0x506406++){const _0x1fa32c=_0x506406/_0x3b35ce,_0x361cee=(_0x506406+0x1)/_0x3b35ce,_0x13f41d=_0x193a69[_0x1bd7e2(0xba1)]+(_0x193a69[_0x1bd7e2(0x220)]-_0x193a69[_0x1bd7e2(0xba1)])*((_0x1fa32c+_0x361cee)/0x2);_0x149347['lineCap']='butt',_0x149347[_0x1bd7e2(0xb64)](),_0x149347[_0x1bd7e2(0x456)](_0x18002e,_0x2f8d83,_0x9bbff1,_0x4c8a2a+_0x265e40*_0x1fa32c,Math['min'](_0x1cae84,_0x4c8a2a+_0x265e40*_0x361cee+_0x6bfe6)),_0x149347['strokeStyle']=_0x5ca3f6?_0x2f97e4:resolveValueColor(_0x13f41d,_0x43c5b8,_0x193a69[_0x1bd7e2(0xd95)],_0x2ee300),_0x149347[_0x1bd7e2(0xf10)]=_0xca4c3a,_0x149347[_0x1bd7e2(0x3c1)]();}_0x149347[_0x1bd7e2(0xd80)]=0x1;}const _0x5bf39a=_0x40b783?.[_0x1bd7e2(0x709)]?_0x40b783[_0x1bd7e2(0x709)]===_0x1bd7e2(0xe42)?_0x2f97e4:this['card'][_0x1bd7e2(0x3c6)](_0x40b783[_0x1bd7e2(0x709)])||_0x40b783[_0x1bd7e2(0x709)]:_0x2f97e4,_0x300daf=_0x352d19(_0x4c8a2a+_0x265e40*_0x193a69[_0x1bd7e2(0x7a1)]*_0xfac9a1),_0x512094=_0x352d19(_0x4c8a2a+_0x265e40*_0x193a69[_0x1bd7e2(0xa51)]),_0x3be557=_0x352d19(_0x4c8a2a+_0x265e40*_0x193a69[_0x1bd7e2(0x1c0)]),_0x1da51e=_0x352d19(_0x512094+(_0x3be557-_0x512094)*_0xfac9a1),_0xaf3c4a=_0x1da51e-_0x512094;if(_0xaf3c4a*_0x9bbff1>1.5){const _0x3f91d7=Math['max'](0x1,Math[_0x1bd7e2(0xba1)](0x30,Math[_0x1bd7e2(0x686)](_0xaf3c4a*_0x9bbff1/1.5))),_0x526ce1=Math[_0x1bd7e2(0xba1)](0.003,_0xaf3c4a/_0x3f91d7);for(let _0x16ffc0=0x0;_0x16ffc0<_0x3f91d7;_0x16ffc0++){const _0x113c1a=_0x512094+_0xaf3c4a*(_0x16ffc0/_0x3f91d7),_0x5431b0=Math['min'](_0x1da51e,_0x512094+_0xaf3c4a*((_0x16ffc0+0x1)/_0x3f91d7)+_0x526ce1),_0x5ea4de=_0x265e40>0x0?((_0x113c1a+_0x5431b0)/0x2-_0x4c8a2a)/_0x265e40:0x0,_0x120caf=_0x193a69[_0x1bd7e2(0xba1)]+(_0x193a69['max']-_0x193a69[_0x1bd7e2(0xba1)])*_0x5ea4de;_0x149347[_0x1bd7e2(0xb27)]='butt',_0x149347[_0x1bd7e2(0xb64)](),_0x149347['arc'](_0x18002e,_0x2f8d83,_0x9bbff1,_0x113c1a,_0x5431b0),_0x149347[_0x1bd7e2(0x5dd)]=_0x43c5b8?_0x5ca3f6?_0x2f97e4:resolveValueColor(_0x120caf,_0x43c5b8,_0x193a69['color'],_0x2ee300):_0x193a69[_0x1bd7e2(0xd95)],_0x149347[_0x1bd7e2(0xf10)]=_0xca4c3a,_0x149347[_0x1bd7e2(0xd80)]=_0x4a38d7?0.4+0.55*(_0x16ffc0/Math[_0x1bd7e2(0x220)](0x1,_0x3f91d7-0x1)):_0x43c5b8?0.95:0.9,_0x149347[_0x1bd7e2(0x3c1)]();}_0x149347[_0x1bd7e2(0xd80)]=0x1;}{const _0x57d8cf=_0x300daf,_0x219c8f=_0x9bbff1+_0xca4c3a*0.15,_0x279845=Math[_0x1bd7e2(0x220)](0x3,_0xca4c3a*0.5),_0x5179c7=_0x18002e+Math[_0x1bd7e2(0x576)](_0x57d8cf)*_0x219c8f,_0x22a60e=_0x2f8d83+Math[_0x1bd7e2(0xeac)](_0x57d8cf)*_0x219c8f,_0x53af4c=_0x57d8cf+Math['PI']/0x2,_0x158f1c=Math['max'](0x2,_0xca4c3a*0.22);_0x149347[_0x1bd7e2(0xb64)](),_0x149347[_0x1bd7e2(0x811)](_0x18002e+Math[_0x1bd7e2(0x576)](_0x53af4c)*_0x158f1c,_0x2f8d83+Math[_0x1bd7e2(0xeac)](_0x53af4c)*_0x158f1c),_0x149347['lineTo'](_0x5179c7,_0x22a60e),_0x149347['lineTo'](_0x18002e-Math[_0x1bd7e2(0x576)](_0x53af4c)*_0x158f1c,_0x2f8d83-Math[_0x1bd7e2(0xeac)](_0x53af4c)*_0x158f1c),_0x149347[_0x1bd7e2(0x9f8)](),_0x149347['fillStyle']=_0x5bf39a,_0x149347['fill'](),_0x149347['beginPath'](),_0x149347[_0x1bd7e2(0x456)](_0x18002e,_0x2f8d83,_0x279845,0x0,Math['PI']*0x2),_0x149347[_0x1bd7e2(0x20c)]=_0x5bf39a,_0x149347[_0x1bd7e2(0x290)](),_0x149347[_0x1bd7e2(0xb64)](),_0x149347['arc'](_0x18002e,_0x2f8d83,_0x279845*0.45,0x0,Math['PI']*0x2),_0x149347[_0x1bd7e2(0x20c)]=_0x430a06?_0x1bd7e2(0x92a):_0x1bd7e2(0xf4e),_0x149347['fill']();}if(_0x5c6799&&_0xfac9a1>=0.999){_0x149347[_0x1bd7e2(0x3b1)]=_0x1bd7e2(0x942),_0x149347[_0x1bd7e2(0xf1b)]='middle',_0x149347[_0x1bd7e2(0x20c)]=_0x19e2bc,_0x149347[_0x1bd7e2(0xee3)]=Math['max'](0x9,Math['min'](0xb,_0x9bbff1*0.15))+_0x1bd7e2(0xd01)+_0x2566d7;const _0x5805e9=_0x9bbff1+_0xca4c3a*0.65+0x7;_0x149347[_0x1bd7e2(0xa74)](String(formatNumber(_0x193a69['min'],_0x32b0f7,_0x37539b)),_0x18002e+Math[_0x1bd7e2(0x576)](_0x4c8a2a)*_0x5805e9,_0x2f8d83+Math[_0x1bd7e2(0xeac)](_0x4c8a2a)*_0x5805e9),_0x149347[_0x1bd7e2(0xa74)](String(formatNumber(_0x193a69[_0x1bd7e2(0x220)],_0x32b0f7,_0x37539b)),_0x18002e+Math[_0x1bd7e2(0x576)](_0x4c8a2a+_0x265e40)*_0x5805e9,_0x2f8d83+Math['sin'](_0x4c8a2a+_0x265e40)*_0x5805e9);}if(_0xfac9a1>=0.999){const _0x5f3495=String(formatNumber(_0x193a69[_0x1bd7e2(0x2ea)],_0x32b0f7,_0x37539b))+(_0x193a69[_0x1bd7e2(0x32e)]?'\x20'+_0x193a69[_0x1bd7e2(0x32e)]:'');_0x149347['textAlign']=_0x1bd7e2(0x942),_0x149347[_0x1bd7e2(0xf1b)]=_0x1bd7e2(0x6d4),_0x149347['fillStyle']=_0x43c5b8?_0x2f97e4:_0x498c71,_0x149347[_0x1bd7e2(0xee3)]=_0x1bd7e2(0x821)+_0x46c15f+_0x1bd7e2(0xd01)+_0x2566d7,_0x149347[_0x1bd7e2(0xa74)](_0x5f3495,_0x18002e,_0x378cf0);}this[_0x1bd7e2(0x24b)]['push']({'cx':_0x18002e,'cy':_0x2f8d83,'r':_0x9bbff1,'thickness':_0xca4c3a,'start':_0x4c8a2a,'end':_0x4c8a2a+_0x265e40,'item':_0x193a69});});}['_setupTooltip'](_0x57f75e,_0x4ca291,_0x48e51d,_0x4c34d8){const _0x29cf75=_0x46af5e;if(!_0x4ca291||!_0x57f75e||_0x48e51d[_0x29cf75(0xeed)]===![]||!this['_cells']?.['length'])return;const _0x34a3e3=this[_0x29cf75(0xccb)]['signal'],_0x2747ba=(_0x33444c,_0x57fe42)=>{const _0x4f47b8=_0x29cf75;for(const _0x4651e0 of this[_0x4f47b8(0x24b)]){const _0x17c8e9=_0x33444c-_0x4651e0['cx'],_0x1a7d0c=_0x57fe42-_0x4651e0['cy'];if(Math[_0x4f47b8(0x2ed)](_0x17c8e9*_0x17c8e9+_0x1a7d0c*_0x1a7d0c)>_0x4651e0['r']+_0x4651e0[_0x4f47b8(0xd47)])continue;return _0x4651e0;}return null;},_0x1df6e2=_0x47fe91=>{const _0x4d52fa=_0x29cf75,_0x4ebc10=_0x57f75e[_0x4d52fa(0x9cc)](),_0x13a403=_0x47fe91[_0x4d52fa(0x51e)]-_0x4ebc10[_0x4d52fa(0xaaf)],_0x3cc3e4=_0x47fe91['clientY']-_0x4ebc10[_0x4d52fa(0xf55)],_0x11f8fe=_0x2747ba(_0x13a403,_0x3cc3e4);if(!_0x11f8fe){_0x4ca291[_0x4d52fa(0x944)]['opacity']='0';return;}const _0x30717e=formatNumber(_0x11f8fe[_0x4d52fa(0xf40)][_0x4d52fa(0x2ea)],_0x11f8fe['item']['entity'],_0x4c34d8),_0x575375=formatNumber(_0x11f8fe[_0x4d52fa(0xf40)]['peak'],_0x11f8fe['item'][_0x4d52fa(0x974)],_0x4c34d8),_0x1724e9=formatNumber(_0x11f8fe[_0x4d52fa(0xf40)][_0x4d52fa(0xb3c)],_0x11f8fe[_0x4d52fa(0xf40)]['entity'],_0x4c34d8),_0x125547=Math[_0x4d52fa(0x1ae)]((_0x11f8fe[_0x4d52fa(0xf40)]['peak']??0x0)-(_0x11f8fe[_0x4d52fa(0xf40)]['pmin']??0x0))>1e-9,_0x203db0=escapeHtml(_0x11f8fe[_0x4d52fa(0xf40)]['unit']||''),_0xcfae0=_0x11f8fe[_0x4d52fa(0xf40)][_0x4d52fa(0x974)]?.['show_color_dot']!==![]?escapeHtml(_0x11f8fe[_0x4d52fa(0xf40)]['color']):_0x4d52fa(0x2ca),_0x2da229=(_0x388b4b,_0x5a9b81,_0x2506cd)=>'<div\x20class=\x22sgc-pie-tt-row\x22'+(_0x2506cd?'\x20style=\x22opacity:'+_0x2506cd+'\x22':'')+_0x4d52fa(0x6f4)+_0x388b4b+_0x4d52fa(0xd5c)+_0x5a9b81+_0x4d52fa(0xc3d);_0x4ca291['innerHTML']=_0x4d52fa(0x20e)+_0xcfae0+_0x4d52fa(0x23f)+escapeHtml(_0x11f8fe['item'][_0x4d52fa(0x208)]||_0x11f8fe[_0x4d52fa(0xf40)][_0x4d52fa(0xdee)]||'')+_0x4d52fa(0xd5c)+escapeHtml(String(_0x30717e))+'\x20'+_0x203db0+_0x4d52fa(0xc3d)+(_0x125547?_0x2da229(escapeHtml(cardT(_0x4c34d8,_0x48e51d,_0x4d52fa(0xc1e))),escapeHtml(String(_0x575375))+'\x20'+_0x203db0,_0x4d52fa(0xdbd)):'')+(_0x125547?_0x2da229(escapeHtml(cardT(_0x4c34d8,_0x48e51d,_0x4d52fa(0xf36))),escapeHtml(String(_0x1724e9))+'\x20'+_0x203db0,'0.6'):''),this[_0x4d52fa(0x7bc)](_0x4ca291,_0x4ebc10,_0x13a403);};this[_0x29cf75(0x7ab)](_0x57f75e,_0x4ca291,_0x1df6e2,_0x34a3e3),_0x57f75e[_0x29cf75(0x944)][_0x29cf75(0x2a5)]=_0x29cf75(0x670),_0x57f75e[_0x29cf75(0x171)]('click',_0x2cf7ac=>{const _0x4bc542=_0x29cf75,_0x2a5538=_0x57f75e[_0x4bc542(0x9cc)](),_0x2446f0=_0x2747ba(_0x2cf7ac['clientX']-_0x2a5538[_0x4bc542(0xaaf)],_0x2cf7ac[_0x4bc542(0x6a3)]-_0x2a5538[_0x4bc542(0xf55)]);if(!_0x2446f0)return;_0x2cf7ac[_0x4bc542(0x7ba)](),this['card'][_0x4bc542(0x7f2)](_0x2446f0[_0x4bc542(0xf40)]?.[_0x4bc542(0x974)]);},{'signal':_0x34a3e3});}}function _0x5469(){const _0x46b52b=['_undoRecentPins','_priceDirty','message','locked','X\x20Axis\x20Interval','_activeTab','4308115Phbgur','<div\x20class=\x22sgc-pie-tt-row\x22\x20style=\x22opacity:0.6\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:transparent\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>','Last\x203Y','extrema_font_size','\x20left\x20top/3px\x20100%\x20no-repeat','<option\x20value=\x22\x22>—\x20Select\x20entity\x20—</option>','<div\x20class=\x22','_entPrefersStats','Y\x20Label\x20Size','_pphStoreKey','rgba(0,0,0,0.7)','</label><input\x20id=\x22lower_bound\x22\x20type=\x22text\x22\x20placeholder=\x220,\x20~0\x20or\x20sensor.x\x22\x20value=\x22','Height\x20of\x20the\x20graph\x20area\x20in\x20pixels,\x20or\x20auto\x20to\x20fill\x20the\x20grid\x20cell\x20(size\x20the\x20card\x20via\x20the\x20Layout\x20tab).\x20Clearing\x20the\x20field\x20sets\x20auto.','statistics-graph-chart-controller','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','charCodeAt','12\x20Hours','crosshair_legend','Sum','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>','</select></div></div><button\x20class=\x22asr-del\x22\x20title=\x22','Custom\x20unit\x20label\x20(e.g.\x20kWh,\x20°C,\x20%).\x20Overrides\x20the\x20auto-detected\x20unit.\x20Useful\x20for\x20attributes\x20or\x20unitless\x20sensors.','.e-data_value_expression','Box\x20Plot','Thin','</div><button\x20class=\x22asr-add\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>\x20','</label><div\x20class=\x22iu\x22><input\x20id=\x22y_axis_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2220\x22\x20step=\x221\x22\x20placeholder=\x22','fillRect','sgc-bargrad-','.cmp-col-pick','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>','_viewWindow','_updateQueued','GET','Show\x20Export\x20Button','date_picker_position','</div><label\x20class=\x22ms\x22><input\x20class=\x22e-show_fill\x22\x20type=\x22checkbox\x22\x20','x_axis_datetime_format','Last\x2024H','Time\x20Window','pointerdown','X\x20Axis','.e-state_map','Reverse','Where\x20to\x20place\x20the\x20header\x20icon\x20—\x20left,\x20center,\x20or\x20right.\x20When\x20the\x20icon\x20position\x20matches\x20the\x20Header\x20Align\x20value,\x20the\x20icon\x20and\x20title\x20sit\x20together\x20(icon\x20first).\x20Otherwise\x20they\x20split:\x20icon\x20goes\x20to\x20its\x20own\x20zone,\x20title\x20to\x20the\x20alignment\x20zone.','<button\x20class=\x22sgc-dp-mode\x20','querySelectorAll','Color\x20of\x20horizontal\x20grid\x20lines.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','_baselineReady','</div></div></div>','Change','</label><div\x20class=\x22iu\x22><input\x20id=\x22y_axis_ticks\x22\x20type=\x22number\x22\x20min=\x222\x22\x20max=\x2220\x22\x20step=\x221\x22\x20placeholder=\x224\x22\x20value=\x22','from','pointercancel','sgc-ann-span','_slideNeedsFullRefetch','advanced','_scrollSyncHandler','sgc-scroll-sync','dpDay','Some\x20integrations\x20report\x20a\x20literal\x200\x20while\x20the\x20device\x20is\x20off\x20or\x20restarting,\x20then\x20jump\x20back\x20to\x20the\x20previous\x20total\x20-\x20each\x20dip\x20is\x20then\x20counted\x20as\x20a\x20meter\x20reset\x20and\x20the\x20restored\x20value\x20re-counted\x20as\x20new\x20consumption.\x20Enable\x20to\x20skip\x20zero\x20readings\x20entirely;\x20with\x20long-term\x20statistics\x20the\x20change\x20is\x20recomputed\x20from\x20the\x20state\x20column,\x20bypassing\x20the\x20polluted\x20sums.\x20Counters\x20that\x20genuinely\x20reset\x20to\x20zero\x20and\x20keep\x20counting\x20from\x20there\x20still\x20work.','_enabledRefIds','series','\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\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>','\x20style=\x22visibility:hidden\x22','children','stateMap','_dpOwnState','removeProperty','lime','step','Format\x20used\x20for\x20timestamps\x20on\x20the\x20X-axis,\x20tooltip,\x20extrema\x20and\x20record\x20labels.\x20System\x20=\x20follow\x20HA\x20Profile\x20date/time\x20format\x20settings\x20(12h/24h\x20preference\x20is\x20honored).\x20Other\x20options\x20force\x20a\x20specific\x20pattern.\x20Custom\x20patterns\x20also\x20work\x20in\x20YAML\x20from\x20these\x20tokens:\x20YYYY/YY\x20(year),\x20MMMM/MMM\x20(month\x20name)\x20/\x20MM\x20(month\x20no.),\x20DD\x20(day),\x20dddd/ddd\x20(weekday\x20name),\x20HH/hh:mm:ss,\x20A/a\x20(AM/PM)\x20—\x20e.g.\x20\x27ddd\x20DD\x20MMM\x27\x20or\x20\x27YYYY-MM-DD\x20HH:mm\x27.\x20Weekday\x20formats\x20(ddd\x20/\x20dddd)\x20also\x20label\x20the\x20X-axis\x20date\x20ticks\x20on\x20multi-day\x20views\x20—\x20use\x20\x27dddd\x27\x20alone\x20for\x20just\x20the\x20day\x20name.','\x20sgc-animated','Width','\x22><input\x20id=\x22period_highlight_color_pick\x22\x20type=\x22color\x22\x20value=\x22','180D','periodNoEsc','\x22\x20data-tab=\x22state_row\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><rect\x20x=\x223\x22\x20y=\x223\x22\x20width=\x2218\x22\x20height=\x224\x22\x20rx=\x221\x22/><line\x20x1=\x223\x22\x20y1=\x2210\x22\x20x2=\x2214\x22\x20y2=\x2210\x22/></svg>','sgc-tooltip-sync','#e67e22','Font\x20size\x20of\x20Y-axis\x20labels\x20(dates\x20for\x20heatmap,\x20weeks\x20for\x20calendar)\x20in\x20pixels.\x20Default\x20is\x2010.','--mdc-icon-size:','avg','ranking','color:var(','\x22>▶</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-cal-grid\x22>','_warnHourlyCap','\x20but\x20the\x20card\x20is\x20v','isPrimary','Pins\x20in\x20Legend','How\x20many\x20periods\x20back\x20this\x20row\x20compares\x20against:\x201\x20=\x20the\x20previous\x20period,\x202\x20=\x20two\x20periods\x20ago.\x20It\x20follows\x20the\x20selected\x20period\x20and\x20the\x20date\x20picker\x20-\x20on\x20the\x20Week\x20view\x202\x20means\x20two\x20weeks\x20ago;\x20switch\x20the\x20picker\x20to\x20Year\x20and\x20the\x20same\x20row\x20shows\x20two\x20years\x20back.','useStats','</span><button\x20class=\x22ann-del\x22\x20title=\x22','sgc-zoom-in','_isStat','fall_color','graph_end_hour','</button>','y2_axis_format','\x22\x20data-mtab=\x22overlay\x22>','Fixed\x20Value','removeAttribute','drawEa','_lastTouchPopT','pane','url','</select>','position:absolute;visibility:hidden;pointer-events:none;top:-9999px;left:-9999px','sgc-tooltip','gap','Multiply\x20this\x20series\x20by\x20another\x20entity\x27s\x20value\x20over\x20time\x20—\x20the\x20cost\x20view:\x20consumption\x20×\x20tariff.\x20The\x20price\x20is\x20read\x20as\x20a\x20step\x20function\x20from\x20that\x20entity\x27s\x20history,\x20so\x20with\x20dynamic\x20tariffs\x20every\x20slice\x20of\x20consumption\x20is\x20billed\x20at\x20the\x20price\x20valid\x20at\x20that\x20moment.\x20Best\x20with\x20aggregate_func:\x20change\x20on\x20energy\x20counters;\x20set\x20Unit\x20to\x20your\x20currency.','100','<div\x20class=\x22sgc-legend-item\x20','Wed','local','Time','.sgc-state-wrap','hypot','Show\x20the\x20default\x20HA\x20card\x20drop\x20shadow.\x20Disable\x20for\x20a\x20flat\x20look\x20or\x20when\x20placing\x20the\x20card\x20on\x20a\x20decorated\x20background.','_persistQueryPickers','time','state_timeline_corner_radius','show_data_labels','mdi:thermometer','<span\x20class=\x22sgc-spark-trend\x22\x20style=\x22color:','6\x20or\x20sensor.x','_renderSparkline','_config','</label><input\x20class=\x22e-risefall_decrease\x22\x20type=\x22color\x22\x20value=\x22','top:\x20calc(50%\x20+\x20','short','_zoomAbort','_dpSyncRequestHandler','_entities','_spanBars','_renderQueryPickers','applyRefToSeries','sgc-segrad-','Toggle\x20this\x20entity\x27s\x20graph\x20drawing\x20entirely.\x20When\x20off,\x20the\x20entity\x20still\x20appears\x20in\x20the\x20state\x20row\x20(if\x20Show\x20State\x20is\x20on)\x20but\x20contributes\x20nothing\x20to\x20the\x20graph\x20area.','\x22\x20data-cstab=\x22headericon\x22>','icon_color','<div\x20class=\x22sgc-detail-legend\x22>','data_time_field','light-grey','h\x20exceeds\x20the\x20','getAttribute','TL_SC_RD','_detectDark','.panel-header[data-toggle]','rgba(255,255,255,0.22)','All\x20entities\x20are\x20above\x20the\x20threshold','#e74c3c','.sgc-dp-mode','<div\x20class=\x22sgc-tt-row\x22\x20style=\x22opacity:0.85;font-size:0.9em\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22visibility:hidden\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>','_drawGrid','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_unsubscribeEvents','enabled','createLinearGradient','card_icon_position','parentNode','_intervalSyncHandler','sgc-strip-label','ranking_min_value','point_colors','_xAxisLabelFormatters','y_axis_decimals','_renderStateRow','Show\x20ONLY\x20the\x20attribute\x20name\x20instead\x20of\x20the\x20entity\x20name\x20plus\x20the\x20attribute.\x20Combined\x20with\x20Area\x20names\x20this\x20gives\x20labels\x20like\x20\x27Target\x20temperature\x20·\x20Lounge\x27.\x20This\x20and\x20Attribute\x20names\x20are\x20alternatives\x20-\x20switching\x20one\x20on\x20turns\x20the\x20other\x20off.','\x20+\x20','data_time_year','include_attribute_name','not\x20meaningful\x20—\x20use\x20\x22avg\x22,\x20\x22max\x22\x20or\x20\x22change\x22\x20instead.\x20Series\x20left\x20empty.','isPanel','</select></div></div></div>','Rolling\x20windows\x20(ending\x20now)','log','\x22\x20style=\x22width:','composedPath','has','background','sgc-strip-title-layer','</button><button\x20class=\x22tb\x20','toLocaleDateString','</label><div\x20class=\x22sw\x22><select\x20id=\x22graph_start\x22>','.sgc-state-wrap[data-pos=\x22','getDate','Y\x20Grid\x20Width','stop','gen','getTime','.sgc-y-axis-label','rgba(0,0,0,0.87)','Background\x20Image','data_attribute','opacity:','getConfig','\x22></div></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sgc-candle-wick','blue','data-full-x','Y-Axis','Tooltip','dblclick','currentColor','Axis\x20Style\x20is\x20Native,\x20so\x20an\x20empty\x20field\x20uses\x20the\x20Home\x20Assistant\x20default\x20shown\x20in\x20the\x20placeholder.','_liveEnabled','.e-extrema_bg_color-picker','.e-points_per_hour','Last\x2024\x20hours','_render','min_bound_range','</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','Update\x20Interval','background-repeat:no-repeat','></div>','</select></div></div><input\x20id=\x22interval_picker_group\x22\x20class=\x22overlay-group-input\x22\x20type=\x22text\x22\x20placeholder=\x22','stats:inflight','formatToParts','card_icon_color','touchend','toDataURL','annotations','range','slice','Y\x20Label\x20Opacity','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22sgc-dp-cal-nav\x22\x20data-dp-cal=\x221\x22\x20aria-label=\x22',';font-size:13px;color:var(--primary-text-color);--ac:var(--primary-color,#4A90D9);--acr:74,144,217;--bg:var(--card-background-color,var(--ha-card-background,#fff));--sf:var(--mdc-text-field-fill-color,#f5f5f5);--bd:var(--divider-color,#e0e0e0);--tx:var(--primary-text-color,#333);--ts:var(--secondary-text-color,#666);--dg:#e74c3c;--rd:12px}\x0a*{box-sizing:border-box}\x0a.panel{background:var(--bg);border:2px\x20solid\x20rgba(128,128,128,0.4);border-radius:var(--rd);margin-bottom:16px;overflow:visible;transition:box-shadow\x20.2s}\x0a.panel:hover{box-shadow:0\x202px\x2012px\x20rgba(0,0,0,.06)}\x0a.panel-header{display:grid;grid-template-columns:36px\x201fr\x20auto;grid-template-rows:auto\x20auto;align-items:center;gap:0\x2010px;padding:14px\x2016px;cursor:pointer;user-select:none;transition:background\x20.15s;border-radius:calc(var(--rd)\x20-\x202px)\x20calc(var(--rd)\x20-\x202px)\x200\x200}\x0a.panel:not(.open)\x20.panel-header{border-radius:calc(var(--rd)\x20-\x202px)}\x0a.panel-header:hover{background:var(--sf)}\x0a.panel-icon{grid-row:1/3;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(var(--acr),.1);color:var(--ac)}\x0a.panel-title{font-weight:600;font-size:15px;line-height:1.2;text-transform:uppercase;letter-spacing:.04em}\x0a.panel-subtitle{font-size:11px;color:var(--ts);grid-column:2}\x0a.panel-chevron{grid-row:1/3;grid-column:3;color:var(--ts);transition:transform\x20.3s\x20cubic-bezier(.4,0,.2,1)}\x0a.panel.open\x20.panel-chevron{transform:rotate(180deg)}\x0a.panel-body{max-height:0;overflow:hidden;transition:max-height\x20.35s\x20cubic-bezier(.4,0,.2,1),padding\x20.35s;padding:0\x2016px}\x0a.fg{margin-bottom:16px}.fg:last-child{margin-bottom:0}\x0a.fg0{margin-bottom:14px}.fg0:last-child{margin-bottom:0}\x0a.mt8{margin-top:8px}\x0a.fgl{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ts);margin-bottom:10px;padding:\x208px\x200;border-bottom:1px\x20solid\x20var(--bd)}\x0a.r2{display:grid;grid-template-columns:1fr\x201fr;gap:12px;margin-top:8px}\x0a.r3{display:grid;grid-template-columns:1fr\x201fr\x201fr;gap:12px;margin-top:8px}\x0a.f{display:flex;flex-direction:column}\x0a.f\x20label{font-size:11.5px;font-weight:500;color:var(--ts);margin:5px\x200;letter-spacing:.02em;overflow-wrap:anywhere;word-break:break-word;min-height:14px}\x0a.f\x20input,.f\x20select{width:100%;padding:9px\x2011px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13.5px;transition:border-color\x20.15s,box-shadow\x20.15s;outline:none}\x0a.f\x20input:focus,.f\x20select:focus{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.f\x20input[type=\x22color\x22]{padding:3px;height:40px;cursor:pointer;border-radius:8px}\x0a.sw{position:relative}.sw\x20select{appearance:none;padding-right:30px;cursor:pointer;background-image:url(\x22data:image/svg+xml;utf8,<svg\x20xmlns=\x27http://www.w3.org/2000/svg\x27\x20width=\x2720\x27\x20height=\x2720\x27\x20viewBox=\x270\x200\x2024\x2024\x27\x20fill=\x27none\x27\x20stroke=\x27%23888\x27\x20stroke-width=\x272\x27><polyline\x20points=\x276\x209\x2012\x2015\x2018\x209\x27/></svg>\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.wide{width:152px}\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.sgc-mode-off{display:none!important}\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.sgc-ed-search{display:flex;align-items:center;gap:8px;padding:9px\x2012px;margin-bottom:14px;border:1px\x20solid\x20var(--bd);border-radius:10px;background:var(--sf);color:var(--ts)}\x0a.sgc-ed-search\x20input{flex:1;border:none;background:none;outline:none;color:var(--tx);font-size:13.5px;font-family:inherit}\x0a.sgc-ed-search:focus-within{border-color:var(--ac);box-shadow:0\x200\x200\x203px\x20rgba(var(--acr),.12)}\x0a.tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0\x204px;margin-left:4px;border-radius:8px;font-size:9.5px;font-weight:700;background:rgba(var(--acr),.15);color:var(--ac)}\x0a.tb.active\x20.tab-badge{background:rgba(var(--acr),.2)}\x0a.panel.searching\x20.tabs{display:none}\x0a.panel.searching\x20.tc{display:block}\x0a.sgc-search-miss{display:none!important}\x0a.panel.searching\x20.ec.open\x20.eb{max-height:none;overflow:visible}\x0a.panel.searching\x20.add-btn{display:none}\x0a</style>','hidden','main','.e-data_attribute','_drawAverageLines','off','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<rect\x20x=\x223\x22\x20y=\x224\x22\x20width=\x2218\x22\x20height=\x2218\x22\x20rx=\x222\x22\x20ry=\x222\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<line\x20x1=\x2216\x22\x20y1=\x222\x22\x20x2=\x2216\x22\x20y2=\x226\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<line\x20x1=\x228\x22\x20y1=\x222\x22\x20x2=\x228\x22\x20y2=\x226\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<line\x20x1=\x223\x22\x20y1=\x2210\x22\x20x2=\x2221\x22\x20y2=\x2210\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>','_renderCalendarGrid','><label>','addEventListener','Override\x20the\x20name\x20shown\x20in\x20the\x20hover\x20tooltip\x20only.\x20Independent\x20from\x20Custom\x20Name\x20(which\x20controls\x20the\x20state\x20row).\x20Leave\x20empty\x20to\x20hide\x20the\x20name\x20in\x20the\x20tooltip\x20—\x20handy\x20when\x20you\x20only\x20want\x20the\x20swatch\x20and\x20value.\x20If\x20unset,\x20the\x20tooltip\x20falls\x20back\x20to\x20Custom\x20Name\x20→\x20friendly_name\x20→\x20entity\x20id.','crosshair','image/png','date_picker_group','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ha-card.sgc-card','zoom_sync_group','_statPeriodFor','increase','Price\x20Attribute','innerHTML','http://www.w3.org/2000/svg','resolved_tooltip_name','customStart','_setupTooltip','This\x20Year','#fff','TOTAL','rgba(255,255,255,0.18)','_renderDatePickerPresets','[statistics-graph-chart-card]\x20no\x20translations\x20found\x20next\x20to\x20the\x20card\x20file\x20-\x20UI\x20will\x20be\x20English\x20only.\x20Install\x20the\x20translations\x20folder\x20(or\x20translations.js)\x20side\x20by\x20side\x20to\x20enable\x20the\x2016\x20bundled\x20languages.','\x22\x20data-dp-preset-mode=\x22','\x22\x20data-mtab=\x22calendar\x22>','</label><input\x20class=\x22ann-color\x22\x20type=\x22color\x22\x20value=\x22','stacked','.e-trend_icon_size','fill_opacity','break_on_null','pop','History\x20only','Opacity','isConnected','Secondary\x20Value','selector','<div\x20class=\x22sgc-detail-legend-entity','searching','Number\x20of\x20units\x20per\x20window.\x201\x20=\x20single\x20unit\x20(e.g.\x20one\x20day,\x20one\x20month\x20—\x20legacy\x20behavior).\x20>1\x20turns\x20the\x20picker\x20into\x20a\x20rolling\x20N-unit\x20window:\x20prev/next\x20buttons\x20jump\x20a\x20full\x20N\x20units.\x20Example:\x20step=4\x20with\x20Week\x20mode\x20shows\x20the\x20last\x204\x20weeks\x20and\x20navigates\x20back/forward\x204\x20weeks\x20at\x20a\x20time.','_intervalInitialSyncDone','toFixed','show_extrema','.sgc-pie-tooltip','_thrColorRefs','Pins','\x22><div\x20class=\x22sw\x22><select\x20id=\x22group_by_picker_position\x22>','[sgc]\x20query\x20sync\x20failed','contain','sgc-chrome-clip-','interval','2356kIAPer','Adds\x20depth\x20to\x20the\x20pie\x20by\x20squashing\x20it\x20vertically\x20and\x20rendering\x20side\x20walls\x20below.\x20Works\x20with\x20any\x20style\x20preset.','visible','sgc-y-axis-label\x20sgc-y-axis-label-left','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20data\x20for\x20box\x20plot.</div>','_entity','<label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20class=\x22e-change_ignore_zero\x22\x20type=\x22checkbox\x22\x20','\x22\x20style=\x22color:','y_axis_font_size','measureText','_calendarCounterNeedsHourly','_dpCustomStart','abs','.fg','_hfCoarsensRequest','setHours','sgc-averages','usesNow','<div\x20class=\x22sgc-dp-shortcuts\x22>','Disabled\x20when\x20trend\x20active','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20numeric\x20data\x20for\x20histogram.</div>','\x20stroke-dasharray=\x22','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22drill_down\x22\x20type=\x22checkbox\x22\x20','_annotationLineDash','sameRep','Chart\x20Align','Zoom\x20Sync','last_month','pointerup','?end_time=','peakPct','\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<path\x20d=\x22','_refreshLiveLegend','TL_STL','.dp-zone-right','\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ei\x22>','.dp-zone-left','Group\x20By','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.','x_axis_interval','\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22></div><div\x20class=\x22f\x22></div></div>','Top\x20Right','<div\x20class=\x22sgc-al-item\x22>','</label><div\x20class=\x22sw\x22><select\x20id=\x22x_grid_style\x22>','_sgcIcon','.sgc-pie-canvas','iso','trend','card','Key',':\x20its\x20statistics\x20','Hovering\x20broadcasts\x20the\x20timestamp\x20to\x20all\x20synced\x20cards.','_drawThresholdAnnotation','Call\x20Service','<div\x20class=\x22cs\x20mt8\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M3\x206h18M6\x2012h12M10\x2018h4\x22/></svg>','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.','extrema_color','Period','_hass','_debug','<div\x20style=\x22opacity:0.6\x22>','</option><option\x20value=\x22dotted\x22\x20','Base\x20Colors','Čeština','</label><div\x20class=\x22sw\x22><select\x20id=\x22date_picker_shortcuts_position\x22>','getEntityStubConfig','_onDatePickerPanelClick','Transition','Font\x20size\x20of\x20the\x20value\x20labels\x20inside\x20each\x20pie\x20slice.\x20Leave\x20empty\x20for\x20auto-size\x20based\x20on\x20chart\x20radius.','</option><option\x20value=\x22false\x22\x20','Data\x20Vars','\x22\x20data-panel=\x22cardset\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-header\x22\x20data-toggle=\x22cardset\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-icon\x22><svg\x20width=\x2218\x22\x20height=\x2218\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22><rect\x20x=\x223\x22\x20y=\x223\x22\x20width=\x2218\x22\x20height=\x2218\x22\x20rx=\x223\x22/><line\x20x1=\x223\x22\x20y1=\x229\x22\x20x2=\x2221\x22\x20y2=\x229\x22/></svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-title\x22>','removeEventListener','</label><input\x20class=\x22ann-attr\x22\x20type=\x22text\x22\x20placeholder=\x22percentage\x22\x20value=\x22','key','</select></div></div></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','setMinutes','Vertical','.ma-del','_dbg','Icon\x20Color','Row\x20Height','</label><div\x20class=\x22iu\x22><input\x20class=\x22e-extrema_bg_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x221\x22\x20value=\x22','Battery\x20Entity','.e-price_entity','</label><div\x20class=\x22iu\x22><input\x20id=\x22pie_spacing\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x2215\x22\x20step=\x220.5\x22\x20placeholder=\x220\x22\x20value=\x22','cmp-layout','thick','time_zone','Click\x20to\x20return\x20to\x20current\x20period','red','right','panel','DateTimeFormat','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x20mt8\x22\x20style=\x22padding:6px\x200\x22><div\x20class=\x22st\x22><input\x20id=\x22y_axis_round_ticks\x22\x20type=\x22checkbox\x22\x20','<div\x20class=\x22cmp-row\x22\x20data-row=\x22','values','Header,\x20icon,\x20styling\x20and\x20language','cmp-col','show_values','drill_down','When\x20the\x20chart\x20is\x20stacked\x20with\x20two\x20or\x20more\x20stack\x20groups,\x20adds\x20a\x20per-group\x20total\x20row\x20for\x20each\x20named\x20group\x20(e.g.\x20\x27Apples\x20Total\x27).\x20Independent\x20of\x20Tooltip\x20Total\x20—\x20turn\x20both\x20on\x20to\x20show\x20the\x20group\x20totals\x20AND\x20the\x20grand\x20Total\x20of\x20all\x20entities\x20together.','tooltipName','hass-more-info','Tooltip\x20Order','headericon','fillStyle','Adds\x20a\x20small\x20download\x20icon\x20to\x20the\x20top-right\x20corner\x20of\x20the\x20plot\x20with\x20PNG\x20and\x20CSV\x20export\x20of\x20the\x20currently\x20visible\x20series.','<div\x20class=\x22sgc-pie-tt-row\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:','Level','tap_action','180deg','\x22><input\x20id=\x22x_grid_color_pick\x22\x20type=\x22color\x22\x20value=\x22','rest','</label><div\x20class=\x22sw\x22><select\x20id=\x22x_axis_interval\x22>','h23','custom:statistics-graph-chart-card','Reference\x20Entity','.sgc-ip-wrap','Color\x20of\x20the\x20MDI\x20icon\x20in\x20the\x20state\x20row.\x20Enter\x20threshold\x20to\x20change\x20the\x20icon\x20color\x20dynamically\x20based\x20on\x20the\x20current\x20value.','</span><button\x20class=\x22sgc-dp-next\x20','Fills\x20the\x20area\x20below\x20the\x20line\x20with\x20a\x20semi-transparent\x20version\x20of\x20the\x20entity\x20color.\x20Combined\x20with\x20gradient,\x20creates\x20a\x20smooth\x20fade-out\x20effect.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x20','\x22><span\x20class=\x22u\x22>px</span></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_avg\x22\x20type=\x22checkbox\x22\x20','color:','max','No\x20annotations\x20yet','_liveLegendRAF','rgba(255,255,255,0.95)','sgc-thrs-','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ha-entity-picker-wrap\x22\x20style=\x22display:flex;flex-direction:column;min-height:56px\x22\x20data-entity=\x22','weekInfo','setConfig','_read','Operation','Color\x20of\x20vertical\x20grid\x20lines.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','offH','CHART','Font\x20size\x20of\x20X-axis\x20labels\x20(hours\x20for\x20heatmap,\x20day\x20names\x20for\x20calendar)\x20in\x20pixels.\x20Default\x20is\x2010.','gauge:','</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','y_axis_round_ticks','_energyDiscoverTimer','rgba(255,255,255,0.98)','Shows\x20time\x20labels\x20along\x20the\x20bottom\x20in\x20Timeline\x20mode,\x20or\x20value\x20labels\x20in\x20Scatter\x20mode.\x20Disable\x20to\x20gain\x20extra\x20vertical\x20space.','</label><input\x20class=\x22ann-val2\x22\x20type=\x22text\x22\x20placeholder=\x22','translate(','brush_zoom','.e-enabled','chart_align','last_30d','</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20cstc\x20','native','<div\x20class=\x22f\x22><label>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','locale','\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>','</label><div\x20class=\x22sw\x22><select\x20id=\x22y_axis_number_format\x22>','getUTCDay','sgc-natural-height','_refLookupFor','end','.e-decimals','yScale','Material\x20Design\x20Icon\x20next\x20to\x20the\x20title.\x20Use\x20the\x20mdi:\x20prefix,\x20e.g.\x20mdi:chart-line.\x20Browse\x20all\x20icons\x20at\x20materialdesignicons.com.','Image\x20URL','Last\x207D','png','_cells','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}','data-cstc','placeholder','_combinePostBucketRef','sgc-ma-label','</label><div\x20class=\x22iu\x22><input\x20id=\x22extended_window_multiplier\x22\x20type=\x22number\x22\x20min=\x221\x22\x20max=\x2210\x22\x20step=\x221\x22\x20placeholder=\x22','Minimum\x20span\x20of\x20the\x20primary\x20Y\x20axis.\x20If\x20the\x20actual\x20data\x20range\x20is\x20smaller\x20than\x20this,\x20the\x20axis\x20expands\x20symmetrically\x20around\x20the\x20center.\x20Example:\x20set\x20to\x2010\x20and\x20data\x20ranges\x2020-22\x20→\x20axis\x20shows\x2016-26.\x20Prevents\x20overly\x20zoomed\x20graphs\x20for\x20nearly-flat\x20data.','Data\x20Settings','battery_entity','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.','.e-auto_hide','show_grid','_updateHistory','\x20style=\x22opacity:.35;pointer-events:none\x22','\x20is\x20ignored:\x20it\x20only\x20applies\x20to\x20an\x20attribute\x20data\x20source\x20(set\x20data_attribute).\x20To\x20combine\x20this\x20entity\x20with\x20another\x20one\x20over\x20time\x20use\x20ref_entity\x20/\x20ref_op.','data_value_field','</foreignObject></svg>','aria-label','.sgc-export-menu','weekday','<div\x20class=\x22sgc-pie-tt-row\x22\x20style=\x22opacity:0.7;font-size:11px;border-bottom:1px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.08));padding-bottom:3px;margin-bottom:3px\x22><span\x20class=\x22sgc-pie-tt-name\x22\x20style=\x22max-width:none\x22>','_zoomSyncHandler','_preciseTsCache','Show\x20Timestamp','Strip\x20Height','thin','<span\x20class=\x22sgc-state-icon\x22','#2ecc71','English','hassUtil','card_header','.sgc-export-btn','var(','Subtle\x20is\x20the\x20card\x27s\x20own\x20look:\x20muted\x20labels\x20and\x20a\x20faint\x20grid.\x20Native\x20uses\x20the\x20same\x20theme\x20colours\x20and\x20sizes\x20as\x20Home\x20Assistant\x27s\x20built-in\x20charts\x20(primary\x20text\x20colour\x20at\x2012\x20px\x20for\x20the\x20labels,\x20the\x20theme\x27s\x20divider\x20colour\x20for\x20the\x20grid),\x20so\x20the\x20card\x20switches\x20with\x20light\x20and\x20dark\x20themes.\x20Any\x20axis\x20or\x20grid\x20setting\x20you\x20fill\x20in\x20on\x20the\x20X\x20Axis\x20and\x20Y\x20Axis\x20tabs\x20still\x20wins.','Color\x20of\x20the\x20numeric\x20value\x20text\x20in\x20the\x20state\x20row.\x20Enter\x20threshold\x20to\x20change\x20the\x20text\x20color\x20dynamically\x20based\x20on\x20the\x20current\x20value.','input_number.','\x22\x20style=\x22cursor:','<option\x20value=\x22\x22\x20','group_by_picker_position','.tpl-badge','[sgc]\x20history\x20fetch\x20failed','e.g.\x20Statistics','\x20legend-hidden','MDI\x20Icon','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-legend-swatch\x22\x20style=\x22','boundaryOwnerByIdx','mouseup','\x22>›</button></div>','</label><div\x20class=\x22iu\x22><input\x20id=\x22card_background_blur\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x2250\x22\x20step=\x221\x22\x20placeholder=\x220\x22\x20value=\x22','_areaDisambig','.e-lower_bound','<div\x20class=\x22overlay-opt','<div\x20class=\x22sgc-spark-list\x22>','_layoutMode','Down\x20Color','state_adaptive_color','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22include_area_names\x22\x20type=\x22checkbox\x22\x20','childNodes','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><rect\x20x=\x223\x22\x20y=\x223\x22\x20width=\x2218\x22\x20height=\x224\x22\x20rx=\x221\x22/><line\x20x1=\x223\x22\x20y1=\x2210\x22\x20x2=\x2214\x22\x20y2=\x2210\x22/></svg>','Slice\x20Label\x20Color','clipPath\x20rect[data-full-x]','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-primary_state_as\x22\x20','createRadialGradient','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.','</label><input\x20class=\x22e-upper_bound\x22\x20type=\x22text\x22\x20placeholder=\x22100,\x20~100\x20or\x20sensor.x\x22\x20value=\x22','.ann-val1','Upper\x20Bound\x20Y','align_state','fill','_updateTabBadges','_layout','mode','_stretchSlots','expected\x20\x22','damp_reset_boundary','<div\x20class=\x22sgc-state-row','period_highlight','alignToClock','Bounds','now_line_opacity','_arcs','.sn','</label><input\x20id=\x22min_bound_range_secondary\x22\x20type=\x22text\x22\x20placeholder=\x22','getMilliseconds','contains','_animStart','sgc-query-sync','anchorT','_baseQuery','cursor','Data\x20Points','\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x2222\x2012\x2018\x2012\x2015\x2021\x209\x203\x206\x2012\x202\x2012\x22/></svg>','__sgcExtVisibleH','segments-thr','<div\x20class=\x22sgc-dp-modes\x22>','hour','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.','sgc-query-sync-request','subscribeMessage','maxStaleMs','Default','Colour\x20of\x20the\x20▼\x20(falling)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20error\x20colour\x20(red).','sgc-extras','_resolveStateColor','Statistics\x20Graph\x20Chart\x20Controller','dashed','_buildCsvText','4.05','All','Graph','both','sig','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_x_ticks\x22\x20type=\x22checkbox\x22\x20','\x22\x20width=\x22','_meta','.sgc-export-btn,\x20.sgc-export-menu,\x20.sgc-zoom-ctl,\x20.sgc-tooltip,\x20.sgc-zoom-brush,\x20.sgc-pins,\x20.sgc-hover-dots,\x20.sgc-crosshair','Colour\x20of\x20the\x20━\x20(stable)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20secondary\x20text\x20colour\x20(grey).','TL_RD',';visibility:hidden','Day\x20of\x20year\x20(1-366)','ann','.e-unit','.e-extrema_color-picker','sgc-datepicker-sync','.e-thr_transition','.sgc-card{position:relative;overflow:hidden}','transparent','stackKeyByIdx','border-color:transparent','_shouldAlignToClock','.tb','Fri','Up\x20Color','Week','missing|','yearTotal','_graphData','soft','[data-dp-preset-mode]','mapX','first','__visible__','TABLE','next','.e-show_extrema_max','.e-show_trend_icon','T12:00:00','PALETTE','dp-center-stacked','#sgc-user','</button></div>','.e-state_color-picker','Week\x20of\x20year\x20(1-53)','bins','Advanced','</label><input\x20class=\x22e-ref_attribute\x22\x20type=\x22text\x22\x20value=\x22','_statNet','Hard\x20or\x20soft\x20maximum\x20for\x20the\x20primary\x20Y\x20axis.\x20Same\x20syntax\x20as\x20Lower\x20Bound:\x20number,\x20~number,\x20or\x20entity_id.','value','mouseover','sgc-dp-cal-day','sqrt','colors','mdi:icon\x20or\x20{{\x20template\x20}}','indexOf','entId','[sgc]\x20PNG\x20export\x20failed','stroke:','recorder/get_statistics_metadata','n2h','sans-serif','<div\x20class=\x22es\x22>','Click\x20and\x20drag\x20(desktop)\x20or\x20long-press\x20and\x20drag\x20(mobile)\x20on\x20the\x20graph\x20to\x20select\x20a\x20time\x20range\x20and\x20zoom\x20in.\x20Double-click/double-tap\x20resets\x20to\x20the\x20original\x20view.','<div\x20class=\x22sgc-pie-tt-row\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:transparent\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>','getUTCFullYear','_preciseTsResolved','><div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_extrema_min\x22\x20type=\x22checkbox\x22\x20','stable','</span></div></label><div\x20class=\x22overlay-opt','sgc-now-label','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</label><div\x20class=\x22iu\x22><input\x20id=\x22y_axis_decimals\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x226\x22\x20step=\x221\x22\x20placeholder=\x22','[data-panel=\x22cardset\x22]','\x22></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','B\x20÷\x20A','var(--','.sgc-spark-row','ISO\x20/\x20epoch\x20ms','data-cstab','day','Download\x20PNG\x20(Card)','cardset','.ha-tap-action-picker-wrap','\x22\x20data-tab=\x22data\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M21\x2015v4a2\x202\x200\x200\x201-2\x202H5a2\x202\x200\x200\x201-2-2v-4\x22/><polyline\x20points=\x2217\x208\x2012\x203\x207\x208\x22/><line\x20x1=\x2212\x22\x20y1=\x223\x22\x20x2=\x2212\x22\x20y2=\x2215\x22/></svg>','_refDirtyIds','sgc-stl-label-clip','y_axis_number_format','sensor.','narrow','purple','_groupForQueryKind','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getGridOptions','font-size:\x20','Read\x20a\x20specific\x20attribute\x20instead\x20of\x20the\x20main\x20state.\x20Use\x20dot\x20notation\x20for\x20nested\x20paths,\x20e.g.\x20current_temperature\x20or\x20forecast.0.temperature.\x20Useful\x20for\x20entities\x20that\x20expose\x20multiple\x20values.','appendChild','_onDatePickerNav','600','\x22\x20stroke-width=\x221\x22/>','Color\x20of\x20the\x20vertical\x20now\x20marker\x20line.\x20Leave\x20empty\x20for\x20theme\x20default\x20(primary\x20text\x20color).','_formatDatePickerLabel','Threshold','HA-CARD','last_5y','src','auto_scale_points','dampResetBoundaryMax','timeline','last_week','number','Colorizes\x20the\x20graph\x20line\x20and\x20fill\x20based\x20on\x20the\x20data\x20value\x20at\x20each\x20point.\x20Define\x20value\x20breakpoints\x20and\x20assign\x20a\x20color\x20to\x20each\x20range.\x20Cannot\x20be\x20used\x20at\x20the\x20same\x20time\x20as\x20Rise/Fall\x20Colors.','int','data-pin-for','hass','\x20arg(s)','Color\x20used\x20when\x20the\x20value\x20is\x20not\x20changing\x20significantly.','unit','#5dade2','Overlay','to_state','Running\x20total','<path\x20d=\x22M3\x2012a9\x209\x200\x201\x200\x202.6-6.4\x22/><polyline\x20points=\x223\x203\x203\x209\x209\x209\x22/>','.e-legend_live','.sgc-dp-bar','sgc-state-wrap\x20','_drillStack','\x20stroke-width=\x22','x_axis_font_size','Round\x20Ticks','X\x20Grid\x20Color','_tplBoolEntities','.cs-tb','<circle\x20cx=\x2211\x22\x20cy=\x2211\x22\x20r=\x227\x22/><line\x20x1=\x2220\x22\x20y1=\x2220\x22\x20x2=\x2216.7\x22\x20y2=\x2216.7\x22/><line\x20x1=\x228\x22\x20y1=\x2211\x22\x20x2=\x2214\x22\x20y2=\x2211\x22/><line\x20x1=\x2211\x22\x20y1=\x228\x22\x20x2=\x2211\x22\x20y2=\x2214\x22/>','.e-align_state','</label><select\x20class=\x22e-line_style\x22\x20','Point\x20Color','offsetWidth','touchcancel','</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22tb\x20cs-tb\x20','_applyRefTo','getHours','_drawSpanAnnotation','</label><div\x20class=\x22iu\x22><input\x20id=\x22x_grid_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22','_resolveColor','device_id','gradient','Seconds','No\x20comparisons\x20yet','dark-grey','Display\x20the\x20window-wide\x20min\x20and\x20max\x20as\x20a\x20subdued\x20(min\x20-\x20max)\x20suffix\x20next\x20to\x20the\x20primary\x20value.\x20Best\x20paired\x20with\x20show_graph:\x20false\x20+\x20primary_state_as:\x20min/max\x20for\x20compact\x20records\x20cards.\x20Uses\x20range-band\x20data\x20when\x20enabled,\x20otherwise\x20falls\x20back\x20to\x20the\x20aggregate\x20min/max\x20over\x20the\x20visible\x20window.','</label><div\x20class=\x22sw\x22><select\x20id=\x22time_zone\x22>','</label><div\x20class=\x22iu\x22><input\x20id=\x22state_strip_height\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2260\x22\x20step=\x221\x22\x20placeholder=\x2216\x22\x20value=\x22','</label><input\x20id=\x22y_axis_label\x22\x20type=\x22text\x22\x20placeholder=\x22','Line\x20=\x20smooth\x20curve\x20with\x20optional\x20Bezier\x20smoothing.\x20Step\x20=\x20holds\x20value\x20flat\x20until\x20next\x20change,\x20then\x20jumps\x20—\x20ideal\x20for\x20discrete\x20states\x20and\x20setpoints.\x20Bar\x20=\x20vertical\x20bar\x20chart\x20per\x20time\x20bucket.\x20Candlestick\x20=\x20OHLC\x20financial\x20candles\x20per\x20time\x20bucket\x20(body\x20=\x20open→close,\x20green\x20up\x20/\x20red\x20down;\x20wick\x20=\x20high→low).\x20On\x20the\x20history/STS\x20path\x20the\x20candle\x20is\x20built\x20from\x20the\x20raw\x20samples\x20in\x20each\x20bucket\x20(true\x20OHLC);\x20on\x20the\x20statistics/LTS\x20path\x20open/close\x20come\x20from\x20the\x20hourly\x20means\x20and\x20high/low\x20from\x20the\x20period\x20min/max.','effectAllowed','battery_low_threshold','(prefers-color-scheme:\x20dark)','Suomi','card-icon-color','sgc-y-axis-sticky','Data\x20Labels','Buttons\x20that\x20snap\x20to\x20a\x20whole\x20calendar\x20unit:\x20D\x20=\x20the\x20current\x20day\x20(midnight\x20to\x20midnight\x20in\x20your\x20timezone),\x20W\x20=\x20the\x20current\x20week,\x20M\x20=\x20the\x20current\x20month,\x20Y\x20=\x20the\x20current\x20year.\x20The\x20prev/next\x20arrows\x20step\x20one\x20full\x20period\x20at\x20a\x20time\x20—\x20the\x20previous\x20or\x20next\x20day,\x20week,\x20month\x20or\x20year.','Buttons\x20that\x20always\x20end\x20at\x20the\x20present\x20moment\x20and\x20look\x20a\x20fixed\x20span\x20back:\x2024H\x20=\x20the\x20last\x2024\x20hours,\x207D\x20=\x20the\x20last\x207\x20days,\x2012M\x20=\x20the\x20last\x2012\x20months,\x20and\x20so\x20on.\x20They\x20do\x20NOT\x20snap\x20to\x20calendar\x20boundaries\x20—\x203D\x20means\x20the\x20last\x2072\x20hours\x20up\x20to\x20now,\x20not\x20a\x203-day\x20calendar\x20block.\x20The\x20prev/next\x20arrows\x20jump\x20a\x20full\x20span\x20back\x20or\x20forward.','[data-row=\x22','Shows\x20numeric\x20value\x20labels\x20on\x20the\x20right\x20(secondary)\x20edge\x20of\x20the\x20graph.\x20Only\x20visible\x20when\x20at\x20least\x20one\x20entity\x20uses\x20Y\x20Axis\x20=\x20Secondary.\x20Disable\x20to\x20show\x20only\x20the\x20primary\x20axis\x20labels\x20while\x20keeping\x20secondary\x20entities\x20plotted.','</label><input\x20id=\x22ranking_max_value\x22\x20type=\x22number\x22\x20step=\x22any\x22\x20placeholder=\x22','</label><div\x20class=\x22iu\x22><input\x20id=\x22hours_to_show\x22\x20type=\x22number\x22\x20min=\x221\x22\x20step=\x221\x22\x20value=\x22','custom','changedTouches','_onIntervalSyncRequest','[sgc]\x20history/history_during_period\x20is\x20not\x20available\x20on\x20this\x20Home\x20Assistant\x20right\x20now;\x20using\x20the\x20REST\x20history\x20API\x20for\x20the\x20next\x205\x20minutes','Last\x20Color','%\x22\x20stop-color=\x22','pie_style','var(--primary-text-color,\x20currentColor)','.sgc-header-wrap\x20.sgc-title{','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','transition','sgc-bar\x20sgc-bar-animated','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>','addColorStop','When\x20enabled,\x20the\x20entire\x20line\x20is\x20colored\x20based\x20on\x20the\x20most\x20recent\x20value\x20instead\x20of\x20coloring\x20each\x20segment\x20individually.\x20Useful\x20when\x20you\x20want\x20a\x20single\x20unified\x20color\x20that\x20reflects\x20the\x20current\x20state.','_applyDatePickerPreset','__sgcExtAnchorMs','#c0392b','\x20÷\x20','BOUNDS','overlay','flex-shrink:0;--mdc-icon-size:18px;width:18px;height:18px;color:var(--tx)','</div><div\x20class=\x22f\x22></div></div>','date_picker_reset','></div></div><button\x20class=\x22thr-del\x22\x20title=\x22','use_only_attribute_name','radialbar','</label><div\x20class=\x22iu\x22><input\x20id=\x22card_header_letter_spacing\x22\x20type=\x22text\x22\x20placeholder=\x22','Last\x205\x20years','\x20stroke-linejoin=\x22round\x22\x20stroke-linecap=\x22round\x22\x20vector-effect=\x22non-scaling-stroke\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</svg>','</label><input\x20class=\x22ann-val1\x22\x20type=\x22text\x22\x20placeholder=\x222026-01-15T08:00:00\x22\x20value=\x22','_attrGbyWarned','pointer-events:none;font-weight:500;letter-spacing:.03em','_showExtremaOnClick','_pinsBackup','.r2,\x20.r3,\x20.sg','eMs','><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','setItem','c2x','_priceSeries','direction','equal_color','\x22>Δ\x20','below','.sgc-zoom-brush,\x20.sgc-zoom-brush-label','_pinDrag','var(--divider-color)','Value\x20Expression','show_pph_picker','cstab','_resolveEntityAnnotations','Apr','.ann-attr','independent','unit_of_measurement','dateStr','csv','data-full-w','><span\x20class=\x22msl\x22></span></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22\x20','.e-legend_avg','card_background_blur','tab-badge','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-subtitle\x22>','_hasAnyAggregatedEntity','Last\x2015D','What\x20to\x20show\x20inside\x20each\x20slice.\x20Value\x20=\x20number\x20with\x20unit\x20(e.g.\x2042.0\x20kWh).\x20Percentage\x20=\x20share\x20of\x20the\x20total\x20(e.g.\x2023%).\x20Both\x20=\x20value\x20followed\x20by\x20percentage.','Stable','Extrema','flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap','\x22><div\x20class=\x22sw\x22><select\x20id=\x22attribute_list_position\x22>','kind','</label><input\x20id=\x22y2_axis_label\x22\x20type=\x22text\x22\x20placeholder=\x22','restore','keys','.cmp-list','_setupTimers','central','rgba(255,255,255,0.10)','week_of_year','textAlign','group_by','Y\x20Ticks','_isThrRef','weeks','Y\x20Axis\x20Label','y2_axis_label','Sync\x20Group','Altitude','pickStatField','history/history_during_period','outerPosByIdx','Aligned\x20(below)','Português','_seriesEntity','.sgc-detail-legend-entity','stroke','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_x_axis\x22\x20type=\x22checkbox\x22\x20','Date\x20Label\x20Color','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_resolveEditorColor','_resolveCanvasColor','_mainTab','.sgc-dp-reset','.tip-box','mm:ss','Last\x203\x20years','Reference\x20Attribute','.e-ref_op','</label><div\x20class=\x22sw\x22><select\x20id=\x22align_header\x22>','history:net','\x22><span\x20class=\x22u\x22>×</span></div></div><div\x20class=\x22f\x22><label>','dpCal','textContent','\x20.sgc-dp-nav','<div\x20style=\x22margin-top:6px\x22><div\x20style=\x22display:flex;align-items:center;gap:4px;margin-bottom:3px\x22><span\x20style=\x22font-size:10px;text-transform:uppercase;letter-spacing:.04em;opacity:.55\x22>','now_line_style','anchorStart','show_y_axis_label','Border\x20Radius','inv','line_style','Font\x20Size','<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22scroll_sync\x22\x20type=\x22checkbox\x22\x20','_onDatePickerReset','number_format','sgc-overlay-clip','_onTooltipSyncEvent','nowMs','requesterId','hide_name','#ff4757','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</label><input\x20id=\x22upper_bound\x22\x20type=\x22text\x22\x20placeholder=\x22100,\x20~100\x20or\x20sensor.x\x22\x20value=\x22','</div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','_drillTimer','_applyOwnCardStyles','items','_activeIntervalLabel','_scheduleRender','dpmode','Blur\x20amount\x20in\x20pixels\x20applied\x20to\x20the\x20Background\x20Image\x20only.\x20The\x20chart,\x20header\x20and\x20other\x20content\x20stay\x20sharp.\x200\x20or\x20empty\x20=\x20no\x20blur.\x20Useful\x20for\x20soft,\x20atmospheric\x20backgrounds.','year_start_month','[sgc]\x20ws\x20handler\x20error','show_extrema_min','data_value_expression','\x22><input\x20id=\x22y_grid_color_pick\x22\x20type=\x22color\x22\x20value=\x22','<div\x20class=\x22sgc-title-wrap\x20pos-','input','_applyQueryOverrides','lines','multiply','<span\x20class=\x22sgc-dp-mode-sep\x22\x20aria-hidden=\x22true\x22></span>','Slice\x20Label\x20Format','toLowerCase','MMM\x20YY','</label><input\x20class=\x22e-fill_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x220.4\x22\x20value=\x22','_ensurePinchHandlers','show_points','className','_graphFingerprint','Y2-Axis','stringify','getElementById','position','stroke-dasharray:','_ovAttrIdSeq','0.8','_attachZoomHandlers','\x22\x20x2=\x22','resolved_name','_rebuildPoints','vertical','_end','blue-grey','\x22\x20stroke-width=\x221\x22\x20rx=\x222\x22/>','</div><button\x20class=\x22thr-add\x22\x20','none','\x22\x20style=\x22width:100%;font-family:monospace;font-size:11px\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label\x20class=\x22si\x22\x20style=\x22margin:0\x22><div\x20class=\x22st\x22><input\x20class=\x22e-fixed_value\x22\x20type=\x22checkbox\x22\x20','Horizontal','sgc-pin-label','_drawAnnotationsForeground','_onIntervalPick','[sgc]\x20','<div\x20class=\x22f\x22></div><div\x20class=\x22f\x22></div>','Min','Compact\x20Legend','y_axis_ticks','</label>','Smooth\x20=\x20gradual\x20blend\x20between\x20colors.\x20Hard\x20=\x20instant\x20switch\x20at\x20the\x20threshold\x20value.','\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>','></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x20','\x22\x20with\x20aggregate_func\x20\x22','months','setTime','</div><div\x20class=\x22sw\x22\x20style=\x22min-width:90px\x22><select\x20class=\x22e-show_extrema\x22>','</label><div\x20class=\x22sw\x22><select\x20class=\x22ann-type\x22>','1124aslfXh','transform','_candleColors','jobs','some','[data-b]','500\x20','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_interval_picker\x22\x20type=\x22checkbox\x22\x20','5,4','focus','sgc-x-axis','history:cache','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</span></div></label>','yaxis','</label><div\x20class=\x22sw\x22><select\x20id=\x22now_line_style\x22>','Header','</label><div\x20class=\x22sw\x22><select\x20id=\x22date_picker_nav_position\x22>','flat','_renderLegend','<stop\x20offset=\x22','\x22\x20fill-opacity=\x220.72\x22\x20stroke=\x22','Month\x20Before','height','Last\x203\x20days','&amp;','Font\x20size\x20of\x20the\x20numeric\x20value\x20in\x20the\x20state\x20row.\x20Accepts\x20CSS\x20values,\x20e.g.\x2013px.','Card\x20Overlays','Show\x20the\x20minimum\x20value\x20label.\x20Disable\x20to\x20hide\x20just\x20the\x20min\x20—\x20useful\x20for\x20sensors\x20where\x20the\x20minimum\x20is\x20always\x20zero\x20(e.g.\x20solar\x20power,\x20rain).','upper_bound','_intervalStoreKey','Toggle\x20the\x20graph\x20line\x20visibility.\x20Disable\x20to\x20show\x20only\x20the\x20fill\x20area\x20without\x20a\x20visible\x20edge\x20—\x20useful\x20for\x20soft\x20area\x20charts.','\x22></div>','_computeRollingStart','</select></div>','Waterfall','Line\x20pattern\x20for\x20horizontal\x20(Y-axis)\x20grid\x20lines.\x20Solid,\x20Dashed,\x20Dotted,\x20or\x20Long\x20Dash.\x20Or\x20a\x20custom\x20SVG\x20stroke-dasharray\x20like\x206\x202\x202\x202.','\x22\x20data-index=\x22','0\x200\x20','#888888','\x22></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','cellW','firstElementChild','I18N','show_color_dot','resets\x20within\x20the\x20bucket\x20(looks\x20like\x20a\x20daily/total_increasing\x20counter).\x20','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>','ref_entity','arc','friendly_name','\x22\x20fill=\x22','[sgc]\x20ref_op\x20\x22','</option><option\x20value=\x22last_year\x22\x20','Size\x20of\x20the\x20state\x20row\x20icon.\x20Accepts\x20CSS\x20values,\x20e.g.\x2018px.','include_area_names','Shows\x20a\x20Total\x20row\x20at\x20the\x20bottom\x20of\x20the\x20tooltip\x20summing\x20all\x20visible\x20entity\x20values.\x20The\x20unit\x20is\x20appended\x20when\x20every\x20visible\x20entity\x20shares\x20it.','_lastMin','tooltip_order','show_line','Thickness\x20of\x20the\x20graph\x20line\x20in\x20pixels.\x202-3\x20for\x20standard,\x201\x20for\x20dense\x20multi-entity,\x204+\x20for\x20large\x20displays.','.e-gradient','_edLang','date_picker_modes','Color\x20for\x20the\x20Center\x20Total\x20value\x20and\x20its\x20sub-label.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','MMMM','attributes','lastRawT','extrema_bg_color','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-y_axis\x22>','.f,\x20.si','options','\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','</label><input\x20class=\x22ma-period\x22\x20type=\x22number\x22\x20min=\x221\x22\x20step=\x221\x22\x20value=\x22','Last\x2012M','padStart','subtract','_wireUp','no-','bad\x20number\x20\x22','</label><div\x20class=\x22sw\x22><select\x20id=\x22legend_position\x22>','</label><input\x20class=\x22e-name\x22\x20type=\x22text\x22\x20placeholder=\x22','plotW','_dpOffset','<svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M21\x2015v4a2\x202\x200\x200\x201-2\x202H5a2\x202\x200\x200\x201-2-2v-4\x22/><polyline\x20points=\x227\x2010\x2012\x2015\x2017\x2010\x22/><line\x20x1=\x2212\x22\x20y1=\x2215\x22\x20x2=\x2212\x22\x20y2=\x223\x22/></svg>','<div\x20class=\x22sgc-tt-time\x22>','.ma-list','binary_sensor','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).','prototype','</option><option\x20value=\x22sequential\x22\x20','input[type=\x22text\x22]','.sgc-card>*{position:relative;z-index:1}','</label><div\x20class=\x22sw\x22><select\x20class=\x22cmp-period\x22><option\x20value=\x22previous_period\x22\x20','pointermove','med','sgc-interval-sync','_precise','_cssColorMemo','</label><div\x20class=\x22sw\x22><select\x20id=\x22pie_label_format\x22>','Show\x20Full\x20Period','<div\x20class=\x22asr-row\x22\x20data-row=\x22','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).','Show\x20the\x20default\x20HA\x20card\x20border.\x20Disable\x20for\x20a\x20cleaner\x20borderless\x20appearance.','<div\x20class=\x22tc\x20mtc\x20','_dpCustomEnd','_start','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22energy_date_sync\x22\x20type=\x22checkbox\x22\x20','innerRadius','sgc-area','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-thr_direction\x22>','datetime_format','End\x20value','_exportCsv','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','\x22></div></div><div\x20class=\x22f\x22><label>','Order\x20of\x20the\x20entity\x20rows\x20inside\x20the\x20tooltip.\x20Default\x20=\x20configuration\x20order\x20(first\x20entity\x20on\x20top).\x20Reverse\x20=\x20bottom-to-top,\x20matching\x20a\x20stacked\x20chart\x27s\x20visual\x20order\x20so\x20the\x20topmost\x20stacked\x20segment\x20is\x20listed\x20first.\x20Alphabetic\x20=\x20sorted\x20A\x20to\x20Z\x20by\x20display\x20name.\x20The\x20Total\x20row,\x20when\x20shown,\x20always\x20stays\x20at\x20the\x20bottom.','\x22\x20data-hours=\x22','last_15d','<select\x20class=\x22sgc-al-select\x22\x20data-entity-idx=\x22','\x22\x20stroke=\x22','Decimals','_buildMatrix','getMonth','sparkline','Roundness\x20of\x20each\x20state\x20segment\x20corners\x20in\x20pixels.\x200\x20=\x20perfectly\x20sharp.\x203\x20=\x20default.\x20Larger\x20values\x20round\x20into\x20a\x20pill\x20shape\x20(capped\x20at\x20half\x20the\x20row\x20height).\x20Advanced\x20users\x20can\x20also\x20target\x20the\x20sgc-stl-cell\x20class\x20from\x20card_mod\x20for\x20per-state\x20styling.','<span\x20class=\x22sgc-trend-indicator\x22\x20style=\x22','cellH','_withAlpha','state_strip_title_position','deltaAgg','extrema_show_timestamp','><span\x20class=\x22msl\x22></span></label></div>','\x22\x20data-id=\x22','_isCounterEntity','dpHistory','max_visible_interval','getStubConfig','.panel[data-panel=\x22entities\x22]','start','Y\x20Axis\x20Format','last_3y','.e-show_in_legend','</span></div></label></div></div><div\x20class=\x22thr-list\x22>','_wsUnsub','Custom\x20color\x20for\x20X-axis\x20labels.\x20Accepts\x20any\x20CSS\x20color\x20or\x20CSS\x20variable.\x20Leave\x20empty\x20to\x20use\x20theme\x20--primary-text-color.','shift','ha-icon','segments','sgc-pin-line','thr-col-pick','\x22\x20data-tc=\x22state_row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x20','state_strip_titles','Next\x20period','state_strip_title_font_size','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','applyEntityTransforms','_entityTplKey','index','display','_overrideAttributes','_seqMaxMs','<div\x20class=\x22mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22ann-show_values\x22\x20type=\x22checkbox\x22\x20','%</span>\x0a\x20\x20\x20\x20</span>','#1D9E75','upper_bound_secondary','disabled','_intervalSyncRequestHandler','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.','allSettled','sgc-range-band','</div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','[sgc\x20fetch]','Auto\x20(HA\x20profile)','\x20-\x20','state_timeline_show_labels','unobserve','class','calc(100%\x20+\x206px)','</label><div\x20class=\x22iu\x22><input\x20class=\x22ann-opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22','toISOString','_scheduleResolvePreciseRecordTimes','_fetcher','Lower\x20Bound','var(--sf)','trend_icon_size','Needle\x20Color','line_width','Custom\x20color\x20for\x20Y-axis\x20labels\x20and\x20tick\x20marks.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable\x20like\x20var(--my-color).\x20Leave\x20empty\x20for\x20theme\x20default\x20(--secondary-text-color).','computeMovingAveragesExt','()+-*/%,','Month','firstWd','Bezier','subtle','<div\x20class=\x22sgc-dp-nav\x22><button\x20class=\x22sgc-dp-prev\x22\x20aria-label=\x22','<option\x20value=\x22raw\x22\x20','Türkçe','</label><input\x20class=\x22e-value_factor\x22\x20type=\x22number\x22\x20step=\x221\x22\x20placeholder=\x220\x22\x20value=\x22','<label\x20class=\x22si\x22\x20style=\x22min-width:auto\x22><div\x20class=\x22st\x22><input\x20type=\x22checkbox\x22\x20data-intlabel=\x22','data-tab','sgc-candle\x20','card_icon_size','show_x_axis','.ann-label','</span></div></label></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','</span></div></label></div><div\x20class=\x22f\x22><label>','sgc-now-line','Last\x2030\x20days','append','cancelable','grid_options','states','Last','--rgb-primary-text-color','Legend','_drawExtremaLabels','.ec','offset','\x20—</option>','.e-thr_direction','.e-point_colors-picker','_visHeartbeat','Time\x20Unit','Direction','deep-orange','e-trend_up_color','removeItem','card_border','up_to_hours','stats:net','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','data-band-w','scrollbar','Always','forecast_horizon','Enabled\x20Follows','linear-gradient(','12h','getRootNode','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-opt','\x22\x20preserveAspectRatio=\x22none\x22\x20style=\x22display:block\x22>','\x20style=\x22opacity:0.3;pointer-events:none\x22','minHeight','_buildStructure','endAngleFull','</label><div\x20class=\x22sw\x22><select\x20id=\x22state_strip_title_position\x22>','__sgcRefKey','statsFieldCascade','clientX','_cpdOpen','</div></div><div\x20class=\x22asr-list\x22>','\x22\x20-\x20falling\x20back\x20to\x20the\x20device\x20time\x20zone.','neg','_syncedTipT','Offset','Unit\x20of\x20the\x20RAW\x20sensor\x20value\x20when\x20a\x20duration\x20shorthand\x20is\x20used.\x20Seconds\x20is\x20the\x20default\x20—\x20a\x20value\x20of\x205400\x20with\x20h:mm\x20shows\x201:30.\x20Pick\x20Minutes\x20or\x20Hours\x20if\x20your\x20sensor\x20reports\x20those.\x20Ignored\x20by\x20{expression}\x20templates.','entities\x20is\x20required\x20and\x20must\x20be\x20an\x20array','Starting\x20mode\x20on\x20every\x20card\x20load.\x20Auto\x20=\x20remember\x20the\x20last\x20mode\x20the\x20user\x20picked\x20manually\x20(persisted\x20across\x20reloads).\x20Day/Week/Month/Year\x20=\x20always\x20force\x20this\x20calendar\x20mode\x20on\x20load.\x20Last\x2024H\x20…\x20Last\x2012M\x20=\x20force\x20a\x20rolling\x20window\x20that\x20ends\x20at\x20now\x20(e.g.\x20Last\x207D\x20=\x20the\x20last\x207\x20days);\x20the\x20prev/next\x20arrows\x20jump\x20a\x20full\x20period\x20back/forward.','<label>','\x20sgc-state-row-hidden','variables','getOwnPropertyDescriptors','#ffffff','_bucketSeries','insertBefore','\x22\x20rx=\x220.5\x22\x20fill=\x22','data-mtab','Day','.e-attribute','version','.panel[data-panel=\x22main\x22],\x20.panel[data-panel=\x22cardset\x22],\x20.panel[data-panel=\x22entities\x22]','Hour\x20of\x20day\x20(0-23)','event','_ownCardStyleProps','<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','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.','GRADIENT','ent-off','_slideWindow','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','Background','rect','\x22></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>','sgc-ma-line','sgc-plot-scroll','border-style:solid','System','interval_picker_group','Ext\x20LTS','remove','_calendarMaxNeedsHourly','1.234,56','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22cmp-fill\x22\x20type=\x22checkbox\x22\x20','\x22\x20fill=\x22transparent\x22/>','state_strip_labels','.e-break_on_null','_hasEntityGroupOverride','canvas\x20tainted','\x20buckets\x20do\x20not.','_resolvedEntityAnnotations','previous\x20period','tooltip_match_axis','Header\x20Align','status','count','</label><input\x20class=\x22asr-up\x22\x20type=\x22number\x22\x20min=\x221\x22\x20step=\x22any\x22\x20value=\x22','_statMeta','_restartEnergyDateSyncIfNeeded','_updateSeq','</button></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','.e-show_range_values','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.','Custom\x20color\x20for\x20the\x20card\x20border.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.','block','hours','interval_options','drop','Shows\x20percentage\x20next\x20to\x20each\x20bar\x20and\x20Share\x20row\x20in\x20the\x20hover\x20tooltip.','_panActive','</select></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_pph_picker\x22\x20type=\x22checkbox\x22\x20','_onDatePickerToggle','Number\x20of\x20decimal\x20places\x20for\x20Y-axis\x20labels.\x20Overrides\x20the\x20per-entity\x20decimals\x20setting\x20for\x20axis\x20labels\x20only.\x20State\x20row\x20values\x20are\x20not\x20affected.\x20Leave\x20empty\x20for\x20auto-detection.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22ec\x20','<span\x20class=\x22ev\x22>','Date\x20Navigation','State\x20Layout','</style>','_resolvedColors','\x22\x20data-idx=\x22','.e-data_vars','x_grid_width','Fill','\x22><div\x20class=\x22r3\x22><div\x20class=\x22f\x22><label>','paint-order:stroke\x20fill','><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22\x20style=\x22font-size:11px\x22>','cos','\x20—\x20long-term\x20statistics\x20available,\x20used\x20for\x20windows\x20beyond\x20raw\x20history\x20retention.\x22>','_pairs','bottom-right','#ef5350','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_sum\x22\x20type=\x22checkbox\x22\x20','_renderDetailLegend','#f1c40f','general','\x22><input\x20id=\x22zoom_sync_group\x22\x20type=\x22text\x22\x20placeholder=\x22','_seam','width','abort','100%','dragover','</label><div\x20class=\x22sw\x22><select\x20id=\x22year_start_month\x22>','_broadcastIntervalSync','_liveStateRaw','.sgc-qp-wrap','show_y2_axis','e-state_color','sgc-y-axis','_prevRefStamps','ref_op','_yEnt','data-x','getUTCMinutes','.edb','yesterday','8\x204','touchstart','sgc-y-axis-bg','href','<div\x20class=\x22f\x22><label\x20class=\x22si\x22\x20style=\x22margin:0\x22><div\x20class=\x22st\x22><input\x20class=\x22e-invert\x22\x20type=\x22checkbox\x22\x20','x_grid_opacity','#1abc9c','card_icon_image','_compareShiftHours','render','position:relative;width:100%;max-width:125px','Fill\x20Opacity','state_changed','_debounce','wf:','.sgc-detail-legend-wrap','\x20style=\x22opacity:.3;pointer-events:none\x22','_xEnt','</label><div\x20class=\x22iu\x22><input\x20id=\x22card_border_radius\x22\x20type=\x22text\x22\x20placeholder=\x22','removeChild','--ha-card-background','dropEffect','Daily-reset\x20counters\x20shown\x20with\x20max\x20+\x20date\x20grouping\x20can\x20leak\x20yesterday\x27s\x20peak\x20into\x20the\x20midnight\x20bucket;\x20the\x20card\x20damps\x20that\x20artifact\x20heuristically.\x20Disable\x20if\x20it\x20also\x20damps\x20legitimate\x20peaks\x20occurring\x20right\x20after\x20midnight.','\x20stroke=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22','<div\x20class=\x22fg\x22><div\x20class=\x22es\x22>','pie:','X_AXIS','Show\x20the\x20time\x20the\x20extreme\x20value\x20was\x20recorded\x20next\x20to\x20the\x20primary\x20value.\x20Only\x20meaningful\x20when\x20Primary\x20Value\x20is\x20Last,\x20First,\x20Min,\x20or\x20Max\x20—\x20those\x20have\x20a\x20single\x20point\x20in\x20time.','_yearEqualSpace','icon','<div\x20class=\x22cs\x20','tooltip_stacked_total','active','Next\x20month','\x22></ha-icon>','Last\x205\x20Years','_xMeta','transformSeries','_energyEnd','\x20<span\x20style=\x22opacity:0.8;font-size:0.9em;color:','leadMs','</label><div\x20class=\x22sw\x22><select\x20id=\x22axis_style\x22>','y_axis_color','recorder/list_statistic_ids','.sgc-header-wrap','unshift','Top\x20Left','pointerleave','</option></select></div></div></div><div\x20class=\x22','_showTooltipAtTime','c2y','getWeekInfo','Show\x20the\x20maximum\x20value\x20label.\x20Disable\x20to\x20hide\x20just\x20the\x20max.','rgba(0,0,0,0.06)','dispatchEvent','isScroll','long','legend_stats','language','</textarea></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20cstc\x20','cmp-period','rgba(0,0,0,0.6)','unexpected\x20end\x20of\x20expression','.e-data_time_year','dragleave','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.','<div\x20class=\x22sgc-state-align-center\x22>','</label><div\x20class=\x22ha-icon-picker-wrap\x22\x20data-card-icon\x20style=\x22min-height:48px\x22></div></div><div\x20class=\x22f\x22><label>','svg','cmp-back','rgba(255,255,255,0)','data-mtc','xVal','Stroke\x20pattern\x20of\x20the\x20graph\x20line.\x20Solid\x20is\x20the\x20default;\x20Dotted\x20and\x20Dashed\x20help\x20tell\x20overlapping\x20entities\x20apart\x20or\x20mark\x20secondary\x20series.','strokeStyle','[statistics-graph-chart-card]\x20Invalid\x20time_zone\x20\x22','</label><div\x20class=\x22ci\x22><input\x20id=\x22x_axis_date_color\x22\x20type=\x22text\x22\x20placeholder=\x22','</label><div\x20class=\x22sw\x22><select\x20id=\x22pie_style\x22>','Color\x20used\x20when\x20the\x20value\x20is\x20decreasing.','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','A\x20+\x20B','Thickness\x20of\x20vertical\x20grid\x20lines\x20in\x20pixels.\x20Default\x20is\x201.\x20Accepts\x20decimals\x20like\x200.5.','text/csv;charset=utf-8','sgc-average-line','_subscribeEditorColors','debug','getFullYear','Show\x20now\x20line','\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>','_onQuerySyncEvent','Visible\x20Intervals','.asr-row','replace','_drawSeries','_slideTimer','</label><div\x20class=\x22iu\x22><input\x20id=\x22x_axis_font_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22','cmp-avg','alphabetic','state','><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>','</label><div\x20class=\x22ci\x22><input\x20class=\x22e-extrema_color\x22\x20type=\x22text\x22\x20placeholder=\x22','_readPickerState','_onQueryPick','Border\x20Width','Jan','dpRollingMonths','DD\x20MMM\x20YYYY','signal','_querySyncHandler','NO_STL','\x20style=\x22','<div\x20class=\x22csb\x22\x20','.root','</div><div\x20class=\x22ha-tap-action-picker-wrap\x20mt8\x22\x20style=\x22min-height:56px\x22\x20data-idx=\x22','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.','last_12h','Compact\x20mode\x20—\x20removes\x20all\x20chrome,\x20shows\x20entity\x20name\x20+\x20value\x20+\x20tiny\x20graph.','<div\x20class=\x22sgc-box-wrap\x22\x20style=\x22position:relative;width:100%;height:','yearEqualSpace','_default','.e-fill_opacity','scrollLeft','card_background_image','data','show_range_values','\x20·\x20','align_header','previous_period','\x22><input\x20class=\x22e-extrema_bg_color-picker\x22\x20type=\x22color\x22\x20value=\x22','Last\x201H','2-digit','random','reduce','_computeXAxisTicks','_renderErrTs','#f39c12','new_state','Draw\x20the\x20state\x20name\x20inside\x20each\x20band\x20where\x20it\x20is\x20wide\x20enough\x20(more\x20than\x2040\x20px).\x20Turn\x20off\x20for\x20clean\x20colour\x20bands\x20—\x20the\x20tooltip\x20still\x20names\x20the\x20state.','_getRenderer','\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22><path\x20d=\x22M3\x2012a9\x209\x200\x201\x200\x202.6-6.4\x22/><polyline\x20points=\x223\x203\x203\x209\x209\x209\x22/></svg></button>','14D','2\x20Hours','Picker\x20Sync','\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>','input_boolean','background-position:center','price_entity','show_second_state_as','Color\x20Dot','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','967yLCCZT','</div><button\x20class=\x22cmp-add\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>\x20','rgba(255,255,255,0.5)','Custom\x20color\x20for\x20date\x20labels\x20(e.g.\x20midnight\x20markers\x20shown\x20in\x2012+\x20hour\x20views).\x20Defaults\x20to\x20--primary-color\x20so\x20dates\x20stand\x20out.\x20Set\x20to\x20match\x20X\x20Label\x20Color\x20for\x20a\x20uniform\x20axis.','X\x20Grid\x20Opacity','_onDatePickerSyncRequest','rgb(','#chart_mode','_fpLastW','border:none','y_grid_opacity','--primary-text-color','</label><input\x20class=\x22e-decimals\x22\x20type=\x22number\x22\x20min=\x220\x22\x20step=\x221\x22\x20value=\x22','_mountIconDropdown','touch','sMap','No\x20time\x20window.','X\x20Grid\x20Width','Date\x20Picker','Data\x20beyond\x20~10\x20days\x20may\x20be\x20unavailable.','customCards','.sgc-dp-center-abs','_priceJobsCtx','font-size','X\x20Label\x20Color','Style','Dotted','</span>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>','_resetZoomAll','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_tooltip\x22\x20type=\x22checkbox\x22\x20','_groupGrain','</label><div\x20class=\x22sw\x22><select\x20id=\x22gauge_value_position\x22>','Size\x20in\x20pixels\x20of\x20the\x20state\x20name\x20drawn\x20inside\x20each\x20segment\x20AND\x20of\x20the\x20entity\x20name\x20in\x20the\x20label\x20column\x20on\x20the\x20left.\x20Empty\x20=\x2010\x20inside\x20segments,\x2011\x20for\x20entity\x20names.\x20Segments\x20narrower\x20than\x20the\x20text\x20still\x20truncate\x20it\x20with\x20an\x20ellipsis,\x20and\x20entity\x20names\x20wrap\x20onto\x20up\x20to\x20three\x20lines\x20-\x20both\x20follow\x20this\x20size,\x20so\x20a\x20larger\x20font\x20shows\x20fewer\x20characters\x20rather\x20than\x20overflowing,\x20and\x20rows\x20grow\x20to\x20fit.','_tplGen','Milliseconds','Previous\x20Period','_overridePph','carryForwardMs','Opacity\x20of\x20X-axis\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.5.','Last\x20180D','Thu','entries','</label><input\x20class=\x22e-tooltip_name\x22\x20type=\x22text\x22\x20placeholder=\x22','<rect\x20x=\x22','measurement','sgc-qpph:','Svenska','_drillDownAt','Entity\x20#','long-dash','\x22\x20title=\x22','Flips\x20the\x20sign\x20of\x20every\x20value\x20(x\x20-1).\x20It\x20changes\x20the\x20data\x20itself,\x20so\x20it\x20works\x20in\x20every\x20chart\x20mode.\x20Timeline:\x20bars\x20draw\x20downward\x20from\x20the\x20zero\x20line\x20-\x20combine\x20with\x20Stacked\x20for\x20butterfly\x20charts.\x20Waterfall:\x20turns\x20this\x20entity\x20into\x20a\x20subtraction\x20step.','sgc-search-miss','\x22\x20stroke-width=\x222\x22/>','.e-legend_max','_queryInitialSyncDone','\x22\x20y2=\x22','.e-show_average','_onDatePickerSyncEvent','gauge_value_position','sgc-hover-dot','.ha-entity-picker-wrap[data-battery]','0.15','</span></div></label></div>','Mouse\x20Wheel','zoom_sync','xRange','_slideCarryBucketMs','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','hide_on_load','pointer','.asr-list','cmp-ls','_updatePinReadout','\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-zoom-brush\x22\x20style=\x22display:none\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-zoom-brush-label\x20sgc-zoom-brush-label-left\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-zoom-brush-label\x20sgc-zoom-brush-label-right\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-state-wrap\x22\x20data-pos=\x22bottom\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-legend-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-detail-legend-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20</ha-card>\x0a\x20\x20\x20\x20','Smooth','Last\x206H','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><rect\x20x=\x223\x22\x20y=\x2214\x22\x20width=\x2218\x22\x20height=\x227\x22\x20rx=\x221\x22/><line\x20x1=\x223\x22\x20y1=\x2210\x22\x20x2=\x228\x22\x20y2=\x2210\x22/><line\x20x1=\x223\x22\x20y1=\x227\x22\x20x2=\x2212\x22\x20y2=\x227\x22/></svg>','disconnectedCallback','STL','#16a085','_gbyStoreKey','letter-spacing:','pointerId','\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<defs>','fill:','Periods\x20Back','\x22>◀</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-dp-cal-title\x22>','history:inflight','sMin','label_position','_resolveDynBatteryThreshold','round','0.33','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_y2_axis\x22\x20type=\x22checkbox\x22\x20','_normalizedBgImage','px;\x22><svg\x20width=\x22100%\x22\x20height=\x22','</div>\x0a\x20\x20\x20\x20\x20\x20</div>','_dpSynced','\x22><div\x20class=\x22sw\x22><select\x20id=\x22date_picker_position\x22>','_suppressScrollDispatch','_fillObsPlot','.e-aggregate_func','_pinchActive','log2','#95a5a6','<g\x20data-b=\x22','No\x20sum\x20statistics\x20for\x20this\x20sensor\x20—\x20use\x20avg,\x20max\x20or\x20change','Tomorrow','releasePointerCapture','deltaX','</span></div></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clearRect','_renderBatteryIcon','Y\x20Axis','now','Horizontal\x20position\x20of\x20the\x20mode\x20shortcuts\x20—\x20the\x20D/W/M/Y\x20buttons\x20and\x20the\x20calendar\x20icon\x20—\x20left,\x20center,\x20or\x20right.\x20Sharing\x20a\x20position\x20with\x20the\x20date\x20navigator\x20places\x20the\x20navigator\x20first.','graph_start','bMax','1\x203','horizonMs','clientY','last_updated','\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x223\x206\x209\x2012\x2014\x207\x2021\x2017\x22/><circle\x20cx=\x229\x22\x20cy=\x2212\x22\x20r=\x222\x22/><circle\x20cx=\x2214\x22\x20cy=\x227\x22\x20r=\x222\x22/></svg>','Colour\x20of\x20the\x20▲\x20(rising)\x20trend\x20icon.\x20Leave\x20empty\x20to\x20follow\x20the\x20theme\x20success\x20colour\x20(green).','Color\x20Thresholds','Last\x207\x20days','dominant-baseline','_renderZoomControls','height:','show_label','unknown\x20function\x20\x22','Add\x20Threshold','_ltsWarned','sgc-export-btn','Visual\x20Options','overlays','</label><input\x20id=\x22battery_low_threshold\x22\x20type=\x22text\x22\x20placeholder=\x2220\x20or\x20sensor.x\x22\x20value=\x22','_inferEnergyPeriodMode','h2n','samples','Tooltip\x20Sync','Last\x2012\x20hours','.cs','_isLiveTrackingNeeded','_dpStoreKey','target','toBlob','</option>','_teardownColorTemplates','closest','card_padding','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','state_timeline_row_height','_matrix','rgba(0,0,0,0.3)','The\x20entity\x27s\x20current\x20state\x20right\x20now,\x20independent\x20of\x20the\x20period\x20shown\x20on\x20the\x20chart.\x20The\x20other\x20values\x20all\x20describe\x20the\x20displayed\x20range.','\x22\x20data-dp-rolling-months=\x22','auto','decrease','DD/MM\x20HH:mm','matches','><span\x20class=\x22u\x22>h</span></div></div><div\x20class=\x22f\x22><label>','Step','<button\x20class=\x22tb\x20main-tb\x20','#378ADD','State\x20Row','font-weight:500;opacity:','Add\x20Entity','_computeInstanceKey','middle','#8e44ad','Horizontal\x20position\x20of\x20the\x20chart\x20shape\x20within\x20the\x20card.\x20Left\x20pins\x20it\x20to\x20the\x20left\x20edge,\x20Right\x20to\x20the\x20right\x20edge,\x20Center\x20(default)\x20keeps\x20it\x20in\x20the\x20middle.\x20Useful\x20when\x20stacking\x20the\x20chart\x20next\x20to\x20other\x20content\x20or\x20for\x20visual\x20balance.','Draws\x20a\x20min/max\x20shaded\x20band\x20behind\x20the\x20line\x20showing\x20the\x20value\x20range\x20within\x20each\x20aggregation\x20bucket.\x20The\x20line\x20shows\x20the\x20average\x20while\x20the\x20band\x20shows\x20how\x20much\x20the\x20value\x20fluctuated.','.e-needle_color-picker','Month\x20of\x20year\x20(1-12)','May','sgc-hover-dots','whenDefined','solo','sgc-axis-tick\x20sgc-y-tick','\x20{…}','label_font_size','first\x20reading\x20can\x20be\x20a\x20pre-reset\x20tail','sgc-stl-cell','\x22\x20data-tc=\x22general\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x22\x20style=\x22margin-bottom:6px\x22><div\x20style=\x22display:flex;flex-direction:column;min-width:0\x22><label\x20style=\x22font-size:11.5px;min-height:14px;margin:5px\x200\x22></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-enabled\x22\x20type=\x22checkbox\x22\x20','_normalizeCompare','</defs>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22','startDist','_items','\x20ignored:\x20use\x20hour,\x202h…12h,\x20date,\x20week,\x20month\x20or\x20year,\x20and\x20not\x20while\x20the\x20card\x20is\x20grouped\x20by\x20raw.','_instanceId','<button\x20class=\x22sgc-dp-toggle\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>','Print\x20each\x20cell\x27s\x20value\x20inside\x20the\x20heatmap\x20or\x20calendar\x20boxes.\x20Turn\x20off\x20for\x20a\x20cleaner\x20color-only\x20grid\x20-\x20exact\x20values\x20stay\x20available\x20in\x20the\x20hover\x20tooltip.','Grid','A\x20−\x20B','How\x20to\x20bucket\x20raw\x20history\x20data\x20before\x20aggregation.\x20Interval\x20=\x20equal-width\x20buckets\x20across\x20the\x20full\x20time\x20range\x20(most\x20common).\x20Hour\x20=\x20one\x20bucket\x20per\x20clock\x20hour.\x20Date\x20=\x20one\x20per\x20calendar\x20day.\x20Week\x20=\x20one\x20per\x20calendar\x20week\x20(Mon–Sun).\x20Month\x20=\x20one\x20per\x20calendar\x20month.\x20Raw\x20=\x20no\x20bucketing\x20at\x20all:\x20every\x20recorded\x20sample\x20is\x20drawn\x20at\x20its\x20exact\x20timestamp\x20—\x20ideal\x20for\x20step\x20graphs\x20of\x20binary/state\x20sensors\x20where\x20each\x20transition\x20matters.','_priceSeq','week','_isFieldRelevantForMode','last_12m','><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:transparent\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>','rgba(0,0,0,0.55)','</text>','_extendWindowForForecastData','teal','thr-col','_onDatePickerMode','resolve','_pinnedMode','ceil','</option></select></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22\x20','sgc-ann-threshold','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&#39;s\x20language\x20as\x20well.\x20Entity\x20names,\x20units\x20and\x20your\x20own\x20labels\x20are\x20never\x20translated.\x20State\x20words\x20(on/off,\x20heating...)\x20come\x20from\x20HA&#39;s\x20own\x20translations\x20and\x20follow\x20the\x20viewer&#39;s\x20profile\x20language.\x20Missing\x20translations\x20fall\x20back\x20to\x20English.','Max','.e-risefall_stable','exec','Title\x20text\x20shown\x20at\x20the\x20top\x20of\x20the\x20card.\x20Leave\x20empty\x20to\x20hide\x20the\x20header\x20row\x20entirely.','rise_color','Shows\x20a\x20▲▼⯇⯈\x20icon\x20next\x20to\x20the\x20state\x20value\x20indicating\x20whether\x20the\x20value\x20is\x20trending\x20up,\x20down,\x20or\x20is\x20stable.\x20Direction\x20is\x20calculated\x20over\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.','connectedCallback','</option><option\x20value=\x22yesterday\x22\x20','needle_color','_structureDirty','Value\x20Size','entityIdx','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_live\x22\x20type=\x22checkbox\x22\x20','precision','call-service','Rise/Fall\x20Colors','sgc-grid-line\x20sgc-x-grid-line','defineProperty','px;\x22>\x0a\x20\x20\x20\x20\x20\x20<canvas\x20class=\x22sgc-pie-canvas\x22\x20style=\x22width:100%;height:100%;display:block\x22></canvas>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-pie-tooltip\x22></div>\x0a\x20\x20\x20\x20</div>','reason','intlabel','.cmp-row','var(--primary-text-color)','_buildStackState','Y\x20Axis\x20Range','Header\x20&\x20Icon','\x22></div><div\x20class=\x22f\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22date_picker_reset\x22\x20type=\x22checkbox\x22\x20','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_last\x22\x20type=\x22checkbox\x22\x20','sgc-user','points_per_hour','Border\x20thickness.\x20Accepts\x20a\x20number\x20(treated\x20as\x20px)\x20or\x20any\x20CSS\x20value\x20like\x202px.\x20Leave\x20empty\x20for\x20theme\x20default.','_toggleSeriesVisibility','.sgc-zoom-brush-label-right','State\x20Timeline','polygon','_animateDraw','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','</select></div></div><div\x20class=\x22f\x22></div><div\x20class=\x22f\x22></div></div>','match','subscribe_trigger','No\x20data\x20to\x20build\x20heatmap.','sMean','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-tt-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_renderIntervalPicker','_allRelevantEntitiesHaveLTS','rows','Invert\x20(Mirror)','First','meta','mixed','.e-forecast_horizon','.js?v=','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22crosshair_legend\x22\x20type=\x22checkbox\x22\x20','#26a69a','_drawAnnotationsBackground','_barHalfWidth','Forecast\x20Horizon','.e-number_format','</label><input\x20class=\x22thr-val\x22\x20type=\x22text\x22\x20value=\x22','Type','X-Axis','year','value-changed','ids','</label><input\x20class=\x22e-data_value_field\x22\x20type=\x22text\x22\x20placeholder=\x22price_per_kwh\x22\x20value=\x22','setPointerCapture','</div>','default','_exportName','show_full_period','color:var(--primary-color,#03a9f4);font-weight:700','callWS','getUTCMonth','cache','Minimum\x20for\x20the\x20Y\x20axis.\x20Prefix\x20with\x20~\x20for\x20a\x20soft\x20bound\x20(e.g.\x20~0)\x20—\x20axis\x20uses\x20this\x20value\x20when\x20data\x20stays\x20above\x20it,\x20expands\x20if\x20data\x20goes\x20lower.\x20Hard\x20bound\x20(e.g.\x200)\x20forces\x20the\x20axis\x20edge\x20regardless\x20of\x20data.\x20Also\x20accepts\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound.','1,234.56','\x22\x20stroke-width=\x220.8\x22/>','Advanced\x20Calculations','show_tooltip_total','bad\x20number','setAttribute','Font\x20size\x20in\x20pixels\x20of\x20the\x20strip\x20titles.\x20Empty\x20=\x2010.\x20Range\x206–40.\x20Longer\x20names\x20are\x20shortened\x20with\x20an\x20ellipsis\x20to\x20the\x20plot\x20width.','Points/Hour','.sgc-series','extended_window_multiplier','</label><div\x20class=\x22iu\x22><input\x20id=\x22x_axis_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2220\x22\x20step=\x221\x22\x20placeholder=\x22','--sgc-path-len','</select></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x20','point_size','Labels','[sgc]\x20window\x20of\x20~','Calendar','All\x20entities\x20are\x20outside\x20the\x20threshold\x20range','Font\x20size\x20of\x20X-axis\x20time\x20labels\x20in\x20pixels.\x20Default\x20is\x2010.','_wasVisible','%</span></div>','\x22\x20data-tab=\x22general\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22/><line\x20x1=\x2212\x22\x20y1=\x228\x22\x20x2=\x2212\x22\x20y2=\x2216\x22/><line\x20x1=\x228\x22\x20y1=\x2212\x22\x20x2=\x2216\x22\x20y2=\x2212\x22/></svg>','_collectAnnotationRefs','Draws\x20small\x20tick\x20marks\x20at\x20each\x20numeric\x20label\x20position\x20on\x20the\x20Y\x20axes.\x20Helps\x20visually\x20anchor\x20labels\x20to\x20the\x20graph\x20edge.','open','Opacity\x20of\x20the\x20now\x20line\x20(0-1).\x20Leave\x20empty\x20for\x20default\x200.3.','_wsTrackedKey','getPropertyValue','<span\x20class=\x22ds-badge\x20ds-hist\x22\x20title=\x22No\x20state_class\x20on\x20this\x20entity\x20—\x20only\x20raw\x20history\x20available\x20(typically\x20~10\x20days\x20retention).\x20For\x20longer\x20windows,\x20ask\x20the\x20entity\x27s\x20integration\x20to\x20declare\x20state_class.\x22>','card_header_letter_spacing','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22period_highlight\x22\x20type=\x22checkbox\x22\x20','_buildThresholdGradient','splice','show_legend','attrs','div','lastMin','#1c1c1c','Axis\x20Style\x20is\x20Native,\x20so\x20an\x20empty\x20field\x20follows\x20the\x20Home\x20Assistant\x20theme\x20colour.','card_shadow','</div>\x0a\x20\x20\x20\x20\x20\x20','18RfQUiN','#4A90D9','Number\x20of\x20tick\x20marks\x20(grid\x20lines\x20and\x20labels)\x20on\x20the\x20Y\x20axis.\x20Default\x20is\x204.\x20Example:\x20ticks=6\x20with\x20bounds\x2040-100\x20shows\x2040,\x2050,\x2060,\x2070,\x2080,\x2090,\x20100.','\x22><div\x20class=\x22f\x22><label>','lineTo','min_','0.55','hasOwnProperty','_lastMax','sgc-period-highlight','Moving\x20Averages','__card__','outerNegByIdx','_prevStamps','ll-custom','Last\x2090D','Colour\x20of\x20the\x20gauge\x20needle.\x20Enter\x20threshold\x20to\x20colour\x20it\x20from\x20the\x20threshold\x20bands.\x20Leave\x20empty\x20to\x20follow\x20the\x20value\x20colour\x20(threshold\x20or\x20base).','__sgcAxisFmt','_normalizeCompareList','userSpaceOnUse','&quot;','data-t','yVal','supported_features','.e-smooth','Value\x20Position','.edup','-color)','so\x20per-bucket\x20bars\x20may\x20read\x200\x20or\x20look\x20wrong.\x20For\x20counters\x20use\x20\x22change\x22\x20','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22brush_zoom\x22\x20type=\x22checkbox\x22\x20','_ctrlTickTimer','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x223\x2017\x209\x2011\x2013\x2015\x2021\x207\x22/></svg>','Shows\x20numeric\x20value\x20labels\x20on\x20the\x20left\x20(primary)\x20edge\x20of\x20the\x20graph.','.e-line_width','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>','rows\x20carry\x20no\x20sum/change\x20columns\x20(measurement\x20sensor).\x20Summing\x20means\x20is\x20','.e-show_extrema','_hasLTS','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>','down','Controls\x20how\x20this\x20entity\x20value\x20appears\x20above\x20the\x20graph.\x20On\x20=\x20numeric\x20text\x20row\x20with\x20name,\x20value\x20and\x20unit.\x20Off\x20=\x20hidden\x20entirely.','drawSa','Timeline','vals','pct','opacity','162360ueGLve','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_legend\x22\x20type=\x22checkbox\x22\x20','\x22><span\x20class=\x22u\x22>px</span></div></div></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','_renderRAF','_ensureStatMeta','</label><div\x20class=\x22iu\x22><input\x20id=\x22state_timeline_label_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2240\x22\x20step=\x221\x22\x20placeholder=\x2210\x22\x20value=\x22','Tap\x20or\x20click\x20the\x20graph\x20to\x20pin\x20a\x20crosshair\x20there:\x20the\x20tooltip\x20stays\x20on\x20screen\x20and\x20the\x20pin\x20can\x20be\x20dragged.\x20Tap\x20again\x20to\x20remove\x20it.\x20While\x20this\x20is\x20on,\x20a\x20tap\x20places\x20a\x20pin\x20instead\x20of\x20drilling\x20down.','gridColumn','_wireTooltip','Plain\x20CSS\x20applied\x20inside\x20the\x20card,\x20using\x20the\x20class\x20names\x20from\x20the\x20CSS\x20Styling\x20wiki\x20page\x20(.sgc-card,\x20.sgc-title,\x20.sgc-state-value,\x20.sgc-plot\x20…)\x20and\x20ha-card.\x20No\x20card-mod\x20needed.\x20A\x20rule\x20that\x20collides\x20with\x20a\x20card\x20option\x20set\x20above\x20(background,\x20border,\x20padding,\x20shadow,\x20header\x20colour)\x20needs\x20!important,\x20because\x20those\x20options\x20are\x20applied\x20inline.\x20Leave\x20empty\x20for\x20no\x20change.','\x22\x20data-cstc=\x22headericon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22mt8\x22><div\x20class=\x22f\x22><label>','Previous\x20period','today','h</option>','<label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20class=\x22e-damp_reset_boundary\x22\x20type=\x22checkbox\x22\x20','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-extrema_show_timestamp\x22\x20type=\x22checkbox\x22\x20','X\x20Label\x20Opacity','Strip\x20Titles','card_header_color','</label><input\x20id=\x22upper_bound_secondary\x22\x20type=\x22text\x22\x20placeholder=\x22100,\x20~100\x20or\x20sensor.x\x22\x20value=\x22','icon_size','\x22\x20data-tc=\x22advanced\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','stopPropagation','Day\x20Before','_placeTooltip','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).','_resolveTemplateText','epoch_ms','.ma-row','_refRefIds','_fillResizeObs','Line\x20Width','Value\x20Transform','ha-icon-picker','.e-trend_period_hours','Hide\x20entities\x20whose\x20value\x20is\x20above\x20this\x20threshold.\x20Pair\x20it\x20with\x20Min\x20Value\x20to\x20keep\x20a\x20band,\x20or\x20use\x20it\x20alone\x20to\x20list\x20only\x20the\x20devices\x20that\x20need\x20attention\x20—\x20e.g.\x2020\x20on\x20battery\x20levels\x20shows\x20only\x20the\x20ones\x20at\x2020%\x20or\x20lower.\x20Compared\x20against\x20the\x20absolute\x20value,\x20like\x20Min\x20Value.\x20Leave\x20empty\x20for\x20no\x20filter.','cols','_appendText','Start\x20this\x20entity\x20hidden\x20when\x20the\x20card\x20loads\x20—\x20reveal\x20it\x20by\x20clicking\x20it\x20in\x20the\x20legend.\x20Ignored\x20when\x20the\x20card-level\x20Auto\x20Hide\x20Entities\x20(Chart\x20→\x20Visual\x20Options)\x20is\x20on,\x20because\x20that\x20hides\x20everything.\x20Use\x20this\x20to\x20hide\x20only\x20some\x20entities\x20by\x20default.','var(--secondary-text-color,\x20#888)','mouseenter','ellipse','Show\x20the\x20colored\x20dot\x20next\x20to\x20this\x20entity\x20in\x20the\x20state\x20row,\x20compact\x20legend\x20and\x20tooltip.\x20Disable\x20for\x20a\x20cleaner\x20look\x20—\x20useful\x20when\x20you\x20only\x20have\x20one\x20entity,\x20or\x20when\x20color\x20thresholds\x20make\x20the\x20dot\x20color\x20no\x20longer\x20match\x20the\x20line\x20/\x20bar.','\x22><div\x20class=\x22sw\x22><select\x20id=\x22pph_picker_position\x22>','_pickerStoreKey','ents','_broadcastZoomSync','NumberFormat','_hourlyCapWarned','><div\x20class=\x22r3\x22><div\x20class=\x22f\x22><label>','_onQuerySyncRequest','Line\x20/\x20Fill\x20Color','\x20selected','rgba(0,0,0,0.35)','Nederlands','span','last\x20week','tEnd','sgc-annotations-fg','</label><div\x20class=\x22sw\x22><select\x20class=\x22cmp-layout\x22\x20','.e-point_size','12M','Avg','noLeadFill','Custom\x20color\x20for\x20Y-axis\x20labels.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable.\x20Leave\x20empty\x20to\x20use\x20theme\x20--primary-text-color.','_lastTplKey','sum','drag-over','Visual\x20preset.\x20Classic\x20=\x20full\x20pie.\x20Thick\x20=\x20wide\x20donut\x20ring.\x20Donut\x20=\x20standard\x20(default).\x20Thin\x20=\x20narrow\x20ring.\x20Center\x20Total\x20enforces\x20minimum\x20inner\x20hole.','isInteger','reverse','sgc-extrema','action','><option\x20value=\x22overlay\x22\x20','createObjectURL','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-show_second_state_as\x22\x20','deltaY','T_VERSION','_fireEntityAction',')\x22\x20fill-opacity=\x22','\x22\x20text-anchor=\x22middle\x22\x20font-size=\x2210\x22\x20fill=\x22','</label><input\x20id=\x22card_icon_image\x22\x20type=\x22text\x22\x20placeholder=\x22https://...\x22\x20value=\x22','wheel','MM/DD','</span></div></label></div><div\x20class=\x22f\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22state_strip_labels\x22\x20type=\x22checkbox\x22\x20','Today','Attribute\x20Data\x20Source','rgba(255,255,255,0.45)','\x22><span\x20class=\x22u\x22>px</span></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Font\x20size\x20of\x20Y-axis\x20numeric\x20labels\x20in\x20pixels.\x20Default\x20is\x2010.','_applyAttributeName','Clamp\x20the\x20Y\x20axis\x20to\x20fixed\x20or\x20dynamic\x20min/max\x20values.\x20Accepts\x20a\x20number\x20or\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound.','Logarithmic','toUpperCase','_dragState','Never','_sanitizeEntities','getContext','show_state','replaceWith','getSeconds','</label><div\x20class=\x22iu\x22><input\x20id=\x22gauge_span\x22\x20type=\x22number\x22\x20min=\x2290\x22\x20max=\x22360\x22\x20step=\x2210\x22\x20placeholder=\x22270\x22\x20value=\x22','period_highlight_color','</label><input\x20class=\x22e-unit\x22\x20type=\x22text\x22\x20placeholder=\x22','</label><div\x20class=\x22ci\x22><input\x20class=\x22e-extrema_bg_color\x22\x20type=\x22text\x22\x20placeholder=\x22','Jul','_computeDatePickerWindow','_onIntervalSyncEvent','clientWidth','moveTo','_visHandler','</div><div>','</label><input\x20class=\x22e-data_value_expression\x22\x20type=\x22text\x22\x20placeholder=\x22e.g.\x20(unitPrice\x20-\x20unitPriceVAT)\x20*\x20consumption\x22\x20value=\x22','chart_mode','Custom\x20label\x20format\x20for\x20the\x20PRIMARY\x20axis.\x20Overrides\x20Decimals\x20and\x20Y\x20Axis\x20Format\x20above,\x20and\x20also\x20drives\x20data\x20labels,\x20tooltip\x20values,\x20the\x20state\x20row,\x20extrema\x20and\x20the\x20average-line\x20label\x20for\x20entities\x20on\x20this\x20axis.\x20Duration\x20shorthands\x20(raw\x20value\x20converted\x20from\x20Duration\x20Unit):\x20h:mm,\x20h:mm:ss,\x20mm:ss,\x20d\x20h:mm\x20—\x20e.g.\x205400\x20s\x20with\x20h:mm\x20shows\x201:30.\x20Or\x20a\x20safe\x20{expression}\x20template:\x20numbers,\x20value,\x20+\x20-\x20*\x20/\x20%,\x20parentheses,\x20floor,\x20ceil,\x20round,\x20abs,\x20min,\x20max,\x20sqrt,\x20plus\x20pad2(x),\x20pad(x,width),\x20fixed(x,decimals).\x20Example:\x20{floor(value/3600)}:{pad2(floor(value%3600/60))}\x20turns\x205430\x20into\x201:30;\x20{fixed(value/1000,1)}\x20kW\x20turns\x202350\x20into\x202.4\x20kW.\x20No\x20JavaScript\x20is\x20executed;\x20invalid\x20formats\x20are\x20ignored.\x20Leave\x20empty\x20for\x20plain\x20numbers.','_lastDpLabel','<div\x20class=\x22sgc-wf-wrap\x22\x20style=\x22position:relative;width:100%;height:','</label><div\x20class=\x22sw\x22><select\x20class=\x22cmp-ls\x22><option\x20value=\x22dashed\x22\x20','\x22\x20placeholder=\x22#hex,\x20var(--x-color)\x20or\x20{{\x20template\x20}}\x22><input\x20class=\x22','_zoomOutBtn','\x22><span\x20class=\x22u\x22>px</span></div></div></div><label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20id=\x22gauge_show_minmax\x22\x20type=\x22checkbox\x22\x20','log10','sgc-ann-label\x20sgc-ann-band-label','</select></div></div>','url(#','600\x20','HH:mm','styles','Font\x20size\x20of\x20the\x20gauge\x20value\x20in\x20pixels.\x20Leave\x20empty\x20to\x20auto-size\x20from\x20the\x20gauge;\x20the\x20name\x20scales\x20with\x20it.','<svg\x20width=\x2716\x27\x20height=\x2716\x27\x20viewBox=\x270\x200\x2024\x2024\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x272\x27><polyline\x20points=\x276\x209\x2012\x2015\x2018\x209\x27/></svg>','more-info','Off','.sgc-grid','_flushLiveBuffer','pie_3d','</select></div></div><div\x20class=\x22csb\x22\x20','interval_picker_position','Add\x20Annotation','carry_forward_ms','angle','card_border_width','.e-legend_last','.e-show_range_band','_allSeries','\x20sgc-fill-height','</label><div\x20class=\x22iu\x22><input\x20id=\x22pie_label_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2240\x22\x20step=\x221\x22\x20placeholder=\x22','cssText','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-align_state\x22\x20','Day\x20of\x20month\x20(1-31)','e-needle_color','last_1h','Header\x20Color','_thrVals','result','Date','State\x20Strip','__default','\x20–\x20','12H','applyBandDelta','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ann-row\x22><div\x20class=\x22ann-row-header\x22\x20style=\x22margin-bottom:8px\x22><span\x20class=\x22ann-row-type\x22>','</label><div\x20class=\x22iu\x22><input\x20class=\x22e-offset\x22\x20type=\x22text\x22\x20placeholder=\x220\x20or\x20input_number.x\x22\x20value=\x22','candlestick','input[type=\x22number\x22]','pph_picker_position','Header\x20text\x20font\x20weight.\x20Accepts\x20CSS\x20keywords\x20(light/normal/bold)\x20or\x20numbers\x20(300,\x20400,\x20600,\x20700).\x20Leave\x20empty\x20for\x20theme\x20default.','boolean','Upper\x20Bound','waterfall_total','\x20.sgc-dp-shortcuts','c1x','Font\x20size\x20of\x20the\x20entity\x20name\x20in\x20the\x20state\x20row.\x20Accepts\x20CSS\x20values,\x20e.g.\x2014px.','px),\x20-50%)','sgc-line','</label><div\x20class=\x22sw\x22><select\x20id=\x22tooltip_order\x22>','linear','circle','.card-icon-color','ent','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.','Value\x20Factor','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22><div\x20class=\x22sw\x22><select\x20id=\x22interval_picker_position\x22>','</option><option\x20value=\x22last_week\x22\x20','.e-data_time_unit','Card\x20Border','\x22></div></div></div></div></div>','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-data_time_unit\x22>','<div\x20class=\x22sgc-state-color\x22\x20style=\x22background-color:','+-*/%(),','light-blue','Heatmap','auto_hide_entities','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','_tmp','</label><div\x20class=\x22iu\x22><input\x20id=\x22gauge_columns\x22\x20type=\x22number\x22\x20min=\x221\x22\x20max=\x2212\x22\x20step=\x221\x22\x20placeholder=\x22','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-points_per_hour\x22>','\x22></div><div\x20class=\x22f\x22','[sgc]\x20invalid\x20axis\x20label\x20format\x20ignored\x20(#241):','<style\x20id=\x22sgc-extras\x22>','x_grid_style','><span\x20class=\x22msl\x22></span></label></div><button\x20class=\x22ma-del\x22\x20title=\x22','sgc-qgby:','_computeGraphFingerprint','Visible\x20Modes','\x20-\x20calendar\x20modes\x20(hour,\x20date,\x20week,\x20month,\x20year)\x20regroup\x20attribute\x20arrays,\x20fixed\x20','Attribute\x20names','last_color','</label><div\x20class=\x22sw\x22><select\x20id=\x22scroll_mode\x22>','Thick','pointerType','\x22\x20data-mtab=\x22xaxis\x22>','#9b59b6','<div\x20class=\x22sgc-pie-tt-row\x22\x20style=\x22opacity:0.7;font-size:11px;border-bottom:1px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.08));padding-bottom:3px;margin-bottom:3px\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:','yl:','<div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_average\x22\x20type=\x22checkbox\x22\x20','firstChild','_overrideGroupBy','Loading…','body','<button\x20class=\x22tb\x20cs-tb\x20','__sgcDecisionHours','gauge_value_size','gsh:','Event\x20marker','duration_unit','ohlc','sgc-no-bleed','join','yes','usesTime','_effectiveAttribute','What\x20appears\x20as\x20the\x20big\x20primary\x20value\x20in\x20the\x20state\x20row.\x20State\x20(default)\x20=\x20live\x20HA\x20state.\x20Sum\x20/\x20Avg\x20/\x20Min\x20/\x20Max\x20aggregate\x20over\x20the\x20visible\x20window.\x20Last\x20/\x20First\x20=\x20latest\x20or\x20earliest\x20value\x20in\x20the\x20entity\x27s\x20data.\x20All\x20options\x20work\x20in\x20every\x20chart\x20mode,\x20but\x20Last\x20/\x20First\x20are\x20most\x20meaningful\x20for\x20time-based\x20modes\x20(Timeline,\x20Scatter,\x20State\x20Timeline)\x20—\x20in\x20Pie,\x20Ranking,\x20Heatmap\x20and\x20similar\x20modes\x20they\x20still\x20reflect\x20the\x20raw\x20series\x20endpoints,\x20not\x20any\x20visible\x20slice\x20or\x20cell.\x20Values\x20display\x20as\x20clean\x20numbers\x20with\x20no\x20SUM/AVG\x20label\x20prefix.','cloneNode','polararea','date','%</span>','_calBarPositions','gridAutoFlow','breakGapsInCalendar','<div\x20class=\x22sgc-pie-tt-row\x22','\x0a\x20\x20\x20\x20\x20\x20<style\x20id=\x22sgc-base\x22>','</div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22><div\x20class=\x22r2\x22><div\x20class=\x22f\x22><label>','numeric','_clearPins','_dpRangeStart','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_y_axis\x22\x20type=\x22checkbox\x22\x20','path','Visibility','.ecd','Y\x20Grid\x20Color','Band','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.','text','position:relative;flex:1.2;min-width:0','_getDataSourceForRange','Graph\x20Type','z_index','tap','\x22/>','<div\x20class=\x22sgc-spark-info\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-spark-name\x22>','Download\x20CSV','Sequential','_schedulePriceRefetch','</label><textarea\x20class=\x22e-data_vars\x22\x20rows=\x222\x22\x20placeholder=\x22mwst:\x20input_number.vat_rate&#10;gp:\x20input_number.base_price\x22\x20style=\x22width:100%;padding:8px\x2010px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:12px;font-family:monospace;resize:vertical;outline:none\x22>','SELECT','dense','Opacity\x20of\x20vertical\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.','<div\x20style=\x22margin-top:8px;grid-column:1\x20/\x20-1;width:100%\x22><label>','_priceRefIds','.sgc-card::before{content:\x27\x27;position:absolute;inset:0;z-index:0;background-image:url(\x27','Chart','</label><div\x20class=\x22iu\x22><input\x20class=\x22e-point_size\x22\x20type=\x22number\x22\x20min=\x220.5\x22\x20max=\x2220\x22\x20step=\x220.5\x22\x20placeholder=\x22auto\x22\x20value=\x22','sgc-line\x20sgc-seg-line','.ha-icon-picker-wrap[data-card-icon]','current\x20year','day_of_month','_renderHeader','End','State\x20(live)','show_state_last','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20data\x20for\x20histogram.</div>','_dpInitialSyncDone','total_increasing','px)','Year','<span\x20class=\x22sgc-legend-pin\x22\x20data-pin-for=\x22','LTS','<div\x20class=\x22sgc-al\x20align-','sgc-ctl-export','function','Last\x20Year','date_picker_nav_position','\x22\x20stroke-width=\x22','Tooltip\x20Name','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-graph_type\x22>','y_axis','_dpMode','_downloadBlob','_applyFillHeight','data_vars','Data\x20Attribute','var(--success-color,\x20#26a69a)','sgc-moving-averages','primary','_syncHandler','_popZoomHistory','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_export\x22\x20type=\x22checkbox\x22\x20','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-ref_op\x22\x20','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.','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22include_attribute_name\x22\x20type=\x22checkbox\x22\x20','lower_bound_secondary','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>','Inner\x20spacing\x20of\x20the\x20card.\x20Accepts\x20a\x20single\x20number\x20(px)\x20or\x20any\x20CSS\x20shorthand\x20like\x208px\x2016px\x20or\x200.\x20Leave\x20empty\x20for\x20theme\x20default.','Line','diffSeries','hist','system','_sumEmptyWarned','<span><span\x20class=\x22sgc-detail-stat-label\x22>','name_size','Corner\x20Radius','Brush\x20Zooming','_handleCalendarDayPick','\x22\x20fill-opacity=\x22','bar_spacing','\x22\x20data-tab=\x22advanced\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M14.7\x206.3a1\x201\x200\x200\x200\x200\x201.4l1.6\x201.6a1\x201\x200\x200\x200\x201.4\x200l3.77-3.77a6\x206\x200\x200\x201-7.94\x207.94l-6.91\x206.91a2.12\x202.12\x200\x200\x201-3-3l6.91-6.91a6\x206\x200\x200\x201\x207.94-7.94l-3.76\x203.76z\x22/></svg>','auto_scale_rules','Border\x20Color','_renderers','barThickness','YYYY-MM','date_picker_shortcuts_position','toString','Smooths\x20the\x20line\x20using\x20cubic\x20Bezier\x20curves\x20between\x20data\x20points.\x20Disable\x20for\x20sharp\x20angular\x20lines\x20that\x20show\x20exact\x20step\x20transitions\x20between\x20values.','<div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22tooltip_match_axis\x22\x20type=\x22checkbox\x22\x20','bottom','dataset','_boundRefIds','_cardTab','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20','define','bar','animate_graph','device_class','controller','Alphabetic','Show\x20Bounds','Animate','isArray','state_timeline_label_font_size','pins','lastMax','\x22\x20value=\x22','rgba(255,255,255,0.06)','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20','gby','string\x20argument','e-point_colors','find','asr-pph','breakOnNull','card_icon','.asr-add','state_strip','\x22><span\x20class=\x22u\x22>×</span></div></div><div\x20class=\x22f\x22></div><div\x20class=\x22f\x22></div></div>','.sgc-animated','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.','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp\x20position-','sun.sun','Tooltip\x20Total','</label><input\x20class=\x22e-ref_entity\x22\x20type=\x22text\x22\x20placeholder=\x22sensor.outdoor_temperature\x22\x20value=\x22','filter','then','Live','_spanGby','Same\x20as\x20Min\x20Y\x20Range\x20but\x20for\x20the\x20secondary\x20(right)\x20Y\x20axis.','sgc-dp-center-abs','pow','test','\x22\x20data-mtc=\x22yaxis\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_renderExportButton','_fillFallbackHostH','URL','sgc-ann-label\x20sgc-ann-threshold-label','Select\x20which\x20time\x20interval\x20buttons\x20to\x20show.\x20Leave\x20all\x20selected\x20for\x20the\x20full\x20set.\x20Deselect\x20intervals\x20to\x20keep\x20the\x20picker\x20compact\x20on\x20mobile.','#cccccc','_hiddenEntities','\x20→\x20','rgba(0,0,0,0.5)','[sgc]\x20color\x20template\x20subscribe\x20failed','Last\x2012\x20Months','.sgc-al-wrap','</label><input\x20class=\x22e-icon_size\x22\x20type=\x22text\x22\x20placeholder=\x2218px\x22\x20value=\x22','</label><input\x20id=\x22card_background_image\x22\x20type=\x22text\x22\x20placeholder=\x22/local/photo.jpg\x20or\x20https://...\x22\x20value=\x22','getTotalLength','_setupVisibilityWatch','Attribute\x20List','stroke-dasharray:none','diff','setProperty','<ha-icon\x20class=\x22sgc-header-icon\x22\x20icon=\x22','\x22\x20produced\x20no\x20usable\x20data\x20-\x20the\x20series\x20is\x20left\x20empty\x20rather\x20than\x20plotting\x20\x22','Cell\x20Values','Font\x20size\x20of\x20the\x20card\x20title\x20and\x20battery\x20icon.\x20The\x20battery\x20icon\x20and\x20percentage\x20text\x20scale\x20proportionally\x20with\x20this\x20value.\x20Accepts\x20any\x20CSS\x20value\x20like\x2016px\x20or\x201.2em.','points','startAngle','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>','\x22\x20width=\x2210\x22\x20height=\x22','area','.sgc-pie-container','clipPath','Managed\x20by\x20YAML\x20template','center','[sgc]\x20update\x20failed','style','Y2\x20Tick\x20Format','\x22use\x20strict\x22;\x20','fire-dom-event','num','price_attribute','_haCMap','\x22\x20stroke-width=\x221.2\x22\x20rx=\x221.5\x22/>','YYYY-MM-DD\x20HH:mm','unavailable','clientHeight','.sgc-dp-prev','epoch_seconds','.e-price_attribute','X\x20Ticks','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ea\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22etb\x22\x20data-action=\x22toggle\x22><svg\x20width=\x2216\x22\x20height=\x2216\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><polyline\x20points=\x226\x209\x2012\x2015\x2018\x209\x22/></svg></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22edup\x22\x20data-action=\x22duplicate\x22\x20title=\x22','_zoomGeom','stroke=\x22url(#','</span></div></label></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','_coerceColor','border-color:transparent;background:','<div\x20class=\x22fh\x20mt4\x22\x20style=\x22font-size:11px;color:var(--warning-color,#e0a800);opacity:0.9\x22>','_cacheSet','Localization','axis_style','Gauge\x20Range','<div\x20class=\x22sgc-header\x22>','Delta','var(--primary-color,\x20#4A90D9)','.e-extrema_bg_color','.fg,\x20.fg0','trend_up_color','Reset\x20Button','Energy\x20Date\x20Sync','.e-hide_name','_setupColorTemplates','[data-dp-rolling-days],[data-dp-rolling-months]','error','X\x20Grid\x20Style','_scheduleLiveFlush','unknown_command','%27','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-aggregate_func\x22>','YYYY-MM-DD','getConfigElement','Mar','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','state_strip_height','entity','#010203','minute','create','.ann-add','sgc-plot-clip-','Pts/h','\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</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Radius\x20of\x20the\x20data\x20point\x20circles\x20in\x20pixels.\x20Leave\x20empty\x20for\x20automatic\x20sizing\x20based\x20on\x20Line\x20Width.\x20Also\x20sets\x20the\x20dot\x20size\x20in\x20scatter\x20and\x20radar\x20modes.','\x22\x20data-dp-day=\x22','_renderMatrixChart','Group','Draws\x20small\x20tick\x20marks\x20at\x20each\x20time\x20label\x20position\x20on\x20the\x20X\x20axis.\x20Helps\x20visually\x20anchor\x20labels\x20to\x20the\x20graph\x20edge.','sgc-axis-label\x20sgc-y-label','add','\x22></div></div></div>','<span\x20class=\x22sgc-title\x22\x20style=\x22','<div\x20class=\x22sgc-stub\x22>','_io','per','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_data_labels\x22\x20type=\x22checkbox\x22\x20','Raw\x20(no\x20grouping)','Add\x20Moving\x20Average','Jun','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_date_picker\x22\x20type=\x22checkbox\x22\x20','rgba(0,0,0,0.75)','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_tooltip_total\x22\x20type=\x22checkbox\x22\x20','Stack\x20Group','_drawBandAnnotation','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','_expandCompareGhosts','.e-tap-action-fb','\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','rgba(255,255,255,0.08)','now_line_color','Group\x20By\x20Picker','dotted','</option><option\x20value=\x22last_month\x22\x20','Gradient','[id]','stroke=\x22','(state_class\x20not\x20set):\x20','_onDatePickerJumpToCurrent','</label><div\x20class=\x22sw\x22><select\x20id=\x22group_by\x22>','_refreshPriceSeries','classList','Crosshair\x20Pins','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.','parse','sgc-dp:','changeDiffSeries','warn','Center\x20Label\x20Color','_drawDataLabels','<label\x20style=\x22font-size:11.5px;font-weight:500;color:var(--ts);margin-bottom:4px;letter-spacing:.02em\x22>','Scatter','unknown','\x22><input\x20id=\x22y_axis_color_pick\x22\x20type=\x22color\x22\x20value=\x22','trend_stable_color','var(--divider-color,\x20rgba(127,127,127,.28))','The\x20value\x20at\x20the\x20END\x20of\x20the\x20gauge\x20arc\x20(the\x20100%\x20end).\x20Accepts\x20a\x20number,\x20a\x20~soft\x20bound,\x20or\x20an\x20entity\x20ID.\x20Default\x20100.','Gauge\x20Columns','false','Name\x20of\x20the\x20time\x20field\x20in\x20each\x20array\x20item.\x20Default:\x20start_time.','show_x_ticks','histogram','groupExtremesByKey','_handleEnergyDate','_edStatesSig','tomorrow','\x20sgc-x-date-label','_applyDatePickerRolling','unknown\x20function\x20','history','Adds\x20small\x20zoom\x20in,\x20zoom\x20out\x20and\x20reset\x20buttons\x20to\x20the\x20top\x20right\x20of\x20the\x20chart.\x20Each\x20click\x20halves\x20or\x20doubles\x20the\x20visible\x20range\x20around\x20its\x20centre;\x20the\x20reset\x20button\x20only\x20appears\x20once\x20you\x20have\x20zoomed\x20or\x20drilled\x20in,\x20and\x20returns\x20the\x20chart\x20to\x20its\x20full\x20window.\x20Works\x20alongside\x20drag\x20and\x20double-click\x20zooming,\x20and\x20is\x20handy\x20on\x20touch\x20screens\x20where\x20dragging\x20needs\x20a\x20long\x20press.','</label><div\x20class=\x22sw\x22><select\x20id=\x22chart_align\x22>',';pointer-events:none','Radar\x20chart\x20requires\x20at\x20least\x203\x20entities','Ranking','\x22\x20y=\x22','Calendar\x20periods','_scheduleUpdate','</svg><div\x20class=\x22sgc-pie-tooltip\x22></div></div>',');pointer-events:none;border-radius:inherit}','Start\x20every\x20entity\x20hidden\x20when\x20the\x20card\x20loads\x20—\x20the\x20plot\x20begins\x20empty\x20and\x20you\x20reveal\x20just\x20the\x20series\x20you\x20need\x20by\x20clicking\x20them\x20in\x20the\x20legend\x20or\x20detail\x20legend.\x20Reveals\x20stick\x20for\x20the\x20session;\x20entities\x20added\x20later\x20also\x20start\x20hidden.\x20Best\x20paired\x20with\x20Compact\x20Legend\x20so\x20there\x20is\x20something\x20to\x20click.','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','Nov','\x20>\x20','getBoundingClientRect','_pins','_resolvedTemplateColors','Y\x20Axis\x20Ticks','history/period/','_applyModeVisibility','\x22></span>','pos','\x22\x20style=\x22font-family:monospace;font-size:11px\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','catch','_computeYBounds','</label><input\x20id=\x22y2_axis_format\x22\x20type=\x22text\x22\x20placeholder=\x22h:mm\x20or\x20{expr}\x22\x20value=\x22',';height:','_aggregate','concat','_renderYAxisLabels','_energyUnsub','name_position','and\x20may\x20show\x20period\x20means\x20instead\x20of\x20true\x20endpoints.','_eT','<span\x20class=\x22sgc-state-second\x22','Yesterday','One\x20or\x20more\x20simple\x20moving-average\x20lines\x20for\x20this\x20entity.\x20Each\x20averages\x20the\x20last\x20N\x20buckets\x20—\x20the\x20period\x20is\x20in\x20buckets,\x20and\x20the\x20bucket\x20size\x20comes\x20from\x20Points/Hour\x20or\x20Group\x20By.\x20Needs\x20at\x20least\x20N\x20buckets\x20loaded:\x20if\x20a\x20long\x20period\x20(e.g.\x2026)\x20doesn\x27t\x20draw\x20on\x20a\x20short\x20window,\x20raise\x20Hours\x20to\x20Show\x20(optionally\x20with\x20Max\x20Visible\x20Interval\x20to\x20keep\x20the\x20view\x20narrow).\x20Averages\x20the\x20close\x20for\x20candlesticks,\x20otherwise\x20the\x20bucket\x20value;\x20uses\x20the\x20entity\x27s\x20own\x20Y\x20axis.','_lastColorKey','touches','accent','Align','attribute_list_position','External\x20statistic\x20—\x20only\x20published\x20to\x20the\x20statistics\x20database.','customEnd','_cardVisibleNow','tagName','Line\x20pattern\x20for\x20vertical\x20(X-axis)\x20grid\x20lines.\x20Solid,\x20Dashed,\x20Dotted,\x20or\x20Long\x20Dash.\x20Or\x20a\x20custom\x20SVG\x20stroke-dasharray\x20like\x206\x202\x202\x202.','fontFamily','</label><input\x20id=\x22graph_end_hour\x22\x20type=\x22text\x22\x20placeholder=\x2222\x20or\x20sensor.x\x22\x20value=\x22','sgc-card','\x22\x20data-cstc=\x22styling\x22><div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-state_adaptive_color\x22\x20type=\x22checkbox\x22\x20','Auto\x20Scale','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\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','canvas','butt','A\x20÷\x20B','_historyNet','closePath','sgc-thrf-','time_format','Opacity\x20of\x20Y-axis\x20numeric\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.65.','Reset','Gap\x20between\x20bar\x20columns\x20in\x20pixels.\x20Applies\x20only\x20to\x20bar-type\x20entities.\x20Increase\x20for\x20a\x20more\x20spaced-out\x20look,\x20decrease\x20for\x20denser\x20bars.','c1y','Renders\x20a\x20flat\x20horizontal\x20reference\x20line\x20at\x20the\x20entity\x27s\x20current\x20state\x20value\x20instead\x20of\x20historical\x20data.','detail','xaxis','box','yellow','date_picker_default_mode','\x20font-weight=\x22600\x22','[data-pin-for]','.main-tb','.e-icon_color-picker','Time-shift\x20the\x20plotted\x20data\x20along\x20the\x20X-axis.\x20Positive\x20(e.g.\x2024)\x20shifts\x20data\x20forward\x20—\x20for\x20forecast\x20sensors\x20whose\x20state\x20represents\x20T+N\x20hours\x20ahead.\x20Negative\x20(e.g.\x20-24)\x20shifts\x20data\x20backward\x20—\x20useful\x20with\x20attribute-based\x20forecast\x20data\x20to\x20overlay\x20tomorrow\x27s\x20forecast\x20onto\x20today.\x20Leave\x20empty\x20(or\x200)\x20to\x20disable.\x20Independent\x20from\x20Offset\x20—\x20both\x20can\x20be\x20combined.','_mountCanvas','#3498db','card_header_size','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','optStats','[data-index=\x22','Fades\x20the\x20fill\x20area\x20from\x20the\x20entity\x20color\x20at\x20the\x20top\x20down\x20to\x20transparent\x20at\x20the\x20bottom.\x20Disable\x20for\x20a\x20flat\x20solid\x20fill.','trim','sgc-plot-clip','data_labels_font_size','Span','_cssPath','gauge','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>','sgc-hours:','Custom\x20color\x20for\x20the\x20X-axis\x20labels.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default\x20(--secondary-text-color).','auto_hide','--card-background-color','scatter','color:#378ADD;background:white;font-weight:700;padding:2px\x206px;border:1px\x20solid\x20#378ADD;border-radius:0\x203px\x203px\x200','Dec','_formatAxisStateLabel','Daily\x20start\x20hour\x20filter.\x20Plain\x20number\x20=\x20absolute\x20clock\x20hour\x20(6\x20=\x2006:00,\x206.5\x20=\x2006:30).\x20Prefix\x20with\x20+\x20or\x20-\x20for\x20relative\x20to\x20NOW\x20(+1\x20=\x20one\x20hour\x20from\x20now,\x20-0.5\x20=\x2030\x20min\x20ago)\x20—\x20in\x20hand-written\x20YAML\x20these\x20must\x20be\x20quoted.\x20Alternatively\x20use\x20now,\x20now+1,\x20now-0.5\x20which\x20are\x20YAML-safe.\x20Also\x20accepts\x20entity\x20ID\x20(sensor.sunrise_hour)\x20for\x20dynamic\x20values.','Card\x20Styling','Check\x20the\x20chart_mode\x20value.\x20The\x20YAML\x20config\x20is\x20preserved.','Language','_resolveCssColor','Native\x20(Home\x20Assistant)','</label><div\x20class=\x22iu\x22><input\x20id=\x22pie_center_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2260\x22\x20step=\x221\x22\x20placeholder=\x22','sgc-controller','TOOLTIP_NAME','>\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','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.','default_interval','_drawEventAnnotation','set','YYYY','has_sum','/local/','color:white;background:#378ADD;font-weight:700;padding:2px\x206px;border-radius:3px\x200\x200\x203px','<div\x20class=\x22sgc-hg-wrap\x22\x20style=\x22position:relative;width:100%;height:','endAngle','_beginRender','url(#sgc-stl-label-clip)','applyPriceToSeries','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><line\x20x1=\x2212\x22\x20y1=\x2220\x22\x20x2=\x2212\x22\x20y2=\x2210\x22/><line\x20x1=\x2218\x22\x20y1=\x2220\x22\x20x2=\x2218\x22\x20y2=\x224\x22/><line\x20x1=\x226\x22\x20y1=\x2220\x22\x20x2=\x226\x22\x20y2=\x2216\x22/></svg>','_isZooming','_drawRangeBand','<span\x20class=\x22sgc-state-value\x22','.e-extrema_color','touchmove','button','</textarea></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','Name\x20Position','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Icon\x20Size','scale','show_graph','abandoned','[sgc]\x20attr\x20update\x20failed','_tail','placeholder2','Statistic\x20ID\x20set\x20—\x20uses\x20long-term\x20statistics.','entity_id','token','</label><div\x20class=\x22sw\x22><select\x20id=\x22state_layout\x22>','card_background_color','list','_lastPadB','</div></div><div\x20class=\x22ma-list\x22>','Hours','pminPct','fetchStatistics','style=\x22opacity:.35;pointer-events:none\x22','_maybeWarnMissingLTS','#727272','heatmap','</div><label\x20class=\x22ms\x22><input\x20class=\x22e-thr_enabled\x22\x20type=\x22checkbox\x22\x20','Sync\x20with\x20HA\x20Energy\x20date\x20picker.\x20Cannot\x20be\x20used\x20with\x20Date\x20Picker.','_color','Sat','paint-order:stroke;stroke:var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c));stroke-width:3px;stroke-linejoin:round;','No\x20data','last','\x20aria-label=\x22','\x20records\x20history\x20at\x20a\x20very\x20high\x20rate;\x20switching\x20it\x20to\x20the\x20statistics\x20source\x20for\x20performance.\x20Set\x20data_source:\x20history\x20on\x20the\x20entity\x20to\x20keep\x20raw\x20ticks.','To\x20switch\x20it\x20live\x20from\x20a\x20helper,\x20fill\x20Enabled\x20Follows\x20below\x20—\x20the\x20entity\x20is\x20then\x20fetched\x20as\x20usual\x20and\x20only\x20shown\x20or\x20hidden.','\x20-\x20update\x20both\x20together\x20and\x20hard-refresh\x20(Ctrl+F5)\x20so\x20the\x20browser\x20drops\x20the\x20cached\x20copy;\x20missing\x20keys\x20will\x20show\x20in\x20English\x20until\x20then.','str','solid','_tooltipAbort','col','</label><input\x20class=\x22e-value_transform\x22\x20type=\x22text\x22\x20placeholder=\x22e.g.\x20return\x20x\x20-\x20first\x22\x20value=\x22','\x20/\x20','pink','unexpected\x20token\x20\x22','.e-show_color_dot','.e-name_position','1\x20/\x20-1','\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\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','atan2','maSeries','true','Horizontal\x20alignment\x20of\x20the\x20compact\x20legend.','show_average','undefined','fillText','_refWarned','rgba(','\x22\x20data-panel=\x22entities\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-header\x22\x20data-toggle=\x22entities\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-icon\x22><svg\x20width=\x2218\x22\x20height=\x2218\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22><path\x20d=\x22M17\x2021v-2a4\x204\x200\x200\x200-4-4H5a4\x204\x200\x200\x200-4\x204v2\x22/><circle\x20cx=\x229\x22\x20cy=\x227\x22\x20r=\x224\x22/><path\x20d=\x22M23\x2021v-2a4\x204\x200\x200\x200-3-3.87\x22/><path\x20d=\x22M16\x203.13a4\x204\x200\x200\x201\x200\x207.75\x22/></svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-title\x22>','histogram_bins','_buildSecondStateHtml','subscribeEvents','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22logarithmic\x22\x20type=\x22checkbox\x22\x20','ha-selector','></ha-icon></span>','state_map','_dvxWarned','sgc-datepicker-sync-request','change_ignore_zero','Corner\x20radius\x20of\x20bars\x20in\x20pixels.\x20Leave\x20empty\x20for\x20automatic\x20(up\x20to\x205\x20px,\x20never\x20more\x20than\x20the\x20bar\x20allows).\x200\x20=\x20square\x20corners.\x20In\x20stacked\x20charts\x20only\x20the\x20outer\x20end\x20of\x20each\x20stack\x20is\x20rounded.','rb:','bMin','Hide\x20on\x20Load','sgc-grid-line\x20sgc-y-grid-line','[class*=\x22e-\x22]','_fillHeightOn','_drillWindow','[statistics-graph-chart-card]\x20translations\x20are\x20v','opacity:1','y_grid_width','graph_start_hour','\x20must\x20have\x20\x22entity\x22\x20or\x20\x22statistic_id\x22','_barCenters','toggle','_findEnergyCollection','Pie\x20Style','Left','First\x20month\x20of\x20the\x20Year\x20period\x20for\x20the\x20date\x20picker\x20and\x20graph_start:\x20year.\x20January\x20(the\x20default)\x20keeps\x20the\x20calendar\x20year;\x20July\x20makes\x20the\x20Year\x20run\x20from\x201\x20July\x20to\x2030\x20June,\x20the\x20header\x20reads\x202026/27,\x20the\x20arrows\x20step\x20by\x20that\x20period,\x20and\x20compare:\x20last_year\x20lines\x20up\x20with\x20it.\x20Month\x20and\x20week\x20periods,\x20group_by\x20buckets\x20and\x20the\x20axis\x20are\x20not\x20affected.','bool','_cacheGet','</select></div></div></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-thr_last_color\x22\x20type=\x22checkbox\x22\x20','<span\x20class=\x22sgc-state-name\x22','<span\x20class=\x22tip-wrap\x22\x20tabindex=\x22-1\x22><svg\x20class=\x22tip-icon\x22\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22><circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22/><line\x20x1=\x2212\x22\x20y1=\x2216\x22\x20x2=\x2212\x22\x20y2=\x2212\x22/><line\x20x1=\x2212\x22\x20y1=\x228\x22\x20x2=\x2212.01\x22\x20y2=\x228\x22/></svg><span\x20class=\x22tip-box\x22>','<div\x20class=\x22ln\x22>','label_opacity','.e-show_extrema_min','Period\x20Highlight','\x22\x20data-mtab=\x22yaxis\x22>','\x22\x20type=\x22text\x22\x20value=\x22','\x22\x20is\x20not\x20applied\x20to\x20the\x20attribute\x20data\x20source\x20on\x20','\x22><input\x20id=\x22x_axis_color_pick\x22\x20type=\x22color\x22\x20value=\x22','</label><input\x20class=\x22e-state_size\x22\x20type=\x22text\x22\x20placeholder=\x2213px\x22\x20value=\x22','[sgc]\x20value_transform\x20produced\x20non-numeric\x20probe:','unexpected\x20end','<stop\x20offset=\x22100%\x22\x20stop-color=\x22','quadraticCurveTo','\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20','\x27\x20on\x20the\x20line\x22><input\x20class=\x22ma-lbl\x22\x20type=\x22checkbox\x22\x20','_makeEntityBlank','<div\x20class=\x22sgc-tt-row\x20sgc-tt-delta\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22visibility:hidden\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>Δ</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22\x20style=\x22color:','dp-in-range','.cmp-layout','trend_down_color','clampLeft','left','Color\x20of\x20the\x20individual\x20data\x20point\x20dots\x20(requires\x20Points\x20to\x20be\x20enabled).\x20Enter\x20threshold\x20to\x20color\x20each\x20dot\x20based\x20on\x20its\x20value\x20against\x20the\x20thresholds.','.sgc-ip-btn','_exportPng','[statistics-graph-chart-card]\x20group_by\x20\x22','TL_SC','_liveFlushTimer','unexpected\x20character\x20\x22','hard','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_points\x22\x20type=\x22checkbox\x22\x20','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-name_position\x22\x20','</label><input\x20class=\x22e-risefall_increase\x22\x20type=\x22color\x22\x20value=\x22','meter_period','hours_to_show','Bottom\x20Right','\x20Z\x22\x20fill=\x22','\x22><input\x20id=\x22x_axis_date_color_pick\x22\x20type=\x22color\x22\x20value=\x22','var(--tx)','\x20C\x20','parentElement','preventDefault','<div\x20class=\x22sgc-error\x22>Render\x20error:\x20','My\x20annotation','#2980b9','.e-line_style','</label><div\x20class=\x22iu\x22><input\x20id=\x22now_line_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x220.3\x22\x20value=\x22','txt','ranking_max_value','wrap','><option\x20value=\x22solid\x22\x20','.e-value_transform','trailing\x20tokens','btn','><span\x20class=\x22msl\x22></span></label></div><div\x20class=\x22r2\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>','.e-change_ignore_zero','.sgc-dp-label','price_per_kwh','fromCharCode','statistics-graph','ma-period','_calendarDiffNeedsHourly','A\x20chart-less\x20date\x20and\x20interval\x20controller\x20that\x20drives\x20every\x20Statistics\x20Graph\x20Chart\x20Card\x20on\x20the\x20page','show_fill','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20mtc\x20','sgc-zoom-sync','_hideSyncedTooltip','.sgc-y-axis-sticky','string','#00bcd4','Roundness\x20of\x20the\x20card\x20corners.\x20Accepts\x20a\x20number\x20(treated\x20as\x20px)\x20or\x20any\x20CSS\x20value\x20like\x2012px,\x201rem,\x200.\x20Leave\x20empty\x20for\x20theme\x20default.','\x22\x20data-tc=\x22appearance\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serializeToString','\x22></div></div></div></div>','sync_group','show_timestamp','/3)</div>','.ann-source','maxRadius','#888','getItem','toLocaleString','Basic','0.3','_sgcExtremaBound','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','\x22\x20data-tc=\x22data\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','last_changed','_fpForceExact','</label><input\x20class=\x22ma-col\x22\x20type=\x22color\x22\x20value=\x22','close','_drillUp','</label><div\x20class=\x22sw\x22><select\x20id=\x22y_grid_style\x22>','_ioVisible','.e-name_size','_aggWarned','data-pin',':00','dragstart','Mon','_buildStateRowHtml','sgc-ann-label\x20sgc-ann-span-label','unexpected\x20trailing\x20token\x20\x22','cyan','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','pie_label_format','.sgc-mode-off','display:block;width:100%','getEnergyDataCollection','\x22><input\x20id=\x22now_line_color_pick\x22\x20type=\x22color\x22\x20value=\x22','state_size','background:','.sgc-plot-wrap','_brushArmed','_subscribeEvents','Action','xmlns','toLocaleTimeString','All\x20cards','_annotationLabelOpacity','</label><input\x20id=\x22card_icon_size\x22\x20type=\x22text\x22\x20placeholder=\x2222px\x22\x20value=\x22','[sgc]\x20annotation\x20history\x20fetch\x20failed','card_border_radius','formatEntityState','\x0a\x20\x20:host\x20{\x20display:\x20block;\x20}\x0a\x20\x20ha-card\x20{\x0a\x20\x20\x20\x20padding:\x2016px;\x0a\x20\x20\x20\x20position:\x20relative;\x20/*\x20anchors\x20the\x20export\x20button\x20to\x20the\x20card\x27s\x20top-right\x20*/\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color,\x20#212121);\x0a\x20\x20\x20\x20font-family:\x20var(--primary-font-family,\x20Roboto,\x20sans-serif);\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20border-radius:\x20var(--ha-card-border-radius,\x2012px);\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20}\x0a\x20\x20.sgc-header\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x208px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-header\x20.sgc-title-wrap\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x208px;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20\x20\x20flex:\x201\x201\x20auto;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20}\x0a\x20\x20.sgc-header\x20.sgc-title-wrap.pos-left\x20\x20\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-header\x20.sgc-title-wrap.pos-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-header\x20.sgc-title-wrap.pos-right\x20\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-header\x20.sgc-battery-wrap\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20\x20\x20margin-left:\x20auto;\x0a\x20\x20}\x0a\x20\x20.sgc-header\x20ha-icon\x20{\x20--mdc-icon-size:\x2020px;\x20}\x0a\x20\x20.sgc-header-icon,\x20.sgc-header-icon-img\x20{\x0a\x20\x20\x20\x20opacity:\x200.85;\x0a\x20\x20\x20\x20transition:\x20opacity\x200.2s;\x0a\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-header-icon-img\x20{\x20border-radius:\x204px;\x20}\x0a\x20\x20ha-card:hover\x20.sgc-header-icon,\x0a\x20\x20ha-card:hover\x20.sgc-header-icon-img\x20{\x20opacity:\x201;\x20}\x0a\x20\x20.sgc-title\x20{\x0a\x20\x20\x20\x20font-size:\x201.1em;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-plot-wrap\x20{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20width:\x20auto;\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-plot-wrap.sgc-spark-mode,\x0a\x20\x20.sgc-plot-wrap.sgc-no-bleed\x20{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-container\x20{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-canvas\x20{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-tooltip\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20opacity:\x200;\x0a\x20\x20\x20\x20background:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c));\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.12));\x0a\x20\x20\x20\x20border-radius:\x208px;\x0a\x20\x20\x20\x20padding:\x208px\x2010px;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20z-index:\x2010;\x0a\x20\x20\x20\x20box-shadow:\x200\x204px\x2016px\x20rgba(0,0,0,0.2);\x0a\x20\x20\x20\x20transition:\x20opacity\x200.12s\x20ease;\x0a\x20\x20\x20\x20min-width:\x20120px;\x0a\x20\x20\x20\x20backdrop-filter:\x20blur(8px);\x0a\x20\x20\x20\x20-webkit-backdrop-filter:\x20blur(8px);\x0a\x20\x20}\x0a\x20\x20.sgc-pie-tt-row\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20padding:\x202px\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-tt-dot\x20{\x0a\x20\x20\x20\x20width:\x207px;\x0a\x20\x20\x20\x20height:\x207px;\x0a\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-tt-name\x20{\x0a\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20max-width:\x20120px;\x0a\x20\x20}\x0a\x20\x20.sgc-pie-tt-val\x20{\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20}\x0a\x20\x20.sgc-y-axis-label\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x2050%;\x0a\x20\x20\x20\x20writing-mode:\x20vertical-rl;\x0a\x20\x20\x20\x20transform:\x20rotate(180deg);\x0a\x20\x20\x20\x20transform-origin:\x20center;\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20opacity:\x200.55;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20z-index:\x203;\x0a\x20\x20\x20\x20translate:\x200\x20-50%;\x0a\x20\x20}\x0a\x20\x20.sgc-y-axis-label-left\x20\x20{\x20left:\x200;\x20}\x0a\x20\x20.sgc-y-axis-label-right\x20{\x20right:\x200;\x20}\x0a\x20\x20.sgc-zoom-brush\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20height:\x20100%;\x0a\x20\x20\x20\x20background:\x20rgba(var(--rgb-primary-color,\x2074,144,217),\x200.15);\x0a\x20\x20\x20\x20border-left:\x201.5px\x20solid\x20rgba(var(--rgb-primary-color,\x2074,144,217),\x200.7);\x0a\x20\x20\x20\x20border-right:\x201.5px\x20solid\x20rgba(var(--rgb-primary-color,\x2074,144,217),\x200.7);\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20z-index:\x205;\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-ctl\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x204px;\x0a\x20\x20\x20\x20right:\x204px;\x0a\x20\x20\x20\x20z-index:\x206;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20gap:\x202px;\x0a\x20\x20\x20\x20touch-action:\x20manipulation;\x0a\x20\x20\x20\x20-webkit-tap-highlight-color:\x20transparent;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-plot-wrap.sgc-ctl-export\x20.sgc-zoom-ctl\x20{\x0a\x20\x20\x20\x20right:\x2030px;\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-ctl\x20button\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20width:\x2024px;\x0a\x20\x20\x20\x20height:\x2024px;\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20border-radius:\x204px;\x0a\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color,\x20#888);\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20opacity:\x200.4;\x0a\x20\x20\x20\x20transition:\x20opacity\x200.15s\x20ease,\x20background\x200.15s\x20ease;\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-ctl\x20button:hover:not(:disabled)\x20{\x0a\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20\x20\x20background:\x20rgba(127,127,127,0.15);\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-ctl\x20button:disabled\x20{\x0a\x20\x20\x20\x20opacity:\x200.15;\x0a\x20\x20\x20\x20cursor:\x20default;\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-ctl\x20button[hidden]\x20{\x0a\x20\x20\x20\x20display:\x20none;\x0a\x20\x20}\x0a\x20\x20@media\x20(hover:\x20none)\x20{\x0a\x20\x20\x20\x20.sgc-zoom-ctl\x20button\x20{\x20opacity:\x200.6;\x20}\x0a\x20\x20}\x0a\x20\x20.sgc-export-btn\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x204px;\x0a\x20\x20\x20\x20right:\x2018px;\x0a\x20\x20\x20\x20z-index:\x206;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20width:\x2024px;\x0a\x20\x20\x20\x20height:\x2024px;\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20border-radius:\x204px;\x0a\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color,\x20#888);\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20opacity:\x200.4;\x0a\x20\x20\x20\x20transition:\x20opacity\x200.15s\x20ease,\x20background\x200.15s\x20ease;\x0a\x20\x20}\x0a\x20\x20.sgc-export-btn:hover\x20{\x0a\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20\x20\x20background:\x20rgba(127,127,127,0.15);\x0a\x20\x20}\x0a\x20\x20.sgc-export-menu\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x2030px;\x0a\x20\x20\x20\x20right:\x204px;\x0a\x20\x20\x20\x20z-index:\x207;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20background:\x20var(--card-background-color,\x20var(--ha-card-background,\x20#fff));\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(127,127,127,0.3));\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20box-shadow:\x200\x202px\x208px\x20rgba(0,0,0,0.25);\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20}\x0a\x20\x20.sgc-export-menu\x20button\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color,\x20#333);\x0a\x20\x20\x20\x20font:\x20inherit;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20padding:\x207px\x2012px;\x0a\x20\x20\x20\x20text-align:\x20left;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20}\x0a\x20\x20.sgc-export-menu\x20button:hover\x20{\x0a\x20\x20\x20\x20background:\x20rgba(127,127,127,0.12);\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-brush-label\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20top:\x204px;\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20color:\x20rgba(var(--rgb-primary-color,\x2074,144,217),\x200.95);\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20padding:\x201px\x204px;\x0a\x20\x20\x20\x20border-radius:\x203px;\x0a\x20\x20\x20\x20background:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#fff));\x0a\x20\x20}\x0a\x20\x20.sgc-zoom-brush-label-left\x20{\x20left:\x204px;\x20}\x0a\x20\x20.sgc-zoom-brush-label-right\x20{\x20right:\x204px;\x20}\x0a\x20\x20.sgc-plot\x20{\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20touch-action:\x20pan-y;\x0a\x20\x20}\x0a\x20\x20:host(.sgc-fill-height)\x20{\x20height:\x20100%;\x20}\x0a\x20\x20ha-card.sgc-fill-height\x20{\x20height:\x20100%;\x20}\x0a\x20\x20ha-card.sgc-fill-height\x20.sgc-plot-wrap\x20{\x20flex:\x201\x201\x20auto;\x20min-height:\x200;\x20display:\x20flex;\x20}\x0a\x20\x20ha-card.sgc-fill-height\x20.sgc-plot-wrap\x20>\x20.sgc-plot\x20{\x20flex:\x201\x201\x20auto;\x20min-height:\x200;\x20}\x0a\x20\x20ha-card.sgc-natural-height\x20.sgc-plot-wrap\x20>\x20.sgc-plot\x20{\x20min-height:\x20200px;\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll\x20{\x0a\x20\x20\x20\x20overflow-x:\x20auto;\x0a\x20\x20\x20\x20overflow-y:\x20hidden;\x0a\x20\x20\x20\x20width:\x200;\x0a\x20\x20\x20\x20min-width:\x20100%;\x0a\x20\x20\x20\x20contain:\x20inline-size;\x0a\x20\x20\x20\x20direction:\x20ltr;\x0a\x20\x20\x20\x20-webkit-overflow-scrolling:\x20touch;\x0a\x20\x20\x20\x20scrollbar-width:\x20thin;\x0a\x20\x20\x20\x20scrollbar-color:\x20rgba(127,127,127,0.4)\x20transparent;\x0a\x20\x20\x20\x20padding-bottom:\x2010px;\x0a\x20\x20\x20\x20touch-action:\x20pan-x\x20pan-y;\x0a\x20\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll\x20.sgc-svg\x20{\x0a\x20\x20\x20\x20width:\x20auto;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20\x20\x20max-width:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll::-webkit-scrollbar\x20{\x20height:\x208px;\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll::-webkit-scrollbar-track\x20{\x20background:\x20transparent;\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll::-webkit-scrollbar-thumb\x20{\x0a\x20\x20\x20\x20background:\x20rgba(127,127,127,0.4);\x0a\x20\x20\x20\x20border-radius:\x204px;\x0a\x20\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll-wheel\x20{\x0a\x20\x20\x20\x20scrollbar-width:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-plot.sgc-plot-scroll-wheel::-webkit-scrollbar\x20{\x20display:\x20none;\x20}\x0a\x20\x20.sgc-svg\x20{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20}\x0a\x20\x20.sgc-grid-line\x20{\x0a\x20\x20\x20\x20stroke:\x20rgba(127,127,127,0.5);\x0a\x20\x20\x20\x20stroke-width:\x201;\x0a\x20\x20\x20\x20stroke-dasharray:\x202\x203;\x0a\x20\x20}\x0a\x20\x20.sgc-axis-label\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20fill:\x20var(--secondary-text-color,\x20#727272);\x0a\x20\x20}\x0a\x20\x20.sgc-line,\x20.sgc-area,\x20.sgc-point\x20{\x20pointer-events:\x20none;\x20}\x0a\x20\x20.sgc-bar\x20{\x0a\x20\x20\x20\x20opacity:\x200.85;\x0a\x20\x20\x20\x20transition:\x20stroke-width\x200.12s\x20ease,\x20filter\x200.15s\x20ease,\x20opacity\x200.15s\x20ease;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20stroke:\x20var(--primary-text-color,\x20rgba(255,255,255,0.95));\x0a\x20\x20\x20\x20stroke-width:\x200;\x0a\x20\x20\x20\x20paint-order:\x20stroke\x20fill;\x0a\x20\x20}\x0a\x20\x20@media\x20(hover:\x20hover)\x20{\x0a\x20\x20\x20\x20.sgc-bar:hover\x20{\x0a\x20\x20\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20\x20\x20\x20\x20stroke-width:\x201.25;\x0a\x20\x20\x20\x20\x20\x20filter:\x20brightness(1.08)\x20drop-shadow(0\x200\x204px\x20rgba(255,255,255,0.3))\x20drop-shadow(0\x200\x203px\x20rgba(0,0,0,0.25));\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a\x20\x20.sgc-bar-active\x20{\x0a\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20\x20\x20stroke-width:\x201.25;\x0a\x20\x20\x20\x20filter:\x20brightness(1.08)\x20drop-shadow(0\x200\x204px\x20rgba(255,255,255,0.3))\x20drop-shadow(0\x200\x203px\x20rgba(0,0,0,0.25));\x0a\x20\x20}\x0a\x20\x20.sgc-ann-threshold,\x0a\x20\x20.sgc-ann-event,\x0a\x20\x20.sgc-ann-band,\x0a\x20\x20.sgc-ann-span,\x0a\x20\x20.sgc-ann-label\x20{\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-ann-label\x20{\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20\x20\x20paint-order:\x20stroke;\x0a\x20\x20\x20\x20stroke:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#fff));\x0a\x20\x20\x20\x20stroke-width:\x203;\x0a\x20\x20\x20\x20stroke-linejoin:\x20round;\x0a\x20\x20\x20\x20stroke-linecap:\x20round;\x0a\x20\x20}\x0a\x20\x20.sgc-crosshair\x20{\x0a\x20\x20\x20\x20stroke:\x20var(--secondary-text-color,\x20#888);\x0a\x20\x20\x20\x20stroke-width:\x201;\x0a\x20\x20\x20\x20stroke-dasharray:\x202\x203;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-period-highlight\x20{\x0a\x20\x20\x20\x20fill:\x20var(--sgc-period-highlight-color,\x20rgba(128,128,128,0.22));\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-pin-line\x20{\x0a\x20\x20\x20\x20stroke:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20stroke-width:\x201.5;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-pin-hit\x20{\x0a\x20\x20\x20\x20stroke:\x20transparent;\x0a\x20\x20\x20\x20stroke-width:\x2024;\x0a\x20\x20\x20\x20pointer-events:\x20stroke;\x0a\x20\x20\x20\x20cursor:\x20ew-resize;\x0a\x20\x20\x20\x20touch-action:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-pin-label\x20{\x0a\x20\x20\x20\x20font-size:\x209px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20fill:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-tt-span\x20{\x0a\x20\x20\x20\x20margin-left:\x208px;\x0a\x20\x20\x20\x20opacity:\x200.7;\x0a\x20\x20\x20\x20font-weight:\x20400;\x0a\x20\x20}\x0a\x20\x20.sgc-tt-delta\x20{\x0a\x20\x20\x20\x20font-size:\x200.9em;\x0a\x20\x20\x20\x20opacity:\x200.9;\x0a\x20\x20}\x0a\x20\x20.sgc-legend-pin:empty\x20{\x20display:\x20none;\x20}\x0a\x20\x20.sgc-legend-pin\x20{\x0a\x20\x20\x20\x20margin-left:\x206px;\x0a\x20\x20\x20\x20font-size:\x200.9em;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20}\x0a\x20\x20.sgc-legend-pin[data-trend=\x22up\x22]\x20{\x20color:\x20var(--success-color,\x20#26a69a);\x20}\x0a\x20\x20.sgc-legend-pin[data-trend=\x22down\x22]\x20{\x20color:\x20var(--error-color,\x20#ef5350);\x20}\x0a\x20\x20.sgc-hover-dot\x20{\x0a\x20\x20\x20\x20stroke:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#fff));\x0a\x20\x20\x20\x20stroke-width:\x202;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20filter:\x20drop-shadow(0\x201px\x202px\x20rgba(0,0,0,0.25));\x0a\x20\x20}\x0a\x20\x20@keyframes\x20sgc-draw\x20{\x0a\x20\x20\x20\x20from\x20{\x20stroke-dashoffset:\x20var(--sgc-path-len,\x203000);\x20}\x0a\x20\x20\x20\x20to\x20{\x20stroke-dashoffset:\x200;\x20}\x0a\x20\x20}\x0a\x20\x20.sgc-animated\x20{\x0a\x20\x20\x20\x20stroke-dasharray:\x20var(--sgc-path-len,\x203000);\x0a\x20\x20\x20\x20stroke-dashoffset:\x20var(--sgc-path-len,\x203000);\x0a\x20\x20\x20\x20animation:\x20sgc-draw\x201.2s\x20ease-out\x20forwards;\x0a\x20\x20}\x0a\x20\x20@keyframes\x20sgc-bar-grow\x20{\x0a\x20\x20\x20\x20from\x20{\x20transform:\x20scaleY(0);\x20}\x0a\x20\x20\x20\x20to\x20{\x20transform:\x20scaleY(1);\x20}\x0a\x20\x20}\x0a\x20\x20.sgc-bar-animated\x20{\x0a\x20\x20\x20\x20transform-box:\x20fill-box;\x0a\x20\x20\x20\x20transform-origin:\x20center\x20bottom;\x0a\x20\x20\x20\x20animation:\x20sgc-bar-grow\x200.6s\x20ease-out\x20forwards;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-list\x20{\x20display:\x20block;\x20}\x0a\x20\x20.sgc-battery-wrap\x20{\x0a\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20margin-left:\x208px;\x0a\x20\x20}\x0a\x20\x20.sgc-battery-icon\x20{\x0a\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x202px;\x0a\x20\x20\x20\x20cursor:\x20default;\x0a\x20\x20\x20\x20opacity:\x200.85;\x0a\x20\x20\x20\x20font-size:\x20inherit;\x0a\x20\x20}\x0a\x20\x20.sgc-battery-icon:hover\x20{\x20opacity:\x201;\x20}\x0a\x20\x20.sgc-battery-pct\x20{\x0a\x20\x20\x20\x20font-size:\x200.65em;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-group\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20gap:\x208px;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-group\x20.sgc-state-rows\x20{\x20flex:\x201;\x20min-width:\x200;\x20}\x0a\x20\x20.sgc-battery-in-states\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20\x20\x20align-self:\x20flex-start;\x0a\x20\x20\x20\x20margin-top:\x205px;\x0a\x20\x20}\x0a\x20\x20.sgc-state-battery-zone\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20\x20\x20margin-left:\x20auto;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20flex-end;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-row\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x2010px;\x0a\x20\x20\x20\x20padding:\x204px\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-info\x20{\x20flex:\x200\x200\x20auto;\x20min-width:\x2080px;\x20}\x0a\x20\x20.sgc-spark-name\x20{\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20max-width:\x20120px;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-val\x20{\x0a\x20\x20\x20\x20font-size:\x2017px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20line-height:\x201.2;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-unit\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20margin-left:\x202px;\x0a\x20\x20\x20\x20font-weight:\x20400;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-trend\x20{\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20margin-left:\x204px;\x0a\x20\x20\x20\x20font-weight:\x20400;\x0a\x20\x20}\x0a\x20\x20.sgc-spark-graph\x20{\x0a\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20height:\x2036px;\x0a\x20\x20\x20\x20min-width:\x2060px;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20{\x0a\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20margin-bottom:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20.sgc-state-row-group\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20.sgc-state-row-group\x20.sgc-state-row\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20.sgc-state-align-left\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20.sgc-state-align-center\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap\x20.sgc-state-align-right\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20align-items:\x20flex-end;\x0a\x20\x20\x20\x20flex:\x201;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-left,\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-center,\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-right\x20{\x0a\x20\x20\x20\x20flex-direction:\x20row;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20gap:\x202px\x2012px;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20}\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-left\x20\x20\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-align-right\x20\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-state-row\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20padding:\x205px\x204px;\x0a\x20\x20\x20\x20gap:\x208px;\x0a\x20\x20\x20\x20transition:\x20background\x200.15s,\x20opacity\x200.15s;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20margin:\x200\x20-4px;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row:hover\x20{\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.04));\x0a\x20\x20}\x0a\x20\x20.sgc-state-row.sgc-state-row-hidden\x20{\x20opacity:\x200.35;\x20}\x0a\x20\x20.sgc-state-row.sgc-state-row-hidden:hover\x20{\x20opacity:\x200.55;\x20}\x0a\x20\x20.sgc-state-wrap.horizontal\x20.sgc-state-row\x20{\x0a\x20\x20\x20\x20padding:\x204px\x206px;\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20flex:\x200\x201\x20auto;\x0a\x20\x20}\x0a\x20\x20.sgc-state-color\x20{\x0a\x20\x20\x20\x20width:\x2010px;\x0a\x20\x20\x20\x20height:\x2010px;\x0a\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20\x20\x20transition:\x20transform\x200.2s\x20ease;\x0a\x20\x20\x20\x20box-shadow:\x200\x200\x200\x202px\x20var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c));\x0a\x20\x20}\x0a\x20\x20.sgc-state-row:hover\x20.sgc-state-color\x20{\x20transform:\x20scale(1.25);\x20}\x0a\x20\x20.sgc-state-icon\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20--mdc-icon-size:\x2018px;\x0a\x20\x20}\x0a\x20\x20.sgc-state-icon\x20ha-icon\x20{\x20--mdc-icon-size:\x2018px;\x20}\x0a\x20\x20.sgc-state-name\x20{\x0a\x20\x20\x20\x20flex:\x200\x201\x20auto;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20font-size:\x2014px;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20text-overflow:\x20ellipsis;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-state-value\x20{\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20margin-left:\x204px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20}\x0a\x20\x20.sgc-state-unit\x20{\x0a\x20\x20\x20\x20font-size:\x200.5em;\x0a\x20\x20\x20\x20margin-left:\x202px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20}\x0a\x20\x20.sgc-state-second\x20{\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20margin-left:\x206px;\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20}\x0a\x20\x20.sgc-state-second-label\x20{\x0a\x20\x20\x20\x20font-size:\x200.5em;\x0a\x20\x20\x20\x20opacity:\x200.6;\x0a\x20\x20\x20\x20margin-right:\x202px;\x0a\x20\x20\x20\x20text-transform:\x20uppercase;\x0a\x20\x20}\x0a\x20\x20.sgc-trend-indicator\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20transition:\x20transform\x200.3s\x20ease;\x0a\x20\x20\x20\x20flex:\x200\x200\x20auto;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row:hover\x20.sgc-trend-indicator\x20{\x20transform:\x20scale(1.15);\x20}\x0a\x20\x20.sgc-state-row.sgc-state-row-stacked\x20{\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-stacked\x20.sgc-state-stack\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20\x20\x20line-height:\x201.15;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-stacked\x20.sgc-state-stack-top\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20baseline;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-stacked\x20.sgc-state-stack-top\x20.sgc-state-value\x20{\x0a\x20\x20\x20\x20margin-left:\x200;\x0a\x20\x20\x20\x20font-size:\x201.1em;\x0a\x20\x20}\x0a\x20\x20.sgc-state-row-stacked\x20.sgc-state-stack-bot\x20.sgc-state-name\x20{\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20opacity:\x200.75;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20margin-top:\x201px;\x0a\x20\x20}\x0a\x20\x20.sgc-tooltip\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20background:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#fff));\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(0,0,0,0.1));\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20padding:\x206px\x208px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20\x20\x20box-shadow:\x200\x202px\x208px\x20rgba(0,0,0,0.15);\x0a\x20\x20\x20\x20z-index:\x2010;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20}\x0a\x20\x20.sgc-tt-time\x20{\x0a\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20margin-bottom:\x204px;\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20}\x0a\x20\x20.sgc-tt-row\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20margin:\x202px\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-tt-swatch\x20{\x0a\x20\x20\x20\x20width:\x208px;\x20height:\x208px;\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20}\x0a\x20\x20.sgc-tt-name\x20{\x20flex:\x201;\x20}\x0a\x20\x20.sgc-tt-val\x20{\x20font-weight:\x20500;\x20margin-left:\x208px;\x20}\x0a\x20\x20.sgc-tt-total\x20{\x0a\x20\x20\x20\x20border-top:\x201px\x20solid\x20var(--divider-color,\x20rgba(0,0,0,0.1));\x0a\x20\x20\x20\x20padding-top:\x203px;\x0a\x20\x20\x20\x20margin-top:\x203px;\x0a\x20\x20}\x0a\x20\x20.sgc-legend\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20gap:\x2012px;\x0a\x20\x20\x20\x20margin-top:\x2010px;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20}\x0a\x20\x20.sgc-legend.position-left\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-legend.position-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-legend.position-right\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-legend-item\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-legend-item.hidden\x20{\x20opacity:\x200.4;\x20}\x0a\x20\x20.sgc-legend-swatch\x20{\x0a\x20\x20\x20\x20width:\x2010px;\x20height:\x2010px;\x20border-radius:\x202px;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-legend\x20{\x0a\x20\x20\x20\x20display:\x20grid;\x0a\x20\x20\x20\x20grid-template-columns:\x20repeat(auto-fit,\x20minmax(130px,\x201fr));\x0a\x20\x20\x20\x20gap:\x2012px;\x0a\x20\x20\x20\x20margin-top:\x2014px;\x0a\x20\x20\x20\x20padding-top:\x2014px;\x0a\x20\x20\x20\x20border-top:\x201px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.08));\x0a\x20\x20}\x0a\x20\x20.sgc-detail-legend-entity\x20{\x0a\x20\x20\x20\x20border-left:\x203px\x20solid;\x0a\x20\x20\x20\x20padding-left:\x2010px;\x0a\x20\x20\x20\x20transition:\x20opacity\x200.2s;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-legend-entity:hover\x20{\x20opacity:\x200.8;\x20}\x0a\x20\x20.sgc-detail-legend-entity.legend-hidden\x20{\x20opacity:\x200.3;\x20}\x0a\x20\x20.sgc-detail-legend-entity.legend-hidden:hover\x20{\x20opacity:\x200.5;\x20}\x0a\x20\x20.sgc-detail-legend-name\x20{\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20margin-bottom:\x202px;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-legend-stats\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20gap:\x2012px;\x0a\x20\x20\x20\x20row-gap:\x202px;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-legend-stats\x20span\x20{\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20opacity:\x200.8;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-stat-label\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20text-transform:\x20uppercase;\x0a\x20\x20\x20\x20margin-right:\x202px;\x0a\x20\x20}\x0a\x20\x20.sgc-detail-stat-note\x20{\x0a\x20\x20\x20\x20flex-basis:\x20100%;\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20white-space:\x20normal;\x0a\x20\x20}\x0a\x20\x20.sgc-ip\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20margin-bottom:\x2010px;\x0a\x20\x20}\x0a\x20\x20.sgc-ip.align-left\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-ip.align-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-ip.align-right\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-ip-btn\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20padding:\x204px\x208px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20\x20\x20transition:\x20all\x200.15s;\x0a\x20\x20}\x0a\x20\x20.sgc-ip-btn:hover\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-ip-btn.active\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-al\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20gap:\x206px\x2010px;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20margin-bottom:\x2010px;\x0a\x20\x20}\x0a\x20\x20.sgc-al.align-left\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-al.align-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-al.align-right\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-al-item\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20}\x0a\x20\x20.sgc-al-dot\x20{\x0a\x20\x20\x20\x20width:\x208px;\x0a\x20\x20\x20\x20height:\x208px;\x0a\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20flex-shrink:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-al-select\x20{\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.12));\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20\x20\x20padding:\x203px\x206px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20transition:\x20border-color\x200.15s;\x0a\x20\x20\x20\x20max-width:\x20140px;\x0a\x20\x20}\x0a\x20\x20.sgc-al-select:focus\x20{\x20border-color:\x20var(--primary-color,\x20#4A90D9);\x20}\x0a\x20\x20.sgc-qp\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x208px;\x0a\x20\x20\x20\x20padding:\x202px\x204px\x204px;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20}\x0a\x20\x20.sgc-qp.align-left\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.sgc-qp.align-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.sgc-qp.align-right\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-qp-item\x20{\x20display:\x20flex;\x20align-items:\x20center;\x20gap:\x205px;\x20}\x0a\x20\x20.sgc-qp-lbl\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20opacity:\x200.6;\x0a\x20\x20\x20\x20text-transform:\x20uppercase;\x0a\x20\x20\x20\x20letter-spacing:\x200.4px;\x0a\x20\x20}\x0a\x20\x20.sgc-qp-select\x20{\x0a\x20\x20\x20\x20background:\x20var(--card-background-color,\x20rgba(0,\x200,\x200,\x200.05));\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color,\x20inherit);\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(120,\x20120,\x20120,\x200.3));\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20padding:\x202px\x206px;\x0a\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20max-width:\x20140px;\x0a\x20\x20}\x0a\x20\x20.sgc-qp-select:focus\x20{\x20border-color:\x20var(--primary-color,\x20#4A90D9);\x20}\x0a\x20\x20.sgc-al-select\x20option\x20{\x0a\x20\x20\x20\x20background:\x20var(--ha-card-background,\x20#1c1c1c);\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20}\x0a\x20\x20.sgc-dp\x20{\x0a\x20\x20\x20\x20margin:\x204px\x200\x202px;\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20}\x0a\x20\x20.sgc-dp.position-bottom\x20{\x0a\x20\x20\x20\x20order:\x2010;\x0a\x20\x20\x20\x20margin:\x206px\x200\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-bar\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-bar.dp-centered\x20{\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-zone\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20flex:\x201\x201\x20auto;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20row-gap:\x204px;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-zone:empty\x20{\x0a\x20\x20\x20\x20flex:\x201\x201\x200;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-zone.sgc-dp-center-abs\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20left:\x2050%;\x0a\x20\x20\x20\x20top:\x2050%;\x0a\x20\x20\x20\x20transform:\x20translate(-50%,\x20-50%);\x0a\x20\x20}\x0a\x20\x20.dp-zone-left\x20{\x20justify-content:\x20flex-start;\x20}\x0a\x20\x20.dp-zone-center\x20{\x20justify-content:\x20center;\x20}\x0a\x20\x20.dp-zone-right\x20{\x20justify-content:\x20flex-end;\x20}\x0a\x20\x20.sgc-dp-nav,\x0a\x20\x20.sgc-dp-shortcuts\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20min-width:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-zone\x20.sgc-dp-modes\x20{\x20margin-left:\x200;\x20}\x0a\x20\x20.sgc-dp-shortcuts\x20{\x20flex-wrap:\x20wrap;\x20row-gap:\x204px;\x20}\x0a\x20\x20.sgc-dp-modes\x20{\x20flex-wrap:\x20wrap;\x20row-gap:\x202px;\x20}\x0a\x20\x20/*\x20narrow-card\x20fallback:\x20when\x20the\x20absolutely-centered\x20shortcuts\x20zone\x20cannot\x20fit\x20beside\x0a\x20\x20\x20\x20\x20the\x20nav,\x20it\x20degrades\x20to\x20an\x20in-flow,\x20full-width,\x20centered\x20row\x20below\x20the\x20other\x20zones\x20*/\x0a\x20\x20.sgc-dp-bar.dp-center-stacked\x20{\x20flex-wrap:\x20wrap;\x20row-gap:\x204px;\x20}\x0a\x20\x20.sgc-dp-bar.dp-center-stacked\x20.dp-zone-center\x20{\x20flex:\x201\x201\x20100%;\x20justify-content:\x20center;\x20order:\x209;\x20}\x0a\x20\x20.sgc-dp-bar.dp-centered\x20.sgc-dp-toggle\x20{\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20right:\x208px;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-prev,\x0a\x20\x20.sgc-dp-next\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20width:\x2026px;\x0a\x20\x20\x20\x20height:\x2026px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2014px;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20transition:\x20all\x200.15s;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-prev:hover:not(:disabled),\x0a\x20\x20.sgc-dp-next:hover:not(:disabled)\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-prev:disabled,\x0a\x20\x20.sgc-dp-next:disabled\x20{\x0a\x20\x20\x20\x20opacity:\x200.2;\x0a\x20\x20\x20\x20cursor:\x20default;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-label\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20\x20\x20padding:\x204px\x208px;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20white-space:\x20nowrap;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-label:hover\x20{\x0a\x20\x20\x20\x20color:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-label.dp-label-past\x20{\x0a\x20\x20\x20\x20opacity:\x200.85;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-modes\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20gap:\x202px;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20margin-left:\x20auto;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-mode-sep\x20{\x0a\x20\x20\x20\x20width:\x201px;\x0a\x20\x20\x20\x20align-self:\x20stretch;\x0a\x20\x20\x20\x20margin:\x201px\x204px;\x0a\x20\x20\x20\x20background:\x20var(--divider-color,\x20rgba(128,128,128,0.4));\x0a\x20\x20}\x0a\x20\x20.sgc-dp-mode\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20padding:\x204px\x209px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20transition:\x20all\x200.15s;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-mode:hover,\x0a\x20\x20.sgc-dp-mode.active\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-toggle,\x20.sgc-dp-reset\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20width:\x2028px;\x0a\x20\x20\x20\x20height:\x2026px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20transition:\x20all\x200.15s;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20margin-left:\x202px;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-toggle:hover,\x0a\x20\x20.sgc-dp-reset:hover,\x0a\x20\x20.sgc-dp-toggle.active\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-panel\x20{\x0a\x20\x20\x20\x20background:\x20var(--ha-card-background,\x20var(--card-background-color,\x20#1c1c1c));\x0a\x20\x20\x20\x20border:\x201px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.12));\x0a\x20\x20\x20\x20border-radius:\x2010px;\x0a\x20\x20\x20\x20padding:\x2012px;\x0a\x20\x20\x20\x20margin-top:\x206px;\x0a\x20\x20\x20\x20box-shadow:\x200\x204px\x2016px\x20rgba(0,0,0,0.18);\x0a\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20left:\x200;\x0a\x20\x20\x20\x20right:\x200;\x0a\x20\x20\x20\x20top:\x20100%;\x0a\x20\x20\x20\x20z-index:\x205;\x0a\x20\x20}\x0a\x20\x20.sgc-dp.position-bottom\x20.sgc-dp-panel\x20{\x0a\x20\x20\x20\x20top:\x20auto;\x0a\x20\x20\x20\x20bottom:\x20100%;\x0a\x20\x20\x20\x20margin-top:\x200;\x0a\x20\x20\x20\x20margin-bottom:\x206px;\x0a\x20\x20}\x0a\x20\x20ha-card.sgc-dp-open\x20{\x20overflow:\x20visible;\x20}\x0a\x20\x20ha-card.sgc-controller\x20{\x20padding:\x208px\x2012px;\x20}\x0a\x20\x20ha-card.sgc-controller\x20.sgc-plot-wrap,\x0a\x20\x20ha-card.sgc-controller\x20.sgc-state-wrap,\x0a\x20\x20ha-card.sgc-controller\x20.sgc-legend-wrap,\x0a\x20\x20ha-card.sgc-controller\x20.sgc-detail-legend-wrap,\x0a\x20\x20ha-card.sgc-controller\x20.sgc-ip-wrap\x20{\x20display:\x20none;\x20}\x0a\x20\x20ha-card.sgc-controller\x20.sgc-header-wrap\x20{\x20order:\x20-1;\x20}\x0a\x20\x20ha-card.sgc-controller\x20.sgc-dp\x20{\x20margin:\x200;\x20}\x0a\x20\x20ha-card.sgc-native-style\x20.sgc-detail-legend-name\x20{\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20}\x0a\x20\x20ha-card.sgc-native-style\x20.sgc-detail-legend-stats\x20{\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20}\x0a\x20\x20ha-card.sgc-native-style\x20.sgc-detail-legend-stats\x20>\x20span:not(.sgc-legend-pin)\x20{\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20\x20\x20opacity:\x201;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-header\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20justify-content:\x20space-between;\x0a\x20\x20\x20\x20margin-bottom:\x208px;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-nav\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20none;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20padding:\x204px\x208px;\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20border-radius:\x204px;\x0a\x20\x20\x20\x20transition:\x20background\x200.15s;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-nav:hover\x20{\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-title\x20{\x0a\x20\x20\x20\x20font-size:\x2013px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-grid\x20{\x0a\x20\x20\x20\x20display:\x20grid;\x0a\x20\x20\x20\x20grid-template-columns:\x20repeat(7,\x201fr);\x0a\x20\x20\x20\x20gap:\x201px;\x0a\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-hd\x20{\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20opacity:\x200.5;\x0a\x20\x20\x20\x20padding:\x204px\x200;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-empty\x20{\x20padding:\x204px;\x20}\x0a\x20\x20.sgc-dp-cal-day\x20{\x0a\x20\x20\x20\x20padding:\x205px\x202px;\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20transition:\x20all\x200.12s;\x0a\x20\x20\x20\x20user-select:\x20none;\x0a\x20\x20\x20\x20color:\x20var(--primary-text-color);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-day:hover\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-day.dp-today\x20{\x0a\x20\x20\x20\x20font-weight:\x20700;\x0a\x20\x20\x20\x20box-shadow:\x20inset\x200\x200\x200\x201.5px\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-day.dp-in-range\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20\x20\x20opacity:\x200.75;\x0a\x20\x20\x20\x20border-radius:\x204px;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-day.dp-range-sel\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-day.dp-future\x20{\x0a\x20\x20\x20\x20opacity:\x200.2;\x0a\x20\x20\x20\x20pointer-events:\x20none;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-cal-hint\x20{\x0a\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20font-size:\x2010px;\x0a\x20\x20\x20\x20color:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20margin-top:\x206px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-presets\x20{\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20\x20\x20gap:\x204px;\x0a\x20\x20\x20\x20margin-top:\x2010px;\x0a\x20\x20\x20\x20padding-top:\x2010px;\x0a\x20\x20\x20\x20border-top:\x201px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.08));\x0a\x20\x20}\x0a\x20\x20.sgc-dp-preset\x20{\x0a\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20background:\x20var(--secondary-background-color,\x20rgba(255,255,255,0.06));\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20\x20\x20padding:\x205px\x2010px;\x0a\x20\x20\x20\x20border-radius:\x206px;\x0a\x20\x20\x20\x20font-size:\x2011px;\x0a\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20transition:\x20all\x200.15s;\x0a\x20\x20\x20\x20font-family:\x20inherit;\x0a\x20\x20}\x0a\x20\x20.sgc-dp-preset:hover,\x0a\x20\x20.sgc-dp-preset.active\x20{\x0a\x20\x20\x20\x20background:\x20var(--primary-color,\x20#4A90D9);\x0a\x20\x20\x20\x20color:\x20var(--text-primary-color,\x20#fff);\x0a\x20\x20}\x0a\x20\x20.sgc-stub\x20{\x0a\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20color:\x20var(--secondary-text-color);\x0a\x20\x20}\x0a\x20\x20.sgc-stub\x20code\x20{\x0a\x20\x20\x20\x20background:\x20var(--divider-color,\x20rgba(0,0,0,0.08));\x0a\x20\x20\x20\x20padding:\x201px\x204px;\x0a\x20\x20\x20\x20border-radius:\x203px;\x0a\x20\x20}\x0a\x20\x20.sgc-stub-hint\x20{\x20font-size:\x2012px;\x20margin-top:\x206px;\x20}\x0a\x20\x20.sgc-error\x20{\x0a\x20\x20\x20\x20padding:\x2016px;\x0a\x20\x20\x20\x20color:\x20var(--error-color,\x20#db4437);\x0a\x20\x20\x20\x20font-size:\x2012px;\x0a\x20\x20}\x0a','_resetDrill','</option></select></div></div>','<span\x20class=\x22sn\x22>','/h)','How\x20raw\x20data\x20points\x20within\x20each\x20time\x20bucket\x20are\x20combined.\x20avg\x20=\x20mean\x20(smoothest,\x20ideal\x20for\x20measurement\x20sensors\x20like\x20temperature/power).\x20min/max\x20=\x20lowest/highest\x20value.\x20last/first\x20=\x20most\x20recent\x20/\x20oldest\x20value\x20in\x20the\x20bucket.\x20median\x20=\x20middle\x20value\x20when\x20sorted\x20(outlier-resistant).\x20sum\x20=\x20total\x20of\x20all\x20values.\x20delta\x20=\x20max\x20minus\x20min\x20(spread\x20—\x20how\x20much\x20the\x20value\x20fluctuated).\x20change\x20=\x20sum\x20of\x20positive\x20jumps\x20between\x20consecutive\x20points\x20—\x20ideal\x20for\x20monotonic\x20counters\x20(energy/gas/water\x20meters)\x20because\x20counter\x20resets\x20are\x20ignored;\x20auto-capped\x20at\x20daily\x20buckets.\x20diff\x20=\x20signed\x20net\x20change\x20(last\x20value\x20minus\x20first)\x20—\x20for\x20fluctuating\x20values\x20like\x20ratios,\x20prices,\x20temperatures,\x20input_numbers\x20where\x20decreases\x20are\x20real\x20movements\x20rather\x20than\x20counter\x20resets.','localeCompare','\x20mt8\x22><div\x20class=\x22f\x22><label>','</label><div\x20class=\x22ci\x22><input\x20id=\x22x_axis_color\x22\x20type=\x22text\x22\x20placeholder=\x22','show_date_picker','Graph\x20Data','_visCheckTs','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.','_cacheCleanupTimer','endMs','state_row','_animRaf','lineCap','Date\x20Nav','statistics-graph-chart-card-editor','\x22\x20alone\x20under\x20a\x20combined\x20label.','matchMedia','DD/MM\x20hh:mm\x20A','_pinReadout','Y\x20Grid\x20Style','</label><div\x20class=\x22iu\x22><input\x20id=\x22update_interval\x22\x20type=\x22number\x22\x20min=\x220\x22\x20step=\x221\x22\x20placeholder=\x22','%\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20width=\x220.7em\x22\x20height=\x220.9em\x22\x20viewBox=\x220\x200\x2016\x2018\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<rect\x20x=\x224\x22\x20y=\x220\x22\x20width=\x228\x22\x20height=\x222\x22\x20rx=\x220.5\x22\x20fill=\x22currentColor\x22\x20opacity=\x220.4\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<rect\x20x=\x221\x22\x20y=\x222\x22\x20width=\x2214\x22\x20height=\x2215\x22\x20rx=\x222\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x221.5\x22\x20fill=\x22none\x22\x20opacity=\x220.4\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<rect\x20x=\x223\x22\x20y=\x22','push','Default\x20(Vertical)','crosshair_delta','Pin\x20Delta','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20data\x20for\x20waterfall.</div>','getPrototypeOf','group_by_picker_group','tooltip_sync','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22tb\x20cs-tb\x20','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel\x20','Default\x20=\x20entity\x20name\x20appears\x20to\x20the\x20left\x20of\x20the\x20primary\x20value\x20(inline).\x20Aligned\x20=\x20entity\x20name\x20appears\x20centered\x20below\x20the\x20primary\x20value\x20(ApexCharts-style,\x20good\x20for\x20header-only\x20entities\x20and\x20mobile\x20layouts).','pmin','Where\x20the\x20strip\x20name\x20goes.\x20Above\x20(default)\x20writes\x20it\x20on\x20its\x20own\x20line\x20over\x20the\x20band.\x20Left\x20puts\x20it\x20in\x20the\x20Y-axis\x20column\x20beside\x20the\x20band\x20—\x20no\x20extra\x20height,\x20but\x20the\x20name\x20is\x20cut\x20to\x20the\x20column\x20width\x20with\x20an\x20ellipsis,\x20so\x20keep\x20left\x20names\x20short;\x20with\x20the\x20Y\x20axis\x20hidden\x20there\x20is\x20no\x20column\x20and\x20left\x20titles\x20are\x20not\x20drawn.','Shows\x20a\x20Points/Hour\x20dropdown\x20on\x20the\x20card\x20itself,\x20so\x20the\x20data\x20resolution\x20can\x20be\x20changed\x20without\x20opening\x20the\x20editor.\x20Auto\x20returns\x20to\x20the\x20configured\x20value.\x20The\x20selection\x20persists\x20per\x20card\x20and\x20takes\x20priority\x20over\x20Auto\x20Scale\x20while\x20active.\x20The\x20Group\x20field\x20keeps\x20the\x20Points/Hour\x20selection\x20in\x20sync\x20across\x20every\x20card\x20sharing\x20that\x20name\x20—\x20receivers\x20do\x20not\x20need\x20the\x20picker\x20visible,\x20so\x20one\x20card\x20can\x20drive\x20the\x20page.\x20Independent\x20from\x20the\x20Group\x20By\x20picker\x27s\x20group.','map','_openPanels','0.35','_colorUnsubs','gauge_show_minmax','legend_position','_numOrNull','</select></div></div><input\x20id=\x22group_by_picker_group\x22\x20class=\x22overlay-group-input\x22\x20type=\x22text\x22\x20placeholder=\x22','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;text-align:left;cursor:pointer;outline:none','Duplicate','Time\x20Field',':scope\x20>\x20.sgc-grid,\x20:scope\x20>\x20.sgc-x-axis','state_timeline','\x20·\x20Δ\x20','</label><input\x20class=\x22ann-val1\x22\x20type=\x22text\x22\x20placeholder=\x220\x20or\x20sensor.x\x22\x20value=\x22','Which\x20interval\x20button\x20the\x20picker\x20opens\x20on.\x20Auto\x20=\x20remember\x20the\x20last\x20button\x20the\x20user\x20pressed\x20on\x20this\x20card\x20(persisted\x20across\x20reloads);\x20pick\x20one\x20to\x20always\x20start\x20there\x20and\x20ignore\x20the\x20remembered\x20value.\x20The\x20chart\x20still\x20falls\x20back\x20to\x20Hours\x20To\x20Show\x20when\x20the\x20picker\x20is\x20off.','></div></div><div\x20class=\x22f\x22><label>','</g>','update_interval','Overlays\x20are\x20hidden\x20in\x20sparkline\x20mode','_slices','Shows\x20a\x20compact\x20dropdown\x20list\x20of\x20attributes\x20for\x20entities.','show_attribute_list','&gt;','x_grid_color','font-size:','</select></div></div><input\x20id=\x22date_picker_group\x22\x20class=\x22overlay-group-input\x22\x20type=\x22text\x22\x20placeholder=\x22','.e-show_points','.e-offset','applyPostBucketTransform','<option\x20value=\x22\x22','pph','\x22\x20data-tc=\x22colors\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','tooltip_sync_group','dp-range-sel','Last\x2090\x20days','<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>Scatter\x20chart\x20requires\x20exactly\x202\x20entities\x20(currently\x20','beginPath','show_group_by_picker','x_axis_font_opacity','assign','How\x20many\x20data\x20points\x20per\x20hour\x20to\x20fetch.\x20Higher\x20=\x20more\x20detail\x20but\x20heavier\x20on\x20the\x20HA\x20recorder\x20database.\x20A\x20value\x20of\x202\x20means\x20one\x20point\x20every\x2030\x20minutes.\x20Individual\x20entities\x20can\x20override\x20this\x20in\x20their\x20own\x20settings.','clear','Position\x20and\x20alignment\x20of\x20this\x20entity\x20state\x20row.','><span\x20class=\x22msl\x22></span></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22><label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20class=\x22e-auto_hide\x22\x20type=\x22checkbox\x22\x20','<text\x20x=\x22','<span\x20class=\x22ds-badge\x20ds-other\x22\x20title=\x22Reads\x20from\x20attribute\x20/\x20fixed\x20value\x20/\x20state\x20map.\x20No\x20long-term\x20statistics.\x22>','_dpCalMonth','last_year','4\x204','_dpSyncHandler','Overlay\x20draws\x20the\x20compared\x20period\x20on\x20top\x20of\x20the\x20live\x20data,\x20time-aligned.\x20Sequential\x20extends\x20the\x20X\x20axis\x20backward\x20and\x20draws\x20it\x20at\x20its\x20real\x20position,\x20before\x20the\x20live\x20data\x20-\x20a\x20continuous\x20past-to-present\x20view.\x20Previous\x20Period\x20only,\x20line\x20charts\x20only.','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22use_only_attribute_name\x22\x20type=\x22checkbox\x22\x20','</div></div><div\x20class=\x22cmp-list\x22>','h12','sgc-zoom-ctl','_collectDataVarIds','has_mean','seriesStats','None','</label><div\x20class=\x22iu\x22><input\x20id=\x22max_visible_interval\x22\x20type=\x22number\x22\x20min=\x221\x22\x20step=\x221\x22\x20placeholder=\x22','border-color:','unexpected\x20','divide','Battery','var(--success-color,\x20#22c55e)','attachShadow','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-zone\x20dp-zone-right\x22>','H-line','\x00cmp:','_shareScalarValue','bucketPrecision','3D\x20Effect','state_color','onload','primary_state_as','last_3d','_wheelHandler','inherit','_minTs','_zoomInBtn','getUTCDate','svgViewWidth','black','How\x20numbers\x20on\x20the\x20Y\x20axis\x20are\x20formatted.\x20System\x20=\x20follow\x20HA\x20locale\x20setting.\x20Comma\x20=\x20European\x20style\x20(1.234,56).\x20Dot\x20=\x20American\x20style\x20(1,234.56).\x20Independent\x20from\x20per-entity\x20Number\x20Format,\x20which\x20still\x20drives\x20state\x20row,\x20tooltip\x20and\x20data\x20labels.','sgc-svg','pushed','[data-intlabel]','_processRefTicks','Disabled\x20when\x20thresholds\x20active','source','</select></div></div><div\x20class=\x22f\x22></div></div>','connection','\x22>‹</button><span\x20class=\x22sgc-dp-label\x20','[sgc]\x20full-card\x20PNG\x20failed,\x20falling\x20back\x20to\x20the\x20chart\x20export','.f,\x20.si,\x20.overlay-row,\x20.ms','sgc-mode-off','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-tt-row\x22\x20style=\x22opacity:0.55;font-size:0.85em\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>','min','When\x20enabled,\x20automatically\x20picks\x20the\x20best\x20Group\x20By\x20and\x20Points/Hour\x20for\x20the\x20visible\x20window\x20—\x20aiming\x20for\x20~100\x20points.\x20Falls\x20back\x20to\x20a\x20safer\x20mode\x20(Points/Hour\x20only)\x20for\x20kart\x20configurations\x20using\x20offset,\x20forecast_horizon,\x20or\x20attribute-based\x20data\x20sources,\x20where\x20Group\x20By\x20override\x20could\x20break\x20per-entity\x20time\x20alignment.','sgc-spark-mode','_scrollHandler','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.','<div\x20class=\x22f\x22><div\x20class=\x22ci\x22><input\x20id=\x22period_highlight_color\x22\x20type=\x22text\x22\x20placeholder=\x22','Entity\x20whose\x20state\x20switches\x20this\x20entity\x20on\x20and\x20off\x20live.\x20input_boolean.x\x20shows\x20the\x20entity\x20while\x20the\x20helper\x20is\x20on\x20(on\x20/\x20true\x20/\x20yes\x20/\x201);\x20!input_boolean.x\x20hides\x20it\x20while\x20the\x20helper\x20is\x20on.\x20The\x20entity\x20is\x20still\x20fetched,\x20so\x20the\x20flip\x20is\x20instant\x20and\x20the\x20other\x20entities\x20keep\x20their\x20colours;\x20unknown,\x20unavailable\x20or\x20a\x20missing\x20helper\x20leave\x20it\x20shown.\x20Leave\x20empty\x20to\x20use\x20the\x20fixed\x20switch\x20above.','[sgc]\x20value_transform\x20compile\x20failed:\x20','fetchHistory','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-zone\x20dp-zone-center','fill=\x22url(#','.e-extrema_bg_opacity','30D','live','background-image:url(\x27','dot','dateObj','shadowRoot','_spokes','Hard\x20or\x20soft\x20maximum\x20for\x20the\x20secondary\x20(right)\x20Y\x20axis.','statistics','</span></span>','Sweep\x20of\x20the\x20dial\x20in\x20degrees.\x20270\x20=\x20classic\x203/4\x20dial\x20(default),\x20180\x20=\x20semicircle,\x20360\x20=\x20full\x20ring.\x20The\x20opening\x20is\x20centred\x20at\x20the\x20bottom.','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x20','units','LANG_NAMES','.e-value_factor','sgc-bar-active','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22auto_hide_entities\x22\x20type=\x22checkbox\x22\x20','</div><div\x20class=\x22sw\x22\x20style=\x22min-width:80px\x22><select\x20class=\x22e-show_state\x22><option\x20value=\x22true\x22\x20','split','Roboto,\x20sans-serif','last_90d','No\x20entities\x20to\x20rank.','sgc-strip-layer','_processHassChanges','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x22><div\x20class=\x22f\x22><label>','MM/DD\x20HH:mm','_setupCanvas','energy_date_sync','show_export','Timestamp','raw','image/svg+xml;charset=utf-8','Range','decimals','de-DE','\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22state_timeline_show_labels\x22\x20type=\x22checkbox\x22\x20','ltsVeto','</label><div\x20class=\x22ha-icon-picker-wrap\x22\x20data-entity-icon\x20style=\x22min-height:48px\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_color_dot\x22\x20type=\x22checkbox\x22\x20','</label><input\x20id=\x22card_header\x22\x20type=\x22text\x22\x20placeholder=\x22','_maMaxLeadMs','Enabled','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</svg>','_renderStateRowFor','</label><input\x20class=\x22cmp-back\x22\x20type=\x22number\x22\x20min=\x221\x22\x20step=\x221\x22\x20value=\x22','[sgc]\x20value_transform\x20probe\x20threw:','_axisDateLabel','Read\x20chart\x20data\x20from\x20an\x20entity\x20attribute\x20instead\x20of\x20history.\x20Used\x20for\x20forecast\x20data\x20(EPEX\x20spot\x20prices,\x20weather\x20forecast,\x20solar\x20prediction).\x20The\x20attribute\x20must\x20contain\x20an\x20array\x20of\x20objects\x20with\x20time\x20and\x20value\x20fields.','cmpEnt','createElement','__sgcActiveRule','_window','_pendingSyntheticRefresh','.e-damp_reset_boundary','_wsSubscribing','_refRefused','_getAvailableEntities','vtn:','crosshair_pins','findIndex','null','<span\x20class=\x22sgc-al-dot\x22\x20style=\x22background:','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x2222\x207\x2013.5\x2015.5\x208.5\x2010.5\x202\x2017\x22/></svg>','secondary','<style>\x0a:host{display:block;font-family:','_slideCarryIdx','fixed_value','.sgc-dp-wrap','0.5','_colorTemplateUnsubs','661818NcICTs','_dataVarIds','.e-icon_size','_compareCfg','</div></div><div\x20class=\x22f\x20mt8\x22><label>','call','hass-action','_yMeta','isDate','now_line_width','_refSeries','More\x20Info','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cs\x20','ref_attribute','Color','length','</option><option\x20value=\x22solid\x22\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>','Secondary','scroll_mode','_haFont','5minute','delta','</option></select></div></div><div\x20class=\x22f\x22></div>','sgc-y-axis-label\x20sgc-y-axis-label-right','Overrides\x20the\x20built-in\x20auto\x20scale\x20with\x20your\x20own\x20thresholds.\x20Each\x20rule\x20reads:\x20when\x20the\x20visible\x20period\x20is\x20up\x20to\x20N\x20hours,\x20use\x20this\x20Group\x20By\x20(and\x20optionally\x20this\x20Points/Hour).\x20The\x20smallest\x20matching\x20threshold\x20wins;\x20a\x20period\x20beyond\x20every\x20threshold\x20falls\x20back\x20to\x20the\x20built-in\x20auto\x20scale.\x20Date-picker\x20aware:\x20a\x20full\x20month\x20or\x20year\x20selection\x20matches\x20by\x20its\x20nominal\x20length\x20even\x20while\x20the\x20period\x20is\x20still\x20running.','Print\x20the\x20numeric\x20value\x20of\x20every\x20visible\x20data\x20point\x20right\x20above\x20the\x20bar\x20/\x20line\x20/\x20point\x20—\x20like\x20ApexCharts\x20dataLabels.\x20Uses\x20the\x20entity\x27s\x20own\x20decimal\x20and\x20number-format\x20settings.\x20Text\x20is\x20drawn\x20in\x20the\x20entity\x20color\x20with\x20a\x20card-background\x20halo\x20for\x20readability.\x20Best\x20paired\x20with\x20reasonable\x20point\x20counts;\x20dense\x20charts\x20produce\x20overlapping\x20labels.','_savedScrollLeft','y_grid_style','\x22\x20stroke-width=\x221\x22\x20stroke-dasharray=\x223,3\x22\x20opacity=\x220.6\x22/>','documentElement','><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22\x20style=\x22font-size:10px\x22>','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x20mt8\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_min\x22\x20type=\x22checkbox\x22\x20','Stacked','Last\x2030\x20Days','computeMovingAverages','<div\x20class=\x22sgc-state-row-group\x22>','object','card_border_color','_pieSlices','\x22></div><div\x20class=\x22f\x22><label>','.e-risefall_increase','\x22\x20data-tab=\x22colors\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M12\x202.69l5.66\x205.66a8\x208\x200\x201\x201-11.31\x200z\x22/></svg>','Peak','flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap','\x20—\x20','card_header_weight','_collections','_resizeObserver','<foreignObject\x20width=\x22100%\x22\x20height=\x22100%\x22>','position:absolute;top:calc(100%\x20+\x204px);left:0;right:0;z-index:100;max-height:260px;overflow:auto;background:var(--bg);border:1px\x20solid\x20var(--bd);border-radius:8px;box-shadow:0\x206px\x2024px\x20rgba(0,0,0,.25);padding:4px;display:none','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_attribute_list\x22\x20type=\x22checkbox\x22\x20','lttbDownsample','Y\x20Label\x20Color','scrollWidth','absolute','</label><div\x20class=\x22sw\x22><select\x20id=\x22crosshair_pins\x22>','Show\x20Values','\x22\x20data-tab=\x22appearance\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x223\x2017\x209\x2011\x2013\x2015\x2021\x207\x22/></svg>','_autoHideForce','_resolveTemplate','&filter_entity_id=','show_now_line','_computeXAxisTicksAuto','\x22></div><div\x20class=\x22f\x20ma-lbl-f\x22><label>','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.','Custom','amber','roundRect','Extended\x20Window','getDay','sgc-interval-sync-request','Header\x20letter\x20spacing.\x20Accepts\x20a\x20number\x20(treated\x20as\x20px)\x20or\x20any\x20CSS\x20value\x20like\x200.5px,\x20normal,\x20-0.02em.\x20Leave\x20empty\x20for\x20theme\x20default.','graph_type','</span></div>','</label><div\x20class=\x22sw\x22><select\x20id=\x22default_interval\x22>','get','_pinchWired','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-tt-time\x22>','<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22zoom_sync\x22\x20type=\x22checkbox\x22\x20','.sgc-tooltip','size','sensor.xxx_battery','</b>\x22</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-stub-hint\x22>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','aggregate_func','X-axis\x20settings\x20are\x20hidden\x20in\x20sparkline\x20mode','<option\x20value=\x22','</label><div\x20class=\x22ci\x22><input\x20id=\x22card_background_color\x22\x20type=\x22text\x22\x20placeholder=\x22','title','Unknown\x20chart\x20mode','State','Hard\x20or\x20soft\x20minimum\x20for\x20the\x20primary\x20Y\x20axis.\x20Enter\x20a\x20number\x20for\x20a\x20hard\x20bound\x20(axis\x20never\x20goes\x20below).\x20Prefix\x20with\x20~\x20for\x20soft\x20(e.g.\x20~0)\x20—\x20axis\x20expands\x20if\x20data\x20goes\x20below.\x20Also\x20accepts\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound\x20that\x20follows\x20another\x20sensor.','Upper\x20Bound\x20Y2','_priceLookupFor','classic','data:image/svg+xml;charset=utf-8,','Override\x20the\x20global\x20Points/Hour\x20setting\x20for\x20this\x20entity\x20only.\x20Higher\x20=\x20more\x20detail\x20but\x20more\x20HA\x20API\x20load.\x20Leave\x20empty\x20to\x20inherit\x20the\x20card-level\x20setting.','font-weight:','Samples','y_grid_color','statistics-graph-chart-card','download','H-band','sgc-area\x20sgc-seg-area','render_template','Optional\x20attribute\x20path\x20on\x20the\x20reference\x20entity\x20(dot\x20notation),\x20e.g.\x20temperature\x20on\x20a\x20weather\x20entity.\x20Leave\x20empty\x20to\x20use\x20its\x20state.','dp-label-past','pad2','_zoomHistory','DEFAULTS','y_axis_label','Last\x2015\x20days','isIntersecting','endsWith','sgc-fill-height','<div\x20class=\x22sgc-dp-cal-empty\x22></div>','prom','_applyTemplatedBools','.sgc-legend-wrap','rise_fall_colors','_computeEffectiveWindow','_dpExpanded','Now\x20Line','Epoch\x20milliseconds','var(--secondary-text-color,\x20#95a5a6)','Background\x20color\x20of\x20the\x20extrema\x20label\x20box.\x20Combined\x20with\x20Background\x20Opacity\x20below\x20—\x20set\x20opacity\x20to\x200\x20to\x20show\x20only\x20the\x20text\x20without\x20a\x20background.','.sgc-state-row','.e-legend_min','var(--ha-card-background,\x20var(--card-background-color,\x20var(--primary-background-color,\x20#1c1c1c)))','</label><div\x20class=\x22ci\x22><input\x20class=\x22thr-col\x22\x20type=\x22text\x22\x20value=\x22','_quantile','.tab-badge','\x22></span><span\x20class=\x22sgc-pie-tt-name\x22\x20style=\x22max-width:none\x22>','_cpdDocBound',':host\x20{\x20display:\x20block;\x20font-family:\x20','_resolvedCardBgRgb','Percentage','date_picker_step','</label><input\x20class=\x22ann-val2\x22\x20type=\x22text\x22\x20placeholder=\x222026-01-15T18:00:00\x22\x20value=\x22','-picker','compare','cmp-hol','Attribute','_haColorMap','</div><label\x20class=\x22ms\x22><input\x20class=\x22e-show_line\x22\x20type=\x22checkbox\x22\x20','Annotations','\x0a\x20\x20\x20\x20','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22cmp-hol\x22\x20type=\x22checkbox\x22\x20','::inv','Fills\x20the\x20area\x20below\x20this\x20ghost\x27s\x20line\x20with\x20a\x20faded\x20version\x20of\x20its\x20color.\x20Off\x20by\x20default\x20so\x20overlapping\x20periods\x20stay\x20readable.','show_delta','_lastUpdateDoneTs','font-weight:600','.e-show_state_last','Slice\x20Label\x20Size','.sgc-legend-item','_pushViewWindow','pph_picker_group','ybnd:','Time\x20span','\x22\x20data-label=\x22','mousedown','horizontal','\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22></div></div>','_renderAttributeList','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>','.sgc-qp-select','Minutes','orange','code','dSig','\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','Both','22px','#000000','styling','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x2222\x207\x2013.5\x2015.5\x208.5\x2010.5\x202\x2017\x22/><polyline\x20points=\x2216\x207\x2022\x207\x2022\x2013\x22/></svg>','carryStateInGaps','</label><div\x20class=\x22ci\x22><input\x20id=\x22card_header_color\x22\x20type=\x22text\x22\x20placeholder=\x22',';\x20}','sgc-grid','last_180d','7216472fqFhjh','</label><div\x20class=\x22ci\x22><input\x20id=\x22y_axis_color\x22\x20type=\x22text\x22\x20placeholder=\x22','brown','<div\x20class=\x22sgc-state-align-left\x22>','_initialRender','nodeType','donut','.ann-type','Count','Shows\x20a\x20floating\x20info\x20box\x20with\x20exact\x20values\x20when\x20hovering.','</textarea>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>','mouseleave','.cst','_valueChanged','visibilityState','data-axis-side','</label><div\x20class=\x22sw\x22><select\x20id=\x22datetime_format\x22>','\x20.ann-list,\x20.ma-list,\x20.thr-list,\x20.cmp-list,\x20.asr-list','sgc-bar','font-size:10px;color:var(--ts);margin:6px\x202px\x208px','_collectThrRefs','Stroke\x20thickness\x20of\x20the\x20now\x20line\x20in\x20pixels.\x20Default\x20is\x200.5.\x20Accepts\x20decimals\x20like\x201.5.','Last\x202Y','delete','linearGradient','No\x20moving\x20averages\x20yet','<svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22>','</span></div></label></div></div></div><div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>','_cols','cmp-col-pick','Opacity\x20of\x20Y-axis\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.65.','_drillBucketAt','activeElement','_abort','_entityNeedsHourlyFor','\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-cal-header\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22sgc-dp-cal-nav\x22\x20data-dp-cal=\x22-1\x22\x20aria-label=\x22','applyPreBucketTransforms','</label><div\x20class=\x22ha-entity-picker-wrap\x22\x20style=\x22min-height:56px\x22\x20data-battery=\x22','Hours\x20to\x20Show','.sgc-zoom-brush-label-left','line','--primary-font-family','(all\x20together)','<line\x20x1=\x22','\x22\x20style=\x22width:100%;font-family:monospace;font-size:11px\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22mt8\x22><div\x20class=\x22f\x22><label>','text-anchor','val','padL','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20cstc\x20','nodeName','Where\x20the\x20value\x20is\x20drawn\x20relative\x20to\x20the\x20gauge\x20—\x20below\x20(default)\x20or\x20above\x20the\x20dial,\x20clear\x20of\x20the\x20arc\x20and\x20needle.','Graph\x20Start','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-number_format\x22>','Reference\x20Year','Median','e-entity','Avg\x20','_zoomResetBtn','show_in_legend','Chart\x20Mode','tooltip_name','\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>','<div\x20class=\x22fg0\x20mt8\x22><label>','rawV','#e91e63','sgc-ann-label\x20sgc-ann-event-label','Share','2095OAscwn','0px','</span><span\x20class=\x22sgc-legend-pin\x22\x20data-pin-for=\x22','</label><div\x20class=\x22ci\x22><input\x20id=\x22pie_label_color\x22\x20type=\x22text\x22\x20placeholder=\x22','Switches\x20the\x20Y\x20axis\x20to\x20a\x20logarithmic\x20scale.\x20Ideal\x20for\x20data\x20spanning\x20several\x20orders\x20of\x20magnitude\x20(e.g.\x201\x20to\x2010000).\x20Not\x20suitable\x20for\x20zero\x20or\x20negative\x20values.','Maximum\x20visible\x20time\x20range\x20in\x20hours.\x20When\x20set\x20and\x20smaller\x20than\x20Hours\x20to\x20Show,\x20the\x20graph\x20becomes\x20horizontally\x20scrollable.','var(--error-color,\x20#ef5350)','3,3','visibility','<button\x20class=\x22sgc-dp-preset\x20','sgc-h32','lineJoin',',0)','show_trend_icon','\x20style=\x22opacity:0.6\x22','scroll_sync','Horizontal\x20position\x20of\x20the\x20‹\x20period\x20›\x20navigator\x20inside\x20the\x20picker\x20bar\x20—\x20left,\x20center,\x20or\x20right.\x20If\x20it\x20shares\x20a\x20position\x20with\x20the\x20shortcuts,\x20the\x20navigator\x20is\x20placed\x20first,\x20to\x20their\x20left.','></div></div><div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>','.e-name','unclosed\x20{','px\x20','14px','Event','Date\x20Format','How\x20numbers\x20are\x20formatted.\x20System\x20=\x20follow\x20HA\x20locale\x20setting.\x20Comma\x20=\x20European\x20style\x20(1.234,56).\x20Dot\x20=\x20American\x20style\x20(1,234.56).','No\x20data\x20to\x20build\x20calendar.','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22crosshair\x22\x20type=\x22checkbox\x22\x20','stroke-dasharray','sort','show_range_band','</span></div></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sgc-pins','reverse_subtract','mean','recorder/statistics_during_period','How\x20strong\x20the\x20fill\x20under\x20the\x20line\x20is,\x20from\x200\x20(invisible)\x20to\x201\x20(solid).\x20Leave\x20empty\x20for\x20the\x20default\x200.4.\x20With\x20Gradient\x20on\x20this\x20is\x20the\x20opacity\x20at\x20the\x20top,\x20fading\x20down\x20to\x20an\x20eighth\x20of\x20it\x20at\x20the\x20bottom;\x20with\x20Gradient\x20off\x20the\x20flat\x20fill\x20uses\x20half\x20of\x20it.','Time\x20window\x20in\x20hours\x20for\x20trend\x20direction\x20calculation.\x20The\x20slope\x20across\x20the\x20last\x20N\x20hours\x20determines\x20whether\x20the\x20icon\x20shows\x20▲\x20(rising),\x20▼\x20(falling),\x20or\x20⯇⯈\x20(stable).\x20Set\x20to\x200\x20to\x20use\x20the\x20full\x20displayed\x20range.\x20Decimals\x20are\x20allowed\x20(e.g.\x200.5\x20=\x2030\x20min,\x200.25\x20=\x2015\x20min)\x20—\x20but\x20the\x20window\x20must\x20still\x20contain\x20at\x20least\x202\x20data\x20points,\x20otherwise\x20it\x20stays\x20stable.','order','<span\x20class=\x22sgc-state-timestamp\x22\x20style=\x22margin-left:6px;font-size:0.72em;opacity:0.65;font-weight:400\x22>','Reset\x20Zoom','_energyStart','_persistIntervalPicker','Above','idx','4612670XyyXXl','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','Auto','</select></div></div><div\x20class=\x22f\x22','Value','Lower\x20Bound\x20Y2','_editorTplKey','radar','General','setSeconds','rgba(0,0,0,0.2)','tStart','.sgc-plot','_draw','forEach','_broadcastQuerySync','Compute\x20each\x20point\x20value\x20with\x20a\x20safe\x20arithmetic\x20expression\x20instead\x20of\x20reading\x20a\x20single\x20Value\x20Field.\x20In\x20scope:\x20the\x20array\x20element\x20fields\x20(e.g.\x20unitPrice,\x20consumption)\x20plus\x20any\x20names\x20defined\x20in\x20Data\x20Vars\x20below.\x20Operators\x20+\x20-\x20*\x20/\x20%\x20and\x20parentheses,\x20and\x20functions\x20min,\x20max,\x20abs,\x20round,\x20floor,\x20ceil,\x20sqrt,\x20pow.\x20Example:\x20(unitPrice\x20-\x20unitPriceVAT)\x20*\x20100\x20*\x20consumption\x20*\x20(1\x20+\x20mwst).\x20Not\x20JavaScript\x20-\x20no\x20other\x20variables,\x20properties\x20or\x20calls.\x20Falls\x20back\x20to\x20Value\x20Field\x20when\x20empty\x20or\x20invalid.','_ohlc','selectionStart','finally','pie_center_font_size','&minimal_response&no_attributes','background:transparent','_startEnergyDateSync','</label><div\x20class=\x22sw\x22><select\x20id=\x22duration_unit\x22>','</label><input\x20class=\x22e-trend_icon_size\x22\x20type=\x22text\x22\x20placeholder=\x2212px\x22\x20value=\x22','translate','.e-stack_group','_cache','Which\x20axis\x20the\x20threshold\x20colors\x20are\x20painted\x20along.\x20Vertical\x20=\x20Y-axis\x20gradient\x20(colors\x20map\x20to\x20value\x20positions\x20on\x20chart\x20height).\x20Horizontal\x20=\x20per-segment\x20coloring\x20along\x20the\x20time\x20axis.','tab','\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','\x20takes\x202+\x20args','.ma-add','day_of_year','\x22><span\x20class=\x22u\x22>°</span></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20id=\x22pie_3d\x22\x20type=\x22checkbox\x22\x20','Opacity\x20of\x20the\x20X-axis\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.5.','var(--primary-color,\x20#378ADD)','sgc-y-tick','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-chevron\x22><svg\x20width=\x2216\x22\x20height=\x2216\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><polyline\x20points=\x226\x209\x2012\x2015\x2018\x209\x22/></svg></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>','number.','_onScrollSyncEvent','_prep','fEnt','setLineDash','thickness','<div\x20class=\x22cs\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M3\x2012\x207\x2012\x2010\x205\x2014\x2019\x2017\x2012\x2021\x2012\x22/></svg>','.panel','columns','Compare\x20With','Entity','<span\x20class=\x22sgc-battery-wrap\x22\x20style=\x22font-size:','rgba(0,0,0,0.4)','_dpCalYear','rgba(255,255,255,0.55)','show_y_ticks','selected','statistic_id','mapped','<div\x20class=\x22sgc-tt-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','var(--secondary-text-color)','invert','</select></div></div><div\x20class=\x22f\x22>','\x22\x20data-panel=\x22main\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-header\x22\x20data-toggle=\x22main\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-icon\x22><svg\x20width=\x2218\x22\x20height=\x2218\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22><circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x223\x22/><path\x20d=\x22M19.4\x2015a1.65\x201.65\x200\x200\x200\x20.33\x201.82l.06.06a2\x202\x200\x200\x201\x200\x202.83\x202\x202\x200\x200\x201-2.83\x200l-.06-.06a1.65\x201.65\x200\x200\x200-1.82-.33\x201.65\x201.65\x200\x200\x200-1\x201.51V21a2\x202\x200\x200\x201-2\x202\x202\x202\x200\x200\x201-2-2v-.09A1.65\x201.65\x200\x200\x200\x209\x2019.4a1.65\x201.65\x200\x200\x200-1.82.33l-.06.06a2\x202\x200\x200\x201-2.83\x200\x202\x202\x200\x200\x201\x200-2.83l.06-.06A1.65\x201.65\x200\x200\x200\x204.68\x2015a1.65\x201.65\x200\x200\x200-1.51-1H3a2\x202\x200\x200\x201-2-2\x202\x202\x200\x200\x201\x202-2h.09A1.65\x201.65\x200\x200\x200\x204.6\x209a1.65\x201.65\x200\x200\x200-.33-1.82l-.06-.06a2\x202\x200\x200\x201\x200-2.83\x202\x202\x200\x200\x201\x202.83\x200l.06.06A1.65\x201.65\x200\x200\x200\x209\x204.68a1.65\x201.65\x200\x200\x200\x201-1.51V3a2\x202\x200\x200\x201\x202-2\x202\x202\x200\x200\x201\x202\x202v.09a1.65\x201.65\x200\x200\x200\x201\x201.51\x201.65\x201.65\x200\x200\x200\x201.82-.33l.06-.06a2\x202\x200\x200\x201\x202.83\x200\x202\x202\x200\x200\x201\x200\x202.83l-.06.06A1.65\x201.65\x200\x200\x200\x2019.4\x209a1.65\x201.65\x200\x200\x200\x201.51\x201H21a2\x202\x200\x200\x201\x202\x202\x202\x202\x200\x200\x201-2\x202h-.09a1.65\x201.65\x200\x200\x200-1.51\x201z\x22/></svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-title\x22>','asr-up','start_time','</span><span\x20class=\x22sgc-pie-tt-val\x22>','Colors','--primary-color','calendarGroup','stroke-width:3','data-tc','timestamp','\x20in\x20this\x20configuration\x20(statistic_id-only\x20or\x20attribute\x20series,\x20group_by:\x20raw,\x20strips,\x20box/histogram\x20raw\x20modes).\x20Use\x20multiply/divide,\x20switch\x20the\x20aggregation\x20to\x20a\x20level\x20(avg/min/max/last/first/median),\x20or\x20configure\x20the\x20series\x20with\x20entity:\x20and\x20a\x20bucketed\x20chart.','_liveBuffer','extrema_bg_opacity','devices','state_class','\x22><span\x20class=\x22u\x22>°</span></div></div></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-bar\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-zone\x20dp-zone-left\x22>','clip-path','</option><option\x20value=\x22manual\x22\x20','_isHistoryAggregated','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','Italiano','comma','<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22background:','data-band-x','_isCardFieldRelevantForMode','Dansk','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22\x20style=\x22color:','devicePixelRatio','Delete','groupPoints','_pendingSlide','_querySyncRequestHandler','Y2\x20Axis\x20Label','</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','anim','</span></div></label></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','90D','<div\x20class=\x22sgc-spark-row\x22\x20data-idx=\x22','globalAlpha','sgc-base','<span\x20class=\x22ds-badge\x20ds-lts\x22\x20title=\x22','<span\x20style=\x22font-size:9px;font-weight:700;opacity:0.4;margin-right:6px;letter-spacing:.05em\x22>','.asr-del','dddd','.tc','.e-data_time_field','</div><label\x20class=\x22ms\x22><input\x20class=\x22e-show_in_legend\x22\x20type=\x22checkbox\x22\x20','Donut','<div\x20class=\x22overlay-row\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22tooltip_sync\x22\x20type=\x22checkbox\x22\x20','\x22><input\x20id=\x22pie_label_color_pick\x22\x20type=\x22color\x22\x20value=\x22','y_axis_font_opacity','Low\x20Threshold','</label><div\x20class=\x22iu\x22><input\x20id=\x22y_axis_font_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22','isNaN','sgc-ann-band','</label><div\x20class=\x22ci\x22><input\x20id=\x22y_grid_color\x22\x20type=\x22text\x22\x20placeholder=\x22','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_zoom_buttons\x22\x20type=\x22checkbox\x22\x20','Up\x20to\x20(hours)','&lt;','color','mousemove','entities','<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22\x20style=\x22max-width:160px\x22><label>','padT','_resetAggWarned','Auto\x20(unit)','_pollTimer','</div><div\x20class=\x22sg\x22>','Label','_fpSettleT','[sgc]\x20ref_entity\x20\x22','<button\x20class=\x22sgc-dp-reset\x22\x20aria-label=\x22','_fillRaf','.ann-opacity','all','_applyEditorSearch','.sgc-dp-toggle','sgc-hf:','tailToMs','align','lttbGapAware','Ignore\x20transient\x20zeros','Scrollbar\x20=\x20visible\x20scrollbar\x20at\x20the\x20bottom.\x20Wheel\x20=\x20mouse\x20wheel\x20scrolls\x20horizontally.','<div\x20class=\x22sgc-legend\x20position-','&#039;','pie_label_color','mapY','Horizontal\x20alignment\x20of\x20the\x20title\x20—\x20left,\x20center,\x20or\x20right.\x20Combined\x20with\x20Icon\x20Position\x20to\x20determine\x20layout\x20zones.','server','_tplPendingSubs','\x22></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','Height\x20in\x20pixels\x20of\x20each\x20state-strip\x20band\x20under\x20the\x20X\x20axis.\x20Empty\x20=\x2016.\x20Range\x206–60;\x20rows\x20shrink\x20automatically\x20when\x20the\x20card\x20is\x20too\x20short.','x_axis_color','rgba(255,255,255,0.85)','Bar','trigger','\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-battery-pct\x22\x20style=\x22color:','.e-upper_bound','calendar','0.6','(sums\x20accumulation\x20across\x20resets)\x20or\x20\x22max\x22\x20(daily\x20peak).','Gauge','_drawMovingAverages','ddd\x20DD/MM',');\x20falling\x20back\x20to\x20data_value_field.','</label><input\x20id=\x22lower_bound_secondary\x22\x20type=\x22text\x22\x20placeholder=\x220,\x20~0\x20or\x20sensor.x\x22\x20value=\x22','\x22\x20draggable=\x22true\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22currentColor\x22><circle\x20cx=\x229\x22\x20cy=\x225\x22\x20r=\x221.5\x22/><circle\x20cx=\x2215\x22\x20cy=\x225\x22\x20r=\x221.5\x22/><circle\x20cx=\x229\x22\x20cy=\x2212\x22\x20r=\x221.5\x22/><circle\x20cx=\x2215\x22\x20cy=\x2212\x22\x20r=\x221.5\x22/><circle\x20cx=\x229\x22\x20cy=\x2219\x22\x20r=\x221.5\x22/><circle\x20cx=\x2215\x22\x20cy=\x2219\x22\x20r=\x221.5\x22/></svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ecd\x22\x20style=\x22background:','Locale','Draw\x20order.\x20Higher\x20=\x20drawn\x20in\x20front,\x20on\x20top\x20of\x20lower-numbered\x20entities;\x20lower\x20or\x20negative\x20=\x20sent\x20behind.\x20Default\x200\x20keeps\x20the\x20configuration\x20order.\x20Independent\x20of\x20the\x20legend\x20/\x20state-row\x20order,\x20so\x20you\x20can\x20bring\x20a\x20curve\x20to\x20the\x20front\x20or\x20back\x20without\x20reordering\x20the\x20entities.\x20YAML\x20key:\x20z_index.','.tip-wrap','\x22\x20fill=\x22none\x22\x20','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22tooltip_stacked_total\x22\x20type=\x22checkbox\x22\x20','x_axis_date_color','_sgcCp','rise_fall_colors\x20and\x20color_thresholds\x20cannot\x20both\x20be\x20enabled\x20for\x20','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.','above','Grouping\x20for\x20this\x20entity\x20only:\x20hour,\x20N\x20hours,\x20date,\x20week,\x20month\x20or\x20year.\x20Inherit\x20uses\x20the\x20card\x27s\x20Group\x20By.\x20The\x20chart\x27s\x20time\x20grid\x20becomes\x20the\x20finest\x20grouping\x20in\x20use\x20(card\x20or\x20any\x20entity):\x20an\x20entity\x20grouped\x20coarser\x20than\x20the\x20grid\x20is\x20re-aggregated\x20into\x20larger\x20calendar\x20cells\x20drawn\x20on\x20that\x20grid\x20—\x20e.g.\x20monthly\x20bars\x20behind\x20daily\x20values\x20—\x20and\x20an\x20entity\x20grouped\x20finer\x20than\x20the\x20card\x20makes\x20the\x20whole\x20chart\x27s\x20grid\x20finer.\x20Not\x20available\x20while\x20the\x20card\x20is\x20grouped\x20by\x20raw.','show_zoom_buttons','Español','X\x20Label\x20Size','pie_spacing','</label><input\x20class=\x22e-name_size\x22\x20type=\x22text\x22\x20placeholder=\x2214px\x22\x20value=\x22','color_thresholds','<div\x20class=\x22cs\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M3\x2017\x209\x2011\x2013\x2015\x2021\x207\x22/><path\x20d=\x22M3\x2021\x209\x2015\x2013\x2019\x2021\x2011\x22\x20opacity=\x220.5\x22/></svg>','_renderDatePicker','Points/Hour\x20Picker','group','\x22\x20y1=\x22','.e-extrema_show_timestamp','.e-','barH','\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22card_shadow\x22\x20type=\x22checkbox\x22\x20','Search\x20settings','_on','[sgc]\x20value_transform\x20compiled\x20without\x20the\x20time\x20arguments:','Scroll\x20Mode','--secondary-text-color','\x22\x20style=\x22width:100%;font-family:monospace;font-size:11px\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','value_factor','sourceId','data-trend','Header\x20Weight','0.75','getUTCHours','The\x20','Icon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','name','_resolveThrRef','charAt','_drawStateStrips','\x22><span\x20class=\x22u\x22>h</span></div></div><div\x20class=\x22f\x22><label>','moving_averages','focusin','Axis\x20Labels','_hasCandlestick','mdi:chart-line','[sgc]\x20data_value_expression\x20on\x20','show_interval_picker','e-trend_stable_color','\x22\x20is\x20combined\x20bucket-by-bucket,\x20which\x20is\x20not\x20available\x20for\x20','_prepSeriesSamples','callApi','.sgc-dp-panel','move','freeze','fill=\x22','h:mm:ss','green','total','</label><div\x20class=\x22iu\x22><input\x20id=\x22date_picker_step\x22\x20type=\x22number\x22\x20min=\x221\x22\x20max=\x22365\x22\x20step=\x221\x22\x20value=\x22','Radar','</label><div\x20class=\x22ci\x22><input\x20class=\x22cmp-col\x22\x20type=\x22text\x22\x20placeholder=\x22auto\x22\x20value=\x22','\x22\x20height=\x22','sgc-axis-label\x20sgc-x-label','\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>','_teardownVisibilityWatch','Axis\x20Style','Thickness\x20of\x20horizontal\x20grid\x20lines\x20in\x20pixels.\x20Default\x20is\x201.\x20Accepts\x20decimals\x20like\x200.5.','.fg,\x20.fg0,\x20.cs','scroll_sync_group','Sep','Hour','_prevAnnotationStamps','Optional.\x20Match\x20one\x20of\x20the\x20entity\x27s\x20attributes\x20instead\x20of\x20its\x20state:\x20type\x20the\x20attribute\x20name\x20here\x20(e.g.\x20percentage)\x20and\x20the\x20value\x20to\x20match\x20in\x20State\x20(e.g.\x20100).\x20Dots\x20reach\x20nested\x20attributes.','hour_of_day','UTC','dataTransfer','_persistDatePicker','show_cell_values','never','sgc-plot-scroll-wheel','<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>','[data-mtc=\x22display\x22]','.sgc-card','show_y_axis','6\x20Hours','_________','<div\x20class=\x22sgc-state-battery-zone\x22><span\x20class=\x22sgc-battery-wrap\x20sgc-battery-in-states\x22\x20style=\x22font-size:','_priceEpoch','state_layout','pie','_getAxisStateMap','Chart\x20Settings','.e-show_timestamp','lastRaw','days','_onZoomSyncEvent','\x22><input\x20id=\x22card_border_color_pick\x22\x20type=\x22color\x22\x20value=\x22','createElementNS','Letter\x20Spacing','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-detail-legend-name\x22>',';object-fit:contain;\x22>','stroke-opacity:','Trend\x20Period','white','_resolveStateRowValue','change','_effectiveAnnotations','row','.ha-entity-picker-wrap','pie_center_color','Tue','_calendarEndpointNeedsHourly','Statistic\x20ID','config','.sgc-axis-label{font-size:10px;fill:','\x22></div></div></div><div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','ma-lbl','_annotationRefs','</span></div></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22\x20','threshold','gauge_span','logarithmic','startWin','smooth','\x22\x20text-anchor=\x22end\x22\x20font-size=\x2210\x22\x20fill=\x22','_nowStampMs','</label><div\x20class=\x22iu\x22><input\x20id=\x22now_line_width\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x225\x22\x20step=\x220.05\x22\x20placeholder=\x220.5\x22\x20value=\x22','_drawYAxis','</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-hide_name\x22\x20type=\x22checkbox\x22\x20','period','dpRollingDays','plain','Font\x20size\x20of\x20the\x20X-axis\x20time/date\x20labels\x20in\x20pixels.\x20Default\x20is\x2010.','--primary-background-color','_overrideHoursToShow','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22sparkline\x22\x20type=\x22checkbox\x22\x20','<span\x20class=\x22sgc-spark-unit\x22>','_processAnnotationRefChanges','<div\x20class=\x22sgc-dp-cal-hd\x22>','Download','Snaps\x20the\x20start\x20of\x20the\x20graph\x20window\x20to\x20a\x20calendar\x20boundary.\x20Today\x20=\x20start\x20from\x20today\x2000:00\x20(ideal\x20for\x20showing\x20a\x20full\x2024h\x20of\x20today,\x20e.g.\x20Nord\x20Pool\x20hourly\x20prices\x20with\x20today_hourly\x20attribute\x20—\x20use\x20with\x20Show\x20Full\x20Period).\x20Tomorrow\x20=\x20start\x20from\x20tomorrow\x2000:00\x20(for\x20forecast\x20data).\x20Week\x20=\x20Monday\x2000:00.\x20Month\x20=\x201st\x20of\x20the\x20month.\x20Year\x20=\x20January\x201st.\x20Overrides\x20hours_to_show.\x20When\x20the\x20interval\x20picker\x20is\x20active,\x20this\x20setting\x20is\x20ignored.','eSig','<span\x20class=\x22sgc-state-range\x22\x20style=\x22margin-left:6px;font-size:0.72em;opacity:0.65;font-weight:400\x22>(','<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>','</option><option\x20value=\x22dashed\x22\x20','indy:','</label><div\x20class=\x22iu\x22><input\x20class=\x22e-trend_period_hours\x22\x20type=\x22number\x22\x20min=\x220\x22\x20step=\x220.05\x22\x20value=\x22','click','</label><div\x20class=\x22sw\x22><select\x20class=\x22asr-pph\x22><option\x20value=\x22\x22\x20','_yearSlotSpan','><ha-icon\x20icon=\x22','Total','month_of_year','</label><div\x20class=\x22iu\x22><input\x20id=\x22x_grid_width\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x225\x22\x20step=\x220.05\x22\x20placeholder=\x221\x22\x20value=\x22','search','tot','data_time_unit','Dashed','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-gradient\x22\x20type=\x22checkbox\x22\x20','Custom\x20Name','_lastPriceRefetchTs','</label><div\x20class=\x22ci\x22><input\x20id=\x22card_border_color\x22\x20type=\x22text\x22\x20placeholder=\x22','.e-legend_sum','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-dp-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-header-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-ip-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-al-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-qp-wrap\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-state-wrap\x22\x20data-pos=\x22top\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-plot-wrap\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-plot\x22\x20style=\x22','show_extrema_max','</label><input\x20class=\x22ann-val2\x22\x20type=\x22text\x22\x20placeholder=\x220\x20or\x20sensor.x\x22\x20value=\x22','\x20L\x20','.e-show_fill','observe','config-changed','\x20L\x200\x20','string\x20in\x20arithmetic','light-green','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.','Server','</div></div>','info','\x20entity(s)\x20lack\x20long-term\x20statistics\x20','month','\x22><input\x20id=\x22scroll_sync_group\x22\x20type=\x22text\x22\x20placeholder=\x22','[statistics-graph-chart-card]\x20aggregate_func:\x20\x22','\x20off','stack_group','checked','last\x20year','_onAttributePick','en-US','MDI\x20icon\x20shown\x20in\x20the\x20state\x20row\x20to\x20the\x20left\x20of\x20the\x20entity\x20name.\x20Use\x20the\x20mdi:\x20prefix,\x20e.g.\x20mdi:thermometer.','Min\x20Y\x20Range','getMinutes','State\x20Map','ratio','3\x20Hours','MMM','⚠\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.','_autoHideApplied','save','\x5cb(?:var|let|const|function|class)\x5cs+','defs','visibilitychange','4\x20Hours','_emptyReasonByIdx','\x22\x20selected>','</span><select\x20class=\x22sgc-qp-select\x22\x20data-qp=\x22pph\x22>','every','\x200\x200\x201\x20','_lastRaw','add-entity','sequential','y_axis_format','Draw\x20the\x20state\x20name\x20(e.g.\x20Clear,\x20On,\x20Home)\x20inside\x20segments\x20wide\x20enough\x20to\x20fit\x20it.\x20Turn\x20off\x20for\x20a\x20clean\x20color-band\x20look.','<div\x20class=\x22sgc-tt-row\x22\x20style=\x22opacity:0.7;font-size:0.9em\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-swatch\x22\x20style=\x22visibility:hidden\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>O/H/L/C</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-val\x22>','.e-show_state','<div\x20class=\x22sgc-pie-container\x22\x20style=\x22position:relative;width:100%;height:','Point\x20Size','area_id','font-weight:500;opacity:0.8','<div\x20class=\x22f\x22></div>','_panEndT','rgba(0,0,0,0.05)','Stacks\x20entities\x20on\x20top\x20of\x20each\x20other\x20instead\x20of\x20overlapping.','min_bound_range_secondary','<div\x20class=\x22sgc-tt-row\x22\x20style=\x22opacity:0.55;font-size:0.9em\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_broadcastDatePickerSync','Local\x20(device)','sin','Aggregation','</select></div></div><div\x20class=\x22f\x22><label>','0,\x200,\x200','Polar\x20Area','sgc-data-labels','https://github.com/cataseven/statistics-graph-chart-card','_priceTrailTimer','_searchQ','rgba(0,0,0,0.08)','.sgc-bar','Show\x20the\x20time\x20the\x20extreme\x20value\x20was\x20recorded\x20below\x20each\x20label.\x20Disable\x20for\x20compact\x20display\x20showing\x20only\x20the\x20value.','Show\x20State\x20Labels','Vertical\x20label\x20shown\x20on\x20the\x20right\x20edge\x20of\x20the\x20graph.\x20Defaults\x20to\x20the\x20unit\x20of\x20the\x20first\x20secondary\x20entity.\x20Set\x20custom\x20text\x20to\x20override,\x20or\x20leave\x20empty\x20for\x20auto.','_computeWsTrackedKey','value_transform','DD/MM','_counterDayRowsSafe','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','sgc-grad-','sgc-strip-cell','</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','MM/DD\x20hh:mm\x20A','\x22\x20viewBox=\x220\x200\x20','rgba(128,128,128,0.8)','rgba(0,0,0,0.12)','appearance','</label><div\x20class=\x22iu\x22><input\x20id=\x22bar_spacing\x22\x20type=\x22number\x22\x20min=\x220\x22\x20step=\x221\x22\x20value=\x22','Area\x20names','data_source','\x20stroke-linejoin=\x22round\x22\x20stroke-linecap=\x22round\x22\x20vector-effect=\x22non-scaling-stroke\x22/>','</svg>','</label><input\x20id=\x22ranking_min_value\x22\x20type=\x22number\x22\x20step=\x22any\x22\x20placeholder=\x22','<div\x20class=\x22sgc-qp\x20align-','_formatAttrLabel','</label><div\x20class=\x22sw\x22><select\x20class=\x22e-thr_transition\x22>','startsWith','ddd','band','sgc-strip-title','_compareOf','percentage','Zoom\x20Buttons','std','Open\x20calendar','trend_period_hours','./translations/','scroll','floor','_stateTimelineLegendColors','Zoom\x20Out','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22eh\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ed\x22\x20title=\x22','grey','</label><div\x20class=\x22iu\x22><input\x20id=\x22state_strip_title_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2240\x22\x20step=\x221\x22\x20placeholder=\x2210\x22\x20value=\x22','</label><input\x20class=\x22e-price_attribute\x22\x20type=\x22text\x22\x20value=\x22','font','value_end','e-trend_down_color','querySelector','Epoch\x20seconds','</button><div\x20class=\x22hint\x22>Set\x20entity\x20color\x20to\x20<code>threshold</code>\x20to\x20propagate\x20threshold\x20colors\x20to\x20state\x20row\x20elements.</div></div></div>','Max\x20Value','_exportPngCard','.e-state_adaptive_color','.e-statistic_id','show_tooltip','Hide\x20entities\x20whose\x20value\x20falls\x20below\x20this\x20threshold.\x20Useful\x20for\x20ranking\x20energy\x20consumption\x20or\x20similar\x20metrics\x20where\x20idle\x20/\x20standby\x20devices\x20clutter\x20the\x20chart.\x20The\x20threshold\x20is\x20compared\x20against\x20the\x20absolute\x20value,\x20so\x20it\x20works\x20the\x20same\x20for\x20positive\x20and\x20negative\x20numbers.\x20Leave\x20empty\x20for\x20no\x20filter.','drawImage','waterfall','_getStatId','_pieItems','_wsGen','</label><div\x20class=\x22sw\x22><select\x20class=\x22ann-source\x22><option\x20value=\x22entity\x22\x20','setSelectionRange','Year\x20Before','</div><label\x20class=\x22ms\x22><input\x20class=\x22e-show_graph\x22\x20type=\x22checkbox\x22\x20','Shows\x20total\x20value\x20in\x20the\x20center\x20of\x20the\x20chart.\x20When\x20off,\x20Pie\x20becomes\x20a\x20full\x20pie\x20instead\x20of\x20donut.','dragend','type','Range\x20Band','var(--error-color,\x20#ef4444)','</select></div></div><input\x20id=\x22pph_picker_group\x22\x20class=\x22overlay-group-input\x22\x20type=\x22text\x22\x20placeholder=\x22','_precisePending','Solid','_onVisChange','[sgc]\x20query\x20pick\x20failed','reverse_divide','\x22\x20fill-opacity=\x220.32\x22\x20stroke=\x22','backgroundColor','float','includes','template','.thr-row','_renderId','Sparkline','</span><select\x20class=\x22sgc-qp-select\x22\x20data-qp=\x22gby\x22>','Icon\x20Position','isFinite','24H','attribute','lineWidth','\x22\x20on\x20','</label><div\x20class=\x22iu\x22><input\x20id=\x22y_grid_width\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x225\x22\x20step=\x220.05\x22\x20placeholder=\x221\x22\x20value=\x22','energy_collection_key','selectionEnd','></div><div\x20class=\x22f\x22><label>','Inherit\x20from\x20Custom\x20Name','deep-purple','Optional\x20attribute\x20path\x20on\x20the\x20price\x20entity\x20to\x20read\x20the\x20price\x20from\x20(dot\x20notation).\x20Leave\x20empty\x20to\x20use\x20its\x20state.','viewBox','width:100%;box-sizing:border-box;padding:8px\x2010px;border:1px\x20solid\x20var(--bd);border-radius:6px;background:var(--sf);color:var(--tx);font-size:12px;font-family:inherit;outline:none','textBaseline','Card\x20Settings','Visible\x20Window','configured\x20—\x20add,\x20reorder\x20and\x20customize','label','format','Price\x20Entity','stats','mtc','lower_bound','<div\x20class=\x22sgc-spark-graph\x22>','.ann-color','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ma-row\x22\x20data-row=\x22','_zoomByFactor','label_color','layout','200px','bar_corner_radius','\x20takes\x20','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','bottom-left','\x22></div></div>','gauge_columns','Feb','color:\x20','<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_timestamp\x22\x20type=\x22checkbox\x22\x20','Battery\x20percentage\x20below\x20which\x20the\x20icon\x20turns\x20red.\x20Default\x20is\x2020%.\x20Accepts\x20a\x20number,\x20entity\x20ID\x20(sensor.x),\x20or\x20entity\x20attribute\x20(sensor.x.attribute).','Low','<div\x20class=\x22sgc-qp-item\x22><span\x20class=\x22sgc-qp-lbl\x22>','subscribe','Download\x20PNG\x20(Chart)','Background\x20Blur','_fd','offsetHeight','last_24h','Native\x20also\x20brings\x20the\x20per-entity\x20legend\x20into\x20line:\x20its\x20names\x20and\x20values\x20use\x20the\x20theme\x27s\x20main\x20text\x20colour\x20at\x20full\x20strength,\x20instead\x20of\x20the\x20card\x27s\x20dimmer,\x20smaller\x20look.','pointerEvents','item','-picker\x22\x20type=\x22color\x22\x20value=\x22','\x20<span\x20style=\x22font-weight:400;text-transform:none;letter-spacing:0\x22>(non-numeric\x20→\x20numeric)</span></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22hint\x22\x20style=\x22margin-bottom:6px\x22>One\x20line\x20per\x20state,\x20as\x20<code>value,\x20label,\x20color</code>\x20—\x20label\x20and\x20color\x20are\x20optional.\x20Line\x20order\x20=\x20graph\x20value\x20(0,\x201,\x202…).\x20Color\x20accepts\x20any\x20CSS\x20color\x20(name,\x20hex,\x20or\x20var).\x20Examples:<br><code>off</code><br><code>on</code><br><code>off,\x20Stopped</code><br><code>on,\x20Working</code><br><code>Youtube,\x20YouTube,\x20red</code><br><code>Netflix,\x20Netflix,\x20#E50914</code></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<textarea\x20class=\x22e-state_map\x22\x20rows=\x223\x22\x20placeholder=\x22off,\x20Stopped&#10;on,\x20Working\x22\x20style=\x22width:100%;padding:8px\x2010px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:12px;font-family:monospace;resize:vertical;outline:none;transition:border-color\x20.15s\x22>','Damp\x20midnight\x20reset\x20artifacts','Width\x20and\x20height\x20of\x20the\x20icon.\x20Accepts\x20CSS\x20values\x20like\x2022px\x20or\x201.5rem.','_instanceKey','\x22><svg\x20width=\x2212\x22\x20height=\x2212\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2218\x22\x20y1=\x226\x22\x20x2=\x226\x22\x20y2=\x2218\x22/><line\x20x1=\x226\x22\x20y1=\x226\x22\x20x2=\x2218\x22\x20y2=\x2218\x22/></svg></button></div>','.ed','_tplBoolCard','median','disconnect','rk:','Min\x20Value','periods_back','rgba(255,255,255,0.7)','</label><div\x20class=\x22iu\x22><input\x20class=\x22e-extrema_font_size\x22\x20type=\x22number\x22\x20min=\x228\x22\x20max=\x2232\x22\x20step=\x221\x22\x20placeholder=\x2213\x22\x20value=\x22','pie_label_font_size','Opacity\x20of\x20X-axis\x20time\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.5.','_priceJobFetches','Chart\x20mode,\x20display\x20and\x20data\x20configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>','top','All\x20entities\x20are\x20below\x20the\x20threshold','Duration\x20Unit','<div\x20class=\x22ann-row\x22\x20data-ann=\x22','_resolvePreciseRecordTimes','Falling','</label><div\x20class=\x22iu\x22><input\x20id=\x22state_timeline_row_height\x22\x20type=\x22number\x22\x20min=\x2224\x22\x20max=\x22160\x22\x20step=\x221\x22\x20placeholder=\x22','Interval','</div><div\x20class=\x22f\x22><label>','<circle\x20cx=\x2211\x22\x20cy=\x2211\x22\x20r=\x227\x22/><line\x20x1=\x2220\x22\x20y1=\x2220\x22\x20x2=\x2216.7\x22\x20y2=\x2216.7\x22/><line\x20x1=\x228\x22\x20y1=\x2211\x22\x20x2=\x2214\x22\x20y2=\x2211\x22/>','.ann-val2','font-weight:500;pointer-events:none;','<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>','\x5cbfunction\x5cs*[A-Za-z0-9_$]*\x5cs*\x5c([^)]*\x5cb','sgc-spark-thr-'];_0x5469=function(){return _0x46b52b;};return _0x5469();}class PolarAreaRenderer extends BaseCanvasRenderer{constructor(_0x91d26d){const _0x5db3ed=_0x46af5e;super(_0x91d26d),this[_0x5db3ed(0x6e7)]=[],this[_0x5db3ed(0xb53)]=[],this['_animRaf']=0x0,this[_0x5db3ed(0x2a1)]=0x0;}[_0x46af5e(0x59c)](_0x78d5f7,_0x4c041d,_0x18b82e,_0xaae949){const _0x225c1b=_0x46af5e,{W:_0x4f281b,H:_0x2b069c}=this[_0x225c1b(0xa34)](_0x78d5f7,_0x18b82e),_0x556f95=this['card'][_0x225c1b(0xfef)]||[],_0x478920=[];_0x4c041d[_0x225c1b(0xd27)](_0x497ad1=>{const _0x38125a=_0x225c1b,_0xfb7ba2=this['_seriesEntity'](_0x497ad1,_0x556f95),_0x148777=(_0x497ad1[_0x38125a(0x93a)]||[])[_0x38125a(0x919)](_0x136fad=>_0x136fad['v']!==null&&_0x136fad['v']!==undefined),_0x210c8e=_0xaae949?.[_0x38125a(0x4f9)]?.[_0xfb7ba2[_0x38125a(0x974)]],_0x1c9754=_0xfb7ba2['aggregate_func']||_0x38125a(0xa5d);let _0x2f104c;if(_0x148777[_0x38125a(0xc02)])_0x2f104c=reduceByAggregate(_0x148777,_0x1c9754);else _0x210c8e?_0x2f104c=parseFloat(_0x210c8e[_0x38125a(0x5f5)]):_0x2f104c=0x0;if(_0x2f104c===undefined||_0x2f104c===null||isNaN(_0x2f104c))_0x2f104c=0x0;const _0x458dad=_0x497ad1['meta']||{},_0x339342=pickName(_0xfb7ba2[_0x38125a(0xce6)]!==undefined?_0xfb7ba2['tooltip_name']:_0xfb7ba2[_0x38125a(0xdee)],_0x458dad[_0x38125a(0x17e)]!==undefined&&_0xfb7ba2['tooltip_name']!==undefined?_0x458dad[_0x38125a(0x17e)]:_0x458dad[_0x38125a(0x40b)],_0x458dad)??_0xfb7ba2[_0x38125a(0x974)]??'?';_0x478920[_0x38125a(0xb31)]({'name':pickName(_0xfb7ba2[_0x38125a(0xdee)],_0x458dad['resolved_name'],_0x458dad)??'','tooltipName':_0x339342,'value':Math['abs'](_0x2f104c),'color':(_0xfb7ba2[_0x38125a(0xd95)]===_0x38125a(0xe42)?null:this[_0x38125a(0x1d2)]['_resolveCanvasColor'](_0xfb7ba2[_0x38125a(0xd95)],_0xfb7ba2[_0x38125a(0x974)])||_0xfb7ba2[_0x38125a(0xd95)])||_0x38125a(0x776),'unit':_0xfb7ba2[_0x38125a(0x32e)]||_0x458dad[_0x38125a(0x398)]||'','entity':_0xfb7ba2});});const {container:_0x339fd1,canvas:_0x480213,tooltipEl:_0x11f104}=this['_mountCanvas'](_0x78d5f7,_0x2b069c);if(!_0x480213)return;this[_0x225c1b(0x6e7)]=_0x478920,this[_0x225c1b(0x724)](_0x480213,_0x478920,_0x4f281b,_0x2b069c,_0x18b82e,_0xaae949,_0x339fd1,_0x11f104);}[_0x46af5e(0xd26)](_0xd40877,_0x4df239,_0x3e3fe4,_0x25e15b,_0x2a8b22,_0x4800d3,_0x42e179){const _0xf11072=_0x46af5e;if(_0x42e179===undefined)_0x42e179=0x1;const _0x3f7338=this[_0xf11072(0xbc8)](_0xd40877,_0x3e3fe4,_0x25e15b),_0x20a20a=this['_detectDark'](),_0x12e440=_0x20a20a?_0xf11072(0xdb7):_0xf11072(0x98d),_0x357dac=_0x20a20a?_0xf11072(0x7fb):_0xf11072(0x7d9),_0x2a3046=_0x20a20a?_0xf11072(0x907):_0xf11072(0x5c8),_0x37bbb2=this['_haFont'](),_0x988d2d=_0x4df239[_0xf11072(0xc02)];if(!_0x988d2d)return;const _0x421c5d=_0x4df239[_0xf11072(0x617)]((_0x4edbd7,_0x56fdc3)=>_0x4edbd7+_0x56fdc3[_0xf11072(0x2ea)],0x0),_0x4bf94c=Math[_0xf11072(0x220)](..._0x4df239[_0xf11072(0xb3f)](_0x13304c=>_0x13304c[_0xf11072(0x2ea)]));if(_0x4bf94c===0x0)return;const _0x408628=Math[_0xf11072(0xba1)](_0x25e15b-0x14,_0x3e3fe4-0x14),_0x2dc3c8=_0x408628/0x2*0.88,_0x487f9b=_0x3e3fe4/0x2,_0x1f6f32=_0x25e15b/0x2,_0x52dbef=Math['PI']*0x2/_0x988d2d,_0x24d6e5=0x4;_0x3f7338['globalAlpha']=_0x42e179;for(let _0x336b40=0x1;_0x336b40<=_0x24d6e5;_0x336b40++){const _0x2e368c=_0x2dc3c8*(_0x336b40/_0x24d6e5);_0x3f7338[_0xf11072(0xb64)](),_0x3f7338[_0xf11072(0x456)](_0x487f9b,_0x1f6f32,_0x2e368c,0x0,Math['PI']*0x2),_0x3f7338['strokeStyle']=_0x2a3046,_0x3f7338[_0xf11072(0xf10)]=0.8,_0x3f7338[_0xf11072(0x3c1)]();}_0x3f7338['globalAlpha']=0x1,this[_0xf11072(0xb53)]=[],_0x4df239[_0xf11072(0xd27)]((_0x112ad8,_0x22128b)=>{const _0x4457f1=_0xf11072,_0x2a9425=-Math['PI']/0x2+_0x22128b*_0x52dbef,_0x157afa=_0x2a9425+_0x52dbef,_0x71eae3=_0x2dc3c8*(_0x112ad8[_0x4457f1(0x2ea)]/_0x4bf94c)*_0x42e179;if(_0x71eae3<0.5){this[_0x4457f1(0xb53)][_0x4457f1(0xb31)]({'startAngle':_0x2a9425,'endAngle':_0x157afa,'r':_0x2dc3c8*(_0x112ad8[_0x4457f1(0x2ea)]/_0x4bf94c),'item':_0x112ad8,'cx':_0x487f9b,'cy':_0x1f6f32});return;}_0x3f7338[_0x4457f1(0xb64)](),_0x3f7338[_0x4457f1(0x811)](_0x487f9b,_0x1f6f32),_0x3f7338[_0x4457f1(0x456)](_0x487f9b,_0x1f6f32,_0x71eae3,_0x2a9425,_0x157afa),_0x3f7338[_0x4457f1(0x9f8)]();let _0x191def=_0x112ad8[_0x4457f1(0xd95)];const _0x450398=_0x112ad8[_0x4457f1(0x974)];_0x450398?.['color_thresholds']?.[_0x4457f1(0x1007)]&&_0x450398[_0x4457f1(0xdd5)][_0x4457f1(0x202)]?.[_0x4457f1(0xc02)]&&(_0x191def=resolveValueColor(_0x112ad8[_0x4457f1(0x2ea)],this['card'][_0x4457f1(0x83c)](_0x450398),_0x191def));_0x3f7338[_0x4457f1(0x20c)]=_0x191def,_0x3f7338['globalAlpha']=0.7,_0x3f7338[_0x4457f1(0x290)](),_0x3f7338[_0x4457f1(0xd80)]=0x1,_0x3f7338['strokeStyle']=_0x20a20a?_0x4457f1(0x6c5):_0x4457f1(0x62b),_0x3f7338[_0x4457f1(0xf10)]=1.5,_0x3f7338[_0x4457f1(0x3c1)]();const _0x1e4e3b=_0x2a9425+_0x52dbef/0x2,_0x1e32f0=Math[_0x4457f1(0x220)](_0x71eae3*0.6,_0x2dc3c8*0.25),_0x4798d7=_0x487f9b+Math[_0x4457f1(0x576)](_0x1e4e3b)*_0x1e32f0,_0xad2029=_0x1f6f32+Math[_0x4457f1(0xeac)](_0x1e4e3b)*_0x1e32f0,_0x1f6792=_0x421c5d>0x0?_0x112ad8[_0x4457f1(0x2ea)]/_0x421c5d*0x64:0x0;if(_0x1f6792>=0x4&&_0x42e179>=0.999){const _0x26a9da=Math[_0x4457f1(0xba1)](0xb,Math['max'](0x8,_0x2dc3c8*0.1));_0x3f7338['fillStyle']='rgba(255,255,255,0.95)',_0x3f7338[_0x4457f1(0xee3)]=_0x4457f1(0x821)+_0x26a9da+_0x4457f1(0xd01)+_0x37bbb2,_0x3f7338['textAlign']=_0x4457f1(0x942),_0x3f7338['textBaseline']=_0x4457f1(0x6d4);const _0x5128f9=toNum(_0x112ad8[_0x4457f1(0x974)]?.[_0x4457f1(0xbcf)])??0x0;_0x3f7338[_0x4457f1(0xa74)](_0x1f6792['toFixed'](_0x5128f9)+'%',_0x4798d7,_0xad2029);}this[_0x4457f1(0xb53)][_0x4457f1(0xb31)]({'startAngle':_0x2a9425,'endAngle':_0x157afa,'r':_0x2dc3c8*(_0x112ad8[_0x4457f1(0x2ea)]/_0x4bf94c),'item':_0x112ad8,'cx':_0x487f9b,'cy':_0x1f6f32});});if(_0x2a8b22[_0xf11072(0x74f)]!==![]&&_0x42e179>=0.999){_0x3f7338[_0xf11072(0x20c)]=_0x12e440,_0x3f7338[_0xf11072(0xee3)]='500\x20'+Math[_0xf11072(0xba1)](0x10,_0x2dc3c8*0.25)+_0xf11072(0xd01)+_0x37bbb2,_0x3f7338[_0xf11072(0x3b1)]=_0xf11072(0x942),_0x3f7338[_0xf11072(0xf1b)]='middle';const _0x1c1112=_0x4df239[0x0]?.[_0xf11072(0x32e)]||'',_0x1bb2fe=_0x4df239[0x0]?.[_0xf11072(0x974)]||{'decimals':0x1};_0x3f7338[_0xf11072(0xa74)](formatNumber(_0x421c5d,_0x1bb2fe,_0x4800d3)+(_0x1c1112?'\x20'+_0x1c1112:''),_0x487f9b,_0x1f6f32-0x5),_0x3f7338[_0xf11072(0x20c)]=_0x357dac,_0x3f7338[_0xf11072(0xee3)]=Math[_0xf11072(0xba1)](0xa,_0x2dc3c8*0.14)+_0xf11072(0xd01)+_0x37bbb2,_0x3f7338[_0xf11072(0xa74)](cardT(this['card']?.['_hass'],this[_0xf11072(0x1d2)]?.[_0xf11072(0xfe9)],_0xf11072(0xe62)),_0x487f9b,_0x1f6f32+0x9);}}['_setupTooltip'](_0x372960,_0x30f896,_0xbb462a,_0x10ff77){const _0x43bb12=_0x46af5e;if(!_0x30f896||!_0x372960||_0xbb462a[_0x43bb12(0xeed)]===![]||!this[_0x43bb12(0xb53)]?.['length'])return;const _0x3856f4=this['_abort'][_0x43bb12(0x5fe)],_0x4df911=_0x393a4e=>{const _0x47db36=_0x43bb12,_0x1ce5c7=_0x372960[_0x47db36(0x9cc)](),_0x4de632=_0x393a4e['clientX']-_0x1ce5c7['left'],_0x30f15b=_0x393a4e['clientY']-_0x1ce5c7['top'];let _0x1595e6=null;for(const _0x24689a of this['_slices']){const _0x2540ed=_0x4de632-_0x24689a['cx'],_0x1f20b8=_0x30f15b-_0x24689a['cy'],_0x20103f=Math[_0x47db36(0x2ed)](_0x2540ed*_0x2540ed+_0x1f20b8*_0x1f20b8);if(_0x20103f>_0x24689a['r'])continue;let _0x51c81f=Math[_0x47db36(0xa6e)](_0x1f20b8,_0x2540ed);if(_0x51c81f<-Math['PI']/0x2)_0x51c81f+=Math['PI']*0x2;if(_0x51c81f>=_0x24689a[_0x47db36(0x93b)]&&_0x51c81f<_0x24689a[_0x47db36(0xa33)]){_0x1595e6=_0x24689a;break;}}if(!_0x1595e6){_0x30f896[_0x47db36(0x944)][_0x47db36(0x7a2)]='0';return;}const _0xb6ac1f=this[_0x47db36(0x6e7)][_0x47db36(0x617)]((_0x49252e,_0x1a19af)=>_0x49252e+_0x1a19af[_0x47db36(0x2ea)],0x0),_0x27e620=toNum(_0x1595e6[_0x47db36(0xf40)][_0x47db36(0x974)]?.[_0x47db36(0xbcf)])??0x1,_0x20d3b2=_0xb6ac1f>0x0?(_0x1595e6[_0x47db36(0xf40)]['value']/_0xb6ac1f*0x64)[_0x47db36(0x198)](_0x27e620):'0',_0x46b3dd=formatNumber(_0x1595e6[_0x47db36(0xf40)][_0x47db36(0x2ea)],_0x1595e6[_0x47db36(0xf40)][_0x47db36(0x974)],_0x10ff77),_0x7a52be=_0x1595e6[_0x47db36(0xf40)]['entity']?.[_0x47db36(0x452)]!==![]?escapeHtml(_0x1595e6['item']['color']):'transparent';_0x30f896[_0x47db36(0x17c)]='<div\x20class=\x22sgc-pie-tt-row\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:'+_0x7a52be+'\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>'+escapeHtml(_0x1595e6[_0x47db36(0xf40)][_0x47db36(0x208)]||_0x1595e6['item']['name']||'')+_0x47db36(0xd5c)+escapeHtml(String(_0x46b3dd))+'\x20'+escapeHtml(_0x1595e6['item'][_0x47db36(0x32e)]||'')+_0x47db36(0xc3d)+(_0x47db36(0xf6b)+escapeHtml(cardT(_0x10ff77,_0xbb462a,_0x47db36(0xcec)))+_0x47db36(0xd5c)+_0x20d3b2+_0x47db36(0x760)),this['_placeTooltip'](_0x30f896,_0x1ce5c7,_0x4de632);};this['_wireTooltip'](_0x372960,_0x30f896,_0x4df911,_0x3856f4),_0x372960[_0x43bb12(0x944)][_0x43bb12(0x2a5)]='pointer',_0x372960['addEventListener'](_0x43bb12(0xe5e),_0x34d129=>{const _0x3a29ff=_0x43bb12,_0x3b1a24=_0x372960['getBoundingClientRect'](),_0x2444bc=_0x34d129[_0x3a29ff(0x51e)]-_0x3b1a24[_0x3a29ff(0xaaf)],_0x52702b=_0x34d129[_0x3a29ff(0x6a3)]-_0x3b1a24[_0x3a29ff(0xf55)];let _0x35462e=null;for(const _0xa9ca3a of this[_0x3a29ff(0xb53)]){const _0x464779=_0x2444bc-_0xa9ca3a['cx'],_0x2839d5=_0x52702b-_0xa9ca3a['cy'],_0x26b628=Math[_0x3a29ff(0x2ed)](_0x464779*_0x464779+_0x2839d5*_0x2839d5);if(_0x26b628>_0xa9ca3a['r'])continue;let _0x1a0a28=Math['atan2'](_0x2839d5,_0x464779);if(_0x1a0a28<-Math['PI']/0x2)_0x1a0a28+=Math['PI']*0x2;if(_0x1a0a28>=_0xa9ca3a['startAngle']&&_0x1a0a28<_0xa9ca3a[_0x3a29ff(0xa33)]){_0x35462e=_0xa9ca3a;break;}}if(!_0x35462e)return;_0x34d129[_0x3a29ff(0x7ba)](),this[_0x3a29ff(0x1d2)][_0x3a29ff(0x7f2)](_0x35462e[_0x3a29ff(0xf40)]?.['entity']);},{'signal':_0x3856f4});}}class RadarRenderer extends BaseCanvasRenderer{constructor(_0xf40814){const _0x343059=_0x46af5e;super(_0xf40814),this[_0x343059(0x6e7)]=[],this[_0x343059(0xbb3)]=[],this[_0x343059(0xb26)]=0x0,this[_0x343059(0x2a1)]=0x0;}[_0x46af5e(0x59c)](_0x39e7f6,_0xf1f627,_0x318475,_0x143322){const _0x5cd85a=_0x46af5e,{W:_0x252f67,H:_0x505814}=this['_beginRender'](_0x39e7f6,_0x318475),_0x411c3d=this[_0x5cd85a(0x1d2)]['_entities']||[],_0x5ed616=[];_0xf1f627[_0x5cd85a(0xd27)](_0x155d80=>{const _0x5ced2b=_0x5cd85a,_0x4d89ea=this[_0x5ced2b(0x3bf)](_0x155d80,_0x411c3d),_0xc6d47a=(_0x155d80[_0x5ced2b(0x93a)]||[])[_0x5ced2b(0x919)](_0x19c288=>_0x19c288['v']!==null&&_0x19c288['v']!==undefined),_0x1cc42e=_0x143322?.[_0x5ced2b(0x4f9)]?.[_0x4d89ea[_0x5ced2b(0x974)]],_0x717277=_0x4d89ea[_0x5ced2b(0xc48)]||'avg';let _0x2bce1f;if(_0xc6d47a[_0x5ced2b(0xc02)]){if(_0x717277==='first')_0x2bce1f=_0xc6d47a[0x0]['v'];else{if(_0x717277===_0x5ced2b(0x7e6)||_0x717277===_0x5ced2b(0xe34)||_0x717277==='diff')_0x2bce1f=_0xc6d47a[_0x5ced2b(0x617)]((_0x39961e,_0x37984e)=>_0x39961e+(_0x37984e['v']||0x0),0x0);else{if(_0x717277==='min')_0x2bce1f=_0xc6d47a['reduce']((_0x47b19e,_0x358093)=>Math[_0x5ced2b(0xba1)](_0x47b19e,_0x358093['v']),Infinity);else{if(_0x717277==='max')_0x2bce1f=_0xc6d47a[_0x5ced2b(0x617)]((_0x518e4d,_0x2c8a4b)=>Math['max'](_0x518e4d,_0x2c8a4b['v']),-Infinity);else{if(_0x717277===_0x5ced2b(0xf49))_0x2bce1f=DataProcessor[_0x5ced2b(0x9d9)](_0xc6d47a[_0x5ced2b(0xb3f)](_0x2251c=>_0x2251c['v']),_0x5ced2b(0xf49));else{if(_0x717277===_0x5ced2b(0xa5d))_0x2bce1f=_0xc6d47a[_0xc6d47a['length']-0x1]['v'];else _0x2bce1f=_0xc6d47a[_0x5ced2b(0x617)]((_0x630694,_0xbbea9f)=>_0x630694+(_0xbbea9f['v']||0x0),0x0)/_0xc6d47a[_0x5ced2b(0xc02)];}}}}}}else _0x1cc42e?_0x2bce1f=parseFloat(_0x1cc42e[_0x5ced2b(0x5f5)]):_0x2bce1f=0x0;if(_0x2bce1f===undefined||_0x2bce1f===null||isNaN(_0x2bce1f))_0x2bce1f=0x0;const _0x786d8c=resolveEntityBound(_0x4d89ea[_0x5ced2b(0xf24)],0x0,_0x143322),_0x55e70a=resolveEntityBound(_0x4d89ea[_0x5ced2b(0x443)],0x64,_0x143322),_0x1234d1=_0x55e70a>_0x786d8c?Math[_0x5ced2b(0x220)](0x0,Math['min'](0x1,(_0x2bce1f-_0x786d8c)/(_0x55e70a-_0x786d8c))):0x0,_0x1b9b2d=_0x155d80[_0x5ced2b(0x731)]||{},_0x57ba24=pickName(_0x4d89ea[_0x5ced2b(0xce6)]!==undefined?_0x4d89ea[_0x5ced2b(0xce6)]:_0x4d89ea['name'],_0x1b9b2d[_0x5ced2b(0x17e)]!==undefined&&_0x4d89ea[_0x5ced2b(0xce6)]!==undefined?_0x1b9b2d[_0x5ced2b(0x17e)]:_0x1b9b2d[_0x5ced2b(0x40b)],_0x1b9b2d)??_0x4d89ea[_0x5ced2b(0x974)]??'?';_0x5ed616[_0x5ced2b(0xb31)]({'name':pickName(_0x4d89ea[_0x5ced2b(0xdee)],_0x1b9b2d[_0x5ced2b(0x40b)],_0x1b9b2d)??'','tooltipName':_0x57ba24,'value':_0x2bce1f,'pct':_0x1234d1,'min':_0x786d8c,'max':_0x55e70a,'color':(_0x4d89ea[_0x5ced2b(0xd95)]===_0x5ced2b(0xe42)?null:this['card'][_0x5ced2b(0x3c6)](_0x4d89ea[_0x5ced2b(0xd95)],_0x4d89ea[_0x5ced2b(0x974)])||_0x4d89ea[_0x5ced2b(0xd95)])||_0x5ced2b(0x776),'unit':_0x4d89ea[_0x5ced2b(0x32e)]||_0x1b9b2d[_0x5ced2b(0x398)]||'','entity':_0x4d89ea});});if(_0x5ed616[_0x5cd85a(0xc02)]<0x3){_0x39e7f6[_0x5cd85a(0x17c)]='<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>'+escapeHtml(cardT(this[_0x5cd85a(0x1d2)]?.[_0x5cd85a(0x1dc)],this[_0x5cd85a(0x1d2)]?.[_0x5cd85a(0xfe9)],_0x5cd85a(0x9c1)))+'\x20('+_0x5ed616[_0x5cd85a(0xc02)]+_0x5cd85a(0xae6);return;}const {container:_0x370daf,canvas:_0x35c382,tooltipEl:_0x37a696}=this['_mountCanvas'](_0x39e7f6,_0x505814);if(!_0x35c382)return;this[_0x5cd85a(0x6e7)]=_0x5ed616,this[_0x5cd85a(0x724)](_0x35c382,_0x5ed616,_0x252f67,_0x505814,_0x318475,_0x143322,_0x370daf,_0x37a696);}[_0x46af5e(0xd26)](_0x324d65,_0x1f05bf,_0x17932e,_0x466258,_0x26d956,_0x409394,_0x44ec78){const _0x299e45=_0x46af5e;if(_0x44ec78===undefined)_0x44ec78=0x1;const _0x214e5a=this['_setupCanvas'](_0x324d65,_0x17932e,_0x466258),_0x1ee0bf=this[_0x299e45(0xffd)](),_0x44b029=_0x1ee0bf?_0x299e45(0xdb7):_0x299e45(0x98d),_0x49efeb=_0x1ee0bf?_0x299e45(0xd50):_0x299e45(0x92a),_0x18d4a0=_0x1ee0bf?_0x299e45(0xfff):'rgba(0,0,0,0.15)',_0x57abce=_0x1ee0bf?'rgba(255,255,255,0.3)':_0x299e45(0xd23),_0x51548d=_0x1ee0bf?'rgba(255,255,255,0.08)':_0x299e45(0xea6),_0x342789=this[_0x299e45(0xc07)]();let _0x466345='#4A90D9';try{const _0x5a63b5=getComputedStyle(this[_0x299e45(0x1d2)])[_0x299e45(0x767)](_0x299e45(0xd5e))[_0x299e45(0xa11)]();if(_0x5a63b5)_0x466345=_0x5a63b5;}catch(_0x6b685d){}const _0x3ccc0e=_0x1f05bf['length'],_0x30dd8a=Math['min'](_0x466258-0x28,_0x17932e-0x28),_0x376a5e=_0x30dd8a/0x2*0.78,_0x34ad17=_0x17932e/0x2,_0x18e8b8=_0x466258/0x2,_0x132628=Math['PI']*0x2/_0x3ccc0e,_0x3b7add=-Math['PI']/0x2,_0xaa7cf5=0x4;_0x214e5a[_0x299e45(0xd80)]=_0x44ec78;for(let _0xc229f8=0x1;_0xc229f8<=_0xaa7cf5;_0xc229f8++){const _0x4cf063=_0x376a5e*(_0xc229f8/_0xaa7cf5);_0x214e5a[_0x299e45(0xb64)]();for(let _0x52fdfc=0x0;_0x52fdfc<=_0x3ccc0e;_0x52fdfc++){const _0x44f16e=_0x3b7add+_0x52fdfc*_0x132628,_0x1ec21a=_0x34ad17+Math[_0x299e45(0x576)](_0x44f16e)*_0x4cf063,_0x3b7172=_0x18e8b8+Math[_0x299e45(0xeac)](_0x44f16e)*_0x4cf063;_0x52fdfc===0x0?_0x214e5a[_0x299e45(0x811)](_0x1ec21a,_0x3b7172):_0x214e5a[_0x299e45(0x779)](_0x1ec21a,_0x3b7172);}_0x214e5a[_0x299e45(0x5dd)]=_0x18d4a0,_0x214e5a[_0x299e45(0xf10)]=0x1,_0x214e5a[_0x299e45(0x3c1)]();}_0x214e5a['globalAlpha']=0x1,this[_0x299e45(0xbb3)]=[],_0x1f05bf['forEach']((_0x15d04c,_0x86fc35)=>{const _0x470f1d=_0x299e45,_0x4740b2=_0x3b7add+_0x86fc35*_0x132628,_0x51a0c7=_0x34ad17+Math[_0x470f1d(0x576)](_0x4740b2)*_0x376a5e,_0x10adcc=_0x18e8b8+Math[_0x470f1d(0xeac)](_0x4740b2)*_0x376a5e;_0x214e5a[_0x470f1d(0xd80)]=_0x44ec78,_0x214e5a[_0x470f1d(0xb64)](),_0x214e5a[_0x470f1d(0x811)](_0x34ad17,_0x18e8b8),_0x214e5a['lineTo'](_0x51a0c7,_0x10adcc),_0x214e5a['strokeStyle']=_0x57abce,_0x214e5a['lineWidth']=0x1,_0x214e5a['stroke'](),_0x214e5a[_0x470f1d(0xd80)]=0x1;if(_0x44ec78>=0.999){const _0x6d6a69=_0x376a5e+0x10,_0x5d6874=_0x34ad17+Math[_0x470f1d(0x576)](_0x4740b2)*_0x6d6a69,_0x3d308d=_0x18e8b8+Math[_0x470f1d(0xeac)](_0x4740b2)*_0x6d6a69,_0x44652f=Math[_0x470f1d(0xba1)](0xb,Math[_0x470f1d(0x220)](0x9,_0x376a5e*0.1));_0x214e5a[_0x470f1d(0x20c)]=_0x44b029,_0x214e5a['font']=_0x470f1d(0x42c)+_0x44652f+'px\x20'+_0x342789,_0x214e5a[_0x470f1d(0x3b1)]=Math[_0x470f1d(0x1ae)](Math['cos'](_0x4740b2))<0.1?'center':Math[_0x470f1d(0x576)](_0x4740b2)>0x0?_0x470f1d(0xaaf):_0x470f1d(0x1fd),_0x214e5a['textBaseline']=Math[_0x470f1d(0x1ae)](Math[_0x470f1d(0xeac)](_0x4740b2))<0.1?_0x470f1d(0x6d4):Math[_0x470f1d(0xeac)](_0x4740b2)>0x0?_0x470f1d(0xf55):_0x470f1d(0x8f5),_0x214e5a[_0x470f1d(0xa74)](_0x15d04c[_0x470f1d(0xdee)],_0x5d6874,_0x3d308d);}this['_spokes'][_0x470f1d(0xb31)]({'angle':_0x4740b2,'ex':_0x51a0c7,'ey':_0x10adcc,'item':_0x15d04c,'cx':_0x34ad17,'cy':_0x18e8b8,'maxRadius':_0x376a5e});});const _0xb8d5f3=_0x1f05bf[_0x299e45(0xb3f)]((_0x46ba4f,_0x5ed969)=>{const _0x15e7be=_0x299e45,_0x1dd038=_0x3b7add+_0x5ed969*_0x132628,_0x87ae71=_0x376a5e*_0x46ba4f[_0x15e7be(0x7a1)]*_0x44ec78;return{'x':_0x34ad17+Math[_0x15e7be(0x576)](_0x1dd038)*_0x87ae71,'y':_0x18e8b8+Math[_0x15e7be(0xeac)](_0x1dd038)*_0x87ae71,'a':_0x1dd038,'r':_0x87ae71,'item':_0x46ba4f};}),_0x549827=_0x214e5a[_0x299e45(0x28a)](_0x34ad17,_0x18e8b8,0x0,_0x34ad17,_0x18e8b8,_0x376a5e);_0x549827[_0x299e45(0x36e)](0x0,this[_0x299e45(0x4a5)](_0x466345,_0x1ee0bf?0.35:0.3)),_0x549827[_0x299e45(0x36e)](0x1,this[_0x299e45(0x4a5)](_0x466345,_0x1ee0bf?0.1:0.08)),_0x214e5a[_0x299e45(0xb64)](),_0xb8d5f3[_0x299e45(0xd27)]((_0x44bde1,_0x195ef6)=>{const _0x48742d=_0x299e45;if(_0x195ef6===0x0)_0x214e5a[_0x48742d(0x811)](_0x44bde1['x'],_0x44bde1['y']);else _0x214e5a['lineTo'](_0x44bde1['x'],_0x44bde1['y']);}),_0x214e5a['closePath'](),_0x214e5a[_0x299e45(0x20c)]=_0x549827,_0x214e5a[_0x299e45(0x290)](),_0x214e5a[_0x299e45(0x5dd)]=this[_0x299e45(0x4a5)](_0x466345,0.85),_0x214e5a['lineWidth']=0x2,_0x214e5a[_0x299e45(0xcf8)]=_0x299e45(0x686),_0x214e5a[_0x299e45(0x3c1)](),_0xb8d5f3[_0x299e45(0xd27)](_0x33b3cf=>{const _0x1bf499=_0x299e45;let _0x4f1de3=_0x33b3cf['item'][_0x1bf499(0xd95)];const _0x141d91=_0x33b3cf[_0x1bf499(0xf40)]['entity'];_0x141d91?.[_0x1bf499(0xdd5)]?.[_0x1bf499(0x1007)]&&_0x141d91[_0x1bf499(0xdd5)][_0x1bf499(0x202)]?.[_0x1bf499(0xc02)]&&(_0x4f1de3=resolveValueColor(_0x33b3cf[_0x1bf499(0xf40)][_0x1bf499(0x2ea)],this[_0x1bf499(0x1d2)][_0x1bf499(0x83c)](_0x141d91),_0x4f1de3));const _0x2b9790=toNum(_0x141d91?.[_0x1bf499(0x759)]),_0x265a32=isNum(_0x2b9790)&&_0x2b9790>0x0?clamp(_0x2b9790,0.5,0x14):3.5;_0x214e5a[_0x1bf499(0xb64)](),_0x214e5a[_0x1bf499(0x456)](_0x33b3cf['x'],_0x33b3cf['y'],_0x265a32*(0x6/3.5),0x0,Math['PI']*0x2),_0x214e5a['fillStyle']=this['_withAlpha'](_0x4f1de3,0.25),_0x214e5a[_0x1bf499(0x290)](),_0x214e5a[_0x1bf499(0xb64)](),_0x214e5a[_0x1bf499(0x456)](_0x33b3cf['x'],_0x33b3cf['y'],_0x265a32,0x0,Math['PI']*0x2),_0x214e5a[_0x1bf499(0x20c)]=_0x4f1de3,_0x214e5a[_0x1bf499(0x290)](),_0x214e5a[_0x1bf499(0x5dd)]=_0x1ee0bf?_0x1bf499(0x92a):'rgba(255,255,255,0.9)',_0x214e5a[_0x1bf499(0xf10)]=1.5,_0x214e5a[_0x1bf499(0x3c1)]();if(_0x44ec78>=0.999){const _0x40b03c=formatNumber(_0x33b3cf['item'][_0x1bf499(0x2ea)],_0x33b3cf[_0x1bf499(0xf40)][_0x1bf499(0x974)],_0x409394),_0x106d9b=Math[_0x1bf499(0xba1)](0xa,Math[_0x1bf499(0x220)](0x8,_0x376a5e*0.09));_0x214e5a['font']=_0x1bf499(0x821)+_0x106d9b+'px\x20'+_0x342789;const _0x2bca60=0x5,_0x5e5a73=0x2,_0x5b425d=_0x214e5a[_0x1bf499(0x1ab)](_0x40b03c)[_0x1bf499(0x581)],_0x2f2edb=_0x5b425d+_0x2bca60*0x2,_0x2ed5d0=_0x106d9b+_0x5e5a73*0x2,_0x4eb6a7=_0x33b3cf['r']+0xe;let _0x4a3412=_0x34ad17+Math['cos'](_0x33b3cf['a'])*_0x4eb6a7,_0x1b60cd=_0x18e8b8+Math[_0x1bf499(0xeac)](_0x33b3cf['a'])*_0x4eb6a7;_0x4a3412=Math[_0x1bf499(0x220)](_0x2f2edb/0x2+0x2,Math['min'](_0x17932e-_0x2f2edb/0x2-0x2,_0x4a3412)),_0x1b60cd=Math[_0x1bf499(0x220)](_0x2ed5d0/0x2+0x2,Math[_0x1bf499(0xba1)](_0x466258-_0x2ed5d0/0x2-0x2,_0x1b60cd));const _0x284544=_0x4a3412-_0x2f2edb/0x2,_0x24d940=_0x1b60cd-_0x2ed5d0/0x2,_0x397039=_0x2ed5d0/0x2;_0x214e5a[_0x1bf499(0xb64)](),_0x214e5a[_0x1bf499(0x811)](_0x284544+_0x397039,_0x24d940),_0x214e5a[_0x1bf499(0x779)](_0x284544+_0x2f2edb-_0x397039,_0x24d940),_0x214e5a[_0x1bf499(0xaa6)](_0x284544+_0x2f2edb,_0x24d940,_0x284544+_0x2f2edb,_0x24d940+_0x397039),_0x214e5a[_0x1bf499(0x779)](_0x284544+_0x2f2edb,_0x24d940+_0x2ed5d0-_0x397039),_0x214e5a[_0x1bf499(0xaa6)](_0x284544+_0x2f2edb,_0x24d940+_0x2ed5d0,_0x284544+_0x2f2edb-_0x397039,_0x24d940+_0x2ed5d0),_0x214e5a[_0x1bf499(0x779)](_0x284544+_0x397039,_0x24d940+_0x2ed5d0),_0x214e5a[_0x1bf499(0xaa6)](_0x284544,_0x24d940+_0x2ed5d0,_0x284544,_0x24d940+_0x2ed5d0-_0x397039),_0x214e5a['lineTo'](_0x284544,_0x24d940+_0x397039),_0x214e5a[_0x1bf499(0xaa6)](_0x284544,_0x24d940,_0x284544+_0x397039,_0x24d940),_0x214e5a['closePath'](),_0x214e5a[_0x1bf499(0x20c)]=_0x51548d,_0x214e5a[_0x1bf499(0x290)](),_0x214e5a[_0x1bf499(0x20c)]=_0x49efeb,_0x214e5a['textAlign']=_0x1bf499(0x942),_0x214e5a[_0x1bf499(0xf1b)]='middle',_0x214e5a[_0x1bf499(0xa74)](_0x40b03c,_0x4a3412,_0x1b60cd);}});}[_0x46af5e(0x4a5)](_0x1308d1,_0x567d99){const _0x3f5bd4=_0x46af5e;let _0x1a4f8e=String(_0x1308d1||_0x3f5bd4(0xae9))[_0x3f5bd4(0xa11)]();if(_0x1a4f8e[_0x3f5bd4(0xed0)](_0x3f5bd4(0x26c)))try{const _0x33fd5c=document[_0x3f5bd4(0xbde)]('div');_0x33fd5c[_0x3f5bd4(0x944)][_0x3f5bd4(0xd95)]=_0x1a4f8e,document['body'][_0x3f5bd4(0x319)](_0x33fd5c);const _0x54a8e0=getComputedStyle(_0x33fd5c)['color'];document[_0x3f5bd4(0x87f)][_0x3f5bd4(0x5a6)](_0x33fd5c),_0x1a4f8e=_0x54a8e0||_0x1a4f8e;}catch(_0x11d841){}if(_0x1a4f8e['startsWith']('#')){let _0x5e548c=_0x1a4f8e[_0x3f5bd4(0x165)](0x1);if(_0x5e548c[_0x3f5bd4(0xc02)]===0x3)_0x5e548c=_0x5e548c['split']('')[_0x3f5bd4(0xb3f)](_0x3df75f=>_0x3df75f+_0x3df75f)[_0x3f5bd4(0x888)]('');if(_0x5e548c['length']===0x6){const _0x45d896=parseInt(_0x5e548c[_0x3f5bd4(0x165)](0x0,0x2),0x10),_0x51cca1=parseInt(_0x5e548c['slice'](0x2,0x4),0x10),_0x4b072d=parseInt(_0x5e548c[_0x3f5bd4(0x165)](0x4,0x6),0x10);return'rgba('+_0x45d896+','+_0x51cca1+','+_0x4b072d+','+_0x567d99+')';}}const _0x4bb85b=_0x1a4f8e[_0x3f5bd4(0x727)](/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)/);if(_0x4bb85b)return'rgba('+_0x4bb85b[0x1]+','+_0x4bb85b[0x2]+','+_0x4bb85b[0x3]+','+_0x567d99+')';return _0x1a4f8e;}[_0x46af5e(0x180)](_0x31cd34,_0x4e3272,_0x1829a5,_0x5b0f7c){const _0x3d0408=_0x46af5e;if(!_0x4e3272||!_0x31cd34||_0x1829a5[_0x3d0408(0xeed)]===![]||!this[_0x3d0408(0xbb3)]?.[_0x3d0408(0xc02)])return;const _0x4a83b2=this['_abort'][_0x3d0408(0x5fe)],_0x309190=_0x10507b=>{const _0x3f0832=_0x3d0408,_0x323a43=_0x31cd34[_0x3f0832(0x9cc)](),_0x19460e=_0x10507b[_0x3f0832(0x51e)]-_0x323a43[_0x3f0832(0xaaf)],_0x4e13ec=_0x10507b[_0x3f0832(0x6a3)]-_0x323a43[_0x3f0832(0xf55)];let _0x4c4b60=null,_0x9371e9=Infinity;for(const _0x2b9041 of this[_0x3f0832(0xbb3)]){const _0x44d0aa=_0x2b9041[_0x3f0832(0xae8)]*_0x2b9041['item'][_0x3f0832(0x7a1)],_0x43d438=_0x2b9041['cx']+Math[_0x3f0832(0x576)](_0x2b9041[_0x3f0832(0x82f)])*_0x44d0aa,_0x2b79d9=_0x2b9041['cy']+Math['sin'](_0x2b9041[_0x3f0832(0x82f)])*_0x44d0aa,_0x1ab7d5=Math[_0x3f0832(0x2ed)]((_0x19460e-_0x43d438)**0x2+(_0x4e13ec-_0x2b79d9)**0x2);_0x1ab7d5<_0x9371e9&&_0x1ab7d5<0x16&&(_0x9371e9=_0x1ab7d5,_0x4c4b60=_0x2b9041);}if(!_0x4c4b60){_0x4e3272[_0x3f0832(0x944)][_0x3f0832(0x7a2)]='0';return;}const _0x21a069=(_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0x7a1)]*0x64)[_0x3f0832(0x198)](0x1),_0x53c557=formatNumber(_0x4c4b60['item'][_0x3f0832(0x2ea)],_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0x974)],_0x5b0f7c),_0x3aa16d=formatNumber(_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0xba1)],_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0x974)],_0x5b0f7c),_0x48db0b=formatNumber(_0x4c4b60[_0x3f0832(0xf40)]['max'],_0x4c4b60['item'][_0x3f0832(0x974)],_0x5b0f7c),_0x377fc3=_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0x974)]?.[_0x3f0832(0x452)]!==![]?escapeHtml(_0x4c4b60['item'][_0x3f0832(0xd95)]):'transparent';_0x4e3272['innerHTML']=_0x3f0832(0x20e)+_0x377fc3+_0x3f0832(0x23f)+escapeHtml(_0x4c4b60['item'][_0x3f0832(0x208)]||_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0xdee)]||'')+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+escapeHtml(String(_0x53c557))+'\x20'+escapeHtml(_0x4c4b60[_0x3f0832(0xf40)][_0x3f0832(0x32e)]||'')+_0x3f0832(0xc3d)+(_0x3f0832(0xf6b)+escapeHtml(cardT(_0x5b0f7c,_0x1829a5,_0x3f0832(0xbce)))+_0x3f0832(0xd5c)+escapeHtml(String(_0x3aa16d))+_0x3f0832(0x929)+escapeHtml(String(_0x48db0b))+_0x3f0832(0xc3d))+(_0x3f0832(0xf6b)+escapeHtml(cardT(_0x5b0f7c,_0x1829a5,_0x3f0832(0x20f)))+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+_0x21a069+_0x3f0832(0x760)),this[_0x3f0832(0x7bc)](_0x4e3272,_0x323a43,_0x19460e);};this[_0x3d0408(0x7ab)](_0x31cd34,_0x4e3272,_0x309190,_0x4a83b2),_0x31cd34['style'][_0x3d0408(0x2a5)]=_0x3d0408(0x670),_0x31cd34[_0x3d0408(0x171)](_0x3d0408(0xe5e),_0x324ee5=>{const _0xc9cb09=_0x3d0408,_0x11833f=_0x31cd34[_0xc9cb09(0x9cc)](),_0x40375a=_0x324ee5[_0xc9cb09(0x51e)]-_0x11833f[_0xc9cb09(0xaaf)],_0xad091e=_0x324ee5[_0xc9cb09(0x6a3)]-_0x11833f['top'];let _0x27f33d=null,_0x46e5b7=Infinity;for(const _0x322d55 of this[_0xc9cb09(0xbb3)]){const _0x5eac2e=_0x322d55[_0xc9cb09(0xae8)]*_0x322d55['item']['pct'],_0x3ab7f6=_0x322d55['cx']+Math[_0xc9cb09(0x576)](_0x322d55[_0xc9cb09(0x82f)])*_0x5eac2e,_0x499587=_0x322d55['cy']+Math[_0xc9cb09(0xeac)](_0x322d55[_0xc9cb09(0x82f)])*_0x5eac2e,_0x5e2515=Math['sqrt']((_0x40375a-_0x3ab7f6)**0x2+(_0xad091e-_0x499587)**0x2);_0x5e2515<_0x46e5b7&&_0x5e2515<0x16&&(_0x46e5b7=_0x5e2515,_0x27f33d=_0x322d55);}if(!_0x27f33d)return;_0x324ee5[_0xc9cb09(0x7ba)](),this[_0xc9cb09(0x1d2)][_0xc9cb09(0x7f2)](_0x27f33d['item']?.[_0xc9cb09(0x974)]);},{'signal':_0x4a83b2});}}class RankingRenderer extends BaseCanvasRenderer{constructor(_0x453108){const _0x11d355=_0x46af5e;super(_0x453108),this[_0x11d355(0x6e7)]=[],this[_0x11d355(0x292)]=null,this[_0x11d355(0xb26)]=0x0,this[_0x11d355(0x2a1)]=0x0;}['render'](_0x268a9f,_0x28f58a,_0x3631a9,_0x4a44a2){const _0x258b38=_0x46af5e,{W:_0xffc051,H:_0x4c1bc3}=this[_0x258b38(0xa34)](_0x268a9f,_0x3631a9),_0x157f7e=this[_0x258b38(0x1d2)][_0x258b38(0xfef)]||[],_0x57f5d1=[];_0x28f58a['forEach'](_0x594033=>{const _0x32e9d3=_0x258b38,_0x48d30b=this[_0x32e9d3(0x3bf)](_0x594033,_0x157f7e),_0xfbffa=(_0x594033['points']||[])[_0x32e9d3(0x919)](_0x11b099=>_0x11b099['v']!==null&&_0x11b099['v']!==undefined),_0x18d629=_0x4a44a2?.[_0x32e9d3(0x4f9)]?.[_0x48d30b[_0x32e9d3(0x974)]],_0x3bc282=_0x48d30b[_0x32e9d3(0xc48)]||_0x32e9d3(0xfbc);let _0xdc7a4f;if(_0xfbffa[_0x32e9d3(0xc02)]){if(_0x3bc282===_0x32e9d3(0x2d8))_0xdc7a4f=_0xfbffa[0x0]['v'];else{if(_0x3bc282===_0x32e9d3(0x7e6)||_0x3bc282===_0x32e9d3(0xe34)||_0x3bc282===_0x32e9d3(0x934))_0xdc7a4f=_0xfbffa[_0x32e9d3(0x617)]((_0x409297,_0x1d5bf5)=>_0x409297+(_0x1d5bf5['v']||0x0),0x0);else{if(_0x3bc282==='min')_0xdc7a4f=_0xfbffa[_0x32e9d3(0x617)]((_0x5c1913,_0x51ff90)=>Math[_0x32e9d3(0xba1)](_0x5c1913,_0x51ff90['v']),Infinity);else{if(_0x3bc282===_0x32e9d3(0x220))_0xdc7a4f=_0xfbffa[_0x32e9d3(0x617)]((_0x594c31,_0xe202f9)=>Math[_0x32e9d3(0x220)](_0x594c31,_0xe202f9['v']),-Infinity);else{if(_0x3bc282==='median')_0xdc7a4f=DataProcessor[_0x32e9d3(0x9d9)](_0xfbffa[_0x32e9d3(0xb3f)](_0x6e020c=>_0x6e020c['v']),_0x32e9d3(0xf49));else{if(_0x3bc282==='last')_0xdc7a4f=_0xfbffa[_0xfbffa['length']-0x1]['v'];else _0xdc7a4f=_0xfbffa[_0x32e9d3(0x617)]((_0x4a77a8,_0x3c94d8)=>_0x4a77a8+(_0x3c94d8['v']||0x0),0x0)/_0xfbffa['length'];}}}}}}else _0x18d629?_0xdc7a4f=parseFloat(_0x18d629[_0x32e9d3(0x5f5)]):_0xdc7a4f=0x0;if(_0xdc7a4f===undefined||_0xdc7a4f===null||isNaN(_0xdc7a4f))_0xdc7a4f=0x0;const _0x5b1946=_0x594033[_0x32e9d3(0x731)]||{},_0x26fdfa=pickName(_0x48d30b[_0x32e9d3(0xce6)]!==undefined?_0x48d30b[_0x32e9d3(0xce6)]:_0x48d30b[_0x32e9d3(0xdee)],_0x5b1946[_0x32e9d3(0x17e)]!==undefined&&_0x48d30b['tooltip_name']!==undefined?_0x5b1946['resolved_tooltip_name']:_0x5b1946['resolved_name'],_0x5b1946)??_0x48d30b[_0x32e9d3(0x974)]??'?';_0x57f5d1[_0x32e9d3(0xb31)]({'name':_0x26fdfa,'tooltipName':_0x26fdfa,'value':_0xdc7a4f,'color':(_0x48d30b[_0x32e9d3(0xd95)]==='threshold'?null:this['card'][_0x32e9d3(0x3c6)](_0x48d30b['color'],_0x48d30b[_0x32e9d3(0x974)])||_0x48d30b[_0x32e9d3(0xd95)])||'#4A90D9','unit':_0x48d30b['unit']||_0x5b1946[_0x32e9d3(0x398)]||'','entity':_0x48d30b});}),_0x57f5d1[_0x258b38(0xd09)]((_0x2381ab,_0x47f64d)=>Math['abs'](_0x47f64d[_0x258b38(0x2ea)])-Math['abs'](_0x2381ab[_0x258b38(0x2ea)]));const _0x384c8f=toNum(_0x3631a9[_0x258b38(0x100d)]);if(isNum(_0x384c8f)&&_0x384c8f>0x0)for(let _0x5a3a2b=_0x57f5d1[_0x258b38(0xc02)]-0x1;_0x5a3a2b>=0x0;_0x5a3a2b--){if(Math[_0x258b38(0x1ae)](_0x57f5d1[_0x5a3a2b][_0x258b38(0x2ea)])<_0x384c8f)_0x57f5d1['splice'](_0x5a3a2b,0x1);}const _0x58e820=toNum(_0x3631a9[_0x258b38(0xaca)]);if(isNum(_0x58e820))for(let _0x30443b=_0x57f5d1[_0x258b38(0xc02)]-0x1;_0x30443b>=0x0;_0x30443b--){if(Math[_0x258b38(0x1ae)](_0x57f5d1[_0x30443b][_0x258b38(0x2ea)])>_0x58e820)_0x57f5d1[_0x258b38(0x76c)](_0x30443b,0x1);}if(!_0x57f5d1['length']){const _0x2a005d=isNum(_0x384c8f)&&_0x384c8f>0x0,_0x17fa74=isNum(_0x58e820),_0x4d2968=_0x2a005d||_0x17fa74,_0x233a99=_0x4f9e3e=>cardT(this[_0x258b38(0x1d2)]?.['_hass'],this[_0x258b38(0x1d2)]?.[_0x258b38(0xfe9)],_0x4f9e3e),_0x378ef5=_0x4d2968?_0x2a005d&&_0x17fa74?_0x233a99(_0x258b38(0x75d))+'\x20('+_0x384c8f+'–'+_0x58e820+').':_0x17fa74?_0x233a99(_0x258b38(0x1000))+'\x20('+_0x58e820+').':_0x233a99(_0x258b38(0xf56))+'\x20('+_0x384c8f+').':cardT(this[_0x258b38(0x1d2)]?.[_0x258b38(0x1dc)],this[_0x258b38(0x1d2)]?.[_0x258b38(0xfe9)],_0x258b38(0xbc3));_0x268a9f['innerHTML']=_0x258b38(0xa17)+escapeHtml(_0x378ef5)+_0x258b38(0x743);return;}const {container:_0x318048,canvas:_0x468d07,tooltipEl:_0xc3232c}=this[_0x258b38(0xa0a)](_0x268a9f,_0x4c1bc3);if(!_0x468d07)return;this[_0x258b38(0x6e7)]=_0x57f5d1,this[_0x258b38(0x724)](_0x468d07,_0x57f5d1,_0xffc051,_0x4c1bc3,_0x3631a9,_0x4a44a2,_0x318048,_0xc3232c);}[_0x46af5e(0xd26)](_0x375f1a,_0x433f65,_0xa9c8d4,_0x19cbab,_0x26b6c6,_0x3f639f,_0x7e2328){const _0x26e233=_0x46af5e;if(_0x7e2328===undefined)_0x7e2328=0x1;const _0x2c8320=this[_0x26e233(0xbc8)](_0x375f1a,_0xa9c8d4,_0x19cbab),_0x3c6b7c=_0x375f1a[_0x26e233(0x100a)]||_0x375f1a,_0x59b23c=(_0x3a05d1,_0x36bd6a)=>{const _0x3da6ce=_0x26e233;try{const _0x2e6716=document[_0x3da6ce(0xbde)](_0x3da6ce(0x76f));_0x2e6716[_0x3da6ce(0x944)][_0x3da6ce(0x836)]='position:absolute;visibility:hidden;pointer-events:none;'+(_0x3da6ce(0xfbe)+_0x3a05d1+',\x20'+_0x36bd6a+')'),_0x3c6b7c['appendChild'](_0x2e6716);const _0x3960fe=getComputedStyle(_0x2e6716)[_0x3da6ce(0xd95)];return _0x3c6b7c[_0x3da6ce(0x5a6)](_0x2e6716),_0x3960fe||_0x36bd6a;}catch(_0x2fcc35){return _0x36bd6a;}},_0x2b27aa=_0x59b23c(_0x26e233(0xde3),_0x26e233(0x5d0)),_0x3e1e14=_0x59b23c(_0x26e233(0x634),_0x26e233(0x102a)),_0x26b4d4=this[_0x26e233(0xc07)](),_0x13ae68=_0x26b6c6[_0x26e233(0x238)]||_0x26e233(0x942);let _0x41f444,_0x1a78a6;_0x13ae68===_0x26e233(0xaaf)||_0x13ae68===_0x26e233(0x1fd)?(_0x41f444=Math['max'](0x118,Math[_0x26e233(0xba1)](_0xa9c8d4,Math[_0x26e233(0x686)](_0xa9c8d4*0.65))),_0x1a78a6=_0x13ae68===_0x26e233(0xaaf)?0x0:_0xa9c8d4-_0x41f444):(_0x41f444=_0xa9c8d4,_0x1a78a6=0x0);const _0x5cd95b=_0x13ae68===_0x26e233(0x1fd),_0x6091ca=Math[_0x26e233(0xba1)](0x78,_0x41f444*0.28),_0x473afb=Math['min'](0x64,_0x41f444*0.22),_0xde404e=_0x5cd95b?_0x1a78a6+_0x473afb:_0x1a78a6+_0x6091ca,_0x599f87=_0x5cd95b?_0xa9c8d4-_0x1a78a6-_0x41f444+_0x6091ca:_0xa9c8d4-_0x1a78a6-_0x41f444+_0x473afb,_0x524793=0x8,_0x39f597=0x8,_0x7fac68=_0x433f65[_0x26e233(0xc02)],_0x3022f6=Math[_0x26e233(0x220)](0x4,Math[_0x26e233(0xba1)](0xa,(_0x19cbab-_0x524793-_0x39f597)/_0x7fac68*0.2)),_0x13a03e=Math['max'](0xc,(_0x19cbab-_0x524793-_0x39f597-(_0x7fac68-0x1)*_0x3022f6)/_0x7fac68),_0x29f6f1=_0xa9c8d4-_0xde404e-_0x599f87,_0x4ed3e9=Math[_0x26e233(0x220)](..._0x433f65[_0x26e233(0xb3f)](_0x38c428=>Math[_0x26e233(0x1ae)](_0x38c428[_0x26e233(0x2ea)])),0.001),_0x1fd227=_0x433f65[_0x26e233(0x617)]((_0x1a2a55,_0x363ee9)=>_0x1a2a55+Math[_0x26e233(0x1ae)](_0x363ee9[_0x26e233(0x2ea)]),0x0);this[_0x26e233(0x292)]={'padL':_0xde404e,'padR':_0x599f87,'padT':_0x524793,'barH':_0x13a03e,'gap':_0x3022f6,'gw':_0x29f6f1,'items':_0x433f65,'blockX':_0x1a78a6,'blockW':_0x41f444,'isRight':_0x5cd95b};const _0x1e7615=Math[_0x26e233(0xba1)](0xd,Math[_0x26e233(0x220)](0xa,_0x13a03e*0.6));_0x433f65[_0x26e233(0xd27)]((_0x9bf3b6,_0x1f7a45)=>{const _0x360492=_0x26e233,_0x32bc73=_0x524793+_0x1f7a45*(_0x13a03e+_0x3022f6),_0x6850d6=Math[_0x360492(0x1ae)](_0x9bf3b6[_0x360492(0x2ea)])/_0x4ed3e9*_0x29f6f1,_0x52d59d=_0x6850d6*_0x7e2328,_0x4c3a0e=_0x1fd227>0x0?(Math[_0x360492(0x1ae)](_0x9bf3b6[_0x360492(0x2ea)])/_0x1fd227*0x64)[_0x360492(0x198)](0x0):'0';let _0x5b4dc7=_0x9bf3b6[_0x360492(0xd95)];const _0x2f745d=_0x9bf3b6[_0x360492(0x974)];_0x2f745d?.['color_thresholds']?.[_0x360492(0x1007)]&&_0x2f745d['color_thresholds'][_0x360492(0x202)]?.[_0x360492(0xc02)]&&(_0x5b4dc7=resolveValueColor(_0x9bf3b6[_0x360492(0x2ea)],this[_0x360492(0x1d2)]['_thrVals'](_0x2f745d),_0x5b4dc7));const _0x1896e7=Math[_0x360492(0xba1)](_0x13a03e/0x4,0x4),_0x32babd=Math[_0x360492(0x220)](0x2,_0x52d59d),_0x2a5459=_0x5cd95b?_0xa9c8d4-_0x599f87-_0x32babd:_0xde404e;_0x2c8320[_0x360492(0x20c)]=_0x5b4dc7,_0x2c8320['globalAlpha']=0.78,_0x2c8320[_0x360492(0xb64)]();if(typeof _0x2c8320['roundRect']==='function')_0x2c8320['roundRect'](_0x2a5459,_0x32bc73,_0x32babd,_0x13a03e,_0x1896e7);else{const _0x21a777=_0x2a5459,_0x1a7d4a=_0x32bc73,_0x5b150a=_0x32babd,_0x8ffb56=_0x13a03e;_0x2c8320[_0x360492(0x811)](_0x21a777+_0x1896e7,_0x1a7d4a),_0x2c8320[_0x360492(0x779)](_0x21a777+_0x5b150a-_0x1896e7,_0x1a7d4a),_0x2c8320[_0x360492(0xaa6)](_0x21a777+_0x5b150a,_0x1a7d4a,_0x21a777+_0x5b150a,_0x1a7d4a+_0x1896e7),_0x2c8320[_0x360492(0x779)](_0x21a777+_0x5b150a,_0x1a7d4a+_0x8ffb56-_0x1896e7),_0x2c8320[_0x360492(0xaa6)](_0x21a777+_0x5b150a,_0x1a7d4a+_0x8ffb56,_0x21a777+_0x5b150a-_0x1896e7,_0x1a7d4a+_0x8ffb56),_0x2c8320['lineTo'](_0x21a777+_0x1896e7,_0x1a7d4a+_0x8ffb56),_0x2c8320['quadraticCurveTo'](_0x21a777,_0x1a7d4a+_0x8ffb56,_0x21a777,_0x1a7d4a+_0x8ffb56-_0x1896e7),_0x2c8320[_0x360492(0x779)](_0x21a777,_0x1a7d4a+_0x1896e7),_0x2c8320[_0x360492(0xaa6)](_0x21a777,_0x1a7d4a,_0x21a777+_0x1896e7,_0x1a7d4a);}_0x2c8320['fill'](),_0x2c8320['globalAlpha']=0x1,_0x2c8320[_0x360492(0x20c)]=_0x2b27aa,_0x2c8320[_0x360492(0xee3)]='500\x20'+_0x1e7615+_0x360492(0xd01)+_0x26b4d4,_0x2c8320['textBaseline']=_0x360492(0x6d4);const _0x2579d4=_0x32bc73+_0x13a03e/0x2;let _0x22ddfd=_0x9bf3b6[_0x360492(0xdee)];const _0x1609d9=_0x6091ca-0xc;while(_0x2c8320[_0x360492(0x1ab)](_0x22ddfd)[_0x360492(0x581)]>_0x1609d9&&_0x22ddfd[_0x360492(0xc02)]>0x3){_0x22ddfd=_0x22ddfd['slice'](0x0,-0x1);}if(_0x22ddfd!==_0x9bf3b6[_0x360492(0xdee)])_0x22ddfd+='…';_0x5cd95b?(_0x2c8320['textAlign']=_0x360492(0xaaf),_0x2c8320[_0x360492(0xa74)](_0x22ddfd,_0xa9c8d4-_0x599f87+0x8,_0x2579d4)):(_0x2c8320['textAlign']=_0x360492(0x1fd),_0x2c8320[_0x360492(0xa74)](_0x22ddfd,_0xde404e-0x8,_0x2579d4));if(_0x7e2328>=0.999){_0x2c8320[_0x360492(0x20c)]=_0x3e1e14,_0x2c8320[_0x360492(0xee3)]=_0x360492(0x42c)+_0x1e7615+'px\x20'+_0x26b4d4;const _0x3e3a1e=formatNumber(_0x9bf3b6[_0x360492(0x2ea)],_0x9bf3b6[_0x360492(0x974)],_0x3f639f),_0x5107c0=_0x26b6c6[_0x360492(0x74f)]!==![],_0x578bc7=_0x5107c0?_0x3e3a1e+'\x20'+(_0x9bf3b6['unit']||'')+'\x20('+_0x4c3a0e+'%)':_0x3e3a1e+'\x20'+(_0x9bf3b6['unit']||'');_0x5cd95b?(_0x2c8320[_0x360492(0x3b1)]=_0x360492(0x1fd),_0x2c8320[_0x360492(0xa74)](_0x578bc7,_0xa9c8d4-_0x599f87-Math[_0x360492(0x220)](0x2,_0x6850d6)-0x8,_0x2579d4)):(_0x2c8320[_0x360492(0x3b1)]=_0x360492(0xaaf),_0x2c8320[_0x360492(0xa74)](_0x578bc7,_0xde404e+Math['max'](0x2,_0x6850d6)+0x8,_0x2579d4));}});}[_0x46af5e(0x180)](_0x3a2b0f,_0x4b7b29,_0x27db98,_0x7d346f){const _0x2afec2=_0x46af5e;if(!_0x4b7b29||!_0x3a2b0f||_0x27db98[_0x2afec2(0xeed)]===![]||!this['_layout'])return;const _0xd3040a=this[_0x2afec2(0xccb)][_0x2afec2(0x5fe)],_0x28df0f=_0x5c3024=>{const _0x1b9214=_0x2afec2,_0x53b67e=this[_0x1b9214(0x292)];if(!_0x53b67e)return;const _0x251abb=_0x3a2b0f['getBoundingClientRect'](),_0x220705=_0x5c3024[_0x1b9214(0x6a3)]-_0x251abb['top'],_0x1360e8=Math[_0x1b9214(0xedc)]((_0x220705-_0x53b67e['padT'])/(_0x53b67e['barH']+_0x53b67e['gap']));if(_0x1360e8<0x0||_0x1360e8>=_0x53b67e[_0x1b9214(0x3ea)][_0x1b9214(0xc02)]){_0x4b7b29['style'][_0x1b9214(0x7a2)]='0';return;}const _0xd9a891=_0x53b67e['items'][_0x1360e8],_0x4bf605=_0x53b67e['items'][_0x1b9214(0x617)]((_0x287b86,_0x5cd273)=>_0x287b86+Math[_0x1b9214(0x1ae)](_0x5cd273['value']),0x0),_0x10d749=_0x4bf605>0x0?(Math[_0x1b9214(0x1ae)](_0xd9a891[_0x1b9214(0x2ea)])/_0x4bf605*0x64)[_0x1b9214(0x198)](0x1):'0',_0x2e6763=formatNumber(_0xd9a891[_0x1b9214(0x2ea)],_0xd9a891['entity'],_0x7d346f),_0xf2d762=_0xd9a891['entity']?.[_0x1b9214(0x452)]!==![]?escapeHtml(_0xd9a891[_0x1b9214(0xd95)]):_0x1b9214(0x2ca);let _0x50bb5f=_0x1b9214(0x20e)+_0xf2d762+'\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>'+escapeHtml(_0xd9a891['tooltipName']||_0xd9a891[_0x1b9214(0xdee)]||'')+_0x1b9214(0xd5c)+escapeHtml(String(_0x2e6763))+'\x20'+escapeHtml(_0xd9a891[_0x1b9214(0x32e)]||'')+_0x1b9214(0xc3d);_0x27db98[_0x1b9214(0x74f)]!==![]&&(_0x50bb5f+=_0x1b9214(0xf6b)+escapeHtml(cardT(_0x7d346f,_0x27db98,_0x1b9214(0xcec)))+_0x1b9214(0xd5c)+_0x10d749+_0x1b9214(0x760));_0x4b7b29['innerHTML']=_0x50bb5f,_0x4b7b29[_0x1b9214(0x944)][_0x1b9214(0x7a2)]='1';const _0x3cb2b4=_0x4b7b29[_0x1b9214(0x342)];let _0x537d4e=_0x5c3024[_0x1b9214(0x51e)]-_0x251abb[_0x1b9214(0xaaf)]+0x10;if(_0x537d4e+_0x3cb2b4>_0x251abb['width'])_0x537d4e=_0x537d4e-_0x3cb2b4-0x20;_0x4b7b29['style'][_0x1b9214(0xaaf)]=Math[_0x1b9214(0x220)](0x0,_0x537d4e)+'px',_0x4b7b29[_0x1b9214(0x944)][_0x1b9214(0xf55)]='0';};_0x3a2b0f[_0x2afec2(0x171)](_0x2afec2(0xd96),_0x28df0f,{'signal':_0xd3040a}),_0x3a2b0f['addEventListener'](_0x2afec2(0xcb5),()=>{const _0x141514=_0x2afec2;_0x4b7b29[_0x141514(0x944)][_0x141514(0x7a2)]='0';},{'signal':_0xd3040a}),_0x3a2b0f[_0x2afec2(0x171)](_0x2afec2(0xa3c),_0x11dc06=>{const _0x38bb5f=_0x2afec2;if(_0x11dc06[_0x38bb5f(0x9e4)][_0x38bb5f(0xc02)]===0x1)_0x28df0f({'clientX':_0x11dc06[_0x38bb5f(0x9e4)][0x0]['clientX'],'clientY':_0x11dc06[_0x38bb5f(0x9e4)][0x0]['clientY']});},{'signal':_0xd3040a,'passive':!![]}),_0x3a2b0f[_0x2afec2(0x171)](_0x2afec2(0x161),()=>{setTimeout(()=>{const _0x2f8b7c=_0xa914;_0x4b7b29['style'][_0x2f8b7c(0x7a2)]='0';},0x5dc);},{'signal':_0xd3040a}),_0x3a2b0f[_0x2afec2(0x944)][_0x2afec2(0x2a5)]=_0x2afec2(0x670),_0x3a2b0f[_0x2afec2(0x171)](_0x2afec2(0xe5e),_0x39493f=>{const _0x16fa2e=_0x2afec2;if(!this[_0x16fa2e(0x292)])return;const _0x1bf438=this[_0x16fa2e(0x292)],_0x2b84de=_0x3a2b0f['getBoundingClientRect'](),_0x985c99=_0x39493f[_0x16fa2e(0x6a3)]-_0x2b84de[_0x16fa2e(0xf55)],_0x4f6ed6=Math[_0x16fa2e(0xedc)]((_0x985c99-_0x1bf438[_0x16fa2e(0xd99)])/(_0x1bf438[_0x16fa2e(0xddd)]+_0x1bf438[_0x16fa2e(0xfd7)]));if(_0x4f6ed6<0x0||_0x4f6ed6>=_0x1bf438[_0x16fa2e(0x3ea)][_0x16fa2e(0xc02)])return;const _0x5b9f7e=_0x1bf438[_0x16fa2e(0x3ea)][_0x4f6ed6];_0x39493f['stopPropagation'](),this[_0x16fa2e(0x1d2)][_0x16fa2e(0x7f2)](_0x5b9f7e[_0x16fa2e(0x974)]);},{'signal':_0xd3040a});}}class ScatterRenderer extends BaseCanvasRenderer{constructor(_0x26c96a){const _0x2d91fa=_0x46af5e;super(_0x26c96a),this[_0x2d91fa(0x578)]=[],this['_layout']=null,this[_0x2d91fa(0xb26)]=0x0,this[_0x2d91fa(0x2a1)]=0x0;}[_0x46af5e(0x59c)](_0x44185e,_0x1f3685,_0x6f5c3d,_0x3774be){const _0x3ce94e=_0x46af5e,{W:_0x5628d1,H:_0x332250}=this[_0x3ce94e(0xa34)](_0x44185e,_0x6f5c3d);if(_0x1f3685['length']<0x2){_0x44185e[_0x3ce94e(0x17c)]=_0x3ce94e(0xb63)+_0x1f3685[_0x3ce94e(0xc02)]+').</div>';return;}const _0x1e6a27=_0x1f3685[0x0],_0x11428c=_0x1f3685[0x1],_0x361821=this['card'][_0x3ce94e(0xfef)]||[],_0x216083=_0xfec859=>{const _0x6931e0=_0x3ce94e;if(_0xfec859[_0x6931e0(0x974)]&&typeof _0xfec859[_0x6931e0(0x974)]===_0x6931e0(0xc18))return _0xfec859[_0x6931e0(0x974)];const _0x5d3f5c=String(_0xfec859['id']||'')[_0x6931e0(0x727)](/^(.+)__(\d+)$/);if(_0x5d3f5c)return _0x361821[parseInt(_0x5d3f5c[0x2],0xa)]||_0x361821['find'](_0x4f8c89=>_0x4f8c89[_0x6931e0(0x974)]===_0x5d3f5c[0x1]);return _0x361821[_0x6931e0(0x90c)](_0x5075ca=>_0x5075ca['entity']===_0xfec859[_0x6931e0(0x974)])||{'entity':_0xfec859[_0x6931e0(0x974)],'color':_0x6931e0(0x776)};},_0x104d6e=_0x216083(_0x1e6a27),_0x1da787=_0x216083(_0x11428c),_0xbf1ff8=0x493e0,_0x1b918f=(_0x1e6a27[_0x3ce94e(0x93a)]||[])[_0x3ce94e(0x919)](_0x461f02=>_0x461f02['v']!==null&&_0x461f02['v']!==undefined),_0xdd6dfb=(_0x11428c[_0x3ce94e(0x93a)]||[])['filter'](_0x3aeaaf=>_0x3aeaaf['v']!==null&&_0x3aeaaf['v']!==undefined);if(!_0x1b918f['length']||!_0xdd6dfb[_0x3ce94e(0xc02)]){_0x44185e[_0x3ce94e(0x17c)]='<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20data\x20points\x20to\x20pair.</div>';return;}const _0x5960e4=_0xdd6dfb[_0x3ce94e(0x165)]()[_0x3ce94e(0xd09)]((_0x583896,_0x18eb75)=>_0x583896['t']-_0x18eb75['t']),_0x1f7ff6=[];for(const _0x416850 of _0x1b918f){let _0x4143a8=null,_0x470e03=Infinity,_0x2e840e=0x0,_0x1f5bad=_0x5960e4[_0x3ce94e(0xc02)]-0x1;while(_0x2e840e<_0x1f5bad){const _0x5871c8=_0x2e840e+_0x1f5bad>>0x1;if(_0x5960e4[_0x5871c8]['t']<_0x416850['t'])_0x2e840e=_0x5871c8+0x1;else _0x1f5bad=_0x5871c8;}for(const _0x352632 of[_0x2e840e,_0x2e840e-0x1]){if(_0x352632>=0x0&&_0x352632<_0x5960e4[_0x3ce94e(0xc02)]){const _0x438734=Math[_0x3ce94e(0x1ae)](_0x5960e4[_0x352632]['t']-_0x416850['t']);_0x438734<_0x470e03&&(_0x470e03=_0x438734,_0x4143a8=_0x5960e4[_0x352632]);}}_0x4143a8&&_0x470e03<_0xbf1ff8&&_0x1f7ff6[_0x3ce94e(0xb31)]({'xVal':_0x416850['v'],'yVal':_0x4143a8['v'],'t':_0x416850['t']});}if(!_0x1f7ff6[_0x3ce94e(0xc02)]){_0x44185e[_0x3ce94e(0x17c)]='<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>'+escapeHtml(cardT(_0x3774be,_0x6f5c3d,'No\x20matching\x20X/Y\x20data\x20pairs'))+_0x3ce94e(0x743);return;}const {container:_0x25754f,canvas:_0x3a5854,tooltipEl:_0x5a9110}=this[_0x3ce94e(0xa0a)](_0x44185e,_0x332250);if(!_0x3a5854)return;this[_0x3ce94e(0x578)]=_0x1f7ff6,this[_0x3ce94e(0x5a4)]=_0x104d6e,this[_0x3ce94e(0x58e)]=_0x1da787,this[_0x3ce94e(0x5b7)]=_0x1e6a27['meta']||{},this[_0x3ce94e(0xbfa)]=_0x11428c[_0x3ce94e(0x731)]||{},this[_0x3ce94e(0x724)](_0x3a5854,_0x1f7ff6,_0x5628d1,_0x332250,_0x6f5c3d,_0x3774be,_0x25754f,_0x5a9110);}[_0x46af5e(0xd26)](_0x1ac641,_0x202833,_0x4aab06,_0x1de5ff,_0x444e4e,_0x33186a,_0xcc2966){const _0x5299bb=_0x46af5e;if(_0xcc2966===undefined)_0xcc2966=0x1;const _0x33b6de=this[_0x5299bb(0xbc8)](_0x1ac641,_0x4aab06,_0x1de5ff),_0x1768d5=this['_detectDark'](),_0x4ae0d7=_0x1768d5?_0x5299bb(0x995):_0x5299bb(0x5c8),_0x529d04=this['_resolveCssColor'](_0x444e4e[_0x5299bb(0xdb6)],_0x1768d5?_0x5299bb(0xd50):'rgba(0,0,0,0.5)'),_0x42c4bc=this[_0x5299bb(0xa24)](_0x444e4e[_0x5299bb(0x5bd)],_0x1768d5?_0x5299bb(0xd50):_0x5299bb(0x92a)),_0x33cc89=_0x444e4e['x_axis_font_opacity']??0.55,_0x290ddb=_0x444e4e[_0x5299bb(0xd8c)]??0.65,_0x11de8c=parseInt(_0x444e4e[_0x5299bb(0x339)],0xa)||0xa,_0x4f2770=parseInt(_0x444e4e[_0x5299bb(0x1aa)],0xa)||0xa,_0xd0fd7a=this[_0x5299bb(0xc07)](),_0xb8f6f7=_0x202833[_0x5299bb(0xb3f)](_0x29acf5=>_0x29acf5['xVal']),_0x4093ea=_0x202833['map'](_0x1becb0=>_0x1becb0[_0x5299bb(0x78b)]);let _0x1cc7e8=Math[_0x5299bb(0xba1)](..._0xb8f6f7),_0x543b1b=Math[_0x5299bb(0x220)](..._0xb8f6f7),_0x2ec407=Math[_0x5299bb(0xba1)](..._0x4093ea),_0x1dc6d2=Math['max'](..._0x4093ea);const _0x1819dd=(_0x159f6f,_0x5204dd)=>resolveNumericBound(_0x159f6f,_0x5204dd,_0x33186a),_0x5d6204=_0x1819dd(this['_yEnt']?.[_0x5299bb(0xf24)],_0x2ec407),_0x34c8c1=_0x1819dd(this[_0x5299bb(0x58e)]?.[_0x5299bb(0x443)],_0x1dc6d2),_0xb85475=_0x1819dd(this[_0x5299bb(0x5a4)]?.[_0x5299bb(0xf24)],_0x1cc7e8),_0x302245=_0x1819dd(this[_0x5299bb(0x5a4)]?.[_0x5299bb(0x443)],_0x543b1b);_0x2ec407=Math[_0x5299bb(0xba1)](_0x2ec407,_0x5d6204),_0x1dc6d2=Math[_0x5299bb(0x220)](_0x1dc6d2,_0x34c8c1),_0x1cc7e8=Math[_0x5299bb(0xba1)](_0x1cc7e8,_0xb85475),_0x543b1b=Math[_0x5299bb(0x220)](_0x543b1b,_0x302245);_0x543b1b===_0x1cc7e8&&(_0x543b1b=_0x1cc7e8+0x1,_0x1cc7e8-=0x1);_0x1dc6d2===_0x2ec407&&(_0x1dc6d2=_0x2ec407+0x1,_0x2ec407-=0x1);const _0x1fc817=(_0x543b1b-_0x1cc7e8)*0.05,_0xf2686e=(_0x1dc6d2-_0x2ec407)*0.05;_0x1cc7e8-=_0x1fc817,_0x543b1b+=_0x1fc817,_0x2ec407-=_0xf2686e,_0x1dc6d2+=_0xf2686e;const _0x224fd7=_0x444e4e[_0x5299bb(0xe1e)]!==![],_0x1638da=_0x444e4e['show_x_axis']!==![],_0x555c72=isNum(_0x444e4e['y_axis_decimals'])?_0x444e4e[_0x5299bb(0x1010)]:0x1,_0x51f728=0x4+(_0x555c72>0x0?_0x555c72+0x1:0x0),_0x47757e=_0x224fd7?Math[_0x5299bb(0x220)](0x20,_0x51f728*_0x4f2770*0.62+0xc):0x8,_0x515eb7=0x8,_0xde6d8=0x8,_0x380208=_0x1638da?_0x11de8c+0xc:0x8,_0x3420af=_0x4aab06-_0x47757e-_0x515eb7,_0x4567a2=_0x1de5ff-_0xde6d8-_0x380208;if(_0x3420af<=0x0||_0x4567a2<=0x0)return;const _0x2ed02a=_0x1b34fc=>_0x47757e+(_0x1b34fc-_0x1cc7e8)/(_0x543b1b-_0x1cc7e8)*_0x3420af,_0x8fcfdf=_0x501b28=>_0xde6d8+_0x4567a2-(_0x501b28-_0x2ec407)/(_0x1dc6d2-_0x2ec407)*_0x4567a2;this['_layout']={'padL':_0x47757e,'padR':_0x515eb7,'padT':_0xde6d8,'padB':_0x380208,'plotW':_0x3420af,'plotH':_0x4567a2,'xMin':_0x1cc7e8,'xMax':_0x543b1b,'yMin':_0x2ec407,'yMax':_0x1dc6d2,'mapX':_0x2ed02a,'mapY':_0x8fcfdf};const _0x11723f=parseInt(_0x444e4e[_0x5299bb(0x41c)],0xa)||0x4;_0x33b6de[_0x5299bb(0x5dd)]=_0x4ae0d7,_0x33b6de[_0x5299bb(0xf10)]=0x1;if(_0x444e4e[_0x5299bb(0x257)]!==![]){for(let _0x3d23a0=0x0;_0x3d23a0<=_0x11723f;_0x3d23a0++){const _0x270c10=_0x2ec407+(_0x1dc6d2-_0x2ec407)*(_0x3d23a0/_0x11723f),_0x32a0a0=_0x8fcfdf(_0x270c10);_0x33b6de['beginPath'](),_0x33b6de[_0x5299bb(0x811)](_0x47757e,_0x32a0a0),_0x33b6de[_0x5299bb(0x779)](_0x47757e+_0x3420af,_0x32a0a0),_0x33b6de[_0x5299bb(0x3c1)]();}for(let _0x4daa88=0x0;_0x4daa88<=_0x11723f;_0x4daa88++){const _0x3a7621=_0x1cc7e8+(_0x543b1b-_0x1cc7e8)*(_0x4daa88/_0x11723f),_0xe52f2f=_0x2ed02a(_0x3a7621);_0x33b6de[_0x5299bb(0xb64)](),_0x33b6de[_0x5299bb(0x811)](_0xe52f2f,_0xde6d8),_0x33b6de[_0x5299bb(0x779)](_0xe52f2f,_0xde6d8+_0x4567a2),_0x33b6de['stroke']();}}const _0x18050f=(_0x2c9d97,_0xba7669)=>{const _0x595714=_0x5299bb;if(Math['abs'](_0x2c9d97)>=0x3e8)return _0x2c9d97[_0x595714(0x198)](0x0);if(Math[_0x595714(0x1ae)](_0x2c9d97)>=0x64)return _0x2c9d97[_0x595714(0x198)](Math[_0x595714(0x220)](0x0,_0xba7669-0x1));return _0x2c9d97[_0x595714(0x198)](_0xba7669);};if(_0x224fd7){_0x33b6de[_0x5299bb(0x20c)]=_0x42c4bc,_0x33b6de['globalAlpha']=_0x290ddb,_0x33b6de['font']=_0x4f2770+_0x5299bb(0xd01)+_0xd0fd7a,_0x33b6de[_0x5299bb(0x3b1)]=_0x5299bb(0x1fd),_0x33b6de[_0x5299bb(0xf1b)]=_0x5299bb(0x6d4);for(let _0x61feee=0x0;_0x61feee<=_0x11723f;_0x61feee++){const _0x54a347=_0x2ec407+(_0x1dc6d2-_0x2ec407)*(_0x61feee/_0x11723f);_0x33b6de['fillText'](_0x18050f(_0x54a347,_0x555c72),_0x47757e-0x4,_0x8fcfdf(_0x54a347));}_0x33b6de[_0x5299bb(0xd80)]=0x1;}if(_0x1638da){_0x33b6de['fillStyle']=_0x529d04,_0x33b6de[_0x5299bb(0xd80)]=_0x33cc89,_0x33b6de[_0x5299bb(0xee3)]=_0x11de8c+_0x5299bb(0xd01)+_0xd0fd7a,_0x33b6de[_0x5299bb(0xf1b)]=_0x5299bb(0xf55);for(let _0x17e52e=0x0;_0x17e52e<=_0x11723f;_0x17e52e++){const _0x3e3613=_0x1cc7e8+(_0x543b1b-_0x1cc7e8)*(_0x17e52e/_0x11723f),_0x274384=_0x2ed02a(_0x3e3613);_0x33b6de[_0x5299bb(0x3b1)]=_0x17e52e===0x0?_0x5299bb(0xaaf):_0x17e52e===_0x11723f?_0x5299bb(0x1fd):_0x5299bb(0x942),_0x33b6de['fillText'](_0x18050f(_0x3e3613,_0x555c72),_0x274384,_0xde6d8+_0x4567a2+0x4);}_0x33b6de[_0x5299bb(0xd80)]=0x1;}const _0x58e8f2=_0x202833[_0x5299bb(0xb3f)](_0x1ac7d0=>_0x1ac7d0['t']),_0x1a5a27=Math[_0x5299bb(0xba1)](..._0x58e8f2),_0x5dd7b7=Math[_0x5299bb(0x220)](..._0x58e8f2),_0x171fbc=_0x5dd7b7-_0x1a5a27||0x1,_0x4447fd=(this['_xEnt']?.[_0x5299bb(0xd95)]==='threshold'?_0x5299bb(0x776):this[_0x5299bb(0x5a4)]?.[_0x5299bb(0xd95)])||_0x5299bb(0x776),_0x5cebea=toNum(this[_0x5299bb(0x5a4)]?.[_0x5299bb(0x759)]),_0x49d52e=isNum(_0x5cebea)&&_0x5cebea>0x0?clamp(_0x5cebea,0.5,0x14):3.5;_0x202833[_0x5299bb(0xd27)](_0x46f272=>{const _0x73799d=_0x5299bb,_0x2ffc89=(_0x46f272['t']-_0x1a5a27)/_0x171fbc,_0x18946e=_0x2ed02a(_0x46f272['xVal']),_0x125cb5=_0x8fcfdf(_0x46f272[_0x73799d(0x78b)]);_0x33b6de[_0x73799d(0xb64)](),_0x33b6de['arc'](_0x18946e,_0x125cb5,_0x49d52e,0x0,Math['PI']*0x2),_0x33b6de[_0x73799d(0x20c)]=_0x4447fd,_0x33b6de['globalAlpha']=(0.3+_0x2ffc89*0.55)*_0xcc2966,_0x33b6de[_0x73799d(0x290)]();}),_0x33b6de[_0x5299bb(0xd80)]=0x1;if(_0x202833[_0x5299bb(0xc02)]>=0x3&&_0xcc2966>=0.999){let _0x2af32e=0x0,_0x54c072=0x0,_0x55b16e=0x0,_0x370b3f=0x0;const _0xaa64f=_0x202833['length'];for(const _0xc74d66 of _0x202833){_0x2af32e+=_0xc74d66[_0x5299bb(0x5db)],_0x54c072+=_0xc74d66[_0x5299bb(0x78b)],_0x55b16e+=_0xc74d66[_0x5299bb(0x5db)]*_0xc74d66[_0x5299bb(0x78b)],_0x370b3f+=_0xc74d66['xVal']*_0xc74d66[_0x5299bb(0x5db)];}const _0x4f5a7d=_0xaa64f*_0x370b3f-_0x2af32e*_0x2af32e;if(Math[_0x5299bb(0x1ae)](_0x4f5a7d)>1e-9){const _0x29878c=(_0xaa64f*_0x55b16e-_0x2af32e*_0x54c072)/_0x4f5a7d,_0x561deb=(_0x54c072-_0x29878c*_0x2af32e)/_0xaa64f,_0x393b1f=_0x1cc7e8,_0x174429=_0x29878c*_0x393b1f+_0x561deb,_0x41953e=_0x543b1b,_0x3cd9c2=_0x29878c*_0x41953e+_0x561deb;_0x33b6de[_0x5299bb(0x5dd)]=_0x4447fd,_0x33b6de[_0x5299bb(0xd80)]=0.45,_0x33b6de[_0x5299bb(0xf10)]=1.5,_0x33b6de[_0x5299bb(0xd46)]([0x4,0x4]),_0x33b6de[_0x5299bb(0xb64)](),_0x33b6de[_0x5299bb(0x811)](_0x2ed02a(_0x393b1f),_0x8fcfdf(_0x174429)),_0x33b6de['lineTo'](_0x2ed02a(_0x41953e),_0x8fcfdf(_0x3cd9c2)),_0x33b6de[_0x5299bb(0x3c1)](),_0x33b6de[_0x5299bb(0xd46)]([]),_0x33b6de[_0x5299bb(0xd80)]=0x1;}}}[_0x46af5e(0x180)](_0x25db59,_0x4c572a,_0x160a9f,_0x4d841a){const _0x30b16d=_0x46af5e;if(!_0x4c572a||!_0x25db59||_0x160a9f[_0x30b16d(0xeed)]===![]||!this[_0x30b16d(0x292)]||!this['_pairs']?.[_0x30b16d(0xc02)])return;const _0x44c25c=this[_0x30b16d(0xccb)][_0x30b16d(0x5fe)],_0x324326=this['_layout'],_0x3944c4=this[_0x30b16d(0x5a4)]?.[_0x30b16d(0xdee)]||this[_0x30b16d(0x5b7)]?.[_0x30b16d(0x457)]||this[_0x30b16d(0x5a4)]?.[_0x30b16d(0x974)]||'X',_0x4d2dc4=this['_yEnt']?.[_0x30b16d(0xdee)]||this['_yMeta']?.[_0x30b16d(0x457)]||this[_0x30b16d(0x58e)]?.[_0x30b16d(0x974)]||'Y',_0x319719=(this[_0x30b16d(0x5a4)]?.[_0x30b16d(0xd95)]==='threshold'?_0x30b16d(0x776):this['_xEnt']?.[_0x30b16d(0xd95)])||_0x30b16d(0x776),_0x46895e=this[_0x30b16d(0x5a4)]?.[_0x30b16d(0x32e)]||this['_xMeta']?.[_0x30b16d(0x398)]||'',_0x4891c0=this[_0x30b16d(0x58e)]?.[_0x30b16d(0x32e)]||this[_0x30b16d(0xbfa)]?.[_0x30b16d(0x398)]||'',_0x325953=_0x336f88=>{const _0x40f29d=_0x30b16d,_0x7b57e=_0x25db59[_0x40f29d(0x9cc)](),_0x5c8ab7=_0x336f88[_0x40f29d(0x51e)]-_0x7b57e['left'],_0x5bfcb7=_0x336f88[_0x40f29d(0x6a3)]-_0x7b57e[_0x40f29d(0xf55)];let _0x5e019a=null,_0x31003b=Infinity;for(const _0x4c38e9 of this[_0x40f29d(0x578)]){const _0x1f02f2=_0x324326[_0x40f29d(0x2d7)](_0x4c38e9['xVal']),_0x55058a=_0x324326[_0x40f29d(0xdb0)](_0x4c38e9[_0x40f29d(0x78b)]),_0x11e047=Math[_0x40f29d(0x2ed)]((_0x5c8ab7-_0x1f02f2)**0x2+(_0x5bfcb7-_0x55058a)**0x2);_0x11e047<_0x31003b&&_0x11e047<0x12&&(_0x31003b=_0x11e047,_0x5e019a=_0x4c38e9);}if(!_0x5e019a){_0x4c572a[_0x40f29d(0x944)]['opacity']='0';return;}const _0x4d04b4=formatNumber(_0x5e019a['xVal'],this['_xEnt'],_0x4d841a),_0x29875f=formatNumber(_0x5e019a[_0x40f29d(0x78b)],this['_yEnt'],_0x4d841a),_0x178c47=new Date(_0x5e019a['t']),_0xc55b9a=resolveCardLanguage(_0x4d841a,this[_0x40f29d(0x1d2)]?.[_0x40f29d(0xfe9)]),_0x1680c8=getCachedDateTimeFormatter(_0xc55b9a,{'day':'numeric','month':_0x40f29d(0xfec),'year':'numeric'}),_0x1b5160=getCachedDateTimeFormatter(_0xc55b9a,_localeTimeOpts(_0x4d841a,{'hour':_0x40f29d(0x615),'minute':'2-digit'})),_0x2d6986=_0x1680c8?_0x1680c8['format'](_0x178c47):_0x178c47[_0x40f29d(0x1021)](),_0x3f29e2=_0x1b5160?_0x1b5160['format'](_0x178c47):_0x178c47['toLocaleTimeString'](),_0x4e9fc1=_0x2d6986+'\x20'+_0x3f29e2,_0x22251d=this[_0x40f29d(0x5a4)]?.[_0x40f29d(0x452)]!==![]?escapeHtml(_0x319719):_0x40f29d(0x2ca);_0x4c572a['innerHTML']=_0x40f29d(0x260)+escapeHtml(_0x4e9fc1)+_0x40f29d(0xc3d)+(_0x40f29d(0x20e)+_0x22251d+_0x40f29d(0x23f)+escapeHtml(_0x3944c4)+_0x40f29d(0xd5c)+escapeHtml(String(_0x4d04b4))+'\x20'+escapeHtml(_0x46895e)+_0x40f29d(0xc3d))+(_0x40f29d(0x2f9)+escapeHtml(_0x4d2dc4)+_0x40f29d(0xd5c)+escapeHtml(String(_0x29875f))+'\x20'+escapeHtml(_0x4891c0)+_0x40f29d(0xc3d)),this[_0x40f29d(0x7bc)](_0x4c572a,_0x7b57e,_0x5c8ab7);};this[_0x30b16d(0x7ab)](_0x25db59,_0x4c572a,_0x325953,_0x44c25c),_0x25db59[_0x30b16d(0x944)]['cursor']=_0x30b16d(0x670),_0x25db59[_0x30b16d(0x171)](_0x30b16d(0xe5e),_0x498141=>{const _0x2e407f=_0x30b16d,_0x2935d4=_0x25db59[_0x2e407f(0x9cc)](),_0x205997=_0x498141[_0x2e407f(0x51e)]-_0x2935d4[_0x2e407f(0xaaf)],_0x1fc6d1=_0x498141[_0x2e407f(0x6a3)]-_0x2935d4[_0x2e407f(0xf55)];let _0x57c639=null,_0x47f361=Infinity;for(const _0x40bce8 of this['_pairs']){const _0x371abb=_0x324326[_0x2e407f(0x2d7)](_0x40bce8[_0x2e407f(0x5db)]),_0x40941d=_0x324326[_0x2e407f(0xdb0)](_0x40bce8[_0x2e407f(0x78b)]),_0x3455ee=Math['sqrt']((_0x205997-_0x371abb)**0x2+(_0x1fc6d1-_0x40941d)**0x2);_0x3455ee<_0x47f361&&_0x3455ee<0x12&&(_0x47f361=_0x3455ee,_0x57c639=_0x40bce8);}if(!_0x57c639)return;_0x498141[_0x2e407f(0x7ba)](),this['card'][_0x2e407f(0x7f2)](this[_0x2e407f(0x58e)]);},{'signal':_0x44c25c});}}function _heatmapValueToColor(_0xb56749,_0x3dcdfe){const _0x268ea3=_0x46af5e;let _0x263023=String(_0x3dcdfe||_0x268ea3(0x776))[_0x268ea3(0x5ef)]('#','');if(_0x263023['length']===0x3)_0x263023=_0x263023['split']('')[_0x268ea3(0xb3f)](_0x3bd377=>_0x3bd377+_0x3bd377)[_0x268ea3(0x888)]('');if(_0x263023[_0x268ea3(0xc02)]!==0x6)return'rgba(74,144,217,'+(0.1+_0xb56749*0.85)+')';const _0x698b62=parseInt(_0x263023[_0x268ea3(0x165)](0x0,0x2),0x10),_0x365f5d=parseInt(_0x263023[_0x268ea3(0x165)](0x2,0x4),0x10),_0x130e07=parseInt(_0x263023[_0x268ea3(0x165)](0x4,0x6),0x10),_0x59b6cb=0.1+_0xb56749*0.85;return _0x268ea3(0xa76)+_0x698b62+','+_0x365f5d+','+_0x130e07+','+_0x59b6cb+')';}function reduceByAggregate(_0xde6c46,_0xf06d17){const _0x3d2f27=_0x46af5e;if(_0xf06d17===_0x3d2f27(0x2d8))return _0xde6c46[0x0]['v'];if(_0xf06d17===_0x3d2f27(0x7e6)||_0xf06d17===_0x3d2f27(0xe34)||_0xf06d17==='diff')return _0xde6c46[_0x3d2f27(0x617)]((_0x44cf99,_0x2f2d67)=>_0x44cf99+(_0x2f2d67['v']||0x0),0x0);if(_0xf06d17===_0x3d2f27(0xba1))return _0xde6c46[_0x3d2f27(0x617)]((_0x29432e,_0x544ad5)=>Math[_0x3d2f27(0xba1)](_0x29432e,_0x544ad5['v']),Infinity);if(_0xf06d17==='max')return _0xde6c46[_0x3d2f27(0x617)]((_0x414a67,_0x5f0607)=>Math[_0x3d2f27(0x220)](_0x414a67,_0x5f0607['v']),-Infinity);if(_0xf06d17===_0x3d2f27(0xf49))return DataProcessor['_aggregate'](_0xde6c46[_0x3d2f27(0xb3f)](_0x315e9f=>_0x315e9f['v']),_0x3d2f27(0xf49));if(_0xf06d17==='avg'||_0xf06d17===_0x3d2f27(0xd0e))return _0xde6c46['reduce']((_0x51800c,_0x386132)=>_0x51800c+(_0x386132['v']||0x0),0x0)/_0xde6c46['length'];return _0xde6c46[_0xde6c46[_0x3d2f27(0xc02)]-0x1]['v'];}function resolveNumericBound(_0x3550f2,_0x442634,_0x46b34d){if(_0x3550f2===null||_0x3550f2===undefined||_0x3550f2==='')return _0x442634;const _0x5ed717=String(_0x3550f2)['replace'](/^~/,'')['trim'](),_0x2d845f=parseFloat(_0x5ed717);if(!isNaN(_0x2d845f))return _0x2d845f;const _0x49f593=resolveDynamicValue(_0x5ed717,_0x46b34d);return _0x49f593===null?_0x442634:_0x49f593;}function resolveEntityBound(_0x1be6de,_0x1c42a5,_0x1f72dd){const _0x11f0e5=_0x46af5e;if(_0x1be6de===null||_0x1be6de===undefined||_0x1be6de==='')return _0x1c42a5;const _0x3b81c7=String(_0x1be6de)['replace'](/^~/,'')[_0x11f0e5(0xa11)](),_0x206c62=parseFloat(_0x3b81c7);if(!isNaN(_0x206c62))return _0x206c62;const _0x450059=resolveDynamicValue(_0x3b81c7,_0x1f72dd);return _0x450059===null?_0x1c42a5:_0x450059;}function _matrixFilterPoints(_0x75629e){const _0x3b5522=_0x46af5e,_0xb0043e=Date['now']();return(_0x75629e[_0x3b5522(0x93a)]||_0x75629e[_0x3b5522(0xbcc)]||[])['filter'](_0x150d67=>_0x150d67['v']!==null&&_0x150d67['v']!==undefined&&_0x150d67['t']<=_0xb0043e);}function _resolveMatrixBounds(_0x20a1d5,_0x1e352a,_0x215436,_0x10f7f8){const _0x399307=_0x46af5e;return!isFinite(_0x20a1d5)&&(_0x20a1d5=0x0,_0x1e352a=0x1),{'min':resolveNumericBound(_0x215436[_0x399307(0xf24)],_0x20a1d5,_0x10f7f8),'max':resolveNumericBound(_0x215436[_0x399307(0x443)],_0x1e352a,_0x10f7f8)};}class HeatmapRenderer extends BaseCanvasRenderer{constructor(_0x30bb1d){const _0x44efa8=_0x46af5e;super(_0x30bb1d),this[_0x44efa8(0x6c4)]=null,this['_cells']=null,this['_entity']=null,this[_0x44efa8(0xa59)]=_0x44efa8(0x776);}['render'](_0x51f4b0,_0x157e27,_0x4dfe9d,_0x303290){const _0x4f436d=_0x46af5e;this[_0x4f436d(0x97e)](_0x51f4b0,_0x157e27,_0x4dfe9d,_0x303290,_0x4f436d(0x729));}[_0x46af5e(0x49f)](_0x2ea3e9,_0x1b3edb,_0x3ba862=0x1){const _0x58b74d=_0x46af5e,_0x5a1346=_matrixFilterPoints(_0x2ea3e9);if(!_0x5a1346['length'])return{'days':[],'min':0x0,'max':0x1};const _0x2eb00e=new Map(),_0x311bd2=resolveDisplayTimeZone(this[_0x58b74d(0x1d2)]?.[_0x58b74d(0x1dc)],this['card']?.[_0x58b74d(0xfe9)]);_0x5a1346['forEach'](_0x3d9075=>{const _0x3197a1=_0x58b74d,_0x15d74f=tzParts(_0x3d9075['t'],_0x311bd2),_0x4461f2=_0x15d74f['y']+'-'+String(_0x15d74f['mo']+0x1)[_0x3197a1(0x470)](0x2,'0')+'-'+String(_0x15d74f['d'])[_0x3197a1(0x470)](0x2,'0'),_0x4c3a06=_0x15d74f['h'];!_0x2eb00e['has'](_0x4461f2)&&_0x2eb00e[_0x3197a1(0xa2d)](_0x4461f2,Array[_0x3197a1(0xf9e)]({'length':0x18},()=>[])),_0x2eb00e[_0x3197a1(0xc3f)](_0x4461f2)[_0x4c3a06]['push'](_0x3d9075['v']);});const _0x404a63=_0x1b3edb[_0x58b74d(0xc48)]||'avg',_0x294edb=_0x404a63==='change'||_0x404a63==='diff'?_0x58b74d(0x7e6):_0x404a63,_0x1eb29e=[];let _0x31c755=Infinity,_0x3c503a=-Infinity;return[..._0x2eb00e[_0x58b74d(0x653)]()][_0x58b74d(0xd09)]()['forEach'](([_0x449d5f,_0x25c77b])=>{const _0xb79269=_0x58b74d,_0x485476=_0x25c77b[_0xb79269(0xb3f)](_0x2c5f50=>DataProcessor[_0xb79269(0x9d9)](_0x2c5f50,_0x294edb));_0x485476[_0xb79269(0xd27)](_0x389159=>{const _0x18d549=_0xb79269;_0x389159!==null&&!isNaN(_0x389159)&&(_0x31c755=Math['min'](_0x31c755,_0x389159),_0x3c503a=Math[_0x18d549(0x220)](_0x3c503a,_0x389159));}),_0x1eb29e['push']({'date':_0x449d5f,'values':_0x485476});}),{min:_0x31c755,max:_0x3c503a}=_resolveMatrixBounds(_0x31c755,_0x3c503a,_0x1b3edb,this['card']?.[_0x58b74d(0x1dc)]),{'days':_0x1eb29e,'min':_0x31c755,'max':_0x3c503a};}[_0x46af5e(0xd26)](_0x1aad4e,_0x323182,_0x3c9480,_0x2fb2fc,_0x287529,_0x21ed09){const _0x5a721e=_0x46af5e,_0x2917e8=this[_0x5a721e(0xbc8)](_0x1aad4e,_0x3c9480,_0x2fb2fc),_0x222610=this[_0x5a721e(0xffd)](),_0x7e732=((()=>{const _0x138831=_0x5a721e;try{return getComputedStyle(this[_0x138831(0x1d2)])[_0x138831(0x767)](_0x138831(0x634))[_0x138831(0xa11)]()||(_0x222610?_0x138831(0xdb7):'rgba(0,0,0,0.75)');}catch(_0x2055f2){return _0x222610?_0x138831(0xdb7):_0x138831(0x98d);}})()),_0xbd7ead=this[_0x5a721e(0xa24)](_0x287529[_0x5a721e(0x5bd)]||_0x287529[_0x5a721e(0xdb6)],_0x7e732),_0x3e5794=_0xbd7ead,_0x1b84d2=this[_0x5a721e(0xc07)](),_0x3c2d06=((()=>{const _0x55d111=_0x5a721e,_0x1596b7=toNum(_0x287529[_0x55d111(0x1aa)]);return _0x1596b7&&_0x1596b7>0x0?_0x1596b7:0x9;})()),_0x6897c3=Math[_0x5a721e(0x220)](0x34,Math[_0x5a721e(0x686)](0x34*_0x3c2d06/0x9)),_0x195a68=0x10,_0x5729a1=0x14,_0x5aac6c=0x8,_0x5b71d9=0x2,_0x119a52=_0x323182[_0x5a721e(0xe29)][_0x5a721e(0xc02)],_0x2039bd=0x18,_0x51cf53=_0x3c9480-_0x6897c3-_0x5aac6c,_0x287fb3=_0x2fb2fc-_0x195a68-_0x5729a1,_0x24a60a=(_0x51cf53-(_0x2039bd-0x1)*_0x5b71d9)/_0x2039bd,_0x464996=(_0x287fb3-(_0x119a52-0x1)*_0x5b71d9)/_0x119a52,_0x237be6=_0x323182[_0x5a721e(0x220)]-_0x323182[_0x5a721e(0xba1)]||0x1;this['_cells']={'padL':_0x6897c3,'padT':_0x195a68,'cellW':_0x24a60a,'cellH':_0x464996,'gap':_0x5b71d9,'rows':_0x119a52,'cols':_0x2039bd};const _0x5ad764=this[_0x5a721e(0x1a7)],_0x5dad98=_0x5ad764?.[_0x5a721e(0xdd5)]?.[_0x5a721e(0x1007)]&&_0x5ad764[_0x5a721e(0xdd5)][_0x5a721e(0x202)]?.[_0x5a721e(0xc02)];_0x323182[_0x5a721e(0xe29)][_0x5a721e(0xd27)]((_0x5ee48f,_0x22ee2f)=>{const _0x14a56c=_0x5a721e;_0x5ee48f['values'][_0x14a56c(0xd27)]((_0x187990,_0x3e7f6f)=>{const _0x25ffbf=_0x14a56c;if(_0x187990===null||_0x187990===undefined)return;const _0x4366bc=_0x6897c3+_0x3e7f6f*(_0x24a60a+_0x5b71d9),_0x20b701=_0x195a68+_0x22ee2f*(_0x464996+_0x5b71d9);if(_0x5dad98)_0x2917e8[_0x25ffbf(0x20c)]=resolveValueColor(_0x187990,this[_0x25ffbf(0x1d2)][_0x25ffbf(0x83c)](_0x5ad764),this['_color']),_0x2917e8[_0x25ffbf(0xd80)]=0.85;else{const _0x4ee65e=Math['max'](0x0,Math[_0x25ffbf(0xba1)](0x1,(_0x187990-_0x323182['min'])/_0x237be6));_0x2917e8[_0x25ffbf(0x20c)]=_heatmapValueToColor(_0x4ee65e,this[_0x25ffbf(0xa59)]),_0x2917e8[_0x25ffbf(0xd80)]=0x1;}_0x2917e8[_0x25ffbf(0xb64)]();typeof _0x2917e8[_0x25ffbf(0xc37)]===_0x25ffbf(0x8c6)?_0x2917e8[_0x25ffbf(0xc37)](_0x4366bc,_0x20b701,_0x24a60a,_0x464996,0x2):_0x2917e8[_0x25ffbf(0x53f)](_0x4366bc,_0x20b701,_0x24a60a,_0x464996);_0x2917e8['fill'](),_0x2917e8[_0x25ffbf(0xd80)]=0x1;if(_0x287529[_0x25ffbf(0xe18)]!==![]&&_0x24a60a>0x12&&_0x464996>0xe){_0x2917e8[_0x25ffbf(0x20c)]=_0x222610?_0x25ffbf(0xf4e):_0x25ffbf(0x6f5),_0x2917e8[_0x25ffbf(0xee3)]=_0x25ffbf(0x42c)+Math[_0x25ffbf(0xba1)](0x9,_0x464996-0x4)+_0x25ffbf(0xd01)+_0x1b84d2,_0x2917e8[_0x25ffbf(0x3b1)]='center',_0x2917e8[_0x25ffbf(0xf1b)]=_0x25ffbf(0x6d4);const _0x5253d3=formatNumber(_0x187990,_0x5ad764,_0x21ed09);_0x2917e8[_0x25ffbf(0xa74)](_0x5253d3,_0x4366bc+_0x24a60a/0x2,_0x20b701+_0x464996/0x2);}});});const _0xd871dd=((()=>{const _0x20487d=_0x5a721e,_0x24e345=toNum(_0x287529[_0x20487d(0xd8c)]);return _0x24e345!=null&&_0x24e345>=0x0&&_0x24e345<=0x1?_0x24e345:0x1;})());_0x2917e8[_0x5a721e(0xe8f)](),_0x2917e8[_0x5a721e(0x20c)]=_0x3e5794,_0x2917e8[_0x5a721e(0xd80)]=_0xd871dd,_0x2917e8[_0x5a721e(0xee3)]=_0x3c2d06+'px\x20'+_0x1b84d2,_0x2917e8['textAlign']='right',_0x2917e8[_0x5a721e(0xf1b)]=_0x5a721e(0x6d4);const _0x5b85af=Math[_0x5a721e(0x220)](0x1,Math['ceil'](_0x119a52/0xa));_0x323182[_0x5a721e(0xe29)][_0x5a721e(0xd27)]((_0x55ec43,_0x41959c)=>{const _0x32e5e7=_0x5a721e;if(_0x41959c%_0x5b85af!==0x0)return;const _0x11446b=new Date(_0x55ec43[_0x32e5e7(0x88f)]+_0x32e5e7(0x2de)),_0x419fb3=_0x11446b[_0x32e5e7(0x1021)](resolveCardLanguage(_0x21ed09,_0x287529),{'day':_0x32e5e7(0x615),'month':_0x32e5e7(0xfec)});_0x2917e8[_0x32e5e7(0xa74)](_0x419fb3,_0x6897c3-0x6,_0x195a68+_0x41959c*(_0x464996+_0x5b71d9)+_0x464996/0x2);}),_0x2917e8[_0x5a721e(0x3aa)]();const _0x2efe22=((()=>{const _0x58cc23=_0x5a721e,_0x537f66=toNum(_0x287529[_0x58cc23(0x339)]);return _0x537f66&&_0x537f66>0x0?_0x537f66:0x9;})()),_0x1b50e6=((()=>{const _0x4bc7b5=_0x5a721e,_0x4ba38d=toNum(_0x287529[_0x4bc7b5(0xb66)]);return _0x4ba38d!=null&&_0x4ba38d>=0x0&&_0x4ba38d<=0x1?_0x4ba38d:0x1;})());_0x2917e8['save'](),_0x2917e8[_0x5a721e(0x20c)]=this[_0x5a721e(0xa24)](_0x287529[_0x5a721e(0xdb6)],_0x7e732),_0x2917e8[_0x5a721e(0xd80)]=_0x1b50e6,_0x2917e8['font']=_0x2efe22+_0x5a721e(0xd01)+_0x1b84d2,_0x2917e8['textAlign']=_0x5a721e(0x942),_0x2917e8[_0x5a721e(0xf1b)]=_0x5a721e(0xf55);for(let _0x3cee7b=0x0;_0x3cee7b<0x18;_0x3cee7b+=0x2){_0x2917e8[_0x5a721e(0xa74)](String(_0x3cee7b),_0x6897c3+_0x3cee7b*(_0x24a60a+_0x5b71d9)+_0x24a60a/0x2,_0x195a68+_0x119a52*(_0x464996+_0x5b71d9)+0x4);}_0x2917e8['restore']();}[_0x46af5e(0x180)](_0xc16a2a,_0x189be0,_0x25f55c,_0x38dd1e){const _0x6c18c4=_0x46af5e;if(!_0x189be0||!_0xc16a2a||_0x25f55c[_0x6c18c4(0xeed)]===![]||!this['_cells'])return;const _0x158420=this[_0x6c18c4(0xccb)]['signal'],_0x279a81=this[_0x6c18c4(0x24b)],_0x1b5dff=this[_0x6c18c4(0x6c4)],_0x39e862=this[_0x6c18c4(0x1a7)],_0x34fd81=_0x39e862?.['name']||this[_0x6c18c4(0x2be)]?.['friendly_name']||_0x39e862?.[_0x6c18c4(0x974)]||'?',_0x1a1946=_0x39e862?.['unit']||this[_0x6c18c4(0x2be)]?.[_0x6c18c4(0x398)]||'',_0x3df85f=this[_0x6c18c4(0xa59)],_0x821918=_0x3230f7=>{const _0x3877e5=_0x6c18c4,_0x3574d7=_0xc16a2a[_0x3877e5(0x9cc)](),_0x289cff=_0x3230f7[_0x3877e5(0x51e)]-_0x3574d7[_0x3877e5(0xaaf)],_0x432f3f=_0x3230f7[_0x3877e5(0x6a3)]-_0x3574d7['top'],_0x1f55f8=Math[_0x3877e5(0xedc)]((_0x289cff-_0x279a81[_0x3877e5(0xcd9)])/(_0x279a81[_0x3877e5(0x44f)]+_0x279a81[_0x3877e5(0xfd7)])),_0x103ffb=Math['floor']((_0x432f3f-_0x279a81[_0x3877e5(0xd99)])/(_0x279a81[_0x3877e5(0x4a4)]+_0x279a81['gap']));if(_0x1f55f8<0x0||_0x1f55f8>=_0x279a81[_0x3877e5(0x7c8)]||_0x103ffb<0x0||_0x103ffb>=_0x279a81[_0x3877e5(0x72e)]){_0x189be0[_0x3877e5(0x944)]['opacity']='0';return;}const _0x3ade9d=_0x1b5dff['days'][_0x103ffb],_0x387e65=_0x3ade9d?.[_0x3877e5(0x202)]?.[_0x1f55f8];if(_0x387e65===null||_0x387e65===undefined){_0x189be0[_0x3877e5(0x944)][_0x3877e5(0x7a2)]='0';return;}const _0x207fcb=new Date(_0x3ade9d[_0x3877e5(0x88f)]+_0x3877e5(0x2de))[_0x3877e5(0x1021)](),_0x459357=String(_0x1f55f8)[_0x3877e5(0x470)](0x2,'0')+_0x3877e5(0xafb),_0x40034b=formatNumber(_0x387e65,_0x39e862,_0x38dd1e),_0xf12f73=_0x39e862?.[_0x3877e5(0x452)]!==![]?escapeHtml(_0x3df85f):_0x3877e5(0x2ca);_0x189be0['innerHTML']=_0x3877e5(0x260)+escapeHtml(_0x207fcb)+'\x20'+escapeHtml(_0x459357)+_0x3877e5(0xc3d)+(_0x3877e5(0x20e)+_0xf12f73+_0x3877e5(0x23f)+escapeHtml(_0x34fd81)+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+escapeHtml(String(_0x40034b))+'\x20'+escapeHtml(_0x1a1946)+_0x3877e5(0xc3d)),this[_0x3877e5(0x7bc)](_0x189be0,_0x3574d7,_0x289cff);};this[_0x6c18c4(0x7ab)](_0xc16a2a,_0x189be0,_0x821918,_0x158420),_0xc16a2a['style'][_0x6c18c4(0x2a5)]=_0x6c18c4(0x670),_0xc16a2a[_0x6c18c4(0x171)](_0x6c18c4(0xe5e),_0x252f26=>{const _0x17dcdd=_0x6c18c4;_0x252f26[_0x17dcdd(0x7ba)](),this[_0x17dcdd(0x1d2)]['_fireEntityAction'](this['_entity']);},{'signal':_0x158420});}}class CalendarRenderer extends BaseCanvasRenderer{constructor(_0x21bbda){const _0x2ead4d=_0x46af5e;super(_0x21bbda),this[_0x2ead4d(0x6c4)]=null,this[_0x2ead4d(0x24b)]=null,this[_0x2ead4d(0x1a7)]=null,this['_color']=_0x2ead4d(0x776);}[_0x46af5e(0x59c)](_0x4396d6,_0x56c920,_0x2628e6,_0x3f8e8e){const _0x5f07e4=_0x46af5e;this[_0x5f07e4(0x97e)](_0x4396d6,_0x56c920,_0x2628e6,_0x3f8e8e,_0x5f07e4(0xd06));}[_0x46af5e(0x49f)](_0x42613d,_0x21bfd9,_0x1bd1a4=0x1){const _0x4d26f1=_0x46af5e,_0x5eca87=_matrixFilterPoints(_0x42613d);if(!_0x5eca87[_0x4d26f1(0xc02)])return{'weeks':[],'min':0x0,'max':0x1};const _0x2f7faf=new Map(),_0x5ad459=resolveDisplayTimeZone(this['card']?.[_0x4d26f1(0x1dc)],this[_0x4d26f1(0x1d2)]?.[_0x4d26f1(0xfe9)]),_0x4f0ae8=_0x2b9ad7=>{const _0x2ca811=_0x4d26f1,_0x1d0877=tzParts(_0x2b9ad7,_0x5ad459);return _0x1d0877['y']+'-'+String(_0x1d0877['mo']+0x1)['padStart'](0x2,'0')+'-'+String(_0x1d0877['d'])[_0x2ca811(0x470)](0x2,'0');};_0x5eca87['forEach'](_0x57a30d=>{const _0x37db89=_0x4d26f1,_0x20378e=_0x4f0ae8(_0x57a30d['t']);if(!_0x2f7faf[_0x37db89(0x101d)](_0x20378e))_0x2f7faf[_0x37db89(0xa2d)](_0x20378e,[]);_0x2f7faf[_0x37db89(0xc3f)](_0x20378e)[_0x37db89(0xb31)](_0x57a30d['v']);});const _0x4aa293=_0x21bfd9['aggregate_func']||_0x4d26f1(0xfbc),_0x579a32=_0x4aa293==='change'||_0x4aa293===_0x4d26f1(0x934)?'sum':_0x4aa293,_0x5b3496=[];let _0x45d538=Infinity,_0x24988a=-Infinity;[..._0x2f7faf['entries']()][_0x4d26f1(0xd09)]()['forEach'](([_0x545aae,_0x3eb300])=>{const _0xc2c77e=_0x4d26f1,_0x19c919=DataProcessor[_0xc2c77e(0x9d9)](_0x3eb300,_0x579a32),_0x54fc70=_0x19c919===null||_0x19c919===undefined?NaN:_0x19c919;!isNaN(_0x54fc70)&&(_0x45d538=Math[_0xc2c77e(0xba1)](_0x45d538,_0x54fc70),_0x24988a=Math[_0xc2c77e(0x220)](_0x24988a,_0x54fc70));const _0x42a607=new Date(_0x545aae+'T12:00:00'),_0x3e1983=weekStartOffsetDays(_0x42a607[_0xc2c77e(0xc39)]()||0x7,_0x1bd1a4);_0x5b3496['push']({'date':_0x545aae,'val':_0x54fc70,'weekday':_0x3e1983,'dateObj':_0x42a607});}),{min:_0x45d538,max:_0x24988a}=_resolveMatrixBounds(_0x45d538,_0x24988a,_0x21bfd9,this[_0x4d26f1(0x1d2)]?.['_hass']);const _0x46f540=[];if(_0x5b3496[_0x4d26f1(0xc02)]){let _0x183a70=0x0;_0x46f540['push'](Array(0x7)[_0x4d26f1(0x290)](null)),_0x5b3496[_0x4d26f1(0xd27)]((_0x590874,_0x26d792)=>{const _0x42a068=_0x4d26f1;_0x26d792>0x0&&_0x590874[_0x42a068(0x25f)]<=_0x5b3496[_0x26d792-0x1][_0x42a068(0x25f)]&&(_0x183a70++,_0x46f540[_0x42a068(0xb31)](Array(0x7)['fill'](null))),_0x46f540[_0x183a70][_0x590874['weekday']]=_0x590874;});}return{'weeks':_0x46f540,'min':_0x45d538,'max':_0x24988a};}[_0x46af5e(0xd26)](_0xd969a2,_0x3a6c70,_0x388918,_0x6cac57,_0x9f190d,_0x3a8036){const _0x2b53a8=_0x46af5e,_0x52e99e=this[_0x2b53a8(0xbc8)](_0xd969a2,_0x388918,_0x6cac57),_0x23daa4=this[_0x2b53a8(0xffd)](),_0x45d8dd=((()=>{const _0x306f8e=_0x2b53a8;try{return getComputedStyle(this['card'])[_0x306f8e(0x767)](_0x306f8e(0x634))[_0x306f8e(0xa11)]()||(_0x23daa4?_0x306f8e(0xdb7):_0x306f8e(0x98d));}catch(_0x28c971){return _0x23daa4?_0x306f8e(0xdb7):'rgba(0,0,0,0.75)';}})()),_0x2af820=this[_0x2b53a8(0xa24)](_0x9f190d['y_axis_color']||_0x9f190d[_0x2b53a8(0xdb6)],_0x45d8dd),_0x5c1713=_0x2af820,_0x3d3a3e=this[_0x2b53a8(0xc07)](),_0x54e6d6=((()=>{const _0x2e1b17=toNum(_0x9f190d['y_axis_font_size']);return _0x2e1b17&&_0x2e1b17>0x0?_0x2e1b17:0x9;})()),_0x4bbedb=Math[_0x2b53a8(0x220)](0x24,Math['round'](0x24*_0x54e6d6/0x9)),_0x2efbf6=0x16,_0x406737=0x8,_0x829d1a=0x8,_0x518e0e=0x3,_0x2c41ab=_0x3a6c70[_0x2b53a8(0x3b5)]['length'],_0x234b29=0x7,_0x573cff=_0x388918-_0x4bbedb-_0x829d1a,_0xffe819=_0x6cac57-_0x2efbf6-_0x406737,_0x398641=(_0x573cff-(_0x234b29-0x1)*_0x518e0e)/_0x234b29,_0x2f1118=(_0xffe819-(_0x2c41ab-0x1)*_0x518e0e)/_0x2c41ab,_0x51314d=Math[_0x2b53a8(0xba1)](_0x398641,_0x2f1118),_0x3a801b=_0x3a6c70[_0x2b53a8(0x220)]-_0x3a6c70[_0x2b53a8(0xba1)]||0x1;this['_cells']={'padL':_0x4bbedb,'padT':_0x2efbf6,'cellW':_0x398641,'cellH':_0x2f1118,'gap':_0x518e0e,'rows':_0x2c41ab,'cols':_0x234b29};const _0x1ae651=this[_0x2b53a8(0x1a7)],_0x2ff5f1=_0x1ae651?.[_0x2b53a8(0xdd5)]?.[_0x2b53a8(0x1007)]&&_0x1ae651[_0x2b53a8(0xdd5)][_0x2b53a8(0x202)]?.['length'],_0x541f12=resolveFirstWeekday(_0x3a8036),_0x30fcba=((()=>{const _0x46577d=_0x2b53a8;try{const _0x580100=getCachedDateTimeFormatter(resolveCardLanguage(_0x3a8036,_0x9f190d),{'weekday':_0x46577d(0xfec)});return Array[_0x46577d(0xf9e)]({'length':0x7},(_0x33b8de,_0x2938ce)=>_0x580100['format'](new Date(0x7e8,0x0,(_0x541f12-0x1+_0x2938ce)%0x7+0x1)));}catch{const _0x52202b=[_0x46577d(0xafd),_0x46577d(0xe39),_0x46577d(0xfdb),_0x46577d(0x652),_0x46577d(0x2cf),_0x46577d(0xa5a),'Sun'];return _0x52202b['slice'](_0x541f12-0x1)[_0x46577d(0x9da)](_0x52202b['slice'](0x0,_0x541f12-0x1));}})()),_0x544859=((()=>{const _0x2353aa=_0x2b53a8,_0x4f5b72=toNum(_0x9f190d[_0x2353aa(0x339)]);return _0x4f5b72&&_0x4f5b72>0x0?_0x4f5b72:0xa;})()),_0x3937ff=((()=>{const _0x2bbc00=_0x2b53a8,_0x38ee65=toNum(_0x9f190d[_0x2bbc00(0xb66)]);return _0x38ee65!=null&&_0x38ee65>=0x0&&_0x38ee65<=0x1?_0x38ee65:0x1;})());_0x52e99e[_0x2b53a8(0xe8f)](),_0x52e99e[_0x2b53a8(0x20c)]=this[_0x2b53a8(0xa24)](_0x9f190d[_0x2b53a8(0xdb6)],_0x45d8dd),_0x52e99e[_0x2b53a8(0xd80)]=_0x3937ff,_0x52e99e[_0x2b53a8(0xee3)]='600\x20'+_0x544859+_0x2b53a8(0xd01)+_0x3d3a3e,_0x52e99e[_0x2b53a8(0x3b1)]='center',_0x52e99e['textBaseline']=_0x2b53a8(0x6d4);for(let _0x316a1c=0x0;_0x316a1c<0x7;_0x316a1c++){_0x52e99e[_0x2b53a8(0xa74)](_0x30fcba[_0x316a1c],_0x4bbedb+_0x316a1c*(_0x398641+_0x518e0e)+_0x398641/0x2,_0x2efbf6-0x8);}_0x52e99e[_0x2b53a8(0x3aa)](),_0x3a6c70['weeks']['forEach']((_0x35a067,_0x332d2f)=>{const _0x3cb448=_0x2b53a8;_0x35a067[_0x3cb448(0xd27)]((_0x5571c2,_0x533f3c)=>{const _0x180cd6=_0x3cb448;if(!_0x5571c2)return;const _0x9d031a=_0x4bbedb+_0x533f3c*(_0x398641+_0x518e0e),_0x3fea1f=_0x2efbf6+_0x332d2f*(_0x2f1118+_0x518e0e);if(_0x2ff5f1)_0x52e99e[_0x180cd6(0x20c)]=resolveValueColor(_0x5571c2[_0x180cd6(0xcd8)],this[_0x180cd6(0x1d2)][_0x180cd6(0x83c)](_0x1ae651),this['_color']),_0x52e99e[_0x180cd6(0xd80)]=0.85;else{const _0x5cb0d6=Math[_0x180cd6(0x220)](0x0,Math[_0x180cd6(0xba1)](0x1,(_0x5571c2[_0x180cd6(0xcd8)]-_0x3a6c70['min'])/_0x3a801b));_0x52e99e[_0x180cd6(0x20c)]=_heatmapValueToColor(_0x5cb0d6,this[_0x180cd6(0xa59)]),_0x52e99e[_0x180cd6(0xd80)]=0x1;}_0x52e99e[_0x180cd6(0xb64)]();typeof _0x52e99e['roundRect']===_0x180cd6(0x8c6)?_0x52e99e['roundRect'](_0x9d031a,_0x3fea1f,_0x398641,_0x2f1118,0x3):_0x52e99e[_0x180cd6(0x53f)](_0x9d031a,_0x3fea1f,_0x398641,_0x2f1118);_0x52e99e[_0x180cd6(0x290)](),_0x52e99e[_0x180cd6(0xd80)]=0x1;if(_0x51314d>0x12){const _0x1184f8=_0x9f190d[_0x180cd6(0xe18)]!==![],_0x27e1bb=toNum(_0x1ae651?.[_0x180cd6(0xbcf)]),_0x2b1a99=_0x5571c2[_0x180cd6(0xcd8)]['toFixed'](isNum(_0x27e1bb)?_0x27e1bb:0x1);if(_0x51314d>0x2c)_0x52e99e[_0x180cd6(0x20c)]=_0x23daa4?_0x180cd6(0xd50):'rgba(0,0,0,0.4)',_0x52e99e[_0x180cd6(0xee3)]='600\x20'+Math[_0x180cd6(0xba1)](0x9,_0x51314d*0.18)+_0x180cd6(0xd01)+_0x3d3a3e,_0x52e99e[_0x180cd6(0x3b1)]=_0x180cd6(0x942),_0x52e99e[_0x180cd6(0xf1b)]=_0x180cd6(0xf55),_0x52e99e[_0x180cd6(0xa74)](String(_0x5571c2[_0x180cd6(0xbb1)][_0x180cd6(0x1024)]()),_0x9d031a+_0x398641/0x2,_0x3fea1f+0x3),_0x1184f8&&(_0x52e99e[_0x180cd6(0x20c)]=_0x23daa4?'rgba(255,255,255,0.85)':_0x180cd6(0xf74),_0x52e99e[_0x180cd6(0xee3)]='500\x20'+Math['min'](0xc,_0x51314d*0.28)+_0x180cd6(0xd01)+_0x3d3a3e,_0x52e99e[_0x180cd6(0xf1b)]=_0x180cd6(0x6d4),_0x52e99e[_0x180cd6(0xa74)](_0x2b1a99,_0x9d031a+_0x398641/0x2,_0x3fea1f+_0x2f1118/0x2+0x3));else _0x1184f8&&(_0x52e99e['fillStyle']=_0x23daa4?'rgba(255,255,255,0.7)':_0x180cd6(0x6f5),_0x52e99e[_0x180cd6(0xee3)]=_0x180cd6(0x42c)+Math[_0x180cd6(0xba1)](0xa,_0x51314d*0.35)+'px\x20'+_0x3d3a3e,_0x52e99e['textAlign']=_0x180cd6(0x942),_0x52e99e[_0x180cd6(0xf1b)]=_0x180cd6(0x6d4),_0x52e99e[_0x180cd6(0xa74)](_0x2b1a99,_0x9d031a+_0x398641/0x2,_0x3fea1f+_0x2f1118/0x2));}});});const _0x5592c=((()=>{const _0x1453e4=_0x2b53a8,_0x4371ba=toNum(_0x9f190d[_0x1453e4(0xd8c)]);return _0x4371ba!=null&&_0x4371ba>=0x0&&_0x4371ba<=0x1?_0x4371ba:0x1;})());_0x52e99e[_0x2b53a8(0xe8f)](),_0x52e99e[_0x2b53a8(0x20c)]=_0x5c1713,_0x52e99e[_0x2b53a8(0xd80)]=_0x5592c,_0x52e99e[_0x2b53a8(0xee3)]=_0x54e6d6+_0x2b53a8(0xd01)+_0x3d3a3e,_0x52e99e['textAlign']=_0x2b53a8(0x1fd),_0x52e99e[_0x2b53a8(0xf1b)]=_0x2b53a8(0x6d4),_0x3a6c70[_0x2b53a8(0x3b5)][_0x2b53a8(0xd27)]((_0x3c3aa7,_0x2d8363)=>{const _0x4d8701=_0x2b53a8,_0x133ec4=_0x3c3aa7[_0x4d8701(0x90c)](_0x22fd28=>_0x22fd28);if(!_0x133ec4)return;const _0x161fbe=_0x133ec4['dateObj'][_0x4d8701(0x1021)](resolveCardLanguage(_0x3a8036,_0x9f190d),{'day':_0x4d8701(0x615),'month':'short'});_0x52e99e[_0x4d8701(0xa74)](_0x161fbe,_0x4bbedb-0x6,_0x2efbf6+_0x2d8363*(_0x2f1118+_0x518e0e)+_0x2f1118/0x2);}),_0x52e99e['restore']();}[_0x46af5e(0x180)](_0x281630,_0xe14c9,_0xcc043,_0x27aa32){const _0x873ff6=_0x46af5e;if(!_0xe14c9||!_0x281630||_0xcc043[_0x873ff6(0xeed)]===![]||!this['_cells'])return;const _0x379d50=this[_0x873ff6(0xccb)][_0x873ff6(0x5fe)],_0x4d6fbd=this[_0x873ff6(0x24b)],_0x5b47b5=this[_0x873ff6(0x6c4)],_0x534e2a=this[_0x873ff6(0x1a7)],_0x5ea4df=this[_0x873ff6(0xa59)],_0x133e54=this[_0x873ff6(0x833)]||[],_0x46229d=this['card'][_0x873ff6(0xfef)]||[],_0x557cd6=_0x133e54[_0x873ff6(0xb3f)](_0x3fb31a=>{const _0x48d637=_0x873ff6,_0x5e111f=new Map(),_0x4b49f3=_0x3fb31a[_0x48d637(0x93a)]||_0x3fb31a[_0x48d637(0xbcc)]||[],_0x414047=_0x3fb31a[_0x48d637(0x974)]&&typeof _0x3fb31a[_0x48d637(0x974)]===_0x48d637(0xc18)?_0x3fb31a[_0x48d637(0x974)]:_0x46229d[_0x3fb31a[_0x48d637(0xd18)]]||_0x534e2a,_0x5ea4ad=_0x414047['aggregate_func']||_0x48d637(0xfbc),_0x36c116=_0x5ea4ad===_0x48d637(0xe34)||_0x5ea4ad===_0x48d637(0x934)?_0x48d637(0x7e6):_0x5ea4ad,_0x19bcb8=new Map(),_0x40196c=resolveDisplayTimeZone(this[_0x48d637(0x1d2)]?.[_0x48d637(0x1dc)],this[_0x48d637(0x1d2)]?.[_0x48d637(0xfe9)]),_0x3f3a4a=_0x305f79=>{const _0x3c68e7=_0x48d637,_0x546705=tzParts(_0x305f79,_0x40196c);return _0x546705['y']+'-'+String(_0x546705['mo']+0x1)[_0x3c68e7(0x470)](0x2,'0')+'-'+String(_0x546705['d'])[_0x3c68e7(0x470)](0x2,'0');};for(const _0x59f62c of _0x4b49f3){if(_0x59f62c['v']===null||_0x59f62c['v']===undefined)continue;const _0x59dad4=_0x3f3a4a(_0x59f62c['t']);if(!_0x19bcb8['has'](_0x59dad4))_0x19bcb8[_0x48d637(0xa2d)](_0x59dad4,[]);_0x19bcb8[_0x48d637(0xc3f)](_0x59dad4)['push'](_0x59f62c['v']);}for(const [_0x5b13e3,_0x14f6ee]of _0x19bcb8){_0x5e111f[_0x48d637(0xa2d)](_0x5b13e3,DataProcessor[_0x48d637(0x9d9)](_0x14f6ee,_0x36c116));}return{'map':_0x5e111f,'entity':_0x414047,'meta':_0x3fb31a[_0x48d637(0x731)]||{},'color':(_0x414047[_0x48d637(0xd95)]===_0x48d637(0xe42)?_0x48d637(0x776):_0x414047['color'])||_0x48d637(0x776)};}),_0x24e779=_0x46ae33=>{const _0x403d75=_0x873ff6,_0x5e5f0d=_0x281630[_0x403d75(0x9cc)](),_0x5a0756=_0x46ae33['clientX']-_0x5e5f0d[_0x403d75(0xaaf)],_0x1e245d=_0x46ae33['clientY']-_0x5e5f0d[_0x403d75(0xf55)],_0xe473cb=Math[_0x403d75(0xedc)]((_0x5a0756-_0x4d6fbd[_0x403d75(0xcd9)])/(_0x4d6fbd['cellW']+_0x4d6fbd[_0x403d75(0xfd7)])),_0x15ade7=Math[_0x403d75(0xedc)]((_0x1e245d-_0x4d6fbd[_0x403d75(0xd99)])/(_0x4d6fbd['cellH']+_0x4d6fbd[_0x403d75(0xfd7)]));if(_0xe473cb<0x0||_0xe473cb>=_0x4d6fbd['cols']||_0x15ade7<0x0||_0x15ade7>=_0x4d6fbd['rows']){_0xe14c9[_0x403d75(0x944)][_0x403d75(0x7a2)]='0';return;}const _0x3c4895=_0x5b47b5[_0x403d75(0x3b5)][_0x15ade7]?.[_0xe473cb];if(!_0x3c4895){_0xe14c9[_0x403d75(0x944)][_0x403d75(0x7a2)]='0';return;}const _0x32e79d=_0x3c4895[_0x403d75(0xbb1)][_0x403d75(0x1021)](),_0x34cc17=_0x3c4895[_0x403d75(0x88f)];let _0x5f50d3=_0x403d75(0x260)+escapeHtml(_0x32e79d)+_0x403d75(0xc3d);for(const _0x57b491 of _0x557cd6){const _0x41fb11=_0x57b491[_0x403d75(0xb3f)][_0x403d75(0xc3f)](_0x34cc17);if(_0x41fb11===null||_0x41fb11===undefined)continue;const _0x16b0c6=_0x57b491[_0x403d75(0x974)]?.[_0x403d75(0xdee)]||_0x57b491[_0x403d75(0x731)]?.[_0x403d75(0x457)]||_0x57b491[_0x403d75(0x974)]?.['entity']||'?',_0x3fb53e=_0x57b491[_0x403d75(0x974)]?.['unit']||_0x57b491[_0x403d75(0x731)]?.[_0x403d75(0x398)]||'',_0x428ba4=formatNumber(_0x41fb11,_0x57b491['entity'],_0x27aa32),_0x255ae1=_0x57b491['entity']?.[_0x403d75(0x452)]!==![]?escapeHtml(_0x57b491[_0x403d75(0xd95)]):_0x403d75(0x2ca);_0x5f50d3+=_0x403d75(0x20e)+_0x255ae1+_0x403d75(0x23f)+escapeHtml(_0x16b0c6)+'</span><span\x20class=\x22sgc-pie-tt-val\x22>'+escapeHtml(String(_0x428ba4))+'\x20'+escapeHtml(_0x3fb53e)+_0x403d75(0xc3d);}_0xe14c9[_0x403d75(0x17c)]=_0x5f50d3,this[_0x403d75(0x7bc)](_0xe14c9,_0x5e5f0d,_0x5a0756);};this['_wireTooltip'](_0x281630,_0xe14c9,_0x24e779,_0x379d50),_0x281630[_0x873ff6(0x944)][_0x873ff6(0x2a5)]=_0x873ff6(0x670),_0x281630[_0x873ff6(0x171)](_0x873ff6(0xe5e),_0x27dd8c=>{const _0x1ada7e=_0x873ff6;_0x27dd8c[_0x1ada7e(0x7ba)](),this[_0x1ada7e(0x1d2)][_0x1ada7e(0x7f2)](this[_0x1ada7e(0x1a7)]);},{'signal':_0x379d50});}}class BoxPlotRenderer extends BaseCanvasRenderer{constructor(_0x43cf73){const _0x136bec=_0x46af5e;super(_0x43cf73),this[_0x136bec(0xd44)]=new Map(),this[_0x136bec(0xcc6)]=null;}static[_0x46af5e(0xc76)](_0x33667c,_0x2a4660){const _0x40df6a=_0x46af5e,_0x2fb6e3=_0x33667c[_0x40df6a(0xc02)];if(!_0x2fb6e3)return null;if(_0x2fb6e3===0x1)return _0x33667c[0x0];const _0x39ebd9=(_0x2fb6e3-0x1)*_0x2a4660,_0xde8735=Math[_0x40df6a(0xedc)](_0x39ebd9),_0x3953ec=Math[_0x40df6a(0x6fd)](_0x39ebd9);if(_0xde8735===_0x3953ec)return _0x33667c[_0xde8735];return _0x33667c[_0xde8735]+(_0x33667c[_0x3953ec]-_0x33667c[_0xde8735])*(_0x39ebd9-_0xde8735);}['render'](_0xbc9738,_0x5b1336,_0x38d573,_0x2024af){const _0x2ca229=_0x46af5e;if(this[_0x2ca229(0xccb)])this['_abort'][_0x2ca229(0x582)]();this[_0x2ca229(0xccb)]=new AbortController();const _0x4b05ab=this[_0x2ca229(0xccb)][_0x2ca229(0x5fe)],_0x554bc0=Math[_0x2ca229(0x220)](0x28,_0xbc9738[_0x2ca229(0x810)]||this[_0x2ca229(0x1d2)][_0x2ca229(0x342)]||0x190),_0x4d372f=Math[_0x2ca229(0x220)](0x50,parseInt(_0x38d573[_0x2ca229(0x43d)],0xa)||0xc8),_0x7e0d54=resolveDisplayTimeZone(_0x2024af,_0x38d573),_0x275e94=_0x38d573[_0x2ca229(0xeed)]!==![],_0x2476a3=escapeHtml,_0x4f5d86=this[_0x2ca229(0x1d2)][_0x2ca229(0xfef)]||[],_0x564529=[];(_0x5b1336||[])[_0x2ca229(0xd27)]((_0x6d450b,_0x5ca88a)=>{const _0x39cda2=_0x2ca229,_0x4c6559=this[_0x39cda2(0xdfc)](_0x6d450b,_0x5ca88a,_0x4f5d86,_0x521240=>{const _0xeb205c=_0x39cda2,_0x5c46d3=[];for(const _0x29a63d of _0x521240)if(_0x29a63d&&isNum(_0x29a63d['v']))_0x5c46d3[_0xeb205c(0xb31)](_0x29a63d);return _0x5c46d3;});if(!_0x4c6559)return;const {ent:_0x5078d,out:_0x2f10fd,eSig:_0x90b637,dSig:_0x492434}=_0x4c6559;if(!_0x2f10fd[_0x39cda2(0xc02)])return;const _0x412429=this['card'][_0x39cda2(0x349)]?.(_0x5078d[_0x39cda2(0xd95)],_0x5078d[_0x39cda2(0x974)])||_0x5078d[_0x39cda2(0xd95)]||PALETTE[_0x5ca88a%PALETTE[_0x39cda2(0xc02)]],_0x370e84=pickName(_0x5078d[_0x39cda2(0xdee)],_0x6d450b[_0x39cda2(0x731)]?.[_0x39cda2(0x40b)],_0x6d450b[_0x39cda2(0x731)])??_0x5078d[_0x39cda2(0x974)]??'#'+(_0x5ca88a+0x1),_0x1b2ccd=_0x5078d[_0x39cda2(0x32e)]||_0x6d450b['meta']?.['unit_of_measurement']||'',_0x3737c9=_0x5078d['invert']?{..._0x5078d,'invert':![]}:_0x5078d;_0x564529[_0x39cda2(0xb31)]({'ent':_0x5078d,'fEnt':_0x3737c9,'samples':_0x2f10fd,'color':_0x412429,'name':_0x370e84,'unit':_0x1b2ccd,'sig':_0x90b637+'~'+_0x492434});});if(!_0x564529[_0x2ca229(0xc02)]){_0xbc9738[_0x2ca229(0x17c)]=_0x2ca229(0x1a6);return;}let _0x19deca=Infinity,_0x4512b0=-Infinity;for(const _0x2fe415 of _0x564529){const _0x48c562=_0x2fe415['samples'];if(_0x48c562[0x0]['t']<_0x19deca)_0x19deca=_0x48c562[0x0]['t'];if(_0x48c562[_0x48c562['length']-0x1]['t']>_0x4512b0)_0x4512b0=_0x48c562[_0x48c562['length']-0x1]['t'];}let _0x52aedb=_0x38d573['group_by'];if(!_0x52aedb||_0x52aedb===_0x2ca229(0x1a1)){const _0x31ad07=(_0x4512b0-_0x19deca)/0x36ee80;_0x52aedb=_0x31ad07<=0x31?_0x2ca229(0x2ab):_0x31ad07<=0x18*0x20?_0x2ca229(0x88f):_0x31ad07<=0x18*0xbe?_0x2ca229(0x6f1):'month';}const _0x4018f2=/^([0-9]+)h$/[_0x2ca229(0x703)](_0x52aedb),_0x253124=_0x4018f2?parseInt(_0x4018f2[0x1],0xa):_0x52aedb===_0x2ca229(0x2ab)?0x1:0x0,_0x14a802=((()=>{const _0x3bb885=_0x2ca229;try{const _0x5d4a3e=getCachedDateTimeFormatter(resolveCardLanguage(_0x2024af,_0x38d573),{'month':'short'});return Array[_0x3bb885(0xf9e)]({'length':0xc},(_0x29c84f,_0x1e2f3b)=>_0x5d4a3e[_0x3bb885(0xf20)](new Date(0x7e8,_0x1e2f3b,0x1)));}catch{return[_0x3bb885(0x5fb),_0x3bb885(0xf32),_0x3bb885(0x971),_0x3bb885(0x395),_0x3bb885(0x6da),_0x3bb885(0x98b),_0x3bb885(0x80d),'Aug',_0x3bb885(0xe10),'Oct',_0x3bb885(0x9ca),_0x3bb885(0xa1e)];}})()),_0x3b14c1=_0x77f1e6=>String(_0x77f1e6)['padStart'](0x2,'0'),_0x24ea09=resolveFirstWeekday(_0x2024af),_0x5634b5=_0x54fcf8=>{const _0x4090fe=_0x2ca229,_0x54e3b7=_0x54fcf8-_0x54fcf8%0xdbba0;let _0x3824c9=tzParts(_0x54e3b7,_0x7e0d54);if(_0x253124){const _0x3de7c2=Math[_0x4090fe(0xedc)](_0x3824c9['h']/_0x253124)*_0x253124;return{'key':_0x3824c9['y']+'-'+_0x3824c9['mo']+'-'+_0x3824c9['d']+'-'+_0x3de7c2,'label':_0x3b14c1(_0x3de7c2)+_0x4090fe(0xafb)};}if(_0x52aedb===_0x4090fe(0x88f))return{'key':_0x3824c9['y']+'-'+_0x3824c9['mo']+'-'+_0x3824c9['d'],'label':_0x14a802[_0x3824c9['mo']]+'\x20'+_0x3824c9['d']};if(_0x52aedb===_0x4090fe(0x6f1))return _0x3824c9=tzParts(_0x54e3b7-weekStartOffsetDays(_0x3824c9['wd'],_0x24ea09)*0x5265c00,_0x7e0d54),{'key':'w'+_0x3824c9['y']+'-'+_0x3824c9['mo']+'-'+_0x3824c9['d'],'label':_0x14a802[_0x3824c9['mo']]+'\x20'+_0x3824c9['d']};if(_0x52aedb==='year')return{'key':''+_0x3824c9['y'],'label':''+_0x3824c9['y']};return{'key':_0x3824c9['y']+'-'+_0x3824c9['mo'],'label':_0x14a802[_0x3824c9['mo']]+'\x20'+String(_0x3824c9['y'])[_0x4090fe(0x165)](0x2)};},_0x1879a0=_0x52aedb+'|'+(_0x7e0d54||'')+'|'+_0x564529['map'](_0x4417f7=>_0x4417f7['sig'])[_0x2ca229(0x888)](';');let _0x121f46,_0x5c0c34,_0x287a33;if(this[_0x2ca229(0xcc6)]&&this['_cols'][_0x2ca229(0x2bb)]===_0x1879a0)({cols:_0x121f46,vMin:_0x5c0c34,vMax:_0x287a33}=this[_0x2ca229(0xcc6)]);else{const _0x58a4c5=new Map();_0x564529['forEach']((_0x4a23ef,_0x754893)=>{const _0x235470=_0x2ca229;for(const _0x23c819 of _0x4a23ef[_0x235470(0x6b6)]){const _0x1ba059=_0x5634b5(_0x23c819['t']);let _0x241b81=_0x58a4c5[_0x235470(0xc3f)](_0x1ba059[_0x235470(0x1ec)]);!_0x241b81&&(_0x241b81={'label':_0x1ba059[_0x235470(0xf1f)],'order':_0x23c819['t'],'vals':new Array(_0x564529[_0x235470(0xc02)])[_0x235470(0x290)](null)},_0x58a4c5[_0x235470(0xa2d)](_0x1ba059[_0x235470(0x1ec)],_0x241b81));if(_0x23c819['t']<_0x241b81[_0x235470(0xd12)])_0x241b81[_0x235470(0xd12)]=_0x23c819['t'];(_0x241b81[_0x235470(0x7a0)][_0x754893]||(_0x241b81['vals'][_0x754893]=[]))[_0x235470(0xb31)](_0x23c819['v']);}});const _0x270b78=[..._0x58a4c5[_0x2ca229(0x202)]()][_0x2ca229(0xd09)]((_0x5224fd,_0x499983)=>_0x5224fd[_0x2ca229(0xd12)]-_0x499983[_0x2ca229(0xd12)]),_0x2acbbc=0x3c,_0x27a053=_0x270b78[_0x2ca229(0xc02)]>_0x2acbbc?_0x270b78[_0x2ca229(0x165)](_0x270b78['length']-_0x2acbbc):_0x270b78;_0x5c0c34=Infinity,_0x287a33=-Infinity,_0x121f46=_0x27a053[_0x2ca229(0xb3f)](_0x358fa7=>({'label':_0x358fa7[_0x2ca229(0xf1f)],'per':_0x358fa7['vals']['map'](_0x1246ec=>{const _0x42eeff=_0x2ca229;if(!_0x1246ec||!_0x1246ec['length'])return null;const _0x526596=Float64Array[_0x42eeff(0xf9e)](_0x1246ec)[_0x42eeff(0xd09)](),_0x3d630e=_0x162d36=>BoxPlotRenderer[_0x42eeff(0xc76)](_0x526596,_0x162d36),_0x3d8670={'lo':_0x526596[0x0],'q1':_0x3d630e(0.25),'med':_0x3d630e(0.5),'q3':_0x3d630e(0.75),'hi':_0x526596[_0x526596[_0x42eeff(0xc02)]-0x1],'n':_0x526596['length']};if(_0x3d8670['lo']<_0x5c0c34)_0x5c0c34=_0x3d8670['lo'];if(_0x3d8670['hi']>_0x287a33)_0x287a33=_0x3d8670['hi'];return _0x3d8670;})})),this[_0x2ca229(0xcc6)]={'sig':_0x1879a0,'cols':_0x121f46,'vMin':_0x5c0c34,'vMax':_0x287a33};}if(_0x5c0c34===Infinity){_0xbc9738[_0x2ca229(0x17c)]='<div\x20class=\x22sgc-stub\x22\x20style=\x22padding:24px;text-align:center;opacity:0.7;font-size:13px\x22>No\x20numeric\x20data\x20for\x20box\x20plot.</div>';return;}let _0x13ad17=_0x5c0c34,_0x188f20=_0x287a33;_0x13ad17===_0x188f20&&(_0x13ad17-=0x1,_0x188f20+=0x1);const _0x20bf5f=(_0x188f20-_0x13ad17)*0.06;_0x13ad17-=_0x20bf5f,_0x188f20+=_0x20bf5f;const _0x1b8579=_0x3be65c=>{const _0x40dde1=_0x2ca229,_0x362d98=Math[_0x40dde1(0x91f)](0xa,Math[_0x40dde1(0xedc)](Math[_0x40dde1(0x81d)](_0x3be65c))),_0x5588a6=_0x3be65c/_0x362d98;return(_0x5588a6<=0x1?0x1:_0x5588a6<=0x2?0x2:_0x5588a6<=0x5?0x5:0xa)*_0x362d98;},_0x52dadb=_0x1b8579((_0x188f20-_0x13ad17)/0x4),_0x474ce9=[];for(let _0x258e7d=Math[_0x2ca229(0x6fd)](_0x13ad17/_0x52dadb)*_0x52dadb;_0x258e7d<=_0x188f20+1e-9;_0x258e7d+=_0x52dadb)_0x474ce9[_0x2ca229(0xb31)](_0x258e7d);const _0x38d41d=_0x564529[0x0]['fEnt'],_0xd20d3a=_0x1694cd=>formatNumber(_0x1694cd,_0x38d41d,_0x2024af),_0x2b40bd=Math[_0x2ca229(0x220)](0x1e,0xa+6.5*Math['max'](..._0x474ce9[_0x2ca229(0xb3f)](_0x37593b=>String(_0xd20d3a(_0x37593b))[_0x2ca229(0xc02)]),0x2)),_0x460084=0x8,_0x2a404d=0x8,_0x4ccb61=0x14,_0xe4c11d=Math[_0x2ca229(0x220)](0xa,_0x554bc0-_0x2b40bd-_0x460084),_0xef474f=Math[_0x2ca229(0x220)](0xa,_0x4d372f-_0x2a404d-_0x4ccb61),_0x5d71d8=_0x191d9c=>_0x2a404d+_0xef474f-(_0x191d9c-_0x13ad17)/(_0x188f20-_0x13ad17)*_0xef474f,_0x1ce56e=_0x121f46[_0x2ca229(0xc02)],_0x27df78=_0x564529[_0x2ca229(0xc02)],_0xfb1924=_0xe4c11d/_0x1ce56e,_0x1b1d05=_0xfb1924*0.78,_0x53ffa2=Math[_0x2ca229(0x220)](0x3,Math[_0x2ca229(0xba1)](0x2e,_0x1b1d05/_0x27df78*0.82)),_0x3a6771=(_0x3898b3,_0x3b1d6d)=>_0x2b40bd+_0xfb1924*_0x3898b3+_0xfb1924/0x2-_0x1b1d05/0x2+_0x1b1d05/_0x27df78*(_0x3b1d6d+0.5),_0x13651e=_0x2ca229(0x9af),_0x20aa7b=_0x2ca229(0x7cb);let _0x49117c='';for(const _0x11274c of _0x474ce9){const _0x121f10=_0x5d71d8(_0x11274c);_0x49117c+='<line\x20x1=\x22'+_0x2b40bd+_0x2ca229(0xdda)+_0x121f10[_0x2ca229(0x198)](0x1)+'\x22\x20x2=\x22'+(_0x554bc0-_0x460084)+_0x2ca229(0x662)+_0x121f10[_0x2ca229(0x198)](0x1)+'\x22\x20stroke=\x22'+_0x13651e+_0x2ca229(0x31c),_0x49117c+=_0x2ca229(0xb6c)+(_0x2b40bd-0x5)[_0x2ca229(0x198)](0x1)+_0x2ca229(0x9c3)+(_0x121f10+0x3)[_0x2ca229(0x198)](0x1)+'\x22\x20text-anchor=\x22end\x22\x20font-size=\x2210\x22\x20fill=\x22'+_0x20aa7b+'\x22>'+_0x2476a3(_0xd20d3a(_0x11274c))+_0x2ca229(0x6f6);}const _0x3e80e4=Math[_0x2ca229(0x220)](0x1,Math[_0x2ca229(0x6fd)](_0x1ce56e/Math[_0x2ca229(0x220)](0x2,Math[_0x2ca229(0xedc)](_0xe4c11d/0x38))));_0x121f46['forEach']((_0x364552,_0x1b6178)=>{const _0x3d9b4b=_0x2ca229;if(_0x1b6178%_0x3e80e4)return;_0x49117c+=_0x3d9b4b(0xb6c)+(_0x2b40bd+_0xfb1924*_0x1b6178+_0xfb1924/0x2)['toFixed'](0x1)+_0x3d9b4b(0x9c3)+(_0x4d372f-0x6)+_0x3d9b4b(0x7f4)+_0x20aa7b+'\x22>'+_0x2476a3(_0x364552[_0x3d9b4b(0xf1f)])+_0x3d9b4b(0x6f6);});const _0x76ae23=[];_0x121f46[_0x2ca229(0xd27)]((_0x3c4465,_0x282249)=>{const _0x88eaff=_0x2ca229;_0x3c4465[_0x88eaff(0x987)][_0x88eaff(0xd27)]((_0xc01483,_0x5424da)=>{const _0x1b648b=_0x88eaff;if(!_0xc01483)return;const _0x53c6b0=_0x564529[_0x5424da],_0x603f96=_0x3a6771(_0x282249,_0x5424da),_0x22d29f=_0x603f96-_0x53ffa2/0x2,_0x6ea66b=_0x5d71d8(_0xc01483['lo']),_0x444100=_0x5d71d8(_0xc01483['hi']),_0x2c1ff7=_0x5d71d8(_0xc01483['q1']),_0x47c096=_0x5d71d8(_0xc01483['q3']),_0x580eeb=_0x5d71d8(_0xc01483[_0x1b648b(0x484)]),_0x4e60bc=_0x76ae23[_0x1b648b(0xc02)];_0x76ae23[_0x1b648b(0xb31)]({'name':_0x53c6b0['name'],'unit':_0x53c6b0[_0x1b648b(0x32e)],'ent':_0x53c6b0[_0x1b648b(0x856)],'fEnt':_0x53c6b0['fEnt'],'color':_0x53c6b0[_0x1b648b(0xd95)],'label':_0x3c4465[_0x1b648b(0xf1f)],'lo':_0xc01483['lo'],'q1':_0xc01483['q1'],'med':_0xc01483['med'],'q3':_0xc01483['q3'],'hi':_0xc01483['hi'],'n':_0xc01483['n']}),_0x49117c+=_0x1b648b(0x694)+_0x4e60bc+_0x1b648b(0x270)+(_0x275e94?_0x1b648b(0x670):_0x1b648b(0x744))+'\x22>',_0x49117c+='<rect\x20x=\x22'+(_0x22d29f-0x2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0x9c3)+(_0x444100-0x2)[_0x1b648b(0x198)](0x1)+'\x22\x20width=\x22'+(_0x53ffa2+0x4)['toFixed'](0x1)+_0x1b648b(0xe08)+(_0x6ea66b-_0x444100+0x4)['toFixed'](0x1)+_0x1b648b(0x54b);if(_0xc01483['n']===0x1)_0x49117c+=_0x1b648b(0xcd5)+_0x22d29f['toFixed'](0x1)+_0x1b648b(0x40a)+(_0x22d29f+_0x53ffa2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0xdda)+_0x580eeb[_0x1b648b(0x198)](0x1)+'\x22\x20y2=\x22'+_0x580eeb[_0x1b648b(0x198)](0x1)+_0x1b648b(0x49d)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0x65f);else{const _0x2366bf=_0x53ffa2*0.55;_0x49117c+='<line\x20x1=\x22'+_0x603f96[_0x1b648b(0x198)](0x1)+'\x22\x20x2=\x22'+_0x603f96['toFixed'](0x1)+'\x22\x20y1=\x22'+_0x444100['toFixed'](0x1)+_0x1b648b(0x662)+_0x6ea66b[_0x1b648b(0x198)](0x1)+_0x1b648b(0x49d)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0x31c),_0x49117c+=_0x1b648b(0xcd5)+(_0x603f96-_0x2366bf/0x2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0x40a)+(_0x603f96+_0x2366bf/0x2)[_0x1b648b(0x198)](0x1)+'\x22\x20y1=\x22'+_0x444100['toFixed'](0x1)+'\x22\x20y2=\x22'+_0x444100[_0x1b648b(0x198)](0x1)+'\x22\x20stroke=\x22'+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0x31c),_0x49117c+=_0x1b648b(0xcd5)+(_0x603f96-_0x2366bf/0x2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0x40a)+(_0x603f96+_0x2366bf/0x2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0xdda)+_0x6ea66b['toFixed'](0x1)+_0x1b648b(0x662)+_0x6ea66b[_0x1b648b(0x198)](0x1)+_0x1b648b(0x49d)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+'\x22\x20stroke-width=\x221\x22/>',_0x49117c+=_0x1b648b(0x655)+_0x22d29f['toFixed'](0x1)+_0x1b648b(0x9c3)+_0x47c096['toFixed'](0x1)+_0x1b648b(0x2bd)+_0x53ffa2[_0x1b648b(0x198)](0x1)+'\x22\x20height=\x22'+Math[_0x1b648b(0x220)](0x1,_0x2c1ff7-_0x47c096)['toFixed'](0x1)+_0x1b648b(0x458)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0xf03)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0x94b),_0x49117c+=_0x1b648b(0xcd5)+_0x22d29f['toFixed'](0x1)+_0x1b648b(0x40a)+(_0x22d29f+_0x53ffa2)[_0x1b648b(0x198)](0x1)+_0x1b648b(0xdda)+_0x580eeb['toFixed'](0x1)+_0x1b648b(0x662)+_0x580eeb[_0x1b648b(0x198)](0x1)+_0x1b648b(0x49d)+_0x2476a3(_0x53c6b0[_0x1b648b(0xd95)])+_0x1b648b(0x65f);}_0x49117c+=_0x1b648b(0xb50);});}),_0xbc9738[_0x2ca229(0x17c)]=_0x2ca229(0x608)+_0x4d372f+_0x2ca229(0x68a)+_0x4d372f+_0x2ca229(0xec3)+_0x554bc0+'\x20'+_0x4d372f+_0x2ca229(0x516)+_0x49117c+_0x2ca229(0x9c6);if(_0x275e94){const _0x4eec4e=_0xbc9738[_0x2ca229(0x450)],_0x1068d4=_0x4eec4e[_0x2ca229(0xee6)](_0x2ca229(0x5d7)),_0x2800fc=_0x4eec4e[_0x2ca229(0xee6)](_0x2ca229(0x19a));let _0x3e952c=-0x1;const _0x12e646=_0x502575=>{const _0x1f1259=_0x2ca229,_0x4999b1=_0x502575[_0x1f1259(0x6bc)][_0x1f1259(0x6c0)]('[data-b]');if(!_0x4999b1){_0x3e952c=-0x1,_0x2800fc[_0x1f1259(0x944)]['opacity']='0';return;}const _0x5e62e8=+_0x4999b1[_0x1f1259(0x8f6)]['b'],_0x519834=_0x76ae23[_0x5e62e8];if(!_0x519834)return;const _0xab29b9=_0x5e62e8===_0x3e952c&&_0x2800fc[_0x1f1259(0x944)][_0x1f1259(0x7a2)]==='1';_0x3e952c=_0x5e62e8;const _0x251e4b=_0x18d588=>formatNumber(_0x18d588,_0x519834[_0x1f1259(0xd45)],_0x2024af),_0x12619b=_0x519834['unit']?'\x20'+_0x2476a3(_0x519834['unit']):'',_0x1580ed=_0x519834[_0x1f1259(0x856)]?.[_0x1f1259(0x452)]!==![]?_0x2476a3(_0x519834[_0x1f1259(0xd95)]):_0x1f1259(0x2ca),_0x301972=(_0x228d40,_0x1489b9,_0x48cfd8)=>_0x1f1259(0x894)+(_0x48cfd8?_0x1f1259(0xcfb):'')+'><span\x20class=\x22sgc-pie-tt-name\x22>'+_0x228d40+_0x1f1259(0xd5c)+_0x1489b9+'</span></div>';if(!_0xab29b9)_0x2800fc[_0x1f1259(0x17c)]=_0x1f1259(0x879)+_0x1580ed+_0x1f1259(0xc78)+_0x2476a3(_0x519834[_0x1f1259(0xdee)])+_0x1f1259(0xc20)+_0x2476a3(_0x519834[_0x1f1259(0xf1f)])+'</span></div>'+'<div\x20style=\x22display:flex;gap:16px;align-items:flex-start\x22><div>'+_0x301972(cardT(this['card']?.[_0x1f1259(0x1dc)],this['card']?.[_0x1f1259(0xfe9)],'Min'),''+_0x251e4b(_0x519834['lo'])+_0x12619b)+_0x301972(cardT(this[_0x1f1259(0x1d2)]?.['_hass'],this['card']?.['_config'],_0x1f1259(0xce0)),''+_0x251e4b(_0x519834[_0x1f1259(0x484)])+_0x12619b)+_0x301972(cardT(this['card']?.[_0x1f1259(0x1dc)],this['card']?.['_config'],'Max'),''+_0x251e4b(_0x519834['hi'])+_0x12619b)+_0x1f1259(0x813)+_0x301972(cardT(this[_0x1f1259(0x1d2)]?.[_0x1f1259(0x1dc)],this[_0x1f1259(0x1d2)]?.['_config'],'Q1'),''+_0x251e4b(_0x519834['q1'])+_0x12619b)+_0x301972(cardT(this[_0x1f1259(0x1d2)]?.['_hass'],this[_0x1f1259(0x1d2)]?.['_config'],'Q3'),''+_0x251e4b(_0x519834['q3'])+_0x12619b)+_0x301972(cardT(this[_0x1f1259(0x1d2)]?.[_0x1f1259(0x1dc)],this[_0x1f1259(0x1d2)]?.['_config'],_0x1f1259(0xc56)),''+_0x519834['n'],!![])+_0x1f1259(0xe7a);_0x2800fc[_0x1f1259(0x944)]['opacity']='1';const _0x13db4e=_0x4eec4e[_0x1f1259(0x9cc)]();let _0x57edff=_0x502575['clientX']-_0x13db4e['left']+0x10;const _0x55ac97=_0x2800fc['offsetWidth'];if(_0x57edff+_0x55ac97>_0x13db4e[_0x1f1259(0x581)])_0x57edff=_0x57edff-_0x55ac97-0x20;_0x2800fc[_0x1f1259(0x944)][_0x1f1259(0xaaf)]=Math[_0x1f1259(0x220)](0x0,_0x57edff)+'px',_0x2800fc[_0x1f1259(0x944)][_0x1f1259(0xf55)]='0';};_0x1068d4['addEventListener'](_0x2ca229(0x483),_0x12e646,{'signal':_0x4b05ab}),_0x1068d4[_0x2ca229(0x171)]('pointerdown',_0x12e646,{'signal':_0x4b05ab}),_0x1068d4[_0x2ca229(0x171)](_0x2ca229(0x5c2),()=>{const _0x107803=_0x2ca229;_0x3e952c=-0x1,_0x2800fc[_0x107803(0x944)][_0x107803(0x7a2)]='0';},{'signal':_0x4b05ab});}}}class WaterfallRenderer extends BaseCanvasRenderer{[_0x46af5e(0x59c)](_0x48ef83,_0x186585,_0x1df24a,_0x17d446){const _0x377cbd=_0x46af5e;if(this[_0x377cbd(0xccb)])this[_0x377cbd(0xccb)][_0x377cbd(0x582)]();this[_0x377cbd(0xccb)]=new AbortController();const _0x58b18e=this[_0x377cbd(0xccb)]['signal'],_0x1a7b5b=Math[_0x377cbd(0x220)](0x28,_0x48ef83[_0x377cbd(0x810)]||this[_0x377cbd(0x1d2)][_0x377cbd(0x342)]||0x190),_0x4c5650=Math[_0x377cbd(0x220)](0x50,parseInt(_0x1df24a[_0x377cbd(0x43d)],0xa)||0xc8),_0x46a38b=_0x1df24a[_0x377cbd(0xeed)]!==![],_0x4a9ad2=_0x1df24a[_0x377cbd(0x84c)]!==![],_0x46fa12=escapeHtml,_0xfb0484=this['card'][_0x377cbd(0xfef)]||[],_0x4782d5=[];(_0x186585||[])[_0x377cbd(0xd27)]((_0x16c994,_0x7bbfd)=>{const _0x29db11=_0x377cbd;let _0x15588f=_0x16c994[_0x29db11(0x974)]&&typeof _0x16c994[_0x29db11(0x974)]===_0x29db11(0xc18)?_0x16c994[_0x29db11(0x974)]:null;if(!_0x15588f){const _0x34d806=String(_0x16c994['id']||'')[_0x29db11(0x727)](/^(.+)__(\d+)$/);if(_0x34d806)_0x15588f=_0xfb0484[parseInt(_0x34d806[0x2],0xa)]||_0xfb0484[_0x29db11(0x90c)](_0x5e4352=>_0x5e4352[_0x29db11(0x974)]===_0x34d806[0x1]);}if(!_0x15588f)_0x15588f={};const _0x5b1b5c=(_0x16c994['points']||[])[_0x29db11(0x919)](_0x10fb6c=>_0x10fb6c&&isNum(_0x10fb6c['v']));if(!_0x5b1b5c[_0x29db11(0xc02)])return;const _0x491805=_0x15588f['aggregate_func']||_0x29db11(0x7e6);let _0x20bc91;if(_0x491805==='first')_0x20bc91=_0x5b1b5c[0x0]['v'];else{if(_0x491805==='last')_0x20bc91=_0x5b1b5c[_0x5b1b5c['length']-0x1]['v'];else{if(_0x491805==='min')_0x20bc91=_0x5b1b5c[_0x29db11(0x617)]((_0x358139,_0xdcf968)=>Math[_0x29db11(0xba1)](_0x358139,_0xdcf968['v']),Infinity);else{if(_0x491805==='max')_0x20bc91=_0x5b1b5c[_0x29db11(0x617)]((_0x5672c2,_0x3c6685)=>Math[_0x29db11(0x220)](_0x5672c2,_0x3c6685['v']),-Infinity);else{if(_0x491805===_0x29db11(0xf49))_0x20bc91=DataProcessor[_0x29db11(0x9d9)](_0x5b1b5c[_0x29db11(0xb3f)](_0x5bbf35=>_0x5bbf35['v']),_0x29db11(0xf49));else{if(_0x491805===_0x29db11(0xfbc)||_0x491805==='mean')_0x20bc91=_0x5b1b5c[_0x29db11(0x617)]((_0x47aa0d,_0x199c0a)=>_0x47aa0d+_0x199c0a['v'],0x0)/_0x5b1b5c['length'];else _0x20bc91=_0x5b1b5c[_0x29db11(0x617)]((_0x15c764,_0x1fbc04)=>_0x15c764+_0x1fbc04['v'],0x0);}}}}}if(!isNum(_0x20bc91))return;const _0x12111d=this['card'][_0x29db11(0x349)]?.(_0x15588f['color'],_0x15588f[_0x29db11(0x974)])||_0x15588f['color'],_0x407252=pickName(_0x15588f[_0x29db11(0xdee)],_0x16c994[_0x29db11(0x731)]?.[_0x29db11(0x40b)],_0x16c994['meta'])??_0x15588f['entity']??'#'+(_0x7bbfd+0x1),_0x2bf9cc=_0x15588f[_0x29db11(0x32e)]||_0x16c994[_0x29db11(0x731)]?.[_0x29db11(0x398)]||'',_0x30a21e=_0x15588f[_0x29db11(0xd57)]?{..._0x15588f,'invert':![]}:_0x15588f;_0x4782d5[_0x29db11(0xb31)]({'ent':_0x15588f,'fEnt':_0x30a21e,'v':_0x20bc91,'name':_0x407252,'unit':_0x2bf9cc,'custom':_0x12111d});});if(!_0x4782d5[_0x377cbd(0xc02)]){_0x48ef83[_0x377cbd(0x17c)]=_0x377cbd(0xb35);return;}let _0x31bc69=0x0;const _0x34717d=_0x4782d5[_0x377cbd(0xb3f)](_0x5e0c03=>{const _0x208bc3=_0x377cbd,_0x3168b3=_0x31bc69;_0x31bc69+=_0x5e0c03['v'];const _0x3015dd=_0x5e0c03[_0x208bc3(0x361)]||(_0x5e0c03['v']>=0x0?'var(--success-color,\x20#2ecc71)':'var(--error-color,\x20#ff4757)');return{..._0x5e0c03,'from':_0x3168b3,'to':_0x31bc69,'color':_0x3015dd,'total':![]};});_0x4a9ad2&&_0x34717d[_0x377cbd(0xb31)]({'ent':_0x4782d5[0x0][_0x377cbd(0x856)],'fEnt':_0x4782d5[0x0][_0x377cbd(0xd45)],'v':_0x31bc69,'from':0x0,'to':_0x31bc69,'name':cardT(this[_0x377cbd(0x1d2)]?.[_0x377cbd(0x1dc)],this[_0x377cbd(0x1d2)]?.[_0x377cbd(0xfe9)],_0x377cbd(0xe62)),'unit':_0x4782d5[0x0][_0x377cbd(0x32e)],'color':_0x377cbd(0xd3e),'total':!![]});let _0x1f25e7=0x0,_0x4415a9=0x0;for(const _0x54bc47 of _0x34717d){_0x1f25e7=Math[_0x377cbd(0xba1)](_0x1f25e7,_0x54bc47[_0x377cbd(0xf9e)],_0x54bc47['to']),_0x4415a9=Math[_0x377cbd(0x220)](_0x4415a9,_0x54bc47['from'],_0x54bc47['to']);}_0x1f25e7===_0x4415a9&&(_0x1f25e7-=0x1,_0x4415a9+=0x1);const _0x28b5b8=(_0x4415a9-_0x1f25e7)*0.08;if(_0x1f25e7<0x0)_0x1f25e7-=_0x28b5b8;_0x4415a9+=_0x28b5b8;const _0x48fedd=_0x5d8757=>{const _0x55a9b8=_0x377cbd,_0x50aabb=Math['pow'](0xa,Math[_0x55a9b8(0xedc)](Math['log10'](_0x5d8757))),_0x3e0bd3=_0x5d8757/_0x50aabb;return(_0x3e0bd3<=0x1?0x1:_0x3e0bd3<=0x2?0x2:_0x3e0bd3<=0x5?0x5:0xa)*_0x50aabb;},_0x290327=_0x48fedd((_0x4415a9-_0x1f25e7)/0x4),_0x5cbf4e=[];for(let _0x2ad232=Math['ceil'](_0x1f25e7/_0x290327)*_0x290327;_0x2ad232<=_0x4415a9+1e-9;_0x2ad232+=_0x290327)_0x5cbf4e[_0x377cbd(0xb31)](_0x2ad232);const _0x4d6550=_0x4782d5[0x0][_0x377cbd(0xd45)],_0x49fcf9=_0x442336=>formatNumber(_0x442336,_0x4d6550,_0x17d446),_0x24417f=Math[_0x377cbd(0x220)](0x1e,0xa+6.5*Math[_0x377cbd(0x220)](..._0x5cbf4e[_0x377cbd(0xb3f)](_0x4113d7=>String(_0x49fcf9(_0x4113d7))['length']),0x2)),_0x359ae3=0x8,_0x3378d0=0x10,_0x1b0f00=0x14,_0x41622f=Math[_0x377cbd(0x220)](0xa,_0x1a7b5b-_0x24417f-_0x359ae3),_0x4f4c29=Math[_0x377cbd(0x220)](0xa,_0x4c5650-_0x3378d0-_0x1b0f00),_0x3c5752=_0x20a515=>_0x3378d0+_0x4f4c29-(_0x20a515-_0x1f25e7)/(_0x4415a9-_0x1f25e7)*_0x4f4c29,_0x29ca2a=_0x34717d[_0x377cbd(0xc02)],_0x912626=_0x41622f/_0x29ca2a,_0x3cdb5e=Math[_0x377cbd(0x220)](0x4,Math[_0x377cbd(0xba1)](0x40,_0x912626*0.62)),_0x4b7ca6=_0x11e450=>_0x24417f+_0x912626*_0x11e450+(_0x912626-_0x3cdb5e)/0x2,_0x30cc50='var(--divider-color,\x20rgba(127,127,127,.28))',_0x30e38c=_0x377cbd(0x7cb);let _0x3c5554='';for(const _0x114e6f of _0x5cbf4e){const _0xd8b0d7=_0x3c5752(_0x114e6f);_0x3c5554+=_0x377cbd(0xcd5)+_0x24417f+_0x377cbd(0xdda)+_0xd8b0d7[_0x377cbd(0x198)](0x1)+_0x377cbd(0x40a)+(_0x1a7b5b-_0x359ae3)+_0x377cbd(0x662)+_0xd8b0d7[_0x377cbd(0x198)](0x1)+'\x22\x20stroke=\x22'+_0x30cc50+_0x377cbd(0x31c),_0x3c5554+=_0x377cbd(0xb6c)+(_0x24417f-0x5)['toFixed'](0x1)+_0x377cbd(0x9c3)+(_0xd8b0d7+0x3)[_0x377cbd(0x198)](0x1)+'\x22\x20text-anchor=\x22end\x22\x20font-size=\x2210\x22\x20fill=\x22'+_0x30e38c+'\x22>'+_0x46fa12(_0x49fcf9(_0x114e6f))+_0x377cbd(0x6f6);}if(_0x1f25e7<0x0&&_0x4415a9>0x0){const _0x25e07d=_0x3c5752(0x0);_0x3c5554+=_0x377cbd(0xcd5)+_0x24417f+_0x377cbd(0xdda)+_0x25e07d['toFixed'](0x1)+_0x377cbd(0x40a)+(_0x1a7b5b-_0x359ae3)+_0x377cbd(0x662)+_0x25e07d[_0x377cbd(0x198)](0x1)+_0x377cbd(0x49d)+_0x30e38c+'\x22\x20stroke-width=\x221\x22\x20opacity=\x220.55\x22/>';}const _0xef538a=[];_0x34717d['forEach']((_0x1db737,_0x50133b)=>{const _0x3b387f=_0x377cbd,_0x293064=_0x4b7ca6(_0x50133b),_0x199045=_0x3c5752(_0x1db737['from']),_0x4820ee=_0x3c5752(_0x1db737['to']),_0x2a8f9e=Math['min'](_0x199045,_0x4820ee),_0x951147=Math[_0x3b387f(0x220)](1.5,Math[_0x3b387f(0x1ae)](_0x199045-_0x4820ee)),_0x2d0928=_0xef538a[_0x3b387f(0xc02)];_0xef538a[_0x3b387f(0xb31)](_0x1db737),_0x3c5554+='<g\x20data-b=\x22'+_0x2d0928+_0x3b387f(0x270)+(_0x46a38b?_0x3b387f(0x670):_0x3b387f(0x744))+'\x22>',_0x3c5554+=_0x3b387f(0x655)+(_0x293064-0x2)[_0x3b387f(0x198)](0x1)+'\x22\x20y=\x22'+_0x3378d0+_0x3b387f(0x2bd)+(_0x3cdb5e+0x4)['toFixed'](0x1)+'\x22\x20height=\x22'+_0x4f4c29+_0x3b387f(0x54b),_0x3c5554+='<rect\x20x=\x22'+_0x293064[_0x3b387f(0x198)](0x1)+_0x3b387f(0x9c3)+_0x2a8f9e[_0x3b387f(0x198)](0x1)+_0x3b387f(0x2bd)+_0x3cdb5e['toFixed'](0x1)+_0x3b387f(0xe08)+_0x951147[_0x3b387f(0x198)](0x1)+_0x3b387f(0x458)+_0x46fa12(_0x1db737[_0x3b387f(0xd95)])+_0x3b387f(0x8e8)+(_0x1db737[_0x3b387f(0xe04)]?'0.85':_0x3b387f(0xde9))+_0x3b387f(0x49d)+_0x46fa12(_0x1db737[_0x3b387f(0xd95)])+_0x3b387f(0x410),_0x3c5554+=_0x3b387f(0xb50);if(_0x50133b<_0x34717d[_0x3b387f(0xc02)]-0x1){const _0x10f626=_0x3c5752(_0x1db737['to']);_0x3c5554+=_0x3b387f(0xcd5)+(_0x293064+_0x3cdb5e)[_0x3b387f(0x198)](0x1)+'\x22\x20y1=\x22'+_0x10f626[_0x3b387f(0x198)](0x1)+_0x3b387f(0x40a)+_0x4b7ca6(_0x50133b+0x1)[_0x3b387f(0x198)](0x1)+_0x3b387f(0x662)+_0x10f626['toFixed'](0x1)+'\x22\x20stroke=\x22'+_0x30e38c+_0x3b387f(0xc10);}if(_0x912626>=0x1e){const _0x3a9ee4=(_0x1db737['total']?'':_0x1db737['v']>=0x0?'+':'')+formatNumber(_0x1db737['v'],_0x1db737[_0x3b387f(0xd45)],_0x17d446),_0x21f700=_0x1db737['to']>=_0x1db737[_0x3b387f(0xf9e)],_0x306845=_0x21f700?_0x2a8f9e-0x4:_0x2a8f9e+_0x951147+0xb;_0x3c5554+=_0x3b387f(0xb6c)+(_0x293064+_0x3cdb5e/0x2)[_0x3b387f(0x198)](0x1)+_0x3b387f(0x9c3)+_0x306845['toFixed'](0x1)+_0x3b387f(0x7f4)+_0x30e38c+'\x22>'+_0x46fa12(_0x3a9ee4)+_0x3b387f(0x6f6);}let _0x3869d5=_0x1db737[_0x3b387f(0xdee)];const _0x3e26f3=Math[_0x3b387f(0x220)](0x3,Math[_0x3b387f(0xedc)](_0x912626/0x6));if(_0x3869d5[_0x3b387f(0xc02)]>_0x3e26f3)_0x3869d5=_0x3869d5[_0x3b387f(0x165)](0x0,_0x3e26f3-0x1)+'…';_0x3c5554+=_0x3b387f(0xb6c)+(_0x24417f+_0x912626*_0x50133b+_0x912626/0x2)[_0x3b387f(0x198)](0x1)+_0x3b387f(0x9c3)+(_0x4c5650-0x6)+_0x3b387f(0x7f4)+_0x30e38c+'\x22'+(_0x1db737[_0x3b387f(0xe04)]?_0x3b387f(0xa05):'')+'>'+_0x46fa12(_0x3869d5)+_0x3b387f(0x6f6);}),_0x48ef83[_0x377cbd(0x17c)]=_0x377cbd(0x818)+_0x4c5650+_0x377cbd(0x68a)+_0x4c5650+'\x22\x20viewBox=\x220\x200\x20'+_0x1a7b5b+'\x20'+_0x4c5650+'\x22\x20preserveAspectRatio=\x22none\x22\x20style=\x22display:block\x22>'+_0x3c5554+'</svg><div\x20class=\x22sgc-pie-tooltip\x22></div></div>';if(_0x46a38b){const _0x536ae0=_0x48ef83[_0x377cbd(0x450)],_0x491643=_0x536ae0['querySelector']('svg'),_0x1b6cb2=_0x536ae0['querySelector'](_0x377cbd(0x19a));let _0x552bda=-0x1;const _0x695255=_0x2c6ccb=>{const _0x27c10c=_0x377cbd,_0x57fe8d=_0x2c6ccb[_0x27c10c(0x6bc)][_0x27c10c(0x6c0)]('[data-b]');if(!_0x57fe8d){_0x552bda=-0x1,_0x1b6cb2['style']['opacity']='0';return;}const _0x31fc4e=+_0x57fe8d['dataset']['b'],_0x5b60f0=_0xef538a[_0x31fc4e];if(!_0x5b60f0)return;const _0x3bd89b=_0x31fc4e===_0x552bda&&_0x1b6cb2['style'][_0x27c10c(0x7a2)]==='1';_0x552bda=_0x31fc4e;const _0x4512b9=_0x4476f8=>formatNumber(_0x4476f8,_0x5b60f0[_0x27c10c(0xd45)],_0x17d446),_0x4b6230=_0x5b60f0[_0x27c10c(0x32e)]?'\x20'+_0x46fa12(_0x5b60f0['unit']):'',_0x3b6f92=_0x5b60f0[_0x27c10c(0x856)]?.['show_color_dot']!==![]?_0x46fa12(_0x5b60f0['color']):'transparent',_0x26a9ee=(_0x710e39,_0x168093,_0x1921a8)=>_0x27c10c(0x894)+(_0x1921a8?_0x27c10c(0xcfb):'')+'><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:transparent\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>'+_0x710e39+_0x27c10c(0xd5c)+_0x168093+_0x27c10c(0xc3d);if(!_0x3bd89b)_0x1b6cb2[_0x27c10c(0x17c)]='<div\x20class=\x22sgc-pie-tt-row\x22\x20style=\x22opacity:0.7;font-size:11px;border-bottom:1px\x20solid\x20var(--divider-color,\x20rgba(255,255,255,0.08));padding-bottom:3px;margin-bottom:3px\x22><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:'+_0x3b6f92+_0x27c10c(0xc78)+_0x46fa12(_0x5b60f0[_0x27c10c(0xdee)])+'</span></div>'+(_0x5b60f0[_0x27c10c(0xe04)]?_0x26a9ee(cardT(this[_0x27c10c(0x1d2)]?.[_0x27c10c(0x1dc)],_0x1df24a,_0x27c10c(0xe62)),''+_0x4512b9(_0x5b60f0['v'])+_0x4b6230):_0x26a9ee(cardT(this[_0x27c10c(0x1d2)]?.[_0x27c10c(0x1dc)],_0x1df24a,'Value'),''+(_0x5b60f0['v']>=0x0?'+':'')+_0x4512b9(_0x5b60f0['v'])+_0x4b6230)+(_0x1df24a[_0x27c10c(0x74f)]!==![]?_0x26a9ee(cardT(this[_0x27c10c(0x1d2)]?.[_0x27c10c(0x1dc)],_0x1df24a,_0x27c10c(0x332)),''+_0x4512b9(_0x5b60f0['to'])+_0x4b6230,!![]):''));_0x1b6cb2[_0x27c10c(0x944)][_0x27c10c(0x7a2)]='1';const _0x4bdb9d=_0x536ae0[_0x27c10c(0x9cc)]();let _0x590ca6=_0x2c6ccb['clientX']-_0x4bdb9d[_0x27c10c(0xaaf)]+0x10;const _0xecf000=_0x1b6cb2[_0x27c10c(0x342)];if(_0x590ca6+_0xecf000>_0x4bdb9d[_0x27c10c(0x581)])_0x590ca6=_0x590ca6-_0xecf000-0x20;_0x1b6cb2[_0x27c10c(0x944)]['left']=Math[_0x27c10c(0x220)](0x0,_0x590ca6)+'px',_0x1b6cb2[_0x27c10c(0x944)]['top']='0';};_0x491643[_0x377cbd(0x171)](_0x377cbd(0x483),_0x695255,{'signal':_0x58b18e}),_0x491643['addEventListener']('pointerdown',_0x695255,{'signal':_0x58b18e}),_0x491643[_0x377cbd(0x171)](_0x377cbd(0x5c2),()=>{const _0x4c7de7=_0x377cbd;_0x552bda=-0x1,_0x1b6cb2['style'][_0x4c7de7(0x7a2)]='0';},{'signal':_0x58b18e});}}}class HistogramRenderer extends BaseCanvasRenderer{constructor(_0x4575fa){super(_0x4575fa),this['_prep']=new Map(),this['_fd']=null;}[_0x46af5e(0x59c)](_0xcfffd1,_0x3688e5,_0xe2505a,_0x4d0f43){const _0x10da23=_0x46af5e;if(this[_0x10da23(0xccb)])this['_abort'][_0x10da23(0x582)]();this[_0x10da23(0xccb)]=new AbortController();const _0xa4ca3f=this[_0x10da23(0xccb)]['signal'],_0x145f97=Math['max'](0x28,_0xcfffd1[_0x10da23(0x810)]||this[_0x10da23(0x1d2)][_0x10da23(0x342)]||0x190),_0x37627a=Math[_0x10da23(0x220)](0x50,parseInt(_0xe2505a[_0x10da23(0x43d)],0xa)||0xc8),_0x42f32f=_0xe2505a['show_tooltip']!==![],_0x1a7245=escapeHtml,_0x5157b5=this[_0x10da23(0x1d2)][_0x10da23(0xfef)]||[],_0x21ff4d=[];(_0x3688e5||[])[_0x10da23(0xd27)]((_0x4a8284,_0x786e9a)=>{const _0x38bfe4=_0x10da23,_0x367c7b=this[_0x38bfe4(0xdfc)](_0x4a8284,_0x786e9a,_0x5157b5,_0x3ff2de=>{const _0x4b1137=_0x38bfe4,_0x2af3fa=[];for(const _0x19d512 of _0x3ff2de)if(_0x19d512&&isNum(_0x19d512['v']))_0x2af3fa[_0x4b1137(0xb31)](_0x19d512['v']);return _0x2af3fa;});if(!_0x367c7b)return;const {ent:_0x8340e3,out:_0x18e782,eSig:_0xb9d330,dSig:_0x5bacf2}=_0x367c7b;if(!_0x18e782[_0x38bfe4(0xc02)])return;const _0x1d387d=this['card'][_0x38bfe4(0x349)]?.(_0x8340e3[_0x38bfe4(0xd95)],_0x8340e3[_0x38bfe4(0x974)])||_0x8340e3[_0x38bfe4(0xd95)]||PALETTE[_0x786e9a%PALETTE[_0x38bfe4(0xc02)]],_0x184b85=pickName(_0x8340e3[_0x38bfe4(0xdee)],_0x4a8284['meta']?.[_0x38bfe4(0x40b)],_0x4a8284[_0x38bfe4(0x731)])??_0x8340e3[_0x38bfe4(0x974)]??'#'+(_0x786e9a+0x1),_0x13edc1=_0x8340e3['unit']||_0x4a8284['meta']?.[_0x38bfe4(0x398)]||'',_0x2db668=_0x8340e3[_0x38bfe4(0xd57)]?{..._0x8340e3,'invert':![]}:_0x8340e3;_0x21ff4d[_0x38bfe4(0xb31)]({'ent':_0x8340e3,'fEnt':_0x2db668,'vals':_0x18e782,'color':_0x1d387d,'name':_0x184b85,'unit':_0x13edc1,'sig':_0xb9d330+'~'+_0x5bacf2});});if(!_0x21ff4d[_0x10da23(0xc02)]){_0xcfffd1['innerHTML']=_0x10da23(0x8bd);return;}let _0x44189b=Infinity,_0x5799f1=-Infinity,_0xb9363b=0x0;for(const _0xc58969 of _0x21ff4d){_0xb9363b+=_0xc58969['vals'][_0x10da23(0xc02)];for(const _0x5f1766 of _0xc58969[_0x10da23(0x7a0)]){if(_0x5f1766<_0x44189b)_0x44189b=_0x5f1766;if(_0x5f1766>_0x5799f1)_0x5799f1=_0x5f1766;}}_0x44189b===_0x5799f1&&(_0x44189b-=0.5,_0x5799f1+=0.5);let _0x827172=0x0;const _0x4609ce=parseInt(_0xe2505a[_0x10da23(0xa78)],0xa);if(Number['isFinite'](_0x4609ce)&&_0x4609ce>0x0)_0x827172=Math[_0x10da23(0x220)](0x2,Math[_0x10da23(0xba1)](0x50,_0x4609ce));else{const _0x18bc0b=_0x21ff4d['map'](_0x11819d=>_0x11819d[_0x10da23(0x2bb)])[_0x10da23(0x888)](';');if(this[_0x10da23(0xf3b)]&&this['_fd'][_0x10da23(0x2bb)]===_0x18bc0b)_0x827172=this[_0x10da23(0xf3b)][_0x10da23(0x2e5)];else{const _0x162b4e=Float64Array['from'](_0x21ff4d['flatMap'](_0x56904a=>_0x56904a[_0x10da23(0x7a0)]))[_0x10da23(0xd09)](),_0x32ad19=_0x5338c1=>{const _0xc00812=_0x10da23,_0x42b0c6=(_0x162b4e[_0xc00812(0xc02)]-0x1)*_0x5338c1,_0x20e75f=Math['floor'](_0x42b0c6),_0x447da5=Math[_0xc00812(0x6fd)](_0x42b0c6);return _0x20e75f===_0x447da5?_0x162b4e[_0x20e75f]:_0x162b4e[_0x20e75f]+(_0x162b4e[_0x447da5]-_0x162b4e[_0x20e75f])*(_0x42b0c6-_0x20e75f);},_0x3b55e4=_0x32ad19(0.75)-_0x32ad19(0.25),_0x2eb0da=_0x3b55e4>0x0?0x2*_0x3b55e4/Math['cbrt'](_0x162b4e[_0x10da23(0xc02)]):0x0;_0x827172=_0x2eb0da>0x0?Math['round']((_0x5799f1-_0x44189b)/_0x2eb0da):Math['ceil'](Math[_0x10da23(0x692)](Math[_0x10da23(0x220)](0x2,_0x162b4e[_0x10da23(0xc02)])))+0x1,_0x827172=Math[_0x10da23(0x220)](0x5,Math[_0x10da23(0xba1)](0x28,_0x827172||0x5)),this['_fd']={'sig':_0x18bc0b,'bins':_0x827172};}}const _0x4524ee=(_0x5799f1-_0x44189b)/_0x827172,_0x321b97=_0x21ff4d[_0x10da23(0xb3f)](()=>new Array(_0x827172)[_0x10da23(0x290)](0x0));_0x21ff4d[_0x10da23(0xd27)]((_0x156e3b,_0x898430)=>{const _0x1f6e03=_0x10da23;for(const _0x248ff2 of _0x156e3b['vals']){const _0x97b3c0=Math[_0x1f6e03(0xba1)](_0x827172-0x1,Math[_0x1f6e03(0xedc)]((_0x248ff2-_0x44189b)/_0x4524ee));_0x321b97[_0x898430][_0x97b3c0]++;}});let _0x49f19c=0x0;for(const _0x50ef5c of _0x321b97)for(const _0x4db8be of _0x50ef5c)if(_0x4db8be>_0x49f19c)_0x49f19c=_0x4db8be;if(!_0x49f19c){_0xcfffd1['innerHTML']=_0x10da23(0x1b6);return;}const _0x5a3e9e=_0x49f19c*1.06,_0x5c9f9f=_0x2bf64c=>{const _0x52ad04=_0x10da23,_0x40f2f1=Math[_0x52ad04(0x91f)](0xa,Math[_0x52ad04(0xedc)](Math[_0x52ad04(0x81d)](_0x2bf64c))),_0x48daa9=_0x2bf64c/_0x40f2f1;return(_0x48daa9<=0x1?0x1:_0x48daa9<=0x2?0x2:_0x48daa9<=0x5?0x5:0xa)*_0x40f2f1;},_0x35a115=Math[_0x10da23(0x220)](0x1,_0x5c9f9f(_0x5a3e9e/0x4)),_0x4e1eb4=[];for(let _0x49a117=0x0;_0x49a117<=_0x5a3e9e+1e-9;_0x49a117+=_0x35a115)_0x4e1eb4[_0x10da23(0xb31)](_0x49a117);const _0x31b160=_0x21ff4d[0x0][_0x10da23(0xd45)],_0x3f973f=_0x4e146a=>formatNumber(_0x4e146a,_0x31b160,_0x4d0f43),_0x1a797a=Math[_0x10da23(0x220)](..._0x4e1eb4['map'](_0xfac49b=>String(Math['round'](_0xfac49b))[_0x10da23(0xc02)]),0x2),_0x5da42c=Math[_0x10da23(0x220)](0x1a,0xa+6.5*_0x1a797a),_0x21cb5b=0x8,_0x3ec7f1=0x8,_0x583da4=0x14,_0x535d47=Math['max'](0xa,_0x145f97-_0x5da42c-_0x21cb5b),_0x205892=Math['max'](0xa,_0x37627a-_0x3ec7f1-_0x583da4),_0x4d37eb=_0x462cf4=>_0x3ec7f1+_0x205892-_0x462cf4/_0x5a3e9e*_0x205892,_0x11a39a=_0x21ff4d[_0x10da23(0xc02)],_0x279004=_0x535d47/_0x827172,_0x43df6f=_0x279004*0.86,_0x143caa=Math[_0x10da23(0x220)](1.5,_0x43df6f/_0x11a39a*0.92),_0x4c7478=(_0x42eeab,_0x251d1a)=>_0x5da42c+_0x279004*_0x42eeab+(_0x279004-_0x43df6f)/0x2+_0x43df6f/_0x11a39a*_0x251d1a+(_0x43df6f/_0x11a39a-_0x143caa)/0x2,_0x51da7e=_0x10da23(0x9af),_0x20cb9e=_0x10da23(0x7cb);let _0x3fc5a9='';for(const _0x43e3e0 of _0x4e1eb4){const _0x209b62=_0x4d37eb(_0x43e3e0);_0x3fc5a9+=_0x10da23(0xcd5)+_0x5da42c+_0x10da23(0xdda)+_0x209b62['toFixed'](0x1)+_0x10da23(0x40a)+(_0x145f97-_0x21cb5b)+'\x22\x20y2=\x22'+_0x209b62[_0x10da23(0x198)](0x1)+_0x10da23(0x49d)+_0x51da7e+_0x10da23(0x31c),_0x3fc5a9+='<text\x20x=\x22'+(_0x5da42c-0x5)[_0x10da23(0x198)](0x1)+_0x10da23(0x9c3)+(_0x209b62+0x3)[_0x10da23(0x198)](0x1)+_0x10da23(0xe47)+_0x20cb9e+'\x22>'+Math[_0x10da23(0x686)](_0x43e3e0)+_0x10da23(0x6f6);}const _0x598dc6=Math['max'](0x1,Math[_0x10da23(0x6fd)](_0x827172/Math[_0x10da23(0x220)](0x2,Math[_0x10da23(0xedc)](_0x535d47/0x34))));for(let _0x3f6999=0x0;_0x3f6999<_0x827172;_0x3f6999+=_0x598dc6){const _0x55febf=_0x44189b+_0x4524ee*(_0x3f6999+0.5);_0x3fc5a9+=_0x10da23(0xb6c)+(_0x5da42c+_0x279004*(_0x3f6999+0.5))[_0x10da23(0x198)](0x1)+'\x22\x20y=\x22'+(_0x37627a-0x6)+_0x10da23(0x7f4)+_0x20cb9e+'\x22>'+_0x1a7245(_0x3f973f(_0x55febf))+_0x10da23(0x6f6);}const _0x2f2ce8=[];for(let _0x11a462=0x0;_0x11a462<_0x827172;_0x11a462++){_0x21ff4d[_0x10da23(0xd27)]((_0x24532d,_0x2307bc)=>{const _0x17c820=_0x10da23,_0x5615a5=_0x321b97[_0x2307bc][_0x11a462];if(!_0x5615a5)return;const _0x5aa29a=_0x4c7478(_0x11a462,_0x2307bc),_0x6bdfe7=_0x4d37eb(_0x5615a5),_0x4c76da=_0x2f2ce8[_0x17c820(0xc02)];_0x2f2ce8['push']({'ent':_0x24532d['ent'],'fEnt':_0x24532d[_0x17c820(0xd45)],'name':_0x24532d['name'],'unit':_0x24532d['unit'],'color':_0x24532d[_0x17c820(0xd95)],'a':_0x44189b+_0x4524ee*_0x11a462,'b':_0x44189b+_0x4524ee*(_0x11a462+0x1),'n':_0x5615a5,'tot':_0x24532d[_0x17c820(0x7a0)]['length']}),_0x3fc5a9+='<g\x20data-b=\x22'+_0x4c76da+_0x17c820(0x270)+(_0x42f32f?'pointer':_0x17c820(0x744))+'\x22>',_0x3fc5a9+=_0x17c820(0x655)+(_0x5aa29a-0x1)[_0x17c820(0x198)](0x1)+'\x22\x20y=\x22'+_0x3ec7f1+_0x17c820(0x2bd)+(_0x143caa+0x2)[_0x17c820(0x198)](0x1)+_0x17c820(0xe08)+_0x205892+_0x17c820(0x54b),_0x3fc5a9+='<rect\x20x=\x22'+_0x5aa29a['toFixed'](0x1)+'\x22\x20y=\x22'+_0x6bdfe7[_0x17c820(0x198)](0x1)+'\x22\x20width=\x22'+_0x143caa[_0x17c820(0x198)](0x1)+_0x17c820(0xe08)+Math[_0x17c820(0x220)](0x1,_0x3ec7f1+_0x205892-_0x6bdfe7)['toFixed'](0x1)+_0x17c820(0x458)+_0x1a7245(_0x24532d[_0x17c820(0xd95)])+_0x17c820(0x43b)+_0x1a7245(_0x24532d['color'])+_0x17c820(0x74d),_0x3fc5a9+=_0x17c820(0xb50);});}_0xcfffd1[_0x10da23(0x17c)]=_0x10da23(0xa32)+_0x37627a+_0x10da23(0x68a)+_0x37627a+'\x22\x20viewBox=\x220\x200\x20'+_0x145f97+'\x20'+_0x37627a+_0x10da23(0x516)+_0x3fc5a9+'</svg><div\x20class=\x22sgc-pie-tooltip\x22></div></div>';if(_0x42f32f){const _0x3ed80a=_0xcfffd1[_0x10da23(0x450)],_0x511f7f=_0x3ed80a[_0x10da23(0xee6)](_0x10da23(0x5d7)),_0x31f567=_0x3ed80a['querySelector'](_0x10da23(0x19a));let _0x246ca3=-0x1;const _0x5cd93c=_0x42aee1=>{const _0x168a43=_0x10da23,_0xe5e551=_0x42aee1['target']['closest'](_0x168a43(0x42b));if(!_0xe5e551){_0x246ca3=-0x1,_0x31f567[_0x168a43(0x944)]['opacity']='0';return;}const _0x4fb4d9=+_0xe5e551[_0x168a43(0x8f6)]['b'],_0x2f1a9b=_0x2f2ce8[_0x4fb4d9];if(!_0x2f1a9b)return;const _0x19ec58=_0x4fb4d9===_0x246ca3&&_0x31f567[_0x168a43(0x944)][_0x168a43(0x7a2)]==='1';_0x246ca3=_0x4fb4d9;const _0x4fe09d=_0xe756e2=>formatNumber(_0xe756e2,_0x2f1a9b[_0x168a43(0xd45)],_0x4d0f43),_0x58bca5=_0x2f1a9b[_0x168a43(0x32e)]?'\x20'+_0x1a7245(_0x2f1a9b[_0x168a43(0x32e)]):'',_0x37934f=_0x2f1a9b[_0x168a43(0x856)]?.[_0x168a43(0x452)]!==![]?_0x1a7245(_0x2f1a9b[_0x168a43(0xd95)]):'transparent',_0x134d52=(_0x4c3584,_0x3f0f4c,_0x4c03e2)=>_0x168a43(0x894)+(_0x4c03e2?'\x20style=\x22opacity:0.6\x22':'')+'><span\x20class=\x22sgc-pie-tt-dot\x22\x20style=\x22background:transparent\x22></span><span\x20class=\x22sgc-pie-tt-name\x22>'+_0x4c3584+_0x168a43(0xd5c)+_0x3f0f4c+_0x168a43(0xc3d);if(!_0x19ec58)_0x31f567[_0x168a43(0x17c)]=_0x168a43(0x879)+_0x37934f+_0x168a43(0xc78)+_0x1a7245(_0x2f1a9b[_0x168a43(0xdee)])+'</span></div>'+_0x134d52(_0x1a7245(cardT(_0x4d0f43,_0xe2505a,_0x168a43(0xbce))),_0x4fe09d(_0x2f1a9b['a'])+'\x20–\x20'+_0x4fe09d(_0x2f1a9b['b'])+_0x58bca5)+_0x134d52(_0x1a7245(cardT(_0x4d0f43,_0xe2505a,_0x168a43(0xcb2))),''+_0x2f1a9b['n'])+(_0xe2505a['show_tooltip_total']!==![]?_0x134d52(_0x1a7245(cardT(_0x4d0f43,_0xe2505a,_0x168a43(0xcec))),(_0x2f1a9b['n']/_0x2f1a9b[_0x168a43(0xe66)]*0x64)[_0x168a43(0x198)](0x1)+'%',!![]):'');_0x31f567[_0x168a43(0x944)][_0x168a43(0x7a2)]='1';const _0x216bd3=_0x3ed80a[_0x168a43(0x9cc)]();let _0x5775de=_0x42aee1['clientX']-_0x216bd3[_0x168a43(0xaaf)]+0x10;const _0x2dbb13=_0x31f567[_0x168a43(0x342)];if(_0x5775de+_0x2dbb13>_0x216bd3[_0x168a43(0x581)])_0x5775de=_0x5775de-_0x2dbb13-0x20;_0x31f567[_0x168a43(0x944)][_0x168a43(0xaaf)]=Math[_0x168a43(0x220)](0x0,_0x5775de)+'px',_0x31f567['style'][_0x168a43(0xf55)]='0';};_0x511f7f[_0x10da23(0x171)](_0x10da23(0x483),_0x5cd93c,{'signal':_0xa4ca3f}),_0x511f7f[_0x10da23(0x171)]('pointerdown',_0x5cd93c,{'signal':_0xa4ca3f}),_0x511f7f[_0x10da23(0x171)](_0x10da23(0x5c2),()=>{const _0x5be2d1=_0x10da23;_0x246ca3=-0x1,_0x31f567[_0x5be2d1(0x944)]['opacity']='0';},{'signal':_0xa4ca3f});}}}class StateTimelineRenderer{constructor(_0x170db3){const _0x3e37ea=_0x46af5e;this[_0x3e37ea(0x1d2)]=_0x170db3;}[_0x46af5e(0x59c)](_0x1f639e,_0x2b640a,_0x4e5af4,_0x4354ef){const _0x328ec3=_0x46af5e;{const _0x3075c8=new Map(),_0x5de518=[];for(const _0x565ea5 of _0x2b640a){const _0x3306c0=_0x565ea5['entity']?.[_0x328ec3(0xed4)];if(_0x3306c0==null){_0x5de518[_0x328ec3(0xb31)](_0x565ea5);continue;}if(!_0x3075c8[_0x328ec3(0x101d)](_0x3306c0))_0x3075c8['set'](_0x3306c0,[]);_0x3075c8[_0x328ec3(0xc3f)](_0x3306c0)[_0x328ec3(0xb31)](_0x565ea5);}const _0x185c5=[];for(const _0x4a5672 of _0x5de518){_0x185c5[_0x328ec3(0xb31)](_0x4a5672);const _0xfa5dcf=_0x3075c8[_0x328ec3(0xc3f)](_0x4a5672['idx']);_0xfa5dcf&&(_0x185c5[_0x328ec3(0xb31)](..._0xfa5dcf),_0x3075c8['delete'](_0x4a5672[_0x328ec3(0xd18)]));}for(const _0x122086 of _0x3075c8['values']())_0x185c5[_0x328ec3(0xb31)](..._0x122086);_0x2b640a=_0x185c5;}const _0xdca228=Math[_0x328ec3(0x220)](0x28,_0x1f639e[_0x328ec3(0x810)]||this[_0x328ec3(0x1d2)]['offsetWidth']||0x190),_0x47d579=this[_0x328ec3(0x1d2)][_0x328ec3(0xfef)]||[],_0x23d3e2=_0x75349f=>{const _0x16e757=_0x328ec3,_0x279f68=_0x75349f[_0x16e757(0x974)]||{},_0x6ec7e9=_0x75349f['meta']||{},_0x1a26e9=pickName(_0x279f68['name'],_0x6ec7e9[_0x16e757(0x40b)],_0x6ec7e9);if(_0x1a26e9==='')return'';return _0x1a26e9!==undefined&&_0x1a26e9!==null?_0x1a26e9:_0x279f68['entity']||'';},_0x52112f=_0x2b640a[_0x328ec3(0xb3f)](_0x23d3e2),_0x11caea=_0x52112f['reduce']((_0x1ce004,_0x2d8a1b)=>Math['max'](_0x1ce004,String(_0x2d8a1b||'')['length']),0x0),_0x50d5c2=getComputedStyle(this[_0x328ec3(0x1d2)])['getPropertyValue'](_0x328ec3(0xcd3))[_0x328ec3(0xa11)]()||_0x328ec3(0xbc1),_0x366d90=clamp(toNum(_0x4e5af4['state_timeline_label_font_size'])||0xb,0x6,0x28),_0x4ad41d=_0x328ec3(0x42c)+_0x366d90+'px\x20'+_0x50d5c2,_0x2d2f03=_0x52112f[_0x328ec3(0x617)]((_0x3cd8e3,_0x28baaa)=>Math[_0x328ec3(0x220)](_0x3cd8e3,measureTextWidth(_0x28baaa,_0x4ad41d)),0x0),_0x3d66d6=Math['round'](Math['min'](0x118,Math['max'](0x60,_0xdca228*0.32))),_0x555e60=_0x11caea===0x0?0x0:Math[_0x328ec3(0x686)](Math['min'](_0x3d66d6,Math[_0x328ec3(0x220)](0x20,_0x2d2f03+0x8))),_0x43f84a=Math[_0x328ec3(0x220)](_0x366d90+0x2,Math[_0x328ec3(0x686)](_0x366d90*1.18)),_0x3ce7f6=0x3,_0x37c30c=_0x52112f[_0x328ec3(0xb3f)](_0x2ddadd=>wrapLabelLines(_0x2ddadd,_0x555e60-0x8,_0x3ce7f6,_0x4ad41d)),_0x422296=_0x37c30c[_0x328ec3(0x617)]((_0x1f5dd1,_0x31e3d8)=>Math[_0x328ec3(0x220)](_0x1f5dd1,_0x31e3d8['lines'][_0x328ec3(0xc02)]),0x1),_0x5078ca=toNum(_0x4e5af4[_0x328ec3(0x6c3)]),_0x27eff3=isNum(_0x5078ca)&&_0x5078ca>0x0?clamp(_0x5078ca,0x18,0xa0):0x0,_0x17f61f=Math[_0x328ec3(0x220)](0x20,_0x422296*_0x43f84a+0x8,_0x27eff3),_0x41deae=0x4,_0x3530c8=0x18,_0x190cce=0x8,_0xa053c5=_0x2b640a[_0x328ec3(0xc02)],_0x127279=_0x41deae+_0xa053c5*_0x17f61f+_0x3530c8,_0x1b8340=_0x27eff3?_0x17f61f-0x8:Math['min'](0x18,_0x17f61f-0x6),_0x2d5d82=this[_0x328ec3(0x1d2)][_0x328ec3(0xf89)]||this[_0x328ec3(0x1d2)]['_window'];if(!_0x2d5d82?.[_0x328ec3(0x4b0)]||!_0x2d5d82?.[_0x328ec3(0x244)]){_0x1f639e[_0x328ec3(0x17c)]=_0x328ec3(0xa17)+escapeHtml(cardT(this['card']?.[_0x328ec3(0x1dc)],this[_0x328ec3(0x1d2)]?.[_0x328ec3(0xfe9)],_0x328ec3(0x639)))+'</div>';return;}const _0x546a2c=_0x2d5d82[_0x328ec3(0x4b0)]['getTime'](),_0x5c4967=_0x2d5d82[_0x328ec3(0x244)][_0x328ec3(0x1028)](),_0x2689e2=Math[_0x328ec3(0x220)](0x1,_0x5c4967-_0x546a2c),_0x2bcec1=_0x2689e2/0x36ee80,_0x43b252=toNum(_0x4e5af4[_0x328ec3(0x2a8)]??_0x4e5af4['max_visible_interval']),_0x28573c=!this['card'][_0x328ec3(0xf89)]&&isNum(_0x43b252)&&_0x43b252>0x0&&_0x2bcec1>_0x43b252,_0x4adc39=_0x28573c?_0x2bcec1/_0x43b252:0x1,_0x52bd19=_0x28573c?Math[_0x328ec3(0x686)](_0xdca228*_0x4adc39):_0xdca228,_0x3d6a5a=_0x52bd19-_0x555e60-_0x190cce,_0x1d5ce7=_0x1de1ad=>_0x555e60+(_0x1de1ad-_0x546a2c)/_0x2689e2*_0x3d6a5a,_0x41ae8e=resolveCardLanguage(_0x4354ef,this[_0x328ec3(0x1d2)]?.[_0x328ec3(0xfe9)]),_0x37b6f9=document['createElementNS'](_0x328ec3(0x17d),_0x328ec3(0x5d7));_0x37b6f9[_0x328ec3(0x751)]('viewBox',_0x328ec3(0x44c)+_0x52bd19+'\x20'+_0x127279),_0x37b6f9[_0x328ec3(0x751)](_0x328ec3(0x581),_0x28573c?String(_0x52bd19):_0x328ec3(0x583)),_0x37b6f9[_0x328ec3(0x751)]('height',String(_0x127279));if(_0x28573c)_0x37b6f9[_0x328ec3(0x751)]('preserveAspectRatio','none');_0x37b6f9[_0x328ec3(0x751)](_0x328ec3(0x4d6),_0x328ec3(0xb94)),_0x37b6f9[_0x328ec3(0x944)]['display']=_0x328ec3(0x55f);if(_0x555e60>0x0){const _0x1cc7ab=document[_0x328ec3(0xe2c)](_0x328ec3(0x17d),_0x328ec3(0xe91)),_0x451497=document[_0x328ec3(0xe2c)]('http://www.w3.org/2000/svg','clipPath');_0x451497['setAttribute']('id',_0x328ec3(0x30f));const _0x120a1b=document['createElementNS'](_0x328ec3(0x17d),_0x328ec3(0x53f));_0x120a1b[_0x328ec3(0x751)]('x','0'),_0x120a1b[_0x328ec3(0x751)]('y','0'),_0x120a1b['setAttribute'](_0x328ec3(0x581),String(_0x555e60)),_0x120a1b[_0x328ec3(0x751)](_0x328ec3(0x43d),String(_0x127279)),_0x451497['appendChild'](_0x120a1b),_0x1cc7ab[_0x328ec3(0x319)](_0x451497),_0x37b6f9[_0x328ec3(0x319)](_0x1cc7ab);}_0x2b640a[_0x328ec3(0xd27)]((_0x4dbdd7,_0x171704)=>{const _0x225236=_0x328ec3,_0x28392e=_0x4dbdd7[_0x225236(0x974)]||{},_0x138c02=_0x4dbdd7['meta']||{},_0x2e719a=_0x28392e[_0x225236(0xa7e)]||autoStateMap(_0x28392e,_0x4354ef,_0x4e5af4?.[_0x225236(0x815)])||[],_0x5e8027=!!_0x28392e[_0x225236(0xa7e)],_0x40e3b0=pickName(_0x28392e[_0x225236(0xdee)],_0x138c02[_0x225236(0x40b)],_0x138c02),_0x1c5578=_0x40e3b0===''?'':_0x40e3b0!==undefined&&_0x40e3b0!==null?_0x40e3b0:_0x28392e[_0x225236(0x974)]||'',_0x32585c=_0x4dbdd7['points']||[],_0x10d13e=_0x41deae+_0x171704*_0x17f61f+_0x17f61f/0x2,_0xa59caa=_0x10d13e-_0x1b8340/0x2;if(_0x1c5578){const _0x43a24a=_0x37c30c[_0x171704]||wrapLabelLines(_0x1c5578,_0x555e60-0x8,_0x3ce7f6,_0x4ad41d),_0x3b0154=_0x43a24a[_0x225236(0x3f7)][_0x225236(0xc02)]?_0x43a24a[_0x225236(0x3f7)]:[_0x1c5578],_0x2c3f7d=document[_0x225236(0xe2c)]('http://www.w3.org/2000/svg',_0x225236(0x8a1));_0x2c3f7d[_0x225236(0x751)]('x','4'),_0x2c3f7d[_0x225236(0x751)]('y',String(_0x10d13e+0x1)),_0x2c3f7d[_0x225236(0x751)](_0x225236(0xcd7),'start'),_0x2c3f7d[_0x225236(0x751)]('dominant-baseline','central'),_0x2c3f7d['setAttribute'](_0x225236(0x290),'var(--primary-text-color)'),_0x2c3f7d[_0x225236(0x751)]('font-size',String(_0x366d90)),_0x2c3f7d['setAttribute']('style',_0x225236(0xea3)),_0x2c3f7d[_0x225236(0x751)](_0x225236(0xd6a),_0x225236(0xa35)),_0x3b0154['forEach']((_0x46162b,_0x2aad33)=>{const _0x226032=_0x225236,_0x1456a0=document[_0x226032(0xe2c)](_0x226032(0x17d),'tspan');_0x1456a0['setAttribute']('x','4'),_0x1456a0[_0x226032(0x751)]('dy',_0x2aad33===0x0?String(-((_0x3b0154[_0x226032(0xc02)]-0x1)*_0x43f84a)/0x2):String(_0x43f84a)),_0x1456a0[_0x226032(0x3d2)]=_0x46162b,_0x2c3f7d['appendChild'](_0x1456a0);});if(_0x43a24a['truncated']){const _0x5a3c16=document[_0x225236(0xe2c)](_0x225236(0x17d),'title');_0x5a3c16[_0x225236(0x3d2)]=_0x1c5578,_0x2c3f7d[_0x225236(0x319)](_0x5a3c16);}_0x37b6f9[_0x225236(0x319)](_0x2c3f7d);}if(!_0x32585c[_0x225236(0xc02)])return;const _0x3c96f9=[];let _0x4473cf=_0x32585c[0x0]['t'],_0x5d81d0=_0x32585c[0x0]['v'];for(let _0x321951=0x1;_0x321951<_0x32585c['length'];_0x321951++){_0x32585c[_0x321951]['v']!==_0x5d81d0&&(_0x5d81d0!==null&&_0x5d81d0!==undefined&&_0x3c96f9[_0x225236(0xb31)]({'start':_0x4473cf,'end':_0x32585c[_0x321951]['t'],'val':_0x5d81d0}),_0x4473cf=_0x32585c[_0x321951]['t'],_0x5d81d0=_0x32585c[_0x321951]['v']);}_0x5d81d0!==null&&_0x5d81d0!==undefined&&_0x3c96f9[_0x225236(0xb31)]({'start':_0x4473cf,'end':bandTailEnd(_0x28392e,_0x5c4967,_0x4473cf),'val':_0x5d81d0});for(const _0x7033f of _0x3c96f9){const _0x5c64ff=Math[_0x225236(0x220)](_0x1d5ce7(_0x7033f[_0x225236(0x4b0)]),_0x555e60),_0x12951b=Math[_0x225236(0xba1)](_0x1d5ce7(_0x7033f[_0x225236(0x244)]),_0x52bd19-_0x190cce),_0xe95147=_0x12951b-_0x5c64ff;if(_0xe95147<0.5)continue;const _0x3e978c=Math['round'](_0x7033f[_0x225236(0xcd8)]),_0x5d4d3b=_0x2e719a[_0x3e978c],_0x54976b=stateSegmentColor(_0x5d4d3b,_0x28392e,_0x3e978c),_0x198378=_0x5e8027&&_0x5d4d3b?.[_0x225236(0xf1f)]||(_0x4354ef?.['states']?.[_0x28392e[_0x225236(0x974)]]?.['attributes']?.['unit_of_measurement']?String(_0x5d4d3b?.['value']??_0x3e978c):localizeEntityState(_0x4354ef,_0x4354ef?.[_0x225236(0x4f9)]?.[_0x28392e[_0x225236(0x974)]],_0x5d4d3b?.['value']??_0x3e978c)),_0x31c756=((()=>{const _0x5052ba=_0x225236,_0xe9b02=_0x4e5af4[_0x5052ba(0xfe3)],_0x4bf653=_0xe9b02==null||_0xe9b02===''?0x3:Number(_0xe9b02);if(!isFinite(_0x4bf653)||_0x4bf653<0x0)return 0x3;return Math['min'](_0x4bf653,_0x1b8340/0x2);})()),_0x3d235e=document[_0x225236(0xe2c)](_0x225236(0x17d),_0x225236(0x53f));_0x3d235e[_0x225236(0x751)]('x',String(_0x5c64ff)),_0x3d235e[_0x225236(0x751)]('y',String(_0xa59caa)),_0x3d235e['setAttribute']('width',String(_0xe95147)),_0x3d235e['setAttribute'](_0x225236(0x43d),String(_0x1b8340)),_0x3d235e['setAttribute']('rx',String(_0x31c756)),_0x3d235e[_0x225236(0x751)]('ry',String(_0x31c756)),_0x3d235e[_0x225236(0x751)]('fill',_0x54976b),_0x3d235e[_0x225236(0x751)](_0x225236(0x7a2),String(_0x4dbdd7[_0x225236(0x974)]?.[_0x225236(0xed4)]!=null?0.85*Math[_0x225236(0x220)](0.55,_0x4dbdd7[_0x225236(0x974)][_0x225236(0xbf6)]?.['opacity']??0.45):0.85)),_0x3d235e[_0x225236(0x751)]('class',_0x225236(0x6e2)),_0x37b6f9['appendChild'](_0x3d235e);if(_0x4e5af4[_0x225236(0x4d4)]!==![]&&_0xe95147>0x28&&_0x198378){const _0x59d6e0=Math[_0x225236(0xba1)](0x28,Math[_0x225236(0x220)](0x6,toNum(_0x4e5af4[_0x225236(0x903)])||0xa)),_0x4ba883=document[_0x225236(0xe2c)](_0x225236(0x17d),'text');_0x4ba883['setAttribute']('x',String(_0x5c64ff+_0xe95147/0x2)),_0x4ba883[_0x225236(0x751)]('y',String(_0x10d13e+0x1)),_0x4ba883[_0x225236(0x751)](_0x225236(0xcd7),'middle'),_0x4ba883[_0x225236(0x751)](_0x225236(0x6a9),_0x225236(0x3ae));const _0x2c9f22=bandLabelFill(_0x54976b);_0x4ba883['setAttribute'](_0x225236(0x290),_0x2c9f22),_0x4ba883[_0x225236(0x751)](_0x225236(0x640),String(_0x59d6e0)),_0x4ba883['setAttribute'](_0x225236(0x944),_0x225236(0xf60)+(_0x2c9f22===_0x225236(0x182)?'text-shadow:0\x201px\x202px\x20rgba(0,0,0,0.3)':''));const _0x35dc71=Math[_0x225236(0xedc)](_0xe95147/(_0x59d6e0*0.6));_0x4ba883[_0x225236(0x3d2)]=_0x198378[_0x225236(0xc02)]>_0x35dc71?_0x198378['slice'](0x0,_0x35dc71-0x1)+'…':_0x198378,_0x37b6f9[_0x225236(0x319)](_0x4ba883);}}});const _0x180250=_0x41deae+_0xa053c5*_0x17f61f+0x4,_0x2407a0=toNum(_0x4e5af4[_0x328ec3(0x339)])||0xa,_0x1b2afe=_0x4e5af4[_0x328ec3(0xdb6)]||'var(--secondary-text-color,\x20#888)',_0x74d24e=_0x4e5af4[_0x328ec3(0xdca)]||_0x1b2afe,_0x185465=toNum(_0x4e5af4[_0x328ec3(0xb66)]),_0x227fad=isNum(_0x185465)?_0x185465:0.5,_0xca27da=_0x2689e2>0x5265c00,_0x5ac527=Math[_0x328ec3(0x220)](0x2,Math[_0x328ec3(0xedc)](_0x3d6a5a/0x50));for(let _0x4f222a=0x0;_0x4f222a<=_0x5ac527;_0x4f222a++){const _0xd29d97=_0x546a2c+_0x4f222a/_0x5ac527*_0x2689e2,_0x371a77=_0x1d5ce7(_0xd29d97),_0x5da7a0=new Date(_0xd29d97);let _0x254bdf;try{const _0x368f7f=getCachedDateTimeFormatter(_0x41ae8e,_localeTimeOpts(_0x4354ef,{'hour':_0x328ec3(0x615),'minute':_0x328ec3(0x615)}));_0x254bdf=_0x368f7f?_0x368f7f[_0x328ec3(0xf20)](_0x5da7a0):_0x5da7a0[_0x328ec3(0xb0f)]();}catch(_0x1965fe){_0x254bdf=_0x5da7a0['toLocaleTimeString']();}if(_0x2689e2>0x5265c00)try{const _0x591245=getCachedDateTimeFormatter(_0x41ae8e,{'day':_0x328ec3(0x897),'month':_0x328ec3(0xfec)});_0x254bdf=_0x591245?_0x591245[_0x328ec3(0xf20)](_0x5da7a0):_0x254bdf;}catch(_0x4bdc33){}const _0xb84660=document[_0x328ec3(0xe2c)](_0x328ec3(0x17d),'text');_0xb84660[_0x328ec3(0x751)]('x',String(_0x371a77)),_0xb84660['setAttribute']('y',String(_0x180250+_0x2407a0)),_0xb84660[_0x328ec3(0x751)](_0x328ec3(0xcd7),_0x328ec3(0x6d4)),_0xb84660[_0x328ec3(0x751)]('fill',_0xca27da?_0x74d24e:_0x1b2afe),_0xb84660[_0x328ec3(0x751)](_0x328ec3(0x640),String(_0x2407a0)),_0xb84660[_0x328ec3(0x751)](_0x328ec3(0x944),_0x328ec3(0x102d)+_0x227fad),_0xb84660[_0x328ec3(0x3d2)]=_0x254bdf,_0x37b6f9[_0x328ec3(0x319)](_0xb84660);}_0x1f639e['innerHTML']='',_0x1f639e[_0x328ec3(0x9a1)][_0x328ec3(0xa90)]('sgc-plot-scroll',_0x28573c);const _0x455770=_0x28573c&&_0x4e5af4[_0x328ec3(0xc06)]===_0x328ec3(0x7f6);_0x1f639e['classList']['toggle'](_0x328ec3(0xe1a),_0x455770),_0x1f639e['appendChild'](_0x37b6f9);if(_0x28573c){const _0xaf176e=this[_0x328ec3(0x1d2)],_0x95ccf9=_0xaf176e[_0x328ec3(0xc0e)];if(_0x95ccf9!=null)_0x1f639e[_0x328ec3(0x60c)]=_0x95ccf9;else _0x1f639e['scrollLeft']=_0x1f639e['scrollWidth'];if(this[_0x328ec3(0xba4)])_0x1f639e[_0x328ec3(0x1ea)]('scroll',this[_0x328ec3(0xba4)]);this[_0x328ec3(0xba4)]=()=>{const _0xb93755=_0x328ec3;_0xaf176e['_savedScrollLeft']=_0x1f639e[_0xb93755(0x60c)];if(_0xaf176e['_suppressScrollDispatch']){_0xaf176e['_suppressScrollDispatch']=![];return;}if(!_0xaf176e[_0xb93755(0xfe9)]?.[_0xb93755(0xcfc)])return;const _0x1b807e=_0x1f639e[_0xb93755(0xc29)]-_0x1f639e['clientWidth'];if(_0x1b807e<=0x0)return;const _0x380bd7=_0x1f639e[_0xb93755(0x60c)]/_0x1b807e;window['dispatchEvent'](new CustomEvent(_0xb93755(0xfa4),{'detail':{'ratio':_0x380bd7,'group':_0xaf176e[_0xb93755(0xfe9)][_0xb93755(0xe0f)]||null,'sourceId':_0xaf176e[_0xb93755(0x6e9)]}}));},_0x1f639e['addEventListener'](_0x328ec3(0xedb),this['_scrollHandler'],{'passive':!![]});if(this['_wheelHandler'])_0x1f639e['removeEventListener'](_0x328ec3(0x7f6),this[_0x328ec3(0xb8c)]);_0x455770&&(this[_0x328ec3(0xb8c)]=_0x36f4d9=>{const _0x2f0c29=_0x328ec3;if(_0x1f639e[_0x2f0c29(0xc29)]<=_0x1f639e[_0x2f0c29(0x810)])return;_0x36f4d9[_0x2f0c29(0xac3)](),_0x36f4d9[_0x2f0c29(0x7ba)](),_0x1f639e[_0x2f0c29(0x60c)]+=_0x36f4d9[_0x2f0c29(0x7f0)]!==0x0?_0x36f4d9[_0x2f0c29(0x7f0)]:_0x36f4d9['deltaX'];},_0x1f639e[_0x328ec3(0x171)](_0x328ec3(0x7f6),this[_0x328ec3(0xb8c)],{'passive':![]}));}else this['_scrollHandler']&&(_0x1f639e[_0x328ec3(0x1ea)](_0x328ec3(0xedb),this[_0x328ec3(0xba4)]),this[_0x328ec3(0xba4)]=null),this['_wheelHandler']&&(_0x1f639e[_0x328ec3(0x1ea)](_0x328ec3(0x7f6),this[_0x328ec3(0xb8c)]),this[_0x328ec3(0xb8c)]=null);if(_0x4e5af4[_0x328ec3(0xeed)]!==![]){let _0x1c95f5=_0x1f639e[_0x328ec3(0xee6)](_0x328ec3(0xc43));!_0x1c95f5&&(_0x1c95f5=document['createElement'](_0x328ec3(0x76f)),_0x1c95f5[_0x328ec3(0x400)]=_0x328ec3(0xfd6),_0x1f639e['appendChild'](_0x1c95f5));_0x1c95f5[_0x328ec3(0x944)]['display']=_0x328ec3(0x412),_0x1f639e['style'][_0x328ec3(0x405)]='relative';const _0x4ad692=[];_0x2b640a[_0x328ec3(0xd27)]((_0x58397b,_0x716f98)=>{const _0x4184a0=_0x328ec3,_0x5e541f=_0x58397b['entity']||{},_0x121392=_0x58397b[_0x4184a0(0x731)]||{},_0x5677b4=_0x5e541f[_0x4184a0(0xa7e)]||autoStateMap(_0x5e541f,_0x4354ef,_0x4e5af4?.[_0x4184a0(0x815)])||[],_0x454613=pickName(_0x5e541f[_0x4184a0(0xdee)],_0x121392[_0x4184a0(0x40b)],_0x121392)??_0x5e541f[_0x4184a0(0x974)]??'',_0x46e5ca=_0x58397b[_0x4184a0(0x93a)]||[];if(!_0x46e5ca[_0x4184a0(0xc02)])return;let _0x2a9288=_0x46e5ca[0x0]['t'],_0x5105b7=_0x46e5ca[0x0]['v'];for(let _0x46a20c=0x1;_0x46a20c<_0x46e5ca[_0x4184a0(0xc02)];_0x46a20c++){_0x46e5ca[_0x46a20c]['v']!==_0x5105b7&&(_0x5105b7!==null&&_0x5105b7!==undefined&&_0x4ad692['push']({'ri':_0x716f98,'name':_0x454613,'start':_0x2a9288,'end':_0x46e5ca[_0x46a20c]['t'],'val':_0x5105b7,'sMap':_0x5677b4,'ent':_0x5e541f}),_0x2a9288=_0x46e5ca[_0x46a20c]['t'],_0x5105b7=_0x46e5ca[_0x46a20c]['v']);}_0x5105b7!==null&&_0x5105b7!==undefined&&_0x4ad692[_0x4184a0(0xb31)]({'ri':_0x716f98,'name':_0x454613,'start':_0x2a9288,'end':bandTailEnd(_0x5e541f,_0x5c4967,_0x2a9288),'val':_0x5105b7,'sMap':_0x5677b4,'ent':_0x5e541f});});const _0x493e7e=_0x440189=>{const _0x1b8b54=_0x328ec3,_0x3be559=Math['round'](_0x440189/0x3e8);if(_0x3be559<0x3c)return _0x3be559+'s';const _0x470f2b=Math[_0x1b8b54(0xedc)](_0x3be559/0x3c);if(_0x470f2b<0x3c)return _0x470f2b+'m';const _0x2c4236=Math['floor'](_0x470f2b/0x3c),_0x5b9699=_0x470f2b%0x3c;if(_0x2c4236<0x18)return _0x5b9699?_0x2c4236+'h\x20'+_0x5b9699+'m':_0x2c4236+'h';const _0x576c1e=Math[_0x1b8b54(0xedc)](_0x2c4236/0x18),_0x478dae=_0x2c4236%0x18;return _0x478dae?_0x576c1e+'d\x20'+_0x478dae+'h':_0x576c1e+'d';};_0x37b6f9['addEventListener'](_0x328ec3(0xd96),_0x9047c=>{const _0x1ae946=_0x328ec3,_0x50f12d=_0x37b6f9[_0x1ae946(0x9cc)](),_0x5b8736=_0x52bd19,_0xb4a87b=_0x127279,_0x5b336e=_0x5b8736/_0x50f12d[_0x1ae946(0x581)],_0x90bec8=_0xb4a87b/_0x50f12d['height'],_0x3f4ba2=(_0x9047c[_0x1ae946(0x51e)]-_0x50f12d['left'])*_0x5b336e,_0x517632=(_0x9047c[_0x1ae946(0x6a3)]-_0x50f12d[_0x1ae946(0xf55)])*_0x90bec8;let _0x4a7645=null;for(const _0x544374 of _0x4ad692){const _0x14e2a7=Math[_0x1ae946(0x220)](_0x1d5ce7(_0x544374[_0x1ae946(0x4b0)]),_0x555e60),_0x16784b=Math[_0x1ae946(0xba1)](_0x1d5ce7(_0x544374[_0x1ae946(0x244)]),_0x52bd19-_0x190cce),_0x8a3e9d=_0x41deae+_0x544374['ri']*_0x17f61f+_0x17f61f/0x2,_0x116ab9=_0x8a3e9d-_0x1b8340/0x2;if(_0x3f4ba2>=_0x14e2a7&&_0x3f4ba2<=_0x16784b&&_0x517632>=_0x116ab9&&_0x517632<=_0x116ab9+_0x1b8340){_0x4a7645=_0x544374;break;}}if(!_0x4a7645){_0x1c95f5[_0x1ae946(0x944)][_0x1ae946(0x4c4)]='none';return;}const _0x7036e1=Math['round'](_0x4a7645[_0x1ae946(0xcd8)]),_0x512781=_0x4a7645[_0x1ae946(0x638)][_0x7036e1],_0x7ab411=_0x4a7645[_0x1ae946(0x856)]?.[_0x1ae946(0xa7e)]&&_0x512781?.[_0x1ae946(0xf1f)]||(_0x4354ef?.[_0x1ae946(0x4f9)]?.[_0x4a7645['ent']?.[_0x1ae946(0x974)]]?.['attributes']?.[_0x1ae946(0x398)]?String(_0x512781?.[_0x1ae946(0x2ea)]??_0x7036e1):localizeEntityState(_0x4354ef,_0x4354ef?.[_0x1ae946(0x4f9)]?.[_0x4a7645['ent']?.[_0x1ae946(0x974)]],_0x512781?.['value']??_0x7036e1)),_0x3c0f8f=stateSegmentColor(_0x512781,_0x4a7645[_0x1ae946(0x856)],_0x7036e1),_0x25a806=_0x4a7645['end']-_0x4a7645[_0x1ae946(0x4b0)],_0x3eed7e=_0x4a7645[_0x1ae946(0x856)]?.[_0x1ae946(0xed4)]!=null?(toNum(_0x4a7645['ent']['offset'])||0x0)*0x36ee80:0x0,_0x2f28af=formatDateTime(new Date(_0x4a7645[_0x1ae946(0x4b0)]-_0x3eed7e),_0x4e5af4,_0x4354ef),_0x98f4c2=formatDateTime(new Date(_0x4a7645[_0x1ae946(0x244)]-_0x3eed7e),_0x4e5af4,_0x4354ef),_0x2ef0e5=_0x1ae946(0xd70)+escapeHtml(_0x3c0f8f)+(_0x4a7645['ent']['show_color_dot']===![]?';visibility:hidden':'')+_0x1ae946(0x9d2);_0x1c95f5['innerHTML']=_0x1ae946(0xc41)+escapeHtml(_0x4a7645[_0x1ae946(0xdee)])+_0x1ae946(0x72b)+_0x2ef0e5+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22sgc-tt-name\x22>'+escapeHtml(_0x7ab411)+_0x1ae946(0xf7d)+escapeHtml(_0x493e7e(_0x25a806))+_0x1ae946(0xba0)+escapeHtml(_0x2f28af)+'\x20→\x20'+escapeHtml(_0x98f4c2)+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>',_0x1c95f5[_0x1ae946(0x944)][_0x1ae946(0x4c4)]='';const _0x5e58f2=_0x1f639e[_0x1ae946(0x9cc)]();let _0x3df03a=_0x9047c[_0x1ae946(0x51e)]-_0x5e58f2[_0x1ae946(0xaaf)]+0xc,_0x3c229f=_0x9047c[_0x1ae946(0x6a3)]-_0x5e58f2[_0x1ae946(0xf55)]+0xc;const _0x46d8b6=_0x1c95f5[_0x1ae946(0x9cc)]();if(_0x3df03a+_0x46d8b6[_0x1ae946(0x581)]>_0x5e58f2[_0x1ae946(0x581)])_0x3df03a=_0x3df03a-_0x46d8b6['width']-0x18;if(_0x3c229f+_0x46d8b6[_0x1ae946(0x43d)]>_0x5e58f2[_0x1ae946(0x43d)])_0x3c229f=_0x3c229f-_0x46d8b6['height']-0x18;_0x3df03a=Math[_0x1ae946(0x220)](0x0,_0x3df03a),_0x3c229f=Math['max'](0x0,_0x3c229f);const _0x93c040=_0x1f639e['scrollLeft']||0x0;_0x1c95f5['style'][_0x1ae946(0xaaf)]=_0x3df03a+_0x93c040+'px',_0x1c95f5['style'][_0x1ae946(0xf55)]=_0x3c229f+'px';}),_0x37b6f9[_0x328ec3(0x171)](_0x328ec3(0xcb5),()=>{const _0x545ccd=_0x328ec3;_0x1c95f5[_0x545ccd(0x944)][_0x545ccd(0x4c4)]=_0x545ccd(0x412);});}_0x37b6f9['style'][_0x328ec3(0x2a5)]='pointer',_0x37b6f9[_0x328ec3(0x171)](_0x328ec3(0xe5e),_0x2ab4f8=>{const _0x26d302=_0x328ec3,_0x263a6d=_0x37b6f9[_0x26d302(0x9cc)](),_0x4ec3db=_0x52bd19/_0x263a6d['width'],_0x7f265e=_0x127279/_0x263a6d[_0x26d302(0x43d)],_0x18768e=(_0x2ab4f8['clientX']-_0x263a6d[_0x26d302(0xaaf)])*_0x4ec3db,_0x495328=(_0x2ab4f8['clientY']-_0x263a6d[_0x26d302(0xf55)])*_0x7f265e;let _0x2693f1=null;for(let _0x2830b8=0x0;_0x2830b8<_0x2b640a[_0x26d302(0xc02)];_0x2830b8++){const _0x3d51ae=_0x41deae+_0x2830b8*_0x17f61f+_0x17f61f/0x2,_0x1fb6b3=_0x3d51ae-_0x1b8340/0x2;if(_0x495328>=_0x1fb6b3&&_0x495328<=_0x1fb6b3+_0x1b8340&&_0x18768e>=_0x555e60&&_0x18768e<=_0x52bd19-_0x190cce){_0x2693f1=_0x2b640a[_0x2830b8];break;}}if(!_0x2693f1)return;_0x2ab4f8[_0x26d302(0x7ba)](),this[_0x26d302(0x1d2)][_0x26d302(0x7f2)](_0x2693f1[_0x26d302(0x974)]);});}}class StubRenderer{constructor(_0x37472d,_0x440942){this['card']=_0x37472d,this['mode']=_0x440942;}['render'](_0x322782){const _0x156020=_0x46af5e;_0x322782[_0x156020(0x17c)]='\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-stub\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div>'+escapeHtml(cardT(this[_0x156020(0x1d2)]?.['_hass'],this[_0x156020(0x1d2)]?.[_0x156020(0xfe9)],_0x156020(0xc4d)))+':\x20\x22<b>'+escapeHtml(this[_0x156020(0x293)])+_0x156020(0xc46)+escapeHtml(cardT(this[_0x156020(0x1d2)]?.[_0x156020(0x1dc)],this['card']?.['_config'],_0x156020(0xa22)))+_0x156020(0x68b);}}const STYLES=_0x46af5e(0xb16);class StatisticsGraphChartCard extends HTMLElement{static get[_0x46af5e(0x533)](){return VERSION;}static get[_0x46af5e(0xc61)](){return{...CARD_DEFAULTS};}static get[_0x46af5e(0x2df)](){return[...PALETTE];}static[_0x46af5e(0x1e3)](){return{...ENTITY_DEFAULTS};}static[_0x46af5e(0x4ae)](){const _0x4f2e19=_0x46af5e;return{'chart_mode':_0x4f2e19(0x325),'hours_to_show':0x18,'show_legend':!![],'entities':[{'entity':_0x4f2e19(0x916)}]};}static async[_0x46af5e(0x970)](){return document['createElement']('statistics-graph-chart-card-editor');}constructor(){const _0x40b9d3=_0x46af5e;super(),this['attachShadow']({'mode':'open'});if(Object[_0x40b9d3(0x47e)][_0x40b9d3(0x77c)][_0x40b9d3(0xbf8)](this,'layout')){const _0x33474e=this['layout'];delete this[_0x40b9d3(0xf2a)],this[_0x40b9d3(0x281)]=_0x33474e==null||_0x33474e===''?undefined:String(_0x33474e);}this[_0x40b9d3(0xfe9)]=null,this[_0x40b9d3(0x1dc)]=null,this[_0x40b9d3(0xfef)]=[],this['_fetcher']=new DataFetcher(),this[_0x40b9d3(0x2d4)]=null,this[_0x40b9d3(0xbe0)]=null,this[_0x40b9d3(0xf89)]=null,this[_0x40b9d3(0xc60)]=[],this[_0x40b9d3(0x7a6)]=null,this[_0x40b9d3(0xf8a)]=![],this[_0x40b9d3(0x70a)]=!![],this['_instanceId']=Math[_0x40b9d3(0x616)]()[_0x40b9d3(0x8f1)](0x24)[_0x40b9d3(0x165)](0x2,0xb),this[_0x40b9d3(0xa64)]=null,this[_0x40b9d3(0x928)]=new Set(),this[_0x40b9d3(0xe8e)]=null,this['_autoHideForce']=null,this[_0x40b9d3(0x382)]=![],this['_resizeObserver']=null,this[_0x40b9d3(0x8ed)]=new Map(),this[_0x40b9d3(0xd9c)]=null,this[_0x40b9d3(0x1038)]=![],this['_liveBuffer']=Object[_0x40b9d3(0x977)](null),this[_0x40b9d3(0xab5)]=null,this[_0x40b9d3(0x782)]=Object[_0x40b9d3(0x977)](null),this['_slideTimer']=null,this[_0x40b9d3(0xf9a)]=![],this[_0x40b9d3(0x9ce)]=new Map(),this['_colorTemplateUnsubs']=[],this['_tplBoolCard']=null,this[_0x40b9d3(0x33c)]=[],this[_0x40b9d3(0x6af)]=![],this['_annotationRefs']=new Set(),this[_0x40b9d3(0xbf4)]=new Set(),this[_0x40b9d3(0x19b)]=new Set(),this['_boundRefIds']=new Set(),this['_enabledRefIds']=new Set(),this[_0x40b9d3(0x8b1)]=new Set(),this[_0x40b9d3(0x389)]=new Map(),this[_0x40b9d3(0x7c1)]=new Set(),this[_0x40b9d3(0xbfd)]=new Map(),this[_0x40b9d3(0x58c)]=Object[_0x40b9d3(0x977)](null),this[_0x40b9d3(0x30e)]=new Set(),this[_0x40b9d3(0xe12)]=Object['create'](null),this['_overrideHoursToShow']=null,this[_0x40b9d3(0x3eb)]=null,this[_0x40b9d3(0x4c5)]={},this[_0x40b9d3(0x8d5)]=null,this[_0x40b9d3(0x261)]=null,this[_0x40b9d3(0xfa3)]=null,this[_0x40b9d3(0x9cd)]=[],this[_0x40b9d3(0x38f)]=null,this[_0x40b9d3(0xb2d)]=null,this[_0x40b9d3(0x5c4)]=null,this['_hideSyncedTooltip']=null,this[_0x40b9d3(0x9dc)]=null,this[_0x40b9d3(0x231)]=null,this[_0x40b9d3(0xd15)]=null,this[_0x40b9d3(0x5b9)]=null,this[_0x40b9d3(0xb71)]=null,this[_0x40b9d3(0x100b)]=null,this[_0x40b9d3(0x4cc)]=null,this[_0x40b9d3(0x197)]=![],this['_overridePph']=null,this[_0x40b9d3(0x87d)]=null,this[_0x40b9d3(0x2a4)]=null,this[_0x40b9d3(0x5ff)]=null,this[_0x40b9d3(0xd79)]=null,this[_0x40b9d3(0x661)]=![],this[_0x40b9d3(0x8cd)]=_0x40b9d3(0xe7d),this[_0x40b9d3(0x478)]=0x0,this[_0x40b9d3(0x1ad)]=null,this[_0x40b9d3(0x48e)]=null,this[_0x40b9d3(0xc6d)]=![],this[_0x40b9d3(0xb6e)]=null,this['_dpCalYear']=null,this['_dpRangeStart']=null,this['_dpSynced']=![],this[_0x40b9d3(0x551)]=[],this[_0x40b9d3(0x401)]='',this[_0x40b9d3(0x4b5)]=null,this[_0x40b9d3(0xbe3)]=![],this['_wsGen']=0x0,this[_0x40b9d3(0x766)]=null,this[_0x40b9d3(0x55a)]=0x0,this[_0x40b9d3(0x558)]=Object['create'](null),this['_savedScrollLeft']=null,this[_0x40b9d3(0xf45)]='';}[_0x46af5e(0x227)](_0x2dba48){const _0x4d970c=_0x46af5e;if(!_0x2dba48)throw new Error('Invalid\x20configuration');const _0x5dc30a=_0x2dba48[_0x4d970c(0x815)]===_0x4d970c(0x8fe);if(!_0x5dc30a&&(!_0x2dba48[_0x4d970c(0xd97)]||!Array[_0x4d970c(0x902)](_0x2dba48['entities'])))throw new Error(_0x4d970c(0x526));const _0x368a99=this[_0x4d970c(0xfe9)],_0x42e979={...CARD_DEFAULTS,..._0x2dba48},_0xf17639=_0x42e979[_0x4d970c(0xae4)]!=null?String(_0x42e979[_0x4d970c(0xae4)])[_0x4d970c(0xa11)]():'';if(_0xf17639)for(const _0x436ffc of[_0x4d970c(0x175),_0x4d970c(0x545),_0x4d970c(0xc91),_0x4d970c(0xb37)]){if(!_0x42e979[_0x436ffc])_0x42e979[_0x436ffc]=_0xf17639;}if(_0x42e979[_0x4d970c(0x95c)]===_0x4d970c(0x23b))for(const _0x5d9964 of Object[_0x4d970c(0x3ab)](NATIVE_AXIS_STYLE)){if(_0x5d9964==='x_axis_date_color'&&_0x2dba48[_0x4d970c(0xdb6)])continue;const _0x5c36e5=_0x2dba48[_0x5d9964];if(_0x5c36e5==null||_0x5c36e5==='')_0x42e979[_0x5d9964]=NATIVE_AXIS_STYLE[_0x5d9964];}_0x5dc30a&&(_0x42e979[_0x4d970c(0xb1f)]=!![],_0x42e979[_0x4d970c(0xdf9)]=![],_0x42e979['interval_picker_group']=null,_0x42e979['energy_date_sync']=![],_0x42e979[_0x4d970c(0x4a1)]=![],_0x42e979[_0x4d970c(0xbca)]=![],_0x42e979[_0x4d970c(0xdd0)]=![],!(Array[_0x4d970c(0x902)](_0x42e979['date_picker_modes'])&&_0x42e979[_0x4d970c(0x464)][_0x4d970c(0xc02)])&&(_0x42e979[_0x4d970c(0x464)]=[...CONTROLLER_DATE_PICKER_MODES]));_0x42e979[_0x4d970c(0xd97)]=(_0x5dc30a?[]:_0x2dba48[_0x4d970c(0xd97)])['filter'](_0x2a6513=>!(_0x2a6513&&typeof _0x2a6513==='object'&&_0x2a6513['enabled']===![]))[_0x4d970c(0xb3f)]((_0x5991f9,_0x599839)=>{const _0x589bc0=_0x4d970c;if(!_0x5991f9[_0x589bc0(0x974)]&&!_0x5991f9[_0x589bc0(0xd53)])throw new Error('Entity\x20at\x20index\x20'+_0x599839+_0x589bc0(0xa8e));if(_0x5991f9['rise_fall_colors']?.[_0x589bc0(0x1007)]&&_0x5991f9[_0x589bc0(0xdd5)]?.[_0x589bc0(0x1007)])throw new Error(_0x589bc0(0xdcc)+(_0x5991f9[_0x589bc0(0x974)]||_0x5991f9[_0x589bc0(0xd53)]));const _0x1f8117={...ENTITY_DEFAULTS,..._0x5991f9};if(_0x1f8117[_0x589bc0(0xa1a)]===undefined)delete _0x1f8117[_0x589bc0(0xa1a)];if(!_0x5991f9['color'])_0x1f8117[_0x589bc0(0xd95)]=PALETTE[_0x599839%PALETTE[_0x589bc0(0xc02)]];return _0x5991f9[_0x589bc0(0xebb)]&&(_0x1f8117[COMPILED_TRANSFORM]=compileValueTransform(_0x5991f9[_0x589bc0(0xebb)])),_0x1f8117;});_0x42e979['show_date_picker']&&_0x42e979[_0x4d970c(0xbc9)]&&(_0x42e979[_0x4d970c(0xbc9)]=![]);{const _0x413f4c=_0x42e979[_0x4d970c(0xd97)][_0x4d970c(0xb3f)](_0x4238b2=>_0x4238b2['entity']||_0x4238b2[_0x4d970c(0xd53)]||'')[_0x4d970c(0x888)]('|');this[_0x4d970c(0x407)]!==undefined&&this[_0x4d970c(0x407)]!==_0x413f4c&&this[_0x4d970c(0x4c5)]&&Object[_0x4d970c(0x3ab)](this['_overrideAttributes'])['length']&&(this[_0x4d970c(0x4c5)]={}),this[_0x4d970c(0x407)]=_0x413f4c;}{if(!(this[_0x4d970c(0xc2e)]instanceof Set))this[_0x4d970c(0xc2e)]=new Set();const _0x5be2ea=!!_0x368a99?.['auto_hide_entities'],_0xd949e4=!!_0x42e979[_0x4d970c(0x864)],_0x5a6657=_0x368a99?.[_0x4d970c(0xd97)]||[],_0x3b5058=_0x5be2ea!==_0xd949e4;_0x42e979[_0x4d970c(0xd97)][_0x4d970c(0xd27)]((_0x4bf0b6,_0x1bf74d)=>{const _0xced86e=_0x4d970c,_0x22aca2=_0x5a6657[_0x1bf74d]?.[_0xced86e(0xa1a)];(_0x3b5058||_0x22aca2!==_0x4bf0b6[_0xced86e(0xa1a)])&&this[_0xced86e(0xc2e)]['add']((_0x4bf0b6[_0xced86e(0x974)]||_0x4bf0b6[_0xced86e(0xd53)])+'__'+_0x1bf74d);});}{const _0x47259e=compileLabelFormat(_0x42e979[_0x4d970c(0xe9c)],_0x42e979[_0x4d970c(0x885)]),_0xf38940=compileLabelFormat(_0x42e979['y2_axis_format'],_0x42e979[_0x4d970c(0x885)]);if(_0x47259e||_0xf38940)for(const _0x2d3343 of _0x42e979[_0x4d970c(0xd97)]){Object[_0x4d970c(0x712)](_0x2d3343,_0x4d970c(0x786),{'value':_0x2d3343[_0x4d970c(0x8cc)]===_0x4d970c(0xbec)?_0xf38940:_0x47259e,'enumerable':![],'writable':!![],'configurable':!![]});}}this[_0x4d970c(0xf48)]=null;for(const _0x45b834 of TEMPLATABLE_BOOL_CARD_KEYS){if(isTemplateString(_0x42e979[_0x45b834])){if(!this['_tplBoolCard'])this[_0x4d970c(0xf48)]=Object[_0x4d970c(0x977)](null);this[_0x4d970c(0xf48)][_0x45b834]=_0x42e979[_0x45b834],_0x42e979[_0x45b834]=CARD_DEFAULTS[_0x45b834];}}this[_0x4d970c(0x33c)]=_0x42e979['entities'][_0x4d970c(0xb3f)](_0x33cfa5=>{const _0x2373a0=_0x4d970c;let _0x5817d9=null;for(const _0x355b9e of TEMPLATABLE_BOOL_ENTITY_KEYS){if(isTemplateString(_0x33cfa5[_0x355b9e])){if(!_0x5817d9)_0x5817d9=Object[_0x2373a0(0x977)](null);_0x5817d9[_0x355b9e]=_0x33cfa5[_0x355b9e],_0x33cfa5[_0x355b9e]=ENTITY_DEFAULTS[_0x355b9e];}}return _0x5817d9;}),this[_0x4d970c(0xfe9)]=_0x42e979,this[_0x4d970c(0xfef)]=_0x42e979[_0x4d970c(0xd97)],this[_0x4d970c(0xc69)](),this[_0x4d970c(0x401)]='',this[_0x4d970c(0xc0e)]=null,this[_0x4d970c(0xf45)]=this['_computeInstanceKey'](_0x42e979),this[_0x4d970c(0x992)]();if(_0x42e979[_0x4d970c(0xdf9)]||_0x42e979['interval_picker_group']){try{const _0xbebb5b=Array['isArray'](_0x42e979[_0x4d970c(0x561)])&&_0x42e979[_0x4d970c(0x561)]['length']?_0x42e979[_0x4d970c(0x561)][_0x4d970c(0x888)](','):'',_0x215f6f=this[_0x4d970c(0x5f8)]('sgc-hours:',[toNum(_0x42e979['hours_to_show'])??null,_0xbebb5b]),_0x1b06b9=JSON['parse'](_0x215f6f||_0x4d970c(0xbe9));_0x1b06b9&&isNum(toNum(_0x1b06b9[_0x4d970c(0x560)]))&&(this[_0x4d970c(0xe51)]=toNum(_0x1b06b9[_0x4d970c(0x560)]),this[_0x4d970c(0x3eb)]=_0x1b06b9[_0x4d970c(0xf1f)]||null);}catch{}const _0x2ea6b5=intervalHoursForLabel(_0x42e979[_0x4d970c(0xa2b)]);isNum(_0x2ea6b5)&&(this[_0x4d970c(0xe51)]=_0x2ea6b5,this[_0x4d970c(0x3eb)]=String(_0x42e979[_0x4d970c(0xa2b)])[_0x4d970c(0xa11)]());}else this[_0x4d970c(0xe51)]=null,this[_0x4d970c(0x3eb)]=null,lsDel(_0x4d970c(0xa18)+this[_0x4d970c(0xf45)]),lsDel(this[_0x4d970c(0x444)](_0x42e979));this[_0x4d970c(0x2a4)]={'pph':_0x42e979[_0x4d970c(0x71e)],'gby':_0x42e979[_0x4d970c(0x3b2)],'autoScale':!!_0x42e979[_0x4d970c(0x323)]};if(_0x42e979[_0x4d970c(0x392)]||_0x42e979[_0x4d970c(0xc91)]){const _0x31e7a9=toNum(this[_0x4d970c(0x5f8)](_0x4d970c(0x657),[toNum(_0x42e979[_0x4d970c(0x71e)])??null,!!_0x42e979[_0x4d970c(0x323)]]));if(isNum(_0x31e7a9))this[_0x4d970c(0x64e)]=_0x31e7a9;}else this[_0x4d970c(0x64e)]=null,lsDel(_0x4d970c(0x657)+this[_0x4d970c(0xf45)]),lsDel(this[_0x4d970c(0xf73)](_0x42e979));if(_0x42e979[_0x4d970c(0xb65)]||_0x42e979[_0x4d970c(0xb37)]){const _0x408596=this['_readPickerState'](_0x4d970c(0x86e),[_0x42e979[_0x4d970c(0x3b2)]??null,!!_0x42e979[_0x4d970c(0x323)]]);if(_0x408596)this['_overrideGroupBy']=_0x408596;}else this['_overrideGroupBy']=null,lsDel('sgc-qgby:'+this[_0x4d970c(0xf45)]),lsDel(this['_gbyStoreKey'](_0x42e979));this[_0x4d970c(0x3f6)](_0x42e979);if(_0x42e979[_0x4d970c(0xb1f)]||_0x42e979['date_picker_group']){const _0x322c78=_0x42e979[_0x4d970c(0xa04)],_0x134e7c=_0x322c78&&(DATE_PICKER_VALID_MODES[_0x4d970c(0xf06)](_0x322c78)||_0x322c78 in DATE_PICKER_RELATIVE_MODES);let _0xa7dd95=![];if(_0x134e7c)this[_0x4d970c(0x8cd)]=_0x322c78,this[_0x4d970c(0x478)]=0x0;else{try{const _0x4fcc5e=JSON['parse'](this[_0x4d970c(0x5f8)](_0x4d970c(0x9a5),[Array[_0x4d970c(0x902)](_0x42e979[_0x4d970c(0x464)])?_0x42e979[_0x4d970c(0x464)][_0x4d970c(0x888)](','):null,_0x42e979[_0x4d970c(0xa04)]??null,toNum(_0x42e979[_0x4d970c(0xc7d)])??null])||'null');if(_0x4fcc5e){this[_0x4d970c(0x8cd)]=_0x4fcc5e[_0x4d970c(0x293)]||_0x4d970c(0xe7d),this[_0x4d970c(0x478)]=_0x4fcc5e['offset']||0x0;this[_0x4d970c(0x8cd)]!==_0x4d970c(0x361)&&!DATE_PICKER_VALID_MODES[_0x4d970c(0xf06)](this[_0x4d970c(0x8cd)])&&!(this[_0x4d970c(0x8cd)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x4d970c(0x8cd)]=_0x4d970c(0xe7d),this[_0x4d970c(0x478)]=0x0);if(_0x4fcc5e['customStart'])this[_0x4d970c(0x1ad)]=new Date(_0x4fcc5e[_0x4d970c(0x17f)]);if(_0x4fcc5e[_0x4d970c(0x9e9)])this[_0x4d970c(0x48e)]=new Date(_0x4fcc5e[_0x4d970c(0x9e9)]);_0xa7dd95=!![];}}catch{}!_0xa7dd95&&_0x5dc30a&&Array[_0x4d970c(0x902)](_0x42e979[_0x4d970c(0x464)])&&_0x42e979['date_picker_modes'][_0x4d970c(0xc02)]&&(this[_0x4d970c(0x8cd)]=_0x42e979[_0x4d970c(0x464)][0x0],this[_0x4d970c(0x478)]=0x0);}this['_dpOwnState']=_0xa7dd95||!!_0x134e7c;const _0x6f25f1=_0x42e979[_0x4d970c(0x464)];Array['isArray'](_0x6f25f1)&&_0x6f25f1[_0x4d970c(0xc02)]&&!_0x6f25f1[_0x4d970c(0xf06)](this[_0x4d970c(0x8cd)])&&this[_0x4d970c(0x8cd)]!=='custom'&&!(_0x134e7c&&this[_0x4d970c(0x8cd)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x4d970c(0x8cd)]=_0x6f25f1[0x0],this[_0x4d970c(0x478)]=0x0);if(this[_0x4d970c(0x8cd)]!=='custom'&&(this[_0x4d970c(0x478)]||0x0)>0x0)this[_0x4d970c(0x478)]=0x0;!_0x42e979[_0x4d970c(0xb1f)]&&_0x42e979[_0x4d970c(0x175)]&&(_0xa7dd95||_0x134e7c)&&(this[_0x4d970c(0x68c)]=!![]);}else this[_0x4d970c(0x8cd)]=_0x4d970c(0xe7d),this['_dpOffset']=0x0,this[_0x4d970c(0x1ad)]=null,this[_0x4d970c(0x48e)]=null,this[_0x4d970c(0x68c)]=![],lsDel('sgc-dp:'+this[_0x4d970c(0xf45)]),lsDel(this[_0x4d970c(0x6bb)](_0x42e979));this[_0x4d970c(0x1038)]=this[_0x4d970c(0xfef)][_0x4d970c(0x42a)](_0x3e95d8=>_0x3e95d8[_0x4d970c(0x974)]&&!_0x3e95d8[_0x4d970c(0xd53)]),this[_0x4d970c(0xe40)]=this[_0x4d970c(0x762)](_0x42e979['annotations']),this[_0x4d970c(0xbf4)]=this[_0x4d970c(0xb77)](this[_0x4d970c(0xfef)]),this['_thrColorRefs']=this[_0x4d970c(0xcbe)](this[_0x4d970c(0xfef)]),this[_0x4d970c(0x8f7)]=collectBoundRefIds(_0x42e979,this[_0x4d970c(0xfef)]),this['_enabledRefIds']=collectEnabledRefIds(this[_0x4d970c(0xfef)]),this[_0x4d970c(0x8b1)]=new Set(this[_0x4d970c(0xfef)][_0x4d970c(0xb3f)](_0x18a897=>_0x18a897?.['price_entity'])[_0x4d970c(0x919)](Boolean)),this[_0x4d970c(0x7c1)]=new Set(this[_0x4d970c(0xfef)][_0x4d970c(0xb3f)](_0x5d9beb=>_0x5d9beb?.[_0x4d970c(0x455)])[_0x4d970c(0x919)](Boolean));if(!this[_0x4d970c(0xa7f)])for(const _0x405782 of this[_0x4d970c(0xfef)]){if(_0x405782?.['data_value_expression']&&!_0x405782['data_attribute']){this[_0x4d970c(0xa7f)]=!![],console['warn'](_0x4d970c(0xdf8)+(_0x405782[_0x4d970c(0x974)]||_0x405782[_0x4d970c(0xd53)])+_0x4d970c(0x25a));break;}}(this['_wsUnsub']||this[_0x4d970c(0xbe3)])&&this[_0x4d970c(0xeba)]()!==this['_wsTrackedKey']&&this[_0x4d970c(0x1006)]();this[_0x4d970c(0xf9a)]=![],this['_liveBuffer']=Object['create'](null),this[_0x4d970c(0x782)]=Object[_0x4d970c(0x977)](null),this[_0x4d970c(0xe12)]=Object[_0x4d970c(0x977)](null),this['_prevRefStamps']=Object[_0x4d970c(0x977)](null),this[_0x4d970c(0x30e)][_0x4d970c(0xb69)](),this[_0x4d970c(0x4db)]['_debug']=this[_0x4d970c(0xfe9)]['debug_fetch']===!![],this['_setupTimers'](),this['_restartEnergyDateSyncIfNeeded'](_0x368a99),this[_0x4d970c(0x3ec)]();if(this[_0x4d970c(0x1dc)])this[_0x4d970c(0x9c5)]();}['_collectDataVarIds'](_0x1b54d8){const _0x51d86a=_0x46af5e,_0x2fe28e=new Set();for(const _0x400a26 of _0x1b54d8||[]){if(!_0x400a26||!_0x400a26[_0x51d86a(0x102c)]||!_0x400a26[_0x51d86a(0x3f2)])continue;const _0x5aa60a=_0x400a26[_0x51d86a(0x8d0)];if(!_0x5aa60a||typeof _0x5aa60a!==_0x51d86a(0xc18))continue;for(const _0x1f9719 of Object[_0x51d86a(0x202)](_0x5aa60a)){if(typeof _0x1f9719==='string'&&_0x1f9719)_0x2fe28e['add'](_0x1f9719);}}return _0x2fe28e;}[_0x46af5e(0xcbe)](_0x1a2b3a){const _0x17a887=_0x46af5e,_0x1b3400=new Set();for(const _0x5798fe of _0x1a2b3a||[]){const _0x94a0e1=_0x5798fe?.[_0x17a887(0xdd5)]?.[_0x17a887(0x202)];if(!Array[_0x17a887(0x902)](_0x94a0e1))continue;for(const _0x3536d3 of _0x94a0e1){for(const _0x1e57da of[_0x3536d3?.[_0x17a887(0x2ea)],_0x3536d3?.[_0x17a887(0xd95)]]){if(typeof _0x1e57da===_0x17a887(0xade)){const _0x1cc8bb=_0x1e57da[_0x17a887(0x727)](/^([a-z_]+\.[a-z0-9_]+)/i);if(_0x1cc8bb)_0x1b3400[_0x17a887(0x982)](_0x1cc8bb[0x1]);}}}}return _0x1b3400;}[_0x46af5e(0x3b4)](_0x21ca31){const _0x3fa694=_0x46af5e;return typeof _0x21ca31===_0x3fa694(0xade)&&/^[a-z_]+\.[a-z0-9_]+/i[_0x3fa694(0x920)](_0x21ca31);}[_0x46af5e(0xdef)](_0x134fc4){const _0x2aa103=_0x46af5e;if(typeof _0x134fc4!==_0x2aa103(0xade))return _0x134fc4;const _0x1a40a3=_0x134fc4[_0x2aa103(0x727)](/^([a-z_]+\.[a-z0-9_]+)(?:\.(.+))?$/i);if(!_0x1a40a3)return _0x134fc4;const _0x5a66f9=this['_hass']?.[_0x2aa103(0x4f9)]?.[_0x1a40a3[0x1]];if(!_0x5a66f9)return _0x134fc4;const _0x2feb6d=_0x1a40a3[0x2]?getAttributePath(_0x5a66f9[_0x2aa103(0x467)],_0x1a40a3[0x2]):_0x5a66f9['state'];return _0x2feb6d===null||_0x2feb6d===undefined||_0x2feb6d===''?_0x134fc4:_0x2feb6d;}['_thrVals'](_0x53cce6){const _0x4d49d5=_0x46af5e,_0x24fe7c=_0x53cce6?.[_0x4d49d5(0xdd5)]?.[_0x4d49d5(0x202)];if(!Array[_0x4d49d5(0x902)](_0x24fe7c))return _0x24fe7c;if(!_0x24fe7c[_0x4d49d5(0x42a)](_0x4a033c=>this[_0x4d49d5(0x3b4)](_0x4a033c?.['value'])||this[_0x4d49d5(0x3b4)](_0x4a033c?.['color'])))return _0x24fe7c;return _0x24fe7c['map'](_0x4abd9f=>({..._0x4abd9f,'value':this[_0x4d49d5(0xdef)](_0x4abd9f?.[_0x4d49d5(0x2ea)]),'color':this[_0x4d49d5(0xdef)](_0x4abd9f?.[_0x4d49d5(0xd95)])}));}[_0x46af5e(0x762)](_0x3e0f82){const _0x40359d=_0x46af5e,_0x19100d=new Set();if(!Array[_0x40359d(0x902)](_0x3e0f82))return _0x19100d;for(const _0x173850 of _0x3e0f82){if(!_0x173850||typeof _0x173850!==_0x40359d(0xc18))continue;if(_0x173850[_0x40359d(0xefa)]===_0x40359d(0xe42)){const _0x34547e=extractAnnotationRefEntityId(_0x173850[_0x40359d(0x2ea)]);if(_0x34547e)_0x19100d[_0x40359d(0x982)](_0x34547e);}else{if(_0x173850[_0x40359d(0xefa)]===_0x40359d(0xed2)){const _0x47d3c2=extractAnnotationRefEntityId(_0x173850[_0x40359d(0x2ea)]??_0x173850['from']),_0x419443=extractAnnotationRefEntityId(_0x173850['value_end']??_0x173850['to']);if(_0x47d3c2)_0x19100d['add'](_0x47d3c2);if(_0x419443)_0x19100d[_0x40359d(0x982)](_0x419443);}else(_0x173850[_0x40359d(0xefa)]===_0x40359d(0x536)||_0x173850['type']===_0x40359d(0x7db))&&_0x173850[_0x40359d(0x974)]&&_0x19100d['add'](_0x173850['entity']);}}return _0x19100d;}[_0x46af5e(0xe35)](){const _0x30286f=_0x46af5e,_0x4c0358=this[_0x30286f(0xfe9)]?.[_0x30286f(0x163)];if(!Array[_0x30286f(0x902)](_0x4c0358)||!_0x4c0358[_0x30286f(0xc02)])return[];const _0x379a29=_0x27574=>{const _0x27b618=_0x30286f;if(typeof _0x27574===_0x27b618(0xade)&&_0x27574[_0x27b618(0xf06)]('{{'))return this['_resolvedTemplateColors'][_0x27b618(0xc3f)](_0x27574)||_0x27574;return _0x27574;},_0x38e422=[];for(const _0x3ca5ab of _0x4c0358){if(!_0x3ca5ab||typeof _0x3ca5ab!==_0x30286f(0xc18))continue;const _0x5667cd={..._0x3ca5ab};for(const _0x415216 of[_0x30286f(0x4b0),_0x30286f(0x244),_0x30286f(0xfe2),_0x30286f(0x2ea),_0x30286f(0xee4),'label']){typeof _0x5667cd[_0x415216]===_0x30286f(0xade)&&_0x5667cd[_0x415216][_0x30286f(0xf06)]('{{')&&(_0x5667cd[_0x415216]=_0x379a29(_0x5667cd[_0x415216]));}if(_0x5667cd[_0x30286f(0xefa)]===_0x30286f(0xe42)||_0x5667cd[_0x30286f(0xefa)]==='band'){_0x38e422[_0x30286f(0xb31)](_0x5667cd);continue;}(_0x5667cd['type']===_0x30286f(0x536)||_0x5667cd[_0x30286f(0xefa)]==='span')&&!_0x5667cd[_0x30286f(0x974)]&&_0x38e422[_0x30286f(0xb31)](_0x5667cd);}return this['_resolvedEntityAnnotations']?.[_0x30286f(0xc02)]&&_0x38e422[_0x30286f(0xb31)](...this[_0x30286f(0x551)]),_0x38e422;}async[_0x46af5e(0x394)](_0x4edd84,_0xf25690){const _0x50881f=_0x46af5e,_0x2ba9b4=this[_0x50881f(0xfe9)]?.[_0x50881f(0x163)];if(!Array[_0x50881f(0x902)](_0x2ba9b4)||!_0x2ba9b4[_0x50881f(0xc02)])return[];const _0x4e1722=_0x495443=>!!_0x495443&&typeof _0x495443===_0x50881f(0xc18)&&(_0x495443['type']===_0x50881f(0x536)||_0x495443[_0x50881f(0xefa)]===_0x50881f(0x7db))&&!!_0x495443[_0x50881f(0x974)],_0x456261=_0x4db228=>{const _0x5bbfda=_0x50881f,_0xb7e73a=_0x4db228[_0x5bbfda(0xf0f)];if(_0xb7e73a===null||_0xb7e73a===undefined||typeof _0xb7e73a==='object')return null;const _0x23dbf7=String(_0xb7e73a)[_0x5bbfda(0xa11)]();return _0x23dbf7?_0x23dbf7:null;},_0x55e247=[],_0x2414e1=[],_0x4e114e=new Set();for(const _0x3dab44 of _0x2ba9b4){if(!_0x4e1722(_0x3dab44))continue;const _0x28b093=_0x456261(_0x3dab44);if(_0x28b093){const _0x573e65=_0x2414e1[_0x50881f(0x90c)](_0x1f811b=>_0x1f811b['id']===_0x3dab44[_0x50881f(0x974)]);if(!_0x573e65)_0x2414e1['push']({'id':_0x3dab44[_0x50881f(0x974)],'attribute':_0x28b093,'attrs':[_0x28b093]});else{if(!_0x573e65['attrs'][_0x50881f(0xf06)](_0x28b093))_0x573e65[_0x50881f(0x76e)]['push'](_0x28b093);}}else{if(_0x4e114e[_0x50881f(0x101d)](_0x3dab44[_0x50881f(0x974)]))continue;_0x4e114e[_0x50881f(0x982)](_0x3dab44['entity']),_0x55e247[_0x50881f(0xb31)]({'id':_0x3dab44[_0x50881f(0x974)]});}}if(!_0x55e247[_0x50881f(0xc02)]&&!_0x2414e1[_0x50881f(0xc02)])return[];let _0x5853fe={},_0x520d70={};try{const _0x4753cf=this[_0x50881f(0xfe9)][_0x50881f(0x74a)]!==![];[_0x5853fe,_0x520d70]=await Promise['all']([_0x55e247['length']?this[_0x50881f(0x4db)][_0x50881f(0xba9)](this['_hass'],_0x55e247,_0x4edd84,_0xf25690,_0x4753cf):{},_0x2414e1[_0x50881f(0xc02)]?this[_0x50881f(0x4db)][_0x50881f(0xba9)](this['_hass'],_0x2414e1,_0x4edd84,_0xf25690,_0x4753cf):{}]);}catch(_0x10e539){return console[_0x50881f(0x9a7)](_0x50881f(0xb13),_0x10e539),[];}const _0x561df6=_0xf25690[_0x50881f(0x1028)](),_0x1c0318=[];for(const _0x3b5ac2 of _0x2ba9b4){if(!_0x4e1722(_0x3b5ac2))continue;const _0x3d08eb=_0x456261(_0x3b5ac2),_0x253f37=(_0x3d08eb?_0x520d70:_0x5853fe)[_0x3b5ac2['entity']];if(!Array['isArray'](_0x253f37)||!_0x253f37[_0x50881f(0xc02)])continue;const _0x257287=_0x3b5ac2[_0x50881f(0x5f5)],_0x1865de=_0x3d08eb?_0x339d54=>annotationValueMatches(getAttributePath(_0x339d54[_0x50881f(0x467)],_0x3d08eb),_0x257287):_0x4dc042=>annotationValueMatches(_0x4dc042[_0x50881f(0x5f5)],_0x257287);if(_0x3b5ac2[_0x50881f(0xefa)]===_0x50881f(0x536)){_0x1865de(_0x253f37[0x0])&&_0x1c0318[_0x50881f(0xb31)]({..._0x3b5ac2,'type':_0x50881f(0x536),'time':_0x253f37[0x0]['t']});for(let _0xde289f=0x1;_0xde289f<_0x253f37[_0x50881f(0xc02)];_0xde289f++){_0x1865de(_0x253f37[_0xde289f])&&!_0x1865de(_0x253f37[_0xde289f-0x1])&&_0x1c0318[_0x50881f(0xb31)]({..._0x3b5ac2,'type':_0x50881f(0x536),'time':_0x253f37[_0xde289f]['t']});}}else{let _0x5a74f1=null;if(_0x1865de(_0x253f37[0x0]))_0x5a74f1=_0x253f37[0x0]['t'];for(let _0x4a208f=0x1;_0x4a208f<_0x253f37['length'];_0x4a208f++){const _0x484b09=_0x1865de(_0x253f37[_0x4a208f]);if(_0x484b09&&_0x5a74f1===null)_0x5a74f1=_0x253f37[_0x4a208f]['t'];else!_0x484b09&&_0x5a74f1!==null&&(_0x1c0318['push']({..._0x3b5ac2,'type':_0x50881f(0x7db),'start':_0x5a74f1,'end':_0x253f37[_0x4a208f]['t']}),_0x5a74f1=null);}_0x5a74f1!==null&&_0x1c0318[_0x50881f(0xb31)]({..._0x3b5ac2,'type':_0x50881f(0x7db),'start':_0x5a74f1,'end':bandTailEnd({},_0x561df6,_0x5a74f1)});}}return _0x1c0318;}[_0x46af5e(0x787)](_0x352925){const _0xe40694=_0x46af5e;if(!_0x352925)return null;const _0x498cc3=Array['isArray'](_0x352925)?_0x352925:[_0x352925],_0x5740e6=[];for(const _0x2535a2 of _0x498cc3){const _0x1f9861=this[_0xe40694(0x6e4)](_0x2535a2,_0x5740e6[_0xe40694(0xc02)]);if(_0x1f9861)_0x5740e6['push'](_0x1f9861);}return _0x5740e6[_0xe40694(0xc02)]?_0x5740e6:null;}[_0x46af5e(0x6e4)](_0x7b6463,_0x42ad63=0x0){const _0x233026=_0x46af5e;if(!_0x7b6463)return null;let _0x33a45a=_0x7b6463;if(_0x7b6463===!![])_0x33a45a={};else{if(typeof _0x7b6463===_0x233026(0xade)||typeof _0x7b6463===_0x233026(0x327))_0x33a45a={'period':_0x7b6463};}if(typeof _0x33a45a!=='object')return null;const _0x44625d=toNum(_0x33a45a[_0x233026(0x7a2)]),_0x34f2d4=toNum(_0x33a45a['line_width']),_0x1fa358=toNum(_0x33a45a[_0x233026(0xf4d)]);return{'period':_0x33a45a[_0x233026(0xe4c)]??_0x233026(0x612),'layout':_0x33a45a['layout']===_0x233026(0xe9b)?_0x233026(0xe9b):'overlay','periods_back':isNum(_0x1fa358)&&_0x1fa358>=0x1?Math['min'](0x208,Math[_0x233026(0xedc)](_0x1fa358)):0x1,'hide_on_load':_0x33a45a['hide_on_load']===!![],'color':_0x33a45a['color']??null,'opacity':isNum(_0x44625d)?clamp(_0x44625d,0.05,0x1):Math[_0x233026(0x220)](0.15,0.45*Math['pow'](0.66,_0x42ad63)),'line_style':_0x33a45a[_0x233026(0x3da)]||_0x233026(0x2b5),'line_width':isNum(_0x34f2d4)&&_0x34f2d4>0x0?_0x34f2d4:null,'show_fill':_0x33a45a[_0x233026(0xad9)]===!![],'show_points':_0x33a45a[_0x233026(0x3ff)]===!![],'show_average':_0x33a45a['show_average']===!![],'show_in_legend':_0x33a45a[_0x233026(0xce4)]===undefined?null:!!_0x33a45a[_0x233026(0xce4)],'show_delta':_0x33a45a[_0x233026(0xc8a)]!==![]};}[_0x46af5e(0x992)](){const _0x738bd7=_0x46af5e,_0x526971=this[_0x738bd7(0xfe9)][_0x738bd7(0x815)]||_0x738bd7(0x325);if(_0x526971!=='timeline'&&_0x526971!==_0x738bd7(0xb4b))return;if(this['_config'][_0x738bd7(0x4a1)])return;const _0x2bd8b2=this[_0x738bd7(0xfef)][_0x738bd7(0xc02)];for(let _0x22dd7c=0x0;_0x22dd7c<_0x2bd8b2;_0x22dd7c++){const _0x36e00b=this[_0x738bd7(0xfef)][_0x22dd7c];if(!_0x36e00b||_0x36e00b['_compareOf']!=null)continue;if((_0x36e00b[_0x738bd7(0xc3c)]||_0x36e00b[_0x738bd7(0xefa)])==='candlestick')continue;if(_0x36e00b[_0x738bd7(0xbef)]||_0x36e00b[_0x738bd7(0x102c)])continue;const _0x4d0ce7=this[_0x738bd7(0x787)](_0x36e00b['compare']);if(!_0x4d0ce7)continue;for(const _0x5b8c83 of _0x4d0ce7){const _0x5c5d9a={..._0x36e00b};_0x5c5d9a['_compareOf']=_0x22dd7c,_0x5c5d9a[_0x738bd7(0xbf6)]=_0x5b8c83,_0x5c5d9a[_0x738bd7(0xc80)]=null,_0x5c5d9a[_0x738bd7(0xdee)]=null,delete _0x5c5d9a[_0x738bd7(0xce6)];if(_0x5b8c83['color'])_0x5c5d9a[_0x738bd7(0xd95)]=_0x5b8c83['color'];_0x5c5d9a[_0x738bd7(0x3da)]=_0x5b8c83[_0x738bd7(0x3da)];if(_0x5b8c83[_0x738bd7(0x4e0)]!=null)_0x5c5d9a[_0x738bd7(0x4e0)]=_0x5b8c83[_0x738bd7(0x4e0)];_0x5c5d9a['show_fill']=_0x5b8c83[_0x738bd7(0xad9)],_0x5c5d9a['show_points']=_0x5b8c83[_0x738bd7(0x3ff)],_0x5c5d9a[_0x738bd7(0xce4)]=_0x5b8c83['show_in_legend']==null?!!_0x36e00b[_0x738bd7(0xce4)]:_0x5b8c83[_0x738bd7(0xce4)],_0x5c5d9a[_0x738bd7(0x806)]=![],_0x5c5d9a[_0x738bd7(0x199)]=_0x738bd7(0xe19),_0x5c5d9a[_0x738bd7(0xfe4)]=![],_0x5c5d9a[_0x738bd7(0xa72)]=_0x5b8c83[_0x738bd7(0xa72)]===!![],_0x5c5d9a[_0x738bd7(0xd0a)]=![],_0x5c5d9a[_0x738bd7(0xdf3)]=null;{const _0x1abe6c=_0x36e00b['stack_group']!=null&&_0x36e00b[_0x738bd7(0xe81)]!==''?String(_0x36e00b[_0x738bd7(0xe81)]):this['_config'][_0x738bd7(0x18a)]?_0x738bd7(0x840):null;_0x5c5d9a[_0x738bd7(0xe81)]=_0x1abe6c==null?null:_0x1abe6c+_0x738bd7(0xb84)+(_0x5b8c83[_0x738bd7(0xe4c)]??_0x738bd7(0x612))+'x'+(_0x5b8c83[_0x738bd7(0xf4d)]??0x1);}_0x5c5d9a[_0x738bd7(0x210)]=null;if(_0x5b8c83['hide_on_load'])_0x5c5d9a[_0x738bd7(0xa1a)]=!![];_0x5c5d9a['z_index']=(toNum(_0x36e00b[_0x738bd7(0x8a5)])||0x0)-0x1,_0x5c5d9a[_0x738bd7(0x4ff)]=0x0;const _0x4d4b96=Object['getOwnPropertyDescriptor'](_0x36e00b,'__sgcAxisFmt');if(_0x4d4b96)Object['defineProperty'](_0x5c5d9a,_0x738bd7(0x786),_0x4d4b96);this[_0x738bd7(0xfef)][_0x738bd7(0xb31)](_0x5c5d9a);}}}[_0x46af5e(0x6b4)](_0x3724e0){const _0x50c087=_0x46af5e;if(!this[_0x50c087(0xd15)]||!this[_0x50c087(0x5b9)])return null;const _0x2c3ae9=_0x3c6e59=>{const _0x33db0b=_0x50c087,_0x32dda0=tzParts(_0x3c6e59,_0x3724e0),_0x34013e=zonedWallToMs(_0x32dda0['y'],_0x32dda0['mo'],_0x32dda0['d'],0x0,0x0,0x0,_0x3724e0),_0x56a60a=zonedWallToMs(_0x32dda0['y'],_0x32dda0['mo'],_0x32dda0['d']+0x1,0x0,0x0,0x0,_0x3724e0);if(Math[_0x33db0b(0x1ae)](_0x3c6e59-_0x34013e)<=0x1d4c0)return _0x34013e;if(Math['abs'](_0x3c6e59-_0x56a60a)<=0x1d4c0)return _0x56a60a;return null;},_0x19d418=_0x2c3ae9(this[_0x50c087(0xd15)][_0x50c087(0x1028)]()),_0x20350f=_0x2c3ae9(this[_0x50c087(0x5b9)][_0x50c087(0x1028)]());if(_0x19d418==null||_0x20350f==null)return null;const _0x4f5f8f=tzParts(_0x19d418,_0x3724e0),_0x532785=tzParts(_0x20350f,_0x3724e0),_0x85641f=(_0x502f,_0x471b1f,_0x14cee8)=>zonedWallToMs(_0x502f,_0x471b1f,_0x14cee8,0x0,0x0,0x0,_0x3724e0)===_0x20350f;if(_0x4f5f8f['mo']===0x0&&_0x4f5f8f['d']===0x1&&_0x532785['mo']===0x0&&_0x532785['d']===0x1&&_0x532785['y']===_0x4f5f8f['y']+0x1)return'year';if(_0x4f5f8f['d']===0x1&&_0x532785['d']===0x1&&_0x532785['y']*0xc+_0x532785['mo']===_0x4f5f8f['y']*0xc+_0x4f5f8f['mo']+0x1)return _0x50c087(0xe7d);if(_0x85641f(_0x4f5f8f['y'],_0x4f5f8f['mo'],_0x4f5f8f['d']+0x7))return _0x50c087(0x6f1);if(_0x85641f(_0x4f5f8f['y'],_0x4f5f8f['mo'],_0x4f5f8f['d']+0x1))return'day';return null;}[_0x46af5e(0x59b)](_0x13565d,_0x5a26ac){const _0x3d3c77=_0x46af5e,_0x18ef7b=resolveDisplayTimeZone(this[_0x3d3c77(0x1dc)],this['_config']),_0x43ceb1=_0x5a26ac[_0x3d3c77(0x4b0)][_0x3d3c77(0x1028)](),_0x55c798=_0x5a26ac['end'][_0x3d3c77(0x1028)](),_0x4bccc0=(_0x24e84e,_0x1a6896)=>{const _0x65215d=_0x3d3c77,_0x4e1324=tzParts(_0x43ceb1,_0x18ef7b);let _0x6a73f=_0x4e1324['y']+_0x24e84e,_0x5ba4d3=_0x4e1324['mo']+_0x1a6896;_0x6a73f+=Math[_0x65215d(0xedc)](_0x5ba4d3/0xc),_0x5ba4d3=(_0x5ba4d3%0xc+0xc)%0xc;const _0x5ef22d=new Date(_0x6a73f,_0x5ba4d3+0x1,0x0)[_0x65215d(0x1024)]();return zonedWallToMs(_0x6a73f,_0x5ba4d3,Math[_0x65215d(0xba1)](_0x4e1324['d'],_0x5ef22d),_0x4e1324['h'],_0x4e1324['mi'],0x0,_0x18ef7b);},_0x42321a=_0x13565d['period'],_0x2dbaae=Math[_0x3d3c77(0x220)](0x1,Math[_0x3d3c77(0xedc)](toNum(_0x13565d?.[_0x3d3c77(0xf4d)])||0x1)),_0x2ebe06=toNum(_0x42321a);if(isNum(_0x2ebe06)&&_0x2ebe06>0x0)return _0x2ebe06*_0x2dbaae;switch(_0x42321a){case _0x3d3c77(0x592):return 0x18*_0x2dbaae;case _0x3d3c77(0x326):return 0xa8*_0x2dbaae;case'last_month':return(_0x43ceb1-_0x4bccc0(0x0,-_0x2dbaae))/0x36ee80;case _0x3d3c77(0xb6f):return(_0x43ceb1-_0x4bccc0(-_0x2dbaae,0x0))/0x36ee80;case _0x3d3c77(0x612):default:{const _0x1482dc=this['_config'][_0x3d3c77(0xb1f)]||this['_config'][_0x3d3c77(0x175)]&&this[_0x3d3c77(0x68c)];let _0x53d624=_0x1482dc?this['_dpMode']:null;!_0x53d624&&this[_0x3d3c77(0xfe9)][_0x3d3c77(0xbc9)]&&(_0x53d624=this[_0x3d3c77(0x6b4)](_0x18ef7b));if(_0x53d624===_0x3d3c77(0xe7d))return(_0x43ceb1-_0x4bccc0(0x0,-_0x2dbaae))/0x36ee80;if(_0x53d624==='year')return(_0x43ceb1-_0x4bccc0(-_0x2dbaae,0x0))/0x36ee80;if(_0x53d624===_0x3d3c77(0x309)||_0x53d624===_0x3d3c77(0x6f1)){const _0x454fc0=_0x1482dc?Math['max'](0x1,parseInt(this[_0x3d3c77(0xfe9)]?.[_0x3d3c77(0xc7d)],0xa)||0x1):0x1,_0x115764=tzParts(_0x43ceb1,_0x18ef7b),_0x39d77f=_0x2dbaae*_0x454fc0*(_0x53d624===_0x3d3c77(0x6f1)?0x7:0x1);return(_0x43ceb1-zonedWallToMs(_0x115764['y'],_0x115764['mo'],_0x115764['d']-_0x39d77f,_0x115764['h'],_0x115764['mi'],0x0,_0x18ef7b))/0x36ee80;}return(_0x55c798-_0x43ceb1)/0x36ee80*_0x2dbaae;}}}[_0x46af5e(0x720)](_0x327bdd){const _0x4e4b7a=_0x46af5e,_0x3eb966=!this[_0x4e4b7a(0x928)]['has'](_0x327bdd),_0x104972=[_0x327bdd],_0x1b7035=this['_graphData']?.[_0x4e4b7a(0xfa8)]?.[_0x4e4b7a(0x90c)](_0x58d922=>_0x58d922['id']===_0x327bdd);if(_0x1b7035&&_0x1b7035[_0x4e4b7a(0x974)]?.[_0x4e4b7a(0xed4)]==null)for(const _0x4fb91e of this[_0x4e4b7a(0x2d4)][_0x4e4b7a(0xfa8)][_0x4e4b7a(0x919)](_0x5af67b=>_0x5af67b['entity']?.[_0x4e4b7a(0xed4)]===_0x1b7035[_0x4e4b7a(0xd18)])){_0x104972['push'](_0x4fb91e['id']);}for(const _0x84c8 of _0x104972){if(_0x3eb966)this[_0x4e4b7a(0x928)][_0x4e4b7a(0x982)](_0x84c8);else this['_hiddenEntities'][_0x4e4b7a(0xcc1)](_0x84c8);}}[_0x46af5e(0x6d3)](_0x445265){const _0x2883c1=_0x46af5e,_0x174da2={'e':(_0x445265['entities']||[])[_0x2883c1(0xb3f)](_0x1bdc56=>[_0x1bdc56[_0x2883c1(0x974)]||'',_0x1bdc56['statistic_id']||'',_0x1bdc56[_0x2883c1(0xf0f)]||'']),'c':_0x445265['chart_mode']||_0x2883c1(0x325),'t':_0x445265[_0x2883c1(0x26a)]||''};if(_0x445265[_0x2883c1(0x815)]==='controller')_0x174da2['g']=_0x445265['date_picker_group']||_0x445265['sync_group']||'';return hashString(JSON[_0x2883c1(0x403)](_0x174da2));}[_0x46af5e(0xa91)](){const _0x5b6a93=_0x46af5e,_0xe5a728=this[_0x5b6a93(0x1dc)];if(!_0xe5a728?.['connection'])return null;const _0x3f5cbb=_0xe5a728[_0x5b6a93(0xb9b)],_0x5a49d2=this['_config']?.['energy_collection_key'],_0x29c9ec=typeof _0x5a49d2===_0x5b6a93(0xade)&&_0x5a49d2[_0x5b6a93(0xa11)]()?_0x5a49d2[_0x5b6a93(0xa11)]():null;if(_0x29c9ec){try{const _0x1c2aa9=window[_0x5b6a93(0x269)]?.[_0x5b6a93(0xb06)];if(typeof _0x1c2aa9===_0x5b6a93(0x8c6)){const _0x47ea5f=_0x1c2aa9(_0xe5a728,{'key':_0x29c9ec});if(_0x47ea5f&&typeof _0x47ea5f[_0x5b6a93(0xf38)]===_0x5b6a93(0x8c6))return _0x47ea5f;}}catch{}const _0x3a377c=_0x3f5cbb['_'+_0x29c9ec]||_0x3f5cbb[_0x5b6a93(0xc22)]?.['_'+_0x29c9ec]||_0x3f5cbb[_0x29c9ec];if(_0x3a377c&&typeof _0x3a377c[_0x5b6a93(0xf38)]==='function')return _0x3a377c;return null;}try{const _0x5aacca=window[_0x5b6a93(0x269)]?.[_0x5b6a93(0xb06)];if(typeof _0x5aacca===_0x5b6a93(0x8c6)){const _0x52092e=_0x5aacca(_0xe5a728);if(_0x52092e&&typeof _0x52092e[_0x5b6a93(0xf38)]===_0x5b6a93(0x8c6))return _0x52092e;}}catch{}try{const _0x227e34=document[_0x5b6a93(0xee6)]('ha-panel-energy'),_0x5aa9a9=_0x227e34?.['_energyCollection'];if(_0x5aa9a9&&typeof _0x5aa9a9[_0x5b6a93(0xf38)]===_0x5b6a93(0x8c6))return _0x5aa9a9;}catch{}const _0x223eff=_0x410a01=>{const _0x514677=_0x5b6a93;if(!_0x410a01||typeof _0x410a01!==_0x514677(0xc18))return null;for(const [_0x5a141e,_0x1f0545]of Object[_0x514677(0x653)](_0x410a01)){if(!/energy|nerg/i[_0x514677(0x920)](_0x5a141e))continue;if(_0x1f0545&&typeof _0x1f0545[_0x514677(0xf38)]==='function')return _0x1f0545;}return null;};return _0x223eff(_0x3f5cbb)||_0x223eff(_0x3f5cbb[_0x5b6a93(0xc22)]);}[_0x46af5e(0xd30)](){const _0x54d82a=_0x46af5e;if(!this['_config']?.['energy_date_sync']||!this[_0x54d82a(0x1dc)])return;this['_stopEnergyDateSync']();const _0x262be4=()=>{const _0x24ec67=_0x54d82a,_0x31f5f2=this['_findEnergyCollection']();if(!_0x31f5f2)return![];this[_0x24ec67(0x9dc)]=_0x31f5f2[_0x24ec67(0xf38)](_0x532452=>{const _0x3fb5e0=_0x24ec67,_0x1ba4a8=_0x31f5f2[_0x3fb5e0(0x4b0)]||_0x31f5f2[_0x3fb5e0(0x48f)]||_0x532452?.[_0x3fb5e0(0x4b0)],_0x408043=_0x31f5f2['end']||_0x31f5f2[_0x3fb5e0(0x40e)]||_0x532452?.[_0x3fb5e0(0x244)];if(_0x1ba4a8)this[_0x3fb5e0(0x9b7)](_0x1ba4a8,_0x408043);});const _0x23f04d=_0x31f5f2[_0x24ec67(0x4b0)]||_0x31f5f2[_0x24ec67(0x48f)],_0x7bbe12=_0x31f5f2['end']||_0x31f5f2[_0x24ec67(0x40e)];if(_0x23f04d)this[_0x24ec67(0x9b7)](_0x23f04d,_0x7bbe12);return!![];};if(_0x262be4())return;let _0x14cc86=0x0;this[_0x54d82a(0x231)]=setInterval(()=>{const _0x933d1=_0x54d82a;_0x14cc86+=0x1,(_0x262be4()||_0x14cc86>=0xf)&&(clearInterval(this['_energyDiscoverTimer']),this[_0x933d1(0x231)]=null);},0x7d0);}['_stopEnergyDateSync'](){const _0x5054c8=_0x46af5e;if(this['_energyUnsub']){try{this[_0x5054c8(0x9dc)]();}catch{}this[_0x5054c8(0x9dc)]=null;}this[_0x5054c8(0x231)]&&(clearInterval(this[_0x5054c8(0x231)]),this['_energyDiscoverTimer']=null);}[_0x46af5e(0x9b7)](_0x276a48,_0x261e25){const _0x571d53=_0x46af5e,_0x2f24b9=_0x276a48 instanceof Date?_0x276a48:new Date(_0x276a48),_0x305188=_0x261e25?_0x261e25 instanceof Date?_0x261e25:new Date(_0x261e25):new Date();if(isNaN(_0x2f24b9['getTime']())||isNaN(_0x305188['getTime']()))return;if(_0x305188[_0x571d53(0x1028)]()<=_0x2f24b9[_0x571d53(0x1028)]())return;if(this[_0x571d53(0xd15)]&&this[_0x571d53(0x5b9)]&&this[_0x571d53(0xd15)][_0x571d53(0x1028)]()===_0x2f24b9[_0x571d53(0x1028)]()&&this['_energyEnd'][_0x571d53(0x1028)]()===_0x305188[_0x571d53(0x1028)]())return;this['_energyStart']=_0x2f24b9,this['_energyEnd']=_0x305188,this[_0x571d53(0x3ad)](),this[_0x571d53(0x9c5)]();}[_0x46af5e(0x559)](_0x329427){const _0xc9b6d0=_0x46af5e,_0x57989d=!!_0x329427?.[_0xc9b6d0(0xbc9)],_0x2fbe99=!!this[_0xc9b6d0(0xfe9)]?.[_0xc9b6d0(0xbc9)],_0x7ad5be=_0x2fbe99&&(_0x329427?.[_0xc9b6d0(0xf13)]||null)!==(this[_0xc9b6d0(0xfe9)]?.['energy_collection_key']||null);if(_0x57989d===_0x2fbe99&&!_0x7ad5be)return;_0x2fbe99?this[_0xc9b6d0(0xd30)]():(this['_stopEnergyDateSync'](),this[_0xc9b6d0(0xd15)]=null,this[_0xc9b6d0(0x5b9)]=null,this['_scheduleUpdate']());}[_0x46af5e(0xc6c)](){const _0x3dfff3=_0x46af5e,_0x2ce853=this['_config'];if(this['_drillWindow']){Object[_0x3dfff3(0x712)](_0x2ce853,_0x3dfff3(0x881),{'value':(this['_drillWindow'][_0x3dfff3(0x244)]-this[_0x3dfff3(0xa89)][_0x3dfff3(0x4b0)])/0x36ee80,'enumerable':![],'writable':!![],'configurable':!![]});for(const _0x51bc5f of['__sgcExtVisibleH','__sgcExtAnchorMs']){Object[_0x3dfff3(0x712)](_0x2ce853,_0x51bc5f,{'value':null,'enumerable':![],'writable':!![],'configurable':!![]});}return{'start':new Date(this[_0x3dfff3(0xa89)][_0x3dfff3(0x4b0)]),'end':new Date(this[_0x3dfff3(0xa89)][_0x3dfff3(0x244)])};}const _0x3268b7=new Date(),_0x450a99=_0x14ef11=>{const _0x7b4e32=_0x3dfff3;Object[_0x7b4e32(0x712)](_0x2ce853,_0x7b4e32(0x881),{'value':_0x14ef11,'enumerable':![],'writable':!![],'configurable':!![]});};_0x450a99(null);const _0x48b14e=_0x250354=>{const _0x58c459=_0x3dfff3;Object[_0x58c459(0x712)](_0x2ce853,_0x58c459(0x2a8),{'value':_0x250354,'enumerable':![],'writable':!![],'configurable':!![]});};_0x48b14e(null);const _0x81694b=_0x5bccbf=>{const _0x1c744c=_0x3dfff3;Object[_0x1c744c(0x712)](_0x2ce853,_0x1c744c(0x371),{'value':_0x5bccbf,'enumerable':![],'writable':!![],'configurable':!![]});};_0x81694b(null);const _0x57915a=resolveDisplayTimeZone(this[_0x3dfff3(0x1dc)],_0x2ce853);let _0x4b49ce=0x0;for(const _0x1efaf9 of this[_0x3dfff3(0xfef)]||[]){const _0x490570=toNum(_0x1efaf9?.[_0x3dfff3(0x510)]);if(_0x490570>0x0&&_0x490570>_0x4b49ce)_0x4b49ce=_0x490570;}const _0x506cdc=_0x27e984=>{const _0x48b5cb=_0x3dfff3;if(_0x4b49ce<=0x0)return _0x27e984;return new Date(_0x27e984[_0x48b5cb(0x1028)]()+_0x4b49ce*0x36ee80);},_0x3ff750=_0x58234d=>{const _0x2644fe=_0x3dfff3;if(_0x58234d==null||typeof _0x58234d!=='string')return null;const _0xf92b33=_0x58234d['trim']();if(!_0xf92b33)return null;if(_0xf92b33[_0x2644fe(0x3fb)]()===_0x2644fe(0x69d))return 0x0;const _0x485335=_0xf92b33[_0x2644fe(0x727)](/^now\s*([+-])\s*(\d*\.?\d+)$/i);if(_0x485335){const _0x1ecd9e=_0x485335[0x1]==='+'?0x1:-0x1,_0x5f0dbe=parseFloat(_0x485335[0x2]);return isNaN(_0x5f0dbe)?null:_0x1ecd9e*_0x5f0dbe*0x36ee80;}if((_0xf92b33[0x0]==='+'||_0xf92b33[0x0]==='-')&&/^[+-]\d*\.?\d+$/[_0x2644fe(0x920)](_0xf92b33)){const _0xf10e94=parseFloat(_0xf92b33);return isNaN(_0xf10e94)?null:_0xf10e94*0x36ee80;}return null;},_0x460d7d=(_0xbd6187,_0x5dea5a)=>{const _0x1df96a=_0x3dfff3,_0x534498=!!_0x2ce853[_0x1df96a(0x69f)]||!!_0x2ce853[_0x1df96a(0x746)]||!!(_0x2ce853['show_date_picker']&&this[_0x1df96a(0x8cd)])||!!(_0x2ce853[_0x1df96a(0x175)]&&this[_0x1df96a(0x68c)])||this[_0x1df96a(0xd15)]!=null&&this[_0x1df96a(0x5b9)]!=null||!!((_0x2ce853[_0x1df96a(0xdf9)]||_0x2ce853[_0x1df96a(0x545)])&&isNum(this[_0x1df96a(0xe51)])),_0x256163=(_0x5dea5a[_0x1df96a(0x1028)]()-_0xbd6187[_0x1df96a(0x1028)]())/0x36ee80,_0x2fdab7=!_0x534498&&_0x256163<=24.5,_0x57c073=_0x3ff750(_0x2ce853[_0x1df96a(0xa8d)]);if(_0x57c073!==null){const _0x181f79=new Date(_0x3268b7[_0x1df96a(0x1028)]()+_0x57c073);_0x181f79[_0x1df96a(0x1028)]()>_0xbd6187['getTime']()&&_0x181f79['getTime']()<_0x5dea5a[_0x1df96a(0x1028)]()&&(_0xbd6187=_0x181f79);}else{const _0x278d67=resolveDynamicValue(_0x2ce853[_0x1df96a(0xa8d)],this[_0x1df96a(0x1dc)])??toNum(_0x2ce853['graph_start_hour']);if(isNum(_0x278d67)){if(_0x2fdab7){const _0x3f714c=tzParts(_0x5dea5a[_0x1df96a(0x1028)](),_0x57915a);let _0x107688=new Date(zonedWallToMs(_0x3f714c['y'],_0x3f714c['mo'],_0x3f714c['d'],Math[_0x1df96a(0xedc)](_0x278d67),Math['round'](_0x278d67%0x1*0x3c),0x0,_0x57915a));_0x107688[_0x1df96a(0x1028)]()>_0x5dea5a[_0x1df96a(0x1028)]()&&(_0x107688=new Date(zonedWallToMs(_0x3f714c['y'],_0x3f714c['mo'],_0x3f714c['d']-0x1,Math[_0x1df96a(0xedc)](_0x278d67),Math[_0x1df96a(0x686)](_0x278d67%0x1*0x3c),0x0,_0x57915a))),_0x107688['getTime']()<_0x5dea5a[_0x1df96a(0x1028)]()&&(_0xbd6187=_0x107688);}else{const _0x31edda=tzParts(_0xbd6187[_0x1df96a(0x1028)](),_0x57915a),_0x40a712=new Date(zonedWallToMs(_0x31edda['y'],_0x31edda['mo'],_0x31edda['d'],Math[_0x1df96a(0xedc)](_0x278d67),Math[_0x1df96a(0x686)](_0x278d67%0x1*0x3c),0x0,_0x57915a));if(_0x40a712>=_0xbd6187&&_0x40a712<_0x5dea5a)_0xbd6187=_0x40a712;}}}const _0x40e4bf=_0x3ff750(_0x2ce853[_0x1df96a(0xfca)]);if(_0x40e4bf!==null){const _0x37986f=new Date(_0x3268b7[_0x1df96a(0x1028)]()+_0x40e4bf);_0x37986f[_0x1df96a(0x1028)]()>_0xbd6187[_0x1df96a(0x1028)]()&&_0x37986f[_0x1df96a(0x1028)]()!==_0x5dea5a[_0x1df96a(0x1028)]()&&(_0x5dea5a=_0x37986f);}else{const _0x10a599=resolveDynamicValue(_0x2ce853[_0x1df96a(0xfca)],this[_0x1df96a(0x1dc)])??toNum(_0x2ce853['graph_end_hour']);if(isNum(_0x10a599)){const _0x448f89=tzParts(_0x5dea5a[_0x1df96a(0x1028)](),_0x57915a),_0x17bcf0=_0x448f89['h']===0x0&&_0x448f89['mi']===0x0&&_0x5dea5a[_0x1df96a(0x808)]()===0x0&&_0x5dea5a[_0x1df96a(0x29f)]()===0x0,_0x3a01c6=new Date(zonedWallToMs(_0x448f89['y'],_0x448f89['mo'],_0x448f89['d']-(_0x17bcf0?0x1:0x0),Math['floor'](_0x10a599),Math[_0x1df96a(0x686)](_0x10a599%0x1*0x3c),0x0,_0x57915a));_0x3a01c6[_0x1df96a(0x1028)]()<_0x5dea5a['getTime']()&&_0x3a01c6[_0x1df96a(0x1028)]()>_0xbd6187[_0x1df96a(0x1028)]()&&(_0x5dea5a=_0x3a01c6);}}const _0x11bd33=clamp(Math[_0x1df96a(0xedc)](toNum(_0x2ce853[_0x1df96a(0x755)])||0x1),0x1,0xa);if(_0x11bd33>0x1&&(_0x2ce853['chart_mode']||_0x1df96a(0x325))===_0x1df96a(0x325)&&!_0x2ce853[_0x1df96a(0x4a1)]){let _0x339ce0=toNum(_0x2ce853[_0x1df96a(0x881)]),_0x4efc6c=null;const _0xbd3e4=(_0x2ce853[_0x1df96a(0xb1f)]||_0x2ce853[_0x1df96a(0x175)]&&this[_0x1df96a(0x68c)])&&!!this['_dpMode'],_0x277b67=!!(_0x2ce853[_0x1df96a(0xbc9)]&&this[_0x1df96a(0xd15)]&&this[_0x1df96a(0x5b9)]);if(!(isNum(_0x339ce0)&&_0x339ce0>0x0)&&_0x2ce853[_0x1df96a(0x69f)]&&!_0xbd3e4&&!_0x277b67)try{const _0x39608d=resolveFirstWeekday(this['_hass']),_0x2b38d4=resolveYearStartMonth(_0x2ce853),_0x1b3533=parseGraphStart(_0x2ce853['graph_start'],new Date(),_0x57915a,_0x39608d,_0x2b38d4),_0x13f293=endOfPeriodFromGraphStart(_0x2ce853[_0x1df96a(0x69f)],_0x1b3533,_0x57915a,_0x39608d,_0x2b38d4),_0x1a852d=(_0x13f293[_0x1df96a(0x1028)]()-_0x1b3533[_0x1df96a(0x1028)]())/0x36ee80;_0x1a852d>0x0&&(_0x339ce0=_0x1a852d,_0x4efc6c=_0x13f293[_0x1df96a(0x1028)]());}catch(_0x560313){}const _0x326cd1=isNum(_0x339ce0)&&_0x339ce0>0x0?_0x339ce0*0x36ee80:_0x5dea5a['getTime']()-_0xbd6187[_0x1df96a(0x1028)]();if(_0x326cd1>0x0){if(!(toNum(_0x2ce853[_0x1df96a(0x881)])>0x0))_0x450a99(_0x326cd1/0x36ee80);_0x48b14e(_0x326cd1/0x36ee80);if(isNum(_0x4efc6c)){if(_0x4efc6c>_0x5dea5a['getTime']())_0x5dea5a=new Date(_0x4efc6c);_0x81694b(_0x4efc6c);}else _0x81694b(_0x5dea5a[_0x1df96a(0x1028)]()-(_0x4b49ce>0x0?_0x4b49ce*0x36ee80:0x0));_0xbd6187=new Date(_0xbd6187[_0x1df96a(0x1028)]()-_0x326cd1*(_0x11bd33-0x1));}}return{'start':_0xbd6187,'end':_0x5dea5a};},_0x10e836=_0x2ce853[_0x3dfff3(0xb1f)]||_0x2ce853[_0x3dfff3(0x175)]&&this[_0x3dfff3(0x68c)],_0x1a881c=_0x10e836&&this['_dpMode']===_0x3dfff3(0x361),_0x294715=_0x10e836&&this[_0x3dfff3(0x8cd)]&&this[_0x3dfff3(0x8cd)]!=='custom';if(_0x10e836){const _0x3d828d=this['_computeDatePickerWindow']();if(_0x3d828d){let {start:_0x4f0857,end:_0x5d3c48}=_0x3d828d;if(_0x294715){if(_0x2ce853[_0x3dfff3(0x746)]){const _0x20aa19=this[_0x3dfff3(0x80e)](!![]);if(_0x20aa19)_0x5d3c48=_0x20aa19['end'];}else(this[_0x3dfff3(0x478)]||0x0)===0x0&&(_0x5d3c48[_0x3dfff3(0x1028)]()>_0x3268b7[_0x3dfff3(0x1028)]()&&_0x450a99((_0x5d3c48[_0x3dfff3(0x1028)]()-_0x4f0857['getTime']())/0x36ee80),_0x5d3c48=_0x3268b7);}return _0x5d3c48=_0x506cdc(_0x5d3c48),_0x460d7d(_0x4f0857,_0x5d3c48);}}if(_0x2ce853[_0x3dfff3(0xbc9)]&&this[_0x3dfff3(0xd15)]&&this[_0x3dfff3(0x5b9)]){const _0x32c4f3=this[_0x3dfff3(0xd15)];let _0x173c41=this[_0x3dfff3(0x5b9)];return!_0x2ce853[_0x3dfff3(0x746)]&&_0x173c41[_0x3dfff3(0x1028)]()>_0x3268b7['getTime']()&&(_0x450a99((_0x173c41[_0x3dfff3(0x1028)]()-_0x32c4f3['getTime']())/0x36ee80),_0x173c41=_0x3268b7),_0x173c41=_0x506cdc(_0x173c41),_0x460d7d(_0x32c4f3,_0x173c41);}const _0x221111=(_0x2ce853['show_interval_picker']||_0x2ce853['interval_picker_group'])&&isNum(this[_0x3dfff3(0xe51)])?this[_0x3dfff3(0xe51)]:null,_0x2ddcfc=isNum(_0x221111);let {start:_0x99476b}=resolveAnchorWindow(_0x2ce853,_0x221111,this[_0x3dfff3(0x1dc)]),_0x376ac1=_0x3268b7;if(_0x2ce853[_0x3dfff3(0x746)]&&!_0x2ddcfc){const _0x21d112=_0x2ce853[_0x3dfff3(0x69f)]||null,_0x473d13=endOfPeriodFromGraphStart(_0x21d112,_0x3268b7,_0x57915a,resolveFirstWeekday(this['_hass']),resolveYearStartMonth(_0x2ce853));if(_0x473d13[_0x3dfff3(0x1028)]()>_0x376ac1[_0x3dfff3(0x1028)]()){const _0xeea045=_0x473d13[_0x3dfff3(0x1028)]()-_0x376ac1[_0x3dfff3(0x1028)]();_0x376ac1=_0x473d13,!_0x2ce853[_0x3dfff3(0x69f)]&&(_0x99476b=new Date(_0x99476b[_0x3dfff3(0x1028)]()+_0xeea045));}}return _0x2ce853[_0x3dfff3(0x69f)]===_0x3dfff3(0x9b9)&&_0x99476b[_0x3dfff3(0x1028)]()>_0x376ac1[_0x3dfff3(0x1028)]()&&(_0x376ac1=endOfPeriodFromGraphStart(_0x3dfff3(0x9b9),_0x3268b7,_0x57915a,resolveFirstWeekday(this[_0x3dfff3(0x1dc)]))),_0x376ac1=_0x506cdc(_0x376ac1),_0x460d7d(_0x99476b,_0x376ac1);}[_0x46af5e(0x80e)](_0x43bb70){const _0x43e72e=_0x46af5e,_0x42ad4f=this[_0x43e72e(0x8cd)]||_0x43e72e(0xe7d),_0x38e5c7=this[_0x43e72e(0x478)]||0x0,_0x11c6ae=_0x42ad4f===_0x43e72e(0x361)?_0x38e5c7:Math[_0x43e72e(0xba1)](0x0,_0x38e5c7),_0x61688a=new Date(),_0x1e028d=resolveDisplayTimeZone(this[_0x43e72e(0x1dc)],this[_0x43e72e(0xfe9)]),_0x1668fc=tzParts(_0x61688a[_0x43e72e(0x1028)](),_0x1e028d),_0xf86d5a=_0x61688a[_0x43e72e(0x1028)]()%0xea60,_0x2b4b3e=(_0x5f4e0e,_0x33e345,_0x44deca,_0x2dcaa7=0x0,_0x4e8f35=0x0)=>new Date(zonedWallToMs(_0x5f4e0e,_0x33e345,_0x44deca,_0x2dcaa7,_0x4e8f35,0x0,_0x1e028d)),_0x2a04c2=DATE_PICKER_RELATIVE_MODES[_0x42ad4f];if(_0x2a04c2){let _0x3a75e8=new Date(_0x61688a),_0x5c6898=new Date(_0x61688a);if(_0x2a04c2[_0x43e72e(0x560)]!=null&&_0x2a04c2[_0x43e72e(0x560)]<0x18)_0x3a75e8=new Date(_0x61688a[_0x43e72e(0x1028)]()+_0x11c6ae*_0x2a04c2[_0x43e72e(0x560)]*0x36ee80),_0x5c6898=new Date(_0x3a75e8[_0x43e72e(0x1028)]()-_0x2a04c2['hours']*0x36ee80);else{if(_0x2a04c2[_0x43e72e(0x560)]!=null)_0x3a75e8=new Date(zonedWallToMs(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d'],_0x1668fc['h']+_0x11c6ae*_0x2a04c2[_0x43e72e(0x560)],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a),_0x5c6898=new Date(zonedWallToMs(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d'],_0x1668fc['h']+(_0x11c6ae-0x1)*_0x2a04c2[_0x43e72e(0x560)],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a);else{if(_0x2a04c2[_0x43e72e(0xe29)]!=null)_0x3a75e8=new Date(zonedWallToMs(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d']+_0x11c6ae*_0x2a04c2[_0x43e72e(0xe29)],_0x1668fc['h'],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a),_0x5c6898=new Date(zonedWallToMs(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d']+(_0x11c6ae-0x1)*_0x2a04c2['days'],_0x1668fc['h'],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a);else{if(_0x2a04c2['months']!=null){const _0x49eb45=_0x302e73=>new Date(_0x1668fc['y'],_0x302e73+0x1,0x0)['getDate'](),_0x40a79f=_0x1668fc['mo']+_0x11c6ae*_0x2a04c2[_0x43e72e(0x422)],_0x3910af=_0x1668fc['mo']+(_0x11c6ae-0x1)*_0x2a04c2[_0x43e72e(0x422)];_0x3a75e8=new Date(zonedWallToMs(_0x1668fc['y'],_0x40a79f,Math[_0x43e72e(0xba1)](_0x1668fc['d'],_0x49eb45(_0x40a79f)),_0x1668fc['h'],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a),_0x5c6898=new Date(zonedWallToMs(_0x1668fc['y'],_0x3910af,Math[_0x43e72e(0xba1)](_0x1668fc['d'],_0x49eb45(_0x3910af)),_0x1668fc['h'],_0x1668fc['mi'],0x0,_0x1e028d)+_0xf86d5a);}}}}if(!_0x43bb70&&_0x3a75e8[_0x43e72e(0x1028)]()>_0x61688a[_0x43e72e(0x1028)]())_0x3a75e8[_0x43e72e(0x423)](_0x61688a['getTime']());return{'start':_0x5c6898,'end':_0x3a75e8};}const _0x5dc678=Math[_0x43e72e(0x220)](0x1,parseInt(this[_0x43e72e(0xfe9)]?.[_0x43e72e(0xc7d)],0xa)||0x1);let _0x1bef38,_0x2c9ac1;switch(_0x42ad4f){case _0x43e72e(0x309):{_0x2c9ac1=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d']+0x1+_0x11c6ae*_0x5dc678),_0x1bef38=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo'],_0x1668fc['d']+0x1+_0x11c6ae*_0x5dc678-_0x5dc678);break;}case _0x43e72e(0x6f1):{const _0x37d8be=_0x1668fc['d']-weekStartOffsetDays(_0x1668fc['wd'],resolveFirstWeekday(this[_0x43e72e(0x1dc)]));_0x2c9ac1=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo'],_0x37d8be+0x7+_0x11c6ae*_0x5dc678*0x7),_0x1bef38=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo'],_0x37d8be+0x7+_0x11c6ae*_0x5dc678*0x7-_0x5dc678*0x7);break;}case _0x43e72e(0xe7d):{_0x2c9ac1=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo']+0x1+_0x11c6ae*_0x5dc678,0x1),_0x1bef38=_0x2b4b3e(_0x1668fc['y'],_0x1668fc['mo']+0x1+_0x11c6ae*_0x5dc678-_0x5dc678,0x1);break;}case _0x43e72e(0x73e):{const _0x527f0d=resolveYearStartMonth(this[_0x43e72e(0xfe9)]),_0x5d2c16=_0x1668fc['y']-(_0x1668fc['mo']<_0x527f0d?0x1:0x0)+0x1+_0x11c6ae*_0x5dc678;_0x2c9ac1=_0x2b4b3e(_0x5d2c16,_0x527f0d,0x1),_0x1bef38=_0x2b4b3e(_0x5d2c16-_0x5dc678,_0x527f0d,0x1);break;}case'custom':{if(!this[_0x43e72e(0x1ad)]||!this[_0x43e72e(0x48e)])return null;_0x1bef38=new Date(this[_0x43e72e(0x1ad)]),_0x2c9ac1=new Date(this[_0x43e72e(0x48e)]);break;}default:return null;}if(!_0x43bb70&&_0x42ad4f!=='custom'){const _0x3c5351=new Date();if(_0x2c9ac1>_0x3c5351)_0x2c9ac1=_0x3c5351;}return{'start':_0x1bef38,'end':_0x2c9ac1};}[_0x46af5e(0x31e)](){const _0x4f962e=_0x46af5e,_0x51940f=this[_0x4f962e(0x80e)]();if(!_0x51940f)return'';const _0x544663=resolveCardLanguage(this[_0x4f962e(0x1dc)],this[_0x4f962e(0xfe9)]),_0x1bf92f=resolveDisplayTimeZone(this['_hass'],this[_0x4f962e(0xfe9)]),_0x4c5b10=this[_0x4f962e(0x8cd)],_0xeaeefd=Math['max'](0x1,parseInt(this[_0x4f962e(0xfe9)]?.[_0x4f962e(0xc7d)],0xa)||0x1);try{const _0x278991=DATE_PICKER_RELATIVE_MODES[_0x4c5b10];if(_0x278991){if((this[_0x4f962e(0x478)]||0x0)===0x0)return cardT(this[_0x4f962e(0x1dc)],this[_0x4f962e(0xfe9)],_0x278991[_0x4f962e(0xf1f)]);const _0x315a3e=_0x278991[_0x4f962e(0x560)]!=null&&_0x278991[_0x4f962e(0x560)]<0x18,_0x528e3a=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'month':'short','day':_0x4f962e(0x897),'year':_0x278991['months']?_0x4f962e(0x897):undefined,'hour':_0x315a3e?_0x4f962e(0x615):undefined,'minute':_0x315a3e?_0x4f962e(0x615):undefined});return _0x528e3a[_0x4f962e(0xf20)](_0x51940f['start'])+'\x20–\x20'+_0x528e3a['format'](new Date(_0x51940f['end'][_0x4f962e(0x1028)]()-0x1));}if(_0xeaeefd>0x1&&_0x4c5b10!==_0x4f962e(0x361)){const _0x793fcd=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'day':_0x4f962e(0x897),'month':_0x4f962e(0xfec),'year':_0x4c5b10===_0x4f962e(0x73e)?_0x4f962e(0x897):undefined}),_0x19b23f=new Date(_0x51940f[_0x4f962e(0x244)][_0x4f962e(0x1028)]()-0x1);return _0x793fcd['format'](_0x51940f[_0x4f962e(0x4b0)])+_0x4f962e(0x841)+_0x793fcd[_0x4f962e(0xf20)](_0x19b23f);}if(_0x4c5b10===_0x4f962e(0x309))return getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'weekday':_0x4f962e(0xfec),'month':_0x4f962e(0xfec),'day':'numeric','year':_0x4f962e(0x897)})['format'](_0x51940f[_0x4f962e(0x4b0)]);if(_0x4c5b10==='week'){const _0xbf6d38=new Date(_0x51940f[_0x4f962e(0x244)][_0x4f962e(0x1028)]()-0x1),_0xf73ff5=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'month':'short','day':_0x4f962e(0x897)});return _0xf73ff5[_0x4f962e(0xf20)](_0x51940f[_0x4f962e(0x4b0)])+_0x4f962e(0x841)+_0xf73ff5[_0x4f962e(0xf20)](_0xbf6d38);}if(_0x4c5b10===_0x4f962e(0xe7d))return getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'month':_0x4f962e(0x5cb),'year':_0x4f962e(0x897)})[_0x4f962e(0xf20)](_0x51940f[_0x4f962e(0x4b0)]);if(_0x4c5b10===_0x4f962e(0x73e)){const _0x34d9b6=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'year':_0x4f962e(0x897)});if(!resolveYearStartMonth(this['_config']))return _0x34d9b6[_0x4f962e(0xf20)](_0x51940f['start']);const _0x52a95e=this[_0x4f962e(0x80e)](!![])||_0x51940f,_0x178615=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'year':'2-digit'});return _0x34d9b6[_0x4f962e(0xf20)](_0x51940f[_0x4f962e(0x4b0)])+'/'+_0x178615[_0x4f962e(0xf20)](new Date(_0x52a95e[_0x4f962e(0x244)][_0x4f962e(0x1028)]()-0x1));}if(_0x4c5b10===_0x4f962e(0x361)){const _0x1912b0=getCachedDateTimeFormatter(_0x544663,{'timeZone':_0x1bf92f||undefined,'month':'short','day':_0x4f962e(0x897),'year':'numeric'});return _0x1912b0[_0x4f962e(0xf20)](_0x51940f['start'])+_0x4f962e(0x841)+_0x1912b0[_0x4f962e(0xf20)](new Date(_0x51940f['end']['getTime']()-0x1));}}catch{}return _0x51940f[_0x4f962e(0x4b0)][_0x4f962e(0x1021)]()+_0x4f962e(0x841)+_0x51940f[_0x4f962e(0x244)][_0x4f962e(0x1021)]();}[_0x46af5e(0x7d0)](_0xcad8e1,_0x5ca79f){const _0x395d9f=_0x46af5e;return _0xcad8e1+this['_instanceKey']+':'+hashString(JSON[_0x395d9f(0x403)](_0x5ca79f));}[_0x46af5e(0x5f8)](_0x53db55,_0x2ebd92){const _0x3875e4=_0x46af5e,_0x34f67e=this[_0x3875e4(0x7d0)](_0x53db55,_0x2ebd92);let _0x32b560=lsGet(_0x34f67e);const _0x1ed505=_0x53db55+this[_0x3875e4(0xf45)],_0x1e21ca=lsGet(_0x1ed505);!_0x32b560&&_0x1e21ca&&(_0x32b560=_0x1e21ca,lsSet(_0x34f67e,_0x1e21ca));if(_0x1e21ca)lsDel(_0x1ed505);return _0x32b560;}[_0x46af5e(0xf73)](_0x7972cf){const _0x4d73c3=_0x46af5e,_0x4e0774=_0x7972cf||this[_0x4d73c3(0xfe9)]||{};return this['_pickerStoreKey'](_0x4d73c3(0x657),[toNum(_0x4e0774[_0x4d73c3(0x71e)])??null,!!_0x4e0774['auto_scale_points']]);}[_0x46af5e(0x67b)](_0x248459){const _0x3742dd=_0x46af5e,_0x2c5bd3=_0x248459||this[_0x3742dd(0xfe9)]||{};return this[_0x3742dd(0x7d0)](_0x3742dd(0x86e),[_0x2c5bd3[_0x3742dd(0x3b2)]??null,!!_0x2c5bd3['auto_scale_points']]);}['_dpStoreKey'](_0x174a36){const _0x27ad8e=_0x46af5e,_0x50ff7e=_0x174a36||this['_config']||{};return this[_0x27ad8e(0x7d0)](_0x27ad8e(0x9a5),[Array[_0x27ad8e(0x902)](_0x50ff7e['date_picker_modes'])?_0x50ff7e[_0x27ad8e(0x464)][_0x27ad8e(0x888)](','):null,_0x50ff7e['date_picker_default_mode']??null,toNum(_0x50ff7e[_0x27ad8e(0xc7d)])??null]);}[_0x46af5e(0x444)](_0x31e439){const _0x1edd4a=_0x46af5e,_0x524f00=_0x31e439||this[_0x1edd4a(0xfe9)]||{},_0x54ad3d=Array[_0x1edd4a(0x902)](_0x524f00[_0x1edd4a(0x561)])&&_0x524f00[_0x1edd4a(0x561)][_0x1edd4a(0xc02)]?_0x524f00['interval_options'][_0x1edd4a(0x888)](','):'';return this[_0x1edd4a(0x7d0)](_0x1edd4a(0xa18),[toNum(_0x524f00['hours_to_show'])??null,_0x54ad3d]);}['_persistIntervalPicker'](){const _0x52a7fc=_0x46af5e;if(!this[_0x52a7fc(0xf45)])return;isNum(this[_0x52a7fc(0xe51)])?lsSet(this[_0x52a7fc(0x444)](),JSON[_0x52a7fc(0x403)]({'hours':this['_overrideHoursToShow'],'label':this['_activeIntervalLabel']})):lsDel(this[_0x52a7fc(0x444)]());}['_persistDatePicker'](){const _0x1e7259=_0x46af5e;if(!this['_instanceKey'])return;this['_dpOwnState']=!![];const _0x233b35={'mode':this[_0x1e7259(0x8cd)],'offset':this[_0x1e7259(0x478)],'customStart':this[_0x1e7259(0x1ad)]?this[_0x1e7259(0x1ad)][_0x1e7259(0x4d9)]():null,'customEnd':this[_0x1e7259(0x48e)]?this['_dpCustomEnd']['toISOString']():null};lsSet(this[_0x1e7259(0x6bb)](),JSON[_0x1e7259(0x403)](_0x233b35));}[_0x46af5e(0x417)](_0x33c917,_0x97eade){const _0x13d3bb=_0x46af5e,_0x494df9=toNum(_0x33c917);isNum(this[_0x13d3bb(0xe51)])&&this[_0x13d3bb(0xe51)]===_0x494df9?(this[_0x13d3bb(0xe51)]=null,this[_0x13d3bb(0x3eb)]=null):(this[_0x13d3bb(0xe51)]=_0x494df9,this['_activeIntervalLabel']=_0x97eade),this[_0x13d3bb(0xb17)](),this[_0x13d3bb(0xd16)](),this[_0x13d3bb(0x586)](),this[_0x13d3bb(0x9c5)]();}['_onDatePickerMode'](_0x55804e){const _0x418192=_0x46af5e;if(!DATE_PICKER_VALID_MODES['includes'](_0x55804e)&&!(_0x55804e in DATE_PICKER_RELATIVE_MODES))return;this['_dpMode']=_0x55804e,this[_0x418192(0x478)]=0x0,this[_0x418192(0xb17)](),this[_0x418192(0xe17)](),this[_0x418192(0xeaa)](),this[_0x418192(0x9c5)]();}['_onDatePickerNav'](_0x150e2f){const _0x2db191=_0x46af5e;if(this[_0x2db191(0x8cd)]==='custom'&&this['_dpCustomStart']&&this[_0x2db191(0x48e)]){const _0x1335cb=this[_0x2db191(0x48e)][_0x2db191(0x1028)]()-this[_0x2db191(0x1ad)]['getTime']();if(_0x1335cb>0x0){const _0x3ef6e6=_0x150e2f*_0x1335cb,_0x675fdd=new Date(this[_0x2db191(0x1ad)][_0x2db191(0x1028)]()+_0x3ef6e6),_0xee598f=new Date(this[_0x2db191(0x48e)]['getTime']()+_0x3ef6e6),_0x1350d6=Date[_0x2db191(0x69d)]();if(_0x150e2f>0x0&&_0x675fdd[_0x2db191(0x1028)]()>=_0x1350d6)return;this[_0x2db191(0x1ad)]=_0x675fdd,this[_0x2db191(0x48e)]=_0xee598f;}}else this[_0x2db191(0x478)]=Math[_0x2db191(0xba1)](0x0,this[_0x2db191(0x478)]+_0x150e2f);this[_0x2db191(0xb17)](),this[_0x2db191(0xe17)](),this[_0x2db191(0xeaa)](),this[_0x2db191(0x9c5)]();}[_0x46af5e(0x99e)](){const _0x2a142b=_0x46af5e;if(this[_0x2a142b(0x8cd)]===_0x2a142b(0x361)&&this['_dpCustomStart']&&this[_0x2a142b(0x48e)]){const _0x1b96c9=this[_0x2a142b(0x48e)][_0x2a142b(0x1028)]()-this[_0x2a142b(0x1ad)][_0x2a142b(0x1028)]();if(_0x1b96c9>0x0){const _0x592458=new Date(),_0x3ae16b=new Date(_0x592458[_0x2a142b(0x5e9)](),_0x592458['getMonth'](),_0x592458[_0x2a142b(0x1024)](),_0x592458[_0x2a142b(0x346)](),_0x592458['getMinutes']()+0x1,0x0);this['_dpCustomEnd']=_0x3ae16b,this['_dpCustomStart']=new Date(_0x3ae16b[_0x2a142b(0x1028)]()-_0x1b96c9),this[_0x2a142b(0xb17)](),this[_0x2a142b(0xe17)](),this[_0x2a142b(0xeaa)](),this['_scheduleUpdate']();return;}}this[_0x2a142b(0x478)]=0x0,this[_0x2a142b(0x1ad)]=null,this['_dpCustomEnd']=null,this['_resetDrill'](),this['_persistDatePicker'](),this['_broadcastDatePickerSync'](),this[_0x2a142b(0x9c5)]();}[_0x46af5e(0x314)](_0x99c99){const _0x7b5d2=_0x46af5e;return _0x99c99===_0x7b5d2(0xb5e)?this[_0x7b5d2(0xfe9)]?.[_0x7b5d2(0xc91)]:_0x99c99===_0x7b5d2(0x909)?this['_config']?.[_0x7b5d2(0xb37)]:null;}[_0x46af5e(0xd28)](_0x3106ed){const _0x5430f1=_0x46af5e,_0x128a6e=this[_0x5430f1(0x314)](_0x3106ed);if(!_0x128a6e)return;window[_0x5430f1(0x5c9)](new CustomEvent(_0x5430f1(0x2a2),{'detail':{'kind':_0x3106ed,'group':_0x128a6e,'value':_0x3106ed===_0x5430f1(0xb5e)?isNum(toNum(this[_0x5430f1(0x64e)]))?toNum(this['_overridePph']):null:this[_0x5430f1(0x87d)]||null,'sourceId':this[_0x5430f1(0x6e9)]}}));}[_0x46af5e(0x5ec)](_0x3e697b){const _0x2fa24d=_0x46af5e,_0x24cc92=_0x3e697b[_0x2fa24d(0xa00)]||{},_0x542c37=this['_groupForQueryKind'](_0x24cc92['kind']);if(!_0x542c37||!_0x24cc92[_0x2fa24d(0xdd9)]||_0x24cc92[_0x2fa24d(0xdd9)]!==_0x542c37)return;if(_0x24cc92[_0x2fa24d(0xde6)]&&_0x24cc92[_0x2fa24d(0xde6)]===this[_0x2fa24d(0x6e9)])return;const _0x1ebffb=this[_0x2fa24d(0x64e)],_0x2eed87=this[_0x2fa24d(0x87d)];if(_0x24cc92[_0x2fa24d(0x3a8)]===_0x2fa24d(0xb5e)){const _0x573879=toNum(_0x24cc92[_0x2fa24d(0x2ea)]);this[_0x2fa24d(0x64e)]=isNum(_0x573879)?_0x573879:null;}else this[_0x2fa24d(0x87d)]=typeof _0x24cc92['value']===_0x2fa24d(0xade)&&_0x24cc92[_0x2fa24d(0x2ea)]?_0x24cc92[_0x2fa24d(0x2ea)]:null;if(this[_0x2fa24d(0x64e)]===_0x1ebffb&&this['_overrideGroupBy']===_0x2eed87)return;const _0x197711={...this[_0x2fa24d(0xfe9)]};this[_0x2fa24d(0x3f6)](_0x197711),this[_0x2fa24d(0xfe9)]=_0x197711,this[_0x2fa24d(0xfe1)]();try{this[_0x2fa24d(0x4db)]?.[_0x2fa24d(0xd35)]?.[_0x2fa24d(0xb69)]?.();}catch(_0x7b1bc){}this[_0x2fa24d(0x258)]()[_0x2fa24d(0x9d5)](_0x5594d2=>console[_0x2fa24d(0x969)](_0x2fa24d(0x19e),_0x5594d2)),this[_0x2fa24d(0x3ec)]();}[_0x46af5e(0x7d6)](_0x1b61bc){const _0x2d4cd8=_0x46af5e,_0x3f108f=_0x1b61bc[_0x2d4cd8(0xa00)]||{},_0x1f38d6=this[_0x2d4cd8(0x314)](_0x3f108f[_0x2d4cd8(0x3a8)]);if(!_0x1f38d6||!_0x3f108f[_0x2d4cd8(0xdd9)]||_0x3f108f['group']!==_0x1f38d6)return;if(_0x3f108f[_0x2d4cd8(0x3e2)]&&_0x3f108f['requesterId']===this['_instanceId'])return;const _0x461cad=_0x3f108f['kind']===_0x2d4cd8(0xb5e)?!!this[_0x2d4cd8(0xfe9)][_0x2d4cd8(0x392)]:!!this[_0x2d4cd8(0xfe9)][_0x2d4cd8(0xb65)];if(!_0x461cad)return;const _0x403807=_0x3f108f['kind']===_0x2d4cd8(0xb5e)?isNum(toNum(this[_0x2d4cd8(0x64e)])):!!this['_overrideGroupBy'];if(!_0x403807)return;this['_broadcastQuerySync'](_0x3f108f['kind']);}['_broadcastIntervalSync'](){const _0xdd6a92=_0x46af5e,_0x4f2f65=this[_0xdd6a92(0xfe9)]?.[_0xdd6a92(0x545)];if(!_0x4f2f65)return;window['dispatchEvent'](new CustomEvent('sgc-interval-sync',{'detail':{'group':_0x4f2f65,'hours':isNum(this[_0xdd6a92(0xe51)])?this[_0xdd6a92(0xe51)]:null,'label':this[_0xdd6a92(0x3eb)]||null,'sourceId':this[_0xdd6a92(0x6e9)]}}));}[_0x46af5e(0x80f)](_0x4b7f0e){const _0x563cad=_0x46af5e,_0x33f564=this[_0x563cad(0xfe9)]?.[_0x563cad(0x545)];if(!_0x33f564)return;const _0x5ea084=_0x4b7f0e[_0x563cad(0xa00)]||{};if(!_0x5ea084[_0x563cad(0xdd9)]||_0x5ea084[_0x563cad(0xdd9)]!==_0x33f564)return;if(_0x5ea084[_0x563cad(0xde6)]&&_0x5ea084[_0x563cad(0xde6)]===this[_0x563cad(0x6e9)])return;const _0x21ae7f=toNum(_0x5ea084['hours']);isNum(_0x21ae7f)?(this[_0x563cad(0xe51)]=_0x21ae7f,this['_activeIntervalLabel']=typeof _0x5ea084[_0x563cad(0xf1f)]==='string'?_0x5ea084[_0x563cad(0xf1f)]:null):(this[_0x563cad(0xe51)]=null,this[_0x563cad(0x3eb)]=null),this[_0x563cad(0xb17)](),this[_0x563cad(0xd16)](),this[_0x563cad(0x9c5)](),this[_0x563cad(0x3ec)]();}[_0x46af5e(0x363)](_0x21912c){const _0x2c5d70=_0x46af5e,_0x38b4fc=this[_0x2c5d70(0xfe9)]?.[_0x2c5d70(0x545)];if(!_0x38b4fc)return;const _0x2bb31b=_0x21912c[_0x2c5d70(0xa00)]||{};if(!_0x2bb31b[_0x2c5d70(0xdd9)]||_0x2bb31b['group']!==_0x38b4fc)return;if(_0x2bb31b[_0x2c5d70(0x3e2)]&&_0x2bb31b[_0x2c5d70(0x3e2)]===this['_instanceId'])return;if(!this['_config'][_0x2c5d70(0xdf9)])return;if(!isNum(this['_overrideHoursToShow']))return;this[_0x2c5d70(0x586)]();}[_0x46af5e(0xeaa)](){const _0xf62fb0=_0x46af5e,_0x40e537=this[_0xf62fb0(0xfe9)]?.[_0xf62fb0(0x175)];if(!_0x40e537)return;window[_0xf62fb0(0x5c9)](new CustomEvent(_0xf62fb0(0x2c7),{'detail':{'group':_0x40e537,'mode':this[_0xf62fb0(0x8cd)],'offset':this[_0xf62fb0(0x478)],'customStart':this[_0xf62fb0(0x1ad)]?this[_0xf62fb0(0x1ad)]['toISOString']():null,'customEnd':this[_0xf62fb0(0x48e)]?this[_0xf62fb0(0x48e)][_0xf62fb0(0x4d9)]():null,'sourceId':this[_0xf62fb0(0x6e9)]}}));}[_0x46af5e(0x664)](_0x27d8a1){const _0x306a6f=_0x46af5e,_0x3af04e=this[_0x306a6f(0xfe9)]?.[_0x306a6f(0x175)];if(!_0x3af04e)return;const _0x34a49b=_0x27d8a1[_0x306a6f(0xa00)]||{};if(!_0x34a49b[_0x306a6f(0xdd9)]||_0x34a49b['group']!==_0x3af04e)return;if(_0x34a49b['sourceId']&&_0x34a49b['sourceId']===this[_0x306a6f(0x6e9)])return;if(_0x34a49b[_0x306a6f(0x293)]&&_0x34a49b['mode']!=='custom'&&!DATE_PICKER_VALID_MODES[_0x306a6f(0xf06)](_0x34a49b['mode'])&&!(_0x34a49b[_0x306a6f(0x293)]in DATE_PICKER_RELATIVE_MODES))return;_0x34a49b['mode']&&(_0x34a49b[_0x306a6f(0x293)]===_0x306a6f(0x361)||DATE_PICKER_VALID_MODES[_0x306a6f(0xf06)](_0x34a49b[_0x306a6f(0x293)])||_0x34a49b[_0x306a6f(0x293)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x306a6f(0x8cd)]=_0x34a49b[_0x306a6f(0x293)]);typeof _0x34a49b[_0x306a6f(0x4ff)]===_0x306a6f(0x327)&&(this[_0x306a6f(0x478)]=_0x34a49b[_0x306a6f(0x4ff)]);if(this[_0x306a6f(0x8cd)]!==_0x306a6f(0x361)&&(this[_0x306a6f(0x478)]||0x0)>0x0)this[_0x306a6f(0x478)]=0x0;if(_0x34a49b[_0x306a6f(0x293)]===_0x306a6f(0x361)){if(_0x34a49b[_0x306a6f(0x17f)])this['_dpCustomStart']=new Date(_0x34a49b[_0x306a6f(0x17f)]);if(_0x34a49b[_0x306a6f(0x9e9)])this['_dpCustomEnd']=new Date(_0x34a49b[_0x306a6f(0x9e9)]);}else _0x34a49b[_0x306a6f(0x293)]&&(DATE_PICKER_VALID_MODES[_0x306a6f(0xf06)](_0x34a49b['mode'])||_0x34a49b[_0x306a6f(0x293)]in DATE_PICKER_RELATIVE_MODES)&&(this[_0x306a6f(0x1ad)]=null,this[_0x306a6f(0x48e)]=null);this[_0x306a6f(0x68c)]=!![],this[_0x306a6f(0xb17)](),this[_0x306a6f(0xe17)](),this[_0x306a6f(0x9c5)](),this['_scheduleRender']();}['_onDatePickerSyncRequest'](_0x2a0795){const _0x40e935=_0x46af5e,_0x34c381=this[_0x40e935(0xfe9)]&&this[_0x40e935(0xfe9)][_0x40e935(0x175)];if(!_0x34c381)return;const _0x5e4b2a=_0x2a0795[_0x40e935(0xa00)]||{};if(!_0x5e4b2a[_0x40e935(0xdd9)]||_0x5e4b2a[_0x40e935(0xdd9)]!==_0x34c381)return;if(_0x5e4b2a[_0x40e935(0x3e2)]&&_0x5e4b2a[_0x40e935(0x3e2)]===this[_0x40e935(0x6e9)])return;const _0x2c3ed7=!!this[_0x40e935(0xfe9)][_0x40e935(0xb1f)]||!!this['_config'][_0x40e935(0xa04)];if(!_0x2c3ed7)return;this['_broadcastDatePickerSync']();}set[_0x46af5e(0x32b)](_0x2b6b2a){const _0x3e086a=_0x46af5e,_0x46a279=this[_0x3e086a(0x1dc)],_0x3d8716=!_0x46a279;this[_0x3e086a(0x1dc)]=_0x2b6b2a;if(!this[_0x3e086a(0xfe9)])return;this[_0x3e086a(0x503)]();if(_0x3d8716){this[_0x3e086a(0xd30)]();if(_0x2b6b2a?.['connection'])this[_0x3e086a(0x967)]();this[_0x3e086a(0x9c5)]();return;}if(this[_0x3e086a(0xfe9)][_0x3e086a(0x815)]===_0x3e086a(0x8fe)){const _0x20567a=this['_config'][_0x3e086a(0x254)];if(_0x20567a&&_0x46a279[_0x3e086a(0x4f9)]?.[_0x20567a]!==_0x2b6b2a?.['states']?.[_0x20567a])this[_0x3e086a(0x8b9)]();return;}if(!this[_0x3e086a(0xf9a)])return;this[_0x3e086a(0x1c2)](_0x46a279);let _0x4af7d1=![],_0x31af4a=![],_0x332ccf=![],_0x1a8434=![];if(this['_liveEnabled']||this[_0x3e086a(0xe40)][_0x3e086a(0xc44)]||this[_0x3e086a(0xbf4)]['size']||this[_0x3e086a(0x19b)][_0x3e086a(0xc44)]||this['_boundRefIds'][_0x3e086a(0xc44)]||this['_enabledRefIds'][_0x3e086a(0xc44)]||this[_0x3e086a(0x8b1)][_0x3e086a(0xc44)]||this[_0x3e086a(0x7c1)][_0x3e086a(0xc44)]||this['_config'][_0x3e086a(0x254)]){const _0x318a86=_0x2b6b2a[_0x3e086a(0x4f9)],_0x2264c0=_0x46a279[_0x3e086a(0x4f9)];if(this[_0x3e086a(0x1038)])for(const _0xd4580 of this['_entities']){if(!_0xd4580[_0x3e086a(0x974)]||_0xd4580[_0x3e086a(0xd53)])continue;if(_0x2264c0[_0xd4580['entity']]!==_0x318a86[_0xd4580[_0x3e086a(0x974)]]){_0x4af7d1=!![];break;}}if(!_0x4af7d1&&this['_dataVarIds'][_0x3e086a(0xc44)])for(const _0x58bcf1 of this[_0x3e086a(0xbf4)]){if(_0x2264c0[_0x58bcf1]?.['state']!==_0x318a86[_0x58bcf1]?.[_0x3e086a(0x5f5)]){_0x4af7d1=!![];break;}}if(this[_0x3e086a(0x8b1)]['size'])for(const _0x301d1a of this['_priceRefIds']){if(!sameStateVal(_0x2264c0[_0x301d1a],_0x318a86[_0x301d1a])){this['_schedulePriceRefetch']();break;}}if(this[_0x3e086a(0xe40)][_0x3e086a(0xc44)])for(const _0x361a6e of this['_annotationRefs']){if(_0x2264c0[_0x361a6e]!==_0x318a86[_0x361a6e]){_0x31af4a=!![];break;}}if(this[_0x3e086a(0x7c1)][_0x3e086a(0xc44)])_0x1a8434=this[_0x3e086a(0xb97)](_0x2b6b2a);const _0x75971b=this[_0x3e086a(0xfe9)]['battery_entity'];if(_0x75971b&&_0x2264c0[_0x75971b]!==_0x318a86[_0x75971b])_0x332ccf=!![];if(this['_thrColorRefs'][_0x3e086a(0xc44)])for(const _0x4a73f9 of this['_thrColorRefs']){if(!sameStateVal(_0x2264c0[_0x4a73f9],_0x318a86[_0x4a73f9])){this[_0x3e086a(0x401)]='',this[_0x3e086a(0x3ec)]();break;}}if(this[_0x3e086a(0x8f7)][_0x3e086a(0xc44)])for(const _0x2b2de4 of this[_0x3e086a(0x8f7)]){if(!sameStateVal(_0x2264c0[_0x2b2de4],_0x318a86[_0x2b2de4])){this[_0x3e086a(0x401)]='',this['_scheduleRender']();break;}}if(this['_enabledRefIds']['size'])for(const _0x5e69b4 of this[_0x3e086a(0xfa7)]){if(!sameStateVal(_0x2264c0[_0x5e69b4],_0x318a86[_0x5e69b4])){this[_0x3e086a(0x401)]='',this['_scheduleRender']();break;}}}_0x1a8434&&!_0x4af7d1&&(this['_pendingSyntheticRefresh']=!![],this[_0x3e086a(0x96b)]());if(!_0x4af7d1&&!_0x31af4a&&!_0x332ccf)return;if(this[_0x3e086a(0x4b5)])return;if(_0x4af7d1)this['_processHassChanges'](_0x2b6b2a);if(_0x31af4a)this[_0x3e086a(0xe54)](_0x2b6b2a);(_0x4af7d1||_0x332ccf)&&this[_0x3e086a(0xbb2)]?.[_0x3e086a(0xee6)]?.(_0x3e086a(0xfde))&&this[_0x3e086a(0x1011)]();}get[_0x46af5e(0x32b)](){return this['_hass'];}[_0x46af5e(0x707)](){const _0x58186e=_0x46af5e;_sgcLiveCards[_0x58186e(0x982)](this),this['_setupVisibilityWatch'](),this[_0x58186e(0x75f)]=this[_0x58186e(0x9ea)]();if(this[_0x58186e(0xfe9)]&&this['_hass'])this[_0x58186e(0x9c5)]();if(this['_config'])this[_0x58186e(0x3ad)]();!this[_0x58186e(0xc23)]&&typeof ResizeObserver!==_0x58186e(0xa73)&&(this['_resizeObserver']=new ResizeObserver(()=>this[_0x58186e(0x3ec)]()),this[_0x58186e(0xc23)][_0x58186e(0xe73)](this)),!this[_0x58186e(0x8d5)]&&(this[_0x58186e(0x8d5)]=_0x2171ea=>this[_0x58186e(0x3e0)](_0x2171ea),window[_0x58186e(0x171)](_0x58186e(0xfb8),this[_0x58186e(0x8d5)])),!this[_0x58186e(0x261)]&&(this[_0x58186e(0x261)]=_0x429187=>this[_0x58186e(0xe2a)](_0x429187),window[_0x58186e(0x171)]('sgc-zoom-sync',this[_0x58186e(0x261)])),!this[_0x58186e(0xfa3)]&&(this[_0x58186e(0xfa3)]=_0x129b5d=>this[_0x58186e(0xd43)](_0x129b5d),window[_0x58186e(0x171)]('sgc-scroll-sync',this['_scrollSyncHandler'])),this['_startEnergyDateSync'](),!this['_dpSyncHandler']&&(this[_0x58186e(0xb71)]=_0x2a4ac0=>this[_0x58186e(0x664)](_0x2a4ac0),window[_0x58186e(0x171)](_0x58186e(0x2c7),this[_0x58186e(0xb71)])),!this[_0x58186e(0xfee)]&&(this[_0x58186e(0xfee)]=_0x525db8=>this[_0x58186e(0x62e)](_0x525db8),window[_0x58186e(0x171)](_0x58186e(0xa80),this[_0x58186e(0xfee)])),!this[_0x58186e(0x100b)]&&(this[_0x58186e(0x100b)]=_0x4d795a=>this[_0x58186e(0x80f)](_0x4d795a),window[_0x58186e(0x171)](_0x58186e(0x485),this[_0x58186e(0x100b)])),!this[_0x58186e(0x4cc)]&&(this[_0x58186e(0x4cc)]=_0x27f5cf=>this[_0x58186e(0x363)](_0x27f5cf),window['addEventListener'](_0x58186e(0xc3a),this[_0x58186e(0x4cc)])),this[_0x58186e(0xfe9)]&&this[_0x58186e(0xfe9)]['interval_picker_group']&&!this[_0x58186e(0x197)]&&(this[_0x58186e(0x197)]=!![],setTimeout(()=>{const _0x3de36d=_0x58186e;if(!this[_0x3de36d(0x191)])return;if(this['_config'][_0x3de36d(0xdf9)]&&isNum(this['_overrideHoursToShow']))this['_broadcastIntervalSync']();else!this[_0x3de36d(0xfe9)][_0x3de36d(0xdf9)]&&window[_0x3de36d(0x5c9)](new CustomEvent('sgc-interval-sync-request',{'detail':{'group':this[_0x3de36d(0xfe9)][_0x3de36d(0x545)],'requesterId':this['_instanceId']}}));},0x0)),!this[_0x58186e(0x5ff)]&&(this[_0x58186e(0x5ff)]=_0x31e07d=>this[_0x58186e(0x5ec)](_0x31e07d),window[_0x58186e(0x171)]('sgc-query-sync',this['_querySyncHandler'])),!this['_querySyncRequestHandler']&&(this[_0x58186e(0xd79)]=_0x9d975b=>this[_0x58186e(0x7d6)](_0x9d975b),window[_0x58186e(0x171)]('sgc-query-sync-request',this['_querySyncRequestHandler'])),this[_0x58186e(0xfe9)]&&(this[_0x58186e(0xfe9)][_0x58186e(0xc91)]||this['_config'][_0x58186e(0xb37)])&&!this[_0x58186e(0x661)]&&(this[_0x58186e(0x661)]=!![],setTimeout(()=>{const _0x24d260=_0x58186e;if(!this[_0x24d260(0x191)])return;for(const _0x562689 of[_0x24d260(0xb5e),_0x24d260(0x909)]){const _0x21e3ed=this[_0x24d260(0x314)](_0x562689);if(!_0x21e3ed)continue;const _0x55b64c=_0x562689===_0x24d260(0xb5e)?this[_0x24d260(0xfe9)]['show_pph_picker']:this[_0x24d260(0xfe9)][_0x24d260(0xb65)],_0x39c0fb=_0x562689===_0x24d260(0xb5e)?isNum(toNum(this['_overridePph'])):!!this[_0x24d260(0x87d)];if(_0x55b64c&&_0x39c0fb)this[_0x24d260(0xd28)](_0x562689);else!_0x55b64c&&window[_0x24d260(0x5c9)](new CustomEvent(_0x24d260(0x2ad),{'detail':{'kind':_0x562689,'group':_0x21e3ed,'requesterId':this['_instanceId']}}));}},0x0)),this[_0x58186e(0xfe9)]&&this[_0x58186e(0xfe9)][_0x58186e(0x175)]&&!this[_0x58186e(0x8be)]&&(this['_dpInitialSyncDone']=!![],setTimeout(()=>{const _0x21f1ed=_0x58186e;if(!this[_0x21f1ed(0x191)])return;const _0x380b10=!!this['_config'][_0x21f1ed(0xb1f)]||!!this[_0x21f1ed(0xfe9)][_0x21f1ed(0xa04)],_0x7af222=this['_config'][_0x21f1ed(0x815)]===_0x21f1ed(0x8fe);_0x380b10&&(!_0x7af222||this[_0x21f1ed(0xfad)])?this['_broadcastDatePickerSync']():(window[_0x21f1ed(0x5c9)](new CustomEvent(_0x21f1ed(0xa80),{'detail':{'group':this[_0x21f1ed(0xfe9)][_0x21f1ed(0x175)],'requesterId':this[_0x21f1ed(0x6e9)]}})),_0x7af222&&setTimeout(()=>{const _0x2a8667=_0x21f1ed;if(this['isConnected']&&!this[_0x2a8667(0xfad)])this[_0x2a8667(0xeaa)]();},0x96));},0x0)),!this[_0x58186e(0xb23)]&&(this[_0x58186e(0xb23)]=setInterval(()=>{const _0x58075b=_0x58186e,_0x1a00c4=Date[_0x58075b(0x69d)]();for(const [_0x19fe6f,_0x317728]of this[_0x58075b(0x4db)][_0x58075b(0xd35)]){if(_0x1a00c4-_0x317728['ts']>FETCH_CACHE_TTL_MS)this[_0x58075b(0x4db)][_0x58075b(0xd35)][_0x58075b(0xcc1)](_0x19fe6f);}},0x5*0x3c*0x3e8));}[_0x46af5e(0x678)](){const _0x26c754=_0x46af5e;_sgcLiveCards['delete'](this),this[_0x26c754(0xe0b)](),this['_updateSeq']=(this[_0x26c754(0x55a)]||0x0)+0x1;this['_fpSettleT']&&(clearTimeout(this[_0x26c754(0xd9f)]),this[_0x26c754(0xd9f)]=null);this[_0x26c754(0xeb3)]&&(clearTimeout(this[_0x26c754(0xeb3)]),this[_0x26c754(0xeb3)]=null);this[_0x26c754(0x793)]&&(clearInterval(this[_0x26c754(0x793)]),this[_0x26c754(0x793)]=null);this[_0x26c754(0xc23)]&&(this['_resizeObserver'][_0x26c754(0xf4a)](),this['_resizeObserver']=null);this['_fillResizeObs']&&(this[_0x26c754(0x7c2)][_0x26c754(0xf4a)](),this[_0x26c754(0x7c2)]=null,this[_0x26c754(0x68f)]=null);this[_0x26c754(0xda2)]&&(cancelAnimationFrame(this[_0x26c754(0xda2)]),this['_fillRaf']=0x0);this['_tooltipAbort']&&(this[_0x26c754(0xa64)][_0x26c754(0x582)](),this['_tooltipAbort']=null);if(this[_0x26c754(0x8ed)])for(const _0x559558 of this[_0x26c754(0x8ed)]['values']()){_0x559558&&_0x559558['_zoomAbort']&&(_0x559558[_0x26c754(0xfed)][_0x26c754(0x582)](),_0x559558[_0x26c754(0xfed)]=null);}this['_renderRAF']&&(cancelAnimationFrame(this['_renderRAF']),this[_0x26c754(0x7a6)]=null),this[_0x26c754(0xd9c)]&&(clearInterval(this[_0x26c754(0xd9c)]),this[_0x26c754(0xd9c)]=null),this[_0x26c754(0xab5)]&&(clearTimeout(this['_liveFlushTimer']),this[_0x26c754(0xab5)]=null),this['_slideTimer']&&(clearInterval(this[_0x26c754(0x5f1)]),this[_0x26c754(0x5f1)]=null),this['_syncHandler']&&(window[_0x26c754(0x1ea)](_0x26c754(0xfb8),this['_syncHandler']),this[_0x26c754(0x8d5)]=null),this['_zoomSyncHandler']&&(window[_0x26c754(0x1ea)]('sgc-zoom-sync',this[_0x26c754(0x261)]),this['_zoomSyncHandler']=null),this[_0x26c754(0xfa3)]&&(window[_0x26c754(0x1ea)](_0x26c754(0xfa4),this['_scrollSyncHandler']),this['_scrollSyncHandler']=null),this[_0x26c754(0x5c4)]=null,this[_0x26c754(0xadc)]=null,this['_pins']=[],this['_pinDrag']=null,this[_0x26c754(0xb2d)]=null,this['_stopEnergyDateSync'](),this[_0x26c754(0x1006)](),this['_teardownColorTemplates'](),this[_0x26c754(0x7e5)]=null,this[_0x26c754(0xb71)]&&(window['removeEventListener'](_0x26c754(0x2c7),this['_dpSyncHandler']),this[_0x26c754(0xb71)]=null),this[_0x26c754(0xfee)]&&(window['removeEventListener'](_0x26c754(0xa80),this['_dpSyncRequestHandler']),this['_dpSyncRequestHandler']=null),this[_0x26c754(0x8be)]=![],this[_0x26c754(0x100b)]&&(window[_0x26c754(0x1ea)](_0x26c754(0x485),this[_0x26c754(0x100b)]),this[_0x26c754(0x100b)]=null),this[_0x26c754(0x4cc)]&&(window[_0x26c754(0x1ea)](_0x26c754(0xc3a),this[_0x26c754(0x4cc)]),this['_intervalSyncRequestHandler']=null),this[_0x26c754(0x197)]=![],this[_0x26c754(0x5ff)]&&(window['removeEventListener'](_0x26c754(0x2a2),this[_0x26c754(0x5ff)]),this[_0x26c754(0x5ff)]=null),this['_querySyncRequestHandler']&&(window[_0x26c754(0x1ea)]('sgc-query-sync-request',this[_0x26c754(0xd79)]),this['_querySyncRequestHandler']=null),this[_0x26c754(0x661)]=![],this[_0x26c754(0xb23)]&&(clearInterval(this[_0x26c754(0xb23)]),this[_0x26c754(0xb23)]=null),this[_0x26c754(0x401)]='';}[_0x46af5e(0x3e0)](_0x15026b){const _0x30f8a3=_0x46af5e,_0xe940af=this[_0x30f8a3(0xfe9)];if(!_0xe940af?.[_0x30f8a3(0xb38)])return;const _0x17f77d=_0x15026b[_0x30f8a3(0xa00)]||{};if(_0x17f77d[_0x30f8a3(0xde6)]&&_0x17f77d[_0x30f8a3(0xde6)]===this[_0x30f8a3(0x6e9)])return;const _0x28ec5c=_0xe940af['tooltip_sync_group']||null,_0xc5eb31=_0x17f77d[_0x30f8a3(0xdd9)]||null;if(_0x28ec5c!==_0xc5eb31)return;_0x17f77d[_0x30f8a3(0xfe2)]===null||_0x17f77d[_0x30f8a3(0xfe2)]===undefined?(this[_0x30f8a3(0x523)]=null,this[_0x30f8a3(0xadc)]?.()):(this[_0x30f8a3(0x523)]=_0x17f77d[_0x30f8a3(0xfe2)],this['_showTooltipAtTime']?.(_0x17f77d[_0x30f8a3(0xfe2)]));}[_0x46af5e(0xc90)](_0x1be122,_0x43d500){const _0x514d00=_0x46af5e;if(!Array[_0x514d00(0x902)](this[_0x514d00(0xc60)]))this[_0x514d00(0xc60)]=[];this[_0x514d00(0xc60)][_0x514d00(0xb31)](this[_0x514d00(0xf89)]?{'start':this['_viewWindow']['start'],'end':this[_0x514d00(0xf89)][_0x514d00(0x244)]}:null);if(this[_0x514d00(0xc60)]['length']>0x14)this['_zoomHistory']['shift']();this[_0x514d00(0xf89)]={'start':new Date(_0x1be122),'end':new Date(_0x43d500)},this[_0x514d00(0x401)]='',this[_0x514d00(0x103c)](),this['_config']?.[_0x514d00(0x66b)]&&window['dispatchEvent'](new CustomEvent('sgc-zoom-sync',{'detail':{'tStart':_0x1be122,'tEnd':_0x43d500,'group':this[_0x514d00(0xfe9)][_0x514d00(0x178)]||null,'sourceId':this[_0x514d00(0x6e9)]}}));}[_0x46af5e(0x7d2)](_0xe178bf,_0x37e865){const _0x57366e=_0x46af5e;if(!this[_0x57366e(0xfe9)]?.[_0x57366e(0x66b)])return;window[_0x57366e(0x5c9)](new CustomEvent('sgc-zoom-sync',{'detail':{'tStart':_0xe178bf,'tEnd':_0x37e865,'group':this[_0x57366e(0xfe9)][_0x57366e(0x178)]||null,'sourceId':this[_0x57366e(0x6e9)]}}));}[_0x46af5e(0xf28)](_0x1ef9f0){const _0x5944d1=_0x46af5e;this[_0x5944d1(0x3e8)]&&(clearTimeout(this[_0x5944d1(0x3e8)]),this[_0x5944d1(0x3e8)]=null);const _0x46f37a=this[_0x5944d1(0xf89)]||this[_0x5944d1(0xbe0)];if(!(_0x46f37a?.[_0x5944d1(0x4b0)]instanceof Date)||!(_0x46f37a?.[_0x5944d1(0x244)]instanceof Date))return;const _0x460ae2=_0x46f37a['start']['getTime'](),_0x2f9d0b=_0x46f37a[_0x5944d1(0x244)][_0x5944d1(0x1028)]();if(!isNum(_0x460ae2)||!isNum(_0x2f9d0b)||_0x2f9d0b<=_0x460ae2)return;if(_0x1ef9f0<0x1&&_0x2f9d0b-_0x460ae2<=0xea60)return;const _0x5b401a=(_0x460ae2+_0x2f9d0b)/0x2;let _0x5cc2da=_0x5b401a-(_0x5b401a-_0x460ae2)*_0x1ef9f0,_0x3c7be0=_0x5b401a+(_0x2f9d0b-_0x5b401a)*_0x1ef9f0;_0x3c7be0-_0x5cc2da<0xea60&&(_0x5cc2da=_0x5b401a-0x7530,_0x3c7be0=_0x5b401a+0x7530);const _0xc31ccc=this[_0x5944d1(0xbe0)];if(_0xc31ccc?.[_0x5944d1(0x4b0)]instanceof Date&&_0xc31ccc?.[_0x5944d1(0x244)]instanceof Date){const _0x323b7e=_0xc31ccc['start'][_0x5944d1(0x1028)](),_0x10dc28=_0xc31ccc[_0x5944d1(0x244)][_0x5944d1(0x1028)]();if(_0x5cc2da<_0x323b7e)_0x5cc2da=_0x323b7e;if(_0x3c7be0>_0x10dc28)_0x3c7be0=_0x10dc28;if(_0x3c7be0-_0x5cc2da>=_0x10dc28-_0x323b7e-0x3e8){if(!this[_0x5944d1(0xf89)])return;this[_0x5944d1(0xf89)]=null,this[_0x5944d1(0xc60)]=[],this[_0x5944d1(0x401)]='',this[_0x5944d1(0x103c)](),this[_0x5944d1(0x7d2)](null,null);return;}}if(_0x1ef9f0<0x1){this[_0x5944d1(0xc90)](_0x5cc2da,_0x3c7be0);return;}this[_0x5944d1(0xf89)]={'start':new Date(_0x5cc2da),'end':new Date(_0x3c7be0)},this[_0x5944d1(0x401)]='',this[_0x5944d1(0x103c)](),this[_0x5944d1(0x7d2)](_0x5cc2da,_0x3c7be0);}[_0x46af5e(0x646)](){const _0x2cb9aa=_0x46af5e;this[_0x2cb9aa(0x3e8)]&&(clearTimeout(this['_drillTimer']),this['_drillTimer']=null);const _0x4d2c53=!!this['_drillWindow']||Array[_0x2cb9aa(0x902)](this[_0x2cb9aa(0x337)])&&this['_drillStack']['length']>0x0;if(!_0x4d2c53&&!this[_0x2cb9aa(0xf89)])return;this['_viewWindow']=null,this[_0x2cb9aa(0xc60)]=[],this[_0x2cb9aa(0x401)]='',_0x4d2c53?(this[_0x2cb9aa(0xb17)](),this[_0x2cb9aa(0x9c5)](),this[_0x2cb9aa(0x3ec)]()):this['_render'](),this['_broadcastZoomSync'](null,null);}[_0x46af5e(0xcc9)](_0x11ffeb){const _0x2bb54f=_0x46af5e,_0x23e59a=this['_viewWindow']||this['_window'],_0x253ecb=_0x23e59a?.[_0x2bb54f(0x244)]instanceof Date?_0x23e59a[_0x2bb54f(0x244)][_0x2bb54f(0x1028)]():null;let _0x35e58d=null;for(const _0x3eb194 of this[_0x2bb54f(0x2d4)]?.[_0x2bb54f(0xfa8)]||[]){const _0x6f1beb=_0x3eb194[_0x2bb54f(0x93a)]||[];if(_0x6f1beb[_0x2bb54f(0xc02)]<0x1||isStripEntity(_0x3eb194[_0x2bb54f(0x974)]))continue;let _0x3a80b7=0x0,_0x2df470=_0x6f1beb[_0x2bb54f(0xc02)]-0x1,_0x40a4ae=-0x1;while(_0x3a80b7<=_0x2df470){const _0x595963=_0x3a80b7+_0x2df470>>0x1;if(_0x6f1beb[_0x595963]['t']<=_0x11ffeb)_0x40a4ae=_0x595963,_0x3a80b7=_0x595963+0x1;else _0x2df470=_0x595963-0x1;}if(_0x40a4ae<0x0)continue;const _0x2cd34=_0x6f1beb[_0x40a4ae]['t'],_0x48b61a=_0x40a4ae+0x1<_0x6f1beb[_0x2bb54f(0xc02)]?_0x6f1beb[_0x40a4ae+0x1]['t']:_0x253ecb;if(!isNum(_0x48b61a)||_0x48b61a<=_0x2cd34)continue;if(_0x11ffeb>=_0x48b61a)continue;if(!_0x35e58d||_0x48b61a-_0x2cd34<_0x35e58d['end']-_0x35e58d[_0x2bb54f(0x4b0)])_0x35e58d={'start':_0x2cd34,'end':_0x48b61a};}return _0x35e58d;}[_0x46af5e(0x659)](_0x3d59ad){const _0x2850ee=_0x46af5e,_0x2b0a4a=this[_0x2850ee(0xcc9)](_0x3d59ad);if(!_0x2b0a4a)return;const _0x309d7d=_0x2b0a4a[_0x2850ee(0x244)]-_0x2b0a4a['start'];if(_0x309d7d<0xea60)return;const _0x5c2e8b=this['_window'],_0x4e5aed=_0x5c2e8b?.[_0x2850ee(0x4b0)]instanceof Date&&_0x5c2e8b?.[_0x2850ee(0x244)]instanceof Date?_0x5c2e8b[_0x2850ee(0x244)][_0x2850ee(0x1028)]()-_0x5c2e8b[_0x2850ee(0x4b0)][_0x2850ee(0x1028)]():null;if(isNum(_0x4e5aed)&&_0x309d7d>=_0x4e5aed*0.9)return;if(!Array[_0x2850ee(0x902)](this[_0x2850ee(0x337)]))this[_0x2850ee(0x337)]=[];this[_0x2850ee(0x337)][_0x2850ee(0xb31)](this[_0x2850ee(0xa89)]||null);if(this['_drillStack'][_0x2850ee(0xc02)]>0x14)this[_0x2850ee(0x337)][_0x2850ee(0x4b7)]();this[_0x2850ee(0xa89)]={'start':_0x2b0a4a['start'],'end':_0x2b0a4a[_0x2850ee(0x244)]},this[_0x2850ee(0xf89)]=null,this[_0x2850ee(0x401)]='',this['_scheduleUpdate'](),this[_0x2850ee(0x3ec)](),this[_0x2850ee(0xfe9)]?.[_0x2850ee(0x66b)]&&window[_0x2850ee(0x5c9)](new CustomEvent(_0x2850ee(0xadb),{'detail':{'tStart':_0x2b0a4a[_0x2850ee(0x4b0)],'tEnd':_0x2b0a4a[_0x2850ee(0x244)],'group':this[_0x2850ee(0xfe9)][_0x2850ee(0x178)]||null,'sourceId':this[_0x2850ee(0x6e9)]}}));}[_0x46af5e(0xb17)](){const _0x2de3d7=_0x46af5e;this[_0x2de3d7(0x3e8)]&&(clearTimeout(this[_0x2de3d7(0x3e8)]),this['_drillTimer']=null);const _0x199265=!!this[_0x2de3d7(0xa89)]||Array[_0x2de3d7(0x902)](this[_0x2de3d7(0x337)])&&this[_0x2de3d7(0x337)][_0x2de3d7(0xc02)]>0x0;if(!_0x199265)return![];return this[_0x2de3d7(0xa89)]=null,this[_0x2de3d7(0x337)]=[],this[_0x2de3d7(0xf89)]=null,this[_0x2de3d7(0xc60)]=[],this[_0x2de3d7(0x401)]='',!![];}[_0x46af5e(0xaf5)](){const _0x3ce0d5=_0x46af5e;if(!Array[_0x3ce0d5(0x902)](this[_0x3ce0d5(0x337)])||!this[_0x3ce0d5(0x337)][_0x3ce0d5(0xc02)])return![];return this[_0x3ce0d5(0xa89)]=this[_0x3ce0d5(0x337)][_0x3ce0d5(0x18e)]()||null,this[_0x3ce0d5(0xf89)]=null,this[_0x3ce0d5(0x401)]='',this['_scheduleUpdate'](),this['_scheduleRender'](),this[_0x3ce0d5(0xfe9)]?.[_0x3ce0d5(0x66b)]&&window[_0x3ce0d5(0x5c9)](new CustomEvent(_0x3ce0d5(0xadb),{'detail':{'tStart':this[_0x3ce0d5(0xa89)]?this['_drillWindow'][_0x3ce0d5(0x4b0)]:null,'tEnd':this[_0x3ce0d5(0xa89)]?this[_0x3ce0d5(0xa89)][_0x3ce0d5(0x244)]:null,'group':this['_config'][_0x3ce0d5(0x178)]||null,'sourceId':this[_0x3ce0d5(0x6e9)]}})),!![];}[_0x46af5e(0x8d6)](){const _0x19f9cf=_0x46af5e,_0x2e20ce=Array[_0x19f9cf(0x902)](this[_0x19f9cf(0xc60)])&&this['_zoomHistory'][_0x19f9cf(0xc02)]?this[_0x19f9cf(0xc60)][_0x19f9cf(0x18e)]():null;this[_0x19f9cf(0xf89)]=_0x2e20ce||null,this['_graphFingerprint']='',this[_0x19f9cf(0x103c)](),this['_config']?.[_0x19f9cf(0x66b)]&&window[_0x19f9cf(0x5c9)](new CustomEvent(_0x19f9cf(0xadb),{'detail':{'tStart':_0x2e20ce?_0x2e20ce[_0x19f9cf(0x4b0)][_0x19f9cf(0x1028)]():null,'tEnd':_0x2e20ce?_0x2e20ce[_0x19f9cf(0x244)][_0x19f9cf(0x1028)]():null,'group':this[_0x19f9cf(0xfe9)][_0x19f9cf(0x178)]||null,'sourceId':this[_0x19f9cf(0x6e9)]}}));}[_0x46af5e(0xe2a)](_0x3708a1){const _0x29498d=_0x46af5e,_0xa51f5f=this[_0x29498d(0xfe9)];if(!_0xa51f5f?.[_0x29498d(0x66b)])return;const _0x238f7e=_0x3708a1[_0x29498d(0xa00)]||{};if(_0x238f7e[_0x29498d(0xde6)]&&_0x238f7e[_0x29498d(0xde6)]===this[_0x29498d(0x6e9)])return;const _0x145831=_0xa51f5f[_0x29498d(0x178)]||null,_0x5a7a53=_0x238f7e[_0x29498d(0xdd9)]||null;if(_0x145831!==_0x5a7a53)return;if(_0x238f7e[_0x29498d(0xd24)]==null||_0x238f7e[_0x29498d(0x7dd)]==null)this[_0x29498d(0xf89)]&&(this[_0x29498d(0xf89)]=null,this[_0x29498d(0x401)]='',this[_0x29498d(0x103c)]());else{const _0x438d8e=new Date(_0x238f7e[_0x29498d(0xd24)]),_0x26348b=new Date(_0x238f7e[_0x29498d(0x7dd)]),_0x518bcd=this[_0x29498d(0xf89)];if(_0x518bcd&&_0x518bcd[_0x29498d(0x4b0)]instanceof Date&&_0x518bcd[_0x29498d(0x244)]instanceof Date&&_0x518bcd[_0x29498d(0x4b0)][_0x29498d(0x1028)]()===_0x438d8e[_0x29498d(0x1028)]()&&_0x518bcd[_0x29498d(0x244)][_0x29498d(0x1028)]()===_0x26348b[_0x29498d(0x1028)]())return;this[_0x29498d(0xf89)]={'start':_0x438d8e,'end':_0x26348b},this[_0x29498d(0x401)]='',this[_0x29498d(0x103c)]();}}[_0x46af5e(0xd43)](_0x1262f6){const _0x2e2c77=_0x46af5e,_0x3ba263=this['_config'];if(!_0x3ba263?.['scroll_sync'])return;const _0x30dafb=_0x1262f6[_0x2e2c77(0xa00)]||{};if(_0x30dafb[_0x2e2c77(0xde6)]&&_0x30dafb['sourceId']===this[_0x2e2c77(0x6e9)])return;const _0x28313b=_0x3ba263[_0x2e2c77(0xe0f)]||null,_0x275686=_0x30dafb[_0x2e2c77(0xdd9)]||null;if(_0x28313b!==_0x275686)return;if(!isNum(_0x30dafb[_0x2e2c77(0xe8a)]))return;const _0x3f0940=this[_0x2e2c77(0xbb2)]?.[_0x2e2c77(0xee6)](_0x2e2c77(0xd25));if(!_0x3f0940)return;const _0x2bda80=_0x3f0940[_0x2e2c77(0xc29)]-_0x3f0940[_0x2e2c77(0x810)];if(_0x2bda80<=0x0)return;const _0x4ff8f1=Math[_0x2e2c77(0x220)](0x0,Math[_0x2e2c77(0xba1)](_0x2bda80,_0x30dafb[_0x2e2c77(0xe8a)]*_0x2bda80));if(Math[_0x2e2c77(0x1ae)](_0x3f0940[_0x2e2c77(0x60c)]-_0x4ff8f1)<0x1)return;this['_suppressScrollDispatch']=!![],_0x3f0940[_0x2e2c77(0x60c)]=_0x4ff8f1,requestAnimationFrame(()=>{this['_suppressScrollDispatch']=![];});}[_0x46af5e(0xbd5)](_0x4d0c1b){const _0x802ebe=_0x46af5e;let _0x402395=0x0;for(const _0x2a1f2e of this[_0x802ebe(0xfef)]||[]){if(!_0x2a1f2e||_0x2a1f2e['fixed_value']||_0x2a1f2e[_0x802ebe(0x102c)])continue;const _0xe8be30=resolvePointsPerHour(this[_0x802ebe(0xfe9)],_0x2a1f2e,_0x4d0c1b),_0x223985=resolveGroupBy(this[_0x802ebe(0xfe9)],_0x4d0c1b,_0x2a1f2e),_0x5908e4=groupBucketMs(_0x223985,this[_0x802ebe(0xfe9)][_0x802ebe(0xabc)],_0xe8be30);if(!isNum(_0x5908e4)||_0x5908e4<=0x0)continue;(_0x2a1f2e[_0x802ebe(0xc48)]===_0x802ebe(0x934)||_0x2a1f2e[_0x802ebe(0xc48)]==='change'||_0x2a1f2e[_0x802ebe(0xc48)]===_0x802ebe(0x7e6))&&(_0x402395=Math[_0x802ebe(0x220)](_0x402395,Math[_0x802ebe(0xba1)](_0x5908e4,0x18*0x36ee80)));const _0x446024=Array[_0x802ebe(0x902)](_0x2a1f2e[_0x802ebe(0xdf3)])?_0x2a1f2e[_0x802ebe(0xdf3)]:null;if(!_0x446024||!_0x446024[_0x802ebe(0xc02)])continue;let _0x9a7463=0x0;for(const _0x409608 of _0x446024){const _0x3b269c=Math[_0x802ebe(0x686)](toNum(_0x409608?.['period'])||0x0);if(_0x3b269c>_0x9a7463)_0x9a7463=_0x3b269c;}if(_0x9a7463<0x2)continue;_0x402395=Math[_0x802ebe(0x220)](_0x402395,(_0x9a7463-0x1)*_0x5908e4);}return _0x402395;}['getCardSize'](){const _0x5a64e0=_0x46af5e;if(this[_0x5a64e0(0xfe9)]?.[_0x5a64e0(0x815)]==='controller')return 0x1;return Math[_0x5a64e0(0x220)](0x3,Math['ceil']((toNum(this[_0x5a64e0(0xfe9)]?.[_0x5a64e0(0x43d)])||0x96)/0x32));}[_0x46af5e(0xa88)](){const _0x3b07e6=_0x46af5e,_0x208c36=this[_0x3b07e6(0xfe9)]?.[_0x3b07e6(0x43d)];if(!(_0x208c36==null||_0x208c36===_0x3b07e6(0x6c8)||_0x208c36===''))return![];const _0x21f804=this[_0x3b07e6(0xfe9)]?.['chart_mode']||_0x3b07e6(0x325);if(_0x21f804===_0x3b07e6(0x325)&&this['_config']?.[_0x3b07e6(0x4a1)])return![];const _0x4a6609=this[_0x3b07e6(0xfe9)]?.[_0x3b07e6(0x4f8)];if(_0x4a6609&&isNum(toNum(_0x4a6609[_0x3b07e6(0x72e)])))return!![];return this[_0x3b07e6(0x281)]===_0x3b07e6(0x1fe)&&_0x21f804===_0x3b07e6(0x325);}get[_0x46af5e(0xf2a)](){const _0x426900=_0x46af5e;return this[_0x426900(0x281)];}set[_0x46af5e(0xf2a)](_0x42bc0d){const _0x13115c=_0x46af5e,_0x345174=_0x42bc0d==null||_0x42bc0d===''?undefined:String(_0x42bc0d);if(_0x345174===this[_0x13115c(0x281)])return;this[_0x13115c(0x281)]=_0x345174,this[_0x13115c(0xfe9)]&&this['isConnected']&&(this[_0x13115c(0x401)]='',this[_0x13115c(0x3ec)]());}get[_0x46af5e(0x1017)](){const _0x4a5f77=_0x46af5e;return this['_layoutMode']===_0x4a5f77(0x1fe);}set['isPanel'](_0x30c38a){const _0x425001=_0x46af5e;if(_0x30c38a&&!this[_0x425001(0x281)])this[_0x425001(0xf2a)]=_0x425001(0x1fe);}[_0x46af5e(0x8cf)](){const _0x471b62=_0x46af5e,_0x4c3436=this['_config']?.['height'],_0xef95a0=_0x4c3436==null||_0x4c3436===_0x471b62(0x6c8)||_0x4c3436==='',_0xa2865c=this['_fillHeightOn'](),_0x3c3f05=(_0x5d805b,_0x143103)=>{const _0x3cc74d=_0x471b62;if(!_0x5d805b)return;if(_0x5d805b[_0x3cc74d(0x9a1)]&&_0x5d805b[_0x3cc74d(0x9a1)][_0x3cc74d(0x982)])_0x5d805b[_0x3cc74d(0x9a1)][_0x3cc74d(0xa90)](_0x3cc74d(0xc66),_0x143103);else{const _0x18d73c=_0x5d805b['getAttribute']&&_0x5d805b['getAttribute'](_0x3cc74d(0x4d6))||'',_0x198c80=_0x18d73c[_0x3cc74d(0xbc0)](/\s+/)[_0x3cc74d(0xf06)](_0x3cc74d(0xc66));if(_0x143103&&!_0x198c80&&_0x5d805b[_0x3cc74d(0x751)])_0x5d805b[_0x3cc74d(0x751)](_0x3cc74d(0x4d6),(_0x18d73c+_0x3cc74d(0x834))[_0x3cc74d(0xa11)]());else{if(!_0x143103&&_0x198c80&&_0x5d805b['setAttribute'])_0x5d805b[_0x3cc74d(0x751)](_0x3cc74d(0x4d6),_0x18d73c[_0x3cc74d(0xbc0)](/\s+/)[_0x3cc74d(0x919)](_0x3d9773=>_0x3d9773!==_0x3cc74d(0xc66))[_0x3cc74d(0x888)]('\x20'));}}},_0x3d12d9=this[_0x471b62(0xbb2)]?.[_0x471b62(0xee6)](_0x471b62(0xe1d))||this[_0x471b62(0xbb2)]?.[_0x471b62(0xee6)]('ha-card');_0x3c3f05(this,_0xa2865c),_0x3c3f05(_0x3d12d9,_0xa2865c);const _0x306859=_0xef95a0&&!_0xa2865c;if(_0x3d12d9?.[_0x471b62(0x9a1)])_0x3d12d9['classList']['toggle'](_0x471b62(0x242),_0x306859);const _0x19fa25=this[_0x471b62(0xbb2)]?.[_0x471b62(0xee6)](_0x471b62(0xd25));_0x19fa25&&!(_0xa2865c&&(this[_0x471b62(0xfe9)]?.[_0x471b62(0x815)]||_0x471b62(0x325))===_0x471b62(0x325))&&(_0x19fa25[_0x471b62(0x944)][_0x471b62(0x19f)]='',_0x19fa25[_0x471b62(0x944)][_0x471b62(0x518)]='');if(_0xa2865c){if(!this[_0x471b62(0x7c2)]&&typeof ResizeObserver!==_0x471b62(0xa73)){let _0x3f354f=0x0;this[_0x471b62(0x7c2)]=new ResizeObserver(()=>{const _0x5b294e=_0x471b62,_0x539d30=this[_0x5b294e(0xbb2)]?.[_0x5b294e(0xee6)]('.sgc-plot'),_0x313f46=_0x539d30?.[_0x5b294e(0x94e)]||0x0;if(Math[_0x5b294e(0x1ae)](_0x313f46-_0x3f354f)>0x2){_0x3f354f=_0x313f46;if(this[_0x5b294e(0xda2)])cancelAnimationFrame(this['_fillRaf']);this['_fillRaf']=requestAnimationFrame(()=>{const _0x51f0be=_0x5b294e;this[_0x51f0be(0xda2)]=0x0,this[_0x51f0be(0x401)]='';try{this['_render']();}catch(_0x2b3146){}});}}),this[_0x471b62(0x7c2)]['observe'](this);}if(this[_0x471b62(0x7c2)]&&_0x19fa25&&this[_0x471b62(0x68f)]!==_0x19fa25){if(this[_0x471b62(0x68f)])this[_0x471b62(0x7c2)][_0x471b62(0x4d5)](this[_0x471b62(0x68f)]);this[_0x471b62(0x7c2)][_0x471b62(0xe73)](_0x19fa25),this[_0x471b62(0x68f)]=_0x19fa25;}}else this[_0x471b62(0x7c2)]&&(this[_0x471b62(0x7c2)][_0x471b62(0xf4a)](),this['_fillResizeObs']=null,this['_fillObsPlot']=null);}[_0x46af5e(0x316)](){const _0x66f04d=_0x46af5e,_0x358d3=this[_0x66f04d(0xfe9)]?.[_0x66f04d(0x4f8)]||{};if(this[_0x66f04d(0xfe9)]?.[_0x66f04d(0x815)]===_0x66f04d(0x8fe)){const _0x305ab6={'min_rows':0x1,'min_columns':0x4};return _0x305ab6['rows']=_0x358d3[_0x66f04d(0x72e)]!=null?_0x358d3[_0x66f04d(0x72e)]:_0x66f04d(0x6c8),_0x305ab6['columns']=_0x358d3[_0x66f04d(0xd4a)]!=null?_0x358d3[_0x66f04d(0xd4a)]:'full',_0x305ab6;}const _0x451259=this[_0x66f04d(0xfe9)]?.['height'],_0x3a4cbb=_0x451259==null||_0x451259===_0x66f04d(0x6c8)||_0x451259==='',_0x353364=_0x358d3[_0x66f04d(0x72e)]===_0x66f04d(0x6c8),_0x52cfa3={'min_rows':_0x3a4cbb&&_0x353364?0x5:0x2,'min_columns':0x4};if(_0x358d3[_0x66f04d(0x72e)]!=null&&_0x358d3[_0x66f04d(0x72e)]!==_0x66f04d(0x6c8))_0x52cfa3[_0x66f04d(0x72e)]=_0x358d3[_0x66f04d(0x72e)];if(_0x358d3['columns']!=null)_0x52cfa3[_0x66f04d(0xd4a)]=_0x358d3['columns'];return _0x52cfa3;}[_0x46af5e(0x102e)](){const _0x5ab3e1=_0x46af5e;return this[_0x5ab3e1(0xfe9)];}[_0x46af5e(0x3ad)](){const _0x5142fa=_0x46af5e;this[_0x5142fa(0xd9c)]&&(clearInterval(this[_0x5142fa(0xd9c)]),this[_0x5142fa(0xd9c)]=null);if(this[_0x5142fa(0x75f)]===![]){this[_0x5142fa(0x5f1)]&&(clearInterval(this[_0x5142fa(0x5f1)]),this[_0x5142fa(0x5f1)]=null);return;}if(this[_0x5142fa(0xfe9)][_0x5142fa(0x815)]===_0x5142fa(0x8fe)){this[_0x5142fa(0x5f1)]&&(clearInterval(this[_0x5142fa(0x5f1)]),this[_0x5142fa(0x5f1)]=null);if(this[_0x5142fa(0x793)])clearInterval(this['_ctrlTickTimer']);this[_0x5142fa(0x793)]=setInterval(()=>{const _0x4806e7=_0x5142fa;if(this[_0x4806e7(0x31e)]()!==this['_lastDpLabel'])this[_0x4806e7(0x3ec)]();},0xea60);return;}this['_ctrlTickTimer']&&(clearInterval(this[_0x5142fa(0x793)]),this['_ctrlTickTimer']=null);const _0x2061b1=this[_0x5142fa(0xfe9)][_0x5142fa(0xb51)],_0x4593bb=_0x2061b1===0x0||_0x2061b1==='0'||_0x2061b1===![]||String(_0x2061b1)[_0x5142fa(0x3fb)]()==='off',_0x3b474e=toNum(_0x2061b1);if(_0x4593bb){}else{if(isNum(_0x3b474e)&&_0x3b474e>0x0)this[_0x5142fa(0xd9c)]=setInterval(()=>{const _0x15fdec=_0x5142fa;this['_fetcher']['clearCache'](),this[_0x15fdec(0x9c5)]();},Math[_0x5142fa(0x220)](0x5,_0x3b474e)*0x3e8);else{if(this['_hasAnyAggregatedEntity']()){const _0x5d3b45=toNum(this[_0x5142fa(0xfe9)][_0x5142fa(0xabc)])||0x18,_0x162791=['date',_0x5142fa(0x6f1),'month',_0x5142fa(0x73e)][_0x5142fa(0xf06)](resolveGroupBy(this['_config'],_0x5d3b45));this[_0x5142fa(0xd9c)]=setInterval(()=>{const _0x5e4fb2=_0x5142fa;this[_0x5e4fb2(0x9c5)]();},(_0x162791?0xf:0x5)*0x3c*0x3e8);}}}this['_slideTimer']&&(clearInterval(this[_0x5142fa(0x5f1)]),this[_0x5142fa(0x5f1)]=null),this[_0x5142fa(0x1038)]&&this['_isLiveTrackingNeeded']()&&(this['_slideTimer']=setInterval(()=>this[_0x5142fa(0x53c)](),LIVE_SLIDE_INTERVAL_MS));}[_0x46af5e(0x3a1)](){const _0x1968b3=_0x46af5e;if(!this[_0x1968b3(0xfef)]?.['length'])return![];return this[_0x1968b3(0xfef)][_0x1968b3(0x42a)](_0x3f6ceb=>this[_0x1968b3(0xd6c)](_0x3f6ceb));}[_0x46af5e(0x931)](){const _0x31ef1f=_0x46af5e;if(this['_visHandler'])return;this['_visHandler']=()=>this[_0x31ef1f(0xf00)](),document[_0x31ef1f(0x171)](_0x31ef1f(0xe92),this[_0x31ef1f(0x812)]),this[_0x31ef1f(0xaf7)]=!![],typeof IntersectionObserver===_0x31ef1f(0x8c6)&&(this['_io']=new IntersectionObserver(_0x1f5940=>{const _0x4f8216=_0x31ef1f;for(const _0x511c7f of _0x1f5940)this[_0x4f8216(0xaf7)]=_0x511c7f[_0x4f8216(0xc64)];this[_0x4f8216(0xf00)]();}),this[_0x31ef1f(0x986)][_0x31ef1f(0xe73)](this));}['_teardownVisibilityWatch'](){const _0x115136=_0x46af5e;this[_0x115136(0x812)]&&(document[_0x115136(0x1ea)]('visibilitychange',this[_0x115136(0x812)]),this['_visHandler']=null);if(this[_0x115136(0x986)]){try{this[_0x115136(0x986)][_0x115136(0xf4a)]();}catch{}this[_0x115136(0x986)]=null;}this[_0x115136(0x75f)]=undefined;}[_0x46af5e(0x9ea)](){const _0x688d4b=_0x46af5e;return(typeof document===_0x688d4b(0xa73)||document[_0x688d4b(0xcb8)]!=='hidden')&&this['_ioVisible']!==![];}[_0x46af5e(0x503)](){const _0xf617c3=_0x46af5e;if(this[_0xf617c3(0x75f)]!==![])return;if(typeof document!==_0xf617c3(0xa73)&&document[_0xf617c3(0xcb8)]===_0xf617c3(0x169))return;const _0x1d04bb=Date[_0xf617c3(0x69d)]();if(_0x1d04bb-(this[_0xf617c3(0xb21)]||0x0)<VIS_HEARTBEAT_MS)return;this[_0xf617c3(0xb21)]=_0x1d04bb;if(this[_0xf617c3(0x986)])try{this['_io'][_0xf617c3(0x4d5)](this),this[_0xf617c3(0x986)][_0xf617c3(0xe73)](this);return;}catch(_0x2cc824){}if(this[_0xf617c3(0x9ea)]())this[_0xf617c3(0xf00)]();}['_onVisChange'](){const _0x31b8fe=_0x46af5e,_0xae64f1=this['_cardVisibleNow']();if(!this['_config']){this['_wasVisible']=_0xae64f1;return;}if(_0xae64f1===this['_wasVisible'])return;this['_wasVisible']=_0xae64f1;if(!_0xae64f1){this['_pollTimer']&&(clearInterval(this[_0x31b8fe(0xd9c)]),this['_pollTimer']=null);this['_slideTimer']&&(clearInterval(this['_slideTimer']),this['_slideTimer']=null);this[_0x31b8fe(0x793)]&&(clearInterval(this[_0x31b8fe(0x793)]),this[_0x31b8fe(0x793)]=null);return;}this['_setupTimers']();if(this[_0x31b8fe(0xfe9)]['chart_mode']===_0x31b8fe(0x8fe)){this[_0x31b8fe(0x3ec)]();return;}if(!this[_0x31b8fe(0xf9a)])return;if(Date[_0x31b8fe(0x69d)]()-(this[_0x31b8fe(0xc8b)]||0x0)>0xea60)this['_scheduleUpdate']();else this[_0x31b8fe(0x53c)]();}[_0x46af5e(0x6ba)](){const _0x12374a=_0x46af5e,_0x3f883f=this[_0x12374a(0xfe9)];if(_0x3f883f[_0x12374a(0xb1f)]||_0x3f883f[_0x12374a(0x175)]&&this['_dpSynced']){if(this[_0x12374a(0x8cd)]==='custom')return![];if((this[_0x12374a(0x478)]||0x0)!==0x0)return![];}if(_0x3f883f[_0x12374a(0xbc9)]&&this[_0x12374a(0x5b9)]&&this[_0x12374a(0x5b9)][_0x12374a(0x1028)]()<=Date['now']())return![];return!![];}[_0x46af5e(0x2cd)](_0x157535){const _0x59f15b=_0x46af5e,_0x12d9cc=_0x157535?.[_0x59f15b(0xc3c)]||_0x157535?.[_0x59f15b(0xefa)];if(_0x12d9cc===_0x59f15b(0x846)||_0x12d9cc===_0x59f15b(0x8fb))return!![];return this[_0x59f15b(0x6ba)]();}[_0x46af5e(0x9c5)](){const _0xce75dd=_0x46af5e;if(this[_0xce75dd(0xf8a)])return;this[_0xce75dd(0xf8a)]=!![],Promise[_0xce75dd(0x6fb)]()[_0xce75dd(0x91a)](()=>{const _0x4e3e86=_0xce75dd;this[_0x4e3e86(0xf8a)]=![],this[_0x4e3e86(0x258)]()[_0x4e3e86(0x9d5)](_0x448e09=>console[_0x4e3e86(0x969)](_0x4e3e86(0x943),_0x448e09));});}['_scheduleRender'](){const _0x41e997=_0x46af5e;if(this[_0x41e997(0x7a6)])return;this['_renderRAF']=requestAnimationFrame(()=>{const _0x4649d3=_0x41e997;this[_0x4649d3(0x7a6)]=null;try{this[_0x4649d3(0x103c)]();}catch(_0x1da5b5){const _0x3f1d80=Date[_0x4649d3(0x69d)]();(!this[_0x4649d3(0x619)]||_0x3f1d80-this['_renderErrTs']>0xea60)&&(this[_0x4649d3(0x619)]=_0x3f1d80,console[_0x4649d3(0x969)]('[sgc]\x20render\x20failed',_0x1da5b5));}});}[_0x46af5e(0x349)](_0x47025a,_0xa479ce){const _0x173c27=_0x46af5e;if(!_0x47025a||typeof _0x47025a!==_0x173c27(0xade)||!_0x47025a[_0x173c27(0xf06)]('{{')&&!_0x47025a[_0x173c27(0xf06)]('{%'))return _0x47025a;return this[_0x173c27(0x9ce)][_0x173c27(0xc3f)](this[_0x173c27(0x4c2)](_0x47025a,_0xa479ce||null))||null;}[_0x46af5e(0xc2f)](_0x4379e5,_0x4618e0){const _0x27a5f8=_0x46af5e;return this[_0x27a5f8(0x349)](_0x4379e5,_0x4618e0);}[_0x46af5e(0x7be)](_0x1e0a49,_0x4c63bc){const _0x4be861=_0x46af5e;if(typeof _0x1e0a49!=='string'||!_0x1e0a49[_0x4be861(0xf06)]('{{')&&!_0x1e0a49[_0x4be861(0xf06)]('{%'))return _0x1e0a49;return this[_0x4be861(0x9ce)][_0x4be861(0xc3f)](this['_entityTplKey'](_0x1e0a49,_0x4c63bc||null))??null;}[_0x46af5e(0x3c6)](_0x23b0c9,_0x1a8a9f){const _0x21c487=_0x46af5e,_0x2c5163=this[_0x21c487(0x349)](_0x23b0c9,_0x1a8a9f);if(!_0x2c5163||typeof _0x2c5163!==_0x21c487(0xade)||!_0x2c5163[_0x21c487(0xf06)](_0x21c487(0x26c)))return _0x2c5163;try{const _0x244f22=this[_0x21c487(0xbb2)]?.[_0x21c487(0xee6)](_0x21c487(0xe1d))||this[_0x21c487(0xbb2)]||this,_0x3bdd4a=document[_0x21c487(0xbde)](_0x21c487(0x7db));_0x3bdd4a[_0x21c487(0x944)][_0x21c487(0xd95)]=_0x2c5163,_0x3bdd4a['style'][_0x21c487(0x4c4)]=_0x21c487(0x412),_0x244f22[_0x21c487(0x319)](_0x3bdd4a);const _0x46a11b=getComputedStyle(_0x3bdd4a)[_0x21c487(0xd95)];return _0x3bdd4a[_0x21c487(0x547)](),_0x46a11b&&_0x46a11b!==''?_0x46a11b:_0x2c5163;}catch(_0x27cba4){return _0x2c5163;}}['_applyTemplatedBools'](){const _0x5d2f0a=_0x46af5e,_0x5c900f=this[_0x5d2f0a(0x9ce)];if(!_0x5c900f)return![];let _0x5b68b2=![];if(this[_0x5d2f0a(0xf48)]&&this[_0x5d2f0a(0xfe9)])for(const _0xae11e6 in this[_0x5d2f0a(0xf48)]){const _0x46637b=parseTemplateBool(_0x5c900f[_0x5d2f0a(0xc3f)](this[_0x5d2f0a(0xf48)][_0xae11e6]),CARD_DEFAULTS[_0xae11e6]);this['_config'][_0xae11e6]!==_0x46637b&&(this['_config'][_0xae11e6]=_0x46637b,_0x5b68b2=!![]);}if(this['_tplBoolEntities']&&this[_0x5d2f0a(0xfef)]){const _0x4491b2=new Set([_0x5d2f0a(0x806),_0x5d2f0a(0xfe4),_0x5d2f0a(0xa72),_0x5d2f0a(0xd0a),'show_in_legend',_0x5d2f0a(0xad9),'show_points',_0x5d2f0a(0xa1a)]);for(let _0x4db656=0x0;_0x4db656<this['_tplBoolEntities'][_0x5d2f0a(0xc02)];_0x4db656++){const _0x5c234b=this['_tplBoolEntities'][_0x4db656],_0x4a85e9=this[_0x5d2f0a(0xfef)][_0x4db656];if(!_0x5c234b||!_0x4a85e9)continue;for(const _0x1e643d in _0x5c234b){const _0x57ab29=parseTemplateBool(_0x5c900f[_0x5d2f0a(0xc3f)](this[_0x5d2f0a(0x4c2)](_0x5c234b[_0x1e643d],_0x4a85e9['entity'])),ENTITY_DEFAULTS[_0x1e643d]);_0x4a85e9[_0x1e643d]!==_0x57ab29&&(_0x4a85e9[_0x1e643d]=_0x57ab29,_0x5b68b2=!![]);if(_0x4491b2[_0x5d2f0a(0x101d)](_0x1e643d))continue;for(const _0x2b24b7 of this[_0x5d2f0a(0xfef)]){_0x2b24b7&&_0x2b24b7[_0x5d2f0a(0xed4)]===_0x4db656&&_0x2b24b7[_0x1e643d]!==_0x57ab29&&(_0x2b24b7[_0x1e643d]=_0x57ab29,_0x5b68b2=!![]);}}}}return _0x5b68b2;}['_entityTplKey'](_0xf21eb3,_0x3df43d){const _0x13ec48=_0x46af5e;return _0x3df43d&&typeof _0xf21eb3===_0x13ec48(0xade)&&/\bentity\b/[_0x13ec48(0x920)](_0xf21eb3)?_0xf21eb3+'\u0000'+_0x3df43d:_0xf21eb3;}[_0x46af5e(0x967)](){const _0x540927=_0x46af5e;if(!this['_hass']?.[_0x540927(0xb9b)]){this[_0x540927(0x6bf)](),this[_0x540927(0x7e5)]=null;return;}const _0x428922=new Map(),_0x1c86cc=_0x6c6fb8=>{const _0x193fb0=_0x540927;if(!_0x428922[_0x193fb0(0x101d)](_0x6c6fb8))_0x428922[_0x193fb0(0xa2d)](_0x6c6fb8,{'template':_0x6c6fb8,'entId':null});};if(this[_0x540927(0xf48)]){for(const _0x4fe80f in this['_tplBoolCard'])_0x1c86cc(this[_0x540927(0xf48)][_0x4fe80f]);}for(let _0x55191e=0x0;_0x55191e<(this[_0x540927(0x33c)]||[])[_0x540927(0xc02)];_0x55191e++){const _0x40a186=this[_0x540927(0x33c)][_0x55191e];if(!_0x40a186)continue;const _0x1ec45a=this[_0x540927(0xfef)]?.[_0x55191e]?.[_0x540927(0x974)]||null;for(const _0x1c233c in _0x40a186){const _0x5e20d0=this[_0x540927(0x4c2)](_0x40a186[_0x1c233c],_0x1ec45a);if(!_0x428922[_0x540927(0x101d)](_0x5e20d0))_0x428922[_0x540927(0xa2d)](_0x5e20d0,{'template':_0x40a186[_0x1c233c],'entId':_0x5e20d0===_0x40a186[_0x1c233c]?null:_0x1ec45a});}}const _0x53518e=[_0x540927(0xd95),_0x540927(0x100e),_0x540927(0xff6),_0x540927(0xb88),_0x540927(0x5b0),_0x540927(0xdee),_0x540927(0xce6)];for(const _0x1a777d of this['_entities']||[]){for(const _0x457125 of _0x53518e){const _0x58368b=_0x1a777d[_0x457125];if(typeof _0x58368b===_0x540927(0xade)&&(_0x58368b[_0x540927(0xf06)]('{{')||_0x58368b[_0x540927(0xf06)]('{%'))){const _0x2bb83d=_0x1a777d[_0x540927(0x974)]||null,_0x2ef22f=this['_entityTplKey'](_0x58368b,_0x2bb83d);if(!_0x428922[_0x540927(0x101d)](_0x2ef22f))_0x428922['set'](_0x2ef22f,{'template':_0x58368b,'entId':_0x2ef22f===_0x58368b?null:_0x2bb83d});}}}const _0x5b3cd7=[_0x540927(0x5bd),'x_axis_color',_0x540927(0xdca),_0x540927(0xc57),_0x540927(0xb57),'card_icon_color',_0x540927(0x90f)];for(const _0x8fc7a3 of _0x5b3cd7){const _0x4c79fa=this[_0x540927(0xfe9)]?.[_0x8fc7a3];if(typeof _0x4c79fa===_0x540927(0xade)&&(_0x4c79fa[_0x540927(0xf06)]('{{')||_0x4c79fa['includes']('{%')))_0x1c86cc(_0x4c79fa);}for(const _0x3cdbd0 of this['_config']?.[_0x540927(0x163)]||[]){for(const _0x421149 of['start',_0x540927(0x244),_0x540927(0xfe2),_0x540927(0x2ea),_0x540927(0xee4),_0x540927(0xf1f)]){const _0xeba72f=_0x3cdbd0?.[_0x421149];if(typeof _0xeba72f===_0x540927(0xade)&&(_0xeba72f[_0x540927(0xf06)]('{{')||_0xeba72f[_0x540927(0xf06)]('{%')))_0x1c86cc(_0xeba72f);}}const _0x45cd06=_0x428922[_0x540927(0xc44)]+':'+[..._0x428922[_0x540927(0x3ab)]()][_0x540927(0xd09)]()[_0x540927(0x888)]('\x0a');if(_0x45cd06===this[_0x540927(0x7e5)]&&this[_0x540927(0xbf2)]['length']+(this[_0x540927(0xdb3)]||0x0)===_0x428922['size'])return;this[_0x540927(0x7e5)]=_0x45cd06,this['_teardownColorTemplates']();if(!_0x428922[_0x540927(0xc44)])return;const _0xfd590d=this[_0x540927(0x64b)];for(const [_0x56b37d,_0x3b8509]of _0x428922){try{const _0x17a0d6=this[_0x540927(0x1dc)][_0x540927(0xb9b)][_0x540927(0x2ae)](_0x41e970=>{const _0x280133=_0x540927,_0x54da6b=normalizeTemplateResult(_0x41e970?.[_0x280133(0x83d)]);if(!_0x54da6b)return;const _0x55179c=this[_0x280133(0x9ce)][_0x280133(0xc3f)](_0x56b37d);if(_0x55179c===_0x54da6b)return;this[_0x280133(0x9ce)][_0x280133(0xa2d)](_0x56b37d,_0x54da6b),this['_applyTemplatedBools'](),this[_0x280133(0x401)]='',this[_0x280133(0x3ec)]();},_0x3b8509[_0x540927(0x2f1)]?{'type':_0x540927(0xc5c),'template':_0x3b8509[_0x540927(0xf07)],'variables':{'entity':_0x3b8509['entId']}}:{'type':_0x540927(0xc5c),'template':_0x3b8509[_0x540927(0xf07)]});this[_0x540927(0xdb3)]=(this[_0x540927(0xdb3)]||0x0)+0x1,_0x17a0d6[_0x540927(0x91a)](_0x405679=>{const _0x2d40c6=_0x540927;if(this[_0x2d40c6(0x64b)]===_0xfd590d)this[_0x2d40c6(0xdb3)]=Math[_0x2d40c6(0x220)](0x0,(this[_0x2d40c6(0xdb3)]||0x0)-0x1);if(!this[_0x2d40c6(0x191)]||this[_0x2d40c6(0x64b)]!==_0xfd590d){try{if(typeof _0x405679===_0x2d40c6(0x8c6))_0x405679();}catch{}return;}this[_0x2d40c6(0xbf2)][_0x2d40c6(0xb31)](_0x405679);})['catch'](()=>{const _0x159c53=_0x540927;if(this[_0x159c53(0x64b)]===_0xfd590d)this[_0x159c53(0xdb3)]=Math[_0x159c53(0x220)](0x0,(this[_0x159c53(0xdb3)]||0x0)-0x1);});}catch(_0x54e8d9){console['warn'](_0x540927(0x92b),_0x3b8509[_0x540927(0xf07)],_0x54e8d9);}}}[_0x46af5e(0x6bf)](){const _0x103a3e=_0x46af5e;this['_tplGen']=(this['_tplGen']||0x0)+0x1,this[_0x103a3e(0xdb3)]=0x0;for(const _0xdfd0ce of this['_colorTemplateUnsubs']){try{if(typeof _0xdfd0ce==='function')_0xdfd0ce();}catch{}}this[_0x103a3e(0xbf2)]=[];}[_0x46af5e(0x6f7)](_0x366c80){const _0x524699=_0x46af5e;if(!_0x366c80||!this[_0x524699(0x1dc)]||!this[_0x524699(0xfe9)])return _0x366c80;const _0x3d3d10=this['_config'],_0x2b7d23=toNum(_0x3d3d10[_0x524699(0x2a8)])>0x0;if(_0x3d3d10[_0x524699(0x746)]||_0x3d3d10['graph_start']&&!_0x2b7d23)return _0x366c80;if(_0x366c80[_0x524699(0x244)]['getTime']()<Date[_0x524699(0x69d)]()-0xea60)return _0x366c80;const _0x9c52d8=_0x366c80[_0x524699(0x4b0)];let _0x4c9d15=0x0;for(const _0x4b3f8b of this[_0x524699(0xfef)]||[]){if(!_0x4b3f8b?.['data_attribute'])continue;const _0x158509=this[_0x524699(0x1dc)][_0x524699(0x4f9)][_0x4b3f8b['entity']];if(!_0x158509)continue;const _0x29f485=synthesizeForecastSeries(_0x158509,_0x4b3f8b,_0x9c52d8,this[_0x524699(0x1dc)]);if(!_0x29f485['length'])continue;const _0x526a19=_0x29f485[_0x29f485['length']-0x1]['t'];if(_0x526a19>_0x4c9d15)_0x4c9d15=_0x526a19;}return _0x4c9d15>_0x366c80[_0x524699(0x244)]['getTime']()&&(_0x366c80['end']=new Date(_0x4c9d15+0x36ee80)),_0x366c80;}async['_updateHistory'](){const _0x5bd39c=_0x46af5e;if(!this[_0x5bd39c(0x1dc)]||!this[_0x5bd39c(0xfe9)])return;const _0x34e4aa=this[_0x5bd39c(0x55a)]=(this[_0x5bd39c(0x55a)]||0x0)+0x1;this[_0x5bd39c(0xe48)]=Date[_0x5bd39c(0x69d)](),this[_0x5bd39c(0xbe0)]=this[_0x5bd39c(0xc6c)]();if(this[_0x5bd39c(0xfe9)][_0x5bd39c(0x815)]===_0x5bd39c(0x8fe)){this[_0x5bd39c(0xc8b)]=Date[_0x5bd39c(0x69d)]();if(this[_0x5bd39c(0x191)])this[_0x5bd39c(0x967)]();this[_0x5bd39c(0x3ec)]();return;}this[_0x5bd39c(0xc60)]=[],this[_0x5bd39c(0x6f7)](this[_0x5bd39c(0xbe0)]);const _0x5748ba=toNum(this[_0x5bd39c(0xfe9)]?.[_0x5bd39c(0x2a8)]),_0x1fd8fe=toNum(this[_0x5bd39c(0xfe9)]?.['__sgcExtAnchorMs']),_0x32ad40=isNum(_0x1fd8fe)&&_0x1fd8fe>0x0?new Date(Math['min'](_0x1fd8fe,this[_0x5bd39c(0xbe0)][_0x5bd39c(0x244)]['getTime']())):this[_0x5bd39c(0xbe0)]['end'],_0x3de9a2=isNum(_0x5748ba)&&_0x5748ba>0x0?{'start':new Date(_0x32ad40[_0x5bd39c(0x1028)]()-_0x5748ba*0x36ee80),'end':_0x32ad40}:this[_0x5bd39c(0xbe0)];for(const _0x437120 of this['_entities']){if(_0x437120&&_0x437120[_0x5bd39c(0xed4)]!=null&&_0x437120[_0x5bd39c(0xbf6)]){const _0x413ef5=resolveOffsetHours(this[_0x5bd39c(0xfef)][_0x437120[_0x5bd39c(0xed4)]]?.[_0x5bd39c(0x4ff)],this[_0x5bd39c(0x1dc)])||0x0;_0x437120[_0x5bd39c(0x4ff)]=_0x413ef5+this[_0x5bd39c(0x59b)](_0x437120[_0x5bd39c(0xbf6)],_0x3de9a2);}}let {start:_0x209135,end:_0x1ef1f6}=this[_0x5bd39c(0xbe0)],_0x208fd1=_0x209135[_0x5bd39c(0x1028)](),_0x4dcb5f=_0x1ef1f6['getTime']();const _0x487987=this[_0x5bd39c(0xfe9)],_0x26e854=Math['max'](0x1,(_0x4dcb5f-_0x208fd1)/0x36ee80),_0x13fbd7=_0x26e854>=0x18?0xea60:0x2710,_0x1cf02c=Math[_0x5bd39c(0xedc)](_0x208fd1/_0x13fbd7)*_0x13fbd7;_0x1cf02c!==_0x208fd1&&(_0x208fd1=_0x1cf02c,_0x209135=new Date(_0x1cf02c),this[_0x5bd39c(0xbe0)][_0x5bd39c(0x4b0)]=_0x209135);Object[_0x5bd39c(0x712)](_0x487987,_0x5bd39c(0xbdf),{'value':activeScaleRule(_0x487987,(_0x4dcb5f-_0x208fd1)/0x36ee80),'enumerable':![],'writable':!![],'configurable':!![]});const _0x2a58ac=[];for(const _0x49bead of this[_0x5bd39c(0xfef)]||[]){_0x49bead?.[_0x5bd39c(0xd53)]&&!(this[_0x5bd39c(0x558)]&&_0x49bead[_0x5bd39c(0xd53)]in this[_0x5bd39c(0x558)])&&_0x2a58ac[_0x5bd39c(0xb31)](_0x49bead[_0x5bd39c(0xd53)]);}if(_0x2a58ac[_0x5bd39c(0xc02)]){try{await this[_0x5bd39c(0x7a7)](_0x2a58ac);}catch{}if(_0x34e4aa!==this['_updateSeq'])return;}const _0x4d9c23=this[_0x5bd39c(0x8a3)](_0x26e854);this[_0x5bd39c(0xa54)](_0x26e854);const _0x992fb9=new Set(),_0x264cdc=_0x51887c=>{const _0x4165e1=_0x5bd39c;if(!_0x51887c)return![];if(_0x992fb9['has'](_0x51887c))return!![];if(_0x51887c[_0x4165e1(0xbef)]||_0x51887c['data_attribute']||_0x51887c['attribute']||_0x51887c[_0x4165e1(0xa7e)])return![];if(autoStateMap(_0x51887c,this[_0x4165e1(0x1dc)],this[_0x4165e1(0xfe9)]?.[_0x4165e1(0x815)]))return![];if(_0x51887c['statistic_id'])return!![];const _0x44e4d1=_0x51887c[_0x4165e1(0xec9)]||this[_0x4165e1(0xfe9)][_0x4165e1(0xec9)]||'auto';if(_0x44e4d1===_0x4165e1(0x9bd))return![];if(_0x4d9c23['source']!=='statistics'){if(_0x4d9c23[_0x4165e1(0xbd2)]&&this[_0x4165e1(0x79a)](_0x51887c))return!![];if(_0x44e4d1===_0x4165e1(0x6c8)&&this[_0x4165e1(0x1b0)](_0x51887c,_0x4d9c23,_0x26e854))return![];return this[_0x4165e1(0xf71)](_0x51887c)&&!!_0x4d9c23[_0x4165e1(0xa0e)]&&this[_0x4165e1(0x79a)](_0x51887c);}return this[_0x4165e1(0x79a)](_0x51887c);},_0x511600=new Map(),_0x5c22f1=new Map(),_0x4d1eaa=new Array(this[_0x5bd39c(0xfef)]['length'])[_0x5bd39c(0x290)](null),_0x59b81e=new Array(this[_0x5bd39c(0xfef)][_0x5bd39c(0xc02)])[_0x5bd39c(0x290)](![]);this['_entities'][_0x5bd39c(0xd27)]((_0x515930,_0x373381)=>{const _0x5adf28=_0x5bd39c;if(_0x515930[_0x5adf28(0xbef)])return;if(_0x515930[_0x5adf28(0x102c)])return;const _0x100fbf=resolveOffsetHours(_0x515930['offset'],this['_hass']);if(_0x264cdc(_0x515930)){const _0x327bdf=this['_getStatId'](_0x515930),_0x18b568=this[_0x5adf28(0x179)](_0x515930,_0x4d9c23),_0x2e8122=_0x100fbf+'|'+_0x18b568;if(!_0x5c22f1['has'](_0x2e8122))_0x5c22f1[_0x5adf28(0xa2d)](_0x2e8122,{'offH':_0x100fbf,'period':_0x18b568,'ids':[]});const _0x1ef90f=_0x5c22f1['get'](_0x2e8122)[_0x5adf28(0x740)];if(!_0x1ef90f[_0x5adf28(0xf06)](_0x327bdf))_0x1ef90f['push'](_0x327bdf);_0x4d1eaa[_0x373381]=_0x327bdf+'__'+_0x100fbf+'__'+_0x18b568,_0x59b81e[_0x373381]=!![];}else{if(_0x515930['entity']){if(!_0x511600[_0x5adf28(0x101d)](_0x100fbf))_0x511600[_0x5adf28(0xa2d)](_0x100fbf,[]);const _0x5cefae=_0x511600['get'](_0x100fbf),_0x4667da=_0x515930['entity'],_0x39ddbd=this[_0x5adf28(0x88b)](_0x515930,_0x373381),_0x55e788=_0x5cefae['find'](_0x5d5abf=>_0x5d5abf['id']===_0x4667da);if(!_0x55e788)_0x5cefae[_0x5adf28(0xb31)]({'id':_0x4667da,'attribute':_0x39ddbd,'attrs':_0x39ddbd?[_0x39ddbd]:[]});else{if(_0x39ddbd){if(!_0x55e788[_0x5adf28(0xf0f)])_0x55e788[_0x5adf28(0xf0f)]=_0x39ddbd;if(!_0x55e788[_0x5adf28(0x76e)]['includes'](_0x39ddbd))_0x55e788[_0x5adf28(0x76e)]['push'](_0x39ddbd);}}_0x4d1eaa[_0x373381]=_0x4667da+'__'+_0x100fbf;}}});const _0x45a6e5=this['_config']['cache']!==![],_0x2ab663={},_0x1396a9={},_0x42b10e=new Set();let _0x4f49ed=0x0;for(const _0x204262 of this['_entities']||[]){const _0x515d86=toNum(_0x204262?.[_0x5bd39c(0x510)]);if(_0x515d86>0x0&&_0x515d86*0x36ee80>_0x4f49ed)_0x4f49ed=_0x515d86*0x36ee80;}const _0x5ba6c2=this[_0x5bd39c(0xbd5)]((_0x4dcb5f-_0x208fd1)/0x36ee80),_0x721125=new Set();for(const _0x37d1ab of this[_0x5bd39c(0xfef)]){if(!_0x264cdc(_0x37d1ab)&&!(_0x4d9c23[_0x5bd39c(0x4ac)]&&this[_0x5bd39c(0x79a)](_0x37d1ab)))continue;const _0x4cf8c9=DataProcessor[_0x5bd39c(0x51d)](_0x37d1ab['aggregate_func']||'avg');for(const _0x527556 of _0x4cf8c9)_0x721125['add'](_0x527556);if((_0x37d1ab[_0x5bd39c(0xc48)]||'avg')===_0x5bd39c(0x220))_0x721125[_0x5bd39c(0x982)]('min');(_0x37d1ab[_0x5bd39c(0xc48)]||_0x5bd39c(0xfbc))===_0x5bd39c(0xc09)&&(_0x721125['add'](_0x5bd39c(0xba1)),_0x721125[_0x5bd39c(0x982)](_0x5bd39c(0x220))),_0x37d1ab[_0x5bd39c(0xd0a)]&&(_0x721125['add'](_0x5bd39c(0xba1)),_0x721125[_0x5bd39c(0x982)]('max'));}if(!_0x721125[_0x5bd39c(0xc44)])_0x721125[_0x5bd39c(0x982)](_0x5bd39c(0xd0e));const _0x53078a=Array[_0x5bd39c(0xf9e)](_0x721125),_0x14a9c8=_0x475fc4=>{const _0x397e8a=_0x5bd39c,{offH:_0x2bb624,period:_0xed8ca0,ids:_0x5a2b8e}=_0x475fc4,_0x5b1737=_0x2bb624*0x36ee80,_0x200086=new Date(_0x208fd1-_0x5b1737-_0x4f49ed-_0x5ba6c2),_0xbe70dd=new Date(_0x4dcb5f-_0x5b1737);return this[_0x397e8a(0x4db)]['fetchStatistics'](this[_0x397e8a(0x1dc)],_0x5a2b8e,_0x200086,_0xbe70dd,_0xed8ca0,_0x45a6e5,_0x53078a)[_0x397e8a(0x91a)](async _0x1360a3=>{const _0x5673ff=_0x397e8a;if(_0xed8ca0==='5minute'){const _0x2d4d25=_0x208fd1-_0x5b1737,_0x4285b0=0x36ee80,_0xee5659=[];for(const _0x327e30 of _0x5a2b8e){const _0x487992=_0x1360a3[_0x327e30];if(!_0x487992||!_0x487992[_0x5673ff(0xc02)]){_0xee5659[_0x5673ff(0xb31)](_0x327e30);continue;}if(!isNum(_0x487992[0x0]?.['t'])||_0x487992[0x0]['t']-_0x2d4d25>_0x4285b0)_0xee5659[_0x5673ff(0xb31)](_0x327e30);}if(_0xee5659[_0x5673ff(0xc02)])try{const _0xc5838b=await this['_fetcher'][_0x5673ff(0xa52)](this[_0x5673ff(0x1dc)],_0xee5659,_0x200086,_0xbe70dd,'hour',_0x45a6e5,_0x53078a);for(const _0x164445 of _0xee5659){const _0x5118ef=_0x1360a3[_0x164445],_0x511165=_0xc5838b[_0x164445];if(!_0x511165||!_0x511165['length'])continue;if(!_0x5118ef||!_0x5118ef[_0x5673ff(0xc02)]){_0x1360a3[_0x164445]=_0x511165;continue;}const _0x3af070=_0x5118ef[0x0]['t'],_0x1b6e9a=_0x511165[_0x5673ff(0x919)](_0x2d039d=>_0x2d039d['t']+0x36ee80<=_0x3af070);if(!_0x1b6e9a[_0x5673ff(0xc02)]){_0x1360a3[_0x164445]=_0x5118ef;continue;}const _0x1ca796=_0x1b6e9a[_0x1b6e9a[_0x5673ff(0xc02)]-0x1],_0x1bfaad=_0x5118ef[0x0],_0xd375c3=isNum(_0x1bfaad[_0x5673ff(0x7e6)])&&isNum(_0x1ca796[_0x5673ff(0x7e6)])&&isNum(_0x1bfaad[_0x5673ff(0xe34)])?{..._0x1bfaad,'change':_0x1bfaad[_0x5673ff(0x7e6)]-_0x1ca796['sum']}:_0x1bfaad;_0x1360a3[_0x164445]=_0x1b6e9a['concat']([_0xd375c3],_0x5118ef[_0x5673ff(0x165)](0x1));}}catch{}}for(const _0x1f4eb4 in _0x1360a3){const _0x4b85fe=_0x5b1737!==0x0?_0x1360a3[_0x1f4eb4]['map'](_0x2bfc78=>({..._0x2bfc78,'t':_0x2bfc78['t']+_0x5b1737})):_0x1360a3[_0x1f4eb4];_0x2ab663[_0x1f4eb4+'__'+_0x2bb624+'__'+_0xed8ca0]=_0x4b85fe;}});},_0x16c212=[];for(const [_0x1c6624,_0x5485a4]of _0x511600){const _0x5d9b37=_0x1c6624*0x36ee80,_0x506a05=new Date(_0x208fd1-_0x5d9b37-_0x4f49ed-_0x5ba6c2),_0x760e8c=new Date(_0x4dcb5f-_0x5d9b37);_0x16c212[_0x5bd39c(0xb31)](this[_0x5bd39c(0x4db)][_0x5bd39c(0xba9)](this[_0x5bd39c(0x1dc)],_0x5485a4,_0x506a05,_0x760e8c,_0x45a6e5)[_0x5bd39c(0x91a)](async _0x2375d1=>{const _0x4112f3=_0x5bd39c;let _0x4f4164=![];const _0x183810=Math[_0x4112f3(0x220)](0x1,(_0x760e8c[_0x4112f3(0x1028)]()-_0x506a05[_0x4112f3(0x1028)]())/0x36ee80);for(const _0x4451d5 in _0x2375d1){const _0x1d9dac=_0x5d9b37!==0x0?_0x2375d1[_0x4451d5]['map'](_0x538bda=>({..._0x538bda,'t':_0x538bda['t']+_0x5d9b37})):_0x2375d1[_0x4451d5];_0x1396a9[_0x4451d5+'__'+_0x1c6624]=_0x1d9dac;if(_0x5485a4[_0x4112f3(0x42a)](_0x493315=>_0x493315['id']===_0x4451d5&&_0x493315['attrs']&&_0x493315['attrs'][_0x4112f3(0xc02)]))_0x42b10e[_0x4112f3(0x982)](_0x4451d5+'__'+_0x1c6624);const _0x1c035a=_0x2375d1[_0x4451d5]['length'];if(_0x26e854>=HF_MIN_WINDOW_H&&_0x1c035a>HF_MIN_ROWS&&_0x1c035a/_0x183810>HF_ROWS_PER_HOUR){const _0x1fe260=this['_entities'][_0x4112f3(0x90c)](_0x452484=>_0x452484?.['entity']===_0x4451d5&&!_0x452484[_0x4112f3(0xd53)]);if(_0x1fe260&&(_0x1fe260[_0x4112f3(0xec9)]||this[_0x4112f3(0xfe9)]['data_source']||_0x4112f3(0x6c8))===_0x4112f3(0x6c8)&&this[_0x4112f3(0x79a)](_0x1fe260)&&_markHighFrequency(_0x4451d5)&&!this[_0x4112f3(0x1b0)](_0x1fe260,_0x4d9c23,_0x26e854))_0x4f4164=!![];}}if(_0x4f4164)this['_scheduleUpdate']();if(!_0x4d9c23['dpHistory'])return;const _0x950a7c=_0x506a05[_0x4112f3(0x1028)]()+0xea60,_0x3e1bba=new Map();this[_0x4112f3(0xfef)][_0x4112f3(0xd27)]((_0x5d5c26,_0x15438f)=>{const _0x24b301=_0x4112f3;if(!_0x5d5c26?.['entity']||_0x59b81e[_0x15438f]||_0x4d1eaa[_0x15438f]!==_0x5d5c26[_0x24b301(0x974)]+'__'+_0x1c6624)return;if(_0x5d5c26[_0x24b301(0x455)]||_0x5d5c26['price_entity']||(_0x5d5c26['data_source']||'auto')!=='auto')return;if(!this[_0x24b301(0x79a)](_0x5d5c26)||this[_0x24b301(0x88b)](_0x5d5c26,_0x15438f))return;const _0x96964d=_0x2375d1[_0x5d5c26[_0x24b301(0x974)]];if(_0x96964d&&_0x96964d['length']&&isNum(_0x96964d[0x0]?.['t'])&&_0x96964d[0x0]['t']<=_0x950a7c)return;const _0x460167=this[_0x24b301(0x179)](_0x5d5c26,Object['assign']({'source':_0x24b301(0xbb5)},_0x4d9c23[_0x24b301(0xa0e)])),_0x5962eb=this[_0x24b301(0xef1)](_0x5d5c26);_0x992fb9['add'](_0x5d5c26),_0x59b81e[_0x15438f]=!![],_0x4d1eaa[_0x15438f]=_0x5962eb+'__'+_0x1c6624+'__'+_0x460167;if(!_0x3e1bba[_0x24b301(0x101d)](_0x460167))_0x3e1bba[_0x24b301(0xa2d)](_0x460167,[]);const _0x5da138=_0x3e1bba[_0x24b301(0xc3f)](_0x460167);if(!_0x5da138[_0x24b301(0xf06)](_0x5962eb))_0x5da138['push'](_0x5962eb);});for(const [_0x5f0a86,_0x387ee4]of _0x3e1bba)await _0x14a9c8({'offH':_0x1c6624,'period':_0x5f0a86,'ids':_0x387ee4});}));}for(const [,_0x59376d]of _0x5c22f1)_0x16c212[_0x5bd39c(0xb31)](_0x14a9c8(_0x59376d));const _0x1e0e70=new Map(),_0x4e7e60=new Map();for(const _0xb82b4c of this['_entities']){if(!_0xb82b4c?.[_0x5bd39c(0x625)]||_0xb82b4c[_0x5bd39c(0xbef)]||_0xb82b4c[_0x5bd39c(0x102c)])continue;const _0x120ddb=resolveOffsetHours(_0xb82b4c[_0x5bd39c(0x4ff)],this['_hass'])||0x0,_0x3d4178=_0xb82b4c[_0x5bd39c(0x625)]+'__'+_0x120ddb;if(_0x4e7e60[_0x5bd39c(0x101d)](_0x3d4178))continue;const _0x1e06e4=this[_0x5bd39c(0x1dc)]?.[_0x5bd39c(0x4f9)]?.[_0xb82b4c['price_entity']]?.[_0x5bd39c(0x467)]?.[_0x5bd39c(0xd67)],_0x57c07d=_0x1e06e4===_0x5bd39c(0x656)||_0x1e06e4===_0x5bd39c(0xe04)||_0x1e06e4===_0x5bd39c(0x8bf);_0x4e7e60[_0x5bd39c(0xa2d)](_0x3d4178,{'id':_0xb82b4c[_0x5bd39c(0x625)],'attribute':_0xb82b4c[_0x5bd39c(0x949)]||null,'offH':_0x120ddb,'useStats':_0x4d9c23[_0x5bd39c(0xb99)]==='statistics'&&_0x57c07d&&!_0xb82b4c['price_attribute']});}this[_0x5bd39c(0x63f)]=_0x4e7e60[_0x5bd39c(0xc44)]?{'jobs':_0x4e7e60,'sMs':_0x208fd1,'eMs':_0x4dcb5f,'horizonMs':_0x4f49ed,'leadMs':_0x5ba6c2}:null,_0x16c212[_0x5bd39c(0xb31)](...this['_priceJobFetches'](_0x4e7e60,_0x208fd1,_0x4dcb5f,_0x4f49ed,_0x5ba6c2,_0x45a6e5,_0x1e0e70));const _0x8108f=new Map(),_0x31303b=new Map();this['_entities']['forEach']((_0x227186,_0x349683)=>{const _0x156ca8=_0x5bd39c;if(!_0x227186?.[_0x156ca8(0x455)]||_0x227186[_0x156ca8(0xbef)]||_0x227186['data_attribute'])return;const _0xb2e793=resolveOffsetHours(_0x227186[_0x156ca8(0x4ff)],this[_0x156ca8(0x1dc)])||0x0,_0x11c413=this[_0x156ca8(0x1dc)]?.['states']?.[_0x227186[_0x156ca8(0x455)]]?.[_0x156ca8(0x467)]?.['state_class'],_0xb0a5f9=_0x11c413==='measurement'||_0x11c413==='total'||_0x11c413===_0x156ca8(0x8bf),_0x3ecf87=_0x59b81e[_0x349683]&&_0xb0a5f9&&!_0x227186[_0x156ca8(0xc00)],_0x345f59=_0x3ecf87?this[_0x156ca8(0x179)](_0x227186,_0x4d9c23):'hist',_0x49939b=this[_0x156ca8(0xbe4)](_0x227186)?_0x227186[_0x156ca8(0xc48)]:null,_0x3484ec=_0x49939b?_0x345f59+'-'+_0x49939b:_0x345f59,_0x534b8d=refJobKey(_0x227186,_0xb2e793,_0x3484ec);_0x227186[_0x156ca8(0x51c)]=_0x534b8d;if(_0x31303b[_0x156ca8(0x101d)](_0x534b8d))return;_0x31303b[_0x156ca8(0xa2d)](_0x534b8d,{'id':_0x227186['ref_entity'],'attribute':_0x227186['ref_attribute']||null,'offH':_0xb2e793,'useStats':_0x3ecf87,'period':_0x345f59,'deltaAgg':_0x49939b});});for(const [_0x469e79,_0x414bf7]of _0x31303b){const _0x147c1d=_0x414bf7['offH']*0x36ee80,_0x5589f1=new Date(_0x208fd1-_0x147c1d-_0x4f49ed-_0x5ba6c2-0x5265c00),_0x373f9b=new Date(_0x4dcb5f-_0x147c1d),_0x355b50=()=>this[_0x5bd39c(0x4db)][_0x5bd39c(0xba9)](this[_0x5bd39c(0x1dc)],[{'id':_0x414bf7['id'],'attribute':_0x414bf7[_0x5bd39c(0xf0f)]}],_0x5589f1,_0x373f9b,_0x45a6e5)[_0x5bd39c(0x91a)](_0x367dea=>{const _0x492a8c=_0x5bd39c,_0x112062=[];for(const _0x59bd58 of _0x367dea[_0x414bf7['id']]||[]){const _0x1ac4b3=_0x414bf7[_0x492a8c(0xf0f)]?getAttributePath(_0x59bd58['attributes'],_0x414bf7['attribute']):_0x59bd58['state'],_0x28a2b1=toNum(_0x1ac4b3);if(_0x28a2b1!==null)_0x112062[_0x492a8c(0xb31)]({'t':_0x59bd58['t']+_0x147c1d,'v':_0x28a2b1});}_0x8108f[_0x492a8c(0xa2d)](_0x469e79,{'samples':_0x112062,'statPeriodMs':0x0,'id':_0x414bf7['id'],'attribute':_0x414bf7[_0x492a8c(0xf0f)],'offH':_0x414bf7[_0x492a8c(0x22b)],'sameRep':![],'deltaAgg':_0x414bf7['deltaAgg']||null});});if(_0x414bf7['useStats']&&!(_0x414bf7[_0x5bd39c(0x4a7)]&&_0x414bf7[_0x5bd39c(0xe4c)]===_0x5bd39c(0xc08))){const _0x3ed429=_0x414bf7['period']===_0x5bd39c(0xc08)?_0x5bd39c(0x2ab):_0x414bf7[_0x5bd39c(0xe4c)],_0x2209fb={'5minute':0x493e0,'hour':0x36ee80,'day':0x5265c00,'week':0x240c8400,'month':0x9a7ec800}[_0x3ed429]||0x36ee80,_0x2be6e4=_0x414bf7[_0x5bd39c(0x4a7)]==='delta'?[_0x5bd39c(0xd0e),_0x5bd39c(0x5f5),_0x5bd39c(0xba1),_0x5bd39c(0x220)]:_0x414bf7[_0x5bd39c(0x4a7)]?DataProcessor[_0x5bd39c(0x51d)](_0x414bf7[_0x5bd39c(0x4a7)]):[_0x5bd39c(0xd0e),'state'];_0x16c212[_0x5bd39c(0xb31)](this[_0x5bd39c(0x4db)][_0x5bd39c(0xa52)](this[_0x5bd39c(0x1dc)],[_0x414bf7['id']],_0x5589f1,_0x373f9b,_0x3ed429,_0x45a6e5,_0x2be6e4)[_0x5bd39c(0x91a)](_0x446ecb=>{const _0x1fad02=_0x5bd39c,_0x184c6b=[],_0x2d7e70=_0x446ecb[_0x414bf7['id']]||[],_0x34b769=!!_0x414bf7[_0x1fad02(0x4a7)]&&(_0x414bf7[_0x1fad02(0x4a7)]===_0x1fad02(0x7e6)||_0x414bf7[_0x1fad02(0x4a7)]===_0x1fad02(0xe34))&&!_0x2d7e70['some'](_0x5889e1=>isNum(_0x5889e1[_0x1fad02(0xe34)]))&&_0x2d7e70[_0x1fad02(0x42a)](_0x3a9550=>isNum(_0x3a9550[_0x1fad02(0x7e6)]));let _0x544e95=null;for(const _0x1214d5 of _0x2d7e70){let _0x451799;if(_0x34b769){_0x451799=isNum(_0x1214d5[_0x1fad02(0x7e6)])&&_0x544e95!==null?_0x1214d5[_0x1fad02(0x7e6)]-_0x544e95:isNum(_0x1214d5[_0x1fad02(0x7e6)])?0x0:null;if(isNum(_0x1214d5[_0x1fad02(0x7e6)]))_0x544e95=_0x1214d5[_0x1fad02(0x7e6)];}else _0x451799=_0x414bf7['deltaAgg']?DataProcessor[_0x1fad02(0x3ba)](_0x1214d5,_0x414bf7[_0x1fad02(0x4a7)]):isNum(_0x1214d5[_0x1fad02(0xd0e)])?_0x1214d5[_0x1fad02(0xd0e)]:isNum(_0x1214d5['state'])?_0x1214d5['state']:null;if(_0x451799!==null&&isNum(_0x451799)){const _0x335e95={'t':_0x1214d5['t']+_0x147c1d,'v':_0x451799};_0x414bf7[_0x1fad02(0x4a7)]===_0x1fad02(0xc09)&&isNum(_0x1214d5['min'])&&isNum(_0x1214d5[_0x1fad02(0x220)])&&(_0x335e95[_0x1fad02(0xa84)]=_0x1214d5[_0x1fad02(0xba1)],_0x335e95[_0x1fad02(0x6a0)]=_0x1214d5['max']),_0x184c6b[_0x1fad02(0xb31)](_0x335e95);}}const _0x23443d=_0x184c6b[_0x1fad02(0xc02)]?_0x184c6b[0x0]['t']-(_0x5589f1['getTime']()+_0x147c1d):Infinity;if(!_0x184c6b['length']||_0x23443d>_0x2209fb*0x2)return _0x355b50();_0x8108f[_0x1fad02(0xa2d)](_0x469e79,{'samples':_0x184c6b,'statPeriodMs':_0x2209fb,'id':_0x414bf7['id'],'attribute':_0x414bf7[_0x1fad02(0xf0f)],'offH':_0x414bf7['offH'],'sameRep':!!_0x414bf7['deltaAgg'],'deltaAgg':_0x414bf7[_0x1fad02(0x4a7)]||null});}));}else _0x16c212['push'](_0x355b50());}let _0x36a946=[];_0x16c212['push'](this[_0x5bd39c(0x394)](_0x209135,_0x1ef1f6)[_0x5bd39c(0x91a)](_0x585d4c=>{_0x36a946=_0x585d4c;})[_0x5bd39c(0x9d5)](()=>{_0x36a946=[];})),await Promise[_0x5bd39c(0xda4)](_0x16c212);if(_0x34e4aa!==this[_0x5bd39c(0x55a)])return;this[_0x5bd39c(0x389)]=_0x1e0e70,this[_0x5bd39c(0xbfd)]=_0x8108f,this[_0x5bd39c(0x58c)]=Object[_0x5bd39c(0x977)](null);const _0x2d2722=_0x208fd1-_0x4f49ed-_0x5ba6c2,_0x1449a0=this[_0x5bd39c(0xfe9)]?.['include_area_names']?buildAreaSuffixes(this[_0x5bd39c(0x1dc)],this[_0x5bd39c(0xfef)],this['_statMeta'],(_0x45b3b6,_0x50eaef,_0x5ab166)=>this['_applyAttributeName'](_0x5ab166,_0x45b3b6,_0x50eaef)):null;this[_0x5bd39c(0x27d)]=_0x1449a0,this['_nowStampMs']=Date['now']();const _0x1c51cb=this[_0x5bd39c(0xfef)][_0x5bd39c(0xb3f)]((_0x285f87,_0x15de20)=>{const _0x4e02de=_0x5bd39c;let _0x5b95e7,_0x390cf7=null;if(_0x285f87['fixed_value']){const _0x278612=this[_0x4e02de(0x1dc)][_0x4e02de(0x4f9)][_0x285f87[_0x4e02de(0x974)]],_0x3513f2=this[_0x4e02de(0x88b)](_0x285f87,_0x15de20),_0x12fa32=_0x3513f2?getAttributePath(_0x278612?.[_0x4e02de(0x467)],_0x3513f2):_0x278612?.['state'],_0x14fab7=toNum(_0x12fa32);_0x14fab7!==null?_0x5b95e7=[{'t':_0x208fd1,'v':_0x14fab7},{'t':_0x4dcb5f,'v':_0x14fab7}]:_0x5b95e7=[];}else{if(_0x285f87[_0x4e02de(0x102c)]){const _0x1757ab=this['_hass'][_0x4e02de(0x4f9)][_0x285f87[_0x4e02de(0x974)]];_0x5b95e7=synthesizeForecastSeries(_0x1757ab,_0x285f87,this[_0x4e02de(0xbe0)][_0x4e02de(0x4b0)],this[_0x4e02de(0x1dc)]);}else{if(_0x264cdc(_0x285f87)){const _0xe18845=_0x4d1eaa[_0x15de20],_0x1afc23=_0xe18845&&_0x2ab663[_0xe18845]||[];_0x5b95e7=_0x1afc23['map'](_0x320739=>{const _0x5d58f6=_0x4e02de,_0xfdda39={'t':_0x320739['t'],'v':DataProcessor[_0x5d58f6(0x3ba)](_0x320739,_0x285f87[_0x5d58f6(0xc48)])};(_0x285f87[_0x5d58f6(0xd0a)]||_0x285f87[_0x5d58f6(0xc48)]===_0x5d58f6(0xc09))&&isNum(_0x320739['min'])&&isNum(_0x320739['max'])&&(_0xfdda39[_0x5d58f6(0xa84)]=_0x320739[_0x5d58f6(0xba1)],_0xfdda39[_0x5d58f6(0x6a0)]=_0x320739['max']);if(_0x285f87[_0x5d58f6(0xc48)]===_0x5d58f6(0x220)){if(isNum(_0x320739[_0x5d58f6(0xd0e)]))_0xfdda39['sMean']=_0x320739['mean'];if(isNum(_0x320739[_0x5d58f6(0xba1)]))_0xfdda39['sMin']=_0x320739[_0x5d58f6(0xba1)];}return _0xfdda39;})[_0x4e02de(0x919)](_0x168ae5=>_0x168ae5['v']!==null&&isNum(_0x168ae5['v'])&&_0x168ae5['t']>=_0x2d2722);if(_0x285f87[_0x4e02de(0xc48)]===_0x4e02de(0xe34)&&_0x285f87[_0x4e02de(0xa81)]===!![]&&_0x1afc23[_0x4e02de(0xc02)]>0x0){const _0x426f12=_0x1afc23[_0x4e02de(0xb3f)](_0x5b2b4e=>({'t':_0x5b2b4e['t'],'v':isNum(_0x5b2b4e[_0x4e02de(0x5f5)])?_0x5b2b4e[_0x4e02de(0x5f5)]:isNum(_0x5b2b4e[_0x4e02de(0xd0e)])?_0x5b2b4e['mean']:null,'c':isNum(_0x5b2b4e[_0x4e02de(0xe34)])?_0x5b2b4e[_0x4e02de(0xe34)]:null}))[_0x4e02de(0x919)](_0x20b61d=>isNum(_0x20b61d['v'])&&_0x20b61d['v']!==0x0&&_0x20b61d['t']>=_0x2d2722),_0x2fb85a=_0x1afc23[_0x4e02de(0x42a)](_0x301727=>isNum(_0x301727[_0x4e02de(0xe34)])),_0x44e1d3=this['_hass']?.[_0x4e02de(0x4f9)]?.[this[_0x4e02de(0xef1)](_0x285f87)]?.[_0x4e02de(0x467)],_0x4cff0c=!!(_0x44e1d3&&(_0x44e1d3[_0x4e02de(0xabb)]||_0x44e1d3['cron_pattern']));let _0x2683b9=0x0,_0x54c0b2=0x0;for(let _0x7cbc8b=0x1;_0x7cbc8b<_0x426f12['length'];_0x7cbc8b++){if(_0x426f12[_0x7cbc8b]['v']<_0x426f12[_0x7cbc8b-0x1]['v'])_0x2683b9++;if(_0x426f12[_0x7cbc8b]['v']!==_0x426f12[_0x7cbc8b-0x1]['v'])_0x54c0b2++;}const _0x470ed3=_0x44e1d3?.['state_class']!=='total'&&_0x54c0b2>=0x4&&_0x2683b9>=0x2&&_0x2683b9/_0x54c0b2>=0.25;!(_0x2fb85a&&(_0x4cff0c||_0x470ed3||_0x426f12[_0x4e02de(0xc02)]===0x0))&&(_0x5b95e7=_0x426f12[_0x4e02de(0xb3f)]((_0x3b4832,_0x11ec7a)=>{const _0x294f50=_0x4e02de;if(_0x11ec7a===0x0)return{'t':_0x3b4832['t'],'v':0x0};let _0x2103fb=Math[_0x294f50(0x220)](0x0,_0x3b4832['v']-_0x426f12[_0x11ec7a-0x1]['v']);if(_0x3b4832['c']!==null&&_0x2103fb>_0x3b4832['c'])_0x2103fb=Math['max'](0x0,_0x3b4832['c']);return{'t':_0x3b4832['t'],'v':_0x2103fb};}));}else{if((_0x285f87[_0x4e02de(0xc48)]===_0x4e02de(0xe34)||_0x285f87[_0x4e02de(0xc48)]===_0x4e02de(0x7e6))&&_0x1afc23[_0x4e02de(0xc02)]>0x0){const _0x2bd03b=_0x1afc23[_0x4e02de(0x42a)](_0x55a323=>isNum(_0x55a323['change'])),_0x293e85=_0x1afc23['some'](_0x4cff35=>isNum(_0x4cff35[_0x4e02de(0x7e6)]));if(!_0x2bd03b&&_0x293e85&&_0x5b95e7[_0x4e02de(0xc02)]>0x1){const _0x556353=_0x5b95e7[_0x4e02de(0xb3f)](_0x331a5d=>_0x331a5d['v']);_0x5b95e7[0x0]['v']=0x0;for(let _0x1fdd37=0x1;_0x1fdd37<_0x5b95e7[_0x4e02de(0xc02)];_0x1fdd37++){_0x5b95e7[_0x1fdd37]['v']=_0x556353[_0x1fdd37]-_0x556353[_0x1fdd37-0x1];}}else{if(!_0x2bd03b&&!_0x293e85&&_0x285f87[_0x4e02de(0xc48)]==='change'&&_0x5b95e7[_0x4e02de(0xc02)]>0x1){const _0x504c14=this[_0x4e02de(0x4ab)](_0x285f87),_0x4ec5a9=_0x5b95e7[_0x4e02de(0xb3f)](_0x5b15c0=>_0x5b15c0['v']);_0x5b95e7[0x0]['v']=0x0;for(let _0x14645b=0x1;_0x14645b<_0x5b95e7[_0x4e02de(0xc02)];_0x14645b++){const _0x47252d=_0x4ec5a9[_0x14645b]-_0x4ec5a9[_0x14645b-0x1];_0x5b95e7[_0x14645b]['v']=_0x504c14&&_0x47252d<0x0?0x0:_0x47252d;}}}if(!this[_0x4e02de(0xe94)])this[_0x4e02de(0xe94)]=new Map();_0x285f87[_0x4e02de(0xc48)]===_0x4e02de(0x7e6)&&_0x1afc23['length']>0x0&&_0x5b95e7[_0x4e02de(0xc02)]===0x0?this[_0x4e02de(0xe94)][_0x4e02de(0xa2d)](_0x15de20,'sum'):this[_0x4e02de(0xe94)][_0x4e02de(0xcc1)](_0x15de20),_0x285f87['aggregate_func']===_0x4e02de(0x7e6)&&_0x1afc23[_0x4e02de(0xc02)]>0x0&&_0x5b95e7[_0x4e02de(0xc02)]===0x0&&!this[_0x4e02de(0x8e2)]&&(this[_0x4e02de(0x8e2)]=!![],console['warn']('[sgc]\x20aggregate_func\x20\x22sum\x22\x20on\x20'+this[_0x4e02de(0xef1)](_0x285f87)+_0x4e02de(0x1d4)+_0x4e02de(0x798)+_0x4e02de(0x1016)));}}}else{const _0x2a9367=_0x4d1eaa[_0x15de20],_0x35e617=this['_effectiveAttribute'](_0x285f87,_0x15de20);let _0x43564a=_0x2a9367&&_0x1396a9[_0x2a9367]||[];if(!_0x35e617&&_0x2a9367&&_0x42b10e['has'](_0x2a9367))_0x43564a=collapseSameStateRows(_0x43564a);let _0x2a8e9f=_0x285f87[_0x4e02de(0xa7e)]&&_0x285f87['state_map'][_0x4e02de(0xc02)]?_0x285f87[_0x4e02de(0xa7e)]:_0x35e617?null:autoStateMap(_0x285f87,this[_0x4e02de(0x1dc)],this['_config']?.[_0x4e02de(0x815)]);if(isStripEntity(_0x285f87)&&!_0x35e617&&!(_0x285f87['state_map']&&_0x285f87[_0x4e02de(0xa7e)][_0x4e02de(0xc02)])){const _0x5ccc12=(_0x2a8e9f||[])[_0x4e02de(0x165)](),_0x42b8f6=_0x5ccc12[_0x4e02de(0xb3f)](_0x641c9e=>String(_0x641c9e?.['value']));for(const _0xafb085 of _0x43564a){const _0x58eff5=String(_0xafb085[_0x4e02de(0x5f5)]);if(!_0x58eff5||_0x42b8f6[_0x4e02de(0xf06)](_0x58eff5))continue;_0x42b8f6[_0x4e02de(0xb31)](_0x58eff5),_0x5ccc12[_0x4e02de(0xb31)]({'value':_0x58eff5});}_0x5ccc12['length']&&(_0x2a8e9f=_0x5ccc12,_0x390cf7=_0x5ccc12);}_0x5b95e7=_0x43564a[_0x4e02de(0xb3f)](_0x5bdbf3=>{const _0x21ec0c=_0x4e02de,_0x146555=_0x35e617?getAttributePath(_0x5bdbf3[_0x21ec0c(0x467)],_0x35e617):_0x5bdbf3[_0x21ec0c(0x5f5)];let _0x45a5e1;_0x2a8e9f?_0x45a5e1=applyStateMap(_0x146555,_0x2a8e9f)[_0x21ec0c(0x2ea)]:_0x45a5e1=parseFloat(_0x146555);if(isNaN(_0x45a5e1))return null;return{'t':_0x5bdbf3['t'],'v':_0x45a5e1};})[_0x4e02de(0x919)](Boolean);}}}if(_0x285f87[_0x4e02de(0x102c)]){const _0x2237ed=toNum(_0x285f87[_0x4e02de(0x510)])||0x0,_0x73a44c=_0x2237ed<0x0?_0x4dcb5f-_0x2237ed*0x36ee80:_0x4dcb5f;_0x5b95e7=_0x5b95e7[_0x4e02de(0x919)](_0x1281b6=>_0x1281b6['t']>=_0x208fd1&&_0x1281b6['t']<=_0x73a44c);}const _0x3e7790=toNum(_0x285f87[_0x4e02de(0x510)]);if(_0x3e7790&&_0x3e7790!==0x0&&Array[_0x4e02de(0x902)](_0x5b95e7)&&_0x5b95e7[_0x4e02de(0xc02)]){const _0x9e2bd6=_0x3e7790*0x36ee80;_0x5b95e7=_0x5b95e7[_0x4e02de(0xb3f)](_0x3d4deb=>({..._0x3d4deb,'t':_0x3d4deb['t']+_0x9e2bd6}));}_0x4f49ed>0x0&&Array[_0x4e02de(0x902)](_0x5b95e7)&&_0x5b95e7[_0x4e02de(0xc02)]&&(_0x5b95e7=_0x5b95e7['filter'](_0x1f56da=>_0x1f56da['t']>=_0x208fd1&&_0x1f56da['t']<=_0x4dcb5f));const _0x3a5b2f=this['_liveStateRaw'](_0x5b95e7,_0x285f87,_0x15de20,_0x208fd1,_0x4dcb5f),{points:_0x46da8d,maSeries:_0x277fd6,tailToMs:_0x5c34c1}=this['_bucketSeries'](_0x3a5b2f,_0x285f87,_0x59b81e[_0x15de20],_0x208fd1,_0x4dcb5f,_0x5ba6c2),_0xfe5ad9=this[_0x4e02de(0x1dc)]['states'][_0x285f87[_0x4e02de(0x974)]]||{},_0x1a6dc3=_0x285f87['statistic_id']||_0x285f87[_0x4e02de(0x974)],_0x563f77=_0x1a6dc3&&this[_0x4e02de(0x558)]?.[_0x1a6dc3]||null,_0x48b3d4=_0x1449a0?_0x1449a0[_0x4e02de(0xc3f)](_0x285f87[_0x4e02de(0xed4)]!=null?_0x285f87['_compareOf']:_0x15de20)||'':'';let _0x5664f0=_0xfe5ad9[_0x4e02de(0x467)]?.[_0x4e02de(0x457)]||_0x563f77?.[_0x4e02de(0xdee)];_0x5664f0=this[_0x4e02de(0x7fe)](_0x5664f0,_0x285f87,_0x15de20);if(_0x285f87[_0x4e02de(0x455)]&&!_0x285f87[_0x4e02de(0xdee)]&&!_0x285f87[_0x4e02de(0xbef)]&&!_0x285f87[_0x4e02de(0x102c)]){const _0x1d2825=applyAttributeName(this[_0x4e02de(0xfe9)],this[_0x4e02de(0x1dc)],this[_0x4e02de(0x1dc)]?.['states']?.[_0x285f87[_0x4e02de(0x455)]]?.['attributes']?.[_0x4e02de(0x457)]||_0x285f87[_0x4e02de(0x455)],{'entity':_0x285f87[_0x4e02de(0x455)]},_0x285f87[_0x4e02de(0xc00)]),_0x18422e=_0x5664f0||_0x285f87[_0x4e02de(0x974)]||'',_0x21ac13=normalizeRefOp(_0x285f87[_0x4e02de(0x58d)]);_0x5664f0=_0x21ac13===_0x4e02de(0xd0d)?_0x1d2825+_0x4e02de(0x4d3)+_0x18422e:_0x21ac13===_0x4e02de(0xf02)?_0x1d2825+_0x4e02de(0x373)+_0x18422e:_0x18422e+({'add':_0x4e02de(0x1013),'multiply':'\x20×\x20','divide':'\x20÷\x20'}[_0x21ac13]||'\x20-\x20')+_0x1d2825;}const _0x40175a={'friendly_name':_0x48b3d4?(_0x5664f0||'')+_0x48b3d4:_0x5664f0,'unit_of_measurement':_0xfe5ad9[_0x4e02de(0x467)]?.[_0x4e02de(0x398)]||_0x563f77?.[_0x4e02de(0x398)],'icon':_0xfe5ad9[_0x4e02de(0x467)]?.[_0x4e02de(0x5b0)],'resolved_name':this[_0x4e02de(0x7be)](_0x285f87[_0x4e02de(0xdee)],_0x285f87[_0x4e02de(0x974)]),'resolved_tooltip_name':this[_0x4e02de(0x7be)](_0x285f87[_0x4e02de(0xce6)],_0x285f87['entity'])};if(_0x285f87['_compareOf']!=null){const _0xd61672=this[_0x4e02de(0xfef)][_0x285f87[_0x4e02de(0xed4)]],_0x14254e=_0xd61672&&!isTemplateString(_0xd61672[_0x4e02de(0xdee)])&&_0xd61672[_0x4e02de(0xdee)]||this['_resolveTemplateText'](_0xd61672?.['name'],_0xd61672?.['entity'])||_0x40175a[_0x4e02de(0x457)]||_0x285f87[_0x4e02de(0x974)]||_0x285f87[_0x4e02de(0xd53)],_0x3e813c=Math[_0x4e02de(0x220)](0x1,Math[_0x4e02de(0xedc)](toNum(_0x285f87['_compareCfg']?.[_0x4e02de(0xf4d)])||0x1)),_0x205820='\x20('+cardT(this[_0x4e02de(0x1dc)],this['_config'],COMPARE_PERIOD_LABELS[_0x285f87[_0x4e02de(0xbf6)]?.[_0x4e02de(0xe4c)]]||_0x4e02de(0x552))+(_0x3e813c>0x1?'\x20×'+_0x3e813c:'')+')';_0x40175a['friendly_name']=_0x14254e+_0x205820,_0x40175a[_0x4e02de(0x40b)]=_0x14254e+_0x205820,_0x40175a[_0x4e02de(0x17e)]=null;}return{'idx':_0x15de20,'id':(_0x285f87[_0x4e02de(0x974)]||_0x285f87[_0x4e02de(0xd53)])+'__'+_0x15de20,'entity':_0x285f87,'points':_0x46da8d,'raw':_0x5b95e7,'meta':_0x40175a,'stateMap':_0x390cf7,'_isStat':_0x59b81e[_0x15de20],'stats':DataProcessor[_0x4e02de(0xb79)](_0x46da8d),'maSeries':_0x277fd6??DataProcessor['computeMovingAverages'](_0x46da8d,_0x285f87),'tailToMs':_0x5c34c1};}),_0x2e85ad=this[_0x5bd39c(0x342)]>0x0?this['offsetWidth']:0x320,_0x1d00e1=Math['min'](0xbb8,Math['max'](0x190,_0x2e85ad*0x2));for(const _0x33c111 of _0x1c51cb){_0x33c111['points']&&_0x33c111[_0x5bd39c(0x93a)]['length']>_0x1d00e1&&!isStripEntity(_0x33c111['entity'])&&(_0x33c111[_0x5bd39c(0x93a)]=DataProcessor[_0x5bd39c(0xdaa)](_0x33c111[_0x5bd39c(0x93a)],_0x1d00e1)),_0x33c111[_0x5bd39c(0xb86)]=_0x33c111[_0x5bd39c(0x648)]||resolveBucketPrecision(_0x33c111[_0x5bd39c(0x93a)]),_0x33c111[_0x5bd39c(0x2fb)]=![];}this['_graphData']={'series':_0x1c51cb};const _0x463a3c=_0x36a946;if(_0x34e4aa!==this[_0x5bd39c(0x55a)])return;this[_0x5bd39c(0x551)]=_0x463a3c,this['_prevStamps']=Object[_0x5bd39c(0x977)](null);if(this[_0x5bd39c(0x1038)])for(const _0x565f5a of this[_0x5bd39c(0xfef)]){if(!_0x565f5a['entity']||_0x565f5a[_0x5bd39c(0xd53)])continue;const _0x16de78=this['_hass'][_0x5bd39c(0x4f9)][_0x565f5a[_0x5bd39c(0x974)]];if(_0x16de78)this[_0x5bd39c(0x782)][_0x565f5a[_0x5bd39c(0x974)]]=_0x16de78['last_updated']||_0x16de78[_0x5bd39c(0xaf1)]||null;}this[_0x5bd39c(0xe12)]=Object[_0x5bd39c(0x977)](null);for(const _0x567215 of this['_annotationRefs']){const _0x2c2b2e=this[_0x5bd39c(0x1dc)][_0x5bd39c(0x4f9)][_0x567215];if(_0x2c2b2e)this[_0x5bd39c(0xe12)][_0x567215]=_0x2c2b2e[_0x5bd39c(0x6a4)]||_0x2c2b2e[_0x5bd39c(0xaf1)]||null;}this[_0x5bd39c(0xf9a)]=!![],this['_lastUpdateDoneTs']=Date[_0x5bd39c(0x69d)]();if(this[_0x5bd39c(0xfa1)]())this[_0x5bd39c(0xbee)]=Math[_0x5bd39c(0xedc)](Date[_0x5bd39c(0x69d)]()/this[_0x5bd39c(0x66d)]());if(!this[_0x5bd39c(0x191)])return;this[_0x5bd39c(0xb0c)](),this[_0x5bd39c(0x967)](),this[_0x5bd39c(0x103c)](),this[_0x5bd39c(0x4da)]();}[_0x46af5e(0x4da)](){const _0x1fba7f=_0x46af5e;if(this[_0x1fba7f(0xefe)])return;this['_precisePending']=!![];const _0x244fd1=()=>{const _0x24d6ec=_0x1fba7f;this['_precisePending']=![],this[_0x24d6ec(0xf59)]()[_0x24d6ec(0x9d5)](()=>{});};typeof requestAnimationFrame==='function'?requestAnimationFrame(_0x244fd1):setTimeout(_0x244fd1,0x0);}async[_0x46af5e(0xf59)](){const _0x43d742=_0x46af5e;if(!(this[_0x43d742(0x1dc)]?.['callWS']||this['_hass']?.[_0x43d742(0xdfd)])||!this[_0x43d742(0x2d4)]?.[_0x43d742(0xfa8)])return;if(!this[_0x43d742(0x262)])this[_0x43d742(0x262)]=new Map();const _0x59151e=[],_0x8ce8ec=this[_0x43d742(0xfef)]||[];for(const _0x34ba9d of this['_graphData'][_0x43d742(0xfa8)]){if(!_0x34ba9d||!_0x34ba9d[_0x43d742(0xfc8)])continue;if(_0x34ba9d[_0x43d742(0x2fb)])continue;if(!_0x34ba9d[_0x43d742(0x974)]||!_0x34ba9d[_0x43d742(0x974)]['entity'])continue;if(!_0x34ba9d[_0x43d742(0xf22)]||!_0x34ba9d[_0x43d742(0x93a)]||_0x34ba9d[_0x43d742(0x93a)][_0x43d742(0xc02)]===0x0)continue;if(_0x34ba9d[_0x43d742(0xb86)]===_0x43d742(0xbcc)||_0x34ba9d[_0x43d742(0xb86)]==='minute'){_0x34ba9d[_0x43d742(0x2fb)]=!![];continue;}const _0x470799=new Set();for(let _0x41c0f1=0x0;_0x41c0f1<_0x8ce8ec[_0x43d742(0xc02)];_0x41c0f1++){const _0x34fd45=_0x8ce8ec[_0x41c0f1];if(!_0x34fd45||!_0x34fd45[_0x43d742(0xae5)])continue;const _0xb1cde7=_0x34fd45===_0x34ba9d[_0x43d742(0x974)]||_0x34fd45[_0x43d742(0x974)]&&_0x34fd45[_0x43d742(0x974)]===_0x34ba9d[_0x43d742(0x974)]['entity'];if(!_0xb1cde7)continue;let _0x48e5c0=_0x34fd45[_0x43d742(0xb8a)];if(!_0x48e5c0&&_0x34fd45[_0x43d742(0x8bc)])_0x48e5c0=_0x43d742(0xa5d);if(_0x48e5c0==='min'||_0x48e5c0===_0x43d742(0x220))_0x470799[_0x43d742(0x982)](_0x48e5c0);}if(_0x470799[_0x43d742(0xc44)]===0x0){_0x34ba9d[_0x43d742(0x2fb)]=!![];continue;}const _0x591f14=bucketPrecisionToMs(_0x34ba9d[_0x43d742(0xb86)]||_0x43d742(0x2ab));if(!_0x591f14){_0x34ba9d[_0x43d742(0x2fb)]=!![];continue;}for(const _0x374c43 of _0x470799){const _0x776e71=_0x374c43+'T',_0x3027da=_0x34ba9d[_0x43d742(0xf22)][_0x776e71],_0x5bfcc3=_0x34ba9d[_0x43d742(0xf22)][_0x374c43];if(!isNum(_0x3027da)||!isNum(_0x5bfcc3))continue;const _0x5baed9=_0x34ba9d['entity'][_0x43d742(0x974)]+'|'+_0x3027da+'|'+_0x591f14+'|'+_0x374c43+'|'+_0x5bfcc3[_0x43d742(0x198)](0x6),_0xed588b=this[_0x43d742(0x262)][_0x43d742(0xc3f)](_0x5baed9);if(isNum(_0xed588b)){_0x34ba9d[_0x43d742(0xf22)][_0x776e71]=_0xed588b,_0x34ba9d[_0x43d742(0xf22)][_0x776e71+_0x43d742(0x486)]=!![];continue;}_0x59151e['push'](this['_fetchPrecisePeak'](_0x34ba9d,_0x3027da,_0x591f14,_0x5bfcc3,_0x374c43,_0x5baed9));}_0x34ba9d[_0x43d742(0x2fb)]=!![];}if(_0x59151e[_0x43d742(0xc02)]===0x0)return;try{await Promise['all'](_0x59151e),this[_0x43d742(0x3ec)]();}catch(_0x4b1236){}}async['_fetchPrecisePeak'](_0x4d7c86,_0x1e6af8,_0x3a8703,_0x248b3e,_0x35414c,_0x11f975){const _0x40acb1=_0x46af5e;try{const _0x440630=_0x4d7c86['entity'][_0x40acb1(0x974)],_0x3fe34a=await this['_fetcher'][_0x40acb1(0x9f7)](this[_0x40acb1(0x1dc)],[_0x440630],new Date(_0x1e6af8),new Date(_0x1e6af8+_0x3a8703),![]),_0x48f643=_0x3fe34a&&_0x3fe34a['rows']&&_0x3fe34a[_0x40acb1(0x72e)][_0x440630]||null;if(!Array[_0x40acb1(0x902)](_0x48f643)||_0x48f643['length']===0x0)return;let _0x116877=null;for(const _0x390cc1 of _0x48f643){const _0x40532e=parseFloat(_0x390cc1[_0x40acb1(0x5f5)]);if(!Number[_0x40acb1(0xf0d)](_0x40532e))continue;if(!_0x116877||(_0x35414c==='max'?_0x40532e>_0x116877['v']:_0x40532e<_0x116877['v'])){if(Number['isFinite'](_0x390cc1['t']))_0x116877={'v':_0x40532e,'t':_0x390cc1['t']};}}if(!_0x116877)return;const _0x10518f=Math[_0x40acb1(0x220)](0.001,Math[_0x40acb1(0x1ae)](_0x248b3e)*0.05);if(Math[_0x40acb1(0x1ae)](_0x116877['v']-_0x248b3e)>_0x10518f)return;const _0x2dddf3=_0x35414c+'T';_0x4d7c86[_0x40acb1(0xf22)][_0x2dddf3]=_0x116877['t'],_0x4d7c86['stats'][_0x2dddf3+_0x40acb1(0x486)]=!![];if(this[_0x40acb1(0x262)][_0x40acb1(0xc44)]>=0x1388){const _0x100e30=this[_0x40acb1(0x262)][_0x40acb1(0x3ab)]()[_0x40acb1(0x2db)]()[_0x40acb1(0x2ea)];if(_0x100e30!==undefined)this['_preciseTsCache'][_0x40acb1(0xcc1)](_0x100e30);}this[_0x40acb1(0x262)][_0x40acb1(0xa2d)](_0x11f975,_0x116877['t']);}catch(_0x39e25e){}}[_0x46af5e(0x79a)](_0x1c34ff){const _0xba54da=_0x46af5e;if(!_0x1c34ff)return![];if(_0x1c34ff['fixed_value']||_0x1c34ff[_0xba54da(0xf0f)]||_0x1c34ff[_0xba54da(0x102c)]||_0x1c34ff['state_map'])return![];if(autoStateMap(_0x1c34ff,this[_0xba54da(0x1dc)],this['_config']?.['chart_mode']))return![];if(_0x1c34ff[_0xba54da(0xd53)])return!![];const _0xb4bf7e=this[_0xba54da(0x1dc)]?.[_0xba54da(0x4f9)]?.[_0x1c34ff[_0xba54da(0x974)]];if(!_0xb4bf7e)return![];const _0x1f6016=_0xb4bf7e[_0xba54da(0x467)]?.[_0xba54da(0xd67)];return _0x1f6016===_0xba54da(0x656)||_0x1f6016===_0xba54da(0xe04)||_0x1f6016===_0xba54da(0x8bf);}[_0x46af5e(0xef1)](_0x5f5afe){const _0x2cd9d4=_0x46af5e;return _0x5f5afe[_0x2cd9d4(0xd53)]||_0x5f5afe[_0x2cd9d4(0x974)];}[_0x46af5e(0x4ab)](_0x18f537){const _0x494483=_0x46af5e;if(!_0x18f537)return![];if(_0x18f537[_0x494483(0xd53)]){const _0x238dd9=this[_0x494483(0x558)]&&this['_statMeta'][_0x18f537[_0x494483(0xd53)]];if(_0x238dd9&&(_0x238dd9[_0x494483(0xa2f)]||_0x238dd9[_0x494483(0xb78)]))return!!_0x238dd9['has_sum']&&!_0x238dd9[_0x494483(0xb78)];const _0x16e4e3=this[_0x494483(0x1dc)]?.[_0x494483(0x4f9)]?.[_0x18f537[_0x494483(0xd53)]];if(_0x16e4e3){const _0x447659=_0x16e4e3[_0x494483(0x467)]?.[_0x494483(0xd67)];return _0x447659===_0x494483(0xe04)||_0x447659===_0x494483(0x8bf);}return!![];}const _0x5dcbae=this[_0x494483(0x1dc)]?.[_0x494483(0x4f9)]?.[_0x18f537['entity']]?.[_0x494483(0x467)]?.[_0x494483(0xd67)];return _0x5dcbae===_0x494483(0xe04)||_0x5dcbae===_0x494483(0x8bf);}['_hasCandlestick'](){const _0x4dc0db=_0x46af5e;for(const _0x52b0b5 of this[_0x4dc0db(0xfef)]||[]){if(_0x52b0b5&&!_0x52b0b5[_0x4dc0db(0xbef)]&&!_0x52b0b5[_0x4dc0db(0x102c)]&&(_0x52b0b5[_0x4dc0db(0xc3c)]||_0x52b0b5[_0x4dc0db(0xefa)])===_0x4dc0db(0x846))return!![];}return![];}[_0x46af5e(0x1ac)](){const _0x4ada7b=_0x46af5e,_0xe26a0e=new Set([_0x4ada7b(0x220),_0x4ada7b(0xba1),_0x4ada7b(0xfbc),_0x4ada7b(0xd0e),undefined,null,'']);for(const _0x5dff1d of this[_0x4ada7b(0xfef)]||[]){if(!_0x5dff1d||_0x5dff1d[_0x4ada7b(0xbef)]||_0x5dff1d[_0x4ada7b(0x102c)])continue;const _0x40d84d=_0x5dff1d[_0x4ada7b(0xc48)];if(!_0xe26a0e['has'](_0x40d84d))continue;if(this[_0x4ada7b(0x4ab)](_0x5dff1d)){const _0x1b24de=_0x40d84d===undefined||_0x40d84d===null||_0x40d84d===''||_0x40d84d===_0x4ada7b(0xfbc)||_0x40d84d===_0x4ada7b(0xd0e);if(_0x1b24de&&this[_0x4ada7b(0xebd)]())continue;return!![];}}return![];}['_calendarMaxNeedsHourly'](){const _0x56d6d1=_0x46af5e;for(const _0x3e9749 of this[_0x56d6d1(0xfef)]||[]){if(!_0x3e9749||_0x3e9749[_0x56d6d1(0xbef)]||_0x3e9749[_0x56d6d1(0x102c)])continue;if(_0x3e9749[_0x56d6d1(0xc48)]!==_0x56d6d1(0x220))continue;if(this['_isCounterEntity'](_0x3e9749))continue;if(this[_0x56d6d1(0xd6c)](_0x3e9749))return!![];}return![];}[_0x46af5e(0xe3a)](){const _0x6b4a3a=_0x46af5e;for(const _0x52bd6a of this[_0x6b4a3a(0xfef)]||[]){if(!_0x52bd6a||_0x52bd6a[_0x6b4a3a(0xbef)]||_0x52bd6a[_0x6b4a3a(0x102c)])continue;if(_0x52bd6a[_0x6b4a3a(0xc48)]!=='last'&&_0x52bd6a[_0x6b4a3a(0xc48)]!==_0x6b4a3a(0x2d8))continue;if(_0x52bd6a[_0x6b4a3a(0xc48)]===_0x6b4a3a(0xa5d)&&this['_isCounterEntity'](_0x52bd6a))continue;if(this[_0x6b4a3a(0xd6c)](_0x52bd6a))return!![];}return![];}[_0x46af5e(0xad7)](){const _0x454dff=_0x46af5e;for(const _0x4edf27 of this[_0x454dff(0xfef)]||[]){if(!_0x4edf27||_0x4edf27[_0x454dff(0xbef)]||_0x4edf27[_0x454dff(0x102c)])continue;if(_0x4edf27[_0x454dff(0xc48)]!==_0x454dff(0x934))continue;if(this[_0x454dff(0x4ab)](_0x4edf27))continue;if(this[_0x454dff(0xd6c)](_0x4edf27))return!![];}return![];}[_0x46af5e(0xd6c)](_0x29d504){const _0x174a45=_0x46af5e;if(!_0x29d504)return![];if(_0x29d504[_0x174a45(0xd53)])return!![];if(_0x29d504[_0x174a45(0xbef)]||_0x29d504[_0x174a45(0xf0f)]||_0x29d504['data_attribute']||_0x29d504['state_map'])return![];return this['_hasLTS'](_0x29d504);}[_0x46af5e(0x72d)](){const _0x464b00=_0x46af5e;if(!this[_0x464b00(0xfef)]?.[_0x464b00(0xc02)])return![];const _0x3a8b6e=this[_0x464b00(0xfef)][_0x464b00(0x919)](_0x11f656=>_0x11f656&&!_0x11f656[_0x464b00(0xbef)]&&!_0x11f656[_0x464b00(0xf0f)]&&!_0x11f656['data_attribute']&&!_0x11f656['state_map']&&!autoStateMap(_0x11f656,this[_0x464b00(0x1dc)],this[_0x464b00(0xfe9)]?.[_0x464b00(0x815)]));if(!_0x3a8b6e[_0x464b00(0xc02)])return![];return _0x3a8b6e[_0x464b00(0xe97)](_0x547b14=>this[_0x464b00(0x79a)](_0x547b14));}['_maybeWarnMissingLTS'](_0x2fc4e0){const _0x438621=_0x46af5e;if(this[_0x438621(0x6af)]||_0x2fc4e0<=0xf0)return;const _0x224e11=[];for(const _0x433e82 of this[_0x438621(0xfef)]||[]){if(!_0x433e82||_0x433e82[_0x438621(0xbef)]||_0x433e82[_0x438621(0xf0f)]||_0x433e82['data_attribute']||_0x433e82['state_map'])continue;if(!this['_hasLTS'](_0x433e82))_0x224e11[_0x438621(0xb31)](_0x433e82['entity']);}_0x224e11[_0x438621(0xc02)]&&(console[_0x438621(0x9a7)]('[sgc]\x20'+_0x224e11[_0x438621(0xc02)]+_0x438621(0xe7c)+(_0x438621(0x99d)+_0x224e11[_0x438621(0x888)](',\x20')+'.\x20')+_0x438621(0x63c)),this[_0x438621(0x6af)]=!![]);}['_warnHourlyCap'](_0x440cf0){const _0x223054=_0x46af5e;if(this[_0x223054(0x7d4)])return;this[_0x223054(0x7d4)]=!![],console[_0x223054(0x9a7)](_0x223054(0x75b)+Math[_0x223054(0x686)](_0x440cf0)+_0x223054(0xffa)+DATE_GROUP_HOURLY_MAX_HOURS_YEAR+'h\x20'+'hourly-statistics\x20cap;\x20last/first/diff/max\x20aggregates\x20fall\x20back\x20to\x20coarser\x20rows\x20'+_0x223054(0x9de));}[_0x46af5e(0x54e)](_0x7e3640){const _0x158a50=_0x46af5e,_0x1532eb=resolveGroupBy(this[_0x158a50(0xfe9)],_0x7e3640);return(this[_0x158a50(0xfef)]||[])['some'](_0x2fcf6b=>_0x2fcf6b&&resolveGroupBy(this[_0x158a50(0xfe9)],_0x7e3640,_0x2fcf6b)!==_0x1532eb);}[_0x46af5e(0x8a3)](_0x1f671c){const _0x222317=_0x46af5e,_0x5cc22f=resolveGroupBy(this['_config'],_0x1f671c),_0x17e12b=this['_calendarCounterNeedsHourly']()||this[_0x222317(0x548)]()||this[_0x222317(0xad7)]()||this['_calendarEndpointNeedsHourly']();if(_0x5cc22f===_0x222317(0xe7d)||_0x5cc22f===_0x222317(0x73e)){if(_0x17e12b){if(_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x222317(0xbb5),'period':_0x222317(0x2ab),'periodNoEsc':'day'};this[_0x222317(0xfc0)](_0x1f671c);}return{'source':_0x222317(0xbb5),'period':_0x222317(0x309)};}if(_0x5cc22f===_0x222317(0x6f1)){if(_0x17e12b){if(_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x222317(0xbb5),'period':_0x222317(0x2ab),'periodNoEsc':resolveFirstWeekday(this['_hass'])!==0x1?'day':'week'};this['_warnHourlyCap'](_0x1f671c);}if(resolveFirstWeekday(this[_0x222317(0x1dc)])!==0x1||this['_hasEntityGroupOverride'](_0x1f671c))return{'source':_0x222317(0xbb5),'period':_0x222317(0x309)};return{'source':_0x222317(0xbb5),'period':_0x222317(0x6f1)};}if(_0x5cc22f==='date'){if(_0x17e12b){if(_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':'statistics','period':_0x222317(0x2ab),'periodNoEsc':this[_0x222317(0xdf6)]()&&_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS?_0x222317(0x2ab):_0x222317(0x309)};this[_0x222317(0xfc0)](_0x1f671c);}if(this['_hasCandlestick']()&&_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS)return{'source':'statistics','period':_0x222317(0x2ab)};return{'source':'statistics','period':_0x222317(0x309)};}if(_0x5cc22f==='hour'){if(this[_0x222317(0xdf6)]()&&_0x1f671c<=STATS_5MIN_MAX_HOURS)return{'source':_0x222317(0xbb5),'period':'5minute'};return{'source':_0x222317(0xbb5),'period':_0x1f671c<=STATS_HOURLY_MAX_HOURS?_0x222317(0x2ab):_0x222317(0x309)};}const _0x4cb44c=this['_config'][_0x222317(0xb1f)]||this[_0x222317(0xfe9)][_0x222317(0x175)]&&this[_0x222317(0x68c)]||this[_0x222317(0xfe9)][_0x222317(0xbc9)]&&this[_0x222317(0xd15)],_0x4fab02=String(this[_0x222317(0xfe9)][_0x222317(0xec9)]||'auto'),_0x68c90c=_0x1f671c<=STATS_5MIN_MAX_HOURS?{'source':'statistics','period':_0x222317(0xc08)}:_0x1f671c<=STATS_HOURLY_MAX_HOURS?{'source':'statistics','period':_0x222317(0x2ab)}:{'source':_0x222317(0xbb5),'period':_0x222317(0x309)};if(_0x4fab02===_0x222317(0x9bd)&&!_0x4cb44c)return{'source':'history','optStats':_0x68c90c};if(_0x4cb44c&&_0x4fab02===_0x222317(0x6c8)&&this['_dpShortWindowUsesHistory'](_0x1f671c))return{'source':_0x222317(0x9bd),'optStats':_0x68c90c,'dpHistory':!![]};if(!_0x4cb44c&&!this[_0x222317(0x72d)]()){let _0x454e4b=null;if(_0x1f671c<=SHORT_WINDOW_HOURS){const _0x470e7f=this['_entities'][_0x222317(0x42a)](_0x152af5=>_0x152af5?.['statistic_id']),_0x413e87=this[_0x222317(0xe51)]??toNum(this[_0x222317(0xfe9)][_0x222317(0xabc)])??_0x1f671c;if(_0x470e7f||_0x413e87>FORCE_STATS_RAW_HOURS)_0x454e4b={'source':_0x222317(0xbb5),'period':_0x222317(0xc08)};}else{if(_0x1f671c<=STATS_5MIN_MAX_HOURS)_0x454e4b={'source':_0x222317(0xbb5),'period':'5minute'};else{if(_0x1f671c<=STATS_HOURLY_MAX_HOURS)_0x454e4b={'source':_0x222317(0xbb5),'period':_0x222317(0x2ab)};else _0x17e12b&&_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR?_0x454e4b={'source':_0x222317(0xbb5),'period':_0x222317(0x2ab),'periodNoEsc':_0x222317(0x309)}:_0x454e4b={'source':'statistics','period':_0x222317(0x309)};}}return{'source':_0x222317(0x9bd),'ltsVeto':_0x454e4b,'optStats':_0x68c90c};}if(_0x1f671c<=SHORT_WINDOW_HOURS){const _0x1b9473=this[_0x222317(0xfef)][_0x222317(0x42a)](_0x48e540=>_0x48e540?.[_0x222317(0xd53)]),_0x412502=this[_0x222317(0xe51)]??toNum(this[_0x222317(0xfe9)]['hours_to_show'])??_0x1f671c;if(_0x4fab02===_0x222317(0xbb5)&&this[_0x222317(0x72d)]())return{'source':_0x222317(0xbb5),'period':_0x222317(0xc08)};const _0x319d4c=_0x1b9473||_0x412502>FORCE_STATS_RAW_HOURS||_0x4cb44c;if(_0x319d4c&&(_0x4cb44c||this[_0x222317(0x72d)]()))return{'source':_0x222317(0xbb5),'period':_0x222317(0xc08)};return{'source':_0x222317(0x9bd),'optStats':_0x68c90c};}if(_0x1f671c<=STATS_5MIN_MAX_HOURS)return{'source':_0x222317(0xbb5),'period':_0x222317(0xc08)};if(_0x1f671c<=STATS_HOURLY_MAX_HOURS)return{'source':_0x222317(0xbb5),'period':_0x222317(0x2ab)};if(_0x17e12b){if(_0x1f671c<=DATE_GROUP_HOURLY_MAX_HOURS_YEAR)return{'source':_0x222317(0xbb5),'period':_0x222317(0x2ab)};this[_0x222317(0xfc0)](_0x1f671c);}return{'source':_0x222317(0xbb5),'period':'day'};}['_dpShortWindowUsesHistory'](_0x69433b){const _0x433586=_0x46af5e;if(!(_0x69433b<=SHORT_WINDOW_HOURS+0x1))return![];const _0x3a23a4=this['_config']||{};if(!(_0x3a23a4[_0x433586(0xb1f)]||_0x3a23a4['date_picker_group']&&this[_0x433586(0x68c)]))return![];if(_0x3a23a4['energy_date_sync']&&this[_0x433586(0xd15)])return![];const _0x58e1e5=(this[_0x433586(0xfef)]||[])[_0x433586(0x919)](Boolean);if(!_0x58e1e5[_0x433586(0xc02)])return![];if(_0x58e1e5[_0x433586(0x42a)](_0x3ec3e9=>_0x3ec3e9[_0x433586(0xd53)]||_0x3ec3e9[_0x433586(0x455)]||_0x3ec3e9[_0x433586(0x625)]||this[_0x433586(0x4ab)](_0x3ec3e9)))return![];const _0x4f1c80=this[_0x433586(0xbe0)];if(!_0x4f1c80?.[_0x433586(0x4b0)])return![];let _0x2cd1c3=0x0;for(const _0x114124 of _0x58e1e5){const _0x26e602=resolveOffsetHours(_0x114124[_0x433586(0x4ff)],this[_0x433586(0x1dc)])||0x0;if(_0x26e602*0x36ee80>_0x2cd1c3)_0x2cd1c3=_0x26e602*0x36ee80;}let _0x16a692=0x0;for(const _0x429e79 of _0x58e1e5){const _0x1347aa=toNum(_0x429e79[_0x433586(0x510)]);if(_0x1347aa>0x0&&_0x1347aa*0x36ee80>_0x16a692)_0x16a692=_0x1347aa*0x36ee80;}const _0x3aa6d3=_0x4f1c80[_0x433586(0x4b0)][_0x433586(0x1028)]()-_0x2cd1c3-_0x16a692-(this['_maMaxLeadMs'](_0x69433b)||0x0);return Date['now']()-_0x3aa6d3<=FORCE_STATS_RAW_HOURS*0x36ee80;}['_counterDayRowsSafe'](){const _0xf831a0=_0x46af5e,_0x5e3489=this[_0xf831a0(0xbe0)];if(!_0x5e3489?.['start'])return![];const _0x136b15=resolveDisplayTimeZone(this[_0xf831a0(0x1dc)],this[_0xf831a0(0xfe9)]),_0x10898b=this[_0xf831a0(0x1dc)]?.[_0xf831a0(0xe3c)]?.[_0xf831a0(0x1fa)]||null;if(_0x136b15&&_0x10898b&&_0x136b15!==_0x10898b)return![];const _0xb0b2c1=_0x136b15||_0x10898b,_0x4200d2=tzParts(_0x5e3489[_0xf831a0(0x4b0)][_0xf831a0(0x1028)](),_0xb0b2c1);return _0x5e3489[_0xf831a0(0x4b0)][_0xf831a0(0x1028)]()===zonedWallToMs(_0x4200d2['y'],_0x4200d2['mo'],_0x4200d2['d'],0x0,0x0,0x0,_0xb0b2c1);}[_0x46af5e(0xccc)](_0x298a9d){const _0x2b9669=_0x46af5e;if(!_0x298a9d||_0x298a9d['fixed_value']||_0x298a9d[_0x2b9669(0x102c)])return![];const _0x100589=_0x298a9d[_0x2b9669(0xc48)],_0x26ce33=new Set([_0x2b9669(0x220),_0x2b9669(0xba1),'avg',_0x2b9669(0xd0e),undefined,null,'']),_0x1ad48b=_0x100589===undefined||_0x100589===null||_0x100589==='';if(_0x26ce33[_0x2b9669(0x101d)](_0x100589)&&this['_isCounterEntity'](_0x298a9d)){if(_0x1ad48b&&this[_0x2b9669(0xebd)]())return![];return!![];}if(_0x100589===_0x2b9669(0x220)&&!this[_0x2b9669(0x4ab)](_0x298a9d)&&this[_0x2b9669(0xd6c)](_0x298a9d))return!![];if(_0x100589===_0x2b9669(0x934)&&!this[_0x2b9669(0x4ab)](_0x298a9d)&&this[_0x2b9669(0xd6c)](_0x298a9d))return!![];if((_0x100589==='last'||_0x100589===_0x2b9669(0x2d8))&&!(_0x100589===_0x2b9669(0xa5d)&&this['_isCounterEntity'](_0x298a9d))&&this[_0x2b9669(0xd6c)](_0x298a9d))return!![];return![];}['_entPrefersStats'](_0x539659){const _0x169192=_0x46af5e,_0x38745b=_0x539659?.['data_source']||this[_0x169192(0xfe9)]?.[_0x169192(0xec9)]||_0x169192(0x6c8);if(_0x38745b===_0x169192(0xbb5))return!![];if(_0x38745b===_0x169192(0x9bd))return![];return!!(_0x539659?.[_0x169192(0x974)]&&!_0x539659['statistic_id']&&_hfDetected[_0x169192(0x101d)](_0x539659['entity']));}[_0x46af5e(0x1b0)](_0x2082c5,_0x471bd0,_0x340c4b){const _0x50f049=_0x46af5e;if(!_0x2082c5?.[_0x50f049(0x974)]||_0x2082c5['statistic_id']||!_hfDetected[_0x50f049(0x101d)](_0x2082c5[_0x50f049(0x974)]))return![];const _0x5c4d12=toNum(this['_config']?.[_0x50f049(0x881)]),_0x10bf30=isNum(_0x5c4d12)&&_0x5c4d12>0x0?_0x5c4d12:_0x340c4b;if(!isNum(_0x10bf30)||_0x10bf30>HF_FINE_MAX_H)return![];const _0x4ddd1f=resolvePointsPerHour(this[_0x50f049(0xfe9)],_0x2082c5,_0x340c4b),_0x28fcc3=groupBucketMs(resolveGroupBy(this['_config'],_0x340c4b,_0x2082c5),this['_config']?.[_0x50f049(0xabc)],_0x4ddd1f),_0x147e9c=this[_0x50f049(0x179)](_0x2082c5,_0x471bd0),_0x4a381d=_0x147e9c==='5minute'?0x493e0:_0x147e9c===_0x50f049(0x309)?0x5265c00:_0x147e9c===_0x50f049(0x6f1)?0x240c8400:_0x147e9c===_0x50f049(0xe7d)?0x9a7ec800:0x36ee80;return!isNum(_0x28fcc3)||_0x28fcc3<=0x0||_0x28fcc3<_0x4a381d;}[_0x46af5e(0x179)](_0x390502,_0x1a820e){const _0x9d6289=_0x46af5e,_0x4dd2bc=this[_0x9d6289(0xf71)](_0x390502),_0xf18d6c=_0x1a820e['source']===_0x9d6289(0xbb5)?_0x1a820e:_0x1a820e['ltsVeto']||(_0x4dd2bc?_0x1a820e[_0x9d6289(0xa0e)]:null);if(!_0xf18d6c)return _0x9d6289(0x2ab);if(_0xf18d6c[_0x9d6289(0xfb6)]&&!this[_0x9d6289(0xccc)](_0x390502))return _0xf18d6c[_0x9d6289(0xfb6)];return _0xf18d6c[_0x9d6289(0xe4c)];}async[_0x46af5e(0x7a7)](_0x4f75c3){const _0xb0648d=_0x46af5e;if(!this['_statMeta'])this[_0xb0648d(0x558)]=Object['create'](null);if(!this['_hass']?.[_0xb0648d(0x748)])return;const _0x50c1ed=[];for(const _0x34cae1 of _0x4f75c3){if(_0x34cae1&&!(_0x34cae1 in this[_0xb0648d(0x558)]))_0x50c1ed[_0xb0648d(0xb31)](_0x34cae1);}if(!_0x50c1ed['length'])return;try{let _0x20e945;try{_0x20e945=await this[_0xb0648d(0x1dc)][_0xb0648d(0x748)]({'type':_0xb0648d(0x2f4),'statistic_ids':_0x50c1ed});}catch(_0x2aff8b){_0x20e945=await this[_0xb0648d(0x1dc)]['callWS']({'type':_0xb0648d(0x5be)});}if(Array[_0xb0648d(0x902)](_0x20e945)){const _0x53c264=new Set(_0x50c1ed);for(const _0x2a1cf4 of _0x20e945){if(!_0x2a1cf4?.[_0xb0648d(0xd53)])continue;_0x53c264['has'](_0x2a1cf4['statistic_id'])&&(this['_statMeta'][_0x2a1cf4[_0xb0648d(0xd53)]]={'unit_of_measurement':_0x2a1cf4['statistics_unit_of_measurement']||_0x2a1cf4[_0xb0648d(0x398)]||null,'has_mean':!!_0x2a1cf4[_0xb0648d(0xb78)],'has_sum':!!_0x2a1cf4[_0xb0648d(0xa2f)],'source':_0x2a1cf4[_0xb0648d(0xb99)]||null,'name':_0x2a1cf4[_0xb0648d(0xdee)]||null});}for(const _0x54eba2 of _0x50c1ed){if(!(_0x54eba2 in this[_0xb0648d(0x558)]))this[_0xb0648d(0x558)][_0x54eba2]={'unit_of_measurement':null};}}}catch{}}[_0x46af5e(0xeba)](){const _0x4ad49d=_0x46af5e,_0x3885d3=new Set();for(const _0x7cdc6c of this[_0x4ad49d(0xfef)]||[]){if(_0x7cdc6c[_0x4ad49d(0x974)]&&!_0x7cdc6c['statistic_id'])_0x3885d3['add'](_0x7cdc6c['entity']);}for(const _0x3d4301 of this[_0x4ad49d(0xe40)]||[])_0x3885d3['add'](_0x3d4301);for(const _0x18811f of this[_0x4ad49d(0x8b1)]||[])_0x3885d3['add'](_0x18811f);for(const _0x33559a of this['_refRefIds']||[])_0x3885d3[_0x4ad49d(0x982)](_0x33559a);if(this[_0x4ad49d(0xfe9)]?.['battery_entity'])_0x3885d3[_0x4ad49d(0x982)](this['_config'][_0x4ad49d(0x254)]);return[..._0x3885d3][_0x4ad49d(0xd09)]()[_0x4ad49d(0x888)]('|');}[_0x46af5e(0xb0c)](){const _0x38d763=_0x46af5e;if(this[_0x38d763(0x4b5)]||this[_0x38d763(0xbe3)]||!this['_hass']?.[_0x38d763(0xb9b)])return;if(!this[_0x38d763(0x1038)]&&!this['_annotationRefs'][_0x38d763(0xc44)]&&!this[_0x38d763(0x8b1)][_0x38d763(0xc44)]&&!this[_0x38d763(0x7c1)][_0x38d763(0xc44)]&&!this[_0x38d763(0xfe9)]?.[_0x38d763(0x254)])return;const _0x3a5fbd=new Set();for(const _0xd89120 of this[_0x38d763(0xfef)]){if(_0xd89120[_0x38d763(0x974)]&&!_0xd89120[_0x38d763(0xd53)])_0x3a5fbd[_0x38d763(0x982)](_0xd89120[_0x38d763(0x974)]);}for(const _0x4b4d44 of this[_0x38d763(0xe40)])_0x3a5fbd[_0x38d763(0x982)](_0x4b4d44);for(const _0x545b8f of this[_0x38d763(0x8b1)]||[])_0x3a5fbd[_0x38d763(0x982)](_0x545b8f);for(const _0x1a6dc8 of this[_0x38d763(0x7c1)]||[])_0x3a5fbd[_0x38d763(0x982)](_0x1a6dc8);if(this[_0x38d763(0xfe9)][_0x38d763(0x254)])_0x3a5fbd[_0x38d763(0x982)](this[_0x38d763(0xfe9)][_0x38d763(0x254)]);const _0x10fd0a=[..._0x3a5fbd];if(!_0x10fd0a['length'])return;this['_wsTrackedKey']=_0x10fd0a['slice']()['sort']()[_0x38d763(0x888)]('|'),this[_0x38d763(0xbe3)]=!![];const _0x574807=this[_0x38d763(0xef3)]=(this[_0x38d763(0xef3)]||0x0)+0x1,_0xe366cd=(_0xb7aeb7,_0x114e22)=>{const _0x31d1fe=_0x38d763;if(!_0x114e22||_0x114e22[_0x31d1fe(0x5f5)]===_0x31d1fe(0x9ac)||_0x114e22[_0x31d1fe(0x5f5)]===_0x31d1fe(0x94d))return;if(!this[_0x31d1fe(0x1dc)])return;const _0x201699=this[_0x31d1fe(0x1dc)];try{let _0x3b379d=![];if(this['_liveEnabled'])for(const _0x17edc4 of this[_0x31d1fe(0xfef)]){if(_0x17edc4[_0x31d1fe(0x974)]===_0xb7aeb7&&!_0x17edc4['statistic_id']){_0x3b379d=!![];break;}}const _0x58e42b=this[_0x31d1fe(0xe40)]['has'](_0xb7aeb7),_0x828cfe=this[_0x31d1fe(0xfe9)][_0x31d1fe(0x254)]===_0xb7aeb7;if(this[_0x31d1fe(0x8b1)][_0x31d1fe(0x101d)](_0xb7aeb7)&&!sameStateVal(_0x201699[_0x31d1fe(0x4f9)]?.[_0xb7aeb7],_0x114e22))this['_schedulePriceRefetch']();const _0x2913da=this[_0x31d1fe(0x7c1)]['has'](_0xb7aeb7)&&this['_processRefTicks']({'states':{[_0xb7aeb7]:_0x114e22}});_0x2913da&&!_0x3b379d&&(this[_0x31d1fe(0xbe1)]=!![],this[_0x31d1fe(0x96b)]());if(_0x3b379d||_0x58e42b){const _0x299296=Object[_0x31d1fe(0xb67)](Object[_0x31d1fe(0x977)](_0x201699[_0x31d1fe(0x4f9)]),{[_0xb7aeb7]:_0x114e22}),_0x4e1dee={..._0x201699,'states':_0x299296};if(_0x3b379d)this[_0x31d1fe(0xbc5)](_0x4e1dee);if(_0x58e42b)this[_0x31d1fe(0xe54)](_0x4e1dee);}(_0x3b379d||_0x828cfe)&&this[_0x31d1fe(0xbb2)]?.[_0x31d1fe(0xee6)]?.(_0x31d1fe(0xfde))&&this['_renderStateRow']();}catch(_0x1e3d34){console[_0x31d1fe(0x9a7)](_0x31d1fe(0x3f0),_0x1e3d34);}},_0x32a3c6=_0x10fd0a[_0x38d763(0xc02)]>0x0&&_0x10fd0a[_0x38d763(0xc02)]<=0x40,_0x3b8792=()=>{const _0x2cf20f=_0x38d763;this[_0x2cf20f(0x1dc)]['connection'][_0x2cf20f(0xa7a)](_0x2a2e33=>{const _0x221b79=_0x2cf20f,_0x44ddb1=_0x2a2e33?.[_0x221b79(0x60e)]?.[_0x221b79(0xa49)];if(!_0x3a5fbd['has'](_0x44ddb1))return;_0xe366cd(_0x44ddb1,_0x2a2e33[_0x221b79(0x60e)][_0x221b79(0x61b)]);},_0x2cf20f(0x59f))[_0x2cf20f(0x91a)](_0x1c8b37=>{const _0x5c8f18=_0x2cf20f;if(_0x574807!==this['_wsGen']){try{_0x1c8b37();}catch{}return;}this[_0x5c8f18(0x4b5)]=_0x1c8b37,this[_0x5c8f18(0xbe3)]=![];})['catch'](()=>{const _0x11c8e0=_0x2cf20f;if(_0x574807===this[_0x11c8e0(0xef3)])this['_wsSubscribing']=![];});};_0x32a3c6?this[_0x38d763(0x1dc)][_0x38d763(0xb9b)][_0x38d763(0x2ae)](_0x145a50=>{const _0xf35679=_0x38d763,_0x6e1ec0=_0x145a50?.[_0xf35679(0x52a)]?.[_0xf35679(0xdb9)];if(!_0x6e1ec0)return;const _0x5d7158=_0x6e1ec0[_0xf35679(0x331)];if(_0x5d7158)_0xe366cd(_0x5d7158[_0xf35679(0xa49)],_0x5d7158);},{'type':_0x38d763(0x728),'trigger':{'platform':_0x38d763(0x5f5),'entity_id':_0x10fd0a}})['then'](_0x4b4d26=>{const _0x4ba684=_0x38d763;if(_0x574807!==this[_0x4ba684(0xef3)]){try{_0x4b4d26();}catch{}return;}this[_0x4ba684(0x4b5)]=_0x4b4d26,this[_0x4ba684(0xbe3)]=![];})[_0x38d763(0x9d5)](()=>{const _0x168a91=_0x38d763;if(_0x574807===this[_0x168a91(0xef3)])_0x3b8792();}):_0x3b8792();}['_unsubscribeEvents'](){const _0x462f86=_0x46af5e;this[_0x462f86(0xef3)]=(this[_0x462f86(0xef3)]||0x0)+0x1;if(this[_0x462f86(0x4b5)]){try{this['_wsUnsub']();}catch{}this[_0x462f86(0x4b5)]=null;}this['_wsSubscribing']=![],this[_0x462f86(0x766)]=null;}[_0x46af5e(0xbc5)](_0x82388b){const _0x54d4bf=_0x46af5e;let _0x505361=![];this['_entities']['forEach']((_0x3b23e2,_0x27da44)=>{const _0x4d9719=_0xa914;if(!_0x3b23e2[_0x4d9719(0x974)]||_0x3b23e2[_0x4d9719(0xd53)])return;if(this[_0x4d9719(0xd6c)](_0x3b23e2)){const _0x37b5e2=_0x3b23e2[_0x4d9719(0xc48)];if(_0x37b5e2!==_0x4d9719(0xa5d)&&_0x37b5e2!==_0x4d9719(0x2d8)&&_0x37b5e2!==_0x4d9719(0x220)&&_0x37b5e2!==_0x4d9719(0xba1))return;}const _0x46ec0f=_0x82388b['states'][_0x3b23e2['entity']];if(!_0x46ec0f)return;const _0x1b2e31=_0x46ec0f[_0x4d9719(0x6a4)]||_0x46ec0f[_0x4d9719(0xaf1)]||null;if(_0x1b2e31===this[_0x4d9719(0x782)][_0x3b23e2[_0x4d9719(0x974)]])return;this[_0x4d9719(0x782)][_0x3b23e2[_0x4d9719(0x974)]]=_0x1b2e31;if(_0x3b23e2['fixed_value']||_0x3b23e2[_0x4d9719(0x102c)]){this[_0x4d9719(0xbe1)]=!![],_0x505361=!![];return;}const _0x58b281=this[_0x4d9719(0x88b)](_0x3b23e2,_0x27da44),_0x8c9704=_0x58b281?getAttributePath(_0x46ec0f[_0x4d9719(0x467)],_0x58b281):_0x46ec0f['state'],_0x3dbc75=toNum(_0x8c9704);if(_0x3dbc75===null)return;const _0x3dfc82=_0x1b2e31?new Date(_0x1b2e31)[_0x4d9719(0x1028)]():Date[_0x4d9719(0x69d)]();(this[_0x4d9719(0xd64)][_0x3b23e2[_0x4d9719(0x974)]]||=[])[_0x4d9719(0xb31)]({'t':_0x3dfc82,'v':_0x3dbc75}),_0x505361=!![];});if(_0x505361)this[_0x54d4bf(0x96b)]();}[_0x46af5e(0xb97)](_0x4a8622){const _0x31a963=_0x46af5e;if(!this[_0x31a963(0x7c1)]?.[_0x31a963(0xc44)]||!this[_0x31a963(0xbfd)]?.[_0x31a963(0xc44)])return![];let _0x153f25=![];for(const _0x348edd of this[_0x31a963(0x7c1)]){const _0x49b93d=_0x4a8622[_0x31a963(0x4f9)]?.[_0x348edd];if(!_0x49b93d)continue;const _0x2b56d0=_0x49b93d[_0x31a963(0x6a4)]||_0x49b93d[_0x31a963(0xaf1)]||null;if(_0x2b56d0===this[_0x31a963(0x58c)][_0x348edd])continue;this[_0x31a963(0x58c)][_0x348edd]=_0x2b56d0;const _0x3c657e=_0x2b56d0?new Date(_0x2b56d0)[_0x31a963(0x1028)]():Date[_0x31a963(0x69d)]();for(const _0x41da3a of this[_0x31a963(0xbfd)]['values']()){if(_0x41da3a['id']!==_0x348edd||!Array[_0x31a963(0x902)](_0x41da3a[_0x31a963(0x6b6)]))continue;if(_0x41da3a['sameRep']&&(_0x41da3a[_0x31a963(0x4a7)]==='sum'||_0x41da3a[_0x31a963(0x4a7)]==='change'))continue;const _0x38e053=toNum(_0x41da3a['attribute']?getAttributePath(_0x49b93d[_0x31a963(0x467)],_0x41da3a[_0x31a963(0xf0f)]):_0x49b93d[_0x31a963(0x5f5)]);if(_0x38e053===null)continue;const _0x4eb00b=_0x3c657e+(_0x41da3a[_0x31a963(0x22b)]||0x0)*0x36ee80,_0x82802d=_0x41da3a[_0x31a963(0x6b6)][_0x41da3a[_0x31a963(0x6b6)][_0x31a963(0xc02)]-0x1];if(_0x82802d&&_0x4eb00b<=_0x82802d['t'])continue;_0x41da3a[_0x31a963(0x6b6)][_0x31a963(0xb31)]({'t':_0x4eb00b,'v':_0x38e053});const _0x1779f9=this[_0x31a963(0xbe0)],_0x15938a=_0x1779f9?this[_0x31a963(0xbd5)]((_0x1779f9[_0x31a963(0x244)][_0x31a963(0x1028)]()-_0x1779f9[_0x31a963(0x4b0)][_0x31a963(0x1028)]())/0x36ee80):0x0,_0x1b0249=(_0x1779f9?.[_0x31a963(0x4b0)]?.[_0x31a963(0x1028)]()||0x0)-_0x15938a-0x5265c00;let _0x5a0a82=0x0;while(_0x5a0a82<_0x41da3a[_0x31a963(0x6b6)][_0x31a963(0xc02)]&&_0x41da3a[_0x31a963(0x6b6)][_0x5a0a82]['t']<_0x1b0249)_0x5a0a82++;if(_0x5a0a82>0x1)_0x41da3a[_0x31a963(0x6b6)][_0x31a963(0x76c)](0x0,_0x5a0a82-0x1);this['_refDirtyIds'][_0x31a963(0x982)](_0x348edd),_0x153f25=!![];}}return _0x153f25;}[_0x46af5e(0xe54)](_0x25d5ab){const _0x2d43c9=_0x46af5e;let _0x5c68a8=![];for(const _0x2b26c7 of this[_0x2d43c9(0xe40)]){const _0x1c2ef7=_0x25d5ab[_0x2d43c9(0x4f9)][_0x2b26c7];if(!_0x1c2ef7)continue;const _0x29ca9c=_0x1c2ef7[_0x2d43c9(0x6a4)]||_0x1c2ef7[_0x2d43c9(0xaf1)]||null;if(_0x29ca9c===this['_prevAnnotationStamps'][_0x2b26c7])continue;this['_prevAnnotationStamps'][_0x2b26c7]=_0x29ca9c,_0x5c68a8=!![];}if(_0x5c68a8)this[_0x2d43c9(0x3ec)]();}['_scheduleLiveFlush'](){const _0x23d705=_0x46af5e;if(this['_liveFlushTimer'])return;this[_0x23d705(0xab5)]=setTimeout(()=>{const _0x5017b5=_0x23d705;this[_0x5017b5(0xab5)]=null,this[_0x5017b5(0x829)]();},LIVE_FLUSH_DEBOUNCE_MS);}[_0x46af5e(0x829)](){const _0x23f45b=_0x46af5e;if(!this[_0x23f45b(0x2d4)]||!this[_0x23f45b(0xbe0)])return;const _0x1cc049=Object[_0x23f45b(0x3ab)](this[_0x23f45b(0xd64)])[_0x23f45b(0xc02)]>0x0;if(!_0x1cc049&&!this[_0x23f45b(0xd78)]&&!this[_0x23f45b(0xbe1)])return;const _0x388ebf=this[_0x23f45b(0xd78)];this[_0x23f45b(0xd78)]=![],this['_pendingSyntheticRefresh']=![];if(this[_0x23f45b(0x6ba)]()){const _0x37b949=this['_computeEffectiveWindow']();_0x37b949&&(this[_0x23f45b(0x6f7)](_0x37b949),this['_window']=_0x37b949);}this[_0x23f45b(0xe48)]=Date[_0x23f45b(0x69d)]();const _0x2017d5=this[_0x23f45b(0xbe0)][_0x23f45b(0x4b0)]['getTime'](),_0x389617=this['_window'][_0x23f45b(0x244)][_0x23f45b(0x1028)](),_0x354191=_0x389617>this['_nowStampMs'];Object[_0x23f45b(0x712)](this[_0x23f45b(0xfe9)],'__sgcActiveRule',{'value':activeScaleRule(this[_0x23f45b(0xfe9)],(_0x389617-_0x2017d5)/0x36ee80),'enumerable':![],'writable':!![],'configurable':!![]});const _0x30f599=this[_0x23f45b(0xbd5)]((_0x389617-_0x2017d5)/0x36ee80);for(const _0x43a0f3 of this[_0x23f45b(0x2d4)][_0x23f45b(0xfa8)]){const _0x501483=_0x43a0f3[_0x23f45b(0x974)],_0x55981c=_0x501483[_0x23f45b(0x974)]?resolveOffsetHours(_0x501483['offset'],this[_0x23f45b(0x1dc)]):0x0,_0x30b7c7=_0x501483[_0x23f45b(0x974)]&&_0x55981c===0x0&&this[_0x23f45b(0xd64)][_0x501483['entity']]?.[_0x23f45b(0xc02)]>0x0,_0x3d8c68=_0x501483[_0x23f45b(0xbef)]||_0x501483[_0x23f45b(0x102c)];if(_0x501483[_0x23f45b(0xbef)]){const _0x35d238=this['_hass']?.['states']?.[_0x501483[_0x23f45b(0x974)]],_0x3953c7=_0x501483[_0x23f45b(0xf0f)]?getAttributePath(_0x35d238?.['attributes'],_0x501483[_0x23f45b(0xf0f)]):_0x35d238?.[_0x23f45b(0x5f5)],_0x11adc8=toNum(_0x3953c7);_0x11adc8!==null?_0x43a0f3[_0x23f45b(0xbcc)]=[{'t':_0x2017d5,'v':_0x11adc8},{'t':_0x389617,'v':_0x11adc8}]:_0x43a0f3[_0x23f45b(0xbcc)]=[];this[_0x23f45b(0x40c)](_0x43a0f3),_0x43a0f3[_0x23f45b(0xf22)]=DataProcessor[_0x23f45b(0xb79)](_0x43a0f3[_0x23f45b(0x93a)]);continue;}if(_0x501483[_0x23f45b(0x102c)]){const _0x2c5c94=this['_hass']?.[_0x23f45b(0x4f9)]?.[_0x501483['entity']];let _0xd35876=synthesizeForecastSeries(_0x2c5c94,_0x501483,this[_0x23f45b(0xbe0)]['start'],this[_0x23f45b(0x1dc)]);const _0x391011=toNum(_0x501483['forecast_horizon'])||0x0,_0x33d523=_0x391011<0x0?_0x389617-_0x391011*0x36ee80:_0x389617;_0xd35876=_0xd35876[_0x23f45b(0x919)](_0x13bdac=>_0x13bdac['t']>=_0x2017d5&&_0x13bdac['t']<=_0x33d523);if(_0x391011!==0x0&&_0xd35876['length']){const _0xb61ed2=_0x391011*0x36ee80;_0xd35876=_0xd35876['map'](_0x140081=>({..._0x140081,'t':_0x140081['t']+_0xb61ed2}));if(_0x391011>0x0)_0xd35876=_0xd35876['filter'](_0x181831=>_0x181831['t']>=_0x2017d5&&_0x181831['t']<=_0x389617);}_0x43a0f3[_0x23f45b(0xbcc)]=_0xd35876,this[_0x23f45b(0x40c)](_0x43a0f3),_0x43a0f3[_0x23f45b(0xf22)]=DataProcessor[_0x23f45b(0xb79)](_0x43a0f3['points']);continue;}const _0x7a06db=!!(_0x501483[_0x23f45b(0x455)]&&this[_0x23f45b(0x30e)]?.['has'](_0x501483[_0x23f45b(0x455)]))||!!this[_0x23f45b(0xf65)]&&!!_0x501483[_0x23f45b(0x625)];if(!_0x501483['entity']||_0x501483[_0x23f45b(0xd53)]){if(!_0x388ebf&&!_0x7a06db&&!_0x354191)continue;let _0x31fd78=0x0;const _0x836ec7=_0x30f599>0x0?_0x2017d5-_0x30f599:_0x2017d5;while(_0x31fd78<_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)]&&_0x43a0f3[_0x23f45b(0xbcc)][_0x31fd78]['t']<_0x836ec7)_0x31fd78++;if(_0x31fd78>0x1)_0x43a0f3['raw'][_0x23f45b(0x76c)](0x0,_0x31fd78-0x1);let _0x11d7d6=_0x43a0f3['raw']['length'];while(_0x11d7d6>0x0&&_0x43a0f3[_0x23f45b(0xbcc)][_0x11d7d6-0x1]['t']>=_0x389617)_0x11d7d6--;if(_0x11d7d6<_0x43a0f3['raw'][_0x23f45b(0xc02)])_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)]=_0x11d7d6;}else{if(!_0x30b7c7&&!_0x388ebf&&!_0x7a06db&&!_0x354191)continue;const _0x4412dc=_0x55981c===0x0?this[_0x23f45b(0xd64)][_0x501483[_0x23f45b(0x974)]]:null;if(_0x4412dc?.[_0x23f45b(0xc02)]){_0x4412dc[_0x23f45b(0xd09)]((_0x36e5a0,_0xd27747)=>_0x36e5a0['t']-_0xd27747['t']);for(let _0x5129d0=0x0;_0x5129d0<_0x4412dc[_0x23f45b(0xc02)];_0x5129d0++){const _0x1a1e64=_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)]?_0x43a0f3[_0x23f45b(0xbcc)][_0x43a0f3['raw'][_0x23f45b(0xc02)]-0x1]['t']:-Infinity;if(_0x4412dc[_0x5129d0]['t']<_0x1a1e64)continue;if(_0x4412dc[_0x5129d0]['t']===_0x1a1e64)_0x43a0f3[_0x23f45b(0xbcc)][_0x43a0f3['raw'][_0x23f45b(0xc02)]-0x1]=_0x4412dc[_0x5129d0];else _0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xb31)](_0x4412dc[_0x5129d0]);}}let _0x2664ee=0x0;const _0x4ab88a=_0x30f599>0x0?_0x2017d5-_0x30f599:_0x2017d5;while(_0x2664ee<_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)]&&_0x43a0f3[_0x23f45b(0xbcc)][_0x2664ee]['t']<_0x4ab88a)_0x2664ee++;if(_0x2664ee>0x1)_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0x76c)](0x0,_0x2664ee-0x1);let _0x419e39=_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)];while(_0x419e39>0x0&&_0x43a0f3[_0x23f45b(0xbcc)][_0x419e39-0x1]['t']>=_0x389617)_0x419e39--;if(_0x419e39<_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)])_0x43a0f3[_0x23f45b(0xbcc)][_0x23f45b(0xc02)]=_0x419e39;}this[_0x23f45b(0x40c)](_0x43a0f3),_0x43a0f3[_0x23f45b(0xf22)]=DataProcessor[_0x23f45b(0xb79)](_0x43a0f3['points']);}this[_0x23f45b(0xd64)]=Object[_0x23f45b(0x977)](null),this['_refDirtyIds'][_0x23f45b(0xb69)](),this['_priceDirty']=![],this[_0x23f45b(0x3ec)](),this[_0x23f45b(0x4da)]();}[_0x46af5e(0x8ab)](){const _0xee4eda=_0x46af5e,_0x15c606=Date['now'](),_0x4d4ce4=_0x15c606-(this[_0xee4eda(0xe6b)]||0x0);if(_0x4d4ce4<0x1388){!this[_0xee4eda(0xeb3)]&&(this[_0xee4eda(0xeb3)]=setTimeout(()=>{const _0x3f07ca=_0xee4eda;this[_0x3f07ca(0xeb3)]=null,this['_lastPriceRefetchTs']=Date[_0x3f07ca(0x69d)](),this[_0x3f07ca(0x9a0)]();},0x1388-_0x4d4ce4));return;}this['_lastPriceRefetchTs']=_0x15c606,this[_0xee4eda(0x9a0)]();}[_0x46af5e(0xf52)](_0x3765e6,_0x22370d,_0x5afdb0,_0x1cc78c,_0x9e808e,_0x4d17f3,_0x39486d){const _0x4d3feb=_0x46af5e,_0x39619a=[];for(const [_0x19d8e8,_0x2574d7]of _0x3765e6){const _0x340c61=_0x2574d7[_0x4d3feb(0x22b)]*0x36ee80,_0x461b65=new Date(_0x22370d-_0x340c61-_0x1cc78c-_0x9e808e-0x5265c00),_0x10533b=new Date(_0x5afdb0-_0x340c61);_0x2574d7[_0x4d3feb(0xfc5)]?_0x39619a['push'](this[_0x4d3feb(0x4db)]['fetchStatistics'](this['_hass'],[_0x2574d7['id']],_0x461b65,_0x10533b,_0x4d3feb(0x2ab),_0x4d17f3,[_0x4d3feb(0xd0e)])[_0x4d3feb(0x91a)](_0x9671a7=>{const _0x3222d7=_0x4d3feb,_0x596af9=[];for(const _0x71f785 of _0x9671a7[_0x2574d7['id']]||[]){if(isNum(_0x71f785[_0x3222d7(0xd0e)]))_0x596af9[_0x3222d7(0xb31)]({'t':_0x71f785['t']+_0x340c61,'v':_0x71f785['mean']});}_0x39486d[_0x3222d7(0xa2d)](_0x19d8e8,_0x596af9);})):_0x39619a[_0x4d3feb(0xb31)](this[_0x4d3feb(0x4db)]['fetchHistory'](this['_hass'],[{'id':_0x2574d7['id'],'attribute':_0x2574d7[_0x4d3feb(0xf0f)]}],_0x461b65,_0x10533b,_0x4d17f3)['then'](_0x2bae86=>{const _0x279332=_0x4d3feb,_0x4039c1=[];for(const _0x3364d8 of _0x2bae86[_0x2574d7['id']]||[]){const _0x5ad124=_0x2574d7[_0x279332(0xf0f)]?getAttributePath(_0x3364d8['attributes'],_0x2574d7[_0x279332(0xf0f)]):_0x3364d8[_0x279332(0x5f5)],_0x561fe0=toNum(_0x5ad124);if(_0x561fe0!==null)_0x4039c1['push']({'t':_0x3364d8['t']+_0x340c61,'v':_0x561fe0});}_0x39486d[_0x279332(0xa2d)](_0x19d8e8,_0x4039c1);}));}return _0x39619a;}async['_refreshPriceSeries'](){const _0x2819ed=_0x46af5e,_0x57de41=this[_0x2819ed(0x63f)];if(!_0x57de41||!this[_0x2819ed(0xf9a)]||!this['_graphData']?.[_0x2819ed(0xfa8)]?.['length']){this[_0x2819ed(0x9c5)]();return;}const _0x7e080c=this[_0x2819ed(0x6f0)]=(this[_0x2819ed(0x6f0)]||0x0)+0x1,_0x251533=new Map();try{await Promise[_0x2819ed(0xda4)](this[_0x2819ed(0xf52)](_0x57de41[_0x2819ed(0x429)],_0x57de41['sMs'],_0x57de41[_0x2819ed(0x385)],_0x57de41[_0x2819ed(0x6a2)],_0x57de41[_0x2819ed(0x5bb)],![],_0x251533));}catch{return;}if(_0x7e080c!==this[_0x2819ed(0x6f0)]||!this[_0x2819ed(0x191)])return;this['_priceSeries']=_0x251533,this[_0x2819ed(0xe22)]=(this[_0x2819ed(0xe22)]||0x0)+0x1,this[_0x2819ed(0xf65)]=!![],this[_0x2819ed(0xbe1)]=!![],this['_scheduleLiveFlush']();}['_priceLookupFor'](_0x2bb242){const _0x4ddeaa=_0x46af5e;if(!_0x2bb242?.[_0x4ddeaa(0x625)])return null;const _0x56e0c0=resolveOffsetHours(_0x2bb242['offset'],this[_0x4ddeaa(0x1dc)])||0x0;return stepLookup(this[_0x4ddeaa(0x389)]?.[_0x4ddeaa(0xc3f)](_0x2bb242[_0x4ddeaa(0x625)]+'__'+_0x56e0c0),{'clampLeft':!![]});}['_refLookupFor'](_0x4107ee){const _0x1a9359=_0x46af5e;if(!_0x4107ee?.['ref_entity'])return null;const _0x189aea=resolveOffsetHours(_0x4107ee[_0x1a9359(0x4ff)],this['_hass'])||0x0,_0x873fd=this[_0x1a9359(0xbfd)]?.['get'](_0x4107ee[_0x1a9359(0x51c)]||refJobKey(_0x4107ee,_0x189aea,_0x1a9359(0x8e0)));if(!_0x873fd||!_0x873fd[_0x1a9359(0x6b6)]?.['length'])return null;return stepLookup(_0x873fd[_0x1a9359(0x6b6)],{'clampLeft':![]});}[_0x46af5e(0xbe4)](_0x30df80){const _0x156263=_0x46af5e;if(!_0x30df80?.[_0x156263(0x455)])return![];const _0x422416=normalizeRefOp(_0x30df80[_0x156263(0x58d)]);if(_0x422416!==_0x156263(0x471)&&_0x422416!==_0x156263(0x982)&&_0x422416!==_0x156263(0xd0d))return![];return['change',_0x156263(0x934),_0x156263(0x7e6),_0x156263(0xc09)][_0x156263(0xf06)](_0x30df80[_0x156263(0xc48)]);}[_0x46af5e(0x345)](_0x46db45,_0x5a3f99){const _0x406708=_0x46af5e;if(!_0x5a3f99?.[_0x406708(0x455)])return _0x46db45;if(this['_refRefused'](_0x5a3f99)){if(!this[_0x406708(0xa75)])this[_0x406708(0xa75)]=new Set();const _0xdf64fc=(_0x5a3f99[_0x406708(0x974)]||_0x5a3f99[_0x406708(0xd53)])+'|'+(_0x5a3f99[_0x406708(0x58d)]||'subtract')+'|'+_0x5a3f99[_0x406708(0xc48)];return!this[_0x406708(0xa75)]['has'](_0xdf64fc)&&(this[_0x406708(0xa75)][_0x406708(0x982)](_0xdf64fc),console['warn'](_0x406708(0x459)+(_0x5a3f99[_0x406708(0x58d)]||_0x406708(0x471))+_0x406708(0x421)+_0x5a3f99[_0x406708(0xc48)]+_0x406708(0xdfb)+(_0x5a3f99['entity']||_0x5a3f99[_0x406708(0xd53)])+_0x406708(0xd63))),[];}const _0x2c51c9=this[_0x406708(0x243)](_0x5a3f99);if(!_0x2c51c9){if(!this[_0x406708(0xa75)])this['_refWarned']=new Set();const _0x5ed9bd=_0x406708(0x2d2)+_0x5a3f99['ref_entity'];return!this[_0x406708(0xa75)][_0x406708(0x101d)](_0x5ed9bd)&&(this[_0x406708(0xa75)][_0x406708(0x982)](_0x5ed9bd),console[_0x406708(0x9a7)](_0x406708(0xda0)+_0x5a3f99[_0x406708(0x455)]+_0x406708(0x937)+(_0x5a3f99[_0x406708(0x974)]||_0x5a3f99[_0x406708(0xd53)])+_0x406708(0xb2a))),[];}return DataProcessor[_0x406708(0xff2)](_0x46db45,_0x2c51c9,_0x5a3f99[_0x406708(0x58d)]);}[_0x46af5e(0x24f)](_0x5ccb08,_0x59f744,_0x3fed06){const _0x148c6c=_0x46af5e,_0x4144c7=this[_0x148c6c(0xbfd)]?.[_0x148c6c(0xc3f)](_0x59f744[_0x148c6c(0x51c)]),_0x246e97=normalizeRefOp(_0x59f744['ref_op']),_0x2d2acb=(_0x3cc9d2,_0x42c82a)=>_0x246e97===_0x148c6c(0x982)?_0x3cc9d2+_0x42c82a:_0x246e97===_0x148c6c(0xd0d)?_0x42c82a-_0x3cc9d2:_0x3cc9d2-_0x42c82a;if(!_0x4144c7||!_0x4144c7[_0x148c6c(0x6b6)]?.[_0x148c6c(0xc02)])return(_0x5ccb08||[])[_0x148c6c(0xb3f)](_0xba3718=>_0xba3718&&isNum(_0xba3718['v'])?{..._0xba3718,'v':_0x2d2acb(_0xba3718['v'],0x0),'bMin':null,'bMax':null,'sMean':null,'sMin':null}:_0xba3718);const {isStat:_0x5f3c0c,effGroupBy:_0xe60247,effectiveAgg:_0x103cb9,bucket:_0x577028,startMs:_0x264162,endMs:_0x431a6b,dispTz:_0x3d842d,firstWd:_0x45df53,nowMs:_0xd71033,isDeltaSeries:_0x52d17a,carryPastNow:_0x3eeb44}=_0x3fed06,_0x5ea04d=_0x4144c7[_0x148c6c(0x6b6)][_0x148c6c(0x919)](_0x4e4b0e=>_0x4e4b0e&&isNum(_0x4e4b0e['v']))['sort']((_0x21e1f0,_0x49dac9)=>_0x21e1f0['t']-_0x49dac9['t']);let _0x32fd8e;if(_0x59f744['aggregate_func']===_0x148c6c(0x934))_0x32fd8e=DataProcessor[_0x148c6c(0x8df)](_0x5ea04d);else _0x59f744['aggregate_func']===_0x148c6c(0xe34)||_0x59f744[_0x148c6c(0xc48)]===_0x148c6c(0x7e6)&&_0x5f3c0c?_0x32fd8e=_0x4144c7[_0x148c6c(0x1ba)]?_0x5ea04d:DataProcessor['changeDiffSeries'](_0x5ea04d,_0x59f744['change_ignore_zero']===!![]):_0x32fd8e=_0x5ea04d;const _0x19394e=this[_0x148c6c(0xc51)](_0x59f744);if(_0x19394e)_0x32fd8e=DataProcessor['applyPriceToSeries'](_0x32fd8e,_0x19394e);_0x32fd8e=_0x32fd8e['filter'](_0x167687=>_0x167687&&_0x167687['t']>=_0x264162&&_0x167687['t']<_0x431a6b);const _0x1a76ec=[_0x148c6c(0x2ab),_0x148c6c(0x88f),_0x148c6c(0x6f1),'month',_0x148c6c(0x73e)];let _0x183f71;if(_0x1a76ec[_0x148c6c(0xf06)](_0xe60247))_0x183f71=DataProcessor['calendarGroup'](_0x32fd8e,_0xe60247,_0x103cb9,_0x431a6b,_0x3d842d,![],_0x45df53);else _0x577028>0x0?_0x183f71=DataProcessor[_0x148c6c(0xd77)](_0x32fd8e,_0x577028,_0x264162,_0x431a6b,_0x103cb9,_0x103cb9===_0x148c6c(0xc09),{'deltaAgg':_0x52d17a,'noLeadFill':!![],'breakOnNull':!!_0x59f744[_0x148c6c(0x18d)],'carryForwardMs':_0x59f744[_0x148c6c(0x82e)],'alignToClock':this[_0x148c6c(0x2cd)](_0x59f744),'anchorStart':['candlestick',_0x148c6c(0x8fb)][_0x148c6c(0xf06)](_0x59f744[_0x148c6c(0xc3c)]||_0x59f744['type']),'carryPastNow':_0x3eeb44,'nowMs':_0xd71033}):_0x183f71=_0x32fd8e;if(_0x103cb9===_0x148c6c(0xc09))_0x183f71=DataProcessor[_0x148c6c(0x843)](_0x183f71||[],![]);const _0x2fe8c5=new Map();for(const _0x52a55a of _0x183f71||[])if(_0x52a55a&&isNum(_0x52a55a['v']))_0x2fe8c5['set'](_0x52a55a['t'],_0x52a55a['v']);const _0x2dcd03=new Set(),_0x2aa91c=[];for(const _0x30c5a1 of _0x5ccb08||[]){if(!_0x30c5a1)continue;_0x2dcd03[_0x148c6c(0x982)](_0x30c5a1['t']);const _0x2a8364=_0x2fe8c5[_0x148c6c(0x101d)](_0x30c5a1['t'])?_0x2fe8c5[_0x148c6c(0xc3f)](_0x30c5a1['t']):0x0;if(isNum(_0x30c5a1['v']))_0x2aa91c[_0x148c6c(0xb31)]({..._0x30c5a1,'v':_0x2d2acb(_0x30c5a1['v'],_0x2a8364),'bMin':null,'bMax':null,'sMean':null,'sMin':null});else{if(_0x2fe8c5['has'](_0x30c5a1['t']))_0x2aa91c['push']({..._0x30c5a1,'v':_0x2d2acb(0x0,_0x2a8364),'bMin':null,'bMax':null,'sMean':null,'sMin':null});else _0x2aa91c[_0x148c6c(0xb31)](_0x30c5a1);}}let _0x50603d=![];for(const [_0x3fd59d,_0x3d9b32]of _0x2fe8c5){if(_0x2dcd03['has'](_0x3fd59d))continue;_0x2aa91c[_0x148c6c(0xb31)]({'t':_0x3fd59d,'v':_0x2d2acb(0x0,_0x3d9b32)}),_0x50603d=!![];}if(_0x50603d)_0x2aa91c['sort']((_0x269460,_0x265c95)=>_0x269460['t']-_0x265c95['t']);return _0x2aa91c;}['_bucketSeries'](_0x145aaf,_0x347a3e,_0x594677,_0x3808f5,_0xe9a52a,_0x3bfdac){const _0x1daf4f=_0x46af5e,_0x135936=this['_config'],_0x5d1614=this[_0x1daf4f(0xe48)]||Date[_0x1daf4f(0x69d)](),_0x57d176=resolveDisplayTimeZone(this[_0x1daf4f(0x1dc)],_0x135936),_0xdf593=resolveFirstWeekday(this[_0x1daf4f(0x1dc)]),_0x306732=['hour',_0x1daf4f(0x88f),_0x1daf4f(0x6f1),_0x1daf4f(0xe7d),'year'],_0x53b264=!_0x347a3e[_0x1daf4f(0xd53)]&&!_0x347a3e[_0x1daf4f(0xbef)]&&!_0x347a3e['data_attribute']&&!isStripEntity(_0x347a3e)&&_0x135936['chart_mode']!==_0x1daf4f(0xb4b)&&_0x135936[_0x1daf4f(0x3b2)]!=='raw';let _0x3d9f4a,_0x4c0d8f=null,_0x293f64=0x0;if(_0x53b264){let _0x4ca427=DataProcessor[_0x1daf4f(0xcce)](_0x347a3e[_0x1daf4f(0xc48)]===_0x1daf4f(0x934)?DataProcessor['diffSeries'](_0x145aaf):!_0x594677&&_0x347a3e['aggregate_func']===_0x1daf4f(0xe34)?DataProcessor[_0x1daf4f(0x9a6)](_0x145aaf,_0x347a3e['change_ignore_zero']===!![]):_0x145aaf,_0x347a3e);const _0x3a2ca1=!!_0x347a3e['ref_entity']&&this[_0x1daf4f(0xbe4)](_0x347a3e);if(_0x347a3e[_0x1daf4f(0x455)]&&!_0x3a2ca1)_0x4ca427=this[_0x1daf4f(0x345)](_0x4ca427,_0x347a3e);const _0xdc3b8a=this[_0x1daf4f(0xc51)](_0x347a3e);if(_0xdc3b8a)_0x4ca427=DataProcessor[_0x1daf4f(0xa36)](_0x4ca427,_0xdc3b8a);const _0x3fd19a=(_0xe9a52a-_0x3808f5)/0x36ee80,_0x21a34c=resolvePointsPerHour(_0x135936,_0x347a3e,_0x3fd19a),_0xdbf08d=resolveGroupBy(_0x135936,_0x3fd19a,_0x347a3e),_0x21c17d=groupBucketMs(_0xdbf08d,_0x135936[_0x1daf4f(0xabc)],_0x21a34c);_0x293f64=isNum(_0x21c17d)&&_0x21c17d>0x0?_0x21c17d:0x0;let _0xa22d47=_0x347a3e[_0x1daf4f(0xc48)];_0x594677&&_0xa22d47==='change'&&(_0xa22d47=_0x1daf4f(0x7e6));!_0x594677&&_0xa22d47===_0x1daf4f(0xe34)&&(_0xa22d47='sum');_0xa22d47==='diff'&&(_0xa22d47=_0x1daf4f(0x7e6));const _0x5df8fb=_0xa22d47==='sum'||_0xa22d47===_0x1daf4f(0xc09),_0x35b790=resolveOffsetHours(_0x347a3e[_0x1daf4f(0x4ff)],this['_hass'])!==0x0||(toNum(_0x347a3e[_0x1daf4f(0x510)])?toNum(_0x347a3e['forecast_horizon'])!==0x0:![]),_0x3762c1=!!_0x347a3e[_0x1daf4f(0x455)]&&[_0x1daf4f(0x471),_0x1daf4f(0x982),_0x1daf4f(0xd0d)]['includes'](normalizeRefOp(_0x347a3e[_0x1daf4f(0x58d)])),_0x1f33fc=_0x347a3e[_0x1daf4f(0x296)]!==![]&&!_0x3762c1;let _0x28f289,_0x30122d=_0x4ca427;if(_0x3bfdac>0x0&&_0x4ca427[_0x1daf4f(0xc02)]&&_0x4ca427[0x0]['t']<_0x3808f5){let _0xd15074=0x0;while(_0xd15074<_0x4ca427[_0x1daf4f(0xc02)]&&_0x4ca427[_0xd15074]['t']<_0x3808f5)_0xd15074++;const _0x54bb63=_0x4ca427[_0x1daf4f(0x165)](_0xd15074);_0xd15074>0x0&&!_0x5df8fb&&!(_0x54bb63[_0x1daf4f(0xc02)]&&_0x54bb63[0x0]['t']===_0x3808f5)?_0x30122d=[{..._0x4ca427[_0xd15074-0x1],'t':_0x3808f5},..._0x54bb63]:_0x30122d=_0x54bb63;}if(_0x306732[_0x1daf4f(0xf06)](_0xdbf08d)){const _0x5c2813=_0x57d176;_0x1f33fc&&(_0x30122d=DataProcessor[_0x1daf4f(0x324)](_0x30122d,_0xdbf08d,_0xa22d47,_0x5c2813,this[_0x1daf4f(0x4ab)](_0x347a3e)));_0x28f289=DataProcessor[_0x1daf4f(0xd5f)](_0x30122d,_0xdbf08d,_0xa22d47,_0xe9a52a,_0x5c2813,(_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e['type'])===_0x1daf4f(0x846),_0xdf593);if(!_0x347a3e[_0x1daf4f(0x18d)]){const _0x241c83=_0x30122d&&_0x30122d['length']>0x0?_0x30122d[_0x30122d['length']-0x1]['t']:null,_0x2eb8f4=_0xdbf08d===_0x1daf4f(0x2ab)&&_0x5d1614<=_0xe9a52a+0xea60?0x6ddd00:0x0;_0x28f289=DataProcessor[_0x1daf4f(0xca5)](_0x28f289,_0xdbf08d,_0xa22d47,{'endMs':_0xe9a52a,'lastRawT':_0x241c83,'tz':_0x5c2813,'carrySlackMs':_0x2eb8f4,'nowMs':_0x5d1614});}else _0x28f289=DataProcessor[_0x1daf4f(0x893)](_0x28f289,_0xdbf08d,{'tz':_0x5c2813});}else _0x21c17d>0x0?_0x28f289=DataProcessor['groupPoints'](_0x30122d,_0x21c17d,_0x3808f5,_0xe9a52a,_0xa22d47,!!_0x347a3e[_0x1daf4f(0xd0a)]||_0xa22d47===_0x1daf4f(0xc09),{'deltaAgg':_0x5df8fb,'noLeadFill':!!_0x347a3e[_0x1daf4f(0x455)],'breakOnNull':!!_0x347a3e['break_on_null'],'carryForwardMs':_0x347a3e[_0x1daf4f(0x82e)],'alignToClock':this[_0x1daf4f(0x2cd)](_0x347a3e),'anchorStart':[_0x1daf4f(0x846),_0x1daf4f(0x8fb)]['includes'](_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e[_0x1daf4f(0xefa)]),'ohlc':(_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e[_0x1daf4f(0xefa)])==='candlestick','carryPastNow':_0x35b790,'nowMs':_0x5d1614}):_0x28f289=_0x4ca427;_0xa22d47===_0x1daf4f(0xc09)&&(_0x28f289=DataProcessor[_0x1daf4f(0x843)](_0x28f289,!!_0x347a3e[_0x1daf4f(0xd0a)]));_0x3a2ca1&&(_0x28f289=this[_0x1daf4f(0x24f)](_0x28f289,_0x347a3e,{'isStat':_0x594677,'effGroupBy':_0xdbf08d,'effectiveAgg':_0xa22d47,'bucket':_0x21c17d,'startMs':_0x3808f5,'endMs':_0xe9a52a,'dispTz':_0x57d176,'firstWd':_0xdf593,'nowMs':_0x5d1614,'isDeltaSeries':_0x5df8fb,'carryPastNow':_0x35b790}));_0x4c0d8f=_0x3a2ca1?null:DataProcessor[_0x1daf4f(0x4e2)](_0x4ca427,_0x347a3e,{'startMs':_0x3808f5,'endMs':_0xe9a52a,'bucketMs':_0x21c17d,'groupBy':_0xdbf08d,'aggFunc':_0xa22d47,'alignToClock':this[_0x1daf4f(0x2cd)](_0x347a3e),'anchorStart':['candlestick','bar'][_0x1daf4f(0xf06)](_0x347a3e['graph_type']||_0x347a3e['type']),'tz':_0x57d176,'firstWd':_0xdf593,'deltaAgg':_0x5df8fb,'carryPastNow':_0x35b790,'damp':_0x1f33fc,'isCounter':this[_0x1daf4f(0x4ab)](_0x347a3e),'nowMs':_0x5d1614});if(_0x306732[_0x1daf4f(0xf06)](_0xdbf08d)&&!_0x35b790&&(_0x135936['chart_mode']||_0x1daf4f(0x325))===_0x1daf4f(0x325)&&![_0x1daf4f(0x846),_0x1daf4f(0x8fb)]['includes'](_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e['type'])){const _0x329a8e=this[_0x1daf4f(0xe48)]||Date[_0x1daf4f(0x69d)]();if(_0x329a8e<=_0xe9a52a+0xea60&&_0x28f289[_0x1daf4f(0xc02)]){const _0x38135a=Math[_0x1daf4f(0xba1)](_0x329a8e,_0xe9a52a),_0x2d223e=calendarCellStartMs(_0x38135a,_0xdbf08d,_0x57d176,_0xdf593),_0x3de031=_0x30122d&&_0x30122d[_0x1daf4f(0xc02)]?_0x30122d[_0x30122d['length']-0x1]['t']:null,_0x585dec=_0xdbf08d===_0x1daf4f(0x2ab)?0x6ddd00:0x0;if(isNum(_0x2d223e)&&isNum(_0x3de031)&&_0x3de031>=_0x2d223e-_0x585dec){const _0x3a24fc=_0x1289f4=>{const _0x21adff=_0x1daf4f,_0x806218=_0x1289f4[_0x1289f4[_0x21adff(0xc02)]-0x1];return _0x806218&&_0x806218['v']!=null&&_0x806218['t']<=_0x38135a&&_0x806218['t']>=_0x2d223e?_0x1289f4[_0x21adff(0x165)](0x0,-0x1)[_0x21adff(0x9da)]({..._0x806218,'t':_0x38135a}):_0x1289f4;};_0x28f289=_0x3a24fc(_0x28f289);if(Array[_0x1daf4f(0x902)](_0x4c0d8f))for(const _0x1ad9d8 of _0x4c0d8f){if(_0x1ad9d8&&Array[_0x1daf4f(0x902)](_0x1ad9d8[_0x1daf4f(0x93a)])&&_0x1ad9d8[_0x1daf4f(0x93a)][_0x1daf4f(0xc02)])_0x1ad9d8[_0x1daf4f(0x93a)]=_0x3a24fc(_0x1ad9d8[_0x1daf4f(0x93a)]);}}}}_0x3d9f4a=DataProcessor[_0x1daf4f(0xb5c)](_0x28f289,_0x347a3e,!!_0x347a3e[_0x1daf4f(0xd0a)],{'now':_0x5d1614,'tz':_0x57d176});}else{const _0x583e2e=_0x347a3e[_0x1daf4f(0xc48)]==='diff'&&!_0x347a3e[_0x1daf4f(0xbef)],_0x5e8927=_0x347a3e[_0x1daf4f(0xc48)]===_0x1daf4f(0xe34)&&!_0x594677&&!!_0x347a3e[_0x1daf4f(0xd53)];_0x3d9f4a=DataProcessor[_0x1daf4f(0x5b8)](_0x583e2e?DataProcessor[_0x1daf4f(0x8df)](_0x145aaf):_0x5e8927?DataProcessor['changeDiffSeries'](_0x145aaf,_0x347a3e['change_ignore_zero']===!![]):_0x145aaf,_0x347a3e,!![]);_0x347a3e[_0x1daf4f(0x455)]&&!_0x347a3e[_0x1daf4f(0xbef)]&&!_0x347a3e[_0x1daf4f(0x102c)]&&(_0x3d9f4a=this[_0x1daf4f(0x345)](_0x3d9f4a,_0x347a3e));const _0x1fd1a4=this[_0x1daf4f(0xc51)](_0x347a3e);_0x1fd1a4&&!_0x347a3e[_0x1daf4f(0xbef)]&&!_0x347a3e[_0x1daf4f(0x102c)]&&(_0x3d9f4a=DataProcessor[_0x1daf4f(0xa36)](_0x3d9f4a,_0x1fd1a4));const _0x4d1abf=(_0xe9a52a-_0x3808f5)/0x36ee80,_0x4b8d9f=resolveGroupBy(_0x135936,_0x4d1abf,_0x347a3e),_0x2ffe52=((()=>{const _0x1f1e98=_0x1daf4f;let _0x176281=_0x347a3e[_0x1f1e98(0xc48)];if(_0x176281==='change'&&(_0x594677||_0x5e8927))_0x176281=_0x1f1e98(0x7e6);if(_0x176281===_0x1f1e98(0x934)&&(_0x594677||_0x583e2e))_0x176281=_0x1f1e98(0x7e6);return _0x176281;})());if(_0x347a3e[_0x1daf4f(0xd53)]&&_0x3d9f4a&&_0x3d9f4a[_0x1daf4f(0xc02)]>0x1&&_0x306732[_0x1daf4f(0xf06)](_0x4b8d9f)){const _0x3777c3=(_0x3d9f4a[_0x3d9f4a['length']-0x1]['t']-_0x3d9f4a[0x0]['t'])/Math[_0x1daf4f(0x220)](0x1,_0x3d9f4a['length']-0x1),_0x15641f=groupBucketMs(_0x4b8d9f,_0x135936[_0x1daf4f(0xabc)],null);if(_0x15641f>0x0&&_0x3777c3>0x0&&_0x15641f>_0x3777c3*1.5){const _0x57ac11=_0x57d176;_0x347a3e[_0x1daf4f(0x296)]!==![]&&!(_0x347a3e[_0x1daf4f(0x455)]&&[_0x1daf4f(0x471),'add',_0x1daf4f(0xd0d)][_0x1daf4f(0xf06)](normalizeRefOp(_0x347a3e[_0x1daf4f(0x58d)])))&&(_0x3d9f4a=DataProcessor['dampResetBoundaryMax'](_0x3d9f4a,_0x4b8d9f,_0x2ffe52,_0x57ac11,this[_0x1daf4f(0x4ab)](_0x347a3e))),_0x3d9f4a=DataProcessor[_0x1daf4f(0xd5f)](_0x3d9f4a,_0x4b8d9f,_0x2ffe52,_0xe9a52a,_0x57ac11,(_0x347a3e['graph_type']||_0x347a3e['type'])===_0x1daf4f(0x846),_0xdf593);}}if(!_0x347a3e[_0x1daf4f(0xd53)]&&_0x347a3e[_0x1daf4f(0x102c)]&&_0x3d9f4a&&_0x3d9f4a[_0x1daf4f(0xc02)]>0x1&&_0x306732[_0x1daf4f(0xf06)](_0x4b8d9f)){const _0x4dd59d=(_0x3d9f4a[_0x3d9f4a[_0x1daf4f(0xc02)]-0x1]['t']-_0x3d9f4a[0x0]['t'])/Math[_0x1daf4f(0x220)](0x1,_0x3d9f4a[_0x1daf4f(0xc02)]-0x1),_0x183526=groupBucketMs(_0x4b8d9f,_0x135936[_0x1daf4f(0xabc)],null);_0x183526>0x0&&_0x4dd59d>0x0&&_0x183526>_0x4dd59d*1.5&&(_0x3d9f4a=DataProcessor[_0x1daf4f(0xd5f)](_0x3d9f4a,_0x4b8d9f,_0x2ffe52,_0xe9a52a,_0x57d176,(_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e[_0x1daf4f(0xefa)])==='candlestick',_0xdf593));}else{if(_0x347a3e[_0x1daf4f(0x102c)]&&['2h','3h','4h','6h',_0x1daf4f(0x513)][_0x1daf4f(0xf06)](_0x4b8d9f)){if(!this[_0x1daf4f(0x380)])this[_0x1daf4f(0x380)]=new Set();const _0x20b4bb=(_0x347a3e[_0x1daf4f(0x974)]||'')+'|'+_0x4b8d9f;!this[_0x1daf4f(0x380)][_0x1daf4f(0x101d)](_0x20b4bb)&&(this[_0x1daf4f(0x380)][_0x1daf4f(0x982)](_0x20b4bb),console[_0x1daf4f(0x9a7)]('[sgc]\x20group_by\x20\x22'+_0x4b8d9f+_0x1daf4f(0xaa0)+_0x347a3e[_0x1daf4f(0x974)]+_0x1daf4f(0x871)+_0x4b8d9f+_0x1daf4f(0x550)));}}if(_0x347a3e[_0x1daf4f(0xd53)]&&_0x3d9f4a&&_0x3d9f4a[_0x1daf4f(0xc02)]>0x0&&_0x306732['includes'](_0x4b8d9f)&&!_0x347a3e[_0x1daf4f(0x18d)]){const _0x47285c=_0x145aaf&&_0x145aaf[_0x1daf4f(0xc02)]>0x0?_0x145aaf[_0x145aaf['length']-0x1]['t']:null;_0x3d9f4a=DataProcessor['carryStateInGaps'](_0x3d9f4a,_0x4b8d9f,_0x2ffe52,{'endMs':_0xe9a52a,'lastRawT':_0x47285c,'tz':_0x57d176,'nowMs':_0x5d1614});}else _0x347a3e[_0x1daf4f(0xd53)]&&_0x3d9f4a&&_0x3d9f4a['length']>0x0&&_0x306732[_0x1daf4f(0xf06)](_0x4b8d9f)&&_0x347a3e[_0x1daf4f(0x18d)]&&(_0x3d9f4a=DataProcessor[_0x1daf4f(0x893)](_0x3d9f4a,_0x4b8d9f,{'tz':_0x57d176}));const _0x42df1f=resolveOffsetHours(_0x347a3e[_0x1daf4f(0x4ff)],this[_0x1daf4f(0x1dc)])!==0x0||(toNum(_0x347a3e[_0x1daf4f(0x510)])?toNum(_0x347a3e[_0x1daf4f(0x510)])!==0x0:![]);if(_0x347a3e['statistic_id']&&_0x3d9f4a&&_0x3d9f4a['length']>0x0&&_0x306732['includes'](_0x4b8d9f)&&!_0x42df1f&&(_0x135936[_0x1daf4f(0x815)]||_0x1daf4f(0x325))===_0x1daf4f(0x325)&&![_0x1daf4f(0x846),_0x1daf4f(0x8fb)][_0x1daf4f(0xf06)](_0x347a3e[_0x1daf4f(0xc3c)]||_0x347a3e[_0x1daf4f(0xefa)])){const _0x4a31b4=this['_nowStampMs']||Date[_0x1daf4f(0x69d)]();if(_0x4a31b4<=_0xe9a52a+0xea60){const _0x474cd7=_0x3d9f4a[_0x3d9f4a[_0x1daf4f(0xc02)]-0x1],_0x1ac5ad=Math['min'](_0x4a31b4,_0xe9a52a),_0x2567f4=calendarCellStartMs(_0x1ac5ad,_0x4b8d9f,_0x57d176,_0xdf593),_0x1b8fff=_0x145aaf&&_0x145aaf[_0x1daf4f(0xc02)]>0x0?_0x145aaf[_0x145aaf[_0x1daf4f(0xc02)]-0x1]['t']:null,_0x1d3485=_0x4b8d9f==='hour'?0x6ddd00:0x0;_0x474cd7['v']!=null&&isNum(_0x2567f4)&&isNum(_0x1b8fff)&&_0x1b8fff>=_0x2567f4-_0x1d3485&&_0x474cd7['t']<=_0x1ac5ad&&_0x474cd7['t']>=_0x2567f4&&(_0x3d9f4a=_0x3d9f4a[_0x1daf4f(0x165)](0x0,-0x1)['concat']({..._0x474cd7,'t':_0x1ac5ad}));}}_0x347a3e[_0x1daf4f(0xc48)]===_0x1daf4f(0xc09)&&(_0x3d9f4a=DataProcessor[_0x1daf4f(0x843)](_0x3d9f4a,!!_0x347a3e[_0x1daf4f(0xd0a)]));_0x3d9f4a=DataProcessor[_0x1daf4f(0xb5c)](_0x3d9f4a,_0x347a3e,!!_0x347a3e[_0x1daf4f(0xd0a)],{'now':_0x5d1614,'tz':_0x57d176});if(_0x3bfdac>0x0&&Array[_0x1daf4f(0x902)](_0x3d9f4a)&&_0x3d9f4a['length']){let _0x26805e=_0x3808f5;if(_0x347a3e['statistic_id']&&_0x306732['includes'](_0x4b8d9f)){const _0x1b82e6=tzParts(_0x3808f5,_0x57d176);switch(_0x4b8d9f){case _0x1daf4f(0x2ab):_0x26805e=zonedWallToMs(_0x1b82e6['y'],_0x1b82e6['mo'],_0x1b82e6['d'],_0x1b82e6['h'],0x0,0x0,_0x57d176);break;case _0x1daf4f(0x88f):_0x26805e=zonedWallToMs(_0x1b82e6['y'],_0x1b82e6['mo'],_0x1b82e6['d'],0x0,0x0,0x0,_0x57d176);break;case _0x1daf4f(0x6f1):_0x26805e=zonedWallToMs(_0x1b82e6['y'],_0x1b82e6['mo'],_0x1b82e6['d']-weekStartOffsetDays(_0x1b82e6['wd'],_0xdf593),0x0,0x0,0x0,_0x57d176);break;case _0x1daf4f(0xe7d):_0x26805e=zonedWallToMs(_0x1b82e6['y'],_0x1b82e6['mo'],0x1,0x0,0x0,0x0,_0x57d176);break;case _0x1daf4f(0x73e):_0x26805e=zonedWallToMs(_0x1b82e6['y'],0x0,0x1,0x0,0x0,0x0,_0x57d176);break;}}_0x4c0d8f=DataProcessor['computeMovingAverages'](_0x3d9f4a,_0x347a3e);if(_0x4c0d8f){for(const _0x5f060a of _0x4c0d8f)_0x5f060a['points']=_0x5f060a['points'][_0x1daf4f(0x919)](_0x143a3d=>_0x143a3d['t']>=_0x26805e);}const _0x37f8fd=_0x3d9f4a[_0x1daf4f(0x919)](_0x5e3221=>_0x5e3221['t']>=_0x26805e);if(isStripEntity(_0x347a3e)&&(!_0x37f8fd['length']||_0x37f8fd[0x0]['t']>_0x26805e)){let _0x37f038=null;for(const _0x42a4b8 of _0x3d9f4a){if(_0x42a4b8['t']>=_0x26805e)break;_0x37f038=_0x42a4b8;}if(_0x37f038)_0x37f8fd[_0x1daf4f(0x5c0)]({..._0x37f038,'t':_0x26805e});}_0x3d9f4a=_0x37f8fd;}}let _0x292766=null;const _0x4cb3e6=_0x347a3e['graph_type']||_0x347a3e[_0x1daf4f(0xefa)]||_0x1daf4f(0xcd2);if(Array[_0x1daf4f(0x902)](_0x3d9f4a)&&_0x3d9f4a[_0x1daf4f(0xc02)]&&_0x4cb3e6!==_0x1daf4f(0x8fb)&&_0x4cb3e6!==_0x1daf4f(0x846)&&!isStripEntity(_0x347a3e)){let _0x18f0f9=_0x3d9f4a[_0x1daf4f(0xc02)]-0x1;while(_0x18f0f9>=0x0&&!isNum(_0x3d9f4a[_0x18f0f9]?.['v']))_0x18f0f9--;if(_0x18f0f9>=0x0){const _0x3ff0df=_0x3d9f4a[_0x18f0f9],_0x201133=resolveGroupBy(_0x135936,(_0xe9a52a-_0x3808f5)/0x36ee80,_0x347a3e);let _0x6f7a1e=null;if(_0x306732[_0x1daf4f(0xf06)](_0x201133)){_0x6f7a1e=calendarCellEndMs(_0x3ff0df['t'],_0x201133,_0x57d176,_0xdf593);if((_0x201133==='month'||_0x201133==='year')&&isNum(_0x6f7a1e)&&_0x6f7a1e<_0xe9a52a)_0x6f7a1e=null;}else{if(_0x53b264&&_0x293f64>0x0&&_0x18f0f9>=0x1){const _0xcc8535=Math[_0x1daf4f(0x220)](0x7530,_0x293f64,Math[_0x1daf4f(0x6fd)]((_0xe9a52a-_0x3808f5)/0x7d0)),_0x13c73b=Math[_0x1daf4f(0xba1)](_0x3ff0df['t']-_0x3d9f4a[_0x18f0f9-0x1]['t'],_0xcc8535);if(_0x13c73b>0x0)_0x6f7a1e=_0x3ff0df['t']+_0x13c73b/0x2;}}if(isNum(_0x6f7a1e)&&_0x6f7a1e>_0x3ff0df['t']){const _0x45353b=resolveOffsetHours(_0x347a3e['offset'],this[_0x1daf4f(0x1dc)])!==0x0||(toNum(_0x347a3e[_0x1daf4f(0x510)])?toNum(_0x347a3e[_0x1daf4f(0x510)])!==0x0:![]),_0x2ab3d3=_0x45353b?_0x6f7a1e<=_0xe9a52a+0x1:_0x6f7a1e<=_0x5d1614;if(_0x2ab3d3){const _0x2837df=Math[_0x1daf4f(0xba1)](_0xe9a52a,_0x6f7a1e);if(_0x2837df>_0x3ff0df['t']+0x3e8)_0x292766=_0x2837df;}}}}return{'points':_0x3d9f4a,'maSeries':_0x4c0d8f,'tailToMs':_0x292766};}[_0x46af5e(0x587)](_0x208fca,_0x117802,_0x2c348f,_0x4fa7a1,_0x2a9b25){const _0x170c95=_0x46af5e;if(!_0x117802||!_0x117802[_0x170c95(0x974)]||_0x117802[_0x170c95(0xd53)])return _0x208fca;if(_0x117802[_0x170c95(0xbef)]||_0x117802[_0x170c95(0x102c)])return _0x208fca;if(!this[_0x170c95(0xd6c)](_0x117802))return _0x208fca;if(!this[_0x170c95(0x6ba)]())return _0x208fca;if(resolveOffsetHours(_0x117802[_0x170c95(0x4ff)],this[_0x170c95(0x1dc)])!==0x0)return _0x208fca;const _0x199f27=_0x117802['aggregate_func']||'avg';if(![_0x170c95(0xa5d),_0x170c95(0x2d8),_0x170c95(0x220),_0x170c95(0xba1),_0x170c95(0xfbc),_0x170c95(0xd0e),_0x170c95(0xf49)][_0x170c95(0xf06)](_0x199f27))return _0x208fca;const _0x177f3b=this['_hass']?.[_0x170c95(0x4f9)]?.[_0x117802[_0x170c95(0x974)]];if(!_0x177f3b||_0x177f3b[_0x170c95(0x5f5)]===_0x170c95(0x9ac)||_0x177f3b[_0x170c95(0x5f5)]===_0x170c95(0x94d))return _0x208fca;const _0x226072=this[_0x170c95(0x88b)](_0x117802,_0x2c348f),_0x3c01b4=_0x226072?getAttributePath(_0x177f3b[_0x170c95(0x467)],_0x226072):_0x177f3b[_0x170c95(0x5f5)],_0x160365=toNum(_0x3c01b4);if(_0x160365===null)return _0x208fca;const _0x25224d=_0x177f3b['last_updated']||_0x177f3b['last_changed']||null;let _0x3a6a1b=_0x25224d?new Date(_0x25224d)['getTime']():Date['now']();if(_0x3a6a1b-_0x2a9b25>=0x36ee80)return _0x208fca;if(!(_0x3a6a1b>=_0x4fa7a1&&_0x3a6a1b<_0x2a9b25))_0x3a6a1b=_0x2a9b25-0x1;if(_0x3a6a1b<_0x4fa7a1)return _0x208fca;const _0x3de17d=Array[_0x170c95(0x902)](_0x208fca)?_0x208fca['slice']():[],_0x5e9dff=_0x3de17d['length']?_0x3de17d[_0x3de17d['length']-0x1]['t']:-Infinity;if(_0x3a6a1b<_0x5e9dff)return _0x3de17d;if(_0x3a6a1b===_0x5e9dff)_0x3de17d[_0x3de17d[_0x170c95(0xc02)]-0x1]={'t':_0x3a6a1b,'v':_0x160365};else _0x3de17d['push']({'t':_0x3a6a1b,'v':_0x160365});return _0x3de17d;}[_0x46af5e(0x40c)](_0x190c75){const _0xff3cd8=_0x46af5e,_0x5490fa=this['_config'],_0x5838dc=_0x190c75[_0xff3cd8(0x974)],_0x19925e=this[_0xff3cd8(0xbe0)][_0xff3cd8(0x4b0)][_0xff3cd8(0x1028)](),_0x511afd=this[_0xff3cd8(0xbe0)][_0xff3cd8(0x244)][_0xff3cd8(0x1028)](),_0x38e75b=(_0x511afd-_0x19925e)/0x36ee80,_0x4a095f=this[_0xff3cd8(0xbd5)](_0x38e75b),_0x50f238=this['_entities'][_0xff3cd8(0x2f0)](_0x5838dc),_0x16c16e=this[_0xff3cd8(0x587)](_0x190c75['raw'],_0x5838dc,_0x50f238,_0x19925e,_0x511afd),{points:_0x2eebe7,maSeries:_0x480f9f,tailToMs:_0x573526}=this[_0xff3cd8(0x52d)](_0x16c16e,_0x5838dc,_0x190c75['_isStat'],_0x19925e,_0x511afd,_0x4a095f);_0x190c75['points']=_0x2eebe7,_0x190c75[_0xff3cd8(0xda8)]=_0x573526;const _0x384234=this['offsetWidth']>0x0?this[_0xff3cd8(0x342)]:0x320,_0x576611=Math['min'](0xbb8,Math['max'](0x190,_0x384234*0x2));_0x190c75[_0xff3cd8(0xa6f)]=_0x480f9f??DataProcessor[_0xff3cd8(0xc16)](_0x190c75['points'],_0x190c75['entity']);_0x190c75[_0xff3cd8(0x93a)]&&_0x190c75[_0xff3cd8(0x93a)][_0xff3cd8(0xc02)]>_0x576611&&!isStripEntity(_0x5838dc)&&(_0x190c75[_0xff3cd8(0x93a)]=DataProcessor[_0xff3cd8(0xdaa)](_0x190c75[_0xff3cd8(0x93a)],_0x576611));const _0x34efab=resolveGroupBy(_0x5490fa,(_0x511afd-_0x19925e)/0x36ee80,_0x5838dc);_0x190c75['_groupGrain']=_0x34efab!==resolveGroupBy(_0x5490fa,(_0x511afd-_0x19925e)/0x36ee80)?{'date':_0xff3cd8(0x309),'week':_0xff3cd8(0x6f1),'month':_0xff3cd8(0xe7d),'year':_0xff3cd8(0x73e)}[_0x34efab]||null:null,_0x190c75['bucketPrecision']=_0x190c75['_groupGrain']||resolveBucketPrecision(_0x190c75['points']),_0x190c75[_0xff3cd8(0x2fb)]=![];}[_0x46af5e(0xfa1)](){const _0x5f2c55=_0x46af5e,_0x21dd5f=new Set([_0x5f2c55(0x934),_0x5f2c55(0xe34),_0x5f2c55(0xc09)]);return(this['_entities']||[])[_0x5f2c55(0x42a)](_0x414b05=>_0x414b05&&(_0x21dd5f[_0x5f2c55(0x101d)](_0x414b05[_0x5f2c55(0xc48)])||_0x414b05[_0x5f2c55(0xed4)]!=null));}['_slideCarryBucketMs'](){const _0x4edac3=_0x46af5e,_0x44bd0c=this['_config'],_0x196a1a=toNum(_0x44bd0c?.[_0x4edac3(0xabc)])||0x18,_0x5f3c28=new Set([_0x4edac3(0x934),_0x4edac3(0xe34),_0x4edac3(0xc09)]);let _0x4fb1a4=Infinity;for(const _0x192312 of this[_0x4edac3(0xfef)]||[]){if(!_0x192312||!(_0x5f3c28[_0x4edac3(0x101d)](_0x192312['aggregate_func'])||_0x192312[_0x4edac3(0xed4)]!=null))continue;const _0x1c61b0=groupBucketMs(resolveGroupBy(_0x44bd0c,_0x196a1a,_0x192312),_0x196a1a,resolvePointsPerHour(_0x44bd0c,_0x192312,_0x196a1a));if(isNum(_0x1c61b0)&&_0x1c61b0>0x0&&_0x1c61b0<_0x4fb1a4)_0x4fb1a4=_0x1c61b0;}return isFinite(_0x4fb1a4)?Math[_0x4edac3(0xba1)](Math[_0x4edac3(0x220)](_0x4fb1a4,0xea60),0x36ee80):0x36ee80;}[_0x46af5e(0x53c)](){const _0x3989ea=_0x46af5e;if(!this['_isLiveTrackingNeeded']())return;if(this['_slideNeedsFullRefetch']()){const _0x48481e=Math[_0x3989ea(0xedc)](Date[_0x3989ea(0x69d)]()/this['_slideCarryBucketMs']());if(this[_0x3989ea(0xbee)]!==_0x48481e){this[_0x3989ea(0xbee)]=_0x48481e,this[_0x3989ea(0x9c5)]();return;}}this[_0x3989ea(0xd78)]=!![],this[_0x3989ea(0x829)]();}[_0x46af5e(0x103c)](){const _0x45ec96=_0x46af5e;if(!this[_0x45ec96(0xfe9)])return;this['_buildStructure']();const _0x3fcc37=this[_0x45ec96(0xfe9)][_0x45ec96(0x815)]===_0x45ec96(0x8fe),_0x41cdb8=this[_0x45ec96(0xbb2)][_0x45ec96(0xee6)](_0x45ec96(0xe1d));if(_0x41cdb8)_0x41cdb8[_0x45ec96(0x9a1)]['toggle'](_0x45ec96(0xa27),_0x3fcc37);if(_0x41cdb8)_0x41cdb8[_0x45ec96(0x9a1)][_0x45ec96(0xa90)]('sgc-native-style',this['_config'][_0x45ec96(0x95c)]==='native');this[_0x45ec96(0x9cd)]?.[_0x45ec96(0xc02)]&&((this['_config'][_0x45ec96(0x815)]||'timeline')!==_0x45ec96(0x325)||this['_config']['show_tooltip']===![]||this[_0x45ec96(0xfe9)]['crosshair']!==!![])&&(this[_0x45ec96(0x9cd)]=[],this[_0x45ec96(0x38f)]=null,this[_0x45ec96(0xb2d)]=null);if(this[_0x45ec96(0x2d4)]?.[_0x45ec96(0xfa8)]?.[_0x45ec96(0xc02)]){const _0xb53d63=!!this[_0x45ec96(0xfe9)]['auto_hide_entities'];if(!(this[_0x45ec96(0xe8e)]instanceof Map))this['_autoHideApplied']=new Map();const _0x259fc6=this['_autoHideForce']instanceof Set?this[_0x45ec96(0xc2e)]:null;for(const _0x5d644f of this[_0x45ec96(0x2d4)]['series']){const _0x3003bc=_0x5d644f[_0x45ec96(0x974)]?.[_0x45ec96(0xa1a)],_0x557e41=_0xb53d63?_0x45ec96(0x780):_0x3003bc===!![]?!![]:_0x3003bc===![]?![]:_0x45ec96(0x2d9),_0x4ed364=this['_autoHideApplied'][_0x45ec96(0x101d)](_0x5d644f['id'])?this['_autoHideApplied']['get'](_0x5d644f['id']):'__none__',_0x3a0588=_0x259fc6?.[_0x45ec96(0x101d)](_0x5d644f['id']);if(_0x259fc6)_0x259fc6[_0x45ec96(0xcc1)](_0x5d644f['id']);if(_0x557e41===_0x4ed364&&!_0x3a0588)continue;_0x557e41===_0x45ec96(0x780)||_0x557e41===!![]?this['_hiddenEntities'][_0x45ec96(0x982)](_0x5d644f['id']):(_0x557e41===![]||_0x4ed364===_0x45ec96(0x780)||_0x4ed364===!![]||_0x3a0588)&&this['_hiddenEntities'][_0x45ec96(0xcc1)](_0x5d644f['id']),this[_0x45ec96(0xe8e)][_0x45ec96(0xa2d)](_0x5d644f['id'],_0x557e41);}}this[_0x45ec96(0x6aa)]();const _0x27d36d=!!this['_config'][_0x45ec96(0x4a1)]&&(this[_0x45ec96(0xfe9)]['chart_mode']||_0x45ec96(0x325))===_0x45ec96(0x325);if(_0x27d36d){this[_0x45ec96(0x8cf)](),this['_renderSparkline']();return;}this[_0x45ec96(0x8b9)](),this[_0x45ec96(0xdd7)](),this['_renderIntervalPicker'](),this[_0x45ec96(0xc98)](),this[_0x45ec96(0xff1)](),this[_0x45ec96(0x922)]();if(_0x3fcc37){this['_graphFingerprint']='';return;}this[_0x45ec96(0x1011)]();const _0x101958=this[_0x45ec96(0xbb2)][_0x45ec96(0xee6)](_0x45ec96(0xd25));if(!_0x101958)return;const _0x522ff8=this['shadowRoot'][_0x45ec96(0xee6)](_0x45ec96(0xb0a));if(_0x522ff8)_0x522ff8[_0x45ec96(0x9a1)][_0x45ec96(0x547)]('sgc-spark-mode');this['_applyFillHeight']();if(!this['_graphData']){_0x101958[_0x45ec96(0x17c)]=_0x45ec96(0x985)+escapeHtml(cardT(this[_0x45ec96(0x1dc)],this[_0x45ec96(0xfe9)],_0x45ec96(0x87e)))+_0x45ec96(0x743),this['_graphFingerprint']='';return;}const _0x2983ec=this['_config'][_0x45ec96(0x815)]||'timeline',_0x1538c1=new Set([_0x45ec96(0xe24),_0x45ec96(0x37b),_0x45ec96(0x88e),_0x45ec96(0xd20),_0x45ec96(0xfbd),_0x45ec96(0xa56),_0x45ec96(0xdbc),_0x45ec96(0xb4b),_0x45ec96(0xa16),_0x45ec96(0xa02),_0x45ec96(0xef0),_0x45ec96(0x9b5)]);if(_0x522ff8){if(_0x1538c1[_0x45ec96(0x101d)](_0x2983ec))_0x522ff8[_0x45ec96(0x9a1)][_0x45ec96(0x982)](_0x45ec96(0x887));else _0x522ff8[_0x45ec96(0x9a1)][_0x45ec96(0x547)](_0x45ec96(0x887));}const _0x386da6=this[_0x45ec96(0x61d)](_0x2983ec),_0x4eaea7=this[_0x45ec96(0x86f)](_0x2983ec);if(_0x4eaea7&&_0x4eaea7===this['_graphFingerprint']&&_0x101958[_0x45ec96(0x87c)]){this['_renderLegend']();return;}this[_0x45ec96(0x401)]=_0x4eaea7,this['_renderLegend']();try{let _0x2ac748=this[_0x45ec96(0x2d4)][_0x45ec96(0xfa8)][_0x45ec96(0x919)](_0xa58578=>!this[_0x45ec96(0x928)][_0x45ec96(0x101d)](_0xa58578['id'])&&_0xa58578[_0x45ec96(0x974)]?.[_0x45ec96(0xa43)]!==![]&&resolveEntityEnabled(_0xa58578[_0x45ec96(0x974)],this[_0x45ec96(0x1dc)]));const _0x3a6524=this['_config']['graph_start_hour'],_0x3b70bf=this[_0x45ec96(0xfe9)][_0x45ec96(0xfca)],_0x444f60=resolveDynamicValue(_0x3a6524,this[_0x45ec96(0x1dc)])??toNum(_0x3a6524),_0x2da13c=resolveDynamicValue(_0x3b70bf,this[_0x45ec96(0x1dc)])??toNum(_0x3b70bf);if(isNum(_0x444f60)||isNum(_0x2da13c)){const _0x55947f=isNum(_0x444f60)?_0x444f60:0x0,_0x5c5cd3=isNum(_0x2da13c)?_0x2da13c:0x18,_0x3eb907=resolveDisplayTimeZone(this[_0x45ec96(0x1dc)],this['_config']);_0x2ac748=_0x2ac748[_0x45ec96(0xb3f)](_0x100279=>{const _0x1995a1=_0x45ec96,_0x2d0601=_0x100279['points'][_0x1995a1(0xb3f)](_0x1607e7=>{if(_0x1607e7['v']===null)return _0x1607e7;const _0x3dde3e=tzParts(_0x1607e7['t'],_0x3eb907),_0x335ca9=_0x3dde3e['h']+_0x3dde3e['mi']/0x3c;if(_0x335ca9<_0x55947f||_0x335ca9>=_0x5c5cd3)return{..._0x1607e7,'v':null};return _0x1607e7;});return{..._0x100279,'points':_0x2d0601};});}_0x386da6[_0x45ec96(0x59c)](_0x101958,_0x2ac748,this[_0x45ec96(0xfe9)],this[_0x45ec96(0x1dc)]);}catch(_0x5d19dc){console[_0x45ec96(0x969)]('[sgc]\x20render\x20error',_0x5d19dc),_0x101958['innerHTML']=_0x45ec96(0xac4)+escapeHtml(_0x5d19dc['message'])+'</div>',this[_0x45ec96(0x401)]='';}const _0x9f3b42=(this[_0x45ec96(0xfef)]||[])[_0x45ec96(0x42a)](_0x49711d=>_0x49711d?.['show_extrema']===_0x45ec96(0xe5e));_0x9f3b42&&_0x522ff8&&!_0x522ff8[_0x45ec96(0xaee)]&&(_0x522ff8[_0x45ec96(0xaee)]=!![],_0x522ff8[_0x45ec96(0x944)][_0x45ec96(0x2a5)]='pointer',_0x522ff8[_0x45ec96(0x171)]('click',_0x1a1aa9=>{const _0x3cc72c=_0x45ec96;if(_0x1a1aa9[_0x3cc72c(0x6bc)]?.['closest']?.(_0x3cc72c(0x38e)))return;this[_0x3cc72c(0x382)]=!this['_showExtremaOnClick'],this[_0x3cc72c(0x401)]='',this[_0x3cc72c(0x3ec)]();})),this['_renderYAxisLabels']();}[_0x46af5e(0x9db)](){const _0x3a5e5a=_0x46af5e,_0x2e84c1=this['shadowRoot'];if(!_0x2e84c1)return;const _0x5cca0d=_0x2e84c1[_0x3a5e5a(0xee6)](_0x3a5e5a(0xb0a));if(!_0x5cca0d)return;_0x5cca0d[_0x3a5e5a(0xf98)](_0x3a5e5a(0x1029))[_0x3a5e5a(0xd27)](_0x430f1f=>_0x430f1f[_0x3a5e5a(0x547)]());const _0x11046f=this[_0x3a5e5a(0xfe9)];if(!_0x11046f[_0x3a5e5a(0x3d7)])return;const _0x217344=this['_graphData']?.[_0x3a5e5a(0xfa8)]||[],_0x2a6182=_0x217344['filter'](_0x2e477c=>!this[_0x3a5e5a(0x928)]['has'](_0x2e477c['id'])&&_0x2e477c[_0x3a5e5a(0x974)]?.[_0x3a5e5a(0xa43)]!==![]&&resolveEntityEnabled(_0x2e477c[_0x3a5e5a(0x974)],this[_0x3a5e5a(0x1dc)])),_0x38ee3b=_0x1ed6be=>{const _0x32b614=_0x3a5e5a,_0x999101=_0x1ed6be?.[_0x32b614(0x8cc)];return _0x999101===_0x32b614(0xbec)?'secondary':_0x999101==='independent'?_0x32b614(0x397):_0x32b614(0x8d4);},_0x1699dc=_0x4ef920=>{const _0x33052a=_0x3a5e5a;for(const _0x5a2e80 of _0x2a6182){const _0x3f5e57=_0x5a2e80[_0x33052a(0x974)];if(!_0x3f5e57||_0x38ee3b(_0x3f5e57)!==_0x4ef920)continue;if(_0x3f5e57[_0x33052a(0x32e)])return _0x3f5e57[_0x33052a(0x32e)];const _0x2f1ae4=_0x5a2e80['meta']?.[_0x33052a(0x398)]||this[_0x33052a(0x1dc)]?.[_0x33052a(0x4f9)]?.[_0x3f5e57['entity']]?.[_0x33052a(0x467)]?.[_0x33052a(0x398)];if(_0x2f1ae4)return _0x2f1ae4;}return'';},_0x31c852=_0x2a6182['some'](_0x2eb182=>_0x2eb182[_0x3a5e5a(0x974)]&&_0x38ee3b(_0x2eb182[_0x3a5e5a(0x974)])===_0x3a5e5a(0x8d4)),_0x5c9789=_0x2a6182[_0x3a5e5a(0x42a)](_0x431ed4=>_0x431ed4[_0x3a5e5a(0x974)]&&_0x38ee3b(_0x431ed4[_0x3a5e5a(0x974)])===_0x3a5e5a(0xbec)),_0x478698=this['_lastPadT']??0x8,_0x3a477f=this[_0x3a5e5a(0xa4e)]??0x8,_0x2f93d7=(_0x478698-_0x3a477f)/0x2,_0x2503e2=[_0x3a5e5a(0xfeb)+_0x2f93d7+_0x3a5e5a(0x8c0)];if(_0x11046f[_0x3a5e5a(0x1aa)]){const _0x5cbff7=String(_0x11046f['y_axis_font_size']);_0x2503e2['push'](_0x3a5e5a(0x317)+(/[a-z%]$/i[_0x3a5e5a(0x920)](_0x5cbff7)?_0x5cbff7:_0x5cbff7+'px'));}_0x11046f['y_axis_color']&&_0x2503e2[_0x3a5e5a(0xb31)](_0x3a5e5a(0xf33)+_0x11046f[_0x3a5e5a(0x5bd)]);const _0x3f82d2=toNum(_0x11046f[_0x3a5e5a(0xd8c)]);isNum(_0x3f82d2)&&_0x2503e2[_0x3a5e5a(0xb31)]('opacity:\x20'+_0x3f82d2);const _0x3d6c66=_0x2503e2[_0x3a5e5a(0x888)](';\x20')+';';if(_0x31c852){const _0x14edfc=_0x11046f[_0x3a5e5a(0xc62)],_0x1cae5a=_0x14edfc!=null&&_0x14edfc!==''?_0x14edfc:_0x1699dc(_0x3a5e5a(0x8d4));if(_0x1cae5a){const _0xb05b02=document[_0x3a5e5a(0xbde)]('div');_0xb05b02[_0x3a5e5a(0x400)]=_0x3a5e5a(0x1a5),_0xb05b02[_0x3a5e5a(0x944)]['cssText']=_0x3d6c66,_0xb05b02[_0x3a5e5a(0x3d2)]=_0x1cae5a,_0x5cca0d[_0x3a5e5a(0x319)](_0xb05b02);}}if(_0x5c9789){const _0x15b676=_0x11046f[_0x3a5e5a(0x3b7)],_0x3d1003=_0x15b676!=null&&_0x15b676!==''?_0x15b676:_0x1699dc(_0x3a5e5a(0xbec));if(_0x3d1003){const _0x3b1195=document[_0x3a5e5a(0xbde)]('div');_0x3b1195[_0x3a5e5a(0x400)]=_0x3a5e5a(0xc0b),_0x3b1195[_0x3a5e5a(0x944)]['cssText']=_0x3d6c66,_0x3b1195[_0x3a5e5a(0x3d2)]=_0x3d1003,_0x5cca0d['appendChild'](_0x3b1195);}}}[_0x46af5e(0xfe8)](){const _0x5183e5=_0x46af5e,_0x324adf=this['shadowRoot'];if(!_0x324adf)return;for(const _0x51d7c1 of[_0x5183e5(0xbf0),_0x5183e5(0x5bf),_0x5183e5(0x218),_0x5183e5(0x92d),_0x5183e5(0x588),_0x5183e5(0xfde),_0x5183e5(0xc6a),_0x5183e5(0x5a2)]){const _0x4c6c89=_0x324adf[_0x5183e5(0xee6)](_0x51d7c1);if(_0x4c6c89)_0x4c6c89['innerHTML']='';}const _0x3e837d=_0x324adf[_0x5183e5(0xee6)]('.sgc-plot-wrap'),_0x168ac9=_0x324adf[_0x5183e5(0xee6)]('.sgc-plot');if(!_0x3e837d||!_0x168ac9)return;_0x3e837d['classList'][_0x5183e5(0x982)](_0x5183e5(0xba3)),_0x168ac9[_0x5183e5(0x944)][_0x5183e5(0x43d)]='auto',_0x168ac9[_0x5183e5(0x9a1)]['remove'](_0x5183e5(0x542),_0x5183e5(0xe1a));const _0x49f3aa=this[_0x5183e5(0xfef)]||[],_0x485d01=this['_graphData']?.['series']||[],_0x37694e=new Map(_0x485d01[_0x5183e5(0xb3f)](_0x273124=>[_0x273124['id'],_0x273124])),_0x17b5e0=_0x49f3aa[_0x5183e5(0x919)](_0x1da081=>(_0x1da081['show_state']!==![]||_0x1da081[_0x5183e5(0xa43)]!==![])&&resolveEntityEnabled(_0x1da081,this[_0x5183e5(0x1dc)]))[_0x5183e5(0xb3f)](_0x2a477f=>{const _0x4e6efb=_0x5183e5,_0xf607fb=_0x49f3aa[_0x4e6efb(0x2f0)](_0x2a477f),_0x35dca2=_0x2a477f[_0x4e6efb(0x974)]+'__'+_0xf607fb,_0x2e9866=_0x37694e[_0x4e6efb(0xc3f)](_0x35dca2)||_0x485d01[_0x4e6efb(0x90c)](_0x3043f2=>_0x3043f2[_0x4e6efb(0x974)]===_0x2a477f),_0x4456d9=_0x2e9866?.[_0x4e6efb(0x731)]||{},_0x58744d=pickName(_0x2a477f[_0x4e6efb(0xdee)],_0x4456d9['resolved_name'],_0x4456d9)??_0x2a477f['entity'],_0x462502=_0x2a477f[_0x4e6efb(0x32e)]||_0x4456d9['unit_of_measurement']||'';let _0x3a237a=this[_0x4e6efb(0x349)](_0x2a477f[_0x4e6efb(0xd95)],_0x2a477f[_0x4e6efb(0x974)])||_0x2a477f['color']||_0x4e6efb(0x776);const _0x2ce364=this['_resolveStateRowValue'](_0x2a477f,_0xf607fb),_0x59705c=isNum(_0x2ce364?.[_0x4e6efb(0x897)])?_0x2ce364[_0x4e6efb(0x897)]:null,_0x184a8e=_0x2ce364?.[_0x4e6efb(0xf1f)]??'—';_0x2a477f[_0x4e6efb(0xd95)]===_0x4e6efb(0xe42)&&_0x2a477f['color_thresholds']?.[_0x4e6efb(0x1007)]&&_0x2a477f[_0x4e6efb(0xdd5)]?.[_0x4e6efb(0x202)]?.[_0x4e6efb(0xc02)]&&isNum(_0x59705c)&&(_0x3a237a=resolveValueColor(_0x59705c,this[_0x4e6efb(0x83c)](_0x2a477f),_0x3a237a)||_0x3a237a);const _0x33a391=_0x2e9866?.[_0x4e6efb(0x93a)]?.[_0x4e6efb(0x919)](_0x25d158=>_0x25d158['v']!==null&&_0x25d158['v']!==undefined)||[];let _0x5efcb1='',_0x2aad70='';if(_0x33a391[_0x4e6efb(0xc02)]>=0x2){const _0x551e2e=0x78,_0x307277=0x24;let _0x1c3178=Infinity,_0x2da404=-Infinity;for(const _0x445208 of _0x33a391){if(_0x445208['v']<_0x1c3178)_0x1c3178=_0x445208['v'];if(_0x445208['v']>_0x2da404)_0x2da404=_0x445208['v'];}_0x2da404===_0x1c3178&&(_0x2da404=_0x1c3178+0x1,_0x1c3178-=0x1);const _0x3f87c9=_0x33a391[0x0]['t'],_0x17806f=_0x33a391[_0x33a391[_0x4e6efb(0xc02)]-0x1]['t'],_0x348d2a=Math[_0x4e6efb(0x220)](0x1,_0x17806f-_0x3f87c9),_0x16979c=_0x2b8688=>(_0x2b8688-_0x3f87c9)/_0x348d2a*_0x551e2e,_0x206385=_0x2a477f[_0x4e6efb(0xe46)]!==![],_0x18ca05=_0x206385?0x6:0x2,_0x2ae01f=_0x3226c2=>_0x307277-_0x18ca05-(_0x3226c2['v']-_0x1c3178)/(_0x2da404-_0x1c3178)*(_0x307277-_0x18ca05*0x2),_0x5b3025=_0x206385?buildSmoothPath(_0x33a391,_0x16979c,_0x2ae01f):buildLinearPath(_0x33a391,_0x16979c,_0x2ae01f),_0x54b22c=_0x5b3025+'\x20L\x20'+_0x551e2e+'\x20'+_0x307277+_0x4e6efb(0xe75)+_0x307277+'\x20Z',_0x3ef8af=_0x2a477f['show_fill']!==![],_0x247d4a=toNum(_0x2a477f['line_width'])||0x1,_0x43a8be=lineDashArray(_0x2a477f[_0x4e6efb(0x3da)],_0x247d4a),_0x370e45=_0x43a8be?_0x4e6efb(0x1b7)+_0x43a8be+'\x22':'',_0x12beff=_0x3ef8af?'0.08':'0',_0x547a14=!!(_0x2a477f['color_thresholds']?.[_0x4e6efb(0x1007)]&&_0x2a477f[_0x4e6efb(0xdd5)]?.[_0x4e6efb(0x202)]?.['length']),_0x1e15b7=_0x2a477f['color_thresholds']?.[_0x4e6efb(0x38a)]==='horizontal'?_0x4e6efb(0xc96):_0x4e6efb(0x40d),_0x276a51=_0x2a477f[_0x4e6efb(0xdd5)]?.[_0x4e6efb(0x36b)]!==_0x4e6efb(0xab7);let _0x5bae73=_0x4e6efb(0x99c)+escapeHtml(_0x3a237a)+'\x22',_0x56adf3=_0x4e6efb(0xe01)+escapeHtml(_0x3a237a)+_0x4e6efb(0x8e8)+_0x12beff+'\x22';if(_0x547a14){const _0x183d6a=[...this[_0x4e6efb(0x83c)](_0x2a477f)]['filter'](_0xc85419=>isNum(toNum(_0xc85419['value']))&&_0xc85419[_0x4e6efb(0xd95)])[_0x4e6efb(0xd09)]((_0x690d8,_0x12b40b)=>toNum(_0x690d8[_0x4e6efb(0x2ea)])-toNum(_0x12b40b[_0x4e6efb(0x2ea)]));if(_0x183d6a[_0x4e6efb(0xc02)]){if(_0x2a477f[_0x4e6efb(0xdd5)]['last_color']){const _0x1f80e5=_0x33a391[_0x33a391['length']-0x1]?.['v'];if(isNum(_0x1f80e5)){const _0x3d7239=resolveValueColor(_0x1f80e5,_0x183d6a,_0x3a237a);_0x5bae73=_0x4e6efb(0x99c)+escapeHtml(_0x3d7239)+'\x22',_0x56adf3=_0x4e6efb(0xe01)+escapeHtml(_0x3d7239)+'\x22\x20fill-opacity=\x22'+_0x12beff+'\x22';}}else{if(_0x1e15b7===_0x4e6efb(0xc96)){let _0x2bdaba='',_0x1b5659='';for(let _0x154613=0x0;_0x154613<_0x33a391['length']-0x1;_0x154613++){const _0x294275=_0x33a391[_0x154613]['v'],_0x4870f8=_0x33a391[_0x154613+0x1]['v'],_0x3ee61f=(_0x294275+_0x4870f8)/0x2,_0x22b790=resolveValueColor(_0x3ee61f,_0x183d6a,_0x3a237a,_0x276a51),_0x46d731=_0x16979c(_0x33a391[_0x154613]['t']),_0x44ec44=_0x2ae01f(_0x33a391[_0x154613]),_0x47bc9f=_0x16979c(_0x33a391[_0x154613+0x1]['t']),_0xcb29b6=_0x2ae01f(_0x33a391[_0x154613+0x1]);_0x2bdaba+=_0x4e6efb(0xcd5)+_0x46d731+'\x22\x20y1=\x22'+_0x44ec44+'\x22\x20x2=\x22'+_0x47bc9f+_0x4e6efb(0x662)+_0xcb29b6+'\x22\x20stroke=\x22'+escapeHtml(_0x22b790)+_0x4e6efb(0x8c9)+_0x247d4a+'\x22'+_0x370e45+_0x4e6efb(0xeca),_0x1b5659+='<path\x20d=\x22M\x20'+_0x46d731+'\x20'+_0x44ec44+_0x4e6efb(0xe71)+_0x47bc9f+'\x20'+_0xcb29b6+_0x4e6efb(0xe71)+_0x47bc9f+'\x20'+_0x307277+_0x4e6efb(0xe71)+_0x46d731+'\x20'+_0x307277+_0x4e6efb(0xabe)+escapeHtml(_0x22b790)+_0x4e6efb(0x8e8)+_0x12beff+'\x22\x20stroke=\x22none\x22/>';}_0x5efcb1=_0x4e6efb(0xbb9)+_0x551e2e+'\x20'+_0x307277+_0x4e6efb(0x994)+_0x1b5659+_0x2bdaba+_0x4e6efb(0xbd7);}else{const _0x10b753=_0x2da404-_0x1c3178||0x1,_0x4bfaf9=_0x4e6efb(0xf63)+_0xf607fb,_0x29edc8=[],_0x428462=[..._0x183d6a]['reverse']();_0x29edc8['push']('<stop\x20offset=\x220%\x22\x20stop-color=\x22'+escapeHtml(_0x428462[0x0][_0x4e6efb(0xd95)])+'\x22/>');if(!_0x276a51)for(let _0x11cb48=0x0;_0x11cb48<_0x428462['length'];_0x11cb48++){const _0x3c0a59=((_0x2da404-toNum(_0x428462[_0x11cb48][_0x4e6efb(0x2ea)]))/_0x10b753*0x64)[_0x4e6efb(0x198)](0x1);_0x29edc8[_0x4e6efb(0xb31)]('<stop\x20offset=\x22'+_0x3c0a59+_0x4e6efb(0x366)+escapeHtml(_0x428462[_0x11cb48][_0x4e6efb(0xd95)])+'\x22/>');const _0x471868=_0x11cb48<_0x428462[_0x4e6efb(0xc02)]-0x1?_0x428462[_0x11cb48+0x1][_0x4e6efb(0xd95)]:_0x428462[_0x11cb48][_0x4e6efb(0xd95)];_0x29edc8[_0x4e6efb(0xb31)]('<stop\x20offset=\x22'+_0x3c0a59+'%\x22\x20stop-color=\x22'+escapeHtml(_0x471868)+'\x22/>');}else for(const _0x51b247 of _0x428462){const _0xa6f5d=((_0x2da404-toNum(_0x51b247[_0x4e6efb(0x2ea)]))/_0x10b753*0x64)[_0x4e6efb(0x198)](0x1);_0x29edc8[_0x4e6efb(0xb31)](_0x4e6efb(0x43a)+_0xa6f5d+_0x4e6efb(0x366)+escapeHtml(_0x51b247['color'])+'\x22/>');}_0x29edc8[_0x4e6efb(0xb31)](_0x4e6efb(0xaa5)+escapeHtml(_0x183d6a[0x0]['color'])+_0x4e6efb(0x8a7));const _0x24893a='<linearGradient\x20id=\x22'+_0x4bfaf9+'\x22\x20x1=\x220\x22\x20y1=\x220\x22\x20x2=\x220\x22\x20y2=\x221\x22>'+_0x29edc8['join']('')+'</linearGradient>';_0x5bae73=_0x4e6efb(0x955)+_0x4bfaf9+')\x22',_0x56adf3=_0x4e6efb(0xbab)+_0x4bfaf9+_0x4e6efb(0x7f3)+_0x12beff+'\x22',_0x5efcb1=_0x4e6efb(0xbb9)+_0x551e2e+'\x20'+_0x307277+_0x4e6efb(0x67e)+_0x24893a+_0x4e6efb(0x6e5)+_0x54b22c+'\x22\x20'+_0x56adf3+_0x4e6efb(0x5aa)+_0x5b3025+_0x4e6efb(0xdc8)+_0x5bae73+_0x4e6efb(0x338)+_0x247d4a+'\x22'+_0x370e45+_0x4e6efb(0x37e);}}}}!_0x5efcb1&&(_0x5efcb1=_0x4e6efb(0xbb9)+_0x551e2e+'\x20'+_0x307277+_0x4e6efb(0x1c1)+_0x54b22c+'\x22\x20'+_0x56adf3+_0x4e6efb(0x5aa)+_0x5b3025+'\x22\x20fill=\x22none\x22\x20'+_0x5bae73+_0x4e6efb(0x338)+_0x247d4a+'\x22'+_0x370e45+_0x4e6efb(0x37e));if(_0x2a477f[_0x4e6efb(0xcfa)]){const _0x3644fe=trendDirection(_0x2e9866,_0x2a477f),_0x538603=_0x3644fe==='up'?'▲':_0x3644fe===_0x4e6efb(0x79c)?'▼':'─',_0x2748e6=_0x3644fe==='up'?_0x2a477f[_0x4e6efb(0x963)]||_0x4e6efb(0xb80):_0x3644fe==='down'?_0x2a477f[_0x4e6efb(0xaad)]||'var(--error-color,\x20#ef4444)':_0x2a477f[_0x4e6efb(0x9ae)]||_0x4e6efb(0xd56);_0x2aad70=_0x4e6efb(0xfe6)+_0x2748e6+'\x22>'+_0x538603+'</span>';}}const _0x71b8e2=_0x2a477f[_0x4e6efb(0x806)]!==![],_0x33676b=_0x2a477f[_0x4e6efb(0xa43)]!==![],_0x5433d0=_0x71b8e2?_0x4e6efb(0x8a8)+escapeHtml(_0x58744d)+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-spark-val\x22\x20style=\x22color:'+escapeHtml(_0x3a237a)+'\x22>'+escapeHtml(String(_0x184a8e))+_0x4e6efb(0xe53)+escapeHtml(_0x462502)+_0x4e6efb(0x644)+_0x2aad70+_0x4e6efb(0xf88):'',_0x67fa55=_0x33676b?_0x4e6efb(0xf25)+_0x5efcb1+'</div>':'';return _0x4e6efb(0xd7f)+_0xf607fb+'\x22>'+_0x5433d0+_0x67fa55+_0x4e6efb(0x743);})[_0x5183e5(0x888)]('');_0x168ac9[_0x5183e5(0x17c)]=_0x5183e5(0x280)+_0x17b5e0+'</div>',_0x168ac9[_0x5183e5(0xf98)](_0x5183e5(0x306))[_0x5183e5(0xd27)](_0x168f1f=>{const _0x10922a=_0x5183e5,_0x4c954c=_0x49f3aa[parseInt(_0x168f1f[_0x10922a(0x8f6)]['idx'],0xa)];if(!_0x4c954c?.['entity'])return;_0x168f1f['style'][_0x10922a(0x2a5)]=_0x10922a(0x670),_0x168f1f['addEventListener'](_0x10922a(0xe5e),_0x4f1f9c=>{const _0x4ac409=_0x10922a;_0x4f1f9c[_0x4ac409(0x7ba)](),this['_fireEntityAction'](_0x4c954c);});}),this[_0x5183e5(0x401)]='';}[_0x46af5e(0x86f)](_0x559ee3){const _0xfe025b=_0x46af5e,_0x4448b0=this[_0xfe025b(0x2d4)];if(!_0x4448b0)return'';const _0x12425e=this[_0xfe025b(0xbe0)],_0x5ac803=this[_0xfe025b(0xf89)],_0x5b7605=this[_0xfe025b(0xbb2)]?.[_0xfe025b(0xee6)]?.(_0xfe025b(0xd25));let _0x342ee6=_0x5b7605?.[_0xfe025b(0x810)]|0x0,_0x1ac1de=this[_0xfe025b(0x342)]|0x0;const _0xa4b3b5=_0x342ee6,_0x28684c=_0x1ac1de,_0x4412bd=this['_fpLastW'];if(this[_0xfe025b(0xaf2)])this[_0xfe025b(0xaf2)]=![];else{if(_0x4412bd){if(Math[_0xfe025b(0x1ae)](_0x342ee6-_0x4412bd['p'])<0x8)_0x342ee6=_0x4412bd['p'];if(Math[_0xfe025b(0x1ae)](_0x1ac1de-_0x4412bd['c'])<0x8)_0x1ac1de=_0x4412bd['c'];}}this[_0xfe025b(0x631)]={'p':_0x342ee6,'c':_0x1ac1de};(_0x342ee6!==_0xa4b3b5||_0x1ac1de!==_0x28684c)&&(clearTimeout(this['_fpSettleT']),this[_0xfe025b(0xd9f)]=setTimeout(()=>{const _0x3ba4c1=_0xfe025b;this[_0x3ba4c1(0xd9f)]=null,this['_fpForceExact']=!![],this[_0x3ba4c1(0x3ec)]();},0xc8));const _0x5ea80b=this[_0xfe025b(0xbb2)]?.[_0xfe025b(0xee6)]?.(_0xfe025b(0xbf0))?.['offsetHeight']|0x0,_0x5673b8=resolveDisplayTimeZone(this['_hass'],this[_0xfe025b(0xfe9)])||'dev',_0x9045e=_0x1ac1de+'/'+_0x342ee6+'/'+_0x5ea80b+'/'+_0x5673b8+'/'+resolveCardLanguage(this[_0xfe025b(0x1dc)],this[_0xfe025b(0xfe9)]),_0x1e9e49=(_0x4448b0[_0xfe025b(0xfa8)]||[])[_0xfe025b(0xb3f)](_0x4fe609=>_0x4fe609['id']+':'+(_0x4fe609[_0xfe025b(0x93a)]?.[_0xfe025b(0xc02)]||0x0)+':'+(_0x4fe609[_0xfe025b(0x93a)]?.[_0x4fe609['points']['length']-0x1]?.['t']||0x0)+':'+(_0x4fe609[_0xfe025b(0x93a)]?.[_0x4fe609['points']['length']-0x1]?.['v']??'')+':'+(_0x4fe609[_0xfe025b(0xda8)]??''))[_0xfe025b(0x888)]('|'),_0x511e67=(this[_0xfe025b(0xfef)]||[])[_0xfe025b(0xb3f)](_0x5b6964=>''+(isStripEntity(_0x5b6964)?'S':'')+(_0x5b6964?.[_0xfe025b(0xa72)]?'a':'')+(_0x5b6964?.[_0xfe025b(0xd0a)]?'b':'')+(_0x5b6964?.[_0xfe025b(0x199)]||'')+(Array[_0xfe025b(0x902)](_0x5b6964?.[_0xfe025b(0xdf3)])&&_0x5b6964[_0xfe025b(0xdf3)][_0xfe025b(0xc02)]?'m'+_0x5b6964[_0xfe025b(0xdf3)][_0xfe025b(0xb3f)](_0x24fae8=>_0x24fae8?.[_0xfe025b(0xe4c)]+':'+(_0x24fae8?.[_0xfe025b(0xd95)]||'')+':'+(_0x24fae8?.[_0xfe025b(0x581)]||'')+':'+(_0x24fae8?.['show_label']?'L':''))[_0xfe025b(0x888)](','):''))[_0xfe025b(0x888)](','),_0x14229f=[...this['_hiddenEntities']][_0xfe025b(0xd09)]()[_0xfe025b(0x888)](','),_0x41374d=this['_resolvedEntityAnnotations']?.[_0xfe025b(0xc02)]||0x0,_0x1aa38f=_0xfe025b(0xe5c)+(this[_0xfe025b(0xfef)]||[])[_0xfe025b(0xb3f)]((_0x5d0516,_0x54f700)=>_0x5d0516?.[_0xfe025b(0x8cc)]==='independent'?_0x54f700:'')[_0xfe025b(0x919)](Boolean)[_0xfe025b(0x888)](','),_0x72b932='on:'+(this[_0xfe025b(0xfef)]||[])['map']((_0xb90210,_0x74301b)=>resolveEntityEnabled(_0xb90210,this[_0xfe025b(0x1dc)])?'':String(_0x74301b))['filter'](_0xa61433=>_0xa61433!=='')[_0xfe025b(0x888)](',');return[_0x559ee3,_0x9045e,this[_0xfe025b(0xfe9)][_0xfe025b(0x4a1)]?'spark':'norm',this[_0xfe025b(0xfe9)][_0xfe025b(0x8fc)]?_0xfe025b(0xd7c):'',this[_0xfe025b(0xfe9)][_0xfe025b(0xe44)]?_0xfe025b(0x101a):'','dec:'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x1010)]??''),'grd:'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x257)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x86c)]||'')+'|'+(this[_0xfe025b(0xfe9)]['x_grid_width']??'')+'|'+(this[_0xfe025b(0xfe9)]['x_grid_color']||'')+'|'+(this['_config'][_0xfe025b(0x598)]??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xc0f)]||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xa8c)]??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xc57)]||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x633)]??''),this[_0xfe025b(0xfe9)][_0xfe025b(0x3d7)]?_0xfe025b(0x87a)+(this['_config'][_0xfe025b(0xc62)]||'')+'|'+(this[_0xfe025b(0xfe9)]['y2_axis_label']||'')+'|'+(this[_0xfe025b(0xfe9)]['y_axis_font_size']||'')+'|'+(this[_0xfe025b(0xfe9)]['y_axis_color']||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xd8c)]??''):'',_0x559ee3===_0xfe025b(0xe24)?_0xfe025b(0x5ac)+(this[_0xfe025b(0xfe9)][_0xfe025b(0x367)]||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x82a)]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xdd3)]??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xf50)]??'')+'|'+(this['_config'][_0xfe025b(0xdaf)]||'')+'|'+(this[_0xfe025b(0xfe9)]['pie_label_format']||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xd2d)]??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xe38)]||'')+'|'+(this['_config']['show_tooltip_total']!==![]?0x1:0x0)+'|'+(this['_config'][_0xfe025b(0xeed)]!==![]?0x1:0x0):'',_0x559ee3===_0xfe025b(0x37b)?_0xfe025b(0xa83)+(this[_0xfe025b(0xfe9)]['show_tooltip_total']!==![]?0x1:0x0)+'|'+(this['_config'][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfef)]||[])[_0xfe025b(0xb3f)](_0x1fa4cc=>(_0x1fa4cc[_0xfe025b(0xf24)]??'')+'/'+(_0x1fa4cc[_0xfe025b(0x443)]??''))[_0xfe025b(0x888)](','):'',_0x559ee3===_0xfe025b(0xa16)?_0xfe025b(0x22e)+(this[_0xfe025b(0xfe9)][_0xfe025b(0xf31)]??'')+'|'+(this[_0xfe025b(0xfe9)]['gauge_span']??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x665)]||'')+'|'+(this[_0xfe025b(0xfe9)]['gauge_value_size']??'')+'|'+(this['_config'][_0xfe025b(0xb43)]?0x1:0x0)+'|'+(this['_config'][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this['_entities']||[])['map'](_0x4d59b9=>(_0x4d59b9[_0xfe025b(0xf24)]??'')+'/'+(_0x4d59b9[_0xfe025b(0x443)]??'')+'/'+(_0x4d59b9[_0xfe025b(0x709)]||'')+'/'+(_0x4d59b9[_0xfe025b(0x34b)]!==![]?0x1:0x0)+'/'+(_0x4d59b9['color']||'')+'/'+(_0x4d59b9[_0xfe025b(0xdd5)]?.['enabled']?0x1:0x0)+'/'+(_0x4d59b9[_0xfe025b(0xdd5)]?.[_0xfe025b(0x202)]||[])[_0xfe025b(0xb3f)](_0x593084=>_0x593084['value']+':'+_0x593084[_0xfe025b(0xd95)])[_0xfe025b(0x888)](';')+'/'+(_0x4d59b9['color_thresholds']?.['transition']||'')+'/'+(_0x4d59b9[_0xfe025b(0xdd5)]?.[_0xfe025b(0x873)]?0x1:0x0))[_0xfe025b(0x888)](','):'',_0x559ee3==='ranking'?_0xfe025b(0xf4b)+(this[_0xfe025b(0xfe9)][_0xfe025b(0x238)]||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x74f)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xeed)]!==![]?0x1:0x0):'',_0x559ee3===_0xfe025b(0xa1c)?'sc:'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xe1e)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x4f0)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x257)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x41c)]??'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x1010)]??'')+'|'+(this[_0xfe025b(0xfe9)]['x_axis_color']||'')+'|'+(this[_0xfe025b(0xfe9)]['y_axis_color']||'')+'|'+(this['_config']['x_axis_font_size']||'')+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x1aa)]||''):'',_0x559ee3===_0xfe025b(0xa56)||_0x559ee3===_0xfe025b(0xdbc)?'hm:'+_0x559ee3+'|'+(this['_config'][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xe18)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfef)]?.[0x0]?.[_0xfe025b(0xc48)]||'')+'|'+(this['_entities']?.[0x0]?.[_0xfe025b(0xf24)]??'')+'|'+(this[_0xfe025b(0xfef)]?.[0x0]?.[_0xfe025b(0x443)]??''):'',_0x559ee3==='box'?'bx:'+(this['_config'][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this['_config'][_0xfe025b(0x3b2)]||'')+'|'+(this[_0xfe025b(0xfef)]||[])['map'](_0x3934a7=>(_0x3934a7[_0xfe025b(0xd95)]||'')+'/'+(_0x3934a7['decimals']??'')+'/'+(_0x3934a7[_0xfe025b(0xc48)]||'')+'/'+(_0x3934a7[_0xfe025b(0x3de)]||'')+'/'+(_0x3934a7[_0xfe025b(0x32e)]||''))[_0xfe025b(0x888)](','):'',_0x559ee3===_0xfe025b(0xef0)?_0xfe025b(0x5a1)+(this[_0xfe025b(0xfe9)][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)]['waterfall_total']!==![]?0x1:0x0)+'|'+(this['_entities']||[])[_0xfe025b(0xb3f)](_0x58ba7c=>(_0x58ba7c[_0xfe025b(0xd95)]||'')+'/'+(_0x58ba7c['decimals']??'')+'/'+(_0x58ba7c[_0xfe025b(0xc48)]||'')+'/'+(_0x58ba7c[_0xfe025b(0x3de)]||'')+'/'+(_0x58ba7c[_0xfe025b(0x32e)]||'')+'/'+(_0x58ba7c[_0xfe025b(0xdee)]||''))['join'](','):'',_0x559ee3==='histogram'?'hg:'+(this[_0xfe025b(0xfe9)][_0xfe025b(0xeed)]!==![]?0x1:0x0)+'|'+(this[_0xfe025b(0xfe9)][_0xfe025b(0x74f)]!==![]?0x1:0x0)+'|'+(this['_config']['histogram_bins']??'')+'|'+(this['_entities']||[])['map'](_0x37d837=>(_0x37d837[_0xfe025b(0xd95)]||'')+'/'+(_0x37d837[_0xfe025b(0xbcf)]??'')+'/'+(_0x37d837[_0xfe025b(0x3de)]||'')+'/'+(_0x37d837[_0xfe025b(0x32e)]||''))[_0xfe025b(0x888)](','):'',((()=>{const _0x40ed92=_0xfe025b,_0x365b3c=_0x12425e?.['start']?.[_0x40ed92(0x1028)]()||0x0,_0x1aca85=_0x12425e?.[_0x40ed92(0x244)]?.[_0x40ed92(0x1028)]()||0x0,_0x3dde1c=Math[_0x40ed92(0x220)](0x3e8,Math[_0x40ed92(0xedc)]((_0x1aca85-_0x365b3c)/Math[_0x40ed92(0x220)](_0x342ee6,0x12c))||0x0);return'w:'+Math[_0x40ed92(0x686)](_0x365b3c/_0x3dde1c)+'~'+Math[_0x40ed92(0x686)](_0x1aca85/_0x3dde1c);})()),_0x5ac803?.[_0xfe025b(0x4b0)]?.[_0xfe025b(0x1028)]()||0x0,_0x5ac803?.['end']?.[_0xfe025b(0x1028)]()||0x0,_0x14229f,_0x41374d,this[_0xfe025b(0x382)]?0x1:0x0,_0x511e67,_0x1aa38f,_0x72b932,((()=>{const _0x88acaf=_0xfe025b,_0x5ac28b=(this[_0x88acaf(0xfef)]||[])[_0x88acaf(0x42a)](_0x17f1df=>_0x17f1df&&_0x17f1df[COMPILED_TRANSFORM]?.[_0x88acaf(0x1b3)]);if(!_0x5ac28b)return _0x88acaf(0xbe6);return _0x88acaf(0xbe6)+Math['round']((this[_0x88acaf(0xe48)]||Date[_0x88acaf(0x69d)]())/0xea60);})()),_0xfe025b(0x883)+(resolveDynamicValue(this[_0xfe025b(0xfe9)]?.[_0xfe025b(0xa8d)],this['_hass'])??toNum(this[_0xfe025b(0xfe9)]?.['graph_start_hour'])??'')+':'+(resolveDynamicValue(this['_config']?.[_0xfe025b(0xfca)],this[_0xfe025b(0x1dc)])??toNum(this[_0xfe025b(0xfe9)]?.[_0xfe025b(0xfca)])??''),_0xfe025b(0xc92)+boundFpKey(this[_0xfe025b(0xfe9)],this[_0xfe025b(0xfef)],this['_hass']),_0x1e9e49][_0xfe025b(0x888)]('§');}[_0x46af5e(0x61d)](_0x4a68ae){const _0x43034f=_0x46af5e;if(this['_renderers'][_0x43034f(0x101d)](_0x4a68ae))return this['_renderers'][_0x43034f(0xc3f)](_0x4a68ae);let _0x3a869e;if(_0x4a68ae===_0x43034f(0x325))_0x3a869e=new TimelineRenderer(this);else{if(_0x4a68ae==='state_timeline')_0x3a869e=new StateTimelineRenderer(this);else{if(_0x4a68ae==='pie')_0x3a869e=new PieRenderer(this);else{if(_0x4a68ae===_0x43034f(0x37b))_0x3a869e=new RadialBarRenderer(this);else{if(_0x4a68ae==='gauge')_0x3a869e=new GaugeRenderer(this);else{if(_0x4a68ae===_0x43034f(0x88e))_0x3a869e=new PolarAreaRenderer(this);else{if(_0x4a68ae===_0x43034f(0xd20))_0x3a869e=new RadarRenderer(this);else{if(_0x4a68ae==='ranking')_0x3a869e=new RankingRenderer(this);else{if(_0x4a68ae===_0x43034f(0xa1c))_0x3a869e=new ScatterRenderer(this);else{if(_0x4a68ae===_0x43034f(0xa56))_0x3a869e=new HeatmapRenderer(this);else{if(_0x4a68ae==='calendar')_0x3a869e=new CalendarRenderer(this);else{if(_0x4a68ae==='box')_0x3a869e=new BoxPlotRenderer(this);else{if(_0x4a68ae===_0x43034f(0xef0))_0x3a869e=new WaterfallRenderer(this);else{if(_0x4a68ae===_0x43034f(0x9b5))_0x3a869e=new HistogramRenderer(this);else _0x3a869e=new StubRenderer(this,_0x4a68ae);}}}}}}}}}}}}}return this[_0x43034f(0x8ed)][_0x43034f(0xa2d)](_0x4a68ae,_0x3a869e),_0x3a869e;}[_0x46af5e(0x519)](){const _0x343454=_0x46af5e,_0x56011a=this[_0x343454(0xfe9)][_0x343454(0x43d)],_0x31ef06=_0x56011a==null||_0x56011a===_0x343454(0x6c8)||_0x56011a==='',_0x2d8963=toNum(this['_config'][_0x343454(0x43d)])||0x96,_0x121974=_0x31ef06?'':_0x343454(0x6ab)+_0x2d8963+'px;',_0x490428=this['_config'][_0x343454(0xa4c)],_0x203682=this[_0x343454(0xfe9)][_0x343454(0x773)]===![],_0x5cf7bf=this[_0x343454(0xfe9)][_0x343454(0x509)]===![],_0x5b1a16=this[_0x343454(0xfe9)],_0x59c39f=[];if(_0x490428)_0x59c39f[_0x343454(0xb31)](_0x343454(0xb09)+_0x490428);if(_0x203682)_0x59c39f[_0x343454(0xb31)]('box-shadow:none');if(_0x5cf7bf)_0x59c39f[_0x343454(0xb31)](_0x343454(0x632));if(_0x5b1a16[_0x343454(0x6c1)]!==null&&_0x5b1a16[_0x343454(0x6c1)]!==undefined&&_0x5b1a16[_0x343454(0x6c1)]!==''){const _0x4e3ee7=_0x5b1a16[_0x343454(0x6c1)];_0x59c39f[_0x343454(0xb31)]('padding:'+(typeof _0x4e3ee7==='number'?_0x4e3ee7+'px':_0x4e3ee7));}if(_0x5b1a16[_0x343454(0xb14)]!==null&&_0x5b1a16[_0x343454(0xb14)]!==undefined&&_0x5b1a16[_0x343454(0xb14)]!==''){const _0x416d6b=_0x5b1a16[_0x343454(0xb14)];_0x59c39f[_0x343454(0xb31)]('border-radius:'+(typeof _0x416d6b===_0x343454(0x327)?_0x416d6b+'px':_0x416d6b));}if(!_0x5cf7bf){if(_0x5b1a16[_0x343454(0xc19)])_0x59c39f[_0x343454(0xb31)](_0x343454(0xb7c)+_0x5b1a16[_0x343454(0xc19)]);if(_0x5b1a16['card_border_width']!==null&&_0x5b1a16[_0x343454(0x830)]!==undefined&&_0x5b1a16['card_border_width']!==''){const _0x43513a=_0x5b1a16['card_border_width'];_0x59c39f[_0x343454(0xb31)]('border-width:'+(typeof _0x43513a===_0x343454(0x327)?_0x43513a+'px':_0x43513a)),_0x59c39f['push'](_0x343454(0x543));}}if(_0x5b1a16[_0x343454(0x60d)]){let _0x7d2236=String(_0x5b1a16['card_background_image'])[_0x343454(0xa11)]();_0x7d2236&&!/^([a-z]+:|\/|data:)/i['test'](_0x7d2236)&&(_0x7d2236=_0x343454(0xa30)+_0x7d2236[_0x343454(0x5ef)](/^local\//,''));this[_0x343454(0x689)]=_0x7d2236;const _0x2e3769=_0x5b1a16[_0x343454(0x39e)]!==null&&_0x5b1a16[_0x343454(0x39e)]!==undefined&&_0x5b1a16[_0x343454(0x39e)]!=='';!_0x2e3769&&(_0x59c39f[_0x343454(0xb31)](_0x343454(0xbaf)+_0x7d2236[_0x343454(0x5ef)](/'/g,_0x343454(0x96d))+'\x27)'),_0x59c39f['push']('background-size:cover'),_0x59c39f[_0x343454(0xb31)](_0x343454(0x624)),_0x59c39f['push'](_0x343454(0x1040)));}else this['_normalizedBgImage']=null;const _0x5966b3=_0x59c39f[_0x343454(0x888)](';'),_0x28c12d=getComputedStyle(document[_0x343454(0xc11)])[_0x343454(0x767)]('--primary-font-family')[_0x343454(0xa11)]()||_0x343454(0xbc1),_0x3db692=STYLES[_0x343454(0x5ef)](':host\x20{\x20display:\x20block;\x20}',_0x343454(0xc7a)+_0x28c12d+_0x343454(0xca7)),_0x5498da=[];if(_0x5b1a16[_0x343454(0x7b6)])_0x5498da[_0x343454(0xb31)](_0x343454(0x21f)+_0x5b1a16['card_header_color']);_0x5b1a16[_0x343454(0xc21)]!==null&&_0x5b1a16[_0x343454(0xc21)]!==undefined&&_0x5b1a16['card_header_weight']!==''&&_0x5498da[_0x343454(0xb31)](_0x343454(0xc55)+_0x5b1a16[_0x343454(0xc21)]);if(_0x5b1a16['card_header_letter_spacing']!==null&&_0x5b1a16[_0x343454(0x769)]!==undefined&&_0x5b1a16[_0x343454(0x769)]!==''){const _0x3e01a5=_0x5b1a16[_0x343454(0x769)];_0x5498da[_0x343454(0xb31)](_0x343454(0x67c)+(typeof _0x3e01a5==='number'?_0x3e01a5+'px':_0x3e01a5));}let _0x14c9dd=_0x5498da[_0x343454(0xc02)]?_0x343454(0x369)+_0x5498da[_0x343454(0x888)](';')+'}':'';const _0x5405ad=_0x5b1a16[_0x343454(0x39e)]!==null&&_0x5b1a16[_0x343454(0x39e)]!==undefined&&_0x5b1a16['card_background_blur']!=='';if(this[_0x343454(0x689)]&&_0x5405ad){const _0x54a1a7=_0x5b1a16[_0x343454(0x39e)],_0x118381=typeof _0x54a1a7===_0x343454(0x327)?_0x54a1a7+'px':_0x54a1a7,_0x43c48c=this[_0x343454(0x689)][_0x343454(0x5ef)](/'/g,'%27');_0x14c9dd+=_0x343454(0x2c9),_0x14c9dd+=_0x343454(0x8b2)+_0x43c48c+'\x27);background-size:cover;background-position:center;background-repeat:no-repeat;filter:blur('+_0x118381+_0x343454(0x9c7),_0x14c9dd+=_0x343454(0x481);}const _0x180ceb=typeof this[_0x343454(0xfe9)]['styles']===_0x343454(0xade)?this[_0x343454(0xfe9)][_0x343454(0x823)][_0x343454(0xa11)]():'',_0x1f75ea=this['shadowRoot'][_0x343454(0xee6)]('.sgc-card'),_0x408bc7=this['shadowRoot'][_0x343454(0xee6)](_0x343454(0xd25));if(_0x1f75ea&&_0x408bc7&&!this[_0x343454(0x70a)]){this[_0x343454(0x3e9)](_0x1f75ea,_0x59c39f);const _0x18a3aa=_0x31ef06?'':_0x2d8963+'px';if(_0x408bc7['style'][_0x343454(0x43d)]!==_0x18a3aa){if(_0x18a3aa)_0x408bc7['style'][_0x343454(0x43d)]=_0x18a3aa;else _0x408bc7[_0x343454(0x944)][_0x343454(0xfae)](_0x343454(0x43d));}const _0x350201=this[_0x343454(0xbb2)][_0x343454(0xee6)]('#sgc-base');_0x350201&&_0x350201[_0x343454(0x3d2)]!==_0x3db692&&(_0x350201[_0x343454(0x3d2)]=_0x3db692);const _0x216889=this[_0x343454(0xbb2)][_0x343454(0xee6)]('#sgc-extras');if(_0x14c9dd){if(_0x216889){if(_0x216889[_0x343454(0x3d2)]!==_0x14c9dd)_0x216889[_0x343454(0x3d2)]=_0x14c9dd;}else{const _0x2b644d=document[_0x343454(0xbde)](_0x343454(0x944));_0x2b644d['id']=_0x343454(0x2b2),_0x2b644d['textContent']=_0x14c9dd,this[_0x343454(0xbb2)][_0x343454(0x52e)](_0x2b644d,this[_0x343454(0xbb2)]['querySelector'](_0x343454(0x2e1))||_0x1f75ea);}}else _0x216889&&_0x216889[_0x343454(0x547)]();const _0x2b8e1d=this[_0x343454(0xbb2)]['querySelector'](_0x343454(0x2e1));if(_0x180ceb){if(_0x2b8e1d){if(_0x2b8e1d[_0x343454(0x3d2)]!==_0x180ceb)_0x2b8e1d[_0x343454(0x3d2)]=_0x180ceb;}else{const _0x56ff66=document[_0x343454(0xbde)](_0x343454(0x944));_0x56ff66['id']=_0x343454(0x71d),_0x56ff66[_0x343454(0x3d2)]=_0x180ceb,this[_0x343454(0xbb2)]['insertBefore'](_0x56ff66,_0x1f75ea);}}else _0x2b8e1d&&_0x2b8e1d['remove']();return;}this[_0x343454(0x70a)]=![];const _0x3d2fce=[...this[_0x343454(0xbb2)][_0x343454(0xfab)]][_0x343454(0x919)](_0x36e060=>!(_0x36e060['id']===_0x343454(0xd81)||_0x36e060['id']==='sgc-extras'||_0x36e060['id']===_0x343454(0x71d)||_0x36e060['classList']?.[_0x343454(0x2a0)](_0x343454(0x9ef)))),_0x382c5a=_0x5966b3?_0x343454(0x601)+_0x5966b3+'\x22':'',_0x186232=_0x14c9dd?_0x343454(0x86b)+_0x14c9dd+'</style>':'';this[_0x343454(0xbb2)][_0x343454(0x17c)]=_0x343454(0x895)+_0x3db692+_0x343454(0x56d)+_0x186232+'\x0a\x20\x20\x20\x20\x20\x20<ha-card\x20class=\x22sgc-card\x22'+_0x382c5a+_0x343454(0xe6e)+_0x121974+_0x343454(0x674);if(_0x180ceb){const _0x23f8c7=document[_0x343454(0xbde)](_0x343454(0x944));_0x23f8c7['id']=_0x343454(0x71d),_0x23f8c7[_0x343454(0x3d2)]=_0x180ceb,this['shadowRoot'][_0x343454(0x52e)](_0x23f8c7,this['shadowRoot'][_0x343454(0xee6)]('.sgc-card'));}for(const _0x23b8b3 of _0x3d2fce)this[_0x343454(0xbb2)]['appendChild'](_0x23b8b3);this[_0x343454(0x537)]=new Set(_0x59c39f['map'](_0x40f832=>_0x40f832[_0x343454(0x165)](0x0,_0x40f832[_0x343454(0x2f0)](':')))[_0x343454(0x919)](Boolean));}[_0x46af5e(0x3e9)](_0x5609cb,_0x3ada95){const _0x5f4e8d=_0x46af5e,_0x2e1a6c=new Map();for(const _0x1fcfa5 of _0x3ada95){const _0x378394=_0x1fcfa5[_0x5f4e8d(0x2f0)](':');if(_0x378394>0x0)_0x2e1a6c['set'](_0x1fcfa5[_0x5f4e8d(0x165)](0x0,_0x378394),_0x1fcfa5[_0x5f4e8d(0x165)](_0x378394+0x1));}const _0x348065=this[_0x5f4e8d(0x537)]||(this[_0x5f4e8d(0x537)]=new Set());for(const _0x502d13 of[..._0x348065]){!_0x2e1a6c[_0x5f4e8d(0x101d)](_0x502d13)&&(_0x5609cb[_0x5f4e8d(0x944)][_0x5f4e8d(0xfae)](_0x502d13),_0x348065[_0x5f4e8d(0xcc1)](_0x502d13));}for(const [_0x6f999a,_0x57eae9]of _0x2e1a6c){if(_0x5609cb[_0x5f4e8d(0x944)][_0x5f4e8d(0x767)](_0x6f999a)!==_0x57eae9)_0x5609cb[_0x5f4e8d(0x944)][_0x5f4e8d(0x935)](_0x6f999a,_0x57eae9);_0x348065[_0x5f4e8d(0x982)](_0x6f999a);}}[_0x46af5e(0x685)](){const _0x1d0f2f=_0x46af5e,_0x34df3d=this[_0x1d0f2f(0xfe9)]?.[_0x1d0f2f(0x355)];if(_0x34df3d===null||_0x34df3d===undefined||_0x34df3d==='')return 0x14;const _0x54bd3d=toNum(_0x34df3d);if(isNum(_0x54bd3d))return _0x54bd3d;const _0x1c7349=String(_0x34df3d)[_0x1d0f2f(0xa11)](),_0x14b38d=_0x1c7349[_0x1d0f2f(0xbc0)]('.');if(_0x14b38d[_0x1d0f2f(0xc02)]<0x2)return 0x14;const _0x3fc8dc=_0x14b38d[0x0]+'.'+_0x14b38d[0x1],_0x371486=_0x14b38d[_0x1d0f2f(0xc02)]>=0x3?_0x14b38d['slice'](0x2)[_0x1d0f2f(0x888)]('.'):null,_0x42bfbe=this[_0x1d0f2f(0x1dc)]?.[_0x1d0f2f(0x4f9)]?.[_0x3fc8dc];if(!_0x42bfbe)return 0x14;const _0x309c42=_0x371486?getAttributePath(_0x42bfbe[_0x1d0f2f(0x467)],_0x371486):_0x42bfbe[_0x1d0f2f(0x5f5)],_0x287053=toNum(_0x309c42);return isNum(_0x287053)?_0x287053:0x14;}[_0x46af5e(0x69b)](){const _0x1faa76=_0x46af5e,_0x3c76fb=this[_0x1faa76(0xfe9)]?.[_0x1faa76(0x254)];if(!_0x3c76fb)return'';const _0x374a27=this['_hass']?.['states']?.[_0x3c76fb];if(!_0x374a27)return'';const _0x10f017=parseFloat(_0x374a27['state']);if(Number[_0x1faa76(0xd8f)](_0x10f017))return'';const _0x402e5c=this[_0x1faa76(0x685)]();let _0x58e4e1;if(_0x10f017<=_0x402e5c)_0x58e4e1=_0x1faa76(0xefc);else{if(_0x10f017<=0x19)_0x58e4e1=_0x1faa76(0x61a);else{if(_0x10f017<=0x32)_0x58e4e1=_0x1faa76(0x57d);else _0x58e4e1=_0x1faa76(0xb80);}}const _0x39f0a5=Math['max'](0x0,Math['min'](0x64,_0x10f017))/0x64*0xa,_0xc2e47f=escapeHtml(_0x374a27['attributes']?.[_0x1faa76(0x457)]||_0x3c76fb);return'<span\x20class=\x22sgc-battery-icon\x22\x20title=\x22'+_0xc2e47f+':\x20'+Math[_0x1faa76(0x686)](_0x10f017)+_0x1faa76(0xb30)+(0x4+(0xa-_0x39f0a5))+_0x1faa76(0x93d)+_0x39f0a5+_0x1faa76(0x52f)+_0x58e4e1+_0x1faa76(0xdba)+_0x58e4e1+'\x22>'+Math[_0x1faa76(0x686)](_0x10f017)+_0x1faa76(0x4c8);}['_renderHeader'](){const _0x1e175d=_0x46af5e,_0x3669f0=this[_0x1e175d(0xbb2)][_0x1e175d(0xee6)](_0x1e175d(0x5bf));if(!_0x3669f0)return;const _0x5dad50=this[_0x1e175d(0xfe9)],_0x56158b=!!(_0x5dad50[_0x1e175d(0x26a)]||_0x5dad50[_0x1e175d(0x90f)]||_0x5dad50[_0x1e175d(0x59a)]);if(!_0x56158b){_0x3669f0['innerHTML']='';return;}const _0x1e4bca=_0x5dad50[_0x1e175d(0xa0c)]||'14px',_0x5870f7=this[_0x1e175d(0x69b)](),_0xb3271d=_0x1ea334=>_0x1ea334===_0x1e175d(0x942)||_0x1ea334===_0x1e175d(0x1fd)?_0x1ea334:_0x1e175d(0xaaf),_0x54c543=_0xb3271d(_0x5dad50['align_header']),_0x48e828=_0x5dad50[_0x1e175d(0x1009)]===_0x1e175d(0x1fd),_0x656b5b=_0x5dad50['card_icon_size']||_0x1e175d(0xca1),_0x5ed6a6=this[_0x1e175d(0xc2f)](_0x5dad50[_0x1e175d(0x90f)]),_0x15d20b=_0x5dad50[_0x1e175d(0x59a)]?'<img\x20class=\x22sgc-header-icon-img\x22\x20src=\x22'+escapeHtml(_0x5dad50[_0x1e175d(0x59a)])+_0x1e175d(0x101b)+escapeHtml(_0x656b5b)+_0x1e175d(0x9d8)+escapeHtml(_0x656b5b)+_0x1e175d(0xe2f):_0x5ed6a6?_0x1e175d(0x936)+escapeHtml(_0x5ed6a6)+_0x1e175d(0x1a9)+escapeHtml(_0x5dad50['card_icon_color']||_0x1e175d(0xb8d))+';'+(_0x5dad50[_0x1e175d(0x4ef)]?_0x1e175d(0xfbb)+escapeHtml(_0x5dad50['card_icon_size'])+';':'')+_0x1e175d(0x5b5):'',_0x29be79=_0x5dad50[_0x1e175d(0xa0c)]?'font-size:'+escapeHtml(_0x5dad50[_0x1e175d(0xa0c)]):'',_0x52c75c=_0x5dad50[_0x1e175d(0x26a)]?_0x1e175d(0x984)+_0x29be79+'\x22>'+escapeHtml(_0x5dad50[_0x1e175d(0x26a)])+'</span>':'',_0x1eddca=_0x48e828?''+_0x52c75c+_0x15d20b:''+_0x15d20b+_0x52c75c,_0x5b7949=_0x5870f7?_0x1e175d(0xd4d)+escapeHtml(_0x1e4bca)+'\x22>'+_0x5870f7+_0x1e175d(0x644):'';_0x3669f0[_0x1e175d(0x17c)]=_0x1e175d(0x95e)+(_0x1e175d(0x3f4)+_0x54c543+'\x22>'+_0x1eddca+_0x1e175d(0x743))+_0x5b7949+_0x1e175d(0x743);}[_0x46af5e(0x72c)](){const _0xd32ef2=_0x46af5e,_0x37cc07=this[_0xd32ef2(0xbb2)][_0xd32ef2(0xee6)](_0xd32ef2(0x218));if(!_0x37cc07)return;const _0x518973=this[_0xd32ef2(0xfe9)],_0x2d3cec=_0x518973[_0xd32ef2(0xb1f)]||_0x518973[_0xd32ef2(0x175)]&&this[_0xd32ef2(0x68c)],_0x147f3c=_0x518973[_0xd32ef2(0xbc9)];if(!_0x518973['show_interval_picker']||_0x2d3cec||_0x147f3c){_0x37cc07[_0xd32ef2(0x17c)]='';return;}const _0x54ae88=isNum(this[_0xd32ef2(0xe51)])?this['_overrideHoursToShow']:toNum(_0x518973['hours_to_show']),_0x24ff6e=Array['isArray'](_0x518973[_0xd32ef2(0x561)])&&_0x518973['interval_options']['length']?_0x518973[_0xd32ef2(0x561)]:INTERVAL_PICKER_DEFAULT_LABELS,_0x483314=INTERVAL_PICKER_OPTIONS['filter'](_0x379088=>_0x24ff6e[_0xd32ef2(0xf06)](_0x379088[_0xd32ef2(0xf1f)]));isNum(_0x54ae88)&&_0x54ae88>0x0&&!_0x483314[_0xd32ef2(0x42a)](_0x1e975e=>_0x1e975e['hours']===_0x54ae88)&&(_0x483314['push']({'hours':_0x54ae88,'label':intervalLabelForHours(_0x54ae88)}),_0x483314[_0xd32ef2(0xd09)]((_0x2f1f2e,_0x5f16bf)=>_0x2f1f2e['hours']-_0x5f16bf[_0xd32ef2(0x560)]));const _0x368142=_0x483314['map'](_0x5c5da5=>{const _0x5c7949=_0xd32ef2,_0x14774a=_0x5c5da5[_0x5c7949(0x560)]===_0x54ae88?_0x5c7949(0x5b3):'';return'<button\x20class=\x22sgc-ip-btn\x20'+_0x14774a+_0x5c7949(0x49a)+_0x5c5da5['hours']+_0x5c7949(0xc94)+escapeHtml(_0x5c5da5[_0x5c7949(0xf1f)])+'\x22>'+escapeHtml(cardT(this[_0x5c7949(0x1dc)],this[_0x5c7949(0xfe9)],_0x5c5da5[_0x5c7949(0xf1f)]))+'</button>';})[_0xd32ef2(0x888)](''),_0x392606=_0x518973[_0xd32ef2(0x82c)]||'left';_0x37cc07[_0xd32ef2(0x17c)]='<div\x20class=\x22sgc-ip\x20align-'+escapeHtml(_0x392606)+'\x22>'+_0x368142+_0xd32ef2(0x743),_0x37cc07[_0xd32ef2(0xf98)](_0xd32ef2(0xab1))['forEach'](_0x4d85c2=>{const _0x5a106a=_0xd32ef2;_0x4d85c2[_0x5a106a(0x171)]('click',()=>{const _0x5d4783=_0x5a106a,_0x17e718=toNum(_0x4d85c2[_0x5d4783(0x8f6)][_0x5d4783(0x560)]),_0x5ad11d=_0x4d85c2[_0x5d4783(0x8f6)][_0x5d4783(0xf1f)];if(isNum(_0x17e718))this[_0x5d4783(0x417)](_0x17e718,_0x5ad11d);});});}['_effectiveAttribute'](_0x16d611,_0x3063d1){const _0x5246fa=_0x46af5e,_0xd05c46=_0x16d611?.[_0x5246fa(0xed4)]!=null?_0x16d611[_0x5246fa(0xed4)]:_0x3063d1,_0x48dc22=this['_overrideAttributes']?.[_0xd05c46];if(_0x48dc22===undefined)return _0x16d611[_0x5246fa(0xf0f)]||'';return _0x48dc22;}[_0x46af5e(0xece)](_0x446a68,_0x36a23b){const _0x28a991=_0x46af5e;if(!_0x446a68)return cardT(this['_hass'],this[_0x28a991(0xfe9)],_0x28a991(0xc4e));if(_0x36a23b)return attributeDisplayName(this['_hass'],_0x36a23b,_0x446a68);return String(_0x446a68)[_0x28a991(0x5ef)](/_/g,'\x20')[_0x28a991(0x5ef)](/\b\w/g,_0x43ad8b=>_0x43ad8b['toUpperCase']());}[_0x46af5e(0x7fe)](_0x46d28c,_0x4e8b6a,_0x4e58e5){const _0x5d9d90=_0x46af5e;if(_0x4e8b6a?.[_0x5d9d90(0x102c)])return _0x46d28c;return applyAttributeName(this[_0x5d9d90(0xfe9)],this[_0x5d9d90(0x1dc)],_0x46d28c,_0x4e8b6a,this[_0x5d9d90(0x88b)](_0x4e8b6a,_0x4e58e5));}[_0x46af5e(0x3f6)](_0x261c95){const _0x3fdba1=_0x46af5e,_0x87e708=toNum(this['_overridePph']);if(isNum(_0x87e708))_0x261c95[_0x3fdba1(0x71e)]=_0x87e708;else{if(this[_0x3fdba1(0x2a4)])_0x261c95[_0x3fdba1(0x71e)]=this[_0x3fdba1(0x2a4)][_0x3fdba1(0xb5e)];}if(this['_overrideGroupBy'])_0x261c95[_0x3fdba1(0x3b2)]=this['_overrideGroupBy'];else{if(this[_0x3fdba1(0x2a4)])_0x261c95[_0x3fdba1(0x3b2)]=this[_0x3fdba1(0x2a4)][_0x3fdba1(0x909)];}this['_baseQuery']&&(_0x261c95[_0x3fdba1(0x323)]=isNum(_0x87e708)||this[_0x3fdba1(0x87d)]?![]:this[_0x3fdba1(0x2a4)]['autoScale']);}[_0x46af5e(0x5f9)](_0x4aeee9,_0x256a7a,_0x39cfac=![]){const _0x58743f=_0x46af5e;if(_0x4aeee9===_0x58743f(0xb5e)){const _0x4bcb03=toNum(_0x256a7a);this[_0x58743f(0x64e)]=isNum(_0x4bcb03)?_0x4bcb03:null;}else _0x4aeee9===_0x58743f(0x909)&&(this[_0x58743f(0x87d)]=_0x256a7a||null);const _0x1645c6={...this[_0x58743f(0xfe9)]};this[_0x58743f(0x3f6)](_0x1645c6),this[_0x58743f(0xfe9)]=_0x1645c6,this[_0x58743f(0xfe1)](),this['_broadcastQuerySync'](_0x4aeee9);try{this[_0x58743f(0x4db)]?.[_0x58743f(0xd35)]?.['clear']?.();}catch(_0x5a8c12){}if(_0x39cfac){this[_0x58743f(0x9c5)]();return;}this[_0x58743f(0x258)]()[_0x58743f(0x9d5)](_0x3645a8=>console[_0x58743f(0x969)](_0x58743f(0xf01),_0x3645a8));}['_persistQueryPickers'](){const _0x173165=_0x46af5e;isNum(toNum(this[_0x173165(0x64e)]))?lsSet(this['_pphStoreKey'](),String(this['_overridePph'])):lsDel(this['_pphStoreKey']()),this['_overrideGroupBy']?lsSet(this[_0x173165(0x67b)](),this[_0x173165(0x87d)]):lsDel(this['_gbyStoreKey']());}[_0x46af5e(0xff1)](){const _0x190721=_0x46af5e,_0x69cea=this[_0x190721(0xbb2)][_0x190721(0xee6)](_0x190721(0x588));if(!_0x69cea)return;const _0x208c51=this['_config'],_0x16fe22=!!_0x208c51[_0x190721(0x392)],_0x2e252a=!!_0x208c51[_0x190721(0xb65)];if(!_0x16fe22&&!_0x2e252a){_0x69cea[_0x190721(0x17c)]='';return;}const _0x24110c=(_0x3aafeb,_0x58bf62,_0x4f0fc5)=>_0x190721(0xc4a)+escapeHtml(String(_0x3aafeb))+'\x22'+(String(_0x4f0fc5)===String(_0x3aafeb)?_0x190721(0x7d8):'')+'>'+escapeHtml(_0x58bf62)+_0x190721(0x6be),_0x722c2e=[];if(_0x16fe22){const _0x592901=isNum(toNum(this[_0x190721(0x64e)]))?String(this[_0x190721(0x64e)]):'',_0xa928ca=toNum(this[_0x190721(0x2a4)]?.[_0x190721(0xb5e)]),_0xfdd721=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c];isNum(_0xa928ca)&&!_0xfdd721[_0x190721(0xf06)](_0xa928ca)&&(_0xfdd721['push'](_0xa928ca),_0xfdd721[_0x190721(0xd09)]((_0x59fa97,_0x36b292)=>_0x59fa97-_0x36b292));const _0x350d60=[_0x24110c('',cardT(this[_0x190721(0x1dc)],_0x208c51,_0x190721(0xd1b))+'\x20('+(isNum(_0xa928ca)?_0xa928ca:0x2)+_0x190721(0xb1a),_0x592901)]['concat'](_0xfdd721['map'](_0x4823c7=>_0x24110c(_0x4823c7,_0x4823c7+'/h',_0x592901)))['join']('');_0x722c2e['push']([_0x208c51['pph_picker_position']||_0x190721(0xaaf),'<div\x20class=\x22sgc-qp-item\x22><span\x20class=\x22sgc-qp-lbl\x22>'+escapeHtml(cardT(this[_0x190721(0x1dc)],_0x208c51,_0x190721(0x97a)))+_0x190721(0xe96)+_0x350d60+'</select></div>']);}if(_0x2e252a){const _0x510c88=this[_0x190721(0x87d)]||'',_0x36670b=this['_baseQuery']?.['gby']||'interval',_0x2e1d3b={'interval':_0x190721(0xf5c),'hour':_0x190721(0xe11),'2h':'2H','3h':'3H','4h':'4H','6h':'6H','12h':_0x190721(0x842),'date':_0x190721(0x83e),'week':_0x190721(0x2d1),'month':_0x190721(0x4e4),'year':_0x190721(0x8c1)},_0x2c8797=[_0x24110c('',cardT(this[_0x190721(0x1dc)],_0x208c51,'Auto')+'\x20('+cardT(this[_0x190721(0x1dc)],_0x208c51,_0x2e1d3b[_0x36670b]||_0x36670b)+')',_0x510c88)]['concat'](Object['keys'](_0x2e1d3b)[_0x190721(0xb3f)](_0x3360bc=>_0x24110c(_0x3360bc,cardT(this[_0x190721(0x1dc)],_0x208c51,_0x2e1d3b[_0x3360bc]),_0x510c88)))[_0x190721(0x888)]('');_0x722c2e[_0x190721(0xb31)]([_0x208c51[_0x190721(0x272)]||'left',_0x190721(0xf37)+escapeHtml(cardT(this[_0x190721(0x1dc)],_0x208c51,_0x190721(0x97f)))+_0x190721(0xf0b)+_0x2c8797+_0x190721(0x448)]);}const _0x1e7cd3={'left':'','center':'','right':''};for(const [_0x4b94e9,_0x525ae7]of _0x722c2e)_0x1e7cd3[_0x4b94e9 in _0x1e7cd3?_0x4b94e9:_0x190721(0xaaf)]+=_0x525ae7;_0x69cea['innerHTML']=[_0x190721(0xaaf),_0x190721(0x942),'right'][_0x190721(0x919)](_0x2821ce=>_0x1e7cd3[_0x2821ce])['map'](_0x1e0371=>_0x190721(0xecd)+_0x1e0371+'\x22>'+_0x1e7cd3[_0x1e0371]+'</div>')[_0x190721(0x888)](''),_0x69cea[_0x190721(0xf98)](_0x190721(0xc9a))[_0x190721(0xd27)](_0x30a1a5=>{const _0x140afb=_0x190721;_0x30a1a5[_0x140afb(0x171)](_0x140afb(0xe34),_0x4498a8=>{const _0x4f8d64=_0x140afb;this['_onQueryPick'](_0x4498a8['target']['dataset']['qp'],_0x4498a8[_0x4f8d64(0x6bc)][_0x4f8d64(0x2ea)]);});});}[_0x46af5e(0xc98)](){const _0x9ddb7a=_0x46af5e,_0x42ef4c=this[_0x9ddb7a(0xbb2)]['querySelector'](_0x9ddb7a(0x92d));if(!_0x42ef4c)return;const _0x50e02d=this[_0x9ddb7a(0xfe9)];if(!_0x50e02d[_0x9ddb7a(0xb55)]){_0x42ef4c[_0x9ddb7a(0x17c)]='';return;}let _0x5a6c88='';(this[_0x9ddb7a(0xfef)]||[])[_0x9ddb7a(0xd27)]((_0x26a6c3,_0x2ed49f)=>{const _0x48f4ca=_0x9ddb7a;if(_0x26a6c3['_compareOf']!=null)return;const _0x468a39=this['_hass']?.['states']?.[_0x26a6c3[_0x48f4ca(0x974)]];if(!_0x468a39)return;const _0x33c744=Object[_0x48f4ca(0x3ab)](_0x468a39[_0x48f4ca(0x467)]||{})[_0x48f4ca(0x919)](_0x34d141=>{const _0x3549c0=_0x48f4ca,_0x4f98f6=_0x468a39[_0x3549c0(0x467)][_0x34d141];return _0x4f98f6!==null&&_0x4f98f6!==undefined&&!isNaN(parseFloat(_0x4f98f6));})[_0x48f4ca(0xd09)]();if(!_0x33c744[_0x48f4ca(0xc02)])return;const _0x26ca93=_0x26a6c3[_0x48f4ca(0xd95)]===_0x48f4ca(0xe42)?PALETTE[_0x2ed49f%PALETTE['length']]||_0x48f4ca(0x3e4):this[_0x48f4ca(0x349)](_0x26a6c3[_0x48f4ca(0xd95)],_0x26a6c3[_0x48f4ca(0x974)])||_0x26a6c3[_0x48f4ca(0xd95)]||PALETTE[_0x2ed49f%PALETTE[_0x48f4ca(0xc02)]]||_0x48f4ca(0x3e4),_0x54aa0b=this[_0x48f4ca(0x88b)](_0x26a6c3,_0x2ed49f),_0x5d2857=_0x48f4ca(0xb5d)+(_0x54aa0b===''?'\x20selected':'')+'>'+escapeHtml(cardT(this[_0x48f4ca(0x1dc)],this[_0x48f4ca(0xfe9)],_0x48f4ca(0xc4e)))+_0x48f4ca(0x6be),_0x396d86=_0x33c744[_0x48f4ca(0xb3f)](_0x500e5a=>_0x48f4ca(0xc4a)+escapeHtml(_0x500e5a)+'\x22'+(_0x54aa0b===_0x500e5a?'\x20selected':'')+'>'+escapeHtml(this[_0x48f4ca(0xece)](_0x500e5a,_0x26a6c3['entity']))+'</option>')[_0x48f4ca(0x888)]('');_0x5a6c88+=_0x48f4ca(0x1cc)+(_0x48f4ca(0xbea)+escapeHtml(_0x26ca93)+_0x48f4ca(0x9d2))+(_0x48f4ca(0x49c)+_0x2ed49f+'\x22>'+_0x5d2857+_0x396d86+_0x48f4ca(0xfd4))+_0x48f4ca(0x743);});if(!_0x5a6c88){_0x42ef4c[_0x9ddb7a(0x17c)]='';return;}const _0x589ca2=_0x50e02d[_0x9ddb7a(0x9e7)]||'left';_0x42ef4c['innerHTML']=_0x9ddb7a(0x8c4)+escapeHtml(_0x589ca2)+'\x22>'+_0x5a6c88+'</div>',_0x42ef4c[_0x9ddb7a(0xf98)]('.sgc-al-select')[_0x9ddb7a(0xd27)](_0x3a0df8=>{const _0x524978=_0x9ddb7a;_0x3a0df8[_0x524978(0x171)](_0x524978(0xe34),_0x399743=>{const _0x76e0e8=_0x524978,_0x111f60=parseInt(_0x399743[_0x76e0e8(0x6bc)][_0x76e0e8(0x8f6)][_0x76e0e8(0x70c)],0xa);if(isNaN(_0x111f60))return;this[_0x76e0e8(0xe84)](_0x111f60,_0x399743[_0x76e0e8(0x6bc)][_0x76e0e8(0x2ea)]);});});}[_0x46af5e(0xe84)](_0x12aabf,_0x4a565f){const _0x5ec8e3=_0x46af5e,_0x76c002=this[_0x5ec8e3(0xfef)]?.[_0x12aabf];if(!_0x76c002)return;const _0x26d793=_0x76c002[_0x5ec8e3(0xf0f)]||'';_0x4a565f===_0x26d793?delete this['_overrideAttributes'][_0x12aabf]:this['_overrideAttributes'][_0x12aabf]=_0x4a565f,this['_updateHistory']()['catch'](_0x1e4c9e=>console['error'](_0x5ec8e3(0xa45),_0x1e4c9e));}[_0x46af5e(0xdd7)](){const _0x583f2f=_0x46af5e,_0x238d99=this['shadowRoot'][_0x583f2f(0xee6)](_0x583f2f(0xbf0));if(!_0x238d99)return;const _0x32eb30=this[_0x583f2f(0xfe9)];if(!_0x32eb30[_0x583f2f(0xb1f)]){_0x238d99[_0x583f2f(0x17c)]='';return;}const _0x1a3f23=[...DATE_PICKER_VALID_MODES,...Object[_0x583f2f(0x3ab)](DATE_PICKER_RELATIVE_MODES)],_0x5dff93=Array[_0x583f2f(0x902)](_0x32eb30[_0x583f2f(0x464)])&&_0x32eb30[_0x583f2f(0x464)][_0x583f2f(0xc02)]?_0x32eb30[_0x583f2f(0x464)][_0x583f2f(0x919)](_0x3b8b7f=>_0x1a3f23[_0x583f2f(0xf06)](_0x3b8b7f)):DATE_PICKER_VALID_MODES,_0xf37d23=_0x5dff93[_0x583f2f(0xc02)]>0x1,_0x582ca1=_0x32c35f=>{const _0x489522=_0x583f2f,_0xb835b=_0x32c35f===this[_0x489522(0x8cd)]?_0x489522(0x5b3):'',_0x50896c=DATE_PICKER_RELATIVE_MODES[_0x32c35f],_0x3f7fb5=cardT(this[_0x489522(0x1dc)],this['_config'],_0x50896c?_0x50896c[_0x489522(0xacf)]:_0x32c35f['charAt'](0x0)['toUpperCase']()),_0x5dd5c5={'day':_0x489522(0x531),'week':'Week','month':_0x489522(0x4e4),'year':_0x489522(0x8c1)}[_0x32c35f],_0x4c22bd=cardT(this['_hass'],this[_0x489522(0xfe9)],_0x50896c?_0x50896c[_0x489522(0xf1f)]:_0x5dd5c5||_0x32c35f);return _0x489522(0xf97)+_0xb835b+'\x22\x20data-mode=\x22'+escapeHtml(_0x32c35f)+_0x489522(0x65c)+escapeHtml(_0x4c22bd)+'\x22>'+escapeHtml(_0x3f7fb5)+_0x489522(0xfcb);};let _0x2adeaa='';if(_0xf37d23){const _0x160d00=_0x5dff93[_0x583f2f(0x919)](_0x446722=>!(_0x446722 in DATE_PICKER_RELATIVE_MODES))[_0x583f2f(0xb3f)](_0x582ca1)[_0x583f2f(0x888)](''),_0x3fc842=_0x5dff93[_0x583f2f(0x919)](_0x221afa=>_0x221afa in DATE_PICKER_RELATIVE_MODES)[_0x583f2f(0xb3f)](_0x582ca1)['join'](''),_0x53bf36=_0x160d00&&_0x3fc842?_0x583f2f(0x3f9):'';_0x2adeaa=_0x160d00+_0x53bf36+_0x3fc842;}const _0x226c36=this['_formatDatePickerLabel']();this[_0x583f2f(0x817)]=_0x226c36;const _0x45f431=Date[_0x583f2f(0x69d)](),_0x3e000a=this[_0x583f2f(0x8cd)]===_0x583f2f(0x361)?!!this[_0x583f2f(0x48e)]&&this['_dpCustomEnd'][_0x583f2f(0x1028)]()>=_0x45f431:this[_0x583f2f(0x478)]===0x0,_0x1f495a=_0x32eb30['date_picker_position']||_0x583f2f(0xf55);_0x238d99[_0x583f2f(0x944)][_0x583f2f(0xd12)]=_0x1f495a===_0x583f2f(0x8f5)?'99':'';const _0x23de4b=!!this[_0x583f2f(0xc6d)],_0xbb1220=_0x23de4b?'<div\x20class=\x22sgc-dp-panel\x22>'+this[_0x583f2f(0x16f)]()+this[_0x583f2f(0x185)]()+_0x583f2f(0x743):'',_0x1f4a83=(_0x324048,_0x49afd5)=>[_0x583f2f(0xaaf),_0x583f2f(0x942),_0x583f2f(0x1fd)][_0x583f2f(0xf06)](_0x324048)?_0x324048:_0x49afd5,_0x5b0e9e=_0x1f4a83(_0x32eb30[_0x583f2f(0x8c8)],_0x583f2f(0xaaf)),_0x1e02a0=_0x1f4a83(_0x32eb30['date_picker_shortcuts_position'],'right'),_0x4cb27b=_0x583f2f(0x4e8)+escapeHtml(cardT(this[_0x583f2f(0x1dc)],this[_0x583f2f(0xfe9)],_0x583f2f(0x7af)))+_0x583f2f(0xb9c)+(_0x3e000a?'':_0x583f2f(0xc5e))+_0x583f2f(0x65c)+(_0x3e000a?'':escapeHtml(cardT(this[_0x583f2f(0x1dc)],this[_0x583f2f(0xfe9)],_0x583f2f(0x1fb))))+'\x22>'+escapeHtml(_0x226c36)+_0x583f2f(0x21a)+(_0x3e000a?_0x583f2f(0x4cb):'')+'\x22\x20'+(_0x3e000a?_0x583f2f(0x4cb):'')+_0x583f2f(0xa5e)+escapeHtml(cardT(this[_0x583f2f(0x1dc)],this[_0x583f2f(0xfe9)],_0x583f2f(0x4be)))+_0x583f2f(0x27b),_0xb3135b=_0x32eb30[_0x583f2f(0x815)]===_0x583f2f(0x8fe),_0x292366=_0x32eb30[_0x583f2f(0x378)]===!![]||_0xb3135b&&_0x32eb30[_0x583f2f(0x378)]!==![],_0x2de342=escapeHtml(cardT(this[_0x583f2f(0x1dc)],this[_0x583f2f(0xfe9)],_0x583f2f(0x9fc))),_0x6374b1=_0x292366?_0x583f2f(0xda1)+_0x2de342+_0x583f2f(0x65c)+_0x2de342+_0x583f2f(0x61e):'',_0x1a0c6f=_0x583f2f(0x1b4)+(_0xf37d23?_0x583f2f(0x2aa)+_0x2adeaa+_0x583f2f(0x743):'')+_0x583f2f(0x6ea)+(_0x23de4b?_0x583f2f(0x5b3):'')+'\x22\x20aria-label=\x22'+escapeHtml(cardT(this['_hass'],this['_config'],'Open\x20calendar'))+_0x583f2f(0x65c)+escapeHtml(cardT(this[_0x583f2f(0x1dc)],this[_0x583f2f(0xfe9)],_0x583f2f(0xed8)))+_0x583f2f(0x16e)+_0x6374b1+'</div>',_0xdaba58={'left':[],'center':[],'right':[]};_0xdaba58[_0x5b0e9e][_0x583f2f(0xb31)](_0x4cb27b),_0xdaba58[_0x1e02a0]['push'](_0x1a0c6f);const _0x5bb25e=_0xdaba58[_0x583f2f(0x942)]['length']>0x0&&_0xdaba58['left'][_0x583f2f(0xc02)]+_0xdaba58['right'][_0x583f2f(0xc02)]>0x0;_0x238d99[_0x583f2f(0x17c)]=_0x583f2f(0x915)+escapeHtml(_0x1f495a)+_0x583f2f(0xd69)+_0xdaba58[_0x583f2f(0xaaf)][_0x583f2f(0x888)]('')+_0x583f2f(0xbaa)+(_0x5bb25e?'\x20sgc-dp-center-abs':'')+'\x22>'+_0xdaba58[_0x583f2f(0x942)]['join']('')+_0x583f2f(0xb82)+_0xdaba58[_0x583f2f(0x1fd)][_0x583f2f(0x888)]('')+_0x583f2f(0x8f9)+_0xbb1220+_0x583f2f(0xaa7);if(_0x5bb25e){const _0x434bf1=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0x335)),_0x1f415d=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0x63e));if(_0x434bf1&&_0x1f415d){_0x434bf1['style']['minHeight']='';const _0x2df0f9=_0x434bf1[_0x583f2f(0x9cc)](),_0x5eeca1=_0x7a6c8a=>_0x434bf1[_0x583f2f(0xee6)](_0x7a6c8a+_0x583f2f(0x3d3))||_0x434bf1['querySelector'](_0x7a6c8a+_0x583f2f(0x84d)),_0x3b35d1=_0x5eeca1(_0x583f2f(0x1c6)),_0x23b556=_0x5eeca1(_0x583f2f(0x1c4)),_0x570a72=_0x3b35d1?_0x3b35d1['getBoundingClientRect']()[_0x583f2f(0x1fd)]:_0x2df0f9[_0x583f2f(0xaaf)],_0x4749ce=_0x23b556?_0x23b556[_0x583f2f(0x9cc)]()[_0x583f2f(0xaaf)]:_0x2df0f9[_0x583f2f(0x1fd)],_0x12e5e8=_0x4749ce-_0x570a72-0x10;if(_0x2df0f9[_0x583f2f(0x581)]>0x0&&_0x1f415d[_0x583f2f(0x9cc)]()[_0x583f2f(0x581)]>_0x12e5e8)_0x434bf1[_0x583f2f(0x9a1)]['add'](_0x583f2f(0x2e0)),_0x1f415d[_0x583f2f(0x9a1)][_0x583f2f(0x547)](_0x583f2f(0x91e)),_0x1f415d[_0x583f2f(0x944)][_0x583f2f(0x427)]='';else{const _0x91d2dd=_0x1f415d[_0x583f2f(0xf3c)];if(_0x91d2dd>_0x434bf1[_0x583f2f(0xf3c)])_0x434bf1[_0x583f2f(0x944)][_0x583f2f(0x518)]=_0x91d2dd+'px';}}}_0x5bb25e&&typeof requestAnimationFrame==='function'&&requestAnimationFrame(()=>{const _0xdc99fc=_0x583f2f;try{const _0x26848c=_0x238d99[_0xdc99fc(0xee6)](_0xdc99fc(0x335)),_0x3896c7=_0x238d99['querySelector']('.sgc-dp-center-abs');if(!_0x26848c||!_0x3896c7)return;const _0x12b592=_0x3896c7['getBoundingClientRect']();if(!_0x12b592||!_0x12b592['width'])return;const _0x271640=(_0x51e834,_0x40ac67)=>{const _0x4df451=_0xdc99fc,_0x45f7e2=_0x26848c['querySelector'](_0x51e834+_0x4df451(0x3d3))||_0x26848c[_0x4df451(0xee6)](_0x51e834+_0x4df451(0x84d));if(!_0x45f7e2)return null;const _0x44077d=_0x45f7e2[_0x4df451(0x9cc)]();if(!_0x44077d||!_0x44077d[_0x4df451(0x581)])return null;return _0x40ac67===_0x4df451(0x1fd)?_0x44077d[_0x4df451(0x1fd)]:_0x44077d['left'];};let _0x49aee0=dpCenterShift(_0x12b592['left'],_0x12b592[_0xdc99fc(0x1fd)],_0x271640('.dp-zone-left',_0xdc99fc(0x1fd)),_0x271640(_0xdc99fc(0x1c4),_0xdc99fc(0xaaf)),0x8);const _0x2ad8c2=_0x26848c[_0xdc99fc(0x9cc)]();_0x2ad8c2[_0xdc99fc(0x581)]>0x0&&(_0x49aee0=Math[_0xdc99fc(0xba1)](_0x49aee0,_0x2ad8c2[_0xdc99fc(0x1fd)]-0x4-_0x12b592[_0xdc99fc(0x1fd)]),_0x49aee0=Math['max'](_0x49aee0,_0x2ad8c2[_0xdc99fc(0xaaf)]+0x4-_0x12b592['left'])),_0x3896c7[_0xdc99fc(0x944)][_0xdc99fc(0x427)]=_0x49aee0?'translate(calc(-50%\x20+\x20'+_0x49aee0+_0xdc99fc(0x850):'translate(-50%,\x20-50%)';}catch(_0x3597f1){}});_0x238d99[_0x583f2f(0xf98)](_0x583f2f(0x1002))[_0x583f2f(0xd27)](_0x329be3=>{const _0x191d1b=_0x583f2f;_0x329be3[_0x191d1b(0x171)]('click',()=>this[_0x191d1b(0x6fa)](_0x329be3[_0x191d1b(0x8f6)][_0x191d1b(0x293)]));});const _0x581ddc=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0x94f)),_0x15fe36=_0x238d99['querySelector']('.sgc-dp-next'),_0x5aeb54=_0x238d99['querySelector'](_0x583f2f(0xad2)),_0x192cc0=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0xda6));if(_0x581ddc)_0x581ddc[_0x583f2f(0x171)]('click',()=>this[_0x583f2f(0x31a)](-0x1));if(_0x15fe36)_0x15fe36[_0x583f2f(0x171)](_0x583f2f(0xe5e),()=>this['_onDatePickerNav'](+0x1));if(_0x5aeb54)_0x5aeb54[_0x583f2f(0x171)](_0x583f2f(0xe5e),()=>this[_0x583f2f(0x99e)]());if(_0x192cc0)_0x192cc0['addEventListener']('click',()=>this['_onDatePickerToggle']());const _0x58b2dc=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0x3c8));if(_0x58b2dc)_0x58b2dc[_0x583f2f(0x171)](_0x583f2f(0xe5e),()=>this[_0x583f2f(0x3dd)]());const _0x47f269=_0x238d99[_0x583f2f(0xee6)](_0x583f2f(0xdfe));_0x47f269&&_0x47f269['addEventListener'](_0x583f2f(0xe5e),_0x22975d=>this[_0x583f2f(0x1e4)](_0x22975d));const _0x53f47f=this[_0x583f2f(0xbb2)]?.['querySelector']('ha-card');if(_0x53f47f?.[_0x583f2f(0x9a1)])_0x53f47f[_0x583f2f(0x9a1)][_0x583f2f(0xa90)]('sgc-dp-open',!!_0x47f269);}[_0x46af5e(0x566)](){const _0x6fa25d=_0x46af5e;this[_0x6fa25d(0xc6d)]=!this['_dpExpanded'];if(this[_0x6fa25d(0xc6d)]){const _0x5cd799=this[_0x6fa25d(0x80e)](),_0x384c0a=_0x5cd799?.['start']||new Date();this['_dpCalMonth']=_0x384c0a[_0x6fa25d(0x4a0)](),this[_0x6fa25d(0xd4f)]=_0x384c0a[_0x6fa25d(0x5e9)](),this['_dpRangeStart']=null;}this[_0x6fa25d(0x3ec)]();}[_0x46af5e(0x16f)](){const _0xfd2a2a=_0x46af5e,_0x2cd52a=resolveCardLanguage(this['_hass'],this[_0xfd2a2a(0xfe9)]),_0x5199b9=new Date(),_0xe31edd=this[_0xfd2a2a(0xb6e)]??_0x5199b9['getMonth'](),_0x522281=this[_0xfd2a2a(0xd4f)]??_0x5199b9[_0xfd2a2a(0x5e9)](),_0x4f5205=new Date(_0x522281,_0xe31edd,0x1),_0x6a8b1d=new Date(_0x522281,_0xe31edd+0x1,0x0),_0xea75ff=_0x6a8b1d['getDate'](),_0x4127ac=resolveFirstWeekday(this[_0xfd2a2a(0x1dc)]),_0xf35192=weekStartOffsetDays(_0x4f5205['getDay']()||0x7,_0x4127ac);let _0x269f0c;try{const _0x221590=getCachedDateTimeFormatter(_0x2cd52a,{'weekday':_0xfd2a2a(0x312)}),_0x561c1c=Array['from']({'length':0x7},(_0x35fd0a,_0x2f0c81)=>(_0x4127ac-0x1+_0x2f0c81)%0x7+0x1);_0x269f0c=_0x561c1c[_0xfd2a2a(0xb3f)](_0x21bb3c=>_0x221590['format'](new Date(0x7e8,0x0,_0x21bb3c)));}catch{const _0x159849=['M','T','W','T','F','S','S'];_0x269f0c=_0x159849[_0xfd2a2a(0x165)](_0x4127ac-0x1)[_0xfd2a2a(0x9da)](_0x159849[_0xfd2a2a(0x165)](0x0,_0x4127ac-0x1));}let _0x4486d5;try{const _0x563c60=getCachedDateTimeFormatter(_0x2cd52a,{'month':_0xfd2a2a(0x5cb),'year':_0xfd2a2a(0x897)})['format'](_0x4f5205);_0x4486d5=_0x563c60[_0xfd2a2a(0xdf0)](0x0)[_0xfd2a2a(0x801)]()+_0x563c60['slice'](0x1);}catch{_0x4486d5=_0xe31edd+0x1+'/'+_0x522281;}const _0x430fa=this['_computeDatePickerWindow']()||{},_0x271758=_0x430fa[_0xfd2a2a(0x4b0)]?new Date(_0x430fa[_0xfd2a2a(0x4b0)]['getFullYear'](),_0x430fa['start'][_0xfd2a2a(0x4a0)](),_0x430fa[_0xfd2a2a(0x4b0)][_0xfd2a2a(0x1024)]())[_0xfd2a2a(0x1028)]():0x0,_0x514474=_0x430fa[_0xfd2a2a(0x244)]?new Date(_0x430fa[_0xfd2a2a(0x244)][_0xfd2a2a(0x5e9)](),_0x430fa[_0xfd2a2a(0x244)][_0xfd2a2a(0x4a0)](),_0x430fa['end'][_0xfd2a2a(0x1024)]())[_0xfd2a2a(0x1028)]():0x0,_0x3a449e=!!this[_0xfd2a2a(0x899)],_0x1bc0c2=_0x3a449e?new Date(this[_0xfd2a2a(0x899)][_0xfd2a2a(0x5e9)](),this[_0xfd2a2a(0x899)][_0xfd2a2a(0x4a0)](),this[_0xfd2a2a(0x899)][_0xfd2a2a(0x1024)]())[_0xfd2a2a(0x1028)]():0x0,_0x5225b8=new Date(_0x5199b9[_0xfd2a2a(0x5e9)](),_0x5199b9['getMonth'](),_0x5199b9[_0xfd2a2a(0x1024)]())[_0xfd2a2a(0x1028)]();let _0x26db71=_0x269f0c[_0xfd2a2a(0xb3f)](_0x24e4d6=>_0xfd2a2a(0xe55)+escapeHtml(_0x24e4d6)+_0xfd2a2a(0x743))[_0xfd2a2a(0x888)]('');for(let _0x3d0f05=0x0;_0x3d0f05<_0xf35192;_0x3d0f05++)_0x26db71+=_0xfd2a2a(0xc67);for(let _0xe684c7=0x1;_0xe684c7<=_0xea75ff;_0xe684c7++){const _0x4245e4=new Date(_0x522281,_0xe31edd,_0xe684c7)[_0xfd2a2a(0x1028)](),_0x1247bf=[_0xfd2a2a(0x2ec)];if(_0x4245e4===_0x5225b8)_0x1247bf['push']('dp-today');if(!_0x3a449e&&_0x4245e4>=_0x271758&&_0x4245e4<_0x514474)_0x1247bf[_0xfd2a2a(0xb31)](_0xfd2a2a(0xaab));if(_0x3a449e&&_0x4245e4===_0x1bc0c2)_0x1247bf[_0xfd2a2a(0xb31)](_0xfd2a2a(0xb61));if(_0x4245e4>_0x5225b8)_0x1247bf[_0xfd2a2a(0xb31)]('dp-future');const _0x5c381e=_0x522281+'-'+String(_0xe31edd+0x1)[_0xfd2a2a(0x470)](0x2,'0')+'-'+String(_0xe684c7)['padStart'](0x2,'0');_0x26db71+=_0xfd2a2a(0xf70)+_0x1247bf['join']('\x20')+_0xfd2a2a(0x97d)+_0x5c381e+'\x22>'+_0xe684c7+_0xfd2a2a(0x743);}const _0x208e58=_0x3a449e?'<div\x20class=\x22sgc-dp-cal-hint\x22>'+escapeHtml(cardT(this['_hass'],this['_config'],'Select\x20end\x20date'))+'</div>':'';return _0xfd2a2a(0xccd)+escapeHtml(cardT(this[_0xfd2a2a(0x1dc)],this[_0xfd2a2a(0xfe9)],'Previous\x20month'))+_0xfd2a2a(0x681)+escapeHtml(_0x4486d5)+_0xfd2a2a(0x167)+escapeHtml(cardT(this[_0xfd2a2a(0x1dc)],this[_0xfd2a2a(0xfe9)],_0xfd2a2a(0x5b4)))+_0xfd2a2a(0xfbf)+_0x26db71+_0xfd2a2a(0x774)+_0x208e58+_0xfd2a2a(0xc86);}['_renderDatePickerPresets'](){const _0x471a08=_0x46af5e,_0x22e303=[{'label':_0x471a08(0x7f9),'mode':_0x471a08(0x309),'offset':0x0},{'label':_0x471a08(0x9e1),'mode':_0x471a08(0x309),'offset':-0x1},{'label':'This\x20Week','mode':_0x471a08(0x6f1),'offset':0x0},{'label':'Last\x20Week','mode':_0x471a08(0x6f1),'offset':-0x1},{'label':'This\x20Month','mode':'month','offset':0x0},{'label':'Last\x20Month','mode':_0x471a08(0xe7d),'offset':-0x1},{'label':_0x471a08(0x181),'mode':_0x471a08(0x73e),'offset':0x0},{'label':_0x471a08(0x8c7),'mode':_0x471a08(0x73e),'offset':-0x1}],_0x58e56f=[{'label':'Last\x207\x20Days','days':0x7},{'label':_0x471a08(0xc15),'days':0x1e},{'label':_0x471a08(0x92c),'months':0xc},{'label':'Last\x202\x20Years','months':0x18},{'label':'Last\x203\x20Years','months':0x24},{'label':_0x471a08(0x5b6),'months':0x3c}],_0x3af73a=_0x323f5f=>{const _0x20a66a=_0x471a08;if(this[_0x20a66a(0x8cd)]!=='custom'||!this['_dpCustomStart'])return![];const _0xe5b113=this[_0x20a66a(0x447)](_0x323f5f);return Math[_0x20a66a(0x1ae)](this[_0x20a66a(0x1ad)]['getTime']()-_0xe5b113[_0x20a66a(0x1028)]())<0x5265c00;},_0x5dad83=_0x22e303[_0x471a08(0xb3f)](_0x5914eb=>{const _0x1c2c5f=_0x471a08,_0x271dad=this[_0x1c2c5f(0x8cd)]===_0x5914eb[_0x1c2c5f(0x293)]&&this[_0x1c2c5f(0x478)]===_0x5914eb[_0x1c2c5f(0x4ff)]?_0x1c2c5f(0x5b3):'';return _0x1c2c5f(0xcf6)+_0x271dad+_0x1c2c5f(0x187)+escapeHtml(_0x5914eb[_0x1c2c5f(0x293)])+'\x22\x20data-dp-preset-offset=\x22'+_0x5914eb[_0x1c2c5f(0x4ff)]+'\x22>'+escapeHtml(cardT(this['_hass'],this[_0x1c2c5f(0xfe9)],_0x5914eb[_0x1c2c5f(0xf1f)]))+'</button>';})['join'](''),_0x11b851=_0x58e56f[_0x471a08(0xb3f)](_0x4ad32d=>{const _0x13c4e7=_0x471a08,_0x291a86=_0x3af73a(_0x4ad32d)?_0x13c4e7(0x5b3):'',_0x4dadd9=_0x4ad32d[_0x13c4e7(0xe29)]||'',_0x18320c=_0x4ad32d[_0x13c4e7(0x422)]||'';return'<button\x20class=\x22sgc-dp-preset\x20'+_0x291a86+'\x22\x20data-dp-rolling-days=\x22'+_0x4dadd9+_0x13c4e7(0x6c7)+_0x18320c+'\x22>'+escapeHtml(cardT(this['_hass'],this[_0x13c4e7(0xfe9)],_0x4ad32d['label']))+'</button>';})[_0x471a08(0x888)]('');return'<div\x20class=\x22sgc-dp-presets\x22>'+_0x5dad83+_0x11b851+'</div>';}[_0x46af5e(0x447)](_0x16ce50){const _0x176b4f=_0x46af5e,_0x23a37a=new Date(),_0xb4c4f0=resolveDisplayTimeZone(this[_0x176b4f(0x1dc)],this['_config']),_0x5e5aa3=tzParts(_0x23a37a['getTime'](),_0xb4c4f0);if(_0x16ce50[_0x176b4f(0x422)])return new Date(zonedWallToMs(_0x5e5aa3['y'],_0x5e5aa3['mo']-_0x16ce50['months'],_0x5e5aa3['d'],0x0,0x0,0x0,_0xb4c4f0));return new Date(zonedWallToMs(_0x5e5aa3['y'],_0x5e5aa3['mo'],_0x5e5aa3['d']-_0x16ce50[_0x176b4f(0xe29)],0x0,0x0,0x0,_0xb4c4f0));}[_0x46af5e(0x1e4)](_0x56254c){const _0x4ddfc9=_0x46af5e,_0xf387b=_0x56254c[_0x4ddfc9(0x6bc)],_0x1d8bb1=_0xf387b[_0x4ddfc9(0x6c0)]('[data-dp-cal]');if(_0x1d8bb1){const _0x3f9327=parseInt(_0x1d8bb1[_0x4ddfc9(0x8f6)][_0x4ddfc9(0x3d1)],0xa)||0x0;this[_0x4ddfc9(0xb6e)]=(this[_0x4ddfc9(0xb6e)]??new Date()[_0x4ddfc9(0x4a0)]())+_0x3f9327;while(this[_0x4ddfc9(0xb6e)]<0x0){this[_0x4ddfc9(0xb6e)]+=0xc,this['_dpCalYear']-=0x1;}while(this[_0x4ddfc9(0xb6e)]>0xb){this[_0x4ddfc9(0xb6e)]-=0xc,this['_dpCalYear']+=0x1;}this[_0x4ddfc9(0x3ec)]();return;}const _0x2687b1=_0xf387b[_0x4ddfc9(0x6c0)]('[data-dp-day]');if(_0x2687b1){const [_0x150e02,_0x124ee7,_0x2af497]=_0x2687b1[_0x4ddfc9(0x8f6)][_0x4ddfc9(0xfa5)][_0x4ddfc9(0xbc0)]('-'),_0x21b681=new Date(parseInt(_0x150e02,0xa),parseInt(_0x124ee7,0xa)-0x1,parseInt(_0x2af497,0xa));this['_handleCalendarDayPick'](_0x21b681);return;}const _0xdd9fec=_0xf387b[_0x4ddfc9(0x6c0)](_0x4ddfc9(0x2d6));if(_0xdd9fec){const _0x45b41c=_0xdd9fec[_0x4ddfc9(0x8f6)]['dpPresetMode'],_0x4d3f0d=parseInt(_0xdd9fec['dataset']['dpPresetOffset'],0xa)||0x0;this['_applyDatePickerPreset'](_0x45b41c,_0x4d3f0d);return;}const _0x5be48f=_0xf387b['closest'](_0x4ddfc9(0x968));if(_0x5be48f){const _0x176d2a=parseInt(_0x5be48f[_0x4ddfc9(0x8f6)][_0x4ddfc9(0xe4d)],0xa)||0x0,_0x2a4033=parseInt(_0x5be48f[_0x4ddfc9(0x8f6)][_0x4ddfc9(0x5fc)],0xa)||0x0;this['_applyDatePickerRolling']({'days':_0x176d2a,'months':_0x2a4033});return;}}[_0x46af5e(0x8e7)](_0xdc7663){const _0x459090=_0x46af5e;if(this['_dpMode']===_0x459090(0x309)){const _0x4999d3=new Date(),_0x2054e4=new Date(_0x4999d3[_0x459090(0x5e9)](),_0x4999d3[_0x459090(0x4a0)](),_0x4999d3['getDate']())[_0x459090(0x1028)](),_0x429f98=_0xdc7663[_0x459090(0x1028)](),_0x59768c=Math[_0x459090(0x686)]((_0x429f98-_0x2054e4)/0x5265c00);this['_dpOffset']=_0x59768c,this['_dpExpanded']=![],this[_0x459090(0xb17)](),this[_0x459090(0xe17)](),this[_0x459090(0xeaa)](),this[_0x459090(0x9c5)](),this[_0x459090(0x3ec)]();return;}if(!this[_0x459090(0x899)]){this[_0x459090(0x899)]=_0xdc7663,this['_scheduleRender']();return;}let _0x5b169e=this['_dpRangeStart'],_0x369283=_0xdc7663;if(_0x369283['getTime']()<_0x5b169e[_0x459090(0x1028)]()){const _0x36df84=_0x5b169e;_0x5b169e=_0x369283,_0x369283=_0x36df84;}const _0x359455=new Date(_0x369283[_0x459090(0x5e9)](),_0x369283[_0x459090(0x4a0)](),_0x369283[_0x459090(0x1024)]()+0x1),_0x424f97=new Date(_0x5b169e[_0x459090(0x5e9)](),_0x5b169e[_0x459090(0x4a0)](),_0x5b169e['getDate']());this[_0x459090(0x8cd)]=_0x459090(0x361),this[_0x459090(0x478)]=0x0,this[_0x459090(0x1ad)]=_0x424f97,this[_0x459090(0x48e)]=_0x359455,this[_0x459090(0x899)]=null,this[_0x459090(0xc6d)]=![],this[_0x459090(0xb17)](),this[_0x459090(0xe17)](),this['_broadcastDatePickerSync'](),this['_scheduleUpdate'](),this[_0x459090(0x3ec)]();}[_0x46af5e(0x3dd)](){const _0x350db8=_0x46af5e,_0x25072e=this['_config']||{},_0x52e38f=[...DATE_PICKER_VALID_MODES,...Object[_0x350db8(0x3ab)](DATE_PICKER_RELATIVE_MODES)],_0x189ac5=_0x25072e[_0x350db8(0xa04)],_0x5f5866=Array[_0x350db8(0x902)](_0x25072e[_0x350db8(0x464)])?_0x25072e[_0x350db8(0x464)]['filter'](_0x4f6d74=>_0x52e38f[_0x350db8(0xf06)](_0x4f6d74)):[];this[_0x350db8(0x8cd)]=_0x189ac5&&_0x52e38f[_0x350db8(0xf06)](_0x189ac5)?_0x189ac5:_0x5f5866[0x0]||_0x350db8(0xe7d),this['_dpOffset']=0x0,this[_0x350db8(0x1ad)]=null,this['_dpCustomEnd']=null,this[_0x350db8(0x899)]=null,this[_0x350db8(0xc6d)]=![],this[_0x350db8(0xb17)](),this[_0x350db8(0xe17)](),this[_0x350db8(0xeaa)]();if(_0x25072e[_0x350db8(0x392)]&&this[_0x350db8(0x64e)]!=null)this[_0x350db8(0x5f9)](_0x350db8(0xb5e),'',!![]);if(_0x25072e['show_group_by_picker']&&this['_overrideGroupBy'])this[_0x350db8(0x5f9)](_0x350db8(0x909),'',!![]);this[_0x350db8(0x9c5)](),this['_scheduleRender']();}[_0x46af5e(0x370)](_0x96933b,_0x42943c){const _0x434676=_0x46af5e;if(!DATE_PICKER_VALID_MODES[_0x434676(0xf06)](_0x96933b))return;this[_0x434676(0x8cd)]=_0x96933b,this['_dpOffset']=_0x42943c,this[_0x434676(0x1ad)]=null,this[_0x434676(0x48e)]=null,this['_dpRangeStart']=null,this['_dpExpanded']=![],this['_resetDrill'](),this[_0x434676(0xe17)](),this[_0x434676(0xeaa)](),this[_0x434676(0x9c5)](),this[_0x434676(0x3ec)]();}[_0x46af5e(0x9bb)]({days:_0x9a91ac,months:_0xdbcd83}){const _0x24126e=_0x46af5e,_0x1ef5de=this['_computeRollingStart']({'days':_0x9a91ac,'months':_0xdbcd83}),_0x1e44c8=new Date(),_0x49f833=new Date(_0x1e44c8[_0x24126e(0x5e9)](),_0x1e44c8[_0x24126e(0x4a0)](),_0x1e44c8[_0x24126e(0x1024)](),_0x1e44c8['getHours'](),_0x1e44c8['getMinutes']()+0x1,0x0);this[_0x24126e(0x8cd)]='custom',this[_0x24126e(0x478)]=0x0,this['_dpCustomStart']=_0x1ef5de,this['_dpCustomEnd']=_0x49f833,this[_0x24126e(0x899)]=null,this['_dpExpanded']=![],this[_0x24126e(0xb17)](),this['_persistDatePicker'](),this[_0x24126e(0xeaa)](),this[_0x24126e(0x9c5)](),this['_scheduleRender']();}['_renderZoomControls'](){const _0x3d577c=_0x46af5e,_0x668a31=this[_0x3d577c(0xbb2)]?.[_0x3d577c(0xee6)](_0x3d577c(0xb0a));if(!_0x668a31)return;let _0x78f2d7=_0x668a31['querySelector']('.sgc-zoom-ctl');const _0x40d80d=this[_0x3d577c(0xfe9)]||{},_0x5b2503=_0x40d80d['chart_mode']||_0x3d577c(0x325),_0x823fe2=!!_0x40d80d[_0x3d577c(0x4a1)]&&_0x5b2503===_0x3d577c(0x325);if(_0x40d80d[_0x3d577c(0xdd0)]!==!![]||_0x5b2503!=='timeline'||_0x823fe2||(this[_0x3d577c(0x342)]||0x0)<0xc8){_0x78f2d7?.[_0x3d577c(0x547)]();return;}if(!_0x78f2d7){_0x78f2d7=document[_0x3d577c(0xbde)]('div'),_0x78f2d7[_0x3d577c(0x400)]=_0x3d577c(0xb76),_0x78f2d7[_0x3d577c(0x171)](_0x3d577c(0xc95),_0x5495a8=>_0x5495a8['stopPropagation']()),_0x78f2d7[_0x3d577c(0x171)](_0x3d577c(0xe5e),_0x3d763e=>_0x3d763e[_0x3d577c(0x7ba)]()),_0x78f2d7[_0x3d577c(0x171)](_0x3d577c(0x1035),_0x508403=>_0x508403['stopPropagation']()),_0x78f2d7[_0x3d577c(0x171)](_0x3d577c(0xf92),_0x513c28=>_0x513c28[_0x3d577c(0x7ba)]()),_0x78f2d7[_0x3d577c(0x171)]('touchstart',_0x3e8736=>_0x3e8736[_0x3d577c(0x7ba)](),{'passive':!![]});const _0x446627=(_0x24b120,_0x4d35f8,_0x3446a3)=>{const _0x53f2a5=_0x3d577c,_0x5f1115=document[_0x53f2a5(0xbde)](_0x53f2a5(0xa3d));return _0x5f1115['type']=_0x53f2a5(0xa3d),_0x5f1115[_0x53f2a5(0x400)]=_0x24b120,_0x5f1115[_0x53f2a5(0x17c)]=_0x53f2a5(0xcc4)+_0x4d35f8+_0x53f2a5(0xecb),_0x5f1115['addEventListener'](_0x53f2a5(0xe5e),_0x45e9b0=>{const _0x35c048=_0x53f2a5;_0x45e9b0['preventDefault'](),_0x45e9b0[_0x35c048(0x7ba)](),_0x3446a3();}),_0x78f2d7['appendChild'](_0x5f1115),_0x5f1115;};this[_0x3d577c(0xce3)]=_0x446627('sgc-zoom-reset',_0x3d577c(0x333),()=>this[_0x3d577c(0x646)]()),this[_0x3d577c(0x81b)]=_0x446627('sgc-zoom-out',_0x3d577c(0xf5e),()=>this['_zoomByFactor'](0x2)),this[_0x3d577c(0xb8f)]=_0x446627(_0x3d577c(0xfc7),_0x3d577c(0x33e),()=>this[_0x3d577c(0xf28)](0.5)),_0x668a31['appendChild'](_0x78f2d7);}const _0x5063ec=!!this['_viewWindow'],_0xff5a28=!!this[_0x3d577c(0xa89)]||Array['isArray'](this[_0x3d577c(0x337)])&&this[_0x3d577c(0x337)][_0x3d577c(0xc02)]>0x0,_0x2cd5fb=this[_0x3d577c(0xf89)]||this[_0x3d577c(0xbe0)],_0x26eca3=_0x2cd5fb?.[_0x3d577c(0x4b0)]instanceof Date&&_0x2cd5fb?.[_0x3d577c(0x244)]instanceof Date?_0x2cd5fb[_0x3d577c(0x244)]['getTime']()-_0x2cd5fb[_0x3d577c(0x4b0)][_0x3d577c(0x1028)]():0x0,_0xcbb575=(_0x2b9d67,_0x515fcf)=>{const _0x543851=_0x3d577c;if(!_0x2b9d67)return;const _0x51d17f=cardT(this[_0x543851(0x1dc)],_0x40d80d,_0x515fcf);_0x2b9d67['title']=_0x51d17f,_0x2b9d67[_0x543851(0x751)](_0x543851(0x25d),_0x51d17f);};if(this[_0x3d577c(0xb8f)])this[_0x3d577c(0xb8f)]['disabled']=!(_0x26eca3>0xea60);if(this[_0x3d577c(0x81b)])this[_0x3d577c(0x81b)][_0x3d577c(0x4cb)]=!_0x5063ec;if(this[_0x3d577c(0xce3)])this[_0x3d577c(0xce3)][_0x3d577c(0x169)]=!(_0x5063ec||_0xff5a28);_0xcbb575(this[_0x3d577c(0xb8f)],'Zoom\x20In'),_0xcbb575(this[_0x3d577c(0x81b)],_0x3d577c(0xede)),_0xcbb575(this[_0x3d577c(0xce3)],_0x3d577c(0xd14)),_0x668a31[_0x3d577c(0x9a1)]['toggle'](_0x3d577c(0x8c5),_0x40d80d[_0x3d577c(0xbca)]===!![]);}[_0x46af5e(0x922)](){const _0x381935=_0x46af5e,_0x4af526=this[_0x381935(0xbb2)]?.[_0x381935(0xee6)](_0x381935(0x177));if(!_0x4af526)return;let _0x1f7150=_0x4af526[_0x381935(0xee6)](_0x381935(0x26b)),_0x2bdff0=_0x4af526[_0x381935(0xee6)](_0x381935(0x25e));const _0x2be0ec=!!this[_0x381935(0xfe9)][_0x381935(0x4a1)]&&(this[_0x381935(0xfe9)][_0x381935(0x815)]||_0x381935(0x325))===_0x381935(0x325);if(this[_0x381935(0xfe9)][_0x381935(0xbca)]!==!![]||_0x2be0ec){_0x1f7150?.[_0x381935(0x547)](),_0x2bdff0?.[_0x381935(0x547)]();return;}if(_0x1f7150)return;_0x1f7150=document['createElement'](_0x381935(0xa3d)),_0x1f7150[_0x381935(0x400)]=_0x381935(0x6b0),_0x1f7150[_0x381935(0xefa)]=_0x381935(0xa3d),_0x1f7150[_0x381935(0xc4c)]=cardT(this[_0x381935(0x1dc)],this[_0x381935(0xfe9)],_0x381935(0xe56)),_0x1f7150[_0x381935(0x17c)]=_0x381935(0x479),_0x4af526['appendChild'](_0x1f7150),_0x2bdff0=document['createElement'](_0x381935(0x76f)),_0x2bdff0[_0x381935(0x400)]='sgc-export-menu',_0x2bdff0['style'][_0x381935(0x4c4)]=_0x381935(0x412);const _0x1d26db=document['createElement'](_0x381935(0xa3d));_0x1d26db[_0x381935(0xefa)]=_0x381935(0xa3d),_0x1d26db[_0x381935(0x3d2)]=cardT(this[_0x381935(0x1dc)],this['_config'],_0x381935(0xf39));const _0x1d5237=document[_0x381935(0xbde)](_0x381935(0xa3d));_0x1d5237['type']=_0x381935(0xa3d),_0x1d5237[_0x381935(0x3d2)]=cardT(this[_0x381935(0x1dc)],this['_config'],_0x381935(0x30a));const _0x4decc0=document['createElement'](_0x381935(0xa3d));_0x4decc0[_0x381935(0xefa)]=_0x381935(0xa3d),_0x4decc0[_0x381935(0x3d2)]=cardT(this[_0x381935(0x1dc)],this[_0x381935(0xfe9)],_0x381935(0x8a9)),_0x2bdff0[_0x381935(0x319)](_0x1d26db),_0x2bdff0['appendChild'](_0x1d5237),_0x2bdff0['appendChild'](_0x4decc0),_0x4af526[_0x381935(0x319)](_0x2bdff0),_0x1d5237['addEventListener']('click',_0xf8158=>{const _0x293f74=_0x381935;_0xf8158[_0x293f74(0x7ba)](),_0x2bdff0['style']['display']=_0x293f74(0x412),this['_exportPngCard']();}),_0x1f7150[_0x381935(0x171)](_0x381935(0xe5e),_0x5c3fc4=>{const _0x4f46b4=_0x381935;_0x5c3fc4[_0x4f46b4(0x7ba)]();const _0x98c178=_0x2bdff0[_0x4f46b4(0x944)][_0x4f46b4(0x4c4)]===_0x4f46b4(0x412);_0x2bdff0['style']['display']=_0x98c178?'':_0x4f46b4(0x412),_0x98c178&&setTimeout(()=>{const _0x2a5e0c=_0x4f46b4;document[_0x2a5e0c(0x171)](_0x2a5e0c(0xe5e),()=>{const _0x2b776b=_0x2a5e0c;_0x2bdff0[_0x2b776b(0x944)]['display']='none';},{'once':!![]});},0x0);}),_0x1d26db[_0x381935(0x171)](_0x381935(0xe5e),_0x39b63b=>{const _0x4c5b2f=_0x381935;_0x39b63b[_0x4c5b2f(0x7ba)](),_0x2bdff0[_0x4c5b2f(0x944)][_0x4c5b2f(0x4c4)]=_0x4c5b2f(0x412),this[_0x4c5b2f(0xab2)]();}),_0x4decc0[_0x381935(0x171)](_0x381935(0xe5e),_0x6944bc=>{const _0x46abf2=_0x381935;_0x6944bc['stopPropagation'](),_0x2bdff0[_0x46abf2(0x944)]['display']='none',this[_0x46abf2(0x496)]();});}['_exportName'](_0x156643){const _0x570c33=_0x46af5e,_0x59cfd1=String(this[_0x570c33(0xfe9)][_0x570c33(0x26a)]||_0x570c33(0xad5))[_0x570c33(0xa11)]()[_0x570c33(0x5ef)](/[^\w\-]+/g,'_')[_0x570c33(0x165)](0x0,0x28)||'statistics-graph',_0x17c28d=new Date(),_0xa337bd=_0x404a0f=>String(_0x404a0f)[_0x570c33(0x470)](0x2,'0');return _0x59cfd1+'-'+_0x17c28d['getFullYear']()+_0xa337bd(_0x17c28d[_0x570c33(0x4a0)]()+0x1)+_0xa337bd(_0x17c28d[_0x570c33(0x1024)]())+'-'+_0xa337bd(_0x17c28d[_0x570c33(0x346)]())+_0xa337bd(_0x17c28d[_0x570c33(0xe88)]())+'.'+_0x156643;}[_0x46af5e(0x8ce)](_0x48f68a,_0x4cf5b1){const _0x1bb73a=_0x46af5e,_0x6c84dc=URL[_0x1bb73a(0x7ee)](_0x48f68a),_0x211670=document[_0x1bb73a(0xbde)]('a');_0x211670[_0x1bb73a(0x596)]=_0x6c84dc,_0x211670[_0x1bb73a(0xc59)]=_0x4cf5b1,this[_0x1bb73a(0xbb2)][_0x1bb73a(0x319)](_0x211670),_0x211670['click'](),_0x211670[_0x1bb73a(0x547)](),setTimeout(()=>URL['revokeObjectURL'](_0x6c84dc),0x1388);}[_0x46af5e(0x2b6)](){const _0x1a35cf=_0x46af5e,_0x5c80d6=(this[_0x1a35cf(0x2d4)]?.[_0x1a35cf(0xfa8)]||[])['filter'](_0x55eeec=>!this['_hiddenEntities'][_0x1a35cf(0x101d)](_0x55eeec['id'])&&_0x55eeec[_0x1a35cf(0x974)]?.['show_graph']!==![]&&!isStripEntity(_0x55eeec[_0x1a35cf(0x974)])&&resolveEntityEnabled(_0x55eeec[_0x1a35cf(0x974)],this['_hass']));if(!_0x5c80d6['length'])return null;const _0x45d9da=_0x5c80d6[_0x1a35cf(0xb3f)](_0x14b549=>pickName(_0x14b549['entity'][_0x1a35cf(0xdee)],_0x14b549['meta']?.['resolved_name'],_0x14b549[_0x1a35cf(0x731)])??_0x14b549['id']),_0x577e5f=this[_0x1a35cf(0xf89)],_0x3369ef=_0x577e5f?_0x577e5f[_0x1a35cf(0x4b0)][_0x1a35cf(0x1028)]():-Infinity,_0x576741=_0x577e5f?_0x577e5f[_0x1a35cf(0x244)][_0x1a35cf(0x1028)]():Infinity,_0x4c9a9a=_0x5c80d6[_0x1a35cf(0xb3f)](_0x18b9ab=>{const _0x246ac9=_0x1a35cf,_0x3c9444=new Map();for(const _0x1b4a8c of _0x18b9ab[_0x246ac9(0x93a)]||[]){if(_0x1b4a8c&&isNum(_0x1b4a8c['v'])&&_0x1b4a8c['t']>=_0x3369ef&&_0x1b4a8c['t']<=_0x576741)_0x3c9444[_0x246ac9(0xa2d)](_0x1b4a8c['t'],_0x1b4a8c['v']);}return _0x3c9444;}),_0x51b620=new Set();for(const _0xd8710d of _0x4c9a9a)for(const _0x1690c3 of _0xd8710d['keys']())_0x51b620[_0x1a35cf(0x982)](_0x1690c3);const _0x562505=[..._0x51b620]['sort']((_0x4b3d92,_0x5032b8)=>_0x4b3d92-_0x5032b8),_0x1a657b=_0x255877=>'\x22'+String(_0x255877)['replace'](/"/g,'\x22\x22')+'\x22',_0x18f853=[[_0x1a35cf(0xfe2),..._0x45d9da][_0x1a35cf(0xb3f)](_0x1a657b)['join'](',')];for(const _0x1afe6d of _0x562505){const _0xe3d6ec=[_0x1a657b(new Date(_0x1afe6d)[_0x1a35cf(0x4d9)]())];for(const _0x2816eb of _0x4c9a9a)_0xe3d6ec[_0x1a35cf(0xb31)](_0x2816eb['has'](_0x1afe6d)?String(_0x2816eb[_0x1a35cf(0xc3f)](_0x1afe6d)):'');_0x18f853[_0x1a35cf(0xb31)](_0xe3d6ec[_0x1a35cf(0x888)](','));}return _0x18f853[_0x1a35cf(0x888)]('\x0d\x0a');}[_0x46af5e(0x496)](){const _0x11c3ce=_0x46af5e,_0x220cc2=this['_buildCsvText']();if(!_0x220cc2)return;this[_0x11c3ce(0x8ce)](new Blob(['\ufeff'+_0x220cc2],{'type':_0x11c3ce(0x5e5)}),this['_exportName'](_0x11c3ce(0x39a)));}async[_0x46af5e(0xeea)](){const _0x366263=_0x46af5e,_0x1b0ef6=this[_0x366263(0xbb2)]?.[_0x366263(0xee6)]('ha-card.sgc-card');if(!_0x1b0ef6)return;try{const _0x43d1fe=_0x1b0ef6[_0x366263(0x9cc)](),_0x14971c=Math[_0x366263(0x220)](0x1,Math[_0x366263(0x686)](_0x43d1fe[_0x366263(0x581)])),_0x24c3d2=Math[_0x366263(0x220)](0x1,Math[_0x366263(0x686)](_0x43d1fe[_0x366263(0x43d)])),_0x44abfb=Math[_0x366263(0x220)](0x2,Math[_0x366263(0x686)](window[_0x366263(0xd75)]||0x1)),_0xef4eb5=_0x1b0ef6[_0x366263(0x88d)](!![]),_0x2a0c50=_0x1b0ef6[_0x366263(0xf98)]('*'),_0x35c9bf=_0xef4eb5[_0x366263(0xf98)]('*'),_0x35b3f3=(_0x372788,_0x46db18)=>{const _0x1f255a=_0x366263,_0x52a9aa=getComputedStyle(_0x372788);let _0xd9a64='';for(let _0x504a88=0x0;_0x504a88<_0x52a9aa[_0x1f255a(0xc02)];_0x504a88++){const _0x12103c=_0x52a9aa[_0x504a88];_0xd9a64+=_0x12103c+':'+_0x52a9aa[_0x1f255a(0x767)](_0x12103c)+';';}_0x46db18[_0x1f255a(0x944)]['cssText']=_0xd9a64;};_0x35b3f3(_0x1b0ef6,_0xef4eb5);for(let _0x47c540=0x0;_0x47c540<_0x2a0c50[_0x366263(0xc02)];_0x47c540++){const _0x338ba4=_0x35c9bf[_0x47c540][_0x366263(0x9eb)];if(_0x338ba4==='STYLE'||_0x338ba4==='SCRIPT')continue;_0x35b3f3(_0x2a0c50[_0x47c540],_0x35c9bf[_0x47c540]);}for(const _0x7b5d30 of _0xef4eb5[_0x366263(0xf98)](_0x366263(0x288))){_0x7b5d30['setAttribute']('x',_0x7b5d30[_0x366263(0xffb)]('data-full-x')),_0x7b5d30['setAttribute'](_0x366263(0x581),_0x7b5d30[_0x366263(0xffb)](_0x366263(0x39b))),_0x7b5d30[_0x366263(0x944)][_0x366263(0xfae)]('x'),_0x7b5d30[_0x366263(0x944)][_0x366263(0xfae)](_0x366263(0x581));}for(const _0x58da5a of _0xef4eb5['querySelectorAll']('.sgc-y-axis-sticky')){_0x58da5a[_0x366263(0xfcf)](_0x366263(0x427)),_0x58da5a[_0x366263(0x944)]['removeProperty'](_0x366263(0x427)),_0x58da5a[_0x366263(0x944)][_0x366263(0xfae)](_0x366263(0xd33));}const _0x2c17dd=_0x1b0ef6[_0x366263(0xf98)]('canvas'),_0x59ca41=_0xef4eb5['querySelectorAll'](_0x366263(0x9f4));for(let _0x3a493a=0x0;_0x3a493a<_0x2c17dd[_0x366263(0xc02)];_0x3a493a++){const _0x1ba714=document[_0x366263(0xbde)]('img');_0x1ba714[_0x366263(0x322)]=_0x2c17dd[_0x3a493a][_0x366263(0x162)](_0x366263(0x174)),_0x1ba714[_0x366263(0x944)]['cssText']=_0x59ca41[_0x3a493a][_0x366263(0x944)]['cssText'],_0x59ca41[_0x3a493a][_0x366263(0x807)](_0x1ba714);}_0xef4eb5['querySelectorAll'](_0x366263(0x2bf))[_0x366263(0xd27)](_0x5107d4=>_0x5107d4[_0x366263(0x547)]());const _0x2dde91=document[_0x366263(0xbde)](_0x366263(0x76f));_0x2dde91[_0x366263(0x751)](_0x366263(0xb0e),'http://www.w3.org/1999/xhtml'),_0x2dde91[_0x366263(0x319)](_0xef4eb5);const _0x4030a8=new XMLSerializer()[_0x366263(0xae2)](_0x2dde91),_0x1366ca='<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20width=\x22'+_0x14971c+_0x366263(0xe08)+_0x24c3d2+'\x22>'+(_0x366263(0xc24)+_0x4030a8+_0x366263(0x25c)),_0x5a132b=_0x366263(0xc53)+encodeURIComponent(_0x1366ca),_0x1639ea=new Image();await new Promise((_0x428fc7,_0x2aa4b8)=>{const _0x53f0a2=_0x366263;_0x1639ea['onload']=_0x428fc7,_0x1639ea['onerror']=_0x2aa4b8,_0x1639ea[_0x53f0a2(0x322)]=_0x5a132b;});const _0x36cffd=document[_0x366263(0xbde)](_0x366263(0x9f4));_0x36cffd[_0x366263(0x581)]=_0x14971c*_0x44abfb,_0x36cffd[_0x366263(0x43d)]=_0x24c3d2*_0x44abfb;const _0x4d1fe0=_0x36cffd[_0x366263(0x805)]('2d');_0x4d1fe0['scale'](_0x44abfb,_0x44abfb),_0x4d1fe0[_0x366263(0xeef)](_0x1639ea,0x0,0x0,_0x14971c,_0x24c3d2);const _0x5d1929=await new Promise(_0x59b226=>_0x36cffd[_0x366263(0x6bd)](_0x59b226,_0x366263(0x174)));if(!_0x5d1929)throw new Error(_0x366263(0x54f));this[_0x366263(0x8ce)](_0x5d1929,this[_0x366263(0x745)](_0x366263(0x24a)));}catch(_0x31f3ab){console[_0x366263(0x9a7)](_0x366263(0xb9d),_0x31f3ab),this['_exportPng']();}}async[_0x46af5e(0xab2)](){const _0x1ab1e7=_0x46af5e,_0x470f4a=this[_0x1ab1e7(0xbb2)]?.[_0x1ab1e7(0xee6)]('.sgc-plot');if(!_0x470f4a)return;const _0x5dfa8a=(getComputedStyle(this)[_0x1ab1e7(0x767)](_0x1ab1e7(0xa1b))||'')[_0x1ab1e7(0xa11)]()||'#ffffff',_0x1c75df=Math[_0x1ab1e7(0x220)](0x2,Math[_0x1ab1e7(0x686)](window[_0x1ab1e7(0xd75)]||0x1)),_0x7d60a4=_0x470f4a[_0x1ab1e7(0xee6)](_0x1ab1e7(0x9f4));if(_0x7d60a4){const _0x859379=document[_0x1ab1e7(0xbde)]('canvas');_0x859379[_0x1ab1e7(0x581)]=_0x7d60a4[_0x1ab1e7(0x581)],_0x859379[_0x1ab1e7(0x43d)]=_0x7d60a4[_0x1ab1e7(0x43d)];const _0x4c1fe5=_0x859379[_0x1ab1e7(0x805)]('2d');_0x4c1fe5[_0x1ab1e7(0x20c)]=_0x5dfa8a,_0x4c1fe5[_0x1ab1e7(0xf85)](0x0,0x0,_0x859379[_0x1ab1e7(0x581)],_0x859379[_0x1ab1e7(0x43d)]),_0x4c1fe5[_0x1ab1e7(0xeef)](_0x7d60a4,0x0,0x0),_0x859379[_0x1ab1e7(0x6bd)](_0x53dbf3=>{const _0x3f86a4=_0x1ab1e7;if(_0x53dbf3)this[_0x3f86a4(0x8ce)](_0x53dbf3,this[_0x3f86a4(0x745)](_0x3f86a4(0x24a)));},_0x1ab1e7(0x174));return;}const _0x1d9542=_0x470f4a[_0x1ab1e7(0xee6)](_0x1ab1e7(0x5d7));if(!_0x1d9542)return;const _0x30abe3=_0x1d9542['getBoundingClientRect'](),_0x27de85=Math['max'](0x1,Math[_0x1ab1e7(0x686)](_0x30abe3['width']||_0x1d9542[_0x1ab1e7(0x810)]||0x258)),_0x44c564=Math[_0x1ab1e7(0x220)](0x1,Math[_0x1ab1e7(0x686)](_0x30abe3['height']||_0x1d9542[_0x1ab1e7(0x94e)]||0xc8)),_0x1507cb=_0x1d9542['cloneNode'](!![]);for(const _0x5a5ba8 of _0x1507cb[_0x1ab1e7(0xf98)](_0x1ab1e7(0x288))){_0x5a5ba8[_0x1ab1e7(0x751)]('x',_0x5a5ba8[_0x1ab1e7(0xffb)](_0x1ab1e7(0x1032))),_0x5a5ba8['setAttribute'](_0x1ab1e7(0x581),_0x5a5ba8[_0x1ab1e7(0xffb)](_0x1ab1e7(0x39b)));}for(const _0x396db6 of _0x1507cb[_0x1ab1e7(0xf98)]('.sgc-y-axis-sticky')){_0x396db6['removeAttribute']('transform');}_0x1507cb['setAttribute']('width',String(_0x27de85)),_0x1507cb[_0x1ab1e7(0x751)](_0x1ab1e7(0x43d),String(_0x44c564)),_0x1507cb[_0x1ab1e7(0x944)]['fontFamily']=getComputedStyle(this)[_0x1ab1e7(0x9ed)]||_0x1ab1e7(0x2f6);const _0x2a5cd6=(getComputedStyle(this)[_0x1ab1e7(0x767)]('--secondary-text-color')||'')[_0x1ab1e7(0xa11)]()||_0x1ab1e7(0xa55),_0x3fdb1b=document['createElementNS']('http://www.w3.org/2000/svg','style');_0x3fdb1b['textContent']=_0x1ab1e7(0xe3d)+_0x2a5cd6+'}'+'.sgc-bar{opacity:0.85}',_0x1507cb['insertBefore'](_0x3fdb1b,_0x1507cb[_0x1ab1e7(0x87c)]);const _0x43eb33=getComputedStyle(this),_0x10acd1=_0x2c36a5=>{const _0x2f79f1=_0x1ab1e7;let _0x313f93=String(_0x2c36a5),_0x3c0951;while((_0x3c0951=_0x313f93[_0x2f79f1(0x2f0)](_0x2f79f1(0x26c)))!==-0x1){let _0x4cbf39=0x0,_0x182229=_0x3c0951+0x3;for(;_0x182229<_0x313f93[_0x2f79f1(0xc02)];_0x182229++){const _0x3eae74=_0x313f93[_0x182229];if(_0x3eae74==='(')_0x4cbf39++;else{if(_0x3eae74===')'){_0x4cbf39--;if(_0x4cbf39===0x0)break;}}}if(_0x182229>=_0x313f93['length'])break;const _0x1bb64a=_0x313f93[_0x2f79f1(0x165)](_0x3c0951+0x4,_0x182229),_0x4ece97=_0x1bb64a[_0x2f79f1(0x2f0)](','),_0x36a548=(_0x4ece97===-0x1?_0x1bb64a:_0x1bb64a[_0x2f79f1(0x165)](0x0,_0x4ece97))['trim'](),_0xef0811=_0x4ece97===-0x1?'':_0x1bb64a[_0x2f79f1(0x165)](_0x4ece97+0x1)[_0x2f79f1(0xa11)]();_0x313f93=_0x313f93[_0x2f79f1(0x165)](0x0,_0x3c0951)+(_0x43eb33[_0x2f79f1(0x767)](_0x36a548)[_0x2f79f1(0xa11)]()||_0xef0811||_0x2f79f1(0x1036))+_0x313f93[_0x2f79f1(0x165)](_0x182229+0x1);}return _0x313f93;};for(const _0x5caf45 of _0x1507cb[_0x1ab1e7(0xf98)]('*')){for(const _0x412f5d of[_0x1ab1e7(0x944),'fill',_0x1ab1e7(0x3c1),'stop-color']){const _0x1991de=_0x5caf45[_0x1ab1e7(0xffb)](_0x412f5d);if(_0x1991de&&_0x1991de[_0x1ab1e7(0xf06)](_0x1ab1e7(0x26c)))_0x5caf45['setAttribute'](_0x412f5d,_0x10acd1(_0x1991de));}}const _0x1e2150=new XMLSerializer()[_0x1ab1e7(0xae2)](_0x1507cb),_0x263921=URL[_0x1ab1e7(0x7ee)](new Blob([_0x1e2150],{'type':_0x1ab1e7(0xbcd)}));try{const _0x4d0de6=new Image();await new Promise((_0xdd1e89,_0x3987a7)=>{const _0x1129b8=_0x1ab1e7;_0x4d0de6[_0x1129b8(0xb89)]=_0xdd1e89,_0x4d0de6['onerror']=_0x3987a7,_0x4d0de6[_0x1129b8(0x322)]=_0x263921;});const _0x34ff02=document[_0x1ab1e7(0xbde)](_0x1ab1e7(0x9f4));_0x34ff02[_0x1ab1e7(0x581)]=_0x27de85*_0x1c75df,_0x34ff02['height']=_0x44c564*_0x1c75df;const _0xe741a2=_0x34ff02[_0x1ab1e7(0x805)]('2d');_0xe741a2[_0x1ab1e7(0x20c)]=_0x5dfa8a,_0xe741a2[_0x1ab1e7(0xf85)](0x0,0x0,_0x34ff02['width'],_0x34ff02[_0x1ab1e7(0x43d)]),_0xe741a2[_0x1ab1e7(0xa42)](_0x1c75df,_0x1c75df),_0xe741a2[_0x1ab1e7(0xeef)](_0x4d0de6,0x0,0x0,_0x27de85,_0x44c564),_0x34ff02[_0x1ab1e7(0x6bd)](_0x3986bd=>{const _0x1e17e2=_0x1ab1e7;if(_0x3986bd)this[_0x1e17e2(0x8ce)](_0x3986bd,this[_0x1e17e2(0x745)](_0x1e17e2(0x24a)));},_0x1ab1e7(0x174));}catch(_0x356b2e){console[_0x1ab1e7(0x9a7)](_0x1ab1e7(0x2f2),_0x356b2e);}finally{setTimeout(()=>URL['revokeObjectURL'](_0x263921),0x1388);}}[_0x46af5e(0xedd)](_0x4ab99e,_0x4eb641){const _0x188c69=_0x46af5e,_0x3f981b=isStripEntity(_0x4ab99e);if(this[_0x188c69(0xfe9)]?.[_0x188c69(0x815)]!=='state_timeline'&&!_0x3f981b)return null;const _0x1f0622=_0x4ab99e[_0x188c69(0xa7e)]||_0x4eb641?.[_0x188c69(0xfac)]||autoStateMap(_0x4ab99e,this[_0x188c69(0x1dc)],this[_0x188c69(0xfe9)]?.[_0x188c69(0x815)]);if(!Array[_0x188c69(0x902)](_0x1f0622)||!_0x1f0622['length'])return null;const _0x4730b7=new Set();for(const _0x4229e5 of _0x4eb641?.[_0x188c69(0x93a)]||[]){if(isNum(_0x4229e5['v']))_0x4730b7[_0x188c69(0x982)](Math[_0x188c69(0x686)](_0x4229e5['v']));}if(!_0x4730b7[_0x188c69(0xc44)])return null;const _0x2db6d6=!!(_0x4ab99e['state_map']&&_0x4ab99e['state_map'][_0x188c69(0xc02)]),_0x1712b4=[];for(let _0x412946=0x0;_0x412946<_0x1f0622[_0x188c69(0xc02)];_0x412946++){if(!_0x4730b7[_0x188c69(0x101d)](_0x412946))continue;const _0x22bbda=_0x3f981b?_0x1f0622[_0x412946]?.[_0x188c69(0xd95)]||(_0x2db6d6&&_0x4ab99e['color']?_0x4ab99e['color']:STATE_TIMELINE_COLORS[_0x412946%STATE_TIMELINE_COLORS['length']])||_0x4ab99e[_0x188c69(0xd95)]||'#888':stateSegmentColor(_0x1f0622[_0x412946],_0x4ab99e,_0x412946),_0x4b142b=this[_0x188c69(0x349)](_0x22bbda,_0x4ab99e[_0x188c69(0x974)])||_0x22bbda;if(_0x4b142b&&!_0x1712b4[_0x188c69(0xf06)](_0x4b142b))_0x1712b4[_0x188c69(0xb31)](_0x4b142b);}return _0x1712b4[_0x188c69(0xc02)]?_0x1712b4:null;}[_0x46af5e(0x439)](){const _0x29b356=_0x46af5e,_0x421571=this['shadowRoot'][_0x29b356(0xee6)](_0x29b356(0xc6a));if(!_0x421571){this['_renderDetailLegend']();return;}const _0x3a9ab6=this['_config'];if(!_0x3a9ab6[_0x29b356(0x76d)]||!this['_graphData'])_0x421571[_0x29b356(0x17c)]='';else{const _0x314dac=this[_0x29b356(0x2d4)]['series']['filter'](_0x35da68=>!(_0x35da68[_0x29b356(0x974)]?.[_0x29b356(0xed4)]!=null&&_0x35da68[_0x29b356(0x974)][_0x29b356(0xbf6)]?.[_0x29b356(0xce4)]===![])&&resolveEntityEnabled(_0x35da68['entity'],this[_0x29b356(0x1dc)]))['map'](_0x372b45=>{const _0x46efca=_0x29b356,_0x42d2e4=_0x372b45[_0x46efca(0x974)],_0x564c43=pickName(_0x42d2e4[_0x46efca(0xdee)],_0x372b45[_0x46efca(0x731)]?.['resolved_name'],_0x372b45[_0x46efca(0x731)])??_0x372b45['id'],_0x23b072=this[_0x46efca(0x928)][_0x46efca(0x101d)](_0x372b45['id']),_0x2dbf63=bandedGradient(this[_0x46efca(0xedd)](_0x42d2e4,_0x372b45))||this[_0x46efca(0x349)](_0x42d2e4[_0x46efca(0xd95)],_0x42d2e4['entity'])||_0x42d2e4[_0x46efca(0xd95)]||_0x46efca(0xae9),_0x1afac7=_0x42d2e4[_0x46efca(0x452)]!==![]?'background:'+escapeHtml(_0x2dbf63):'background:'+escapeHtml(_0x2dbf63)+_0x46efca(0x2c2);return _0x46efca(0xfda)+(_0x23b072?_0x46efca(0x169):'')+_0x46efca(0x4aa)+escapeHtml(_0x372b45['id'])+_0x46efca(0x278)+_0x1afac7+_0x46efca(0xe0a)+escapeHtml(_0x564c43)+_0x46efca(0xcef)+escapeHtml(_0x372b45['id'])+'\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>';})[_0x29b356(0x888)]('');_0x421571['innerHTML']=_0x29b356(0xdad)+escapeHtml(_0x3a9ab6[_0x29b356(0xb44)]||'center')+'\x22>'+_0x314dac+_0x29b356(0x743),_0x421571['querySelectorAll'](_0x29b356(0xc8f))['forEach'](_0x1d7c59=>{const _0x4b46af=_0x29b356;_0x1d7c59[_0x4b46af(0x171)](_0x4b46af(0xe5e),()=>{const _0x381d17=_0x4b46af;this[_0x381d17(0x720)](_0x1d7c59['dataset']['id']),this['_render']();});});}this['_renderDetailLegend'](),this[_0x29b356(0x673)]();}[_0x46af5e(0x673)](){const _0x22311f=_0x46af5e,_0x5a01f6=this[_0x22311f(0xbb2)]?.[_0x22311f(0xf98)]?.(_0x22311f(0xa06));if(!_0x5a01f6||!_0x5a01f6['length'])return;const _0x4ef07d=this[_0x22311f(0xfe9)]?.[_0x22311f(0xf7b)]===!![]&&this['_pins']?.['length']>0x0&&this[_0x22311f(0xb2d)]instanceof Map;for(const _0x30461a of _0x5a01f6){const _0x5765cf=_0x4ef07d?this[_0x22311f(0xb2d)]['get'](_0x30461a[_0x22311f(0xffb)](_0x22311f(0x32a))):null;_0x30461a[_0x22311f(0x3d2)]=_0x5765cf?_0x5765cf[_0x22311f(0x8a1)]:'';if(_0x5765cf&&_0x5765cf[_0x22311f(0x1d1)])_0x30461a[_0x22311f(0x751)](_0x22311f(0xde7),_0x5765cf['trend']);else _0x30461a[_0x22311f(0xfcf)](_0x22311f(0xde7));}}['_refreshLiveLegend'](_0x435141){const _0x2eb5bd=_0x46af5e,_0x11e055=[];for(const _0x1bda9f of this['_entities']||[]){if(!_0x1bda9f?.[_0x2eb5bd(0xce4)]||!_0x1bda9f['entity']||_0x1bda9f[_0x2eb5bd(0xed4)]!=null)continue;if(!legendStatsOf(_0x1bda9f)[_0x2eb5bd(0xf06)]('live'))continue;if(_0x1bda9f[_0x2eb5bd(0xd53)])continue;if(resolveOffsetHours(_0x1bda9f[_0x2eb5bd(0x4ff)],this[_0x2eb5bd(0x1dc)]))continue;_0x11e055[_0x2eb5bd(0xb31)](_0x1bda9f[_0x2eb5bd(0x974)]);if(_0x1bda9f[_0x2eb5bd(0x455)])_0x11e055[_0x2eb5bd(0xb31)](_0x1bda9f[_0x2eb5bd(0x455)]);}if(!_0x11e055[_0x2eb5bd(0xc02)])return;if(!this[_0x2eb5bd(0xbb2)]?.[_0x2eb5bd(0xee6)]?.(_0x2eb5bd(0x5a2)))return;if(_0x435141){const _0x18bf4c=_0x435141[_0x2eb5bd(0x4f9)]||{},_0xf6994a=this['_hass']?.['states']||{};let _0x2ccbc0=![];for(const _0x42f072 of _0x11e055){if(_0x18bf4c[_0x42f072]!==_0xf6994a[_0x42f072]){_0x2ccbc0=!![];break;}}if(!_0x2ccbc0)return;}if(this[_0x2eb5bd(0x222)])return;this[_0x2eb5bd(0x222)]=requestAnimationFrame(()=>{const _0x5d1363=_0x2eb5bd;this[_0x5d1363(0x222)]=0x0;if(this[_0x5d1363(0x191)])this[_0x5d1363(0x57c)]();});}[_0x46af5e(0x57c)](){const _0x3d8d88=_0x46af5e,_0x594d35=this[_0x3d8d88(0xbb2)][_0x3d8d88(0xee6)](_0x3d8d88(0x5a2));if(!_0x594d35)return;if(this[_0x3d8d88(0xfe9)]?.['sparkline']&&(this[_0x3d8d88(0xfe9)]['chart_mode']||'timeline')===_0x3d8d88(0x325)){_0x594d35['innerHTML']='';return;}const _0x43e030=this[_0x3d8d88(0xfef)]||[],_0x1c6ce5=this[_0x3d8d88(0x2d4)]?.[_0x3d8d88(0xfa8)]||[],_0x3ac89c=_0x43e030[_0x3d8d88(0x42a)](_0x4b9bd4=>_0x4b9bd4?.[_0x3d8d88(0xce4)]&&resolveEntityEnabled(_0x4b9bd4,this['_hass']));if(!_0x3ac89c){_0x594d35[_0x3d8d88(0x17c)]='';return;}const _0x3b0943=this[_0x3d8d88(0x1dc)];let _0x264f97=_0x43e030['map']((_0x1e61bb,_0x9618b5)=>_0x9618b5);if((this[_0x3d8d88(0xfe9)]?.[_0x3d8d88(0x815)]||_0x3d8d88(0x325))===_0x3d8d88(0xb4b)){const _0x1ff966=new Map(),_0x2b8593=[];for(const _0x23a5b0 of _0x264f97){const _0x3a9255=_0x43e030[_0x23a5b0]?.[_0x3d8d88(0xed4)];if(_0x3a9255==null){_0x2b8593['push'](_0x23a5b0);continue;}if(!_0x1ff966[_0x3d8d88(0x101d)](_0x3a9255))_0x1ff966[_0x3d8d88(0xa2d)](_0x3a9255,[]);_0x1ff966['get'](_0x3a9255)[_0x3d8d88(0xb31)](_0x23a5b0);}_0x264f97=[];for(const _0x55a55f of _0x2b8593){_0x264f97['push'](_0x55a55f);const _0x2d31c8=_0x1ff966[_0x3d8d88(0xc3f)](_0x55a55f);_0x2d31c8&&(_0x264f97[_0x3d8d88(0xb31)](..._0x2d31c8),_0x1ff966[_0x3d8d88(0xcc1)](_0x55a55f));}for(const _0x16dce9 of _0x1ff966[_0x3d8d88(0x202)]())_0x264f97[_0x3d8d88(0xb31)](..._0x16dce9);}const _0xa360d6=_0x264f97[_0x3d8d88(0xb3f)](_0x928ceb=>{const _0x202cd5=_0x3d8d88,_0x2c142f=_0x43e030[_0x928ceb];if(!_0x2c142f?.[_0x202cd5(0xce4)]||!resolveEntityEnabled(_0x2c142f,this['_hass']))return'';const _0x3c7bf6=(_0x2c142f[_0x202cd5(0x974)]||_0x2c142f[_0x202cd5(0xd53)])+'__'+_0x928ceb,_0x42e346=_0x1c6ce5[_0x202cd5(0x90c)](_0x59caf5=>_0x59caf5['id']===_0x3c7bf6||_0x59caf5[_0x202cd5(0x974)]===_0x2c142f),_0x276968=_0x42e346?.['stats']||{},_0x3cfb2a=isStripEntity(_0x2c142f)?[]:legendStatsOf(_0x2c142f),_0x262244=_0xa53a96=>{if(!isNum(_0xa53a96))return'—';const _0x16b8fc=_0x2c142f['invert']?cloneEntity(_0x2c142f,{'invert':![]}):_0x2c142f;return formatNumber(_0xa53a96,_0x16b8fc,_0x3b0943);},_0x6a0775=(_0x3bb9c6,_0x1086ee)=>_0x202cd5(0x8e3)+escapeHtml(_0x3bb9c6)+_0x202cd5(0x644)+escapeHtml(_0x1086ee)+_0x202cd5(0x644);let _0x190149='';if(_0x3cfb2a[_0x202cd5(0xf06)](_0x202cd5(0xba1)))_0x190149+=_0x6a0775(cardT(this[_0x202cd5(0x1dc)],this[_0x202cd5(0xfe9)],'Min'),_0x262244(_0x276968['min']));if(_0x3cfb2a[_0x202cd5(0xf06)](_0x202cd5(0xfbc)))_0x190149+=_0x6a0775(cardT(this[_0x202cd5(0x1dc)],this[_0x202cd5(0xfe9)],_0x202cd5(0x7e2)),_0x262244(_0x276968[_0x202cd5(0xfbc)]));if(_0x3cfb2a[_0x202cd5(0xf06)](_0x202cd5(0x220)))_0x190149+=_0x6a0775(cardT(this['_hass'],this[_0x202cd5(0xfe9)],_0x202cd5(0x701)),_0x262244(_0x276968[_0x202cd5(0x220)]));if(_0x3cfb2a[_0x202cd5(0xf06)](_0x202cd5(0xa5d))){const _0x28c6dd=_0x42e346?.[_0x202cd5(0x93a)]?.[_0x202cd5(0xc02)]?_0x42e346[_0x202cd5(0x93a)][_0x42e346[_0x202cd5(0x93a)][_0x202cd5(0xc02)]-0x1]['v']:null,_0x433171=_0x3b0943?.[_0x202cd5(0x4f9)]?.[_0x2c142f[_0x202cd5(0x974)]]?.[_0x202cd5(0x5f5)],_0x62d931=isNum(_0x28c6dd)?_0x28c6dd:_0x433171!=null?toNum(_0x433171):null;_0x190149+=_0x6a0775(cardT(this[_0x202cd5(0x1dc)],this['_config'],_0x202cd5(0x4fa)),_0x262244(_0x62d931));}if(_0x3cfb2a[_0x202cd5(0xf06)](_0x202cd5(0x7e6)))_0x190149+=_0x6a0775(cardT(this[_0x202cd5(0x1dc)],this[_0x202cd5(0xfe9)],_0x202cd5(0xf7c)),_0x262244(_0x276968['sum']));this[_0x202cd5(0xe94)]?.['get'](_0x928ceb)===_0x202cd5(0x7e6)&&!(_0x42e346?.[_0x202cd5(0x93a)]||[])['some'](_0x59d3c8=>isNum(_0x59d3c8?.['v']))&&(_0x190149+='<span\x20class=\x22sgc-detail-stat-note\x22>'+escapeHtml(cardT(this[_0x202cd5(0x1dc)],this[_0x202cd5(0xfe9)],_0x202cd5(0x695)))+_0x202cd5(0x644));if(_0x3cfb2a['includes'](_0x202cd5(0xbae))&&_0x2c142f['_compareOf']==null){const _0x93e4b1=cloneEntity(_0x2c142f,{'primary_state_as':null,'show_state_last':![]}),_0x5a3777=this[_0x202cd5(0xe33)](_0x93e4b1,_0x928ceb);_0x190149+=_0x6a0775(cardT(this['_hass'],this[_0x202cd5(0xfe9)],_0x202cd5(0x91b)),_0x5a3777?.[_0x202cd5(0xf1f)]||'—');}_0x190149+=_0x202cd5(0x8c2)+escapeHtml(_0x3c7bf6)+_0x202cd5(0x9d2);const _0x579b5a=this[_0x202cd5(0x349)](_0x2c142f[_0x202cd5(0xd95)],_0x2c142f['entity'])||_0x2c142f[_0x202cd5(0xd95)]||PALETTE[_0x928ceb%PALETTE[_0x202cd5(0xc02)]]||'#888',_0x37bc02=pickName(_0x2c142f[_0x202cd5(0xdee)],_0x42e346?.[_0x202cd5(0x731)]?.[_0x202cd5(0x40b)],{'friendly_name':_0x42e346?.[_0x202cd5(0x731)]?.[_0x202cd5(0x457)]??_0x3b0943?.['states']?.[_0x2c142f[_0x202cd5(0x974)]]?.['attributes']?.[_0x202cd5(0x457)]})??_0x2c142f[_0x202cd5(0x974)]??_0x2c142f[_0x202cd5(0xd53)]??'',_0x19637f=this['_hiddenEntities'][_0x202cd5(0x101d)](_0x3c7bf6)?_0x202cd5(0x276):'',_0x1c7ce0=this['_stateTimelineLegendColors'](_0x2c142f,_0x42e346),_0x476675=_0x1c7ce0&&_0x1c7ce0[_0x202cd5(0xc02)]>0x1?bandedGradient(_0x1c7ce0):null,_0x37e56d=_0x2c142f[_0x202cd5(0x452)]===![]?_0x202cd5(0x2cc):_0x476675?_0x202cd5(0x958)+escapeHtml(_0x476675)+_0x202cd5(0xf6e):'border-color:'+escapeHtml(_0x1c7ce0?.[0x0]||_0x579b5a);return _0x202cd5(0x194)+_0x19637f+'\x22\x20data-id=\x22'+escapeHtml(_0x3c7bf6)+'\x22\x20style=\x22'+_0x37e56d+_0x202cd5(0xe2e)+escapeHtml(_0x37bc02)+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sgc-detail-legend-stats\x22>'+_0x190149+_0x202cd5(0x68b);})[_0x3d8d88(0x919)](Boolean)[_0x3d8d88(0x888)]('');_0x594d35[_0x3d8d88(0x17c)]=_0xa360d6?_0x3d8d88(0xff7)+_0xa360d6+_0x3d8d88(0x743):'',_0x594d35[_0x3d8d88(0xf98)](_0x3d8d88(0x3c0))[_0x3d8d88(0xd27)](_0x4ab64a=>{const _0x5d6a35=_0x3d8d88;_0x4ab64a[_0x5d6a35(0x171)](_0x5d6a35(0xe5e),()=>{const _0x27d045=_0x5d6a35;this[_0x27d045(0x720)](_0x4ab64a['dataset']['id']),this['_render']();});}),this[_0x3d8d88(0x673)]();}[_0x46af5e(0x1011)](){const _0x2ed683=_0x46af5e;if(this[_0x2ed683(0xfe9)]?.['sparkline']&&(this[_0x2ed683(0xfe9)][_0x2ed683(0x815)]||_0x2ed683(0x325))===_0x2ed683(0x325)){this['_renderSparkline']();return;}this[_0x2ed683(0xbd8)]('top'),this[_0x2ed683(0xbd8)](_0x2ed683(0x8f5));}[_0x46af5e(0xbd8)](_0x2359cc){const _0x74fd4e=_0x46af5e,_0x2681b5=this[_0x74fd4e(0xbb2)][_0x74fd4e(0xee6)](_0x74fd4e(0x1023)+_0x2359cc+'\x22]');if(!_0x2681b5)return;const _0x57bd7c=this[_0x74fd4e(0xfe9)];if(!_0x57bd7c||_0x57bd7c['sparkline']){_0x2681b5[_0x74fd4e(0x17c)]='';return;}const _0x547184=this[_0x74fd4e(0xfef)]||[],_0x347ce0=_0x547184[_0x74fd4e(0x919)](_0xdb1c6c=>_0xdb1c6c['show_state']!==![]&&resolveEntityEnabled(_0xdb1c6c,this[_0x74fd4e(0x1dc)])),_0xd418b3=[],_0x3067cd=[],_0x5c27c4=[];for(const _0x5026e4 of _0x347ce0){const _0x2e2c7e=_0x5026e4[_0x74fd4e(0x28f)]||'left',_0x12444e=_0x2e2c7e[_0x74fd4e(0xed0)](_0x74fd4e(0x8f5));if(_0x2359cc===_0x74fd4e(0xf55)&&_0x12444e)continue;if(_0x2359cc==='bottom'&&!_0x12444e)continue;const _0x4316bd=_0x12444e?_0x2e2c7e['replace']('bottom-',''):_0x2e2c7e;if(_0x4316bd===_0x74fd4e(0x1fd))_0x5c27c4[_0x74fd4e(0xb31)](_0x5026e4);else{if(_0x4316bd===_0x74fd4e(0x942))_0x3067cd['push'](_0x5026e4);else _0xd418b3[_0x74fd4e(0xb31)](_0x5026e4);}}const _0x393253=!!(_0x57bd7c[_0x74fd4e(0x26a)]||_0x57bd7c[_0x74fd4e(0x90f)]||_0x57bd7c[_0x74fd4e(0x59a)]),_0x2d394a=!_0x393253&&!!_0x57bd7c['battery_entity']&&_0x2359cc===_0x74fd4e(0xf55),_0xc85e24=_0x2d394a?this[_0x74fd4e(0x69b)]():'';if(!_0xd418b3[_0x74fd4e(0xc02)]&&!_0x3067cd[_0x74fd4e(0xc02)]&&!_0x5c27c4[_0x74fd4e(0xc02)]&&!_0xc85e24){_0x2681b5[_0x74fd4e(0x17c)]='';return;}const _0x255fb0=_0x57bd7c[_0x74fd4e(0xe23)]===_0x74fd4e(0xc96)?_0x74fd4e(0xc96):_0x74fd4e(0x744),_0xe6804e=this[_0x74fd4e(0x1dc)],_0x2a6add=_0x49c9f5=>{const _0x5aa445=_0x74fd4e,_0x4bbc63=_0x547184[_0x5aa445(0x2f0)](_0x49c9f5);return this['_buildStateRowHtml'](_0x49c9f5,_0x4bbc63,_0xe6804e);},_0x25f783=_0xd418b3[_0x74fd4e(0xb3f)](_0x2a6add)[_0x74fd4e(0x919)](Boolean)[_0x74fd4e(0x888)](''),_0x3842fb=_0x3067cd[_0x74fd4e(0xb3f)](_0x2a6add)[_0x74fd4e(0x919)](Boolean)[_0x74fd4e(0x888)]('');let _0x5091d1=_0x5c27c4[_0x74fd4e(0xb3f)](_0x2a6add)[_0x74fd4e(0x919)](Boolean)[_0x74fd4e(0x888)](''),_0x3126f2='';if(_0xc85e24){const _0x21a278=_0x57bd7c['card_header_size']||_0x74fd4e(0xd02);_0x3126f2=_0x74fd4e(0xe21)+escapeHtml(_0x21a278)+'\x22>'+_0xc85e24+_0x74fd4e(0xc3d);}_0x2681b5[_0x74fd4e(0x400)]=_0x74fd4e(0x336)+_0x255fb0;const _0x2f6b9b=_0x25f783?_0x74fd4e(0xcad)+_0x25f783+_0x74fd4e(0x743):'',_0x7c6549=_0x3842fb?_0x74fd4e(0x5d5)+_0x3842fb+_0x74fd4e(0x743):'',_0x5d7234=_0x5091d1?'<div\x20class=\x22sgc-state-align-right\x22>'+_0x5091d1+_0x74fd4e(0x743):'';_0x2681b5[_0x74fd4e(0x17c)]=_0x74fd4e(0xc17)+_0x2f6b9b+_0x7c6549+_0x5d7234+_0x3126f2+'</div>',_0x2681b5[_0x74fd4e(0xf98)](_0x74fd4e(0xc72))[_0x74fd4e(0xd27)](_0x4ac867=>{const _0x2ae8f3=_0x74fd4e;_0x4ac867['style'][_0x2ae8f3(0x2a5)]='pointer',_0x4ac867['addEventListener']('click',_0x2fc06b=>{const _0x4b2e75=_0x2ae8f3,_0x5e0b3c=parseInt(_0x4ac867[_0x4b2e75(0x8f6)][_0x4b2e75(0xd18)],0xa),_0x13f0c2=_0x547184[_0x5e0b3c];if(!_0x13f0c2)return;_0x2fc06b[_0x4b2e75(0x7ba)](),this[_0x4b2e75(0x7f2)](_0x13f0c2,()=>{const _0x3369e4=_0x4b2e75;this[_0x3369e4(0x720)]((_0x13f0c2['entity']||_0x13f0c2['statistic_id'])+'__'+_0x5e0b3c),this[_0x3369e4(0x103c)]();});});});}['_getAxisStateMap'](_0x7eb630){const _0x3b11da=_0x46af5e;if(!this[_0x3b11da(0xfef)]?.['length'])return null;if(this['_config']?.[_0x3b11da(0xe44)])return null;let _0x13cb71=null;for(let _0x3ecb74=0x0;_0x3ecb74<this['_entities'][_0x3b11da(0xc02)];_0x3ecb74++){const _0x2fd88a=this['_entities'][_0x3ecb74];if(!_0x2fd88a||_0x2fd88a[_0x3b11da(0xa43)]===![]||isStripEntity(_0x2fd88a)||!resolveEntityEnabled(_0x2fd88a,this[_0x3b11da(0x1dc)]))continue;const _0x3a448f=(_0x2fd88a[_0x3b11da(0x974)]||_0x2fd88a['statistic_id'])+'__'+_0x3ecb74;if(this['_hiddenEntities']?.['has']?.(_0x3a448f))continue;const _0x13dce6=_0x2fd88a['y_axis']==='secondary'?_0x3b11da(0xbec):_0x3b11da(0x8d4);if(_0x13dce6!==_0x7eb630)continue;const _0xd4de0a=_0x2fd88a[_0x3b11da(0xa7e)]||autoStateMap(_0x2fd88a,this[_0x3b11da(0x1dc)],this[_0x3b11da(0xfe9)]?.[_0x3b11da(0x815)]);if(!_0xd4de0a||!Array['isArray'](_0xd4de0a)||!_0xd4de0a[_0x3b11da(0xc02)])continue;if(_0x13cb71&&_0x13cb71!==_0xd4de0a)return null;_0x13cb71=_0xd4de0a;}return _0x13cb71;}[_0x46af5e(0x7f2)](_0x1fac68,_0x2ef71b){const _0x1f139d=_0x46af5e,_0x422b20=_0x1fac68?.[_0x1f139d(0x974)];if(!_0x422b20)return;const _0xf9d61b=_0x1fac68[_0x1f139d(0x210)],_0x26ff83=_0xf9d61b?.[_0x1f139d(0x7ec)];if(_0xf9d61b&&_0x26ff83&&_0x26ff83!==_0x1f139d(0x412)){if(_0x26ff83===_0x1f139d(0x947)){const _0x6104a4=new Event(_0x1f139d(0x783),{'bubbles':!![],'composed':!![]});_0x6104a4[_0x1f139d(0xa00)]=_0xf9d61b,this['dispatchEvent'](_0x6104a4);return;}const _0x147651=new Event(_0x1f139d(0xbf9),{'bubbles':!![],'composed':!![]});_0x147651['detail']={'config':{'entity':_0x422b20,'tap_action':_0xf9d61b},'action':_0x1f139d(0x8a6)},this[_0x1f139d(0x5c9)](_0x147651);return;}if(typeof _0x2ef71b===_0x1f139d(0x8c6)){_0x2ef71b();return;}const _0x4f6680=new Event(_0x1f139d(0x209),{'bubbles':!![],'composed':!![]});_0x4f6680[_0x1f139d(0xa00)]={'entityId':_0x422b20},this[_0x1f139d(0x5c9)](_0x4f6680);}[_0x46af5e(0xa1f)](_0x3e2a4b,_0x13ef19){const _0x112050=_0x46af5e;if(!_0x13ef19||!Array[_0x112050(0x902)](_0x13ef19))return null;if(typeof _0x3e2a4b!==_0x112050(0x327)||isNaN(_0x3e2a4b))return null;if(Math['abs'](_0x3e2a4b-Math[_0x112050(0x686)](_0x3e2a4b))>0.000001)return'';const _0x4f76d6=Math[_0x112050(0x686)](_0x3e2a4b);if(_0x4f76d6<0x0||_0x4f76d6>=_0x13ef19[_0x112050(0xc02)])return'';const _0x63b30=_0x13ef19[_0x4f76d6];return _0x63b30?.[_0x112050(0xf1f)]||String(_0x63b30?.[_0x112050(0x2ea)]??'');}[_0x46af5e(0xafe)](_0x1a1539,_0x2a39f6,_0x4285f3){const _0xcc716c=_0x46af5e,_0xe29096=_0x4285f3?.[_0xcc716c(0x4f9)]?.[_0x1a1539[_0xcc716c(0x974)]];if(!_0x1a1539[_0xcc716c(0x974)]&&!_0x1a1539[_0xcc716c(0xd53)])return'';const _0x2ccf65=_0x401a58=>{const _0x53c9c7=_0xcc716c;if(_0x401a58==null||_0x401a58==='')return'';const _0x5404bf=String(_0x401a58)[_0x53c9c7(0xa11)]();return/[a-z%]$/i[_0x53c9c7(0x920)](_0x5404bf)?_0x53c9c7(0xb58)+_0x5404bf:_0x53c9c7(0xb58)+_0x5404bf+'px';},_0x9166e=_0x2ccf65(_0x1a1539[_0xcc716c(0x8e4)]),_0x512a0a=_0x2ccf65(_0x1a1539[_0xcc716c(0xb08)]),_0x3e1882=_0x1a1539['icon_size']?_0xcc716c(0xfbb)+(/[a-z%]$/i[_0xcc716c(0x920)](String(_0x1a1539[_0xcc716c(0x7b8)])['trim']())?String(_0x1a1539[_0xcc716c(0x7b8)])[_0xcc716c(0xa11)]():String(_0x1a1539['icon_size'])[_0xcc716c(0xa11)]()+'px'):'';let _0x2c432a='';if(!_0x1a1539[_0xcc716c(0x3e3)]){const _0x260c30=this[_0xcc716c(0x27d)]?.[_0xcc716c(0xc3f)](_0x2a39f6)||'',_0x53beed=this['_applyAttributeName'](_0xe29096?.[_0xcc716c(0x467)]?.[_0xcc716c(0x457)],_0x1a1539,_0x2a39f6),_0x3b89eb=_0x260c30&&_0x53beed!=null?_0x53beed+_0x260c30:_0x53beed;let _0x44ea84=pickName(_0x1a1539['name'],this[_0xcc716c(0x7be)](_0x1a1539[_0xcc716c(0xdee)],_0x1a1539[_0xcc716c(0x974)]),{'friendly_name':_0x3b89eb});if(!_0x44ea84&&_0x1a1539[_0xcc716c(0xdee)])_0x44ea84=_0x1a1539[_0xcc716c(0x974)];_0x44ea84&&(_0x2c432a=_0xcc716c(0xa98)+(_0x9166e?_0xcc716c(0x601)+_0x9166e+'\x22':'')+'>'+escapeHtml(_0x44ea84)+_0xcc716c(0x644));}const _0x14822c=_0x1a1539[_0xcc716c(0x32e)]??_0xe29096?.['attributes']?.[_0xcc716c(0x398)]??(_0x1a1539[_0xcc716c(0xd53)]?this[_0xcc716c(0x558)]?.[_0x1a1539[_0xcc716c(0xd53)]]?.['unit_of_measurement']:null)??'',_0xfa163a=this[_0xcc716c(0xe33)](_0x1a1539,_0x2a39f6),_0x4aa021=_0xfa163a['numeric'],_0x3a58f7=_0xfa163a['label'],_0x11378f=this['_resolveColor'](_0x1a1539[_0xcc716c(0xd95)],_0x1a1539[_0xcc716c(0x974)])||_0x1a1539[_0xcc716c(0xd95)]||PALETTE[_0x2a39f6%PALETTE['length']]||_0xcc716c(0xae9),_0x41eb7f=!!_0x1a1539[_0xcc716c(0x283)],_0x2c263c=_0x1a1539[_0xcc716c(0xdd5)],_0x7a1117=!!(_0x2c263c?.[_0xcc716c(0x1007)]&&Array[_0xcc716c(0x902)](_0x2c263c[_0xcc716c(0x202)])&&_0x2c263c[_0xcc716c(0x202)]['length']&&isNum(_0x4aa021)),_0x3734e4=(_0x2c263c?.['transition']??'smooth')!==_0xcc716c(0xab7);let _0xf5857a=null;if(_0x41eb7f&&!_0x7a1117){const _0x3118f0=_0x1a1539[_0xcc716c(0xa7e)]||autoStateMap(_0x1a1539,this['_hass'],this[_0xcc716c(0xfe9)]?.[_0xcc716c(0x815)]);if(Array[_0xcc716c(0x902)](_0x3118f0)&&_0x3118f0[_0xcc716c(0xc02)]){let _0x3aa76e=isNum(_0x4aa021)?Math['round'](_0x4aa021):null;if(_0x3aa76e===null&&_0xe29096&&_0xe29096[_0xcc716c(0x5f5)]!=null){const _0x2d452e=applyStateMap(_0xe29096[_0xcc716c(0x5f5)],_0x3118f0);if(_0x2d452e&&_0x2d452e[_0xcc716c(0xd54)])_0x3aa76e=_0x2d452e[_0xcc716c(0x2ea)];}_0x3aa76e!==null&&_0x3aa76e>=0x0&&_0x3aa76e<_0x3118f0[_0xcc716c(0xc02)]&&(_0xf5857a=_0x3118f0[_0x3aa76e]?.['color']||null);}}const _0x320c6d=_0x41eb7f?_0x7a1117?resolveValueColor(_0x4aa021,this[_0xcc716c(0x83c)](_0x1a1539),_0x11378f,_0x3734e4):_0xf5857a||_0x11378f:null,_0x17cf81=this[_0xcc716c(0x349)](_0x1a1539[_0xcc716c(0xff6)],_0x1a1539[_0xcc716c(0x974)])||_0x1a1539['icon_color'],_0x2a2ac1=this[_0xcc716c(0x349)](_0x1a1539['state_color'],_0x1a1539[_0xcc716c(0x974)])||_0x1a1539[_0xcc716c(0xb88)],_0x33a045=_0x41eb7f?_0x17cf81===_0xcc716c(0xe42)?this['_resolveStateColor'](_0x17cf81,_0x1a1539,_0x4aa021,_0x11378f):_0x320c6d:this[_0xcc716c(0x2b3)](_0x17cf81,_0x1a1539,_0x4aa021,_0x11378f),_0x4eba07=_0x41eb7f?_0x2a2ac1===_0xcc716c(0xe42)?this['_resolveStateColor'](_0x2a2ac1,_0x1a1539,_0x4aa021,_0x11378f):_0x320c6d:this[_0xcc716c(0x2b3)](_0x2a2ac1,_0x1a1539,_0x4aa021,_0x11378f),_0x3b4ebd=_0x33a045?_0xcc716c(0x21f)+escapeHtml(_0x33a045):'',_0x4d34b5=_0x4eba07?_0xcc716c(0x21f)+escapeHtml(_0x4eba07):'',_0x15c843=_0x3b4ebd,_0x237ac2=[_0x4d34b5,_0x512a0a][_0xcc716c(0x919)](Boolean)[_0xcc716c(0x888)](';'),_0x23057a=this[_0xcc716c(0xc2f)](_0x1a1539[_0xcc716c(0x5b0)],_0x1a1539[_0xcc716c(0x974)]),_0x3b89ac=_0x23057a?_0xcc716c(0x266)+(_0x15c843?'\x20style=\x22'+_0x15c843+'\x22':'')+_0xcc716c(0xe61)+escapeHtml(_0x23057a)+'\x22'+(_0x3e1882?'\x20style=\x22'+_0x3e1882+'\x22':'')+_0xcc716c(0xa7d):'';let _0x287709;{const _0x1c42fc=this[_0xcc716c(0xa79)](_0x1a1539,_0x2a39f6,_0x4eba07,_0x512a0a),_0x247bf0=_0x14822c?'<span\x20class=\x22sgc-state-unit\x22>'+escapeHtml(_0x14822c)+_0xcc716c(0x644):'',_0x3b217e=_0xfa163a[_0xcc716c(0xd62)]?_0xcc716c(0xd13)+escapeHtml(_0xfa163a[_0xcc716c(0xd62)])+_0xcc716c(0x644):'',_0x254213=_0xfa163a[_0xcc716c(0x164)]?_0xcc716c(0xe59)+escapeHtml(_0xfa163a[_0xcc716c(0x164)][_0xcc716c(0xba1)])+_0xcc716c(0x929)+escapeHtml(_0xfa163a[_0xcc716c(0x164)][_0xcc716c(0x220)])+(_0x14822c?'\x20'+escapeHtml(_0x14822c):'')+')</span>':'';_0x287709=_0xcc716c(0xa3a)+(_0x237ac2?_0xcc716c(0x601)+_0x237ac2+'\x22':'')+'>'+escapeHtml(_0x3a58f7)+_0x247bf0+_0x3b217e+_0x254213+_0xcc716c(0x644)+_0x1c42fc;}const _0x1b7e33=_0x41eb7f?_0x320c6d||_0x11378f:_0x11378f,_0x227f2e=_0x1a1539['show_state']!==![]&&_0x1a1539[_0xcc716c(0x452)]!==![]?_0xcc716c(0x860)+escapeHtml(_0x1b7e33)+_0xcc716c(0x446):'',_0x57995a={'up':'▲','down':'▼','stable':'━'},_0x44b02f={'up':_0x1a1539[_0xcc716c(0x963)]||'var(--success-color,\x20#22c55e)','down':_0x1a1539[_0xcc716c(0xaad)]||_0xcc716c(0xefc),'stable':_0x1a1539['trend_stable_color']||_0xcc716c(0xc70)},_0x5edf6=_0x2ccf65(_0x1a1539[_0xcc716c(0x4de)]);let _0x542714=_0xcc716c(0x2fd);if(_0x1a1539['show_trend_icon']!==![]){const _0x4b3d17=_0x1a1539[_0xcc716c(0x974)]+'__'+_0x2a39f6,_0x2ad908=this[_0xcc716c(0x2d4)]?.[_0xcc716c(0xfa8)]?.[_0xcc716c(0x90c)](_0x4d6f51=>_0x4d6f51['id']===_0x4b3d17||_0x4d6f51[_0xcc716c(0x974)]===_0x1a1539);_0x542714=trendDirection(_0x2ad908,_0x1a1539);}const _0x355f86=[_0xcc716c(0x21f)+(_0x44b02f[_0x542714]||_0x44b02f[_0xcc716c(0x2fd)]),_0x5edf6]['filter'](Boolean)[_0xcc716c(0x888)](';'),_0x39596a=_0x1a1539[_0xcc716c(0xcfa)]!==![]&&this['_config']?.[_0xcc716c(0x815)]!==_0xcc716c(0xb4b)&&!isStripEntity(_0x1a1539)?_0xcc716c(0x4a3)+_0x355f86+'\x22>'+(_0x57995a[_0x542714]||_0x57995a[_0xcc716c(0x2fd)])+_0xcc716c(0x644):'',_0x1c16f7=this['_hiddenEntities']?.[_0xcc716c(0x101d)]((_0x1a1539[_0xcc716c(0x974)]||_0x1a1539[_0xcc716c(0xd53)])+'__'+_0x2a39f6)?_0xcc716c(0x529):'',_0x5ef100=_0x1a1539['name_position']===_0xcc716c(0x38d);if(_0x5ef100&&_0x2c432a)return'<div\x20class=\x22sgc-state-row\x20sgc-state-row-stacked'+_0x1c16f7+_0xcc716c(0x56f)+_0x2a39f6+'\x22>'+_0x227f2e+_0x3b89ac+'<div\x20class=\x22sgc-state-stack\x22><div\x20class=\x22sgc-state-stack-top\x22>'+_0x287709+_0x39596a+'</div><div\x20class=\x22sgc-state-stack-bot\x22>'+_0x2c432a+_0xcc716c(0xf9b);return _0xcc716c(0x297)+_0x1c16f7+_0xcc716c(0x56f)+_0x2a39f6+'\x22>'+_0x227f2e+_0x3b89ac+_0x2c432a+_0x287709+_0x39596a+_0xcc716c(0x743);}['_resolveStateRowValue'](_0x1edcf1,_0x2daedb){const _0x1c1d5d=_0x46af5e,_0x39a56d=this[_0x1c1d5d(0x1dc)],_0x395589=_0x39a56d?.[_0x1c1d5d(0x4f9)]?.[_0x1edcf1['entity']],_0x36032c=()=>{const _0x105e98=_0x1c1d5d;if(!this['_graphData']?.['series'])return null;const _0x7405ee=(_0x1edcf1[_0x105e98(0x974)]||_0x1edcf1['statistic_id'])+'__'+_0x2daedb;return this['_graphData'][_0x105e98(0xfa8)]['find'](_0x2311a3=>_0x2311a3[_0x105e98(0x974)]===_0x1edcf1||_0x2311a3['id']===_0x7405ee)||this[_0x105e98(0x2d4)][_0x105e98(0xfa8)][_0x105e98(0x90c)](_0x54eac9=>_0x54eac9['id']===(_0x1edcf1[_0x105e98(0x974)]||_0x1edcf1['statistic_id']));};let _0x58a22a=_0x1edcf1[_0x1c1d5d(0xb8a)];if(!_0x58a22a&&_0x1edcf1[_0x1c1d5d(0x8bc)])_0x58a22a=_0x1c1d5d(0xa5d);if(_0x1edcf1[_0x1c1d5d(0x455)]&&(!_0x58a22a||_0x58a22a===_0x1c1d5d(0x5f5)))_0x58a22a=_0x1c1d5d(0xa5d);if(_0x58a22a&&_0x58a22a!==_0x1c1d5d(0x5f5)){const _0x5765fe=_0x36032c();if(_0x5765fe){const _0x416700=_0x44f52b=>{const _0xab116c=_0x1c1d5d;if(!_0x1edcf1[_0xab116c(0xae5)])return null;if(_0x44f52b!==_0xab116c(0xba1)&&_0x44f52b!=='max'&&_0x44f52b!==_0xab116c(0x2d8)&&_0x44f52b!==_0xab116c(0xa5d))return null;const _0x1d83d5=_0x44f52b+'T',_0xb3fd18=_0x5765fe[_0xab116c(0xf22)]?.[_0x1d83d5];if(!isNum(_0xb3fd18))return null;const _0x453726=!!_0x5765fe[_0xab116c(0xf22)]?.[_0x1d83d5+_0xab116c(0x486)],_0x2a9d4f=_0x453726?_0xab116c(0xbcc):_0x5765fe['bucketPrecision']||_0xab116c(0xbcc);try{return formatDateTime(new Date(_0xb3fd18),this[_0xab116c(0xfe9)],_0x39a56d,{'precision':_0x2a9d4f});}catch(_0x35705e){return null;}},_0x2386e0=()=>{const _0x42c871=_0x1c1d5d;if(!_0x1edcf1['show_range_values'])return null;let _0xc5a6e8=Infinity,_0x8f4ae3=-Infinity;if(_0x5765fe[_0x42c871(0x93a)]?.[_0x42c871(0xc02)])for(const _0x5417dd of _0x5765fe['points']){if(isNum(_0x5417dd[_0x42c871(0xa84)])&&_0x5417dd['bMin']<_0xc5a6e8)_0xc5a6e8=_0x5417dd[_0x42c871(0xa84)];if(isNum(_0x5417dd[_0x42c871(0x6a0)])&&_0x5417dd[_0x42c871(0x6a0)]>_0x8f4ae3)_0x8f4ae3=_0x5417dd[_0x42c871(0x6a0)];}if(!isFinite(_0xc5a6e8)&&isNum(_0x5765fe[_0x42c871(0xf22)]?.[_0x42c871(0xba1)]))_0xc5a6e8=_0x5765fe[_0x42c871(0xf22)]['min'];if(!isFinite(_0x8f4ae3)&&isNum(_0x5765fe['stats']?.[_0x42c871(0x220)]))_0x8f4ae3=_0x5765fe[_0x42c871(0xf22)][_0x42c871(0x220)];if(!isFinite(_0xc5a6e8)||!isFinite(_0x8f4ae3))return null;return{'min':formatNumber(_0xc5a6e8,_0x1edcf1,_0x39a56d),'max':formatNumber(_0x8f4ae3,_0x1edcf1,_0x39a56d)};},_0x349880=(_0x229077,_0x313d44)=>{const _0x4177b0=_0x1c1d5d,_0x879512=formatNumber(_0x229077,_0x1edcf1,_0x39a56d),_0x1c5476=_0x416700(_0x313d44),_0x49844f=_0x2386e0(),_0x3990d9={'numeric':_0x229077,'label':_0x879512};if(_0x1c5476)_0x3990d9[_0x4177b0(0xd62)]=_0x1c5476;if(_0x49844f)_0x3990d9[_0x4177b0(0x164)]=_0x49844f;return _0x3990d9;};if(_0x58a22a===_0x1c1d5d(0xa5d)){const _0x2ed424=_0x5765fe['points']?.[_0x5765fe['points'][_0x1c1d5d(0xc02)]-0x1];if(_0x2ed424&&isNum(_0x2ed424['v']))return _0x349880(_0x2ed424['v'],_0x1c1d5d(0xa5d));}else{const _0x25d5bc=_0x58a22a===_0x1c1d5d(0xd0e)?'avg':_0x58a22a,_0x4cbc62=_0x5765fe[_0x1c1d5d(0xf22)]?.[_0x25d5bc];if(isNum(_0x4cbc62))return _0x349880(_0x4cbc62,_0x25d5bc);}}}if(_0x1edcf1[_0x1c1d5d(0x455)]&&!_0x1edcf1[_0x1c1d5d(0xbef)]&&!_0x1edcf1[_0x1c1d5d(0x102c)])return{'numeric':null,'label':''};const _0x5b87c5=resolveOffsetHours(_0x1edcf1['offset'],_0x39a56d),_0x5ab300=!!_0x1edcf1[_0x1c1d5d(0xd53)],_0x104acc=_0x5b87c5!==0x0||_0x5ab300;if(_0x104acc){const _0x363a57=_0x36032c(),_0x183c2a=_0x363a57?.[_0x1c1d5d(0x93a)];if(_0x183c2a&&_0x183c2a[_0x1c1d5d(0xc02)]){let _0x50caef=_0x183c2a[_0x183c2a[_0x1c1d5d(0xc02)]-0x1];if(_0x5b87c5!==0x0){const _0x3afcc8=Date[_0x1c1d5d(0x69d)]();let _0x642b8=Infinity,_0x2d26da=null;for(const _0x3b58bc of _0x183c2a){if(!isNum(_0x3b58bc['v']))continue;const _0x403179=Math['abs'](_0x3b58bc['t']-_0x3afcc8);_0x403179<_0x642b8&&(_0x642b8=_0x403179,_0x2d26da=_0x3b58bc);}if(_0x2d26da)_0x50caef=_0x2d26da;}if(_0x50caef&&isNum(_0x50caef['v']))return{'numeric':_0x50caef['v'],'label':formatNumber(_0x50caef['v'],_0x1edcf1,_0x39a56d)};}}const _0x244410=this[_0x1c1d5d(0x88b)](_0x1edcf1,_0x2daedb),_0x2ac2ed=_0x244410?getAttributePath(_0x395589?.[_0x1c1d5d(0x467)],_0x244410):_0x395589?.[_0x1c1d5d(0x5f5)],_0x5733fc=_0x244410?null:_0x1edcf1[_0x1c1d5d(0xa7e)]||autoStateMap(_0x1edcf1,_0x39a56d,this[_0x1c1d5d(0xfe9)]?.[_0x1c1d5d(0x815)]);if(_0x5733fc){const _0x169a69=applyStateMap(_0x2ac2ed,_0x5733fc);if(_0x169a69[_0x1c1d5d(0xd54)]){const _0x3abbfc=_0x5733fc[_0x169a69[_0x1c1d5d(0x2ea)]],_0x4d2ab9=_0x3abbfc?.['label']||String(_0x3abbfc?.[_0x1c1d5d(0x2ea)]);return{'numeric':_0x169a69[_0x1c1d5d(0x2ea)],'label':_0x4d2ab9};}}const _0x23a5cc=toNum(_0x2ac2ed);if(_0x23a5cc===null){const _0x509618=typeof _0x2ac2ed==='string'?_0x2ac2ed['trim']()[_0x1c1d5d(0x3fb)]():null,_0xe3f05f=_0x2ac2ed==null||_0x509618===''||_0x509618==='unavailable'||_0x509618==='unknown'||_0x509618===_0x1c1d5d(0x412);return{'numeric':null,'label':_0xe3f05f?'--':String(_0x2ac2ed)};}const _0x5ef273=this[_0x1c1d5d(0xe48)]||Date[_0x1c1d5d(0x69d)](),_0x4dd847=DataProcessor[_0x1c1d5d(0x4c1)]({'t':_0x5ef273,'v':_0x23a5cc},_0x1edcf1,{'now':_0x5ef273,'tz':resolveDisplayTimeZone(this['_hass'],this['_config'])}),_0xb6c636=_0x4dd847?.['v']??null;if(_0xb6c636===null)return{'numeric':null,'label':'--'};return{'numeric':_0xb6c636,'label':formatNumber(_0xb6c636,_0x1edcf1,_0x39a56d)};}[_0x46af5e(0xa79)](_0x39e17a,_0xc34075,_0x1ad4ef,_0x3c5e3c){const _0x5a8b5b=_0x46af5e,_0x2c9f58=_0x39e17a['show_second_state_as'];if(!_0x2c9f58)return'';const _0x249726=[_0x1ad4ef?_0x5a8b5b(0x21f)+_0x1ad4ef:'',_0x3c5e3c||''][_0x5a8b5b(0x919)](Boolean)[_0x5a8b5b(0x888)](';'),_0x2929e8=_0x249726?_0x5a8b5b(0x601)+escapeHtml(_0x249726)+'\x22':'',_0x3c7dd8=(_0x39e17a[_0x5a8b5b(0x974)]||_0x39e17a[_0x5a8b5b(0xd53)])+'__'+_0xc34075,_0x2ccf77=this['_graphData']?.['series']?.[_0x5a8b5b(0x90c)](_0x4a58d8=>_0x4a58d8[_0x5a8b5b(0x974)]===_0x39e17a||_0x4a58d8['id']===_0x3c7dd8||_0x4a58d8['id']===(_0x39e17a['entity']||_0x39e17a[_0x5a8b5b(0xd53)]));if(!_0x2ccf77)return'';if(_0x2c9f58===_0x5a8b5b(0x7a1)){const _0x445479=this[_0x5a8b5b(0xfe9)]?.[_0x5a8b5b(0x815)];if(![_0x5a8b5b(0xe24),_0x5a8b5b(0xfbd),'polararea'][_0x5a8b5b(0xf06)](_0x445479))return'';const _0x3b0f14=_0x445479==='ranking'?toNum(this[_0x5a8b5b(0xfe9)]?.[_0x5a8b5b(0x100d)]):null,_0x9985ff=_0x445479===_0x5a8b5b(0xfbd)?toNum(this['_config']?.['ranking_max_value']):null,_0x3b08af=_0xa2ccc5=>(!isNum(_0x3b0f14)||Math['abs'](_0xa2ccc5)>=_0x3b0f14)&&(!isNum(_0x9985ff)||Math[_0x5a8b5b(0x1ae)](_0xa2ccc5)<=_0x9985ff);let _0xf4d283=0x0;for(const _0x497db3 of this[_0x5a8b5b(0x2d4)]?.[_0x5a8b5b(0xfa8)]||[]){const _0x89e82b=_0x497db3[_0x5a8b5b(0x974)];if(!_0x89e82b)continue;const _0x32dfd6=this['_shareScalarValue'](_0x497db3,_0x89e82b);if(!_0x3b08af(_0x32dfd6))continue;_0xf4d283+=Math[_0x5a8b5b(0x1ae)](_0x32dfd6);}const _0x5a7d54=this[_0x5a8b5b(0xb85)](_0x2ccf77,_0x39e17a);if(!_0x3b08af(_0x5a7d54)||!(_0xf4d283>0x0))return'';const _0x2e909c=Math[_0x5a8b5b(0x1ae)](_0x5a7d54)/_0xf4d283*0x64,_0x4d3cfc=toNum(_0x39e17a['decimals'])??0x1;return _0x5a8b5b(0x9e0)+_0x2929e8+'>'+escapeHtml(_0x2e909c['toFixed'](_0x4d3cfc))+'%</span>';}if(!_0x2ccf77[_0x5a8b5b(0xf22)])return'';const _0x3cdec5=_0x2c9f58===_0x5a8b5b(0xd0e)?'avg':_0x2c9f58,_0x28da4c=_0x2ccf77[_0x5a8b5b(0xf22)][_0x3cdec5];if(!isNum(_0x28da4c))return'';const _0x47358c=cardT(this[_0x5a8b5b(0x1dc)],this['_config'],_0x3cdec5[_0x5a8b5b(0xdf0)](0x0)[_0x5a8b5b(0x801)]()+_0x3cdec5[_0x5a8b5b(0x165)](0x1));return _0x5a8b5b(0x9e0)+_0x2929e8+'><span\x20class=\x22sgc-state-second-label\x22>'+escapeHtml(_0x47358c)+'</span>'+escapeHtml(formatNumber(_0x28da4c,_0x39e17a,this[_0x5a8b5b(0x1dc)]))+_0x5a8b5b(0x644);}[_0x46af5e(0xb85)](_0x4b287e,_0x5906c7){const _0xbae663=_0x46af5e,_0x4bf95f=(_0x4b287e[_0xbae663(0x93a)]||[])[_0xbae663(0x919)](_0x26aadd=>_0x26aadd['v']!==null&&_0x26aadd['v']!==undefined),_0x206a48=this[_0xbae663(0xfe9)]?.[_0xbae663(0x815)]===_0xbae663(0xfbd)?_0xbae663(0xfbc):'last',_0x34eed6=_0x5906c7['aggregate_func']||_0x206a48;let _0x37d55f;if(_0x4bf95f[_0xbae663(0xc02)])_0x37d55f=reduceByAggregate(_0x4bf95f,_0x34eed6);else{const _0x5daef2=this[_0xbae663(0x1dc)]?.[_0xbae663(0x4f9)]?.[_0x5906c7[_0xbae663(0x974)]];_0x37d55f=_0x5daef2?parseFloat(_0x5daef2[_0xbae663(0x5f5)]):0x0;}if(_0x37d55f===undefined||_0x37d55f===null||isNaN(_0x37d55f))_0x37d55f=0x0;return _0x37d55f;}[_0x46af5e(0x2b3)](_0x2459b3,_0x218def,_0x3bde69,_0x495318){const _0x3c694a=_0x46af5e;if(!_0x2459b3)return null;if(_0x2459b3!=='threshold')return _0x2459b3;const _0x5b5775=_0x218def[_0x3c694a(0xdd5)];if(!_0x5b5775?.[_0x3c694a(0x1007)]||!Array[_0x3c694a(0x902)](_0x5b5775[_0x3c694a(0x202)])||!_0x5b5775['values'][_0x3c694a(0xc02)])return _0x495318||null;if(!isNum(_0x3bde69))return _0x495318||null;return resolveValueColor(_0x3bde69,_0x5b5775[_0x3c694a(0x202)],_0x495318||'#888');}}class StatisticsGraphChartCardEditor extends HTMLElement{[_0x46af5e(0x9df)](_0x1830b3){const _0x410a7d=_0x46af5e;return cardT(this['_hass'],this[_0x410a7d(0xfe9)],_0x1830b3);}[_0x46af5e(0xda5)](){const _0x219ece=_0x46af5e,_0x4a55a7=(this[_0x219ece(0xeb4)]||'')[_0x219ece(0xa11)]()[_0x219ece(0x3fb)](),_0x5644ee=this[_0x219ece(0xbb2)];if(!_0x5644ee)return;for(const _0x160496 of _0x5644ee[_0x219ece(0xf98)](_0x219ece(0x534))){_0x160496[_0x219ece(0x9a1)]['toggle'](_0x219ece(0x195),!!_0x4a55a7);if(_0x4a55a7)_0x160496[_0x219ece(0x9a1)][_0x219ece(0x982)](_0x219ece(0x764));else _0x160496[_0x219ece(0x9a1)][_0x219ece(0xa90)](_0x219ece(0x764),this[_0x219ece(0xb40)][_0x219ece(0x101d)](_0x160496[_0x219ece(0x8f6)]['panel']));for(const _0x3bd9a8 of _0x160496[_0x219ece(0xf98)](_0x219ece(0x46b))){const _0x57e510=!_0x4a55a7||(_0x3bd9a8['textContent']||'')[_0x219ece(0x3fb)]()[_0x219ece(0xf06)](_0x4a55a7)&&!_0x3bd9a8['closest']('.sgc-mode-off');_0x3bd9a8[_0x219ece(0x9a1)][_0x219ece(0xa90)](_0x219ece(0x65e),!!_0x4a55a7&&!_0x57e510);}for(const _0x15117e of _0x160496['querySelectorAll'](_0x219ece(0x6b9))){const _0x270fab=!!_0x4a55a7&&!_0x15117e[_0x219ece(0x6c0)](_0x219ece(0xb04))&&(_0x15117e[_0x219ece(0xee6)](_0x219ece(0xcb6))?.[_0x219ece(0x3d2)]||'')['toLowerCase']()['includes'](_0x4a55a7);if(_0x270fab)for(const _0x4af9b5 of _0x15117e[_0x219ece(0xf98)]('.f,\x20.si')){if(!_0x4af9b5['closest'](_0x219ece(0xb04)))_0x4af9b5[_0x219ece(0x9a1)][_0x219ece(0x547)](_0x219ece(0x65e));}const _0x4af0d6=!_0x4a55a7||_0x270fab||[..._0x15117e[_0x219ece(0xf98)](_0x219ece(0x46b))]['some'](_0x37ab05=>!_0x37ab05['classList']['contains'](_0x219ece(0x65e)));_0x15117e['classList'][_0x219ece(0xa90)](_0x219ece(0x65e),!!_0x4a55a7&&!_0x4af0d6);}for(const _0x2627b7 of _0x160496[_0x219ece(0xf98)](_0x219ece(0x4fe))){const _0x2021d8=!!_0x4a55a7&&(_0x2627b7['querySelector']('.eh')?.[_0x219ece(0x3d2)]||'')[_0x219ece(0x3fb)]()[_0x219ece(0xf06)](_0x4a55a7);if(_0x2021d8){for(const _0x323002 of _0x2627b7['querySelectorAll'](_0x219ece(0x46b))){if(!_0x323002[_0x219ece(0x6c0)]('.sgc-mode-off'))_0x323002[_0x219ece(0x9a1)][_0x219ece(0x547)](_0x219ece(0x65e));}for(const _0x206afd of _0x2627b7[_0x219ece(0xf98)](_0x219ece(0x6b9))){if(!_0x206afd[_0x219ece(0x6c0)](_0x219ece(0xb04)))_0x206afd[_0x219ece(0x9a1)]['remove']('sgc-search-miss');}}const _0x1e71dc=!_0x4a55a7||_0x2021d8||[..._0x2627b7[_0x219ece(0xf98)](_0x219ece(0x46b))]['some'](_0x5aa6db=>!_0x5aa6db['classList'][_0x219ece(0x2a0)]('sgc-search-miss'));_0x2627b7[_0x219ece(0x9a1)][_0x219ece(0xa90)]('sgc-search-miss',!!_0x4a55a7&&!_0x1e71dc);if(_0x4a55a7)_0x2627b7[_0x219ece(0x9a1)]['toggle'](_0x219ece(0x764),_0x1e71dc);else _0x2627b7['classList']['toggle'](_0x219ece(0x764),this[_0x219ece(0xb40)][_0x219ece(0x101d)]('e-'+_0x2627b7[_0x219ece(0x8f6)][_0x219ece(0x4c3)]));}for(const _0x117670 of _0x160496[_0x219ece(0xf98)](_0x219ece(0x962))){const _0x43a37a=!_0x4a55a7||[..._0x117670['querySelectorAll'](_0x219ece(0x46b))]['some'](_0x205d66=>!_0x205d66['classList']['contains'](_0x219ece(0x65e)));_0x117670[_0x219ece(0x9a1)]['toggle'](_0x219ece(0x65e),!!_0x4a55a7&&!_0x43a37a);}}}[_0x46af5e(0x291)](){const _0x213fc7=_0x46af5e,_0x8413c1=this[_0x213fc7(0xbb2)];if(!_0x8413c1)return;const _0x133717=this[_0x213fc7(0xfe9)]||{};for(const [_0x23a006,_0x261e4b,_0x1040c4]of[[_0x213fc7(0x5da),'data-mtab',_0x213fc7(0xa07)],[_0x213fc7(0x24d),_0x213fc7(0x308),'.cs-tb']]){for(const _0x6d6e7c of _0x8413c1[_0x213fc7(0xf98)]('['+_0x23a006+']')){const _0x34ef86=_0x6d6e7c[_0x213fc7(0xffb)](_0x23a006),_0x4248fc=_0x8413c1[_0x213fc7(0xee6)](_0x1040c4+'['+_0x261e4b+'=\x22'+_0x34ef86+'\x22]');if(!_0x4248fc)continue;const _0xa9037d=new Set();let _0x5aa9e5=0x0;for(const _0x4d019e of _0x6d6e7c[_0x213fc7(0xf98)](_0x213fc7(0x99b))){const _0x1425b8=_0x4d019e['id'];if(!_0x1425b8||_0xa9037d[_0x213fc7(0x101d)](_0x1425b8)||_0x1425b8[_0x213fc7(0xf06)]('-')||_0x1425b8[_0x213fc7(0xc65)]('_pick'))continue;_0xa9037d['add'](_0x1425b8);if(_0x133717[_0x1425b8]!==undefined)_0x5aa9e5++;}let _0x27e847=_0x4248fc['querySelector'](_0x213fc7(0xc77));if(_0x5aa9e5>0x0)!_0x27e847&&(_0x27e847=document['createElement'](_0x213fc7(0x7db)),_0x27e847['className']=_0x213fc7(0x39f),_0x4248fc[_0x213fc7(0x319)](_0x27e847)),_0x27e847['textContent']=String(_0x5aa9e5);else _0x27e847&&_0x27e847['remove']();}}}constructor(){const _0x466ab8=_0x46af5e;super(),this[_0x466ab8(0xb81)]({'mode':_0x466ab8(0x764)}),this[_0x466ab8(0x1dc)]=null,this[_0x466ab8(0xfe9)]={},this[_0x466ab8(0x866)]={},this[_0x466ab8(0xcae)]=!![],this['_openPanels']=new Set([_0x466ab8(0xd97)]),this[_0x466ab8(0x802)]=null,this[_0x466ab8(0xf69)]={},this[_0x466ab8(0x3c7)]=this[_0x466ab8(0x3c7)]||_0x466ab8(0x4c4),this[_0x466ab8(0x56e)]=new Map(),this[_0x466ab8(0xb42)]=[];const _0x24bce6=_0x558f4a=>{const _0xca148=_0x466ab8,_0x181641=_0x558f4a['target']?.['closest']?.(_0xca148(0xdc7)),_0x1f2629=_0x181641?.[_0xca148(0xee6)](_0xca148(0x3c9));if(!_0x1f2629)return;const _0x43e032=(this[_0xca148(0xbb2)][_0xca148(0xee6)](_0xca148(0x603))||this)['getBoundingClientRect'](),_0x4b938e=_0x181641[_0xca148(0x9cc)](),_0x155fba=_0x1f2629[_0xca148(0x342)]||0xc8,_0x5465f1=Math[_0xca148(0x220)](_0x43e032[_0xca148(0xaaf)]+0x4,Math[_0xca148(0xba1)](_0x43e032[_0xca148(0x1fd)]-_0x155fba-0x4,_0x4b938e[_0xca148(0xaaf)]+_0x4b938e[_0xca148(0x581)]/0x2-_0x155fba/0x2));_0x1f2629[_0xca148(0x944)]['left']=_0x5465f1-_0x4b938e[_0xca148(0xaaf)]+'px',_0x1f2629[_0xca148(0x944)]['transform']='none';const _0x33c763=_0x1f2629[_0xca148(0xf3c)]||0x78,_0x29fb8e=_0x4b938e['top']-_0x33c763-0x6<Math[_0xca148(0x220)](_0x43e032[_0xca148(0xf55)],0x0);_0x1f2629[_0xca148(0x944)][_0xca148(0xf55)]=_0x29fb8e?_0xca148(0x4d7):'',_0x1f2629[_0xca148(0x944)][_0xca148(0x8f5)]=_0x29fb8e?'auto':'';};this['shadowRoot'][_0x466ab8(0x171)](_0x466ab8(0x2eb),_0x24bce6),this[_0x466ab8(0xbb2)][_0x466ab8(0x171)](_0x466ab8(0xdf4),_0x24bce6);}set['hass'](_0x58f495){const _0x1ed180=_0x46af5e,_0x1d2a85=this['_hass'];this['_hass']=_0x58f495;if(_0x58f495&&_0x58f495['connection'])this[_0x1ed180(0x5e7)]();const _0x5b8d54=this[_0x1ed180(0xfe9)]&&Object[_0x1ed180(0x3ab)](this[_0x1ed180(0xfe9)])[_0x1ed180(0xc02)],_0x3fe855=_0x58f495?Object[_0x1ed180(0x3ab)](_0x58f495['states']||{})['sort']()[_0x1ed180(0x888)](','):'',_0xc71c49=this[_0x1ed180(0x9b8)]!==undefined?this['_edStatesSig']:_0x1d2a85?Object[_0x1ed180(0x3ab)](_0x1d2a85[_0x1ed180(0x4f9)]||{})['sort']()[_0x1ed180(0x888)](','):undefined;if(_0x58f495)this[_0x1ed180(0x9b8)]=_0x3fe855;const _0x169133=resolveCardLanguage(_0x58f495,this[_0x1ed180(0xfe9)]);if(_0x5b8d54&&_0x58f495&&this[_0x1ed180(0x463)]!==undefined&&this[_0x1ed180(0x463)]!==_0x169133){this[_0x1ed180(0x103c)]();return;}if(!_0x1d2a85&&_0x58f495&&_0x5b8d54)this['_render']();else{if(_0x1d2a85&&_0x58f495){if(_0xc71c49!==_0x3fe855&&_0x5b8d54)this[_0x1ed180(0x103c)]();}}}['disconnectedCallback'](){const _0x29f9ec=_0x46af5e;for(const _0x43c229 of this[_0x29f9ec(0xb42)]){try{_0x43c229();}catch(_0xe2a40f){}}this[_0x29f9ec(0xb42)]=[],this[_0x29f9ec(0x9e3)]=null;}['_editorTplKey'](_0x33638a,_0x403902){const _0x11ffdd=_0x46af5e;return _0x403902&&typeof _0x33638a===_0x11ffdd(0xade)&&/\bentity\b/[_0x11ffdd(0x920)](_0x33638a)?_0x33638a+'\u0000'+_0x403902:_0x33638a;}[_0x46af5e(0x3c5)](_0x4153ab,_0x312b8f){const _0x5e3756=_0x46af5e;if(!_0x4153ab||typeof _0x4153ab!==_0x5e3756(0xade)||!_0x4153ab['includes']('{{'))return _0x4153ab;return this[_0x5e3756(0x56e)]['get'](this['_editorTplKey'](_0x4153ab,_0x312b8f||null))||null;}[_0x46af5e(0x5e7)](){const _0x348991=_0x46af5e,_0x1c028e=new Map();for(const _0x1e2ac0 of this['_entities']||[]){if(typeof _0x1e2ac0[_0x348991(0xd95)]===_0x348991(0xade)&&_0x1e2ac0[_0x348991(0xd95)][_0x348991(0xf06)]('{{')){const _0x5c43ed=_0x1e2ac0[_0x348991(0x974)]||null,_0x157462=this[_0x348991(0xd1f)](_0x1e2ac0[_0x348991(0xd95)],_0x5c43ed);if(!_0x1c028e[_0x348991(0x101d)](_0x157462))_0x1c028e[_0x348991(0xa2d)](_0x157462,{'template':_0x1e2ac0[_0x348991(0xd95)],'entId':_0x157462===_0x1e2ac0[_0x348991(0xd95)]?null:_0x5c43ed});}}const _0x4b0262=[..._0x1c028e[_0x348991(0x3ab)]()][_0x348991(0xd09)]()[_0x348991(0x888)]('|');if(_0x4b0262===this[_0x348991(0x9e3)])return;this[_0x348991(0x9e3)]=_0x4b0262;for(const _0x17517e of this['_colorUnsubs']){try{_0x17517e();}catch(_0x455da1){}}this[_0x348991(0xb42)]=[];if(!_0x1c028e['size'])return;for(const [_0x4ec837,_0x182991]of _0x1c028e){try{const _0x137bae=this[_0x348991(0x1dc)][_0x348991(0xb9b)][_0x348991(0x2ae)](_0x75abfd=>{const _0x53b6aa=_0x348991,_0x1958a9=normalizeTemplateResult(_0x75abfd?.[_0x53b6aa(0x83d)]);if(!_0x1958a9)return;const _0x2d8dba=this['_resolvedColors'][_0x53b6aa(0xc3f)](_0x4ec837);if(_0x2d8dba===_0x1958a9)return;this[_0x53b6aa(0x56e)]['set'](_0x4ec837,_0x1958a9),this[_0x53b6aa(0xbb2)]?.['querySelectorAll'](_0x53b6aa(0x4fe))[_0x53b6aa(0xd27)](_0x1f88c2=>{const _0x4e6635=_0x53b6aa,_0x726786=parseInt(_0x1f88c2[_0x4e6635(0x8f6)][_0x4e6635(0x4c3)],0xa),_0x206fdd=this[_0x4e6635(0xfef)][_0x726786];if(_0x206fdd?.[_0x4e6635(0xd95)]===_0x182991['template']&&(!_0x182991[_0x4e6635(0x2f1)]||_0x206fdd['entity']===_0x182991[_0x4e6635(0x2f1)])){const _0x33ac9a=_0x1f88c2[_0x4e6635(0xee6)](_0x4e6635(0x89d));if(_0x33ac9a)_0x33ac9a['style'][_0x4e6635(0x101e)]=_0x1958a9;}});},_0x182991['entId']?{'type':_0x348991(0xc5c),'template':_0x182991[_0x348991(0xf07)],'variables':{'entity':_0x182991[_0x348991(0x2f1)]}}:{'type':_0x348991(0xc5c),'template':_0x182991[_0x348991(0xf07)]});_0x137bae[_0x348991(0x91a)](_0x5ef3e6=>{const _0xf8ff4f=_0x348991;if(!this[_0xf8ff4f(0x191)]){try{_0x5ef3e6();}catch(_0x4cceef){}return;}this[_0xf8ff4f(0xb42)][_0xf8ff4f(0xb31)](_0x5ef3e6);})[_0x348991(0x9d5)](()=>{});}catch(_0x16fe67){}}}[_0x46af5e(0x227)](_0x3982db){const _0x5333de=_0x46af5e;this['_config']=structuredClone(_0x3982db||{}),this[_0x5333de(0x866)]=structuredClone(_0x3982db||{});if(!this[_0x5333de(0x866)][_0x5333de(0xd97)])this[_0x5333de(0x866)][_0x5333de(0xd97)]=[];this[_0x5333de(0x6fc)]&&(this['_config'][_0x5333de(0x815)]=this[_0x5333de(0x6fc)],this[_0x5333de(0x866)][_0x5333de(0x815)]=this[_0x5333de(0x6fc)]);this[_0x5333de(0x9e3)]=null;if(this[_0x5333de(0x1dc)]?.[_0x5333de(0xb9b)])this[_0x5333de(0x5e7)]();this[_0x5333de(0x103c)]();}get['_entities'](){const _0x5e32ba=_0x46af5e;return Array[_0x5e32ba(0x902)](this[_0x5e32ba(0x866)][_0x5e32ba(0xd97)])?this[_0x5e32ba(0x866)]['entities']:[];}[_0x46af5e(0xbe5)](){const _0x524374=_0x46af5e;if(!this[_0x524374(0x1dc)])return[];const _0x5d50dd=new Set((this['_entities']||[])[_0x524374(0xb3f)](_0x5c340c=>_0x5c340c?.[_0x524374(0x974)])[_0x524374(0x919)](Boolean));return Object[_0x524374(0x3ab)](this[_0x524374(0x1dc)][_0x524374(0x4f9)]||{})['filter'](_0x209832=>{const _0xed67a5=_0x524374;if(_0x5d50dd[_0xed67a5(0x101d)](_0x209832))return!![];const _0x24fd9e=this[_0xed67a5(0x1dc)][_0xed67a5(0x4f9)][_0x209832];if(!_0x24fd9e)return![];if(!isNaN(parseFloat(_0x24fd9e[_0xed67a5(0x5f5)])))return!![];if(_0x209832[_0xed67a5(0xed0)](_0xed67a5(0x311))||_0x209832[_0xed67a5(0xed0)](_0xed67a5(0xd42))||_0x209832[_0xed67a5(0xed0)](_0xed67a5(0x26f)))return!![];const _0x313944=_0x24fd9e[_0xed67a5(0x467)]||{};for(const _0x21e9a8 in _0x313944){if(_0x21e9a8===_0xed67a5(0x457)||_0x21e9a8===_0xed67a5(0x5b0)||_0x21e9a8===_0xed67a5(0x8fd)||_0x21e9a8===_0xed67a5(0x78c))continue;if(typeof _0x313944[_0x21e9a8]==='number')return!![];}return![];})[_0x524374(0xd09)]();}[_0x46af5e(0x103c)](){const _0x1ac0ec=_0x46af5e;this['_edLang']=resolveCardLanguage(this[_0x1ac0ec(0x1dc)],this[_0x1ac0ec(0xfe9)]);const _0x1133fc=this['shadowRoot'][_0x1ac0ec(0xcca)],_0x50e80b=_0x1133fc?.[_0x1ac0ec(0xd2b)]!==void 0x0?{'path':this[_0x1ac0ec(0xa15)](_0x1133fc),'ss':_0x1133fc[_0x1ac0ec(0xd2b)],'se':_0x1133fc[_0x1ac0ec(0xf14)]}:null,_0x988d90=this['_tmp'],_0x36bdd6=_0x988d90[_0x1ac0ec(0x95c)]===_0x1ac0ec(0x23b),_0xb62af5=_0x36bdd6?_0x1ac0ec(0x1037):null,_0x5eb8d7=_0x36bdd6?_0x1ac0ec(0x772):null,_0x36e2ca=getComputedStyle(document[_0x1ac0ec(0xc11)])[_0x1ac0ec(0x767)](_0x1ac0ec(0xcd3))[_0x1ac0ec(0xa11)]()||_0x1ac0ec(0xbc1),_0x12e6a5=(_0x45b339,_0x480e86,_0x230fec=null)=>_0x1ac0ec(0xc4a)+escapeHtml(_0x45b339)+'\x22\x20'+(String(_0x480e86)===String(_0x45b339)?_0x1ac0ec(0xd52):'')+'>'+escapeHtml(String(_0x230fec??_0x45b339))+_0x1ac0ec(0x6be),_0x271cf5=(_0x586be6,_0x47300b,_0x6d35fd=[])=>{const _0x4811f4=_0x1ac0ec,_0x572647=_0x47300b===undefined||_0x47300b===null?'':String(_0x47300b);if(!_0x572647||_0x586be6['some'](_0xb9157b=>String(_0xb9157b)===_0x572647)||_0x6d35fd[_0x4811f4(0x42a)](_0x19333b=>String(_0x19333b)===_0x572647))return _0x586be6;return[..._0x586be6,_0x572647];},_0x368ab9=[0x1,0x2,0x3,0x4,0x5,0x6,0xa,0xc,0xf,0x14,0x1e,0x3c],_0x9a3350=(_0x23eb2e,_0x44084f)=>{const _0x5d3871=_0x1ac0ec,_0x30b310=_0x23eb2e===undefined||_0x23eb2e===null||_0x23eb2e===''?'':String(_0x23eb2e),_0x2d099c=_0x368ab9[_0x5d3871(0x165)]();return _0x30b310!==''&&!_0x2d099c[_0x5d3871(0xb3f)](String)[_0x5d3871(0xf06)](_0x30b310)&&isFinite(Number(_0x30b310))&&(_0x2d099c['push'](Number(_0x30b310)),_0x2d099c[_0x5d3871(0xd09)]((_0x190983,_0x19df06)=>_0x190983-_0x19df06)),(_0x44084f?_0x5d3871(0x271)+(_0x30b310===''?_0x5d3871(0xd52):'')+'>'+this[_0x5d3871(0x9df)]('Global')+'</option>':'')+_0x2d099c['map'](_0x180cd8=>_0x12e6a5(_0x180cd8,_0x30b310))['join']('');},_0x13f6a5=(_0x464105,_0x4e5a32)=>_0x464105===0x0||_0x464105?_0x464105:_0x4e5a32,_0x509b84=(_0x44e638,_0x35d57a)=>_0x1ac0ec(0xa99)+this[_0x1ac0ec(0x9df)](_0x44e638)+(_0x35d57a?'\x20'+this[_0x1ac0ec(0x9df)](_0x35d57a):'')+_0x1ac0ec(0xbb6),_0x44a5d9=(_0x5a42a5,_0x378a86)=>{const _0x37f2d1=_0x1ac0ec,_0x13daf3=this[_0x37f2d1(0x957)](_0x378a86),_0x1ef93e=typeof _0x378a86==='string'&&_0x378a86[_0x37f2d1(0xf06)]('{{');return'<div\x20class=\x22ci\x22><input\x20class=\x22'+_0x5a42a5+_0x37f2d1(0xa9f)+escapeHtml(_0x378a86||'')+_0x37f2d1(0x81a)+_0x5a42a5+_0x37f2d1(0xf41)+escapeHtml(_0x13daf3)+'\x22'+(_0x1ef93e?_0x37f2d1(0x517):'')+_0x37f2d1(0x1041);},_0x217ee5=_0x988d90['chart_mode']||'timeline',_0x19fda8=_0x217ee5===_0x1ac0ec(0x325),_0x473ab1=_0x217ee5===_0x1ac0ec(0xa1c),_0x82c763=_0x19fda8||_0x473ab1,_0x31237f=['pie','radialbar',_0x1ac0ec(0x88e)][_0x1ac0ec(0xf06)](_0x217ee5),_0x97cea2=_0x217ee5===_0x1ac0ec(0xa16),_0x523246=[_0x1ac0ec(0xa56),_0x1ac0ec(0xdbc)]['includes'](_0x217ee5),_0x4d5321=!!_0x988d90[_0x1ac0ec(0x4a1)]&&_0x19fda8,_0xbb4d60=(this[_0x1ac0ec(0xfef)]||[])['some'](_0x5992ea=>(_0x5992ea?.[_0x1ac0ec(0xc3c)]||_0x5992ea?.[_0x1ac0ec(0xefa)])==='bar'),_0x2edb0b=(this[_0x1ac0ec(0xfef)]||[])[_0x1ac0ec(0x42a)](_0x5a9eac=>isStripEntity(_0x5a9eac)),_0x50e953=((()=>{const _0x2434df=_0x1ac0ec;let _0xaa0b85=this['_mainTab']||_0x2434df(0x4c4);if(_0xaa0b85==='data')_0xaa0b85=_0x2434df(0x4c4);if(_0xaa0b85===_0x2434df(0x6b2))_0xaa0b85=_0x2434df(0x375);const _0x589070={'display':!![],'card_style':!_0x4d5321,'overlay':!_0x4d5321,'xaxis':(_0x82c763||_0x523246||_0x217ee5===_0x2434df(0xb4b))&&!_0x4d5321,'yaxis':(_0x82c763||_0x523246)&&!_0x4d5321,'calendar':!_0x4d5321};if(!_0x589070[_0xaa0b85])_0xaa0b85=_0x2434df(0x4c4);return _0xaa0b85;})()),_0x1fa5c9=_0x4d5321?_0x1ac0ec(0xca3):this[_0x1ac0ec(0x8f8)]===_0x1ac0ec(0x20b)||this[_0x1ac0ec(0x8f8)]===_0x1ac0ec(0xca3)||this[_0x1ac0ec(0x8f8)]===_0x1ac0ec(0x23e)?this[_0x1ac0ec(0x8f8)]:_0x1ac0ec(0x20b),_0x4ef840='\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel\x20'+(this[_0x1ac0ec(0xb40)][_0x1ac0ec(0x101d)]('main')?'open':'')+_0x1ac0ec(0xd59)+this['_eT'](_0x1ac0ec(0xe26))+_0x1ac0ec(0x3a0)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf53))+_0x1ac0ec(0xd40)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xce5))+'\x20'+_0x509b84('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.')+'</label><div\x20class=\x22sw\x22><select\x20id=\x22chart_mode\x22>'+[_0x1ac0ec(0x325),_0x1ac0ec(0xb4b),'scatter','pie','ranking',_0x1ac0ec(0x37b),_0x1ac0ec(0xa16),_0x1ac0ec(0x88e),'radar',_0x1ac0ec(0xa56),'calendar',_0x1ac0ec(0xa02),_0x1ac0ec(0xef0),'histogram',_0x1ac0ec(0x8fe)]['map'](_0xdb5a25=>_0x12e6a5(_0xdb5a25,_0x217ee5,{'timeline':this['_eT'](_0x1ac0ec(0x79f)),'state_timeline':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x722)),'scatter':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9ab)),'pie':this['_eT']('Pie\x20Chart'),'ranking':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9c2)),'radialbar':this[_0x1ac0ec(0x9df)]('Radial\x20Bar'),'gauge':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdbf)),'polararea':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xeb0)),'radar':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xe06)),'heatmap':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x863)),'calendar':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x75c)),'box':this['_eT'](_0x1ac0ec(0xf81)),'waterfall':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x449)),'histogram':this[_0x1ac0ec(0x9df)]('Histogram'),'controller':this[_0x1ac0ec(0x9df)]('Controller')}[_0xdb5a25]))[_0x1ac0ec(0x888)]('')+'</select></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tabs\x20main-tabs\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22tb\x20main-tb\x20'+(_0x50e953==='display'?_0x1ac0ec(0x5b3):'')+'\x22\x20data-mtab=\x22display\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8b3))+_0x1ac0ec(0x22f)+((_0x82c763||_0x523246||_0x217ee5===_0x1ac0ec(0xb4b))&&!_0x4d5321?_0x1ac0ec(0x6ce)+(_0x50e953===_0x1ac0ec(0xa01)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0x877)+this['_eT'](_0x1ac0ec(0xf93))+_0x1ac0ec(0xfcb):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+((_0x82c763||_0x523246)&&!_0x4d5321?_0x1ac0ec(0x6ce)+(_0x50e953==='yaxis'?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0xa9e)+this[_0x1ac0ec(0x9df)]('Y\x20Axis')+'</button>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x4d5321?'<button\x20class=\x22tb\x20main-tb\x20'+(_0x50e953===_0x1ac0ec(0x375)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0xfcd)+this['_eT'](_0x1ac0ec(0x330))+'</button>':'')+_0x1ac0ec(0xded)+(!_0x4d5321?_0x1ac0ec(0x6ce)+(_0x50e953==='calendar'?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0x188)+this[_0x1ac0ec(0x9df)]('Calendar')+_0x1ac0ec(0xfcb):'')+_0x1ac0ec(0xada)+(_0x50e953===_0x1ac0ec(0x4c4)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0xfa9)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb20))+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xcd0))+'\x20'+_0x509b84('How\x20many\x20hours\x20of\x20history\x20to\x20load\x20and\x20display\x20in\x20the\x20default\x20rolling\x20window.\x20Higher\x20values\x20fetch\x20more\x20data\x20but\x20may\x20slow\x20down\x20the\x20card.\x20Ignored\x20when\x20Date\x20Picker,\x20Energy\x20Sync,\x20Interval\x20Picker,\x20Graph\x20Start,\x20or\x20Graph\x20Start\x20Hour\x20overrides\x20the\x20time\x20window.')+_0x1ac0ec(0x360)+escapeHtml(_0x13f6a5(_0x988d90['hours_to_show'],0x18))+_0x1ac0ec(0xdf2)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x753))+'\x20'+_0x509b84(_0x1ac0ec(0xb68))+'</label><div\x20class=\x22sw\x22><select\x20id=\x22points_per_hour\x22>'+_0x9a3350(_0x13f6a5(_0x988d90[_0x1ac0ec(0x71e)],0x2),![])+_0x1ac0ec(0xeae)+this['_eT']('Group\x20By')+'\x20'+_0x509b84(_0x1ac0ec(0x6ef))+_0x1ac0ec(0x99f)+((this['_entities']||[])[_0x1ac0ec(0x42a)](_0x18e0a6=>(_0x18e0a6?.[_0x1ac0ec(0xc3c)]||_0x18e0a6?.['type'])===_0x1ac0ec(0xfb0))||_0x988d90['group_by']===_0x1ac0ec(0xbcc)?_0x12e6a5(_0x1ac0ec(0xbcc),_0x988d90[_0x1ac0ec(0x3b2)]??_0x1ac0ec(0x1a1),this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x989))):'')+[_0x1ac0ec(0x1a1),'hour','2h','3h','4h','6h',_0x1ac0ec(0x513),_0x1ac0ec(0x88f),_0x1ac0ec(0x6f1),'month',_0x1ac0ec(0x73e)][_0x1ac0ec(0xb3f)](_0x614c5e=>_0x12e6a5(_0x614c5e,_0x988d90[_0x1ac0ec(0x3b2)]??_0x1ac0ec(0x1a1),{'interval':_0x1ac0ec(0xf5c),'hour':_0x1ac0ec(0xe11),'date':_0x1ac0ec(0x83e),'week':_0x1ac0ec(0x2d1),'month':_0x1ac0ec(0x4e4),'year':_0x1ac0ec(0x8c1),'2h':_0x1ac0ec(0x620),'3h':'3\x20Hours','4h':_0x1ac0ec(0xe93),'6h':_0x1ac0ec(0xe1f),'12h':_0x1ac0ec(0xf7a)}[_0x614c5e]))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xa40)+(_0x217ee5==='ranking'?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf4c))+'\x20'+_0x509b84(_0x1ac0ec(0xeee))+_0x1ac0ec(0xecc)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb7a))+'\x22\x20value=\x22'+escapeHtml(_0x988d90['ranking_min_value']??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xee9))+'\x20'+_0x509b84(_0x1ac0ec(0x7c7))+_0x1ac0ec(0x35f)+this[_0x1ac0ec(0x9df)]('None')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xaca)]??'')+_0x1ac0ec(0xf30):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x103f))+'\x20'+_0x509b84(_0x1ac0ec(0x8d9))+_0x1ac0ec(0xb2f)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x827))+'\x22\x20value=\x22'+escapeHtml(_0x988d90['update_interval']??'')+'\x22><span\x20class=\x22u\x22>s</span></div></div>'+(_0x19fda8||_0x217ee5===_0x1ac0ec(0xb4b)?_0x1ac0ec(0x23c)+this['_eT'](_0x1ac0ec(0xf1d))+'\x20'+_0x509b84(_0x1ac0ec(0xcf2))+_0x1ac0ec(0xb7b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2b8))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x4ad)]??'')+_0x1ac0ec(0xdf2)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xde2))+'\x20'+_0x509b84(_0x1ac0ec(0xdac))+_0x1ac0ec(0x874)+[_0x1ac0ec(0x50e),_0x1ac0ec(0x7f6)]['map'](_0x1f22ae=>_0x12e6a5(_0x1f22ae,_0x988d90[_0x1ac0ec(0xc06)]??_0x1ac0ec(0x50e),{'scrollbar':'Scrollbar','wheel':_0x1ac0ec(0x66a)}[_0x1f22ae]))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x81f):_0x1ac0ec(0x419))+_0x1ac0ec(0x1005)+(_0x19fda8?_0x1ac0ec(0x538)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc38))+'\x20'+_0x509b84(_0x1ac0ec(0x539))+_0x1ac0ec(0x251)+this['_eT'](_0x1ac0ec(0x827))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x755)]??'')+_0x1ac0ec(0x912):'')+_0x1ac0ec(0xc04)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x6b1))+_0x1ac0ec(0x36a)+(_0x82c763&&!_0x4d5321?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_grid\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x257)]!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x6ed))+'\x20'+_0x509b84('Draws\x20faint\x20horizontal\x20and\x20vertical\x20guide\x20lines\x20across\x20the\x20graph\x20area.')+_0x1ac0ec(0x433):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x523246?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_cell_values\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0xe18)]!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x938))+'\x20'+_0x509b84(_0x1ac0ec(0x6ec))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0xa6d)+(!_0x523246&&!_0x4d5321?_0x1ac0ec(0x7a4)+(_0x988d90['show_legend']?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0x41b))+'\x20'+_0x509b84('Shows\x20a\x20compact\x20color-coded\x20entity\x20name\x20key\x20below\x20the\x20graph.')+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x284)+(_0x988d90[_0x1ac0ec(0x45c)]?'checked':'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0xec8))+'\x20'+_0x509b84('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.')+_0x1ac0ec(0x8da)+(_0x988d90[_0x1ac0ec(0x1015)]&&!_0x988d90[_0x1ac0ec(0x37a)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x872))+'\x20'+_0x509b84('Append\x20the\x20plotted\x20attribute\x20to\x20each\x20entity\x27s\x20name\x20-\x20in\x20the\x20state\x20row,\x20legend,\x20tooltips,\x20stats,\x20exports\x20and\x20this\x20list.\x20Without\x20it,\x20two\x20attributes\x20of\x20the\x20same\x20entity\x20produce\x20two\x20identical\x20labels.\x20Rows\x20that\x20plot\x20the\x20entity\x20state\x20itself\x20are\x20untouched,\x20as\x20are\x20entities\x20you\x20gave\x20a\x20Custom\x20Name.')+_0x1ac0ec(0xb73)+(_0x988d90[_0x1ac0ec(0x37a)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Attribute\x20names\x20only')+'\x20'+_0x509b84(_0x1ac0ec(0x1012))+_0x1ac0ec(0xec1)+((_0x19fda8||_0x31237f)&&!_0x4d5321?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22animate_graph\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x8fc)]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0x901))+'\x20'+_0x509b84('Plays\x20a\x20draw-in\x20animation\x20when\x20the\x20card\x20loads.\x20Timeline\x20=\x20line/area\x20sweep\x20draw-in.\x20Pie\x20/\x20Radial\x20Bar\x20/\x20Polar\x20Area\x20=\x20slice\x20grow-in\x20on\x20every\x20data\x20refresh.')+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x3e5)+(_0x19fda8&&!_0x4d5321?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22stacked\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x18a)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc14))+'\x20'+_0x509b84(_0x1ac0ec(0xea7))+'</span></div></label>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19fda8?_0x1ac0ec(0xe52)+(_0x988d90[_0x1ac0ec(0x4a1)]?'checked':'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0xf0a))+'\x20'+_0x509b84(_0x1ac0ec(0x607))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x3e5)+(_0x19fda8&&!_0x4d5321?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22auto_scale_points\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x323)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9f2))+'\x20'+_0x509b84(_0x1ac0ec(0xba2))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x8d7)+(_0x988d90[_0x1ac0ec(0xbca)]===!![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0xf8c))+'\x20'+_0x509b84(_0x1ac0ec(0x20d))+_0x1ac0ec(0xec1)+(!_0x523246&&!_0x4d5321?_0x1ac0ec(0xbbe)+(_0x988d90[_0x1ac0ec(0x864)]?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Auto\x20Hide\x20Entities')+'\x20'+_0x509b84(_0x1ac0ec(0x9c8))+'</span></div></label>':'')+_0x1ac0ec(0x97b)+(_0x19fda8&&!_0x4d5321&&_0x988d90['auto_scale_points']?((()=>{const _0x5d6cb8=_0x1ac0ec,_0x4a8005=Array[_0x5d6cb8(0x902)](_0x988d90[_0x5d6cb8(0x8eb)])?_0x988d90[_0x5d6cb8(0x8eb)]:[],_0x3ee3f1=[_0x5d6cb8(0x1a1),_0x5d6cb8(0x2ab),'2h','3h','4h','6h',_0x5d6cb8(0x513),'date',_0x5d6cb8(0x6f1),_0x5d6cb8(0xe7d),_0x5d6cb8(0x73e)],_0x2ea42c={'interval':'Interval','hour':_0x5d6cb8(0xe11),'2h':_0x5d6cb8(0x620),'3h':'3\x20Hours','4h':_0x5d6cb8(0xe93),'6h':_0x5d6cb8(0xe1f),'12h':_0x5d6cb8(0xf7a),'date':'Date','week':'Week','month':_0x5d6cb8(0x4e4),'year':_0x5d6cb8(0x8c1)},_0x3486ae=(this[_0x5d6cb8(0xfef)]||[])['some'](_0x53ef39=>(_0x53ef39?.[_0x5d6cb8(0xc3c)]||_0x53ef39?.[_0x5d6cb8(0xefa)])===_0x5d6cb8(0xfb0))||_0x4a8005[_0x5d6cb8(0x42a)](_0x4de36f=>_0x4de36f?.['group_by']===_0x5d6cb8(0xbcc)),_0x33ce4e=_0x4a8005[_0x5d6cb8(0xb3f)]((_0xe936f1,_0x3f0e3d)=>_0x5d6cb8(0x48a)+_0x3f0e3d+_0x5d6cb8(0x778)+this['_eT'](_0x5d6cb8(0xd93))+_0x5d6cb8(0x557)+(_0xe936f1?.[_0x5d6cb8(0x50a)]!=null?escapeHtml(String(_0xe936f1[_0x5d6cb8(0x50a)])):'')+_0x5d6cb8(0xc1b)+this[_0x5d6cb8(0x9df)](_0x5d6cb8(0x1c7))+'</label><div\x20class=\x22sw\x22><select\x20class=\x22asr-gb\x22>'+(_0x3486ae?_0x5d6cb8(0x4e9)+(_0xe936f1?.[_0x5d6cb8(0x3b2)]===_0x5d6cb8(0xbcc)?'selected':'')+'>'+this[_0x5d6cb8(0x9df)]('Raw\x20(no\x20grouping)')+'</option>':'')+_0x3ee3f1[_0x5d6cb8(0xb3f)](_0x2cd49f=>_0x5d6cb8(0xc4a)+_0x2cd49f+'\x22\x20'+((_0xe936f1?.[_0x5d6cb8(0x3b2)]||'hour')===_0x2cd49f?_0x5d6cb8(0xd52):'')+'>'+this[_0x5d6cb8(0x9df)](_0x2ea42c[_0x2cd49f])+_0x5d6cb8(0x6be))[_0x5d6cb8(0x888)]('')+_0x5d6cb8(0xd1c)+((_0xe936f1?.[_0x5d6cb8(0x3b2)]||'hour')===_0x5d6cb8(0x1a1)?'':_0x5d6cb8(0x259))+'><label>'+this[_0x5d6cb8(0x9df)]('Points/Hour')+_0x5d6cb8(0xe5f)+(_0xe936f1?.[_0x5d6cb8(0x71e)]==null?_0x5d6cb8(0xd52):'')+'>'+this[_0x5d6cb8(0x9df)](_0x5d6cb8(0xd1b))+_0x5d6cb8(0x6be)+_0x9a3350(_0xe936f1?.[_0x5d6cb8(0x71e)]??'',![])+_0x5d6cb8(0xf7e)+this[_0x5d6cb8(0x9df)](_0x5d6cb8(0xd76))+_0x5d6cb8(0xf46))['join']('');return _0x5d6cb8(0x1d8)+this['_eT']('Custom\x20Scale\x20Rules')+'\x20'+_0x509b84(_0x5d6cb8(0xc0c))+_0x5d6cb8(0x520)+(_0x33ce4e||'<div\x20class=\x22es\x22>'+this[_0x5d6cb8(0x9df)]('No\x20rules\x20yet\x20-\x20the\x20built-in\x20auto\x20scale\x20decides')+_0x5d6cb8(0x743))+_0x5d6cb8(0xf83)+this[_0x5d6cb8(0x9df)]('Add\x20Rule')+_0x5d6cb8(0x2e2);})()):'')+_0x1ac0ec(0xded)+(_0x988d90[_0x1ac0ec(0x76d)]?_0x1ac0ec(0xd98)+this['_eT'](_0x1ac0ec(0x41b))+'\x20'+_0x509b84(_0x1ac0ec(0xa71))+_0x1ac0ec(0x475)+['left',_0x1ac0ec(0x942),'right'][_0x1ac0ec(0xb3f)](_0x271632=>_0x12e6a5(_0x271632,_0x988d90[_0x1ac0ec(0xb44)]??_0x1ac0ec(0x942),this[_0x1ac0ec(0x9df)](_0x271632[_0x1ac0ec(0xdf0)](0x0)['toUpperCase']()+_0x271632[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x1018):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x217ee5===_0x1ac0ec(0xe24)?_0x1ac0ec(0xf61)+this['_eT'](_0x1ac0ec(0xa92))+'\x20'+_0x509b84(_0x1ac0ec(0x7e8))+_0x1ac0ec(0x5e0)+[{'v':_0x1ac0ec(0xc52),'l':this[_0x1ac0ec(0x9df)]('Classic')},{'v':_0x1ac0ec(0x1f9),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x875))},{'v':_0x1ac0ec(0xcb0),'l':this['_eT'](_0x1ac0ec(0xd89))},{'v':_0x1ac0ec(0x265),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf82))}][_0x1ac0ec(0xb3f)](_0x1b79a8=>_0x12e6a5(_0x1b79a8['v'],_0x988d90[_0x1ac0ec(0x367)]??_0x1ac0ec(0xcb0),_0x1b79a8['l']))['join']('')+_0x1ac0ec(0xeae)+this[_0x1ac0ec(0x9df)]('Slice\x20Spacing')+'\x20'+_0x509b84(_0x1ac0ec(0x47d))+_0x1ac0ec(0x1f7)+escapeHtml(_0x988d90['pie_spacing']??'')+_0x1ac0ec(0xd3c)+(_0x988d90[_0x1ac0ec(0x82a)]?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb87))+'\x20'+_0x509b84(_0x1ac0ec(0x1a3))+_0x1ac0ec(0x50c)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc8e))+'\x20'+_0x509b84(_0x1ac0ec(0x1e6))+_0x1ac0ec(0x835)+this['_eT'](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['pie_label_font_size']??'')+_0x1ac0ec(0xce7)+this['_eT'](_0x1ac0ec(0x287))+'\x20'+_0x509b84(_0x1ac0ec(0x48b))+_0x1ac0ec(0xcf0)+this['_eT'](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xdaf)]??'')+_0x1ac0ec(0xd8b)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90['pie_label_color']||'#ffffff'))+_0x1ac0ec(0xd38)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3fa))+'\x20'+_0x509b84(_0x1ac0ec(0x3a3))+_0x1ac0ec(0x488)+[{'v':'value','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1d))},{'v':_0x1ac0ec(0xed5),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc7c))},{'v':_0x1ac0ec(0x2ba),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xca0))}][_0x1ac0ec(0xb3f)](_0x2baae9=>_0x12e6a5(_0x2baae9['v'],_0x988d90[_0x1ac0ec(0xb03)]??_0x1ac0ec(0x2ea),_0x2baae9['l']))[_0x1ac0ec(0x888)]('')+'</select></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)]('Center\x20Label\x20Size')+'\x20'+_0x509b84('Font\x20size\x20of\x20the\x20Center\x20Total\x20value\x20shown\x20in\x20the\x20donut\x20hole.\x20Requires\x20Center\x20Total\x20to\x20be\x20enabled.\x20Leave\x20empty\x20for\x20auto-size.')+_0x1ac0ec(0xa26)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['pie_center_font_size']??'')+_0x1ac0ec(0xce7)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9a8))+'\x20'+_0x509b84(_0x1ac0ec(0x465))+'</label><div\x20class=\x22ci\x22><input\x20id=\x22pie_center_color\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xe38)]??'')+'\x22><input\x20id=\x22pie_center_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this['_coerceColor'](_0x988d90[_0x1ac0ec(0xe38)]||_0x1ac0ec(0x52c)))+_0x1ac0ec(0x983):'')+_0x1ac0ec(0xded)+(_0x97cea2?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9b1))+'\x20'+_0x509b84('How\x20many\x20gauges\x20per\x20row.\x20Auto\x20fits\x20as\x20many\x20as\x20the\x20card\x20width\x20allows;\x20every\x20entity\x20becomes\x20its\x20own\x20gauge\x20in\x20a\x20responsive\x20grid.')+_0x1ac0ec(0x867)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xf31)]??'')+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)]('Gauge\x20Span')+'\x20'+_0x509b84(_0x1ac0ec(0xbb7))+_0x1ac0ec(0x809)+escapeHtml(_0x988d90[_0x1ac0ec(0xe43)]??'')+_0x1ac0ec(0xd68)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x78e))+'\x20'+_0x509b84(_0x1ac0ec(0xcdc))+_0x1ac0ec(0x649)+[{'v':_0x1ac0ec(0x38d),'l':this[_0x1ac0ec(0x9df)]('Below')},{'v':'above','l':this[_0x1ac0ec(0x9df)]('Above')}][_0x1ac0ec(0xb3f)](_0x3aa55e=>_0x12e6a5(_0x3aa55e['v'],_0x988d90[_0x1ac0ec(0x665)]??_0x1ac0ec(0x38d),_0x3aa55e['l']))['join']('')+_0x1ac0ec(0xeae)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x70b))+'\x20'+_0x509b84(_0x1ac0ec(0x824))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22gauge_value_size\x22\x20type=\x22number\x22\x20min=\x228\x22\x20max=\x2280\x22\x20step=\x221\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x882)]??'')+_0x1ac0ec(0x81c)+(_0x988d90['gauge_show_minmax']?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x900))+'\x20'+_0x509b84('Draw\x20the\x20dial\x20scale\x20ends\x20—\x20the\x20lower\x20and\x20upper\x20bound\x20—\x20as\x20small\x20labels\x20at\x20the\x20two\x20ends\x20of\x20the\x20gauge.\x20Set\x20the\x20range\x20per\x20entity\x20under\x20Gauge\x20Range\x20(Min\x20/\x20Max).\x20The\x20observed\x20period\x20peak\x20and\x20low\x20always\x20appear\x20in\x20the\x20tooltip.')+'</span></div></label>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x217ee5==='state_timeline'?'<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT']('Corner\x20Radius')+'\x20'+_0x509b84(_0x1ac0ec(0x4a2))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22state_timeline_corner_radius\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x2220\x22\x20step=\x221\x22\x20placeholder=\x223\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0xfe3)]??'')+'\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x1f3))+'\x20'+_0x509b84('Height\x20of\x20each\x20state\x20row\x20in\x20pixels.\x20Leave\x20empty\x20for\x20the\x20automatic\x20height\x20(32\x20px,\x20growing\x20only\x20when\x20the\x20entity\x20name\x20wraps),\x20where\x20the\x20colour\x20band\x20is\x20capped\x20at\x2024\x20px.\x20Set\x20it\x20to\x20make\x20the\x20band\x20taller\x20—\x20it\x20fills\x20the\x20row\x20minus\x20a\x20small\x20margin.\x20Range\x2024–160.')+_0x1ac0ec(0xf5b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x6c3)]??'')+_0x1ac0ec(0xbd1)+(_0x988d90[_0x1ac0ec(0x4d4)]!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Show\x20State\x20Labels')+'\x20'+_0x509b84(_0x1ac0ec(0xe9d))+_0x1ac0ec(0x4f3)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3db))+'\x20'+_0x509b84(_0x1ac0ec(0x64a))+_0x1ac0ec(0x7a8)+escapeHtml(_0x988d90[_0x1ac0ec(0x903)]??'')+'\x22><span\x20class=\x22u\x22>px</span></div></div></div>':'')+_0x1ac0ec(0xded)+(_0x82c763&&_0x2edb0b?'<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22state_strip_titles\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x4bd)]===!![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x7b5))+'\x20'+_0x509b84('Write\x20each\x20strip\x27s\x20name\x20on\x20a\x20small\x20line\x20above\x20its\x20band\x20—\x20the\x20same\x20name\x20the\x20legend\x20and\x20tooltip\x20use\x20—\x20so\x20stacked\x20strips\x20can\x20be\x20told\x20apart\x20without\x20the\x20legend.\x20Each\x20title\x20costs\x20its\x20own\x20height;\x20titles\x20are\x20dropped\x20automatically\x20when\x20the\x20card\x20is\x20too\x20short\x20for\x20them.\x20Set\x20an\x20entity\x27s\x20name\x20to\x20an\x20empty\x20string\x20to\x20leave\x20only\x20that\x20strip\x20untitled.')+_0x1ac0ec(0x7f8)+(_0x988d90[_0x1ac0ec(0x54c)]!==![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xeb8))+'\x20'+_0x509b84(_0x1ac0ec(0x61c))+_0x1ac0ec(0x956)+this['_eT']('Title\x20Size')+'\x20'+_0x509b84(_0x1ac0ec(0x752))+_0x1ac0ec(0xee1)+escapeHtml(_0x988d90[_0x1ac0ec(0x4bf)]??'')+_0x1ac0ec(0xce7)+this[_0x1ac0ec(0x9df)]('Title\x20Position')+'\x20'+_0x509b84(_0x1ac0ec(0xb3d))+_0x1ac0ec(0x51b)+['above',_0x1ac0ec(0xaaf)][_0x1ac0ec(0xb3f)](_0x1976d9=>_0x12e6a5(_0x1976d9,_0x988d90[_0x1ac0ec(0x4a6)]??_0x1ac0ec(0xdce),this[_0x1ac0ec(0x9df)](_0x1976d9==='above'?_0x1ac0ec(0xd17):_0x1ac0ec(0xa93))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xd7b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x264))+'\x20'+_0x509b84(_0x1ac0ec(0xdb5))+_0x1ac0ec(0x351)+escapeHtml(_0x988d90['state_strip_height']??'')+_0x1ac0ec(0xc97):'')+_0x1ac0ec(0x176)+((_0x82c763||_0x523246)&&!_0x4d5321?_0x1ac0ec(0x48d)+(_0x50e953===_0x1ac0ec(0x434)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0x921)+(_0x4d5321?_0x1ac0ec(0x5ab)+this['_eT']('Y-axis\x20settings\x20are\x20hidden\x20in\x20sparkline\x20mode')+_0x1ac0ec(0xe7a):_0x523246?'<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x75a))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf72))+'\x20'+_0x509b84(_0x1ac0ec(0xfba),_0xb62af5)+_0x1ac0ec(0xf84)+(_0x36bdd6?'12':'10')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x1aa)]??'')+_0x1ac0ec(0xce7)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x166))+'\x20'+_0x509b84(_0x1ac0ec(0xcc8),_0xb62af5)+_0x1ac0ec(0xd8e)+(_0x36bdd6?'1':'0.65')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xd8c)]??'')+_0x1ac0ec(0xd38)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc28))+'\x20'+_0x509b84(_0x1ac0ec(0x7e4),_0x5eb8d7)+_0x1ac0ec(0xcab)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x5bd)]??'')+_0x1ac0ec(0x9ad)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0x5bd)]||_0x1ac0ec(0x44d)))+'\x22></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x89c))+_0x1ac0ec(0x89a)+(_0x988d90['show_y_axis']!==![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0x1033))+'\x20'+_0x509b84(_0x1ac0ec(0x795))+_0x1ac0ec(0x688)+(_0x988d90[_0x1ac0ec(0x589)]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0x402))+'\x20'+_0x509b84(_0x1ac0ec(0x35e))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_y_ticks\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90['show_y_ticks']?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3b3))+'\x20'+_0x509b84(_0x1ac0ec(0x763))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_y_axis_label\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x3d7)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdf5))+'\x20'+_0x509b84(_0x1ac0ec(0xe78))+_0x1ac0ec(0xec1)+(_0x19fda8?_0x1ac0ec(0xa7b)+(_0x988d90[_0x1ac0ec(0xe44)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x800))+'\x20'+_0x509b84(_0x1ac0ec(0xcf1))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x36d)+this[_0x1ac0ec(0x9df)]('Labels')+_0x1ac0ec(0x5e2)+(_0x988d90['show_y_axis_label']?_0x1ac0ec(0xf61)+this['_eT'](_0x1ac0ec(0x3b6))+'\x20'+_0x509b84('Vertical\x20label\x20shown\x20on\x20the\x20left\x20edge\x20of\x20the\x20graph.\x20Defaults\x20to\x20the\x20unit\x20of\x20the\x20first\x20primary\x20entity.\x20Set\x20custom\x20text\x20to\x20override,\x20or\x20leave\x20empty\x20for\x20auto.')+_0x1ac0ec(0x352)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd9b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['y_axis_label']??'')+'\x22></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x1ac0ec(0xd7a))+'\x20'+_0x509b84(_0x1ac0ec(0xeb9))+_0x1ac0ec(0x3a9)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd9b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x3b7)]??'')+_0x1ac0ec(0xf30):'')+_0x1ac0ec(0x200)+(_0x988d90[_0x1ac0ec(0x230)]!==![]?'checked':'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x33a))+'\x20'+_0x509b84(_0x1ac0ec(0x8a0))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9cf))+'\x20'+_0x509b84(_0x1ac0ec(0x777))+_0x1ac0ec(0xf9d)+escapeHtml(_0x988d90[_0x1ac0ec(0x41c)]??'')+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)]('Y\x20Axis\x20Decimals')+'\x20'+_0x509b84(_0x1ac0ec(0x567))+_0x1ac0ec(0x301)+this[_0x1ac0ec(0x9df)]('Auto')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['y_axis_decimals']??'')+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x4b1))+'\x20'+_0x509b84(_0x1ac0ec(0xb93))+_0x1ac0ec(0x240)+[[_0x1ac0ec(0x8e1),this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x544))],[_0x1ac0ec(0xd6f),_0x1ac0ec(0x549)],[_0x1ac0ec(0xbb0),'1,234.56']][_0x1ac0ec(0xb3f)](([_0x1ca045,_0x562118])=>_0x12e6a5(_0x1ca045,_0x988d90[_0x1ac0ec(0x310)]??_0x1ac0ec(0x8e1),_0x562118))[_0x1ac0ec(0x888)]('')+'</select></div></div></div><div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)]('Y\x20Tick\x20Format')+'\x20'+_0x509b84(_0x1ac0ec(0x816))+'</label><input\x20id=\x22y_axis_format\x22\x20type=\x22text\x22\x20placeholder=\x22h:mm\x20or\x20{expr}\x22\x20value=\x22'+escapeHtml(_0x988d90['y_axis_format']??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x945))+'\x20'+_0x509b84('Same\x20as\x20Y\x20Tick\x20Format\x20but\x20for\x20the\x20SECONDARY\x20(right)\x20axis\x20and\x20every\x20value\x20surface\x20of\x20the\x20entities\x20plotted\x20on\x20it.')+_0x1ac0ec(0x9d7)+escapeHtml(_0x988d90['y2_axis_format']??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf57))+'\x20'+_0x509b84(_0x1ac0ec(0x525))+_0x1ac0ec(0xd31)+_0x271cf5(['s','ms',_0x1ac0ec(0xba1),'h'],_0x988d90[_0x1ac0ec(0x885)])['map'](_0xa8adcd=>_0x12e6a5(_0xa8adcd,_0x988d90[_0x1ac0ec(0x885)]??'s',{'s':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x34c)),'ms':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x64c)),'min':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc9b)),'h':this['_eT'](_0x1ac0ec(0xa50))}[_0xa8adcd]))['join']('')+_0x1ac0ec(0xd7b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf72))+'\x20'+_0x509b84(_0x1ac0ec(0x7fd),_0xb62af5)+_0x1ac0ec(0xf84)+(_0x36bdd6?'12':'10')+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0x1aa)]??'')+_0x1ac0ec(0xce7)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x166))+'\x20'+_0x509b84(_0x1ac0ec(0x9fb),_0xb62af5)+'</label><div\x20class=\x22iu\x22><input\x20id=\x22y_axis_font_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22'+(_0x36bdd6?'1':'0.65')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xd8c)]??'')+_0x1ac0ec(0xd38)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc28))+'\x20'+_0x509b84(_0x1ac0ec(0x4e1),_0x5eb8d7)+_0x1ac0ec(0xcab)+this[_0x1ac0ec(0x9df)]('Auto')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['y_axis_color']??'')+_0x1ac0ec(0x9ad)+escapeHtml(this['_coerceColor'](_0x988d90[_0x1ac0ec(0x5bd)]||_0x1ac0ec(0x44d)))+'\x22></div></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x6ed))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb2e))+'\x20'+_0x509b84(_0x1ac0ec(0x44a))+_0x1ac0ec(0xaf6)+_0x271cf5([_0x1ac0ec(0x2b5),'solid',_0x1ac0ec(0x998),_0x1ac0ec(0x65b)],_0x988d90[_0x1ac0ec(0xc0f)])[_0x1ac0ec(0xb3f)](_0x46b332=>_0x12e6a5(_0x46b332,_0x988d90[_0x1ac0ec(0xc0f)]??_0x1ac0ec(0x2b5),this[_0x1ac0ec(0x9df)](_0x46b332[_0x1ac0ec(0xdf0)](0x0)['toUpperCase']()+_0x46b332['slice'](0x1)[_0x1ac0ec(0x5ef)]('-','\x20'))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xeae)+this['_eT'](_0x1ac0ec(0x1025))+'\x20'+_0x509b84(_0x1ac0ec(0xe0d))+_0x1ac0ec(0xf12)+escapeHtml(_0x988d90[_0x1ac0ec(0xa8c)]??'')+_0x1ac0ec(0x21d)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x89e))+'\x20'+_0x509b84(_0x1ac0ec(0xf99),_0x5eb8d7)+_0x1ac0ec(0xd91)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xc57)]??'')+_0x1ac0ec(0x3f3)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0xc57)]||'#888888'))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)]('Y\x20Grid\x20Opacity')+'\x20'+_0x509b84(_0x1ac0ec(0x914),_0xb62af5)+'</label><div\x20class=\x22iu\x22><input\x20id=\x22y_grid_opacity\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22'+(_0x36bdd6?'1':_0x1ac0ec(0x668))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['y_grid_opacity']??'')+_0x1ac0ec(0x41f)+this['_eT'](_0x1ac0ec(0x29a))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xe87))+'\x20'+_0x509b84(_0x1ac0ec(0x252))+'</label><input\x20id=\x22min_bound_range\x22\x20type=\x22text\x22\x20placeholder=\x22'+this['_eT'](_0x1ac0ec(0xb7a))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x103d)]??'')+_0x1ac0ec(0xc1b)+this['_eT']('Min\x20Y2\x20Range')+'\x20'+_0x509b84(_0x1ac0ec(0x91d))+_0x1ac0ec(0x29e)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb7a))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xea8)]??'')+'\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT']('Lower\x20Bound\x20Y')+'\x20'+_0x509b84(_0x1ac0ec(0xc4f))+_0x1ac0ec(0xf75)+escapeHtml(_0x988d90[_0x1ac0ec(0xf24)]??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x28e))+'\x20'+_0x509b84(_0x1ac0ec(0x2e9))+_0x1ac0ec(0x3e6)+escapeHtml(_0x988d90['upper_bound']??'')+'\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT'](_0x1ac0ec(0xd1e))+'\x20'+_0x509b84('Hard\x20or\x20soft\x20minimum\x20for\x20the\x20secondary\x20(right)\x20Y\x20axis.')+_0x1ac0ec(0xdc3)+escapeHtml(_0x988d90[_0x1ac0ec(0x8db)]??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc50))+'\x20'+_0x509b84(_0x1ac0ec(0xbb4))+_0x1ac0ec(0x7b7)+escapeHtml(_0x988d90['upper_bound_secondary']??'')+_0x1ac0ec(0x53d))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+_0x1ac0ec(0x859)+((_0x82c763||_0x523246||_0x217ee5===_0x1ac0ec(0xb4b))&&!_0x4d5321?_0x1ac0ec(0x48d)+(_0x50e953===_0x1ac0ec(0xa01)?_0x1ac0ec(0x5b3):'')+'\x22\x20data-mtc=\x22xaxis\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4d5321?_0x1ac0ec(0x5ab)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc49))+_0x1ac0ec(0xe7a):_0x523246?_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x75a))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdd2))+'\x20'+_0x509b84(_0x1ac0ec(0x22d),_0xb62af5)+'</label><div\x20class=\x22iu\x22><input\x20id=\x22x_axis_font_size\x22\x20type=\x22number\x22\x20min=\x226\x22\x20max=\x2220\x22\x20step=\x221\x22\x20placeholder=\x22'+(_0x36bdd6?'12':'10')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_axis_font_size']??'')+_0x1ac0ec(0xce7)+this['_eT'](_0x1ac0ec(0x7b4))+'\x20'+_0x509b84(_0x1ac0ec(0x650),_0xb62af5)+_0x1ac0ec(0x5f2)+(_0x36bdd6?'1':_0x1ac0ec(0xbf1))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_axis_font_opacity']??'')+_0x1ac0ec(0xd38)+this[_0x1ac0ec(0x9df)]('X\x20Label\x20Color')+'\x20'+_0x509b84(_0x1ac0ec(0x4b6),_0x5eb8d7)+_0x1ac0ec(0xb1e)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_axis_color']??'')+'\x22><input\x20id=\x22x_axis_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this['_coerceColor'](_0x988d90[_0x1ac0ec(0xdb6)]||_0x1ac0ec(0x44d)))+_0x1ac0ec(0x44e):_0x217ee5===_0x1ac0ec(0xb4b)?'<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this['_eT'](_0x1ac0ec(0x75a))+_0x1ac0ec(0x3e7)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdd2))+'\x20'+_0x509b84(_0x1ac0ec(0xe4f),_0xb62af5)+_0x1ac0ec(0x756)+(_0x36bdd6?'12':'10')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x339)]??'')+'\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x7b4))+'\x20'+_0x509b84(_0x1ac0ec(0xd3d),_0xb62af5)+_0x1ac0ec(0x5f2)+(_0x36bdd6?'1':_0x1ac0ec(0xbf1))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xb66)]??'')+_0x1ac0ec(0xe3e)+this['_eT']('X\x20Label\x20Color')+'\x20'+_0x509b84(_0x1ac0ec(0xa19),_0x5eb8d7)+'</label><div\x20class=\x22ci\x22><input\x20id=\x22x_axis_color\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)]('Auto')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xdb6)]??'')+_0x1ac0ec(0xaa1)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0xdb6)]||_0x1ac0ec(0x44d)))+'\x22></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3c3))+'\x20'+_0x509b84('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.',_0x5eb8d7)+'</label><div\x20class=\x22ci\x22><input\x20id=\x22x_axis_date_color\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0xdca)]??'')+_0x1ac0ec(0xabf)+escapeHtml(this['_coerceColor'](_0x988d90[_0x1ac0ec(0xdca)]||_0x1ac0ec(0x776)))+_0x1ac0ec(0xae3):(_0x82c763?_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x89c))+_0x1ac0ec(0x3c2)+(_0x988d90['show_x_axis']!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x73d))+'\x20'+_0x509b84(_0x1ac0ec(0x233))+_0x1ac0ec(0x2bc)+(_0x988d90[_0x1ac0ec(0x9b4)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x952))+'\x20'+_0x509b84(_0x1ac0ec(0x980))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+_0x1ac0ec(0x859)+(_0x82c763?_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x75a))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd04))+'\x20'+_0x509b84(_0x1ac0ec(0xfb1))+_0x1ac0ec(0xcba)+[_0x1ac0ec(0x8e1),..._0x271cf5([_0x1ac0ec(0xebc),_0x1ac0ec(0x7f7),_0x1ac0ec(0x6ca),_0x1ac0ec(0xbc7),'HH',_0x1ac0ec(0x822),_0x1ac0ec(0xb2c),_0x1ac0ec(0xec2),'hh:mm\x20A',_0x1ac0ec(0x96f),_0x1ac0ec(0x94c),_0x1ac0ec(0x8ef),_0x1ac0ec(0x3fc),_0x1ac0ec(0x5fd),'DD-MM-YYYY','MM-YYYY',_0x1ac0ec(0xed1),_0x1ac0ec(0xd85),'ddd\x20DD\x20MMM',_0x1ac0ec(0xdc1)],_0x988d90[_0x1ac0ec(0x494)],[_0x1ac0ec(0x8e1)])['sort']((_0x421443,_0x46c506)=>_0x421443[_0x1ac0ec(0x3fb)]()<_0x46c506[_0x1ac0ec(0x3fb)]()?-0x1:_0x421443['toLowerCase']()>_0x46c506[_0x1ac0ec(0x3fb)]()?0x1:0x0)][_0x1ac0ec(0xb3f)](_0x308d8d=>_0x12e6a5(_0x308d8d,_0x988d90['datetime_format']??'system',_0x308d8d===_0x1ac0ec(0x8e1)?this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2b0)):_0x308d8d))[_0x1ac0ec(0x888)]('')+'</select></div></div>'+(_0x82c763&&_0xbb4d60?_0x1ac0ec(0x23c)+this['_eT']('Bar\x20Spacing')+'\x20'+_0x509b84(_0x1ac0ec(0x9fd))+_0x1ac0ec(0xec7)+escapeHtml(_0x13f6a5(_0x988d90[_0x1ac0ec(0x8e9)],0x4))+'\x22><span\x20class=\x22u\x22>px</span></div></div>':_0x1ac0ec(0xea4))+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x82c763&&_0xbb4d60?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8e5))+'\x20'+_0x509b84(_0x1ac0ec(0xa82))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22bar_corner_radius\x22\x20type=\x22number\x22\x20min=\x220\x22\x20max=\x2240\x22\x20step=\x221\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xf2c)]??'')+_0x1ac0ec(0xc97):'')+(_0x82c763?'<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdd2))+'\x20'+_0x509b84(_0x1ac0ec(0x75e),_0xb62af5)+_0x1ac0ec(0x756)+(_0x36bdd6?'12':'10')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_axis_font_size']??'')+'\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x7b4))+'\x20'+_0x509b84(_0x1ac0ec(0xf51),_0xb62af5)+_0x1ac0ec(0x5f2)+(_0x36bdd6?'1':'0.5')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xb66)]??'')+_0x1ac0ec(0x983):'')+_0x1ac0ec(0xded)+(_0x82c763?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x641))+'\x20'+_0x509b84(_0x1ac0ec(0x7bd),_0x5eb8d7)+_0x1ac0ec(0xb1e)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xdb6)]??'')+'\x22><input\x20id=\x22x_axis_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0xdb6)]||'#888888'))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3c3))+'\x20'+_0x509b84(_0x1ac0ec(0x62c),_0x5eb8d7)+_0x1ac0ec(0x5df)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_axis_date_color']??'')+'\x22><input\x20id=\x22x_axis_date_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0xdca)]||_0x1ac0ec(0x776)))+_0x1ac0ec(0x983):'')+_0x1ac0ec(0xded)+(_0x82c763?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf68))+'\x20'+_0x509b84('Controls\x20the\x20spacing\x20between\x20X-axis\x20tick\x20marks.\x20Auto\x20=\x20calculated\x20based\x20on\x20graph\x20width.\x20Or\x20choose\x20a\x20fixed\x20interval:\x20hourly,\x20daily,\x20weekly,\x20or\x20monthly.\x20Ticks\x20always\x20align\x20to\x20clean\x20boundaries\x20(hour\x20starts,\x20midnight,\x20Monday,\x201st\x20of\x20month).')+_0x1ac0ec(0x214)+_0x271cf5(['','1h','2h','3h','4h','6h','8h','12h','1d','2d','7d','1w','2w','1M','3M'],_0x988d90[_0x1ac0ec(0x1c9)])['map'](_0x2aaf0b=>_0x12e6a5(_0x2aaf0b,_0x988d90[_0x1ac0ec(0x1c9)]??'',_0x2aaf0b===''?this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b)):_0x2aaf0b['toUpperCase']()))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xb9a):'')+_0x1ac0ec(0x6c2):'')+_0x1ac0ec(0x859)+(_0x82c763?_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x6ed))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x96a))+'\x20'+_0x509b84(_0x1ac0ec(0x9ec))+_0x1ac0ec(0x1cd)+_0x271cf5(['dashed',_0x1ac0ec(0xa63),_0x1ac0ec(0x998),_0x1ac0ec(0x65b)],_0x988d90[_0x1ac0ec(0x86c)])[_0x1ac0ec(0xb3f)](_0x5ad523=>_0x12e6a5(_0x5ad523,_0x988d90[_0x1ac0ec(0x86c)]??_0x1ac0ec(0x2b5),this['_eT'](_0x5ad523[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x5ad523['slice'](0x1)[_0x1ac0ec(0x5ef)]('-','\x20'))))[_0x1ac0ec(0x888)]('')+'</select></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x63a))+'\x20'+_0x509b84(_0x1ac0ec(0x5e4))+_0x1ac0ec(0xe64)+escapeHtml(_0x988d90['x_grid_width']??'')+_0x1ac0ec(0x21d)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x33b))+'\x20'+_0x509b84(_0x1ac0ec(0x22a),_0x5eb8d7)+'</label><div\x20class=\x22ci\x22><input\x20id=\x22x_grid_color\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['x_grid_color']??'')+_0x1ac0ec(0x212)+escapeHtml(this['_coerceColor'](_0x988d90[_0x1ac0ec(0xb57)]||_0x1ac0ec(0x44d)))+'\x22></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x62d))+'\x20'+_0x509b84(_0x1ac0ec(0x8af),_0xb62af5)+_0x1ac0ec(0x348)+(_0x36bdd6?'1':_0x1ac0ec(0x668))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0x598)]??'')+'\x22></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+_0x1ac0ec(0x859))+_0x1ac0ec(0x6c2):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20mtc\x20'+(_0x50e953===_0x1ac0ec(0xdbc)?_0x1ac0ec(0x5b3):'')+'\x22\x20data-mtc=\x22calendar\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this['_eT'](_0x1ac0ec(0x621))+_0x1ac0ec(0x3e7)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3b8))+'\x20'+_0x509b84('One\x20group\x20name\x20for\x20every\x20synced\x20picker\x20on\x20this\x20card.\x20It\x20fills\x20the\x20Date\x20Picker,\x20Interval,\x20Resolution\x20and\x20Group\x20By\x20groups\x20that\x20are\x20left\x20empty,\x20so\x20a\x20Controller\x20card\x20and\x20the\x20chart\x20cards\x20it\x20drives\x20only\x20need\x20this\x20one\x20name.')+'</label><input\x20id=\x22sync_group\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)]('Group')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xae4)]??'')+_0x1ac0ec(0x71b)+((_0x217ee5===_0x1ac0ec(0x8fe)?_0x988d90[_0x1ac0ec(0x378)]!==![]:!!_0x988d90[_0x1ac0ec(0x378)])?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x964))+'\x20'+_0x509b84('Adds\x20a\x20button\x20to\x20the\x20date\x20picker\x20bar\x20that\x20returns\x20to\x20the\x20default\x20period\x20(Default\x20Mode,\x20or\x20the\x20first\x20visible\x20mode)\x20and\x20clears\x20any\x20custom\x20range.\x20A\x20Controller\x20card\x20shows\x20it\x20by\x20default.')+_0x1ac0ec(0xcc5)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x56b))+_0x1ac0ec(0x490)+(_0x988d90['energy_date_sync']?_0x1ac0ec(0xe82):'')+'\x20'+(_0x988d90[_0x1ac0ec(0xb1f)]?_0x1ac0ec(0x4cb):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x965))+'\x20'+_0x509b84(_0x1ac0ec(0xa58))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20id=\x22energy_collection_key\x22\x20class=\x22overlay-group-input\x20wide\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x1d3))+'\x22\x20value=\x22'+escapeHtml(_0x988d90['energy_collection_key']??'')+_0x1ac0ec(0x98c)+(_0x988d90[_0x1ac0ec(0xb1f)]?_0x1ac0ec(0xe82):'')+'\x20'+(_0x988d90[_0x1ac0ec(0xbc9)]?_0x1ac0ec(0x4cb):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Date\x20Picker')+'\x20'+_0x509b84('Built-in\x20date\x20navigation\x20with\x20D/W/M/Y\x20buttons,\x20calendar\x20and\x20presets.')+_0x1ac0ec(0x3c4)+(_0x217ee5===_0x1ac0ec(0x8fe)?_0x1ac0ec(0xb19)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x63b))+_0x1ac0ec(0x644):'')+_0x1ac0ec(0x27f)+(_0x988d90[_0x1ac0ec(0xb1f)]||_0x217ee5===_0x1ac0ec(0x8fe)?'':_0x1ac0ec(0xe80))+_0x1ac0ec(0x68d)+['top',_0x1ac0ec(0x8f5)]['map'](_0xed4e47=>_0x12e6a5(_0xed4e47,_0x988d90[_0x1ac0ec(0xf8d)]??_0x1ac0ec(0xf55),this['_eT'](_0xed4e47[_0x1ac0ec(0xdf0)](0x0)['toUpperCase']()+_0xed4e47['slice'](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xb59)+this[_0x1ac0ec(0x9df)]('Group')+'\x22\x20value=\x22'+escapeHtml(_0x988d90['date_picker_group']??'')+_0x1ac0ec(0xf78)+(_0x988d90['show_date_picker']||_0x217ee5==='controller'?_0x1ac0ec(0x8b0)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x870))+'\x20'+_0x509b84('Select\x20which\x20mode\x20buttons\x20to\x20show\x20in\x20the\x20picker\x20bar.\x20D/W/M/Y\x20are\x20calendar\x20periods\x20(they\x20snap\x20to\x20day/week/month/year\x20boundaries).\x20Last\x2024H\x20…\x20Last\x2012M\x20are\x20rolling\x20windows\x20that\x20always\x20end\x20at\x20now.\x20If\x20only\x20one\x20is\x20selected,\x20the\x20buttons\x20are\x20hidden\x20and\x20that\x20mode\x20is\x20locked.\x20Leave\x20the\x20four\x20calendar\x20modes\x20on\x20(rolling\x20off)\x20for\x20the\x20default.')+_0x1ac0ec(0x41d)+((()=>{const _0x469acf=_0x1ac0ec,_0x65bdef=_0x244bf0=>{const _0x312190=_0xa914,_0xed432c=_0x988d90[_0x312190(0x464)],_0x56dba3=_0x244bf0['k']in DATE_PICKER_RELATIVE_MODES,_0xa43336=_0xed432c?.['length']?_0xed432c[_0x312190(0xf06)](_0x244bf0['k']):_0x217ee5===_0x312190(0x8fe)?CONTROLLER_DATE_PICKER_MODES[_0x312190(0xf06)](_0x244bf0['k']):!_0x56dba3;return'<label\x20class=\x22si\x22\x20style=\x22min-width:auto\x22><div\x20class=\x22st\x22><input\x20type=\x22checkbox\x22\x20data-dpmode=\x22'+_0x244bf0['k']+'\x22\x20'+(_0xa43336?'checked':'')+_0x312190(0x575)+this['_eT'](_0x244bf0['l'])+'</span></div></label>';},_0x4dbd0f=(_0x34262f,_0x1a286e,_0x1b16e9)=>_0x469acf(0x3d4)+escapeHtml(this[_0x469acf(0x9df)](_0x34262f))+_0x469acf(0x644)+_0x509b84(_0x1a286e)+'</div><div\x20style=\x22display:flex;flex-wrap:wrap;gap:6px\x22>'+_0x1b16e9['map'](_0x65bdef)[_0x469acf(0x888)]('')+_0x469acf(0xe7a);return _0x4dbd0f(_0x469acf(0x9c4),_0x469acf(0x35b),[{'k':_0x469acf(0x309),'l':'D'},{'k':'week','l':'W'},{'k':'month','l':'M'},{'k':'year','l':'Y'}])+_0x4dbd0f(_0x469acf(0x1019),_0x469acf(0x35c),Object[_0x469acf(0x653)](DATE_PICKER_RELATIVE_MODES)[_0x469acf(0xb3f)](([_0x60eff,_0xafc4a9])=>({'k':_0x60eff,'l':_0xafc4a9['btn']})));})())+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)]('Window\x20Step')+'\x20'+_0x509b84(_0x1ac0ec(0x196))+_0x1ac0ec(0xe05)+escapeHtml(_0x988d90[_0x1ac0ec(0xc7d)]??0x1)+_0x1ac0ec(0x3d0)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2b0))+'\x20'+_0x509b84(_0x1ac0ec(0x527))+'</label><div\x20class=\x22sw\x22><select\x20id=\x22date_picker_default_mode\x22>'+[{'v':'','l':this[_0x1ac0ec(0x9df)]('Auto')},{'v':'day','l':this[_0x1ac0ec(0x9df)]('Day')},{'v':_0x1ac0ec(0x6f1),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2d1))},{'v':'month','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x4e4))},{'v':'year','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8c1))},{'v':_0x1ac0ec(0x83a),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x614))},{'v':'last_6h','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x676))},{'v':_0x1ac0ec(0x606),'l':this[_0x1ac0ec(0x9df)]('Last\x2012H')},{'v':_0x1ac0ec(0xf3d),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf90))},{'v':_0x1ac0ec(0xb8b),'l':this[_0x1ac0ec(0x9df)]('Last\x203D')},{'v':'last_7d','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x249))},{'v':_0x1ac0ec(0x49b),'l':this['_eT'](_0x1ac0ec(0x3a2))},{'v':_0x1ac0ec(0x239),'l':this['_eT']('Last\x2030D')},{'v':_0x1ac0ec(0xbc2),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x784))},{'v':_0x1ac0ec(0xca9),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x651))},{'v':_0x1ac0ec(0x6f3),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x46f))},{'v':'last_2y','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xcc0))},{'v':_0x1ac0ec(0x4b2),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf6c))},{'v':_0x1ac0ec(0x321),'l':this[_0x1ac0ec(0x9df)]('Last\x205Y')}]['map'](_0x281915=>_0x12e6a5(_0x281915['v'],_0x988d90['date_picker_default_mode']??'',_0x281915['l']))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x1ed)+this['_eT'](_0x1ac0ec(0xb28))+'\x20'+_0x509b84(_0x1ac0ec(0xcfd))+_0x1ac0ec(0x437)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0x439710=>_0x12e6a5(_0x439710,_0x988d90[_0x1ac0ec(0x8c8)]??_0x1ac0ec(0xaaf),this[_0x1ac0ec(0x9df)](_0x439710[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x439710[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xeae)+this[_0x1ac0ec(0x9df)]('Shortcuts')+'\x20'+_0x509b84(_0x1ac0ec(0x69e))+_0x1ac0ec(0x1e2)+[_0x1ac0ec(0xaaf),'center',_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0x40586d=>_0x12e6a5(_0x40586d,_0x988d90[_0x1ac0ec(0x8f0)]??_0x1ac0ec(0x1fd),this[_0x1ac0ec(0x9df)](_0x40586d[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x40586d[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+'</select></div></div></div>':'')+_0x1ac0ec(0x36d)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf91))+_0x1ac0ec(0x497)+this['_eT']('Start\x20Hour')+'\x20'+_0x509b84(_0x1ac0ec(0xa20))+'</label><input\x20id=\x22graph_start_hour\x22\x20type=\x22text\x22\x20placeholder=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0x69f)]?this['_eT']('Disabled'):_0x1ac0ec(0xfe7))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0x69f)]?'':_0x988d90['graph_start_hour']??'')+'\x22\x20'+(_0x988d90[_0x1ac0ec(0x69f)]?_0x1ac0ec(0x4cb):'')+'></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)]('End\x20Hour')+'\x20'+_0x509b84('Daily\x20end\x20hour\x20filter.\x20Plain\x20number\x20=\x20absolute\x20clock\x20hour\x20(22\x20=\x2022:00).\x20Prefix\x20with\x20+\x20or\x20-\x20for\x20relative\x20to\x20NOW\x20(+1\x20=\x20one\x20hour\x20from\x20now,\x20-0.5\x20=\x2030\x20min\x20ago)\x20—\x20in\x20hand-written\x20YAML\x20these\x20must\x20be\x20quoted.\x20Alternatively\x20use\x20now,\x20now+1,\x20now-1\x20which\x20are\x20YAML-safe.\x20Also\x20accepts\x20entity\x20ID\x20(sensor.sunset_hour).')+_0x1ac0ec(0x9ee)+escapeHtml(_0x988d90['graph_end_hour']??'')+'\x22></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x1ac0ec(0xcdd))+'\x20'+_0x509b84(_0x1ac0ec(0xe57))+_0x1ac0ec(0x1022)+_0x271cf5(['',_0x1ac0ec(0x309),_0x1ac0ec(0x9b9),_0x1ac0ec(0x6f1),_0x1ac0ec(0xe7d),'year'],_0x988d90[_0x1ac0ec(0x69f)])[_0x1ac0ec(0xb3f)](_0x2db394=>_0x12e6a5(_0x2db394,_0x988d90[_0x1ac0ec(0x69f)]??'',{'':this[_0x1ac0ec(0x9df)]('Off'),'day':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x7f9)),'tomorrow':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x696)),'week':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2d1)),'month':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x4e4)),'year':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8c1))}[_0x2db394]))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xeae)+this[_0x1ac0ec(0x9df)]('Year\x20Starts\x20In')+'\x20'+_0x509b84(_0x1ac0ec(0xa94))+_0x1ac0ec(0x585)+((()=>{const _0x548ec4=_0x1ac0ec,_0x170a27={'month':_0x548ec4(0x5cb),'timeZone':_0x548ec4(0xe15)},_0x43341d=getCachedDateTimeFormatter(this[_0x548ec4(0x463)],_0x170a27)||getCachedDateTimeFormatter('en',_0x170a27);return[{'v':'','l':this[_0x548ec4(0x9df)](_0x548ec4(0xd1b))}][_0x548ec4(0x9da)](Array['from']({'length':0xc},(_0x35bfdd,_0x327365)=>({'v':_0x327365+0x1,'l':_0x43341d?_0x43341d['format'](new Date(Date[_0x548ec4(0xe15)](0x7d0,_0x327365,0x1))):String(_0x327365+0x1)})))[_0x548ec4(0xb3f)](_0x46281b=>_0x12e6a5(_0x46281b['v'],_0x988d90[_0x548ec4(0x3ef)]??'',_0x46281b['l']))[_0x548ec4(0x888)]('');})())+'</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x20mt8\x22><div\x20class=\x22st\x22><input\x20id=\x22show_full_period\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x746)]?'checked':'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x489))+'\x20'+_0x509b84(_0x1ac0ec(0x28b))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tc\x20mtc\x20'+(_0x50e953===_0x1ac0ec(0x375)?_0x1ac0ec(0x5b3):'')+'\x22\x20data-mtc=\x22overlay\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x4d5321?_0x1ac0ec(0xe5a)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x441))+_0x1ac0ec(0x42d)+(_0x988d90[_0x1ac0ec(0xdf9)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Interval\x20Picker')+'\x20'+_0x509b84('Shows\x20predefined\x20time\x20interval\x20buttons\x20on\x20the\x20card.\x20Hidden\x20at\x20runtime\x20when\x20Date\x20Picker\x20or\x20Energy\x20Date\x20Sync\x20is\x20active\x20(those\x20take\x20priority\x20for\x20time\x20window\x20control).\x20The\x20Group\x20field\x20next\x20to\x20the\x20position\x20keeps\x20every\x20card\x20sharing\x20that\x20name\x20on\x20the\x20same\x20interval\x20—\x20receiving\x20cards\x20do\x20not\x20need\x20the\x20picker\x20enabled,\x20so\x20one\x20visible\x20picker\x20can\x20drive\x20the\x20whole\x20page.')+_0x1ac0ec(0x515)+(_0x988d90[_0x1ac0ec(0xdf9)]?'':_0x1ac0ec(0xe80))+_0x1ac0ec(0x85a)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),'right'][_0x1ac0ec(0xb3f)](_0x549d8f=>_0x12e6a5(_0x549d8f,_0x988d90[_0x1ac0ec(0x82c)]??'left',this[_0x1ac0ec(0x9df)](_0x549d8f[_0x1ac0ec(0xdf0)](0x0)['toUpperCase']()+_0x549d8f['slice'](0x1))))['join']('')+_0x1ac0ec(0x1042)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x97f))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x545)]??'')+_0x1ac0ec(0xc26)+(_0x988d90['show_attribute_list']?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x932))+'\x20'+_0x509b84(_0x1ac0ec(0xb54))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-opt'+(_0x988d90[_0x1ac0ec(0xb55)]?'':_0x1ac0ec(0xe80))+_0x1ac0ec(0x3a7)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0x3db72c=>_0x12e6a5(_0x3db72c,_0x988d90[_0x1ac0ec(0x9e7)]??_0x1ac0ec(0xaaf),this['_eT'](_0x3db72c['charAt'](0x0)[_0x1ac0ec(0x801)]()+_0x3db72c[_0x1ac0ec(0x165)](0x1))))['join']('')+_0x1ac0ec(0x565)+(_0x988d90[_0x1ac0ec(0x392)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xdd8))+'\x20'+_0x509b84(_0x1ac0ec(0xb3e))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-opt'+(_0x988d90[_0x1ac0ec(0x392)]?'':'\x20off')+_0x1ac0ec(0x7cf)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0xa51488=>_0x12e6a5(_0xa51488,_0x988d90[_0x1ac0ec(0x848)]??_0x1ac0ec(0xaaf),this['_eT'](_0xa51488[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0xa51488[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xefd)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x97f))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xc91)]??'')+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-row\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_group_by_picker\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90['show_group_by_picker']?'checked':'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x997))+'\x20'+_0x509b84('Shows\x20a\x20Group\x20By\x20dropdown\x20on\x20the\x20card\x20itself\x20—\x20switch\x20between\x20Interval,\x20Hour,\x202H/3H/4H/6H/12H,\x20Date,\x20Week,\x20Month\x20or\x20Year\x20bucketing\x20without\x20opening\x20the\x20editor.\x20Auto\x20returns\x20to\x20the\x20configured\x20value.\x20The\x20selection\x20persists\x20per\x20card\x20and\x20takes\x20priority\x20over\x20Auto\x20Scale\x20while\x20active.\x20The\x20Group\x20field\x20keeps\x20the\x20Group\x20By\x20selection\x20in\x20sync\x20across\x20every\x20card\x20sharing\x20that\x20name\x20—\x20independent\x20from\x20the\x20Points/Hour\x20picker\x27s\x20group.\x20The\x20Group\x20field\x20is\x20shared\x20with\x20the\x20Points/Hour\x20picker\x20—\x20one\x20name\x20keeps\x20BOTH\x20selections\x20in\x20sync\x20across\x20cards.')+_0x1ac0ec(0x515)+(_0x988d90['show_group_by_picker']?'':_0x1ac0ec(0xe80))+_0x1ac0ec(0x19d)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0x122700=>_0x12e6a5(_0x122700,_0x988d90[_0x1ac0ec(0x272)]??_0x1ac0ec(0xaaf),this[_0x1ac0ec(0x9df)](_0x122700[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x122700[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xb46)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x97f))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xb37)]??'')+_0x1ac0ec(0xf78)+(_0x19fda8&&!_0x4d5321?_0x1ac0ec(0x792)+(_0x988d90[_0x1ac0ec(0x236)]!==![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8e6))+'\x20'+_0x509b84(_0x1ac0ec(0x2f8))+_0x1ac0ec(0x433):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19fda8&&!_0x4d5321?_0x1ac0ec(0x1b8)+(_0x988d90['drill_down']?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Drill\x20Down')+'\x20'+_0x509b84('Click\x20a\x20single\x20bucket\x20on\x20the\x20graph\x20to\x20zoom\x20into\x20just\x20that\x20bucket\x20—\x20click\x20a\x20month\x20bar\x20to\x20see\x20its\x20days,\x20a\x20day\x20to\x20see\x20its\x20hours.\x20Double-click\x20steps\x20back\x20out,\x20same\x20as\x20brush\x20zooming,\x20and\x20Zoom\x20Sync\x20carries\x20the\x20new\x20window\x20to\x20grouped\x20cards.\x20Does\x20nothing\x20once\x20the\x20view\x20is\x20already\x20a\x20single\x20bucket.')+'</span></div></label>':'')+_0x1ac0ec(0x3e5)+(_0x19fda8&&!_0x4d5321?_0x1ac0ec(0xd92)+(_0x988d90['show_zoom_buttons']?'checked':'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0xed6))+'\x20'+_0x509b84(_0x1ac0ec(0x9be))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x3e5)+(_0x31237f?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22show_tooltip_total\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90['show_tooltip_total']!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT']('Center\x20Total')+'\x20'+_0x509b84(_0x1ac0ec(0xef8))+_0x1ac0ec(0x433):'')+_0x1ac0ec(0x3e5)+(_0x217ee5==='ranking'?_0x1ac0ec(0x98e)+(_0x988d90['show_tooltip_total']!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Percentages')+'\x20'+_0x509b84(_0x1ac0ec(0x563))+'</span></div></label>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x217ee5===_0x1ac0ec(0xd20)?_0x1ac0ec(0x98e)+(_0x988d90['show_tooltip_total']!==![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)]('Tooltip\x20Total')+'\x20'+_0x509b84('Shows\x20a\x20Total\x20row\x20in\x20the\x20hover\x20tooltip.')+'</span></div></label>':'')+_0x1ac0ec(0x3e5)+(_0x19fda8&&_0x988d90[_0x1ac0ec(0x236)]!==![]?_0x1ac0ec(0xc42)+(_0x988d90[_0x1ac0ec(0x66b)]?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x1bc))+'\x20'+_0x509b84(_0x1ac0ec(0x55d))+_0x1ac0ec(0x515)+(_0x988d90[_0x1ac0ec(0x66b)]?'':'\x20off')+_0x1ac0ec(0x57f)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb10))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x178)]??'')+'\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19fda8?_0x1ac0ec(0x3dc)+(_0x988d90[_0x1ac0ec(0xcfc)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Scroll\x20Sync')+'\x20'+_0x509b84(_0x1ac0ec(0xc34))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22overlay-opt'+(_0x988d90[_0x1ac0ec(0xcfc)]?'':_0x1ac0ec(0xe80))+_0x1ac0ec(0xe7e)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb10))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['scroll_sync_group']??'')+'\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+_0x1ac0ec(0xc47)+(_0x988d90['show_interval_picker']?_0x1ac0ec(0xce8)+this['_eT'](_0x1ac0ec(0x5ed))+'\x20'+_0x509b84(_0x1ac0ec(0x926))+'</label><div\x20style=\x22display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:8px\x22\x20id=\x22interval-chips\x22>'+['1H','2H','4H','8H','12H',_0x1ac0ec(0xf0e),'3D','7D',_0x1ac0ec(0x61f),'30D',_0x1ac0ec(0xd7e),'6M','1Y'][_0x1ac0ec(0xb3f)](_0x38b818=>{const _0x11aa0f=_0x1ac0ec,_0x53f6d6=_0x988d90[_0x11aa0f(0x561)],_0x474f9a=['1H','2H','4H','8H','12H',_0x11aa0f(0xf0e),'7D'],_0x2d47ff=_0x53f6d6&&Array['isArray'](_0x53f6d6)&&_0x53f6d6[_0x11aa0f(0xc02)]?_0x53f6d6[_0x11aa0f(0xf06)](_0x38b818):_0x474f9a[_0x11aa0f(0xf06)](_0x38b818);return _0x11aa0f(0x4ec)+_0x38b818+'\x22\x20'+(_0x2d47ff?_0x11aa0f(0xe82):'')+_0x11aa0f(0xc12)+_0x38b818+_0x11aa0f(0x433);})['join']('')+_0x1ac0ec(0xbf7)+this[_0x1ac0ec(0x9df)]('Default\x20Interval')+'\x20'+_0x509b84(_0x1ac0ec(0xb4e))+_0x1ac0ec(0xc3e)+[{'v':'','l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))}][_0x1ac0ec(0x9da)](INTERVAL_PICKER_OPTIONS[_0x1ac0ec(0xb3f)](_0x2f4ab1=>({'v':_0x2f4ab1[_0x1ac0ec(0xf1f)],'l':_0x2f4ab1['label']})))[_0x1ac0ec(0xb3f)](_0x1dd4b5=>_0x12e6a5(_0x1dd4b5['v'],_0x988d90[_0x1ac0ec(0xa2b)]??'',_0x1dd4b5['l']))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x81f):'')+_0x1ac0ec(0x6c2):_0x1ac0ec(0x5ab)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb52))+_0x1ac0ec(0xe7a))+_0x1ac0ec(0x859)+(_0x82c763&&!_0x4d5321?'<div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this['_eT'](_0x1ac0ec(0x1034))+_0x1ac0ec(0xd9d)+(_0xbb4d60?_0x1ac0ec(0x76a)+(_0x988d90[_0x1ac0ec(0x298)]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x1ac0ec(0xa9d))+'\x20'+_0x509b84(_0x1ac0ec(0x255))+_0x1ac0ec(0x433)+(_0x988d90[_0x1ac0ec(0x298)]?_0x1ac0ec(0xba6)+this['_eT'](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x80a)]??'')+_0x1ac0ec(0xfb4)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0x80a)]||_0x1ac0ec(0x927)))+_0x1ac0ec(0xf30):''):'')+_0x1ac0ec(0x647)+(_0x988d90['show_tooltip']!==![]?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x1034))+'\x20'+_0x509b84(_0x1ac0ec(0xcb3))+'</span></div></label>'+(_0x988d90[_0x1ac0ec(0xeed)]!==![]?_0x1ac0ec(0x98e)+(_0x988d90['show_tooltip_total']!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x917))+'\x20'+_0x509b84(_0x1ac0ec(0x45d))+_0x1ac0ec(0x433)+(_0x988d90[_0x1ac0ec(0x18a)]?_0x1ac0ec(0xdc9)+(_0x988d90[_0x1ac0ec(0x5b2)]!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)]('Stacked\x20Group\x20Totals')+'\x20'+_0x509b84(_0x1ac0ec(0x207))+_0x1ac0ec(0x433):''):'')+(_0x19fda8&&_0x988d90[_0x1ac0ec(0xeed)]!==![]?_0x1ac0ec(0x8f4)+(_0x988d90[_0x1ac0ec(0x553)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT']('Tooltip\x20Date\x20=\x20Axis')+'\x20'+_0x509b84(_0x1ac0ec(0xdcd))+_0x1ac0ec(0x433):'')+(_0x19fda8&&_0x988d90[_0x1ac0ec(0xeed)]!==![]?_0x1ac0ec(0xd8a)+(_0x988d90[_0x1ac0ec(0xb38)]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this['_eT'](_0x1ac0ec(0x6b7))+'\x20'+_0x509b84(_0x1ac0ec(0x1d5))+_0x1ac0ec(0x2fe)+(_0x988d90[_0x1ac0ec(0xb38)]?'':'\x20off')+'\x22><input\x20id=\x22tooltip_sync_group\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)]('All\x20cards')+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['tooltip_sync_group']??'')+_0x1ac0ec(0xf30):'')+(_0x19fda8&&_0x988d90['show_tooltip']!==![]?_0x1ac0ec(0xd07)+(_0x988d90['crosshair']?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x9a2))+'\x20'+_0x509b84(_0x1ac0ec(0x7a9))+_0x1ac0ec(0x433)+(_0x988d90[_0x1ac0ec(0x173)]?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22crosshair_delta\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0xb33)]!==![]?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb34))+'\x20'+_0x509b84('With\x20two\x20pins,\x20add\x20a\x20Δ\x20row\x20per\x20series\x20showing\x20the\x20change\x20from\x20A\x20to\x20B\x20as\x20a\x20value\x20and\x20a\x20percentage.')+_0x1ac0ec(0x735)+(_0x988d90['crosshair_legend']?_0x1ac0ec(0xe82):'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xfc3))+'\x20'+_0x509b84('Also\x20show\x20the\x20pinned\x20values\x20next\x20to\x20each\x20legend\x20entry.')+_0x1ac0ec(0x433):''):'')+_0x1ac0ec(0x743)+(_0x19fda8&&_0x988d90[_0x1ac0ec(0xeed)]!==![]?_0x1ac0ec(0xf61)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x20a))+'\x20'+_0x509b84(_0x1ac0ec(0x499))+_0x1ac0ec(0x852)+[[_0x1ac0ec(0x744),this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2b0))],[_0x1ac0ec(0x7ea),this['_eT'](_0x1ac0ec(0xf95))],[_0x1ac0ec(0x5f4),this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8ff))]][_0x1ac0ec(0xb3f)](([_0x219ec4,_0x2a7e54])=>_0x12e6a5(_0x219ec4,_0x988d90['tooltip_order']??_0x1ac0ec(0x744),_0x2a7e54))['join']('')+_0x1ac0ec(0xd58)+(_0x988d90[_0x1ac0ec(0x173)]?_0x1ac0ec(0x528)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x19c))+'\x20'+_0x509b84('How\x20many\x20pins\x20can\x20be\x20placed:\x20one,\x20or\x20two\x20to\x20compare\x20two\x20points\x20in\x20time.')+_0x1ac0ec(0xc2b)+[['1','1'],['2','2']][_0x1ac0ec(0xb3f)](([_0x146db2,_0xe09c45])=>_0x12e6a5(_0x146db2,String(_0x988d90[_0x1ac0ec(0xbe7)]??0x1),_0xe09c45))['join']('')+_0x1ac0ec(0x448):'')+_0x1ac0ec(0xe7a):'')+'</div>':'')+_0x1ac0ec(0x859)+(!_0x4d5321?_0x1ac0ec(0xe1b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb7f))+_0x1ac0ec(0x497)+this['_eT'](_0x1ac0ec(0x1f5))+'\x20'+_0x509b84(_0x1ac0ec(0x1c8))+_0x1ac0ec(0xccf)+(_0x988d90[_0x1ac0ec(0x254)]||'')+'\x22></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd8d))+'\x20'+_0x509b84(_0x1ac0ec(0xf35))+_0x1ac0ec(0x6b3)+escapeHtml(_0x988d90[_0x1ac0ec(0x355)]??'')+_0x1ac0ec(0x53d):'')+_0x1ac0ec(0x859)+(_0x19fda8&&!_0x4d5321?'<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc85))+'\x20'+_0x509b84('Add\x20reference\x20lines,\x20event\x20markers,\x20active-period\x20bands,\x20and\x20comfort\x20zone\x20highlights\x20to\x20the\x20graph.')+_0x1ac0ec(0x844)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc6e))+'</span><label\x20class=\x22ms\x22\x20style=\x22margin-left:auto\x22\x20title=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x5ea))+'\x22><input\x20id=\x22show_now_line\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0xc31)]!==![]?'checked':'')+_0x1ac0ec(0xad0)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xc01))+'\x20'+_0x509b84(_0x1ac0ec(0x31d))+'</label><div\x20class=\x22ci\x22><input\x20id=\x22now_line_color\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x996)]??'')+_0x1ac0ec(0xb07)+escapeHtml(this['_coerceColor'](_0x988d90['now_line_color']||_0x1ac0ec(0x44d)))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x190))+'\x20'+_0x509b84(_0x1ac0ec(0x765))+_0x1ac0ec(0xac8)+escapeHtml(_0x988d90[_0x1ac0ec(0x29b)]??'')+'\x22></div></div></div><div\x20class=\x22r2\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xfb3))+'\x20'+_0x509b84(_0x1ac0ec(0xcbf))+_0x1ac0ec(0xe49)+escapeHtml(_0x988d90[_0x1ac0ec(0xbfc)]??'')+'\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x642))+'\x20'+_0x509b84('Line\x20pattern\x20of\x20the\x20now\x20line.\x20Solid,\x20Dashed,\x20Dotted,\x20or\x20Long\x20Dash.\x20Default\x20is\x20Dashed.')+_0x1ac0ec(0x435)+_0x271cf5(['',_0x1ac0ec(0x2b5),_0x1ac0ec(0xa63),'dotted',_0x1ac0ec(0x65b)],_0x988d90['now_line_style'])[_0x1ac0ec(0xb3f)](_0x1440a7=>_0x12e6a5(_0x1440a7,_0x988d90[_0x1ac0ec(0x3d5)]??'',_0x1440a7===''?this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x2b0)):this[_0x1ac0ec(0x9df)](_0x1440a7['charAt'](0x0)[_0x1ac0ec(0x801)]()+_0x1440a7[_0x1ac0ec(0x165)](0x1)[_0x1ac0ec(0x5ef)]('-','\x20'))))[_0x1ac0ec(0x888)]('')+'</select></div></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ann-list\x22>'+((_0x988d90[_0x1ac0ec(0x163)]||[])[_0x1ac0ec(0xb3f)]((_0x54a918,_0x187e3c)=>{const _0x7a7d3b=_0x1ac0ec,_0x4abf04=_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0x536)||_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0x7db),_0x5c0756=_0x4abf04&&('start'in _0x54a918||_0x7a7d3b(0x244)in _0x54a918||_0x7a7d3b(0xfe2)in _0x54a918),_0x1f5d87=_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0xe42);return _0x7a7d3b(0xf58)+_0x187e3c+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22ann-row-header\x22><span\x20class=\x22ann-row-type\x22>'+({'event':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xd03)),'span':this['_eT'](_0x7a7d3b(0xa14)),'threshold':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x31f)),'band':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x89f))}[_0x54a918['type']]||this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xd03)))+_0x7a7d3b(0xfc6)+this['_eT'](_0x7a7d3b(0xd76))+'\x22><svg\x20width=\x2212\x22\x20height=\x2212\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2218\x22\x20y1=\x226\x22\x20x2=\x226\x22\x20y2=\x2218\x22/><line\x20x1=\x226\x22\x20y1=\x226\x22\x20x2=\x2218\x22\x20y2=\x2218\x22/></svg></button></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>'+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x73c))+_0x7a7d3b(0x425)+[_0x7a7d3b(0x536),_0x7a7d3b(0x7db),_0x7a7d3b(0xe42),_0x7a7d3b(0xed2)]['map'](_0x582d1d=>_0x7a7d3b(0xc4a)+escapeHtml(_0x582d1d)+'\x22\x20'+(_0x54a918[_0x7a7d3b(0xefa)]===_0x582d1d?'selected':'')+'>'+{'event':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x884)),'span':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xc93)),'threshold':this['_eT'](_0x7a7d3b(0xb83)),'band':this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xc5a))}[_0x582d1d]+_0x7a7d3b(0x6be))[_0x7a7d3b(0x888)]('')+'</select></div></div>'+(_0x4abf04?'<div\x20class=\x22f\x22><label>'+this['_eT']('Source')+_0x7a7d3b(0xef4)+(!_0x5c0756?_0x7a7d3b(0xd52):'')+'>'+this['_eT'](_0x7a7d3b(0xd4c))+_0x7a7d3b(0xd6b)+(_0x5c0756?_0x7a7d3b(0xd52):'')+'>'+this[_0x7a7d3b(0x9df)]('Manual')+_0x7a7d3b(0xc0a):_0x7a7d3b(0x23c)+this['_eT'](_0x7a7d3b(0xd1d))+_0x7a7d3b(0xb4d)+escapeHtml(_0x54a918['value']??'')+_0x7a7d3b(0x869)+(_0x1f5d87?_0x7a7d3b(0xfaa):'')+_0x7a7d3b(0x170)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x495))+_0x7a7d3b(0xe70)+escapeHtml(_0x54a918[_0x7a7d3b(0xee4)]??'')+_0x7a7d3b(0x446))+_0x7a7d3b(0x315)+(_0x4abf04&&!_0x5c0756?'<div\x20class=\x22r3\x20mt8\x22\x20style=\x22gap:6px\x22><div\x20class=\x22f\x22><label>'+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xd4c))+'</label><input\x20class=\x22ann-val1\x22\x20type=\x22text\x22\x20placeholder=\x22binary_sensor.x\x22\x20value=\x22'+escapeHtml(_0x54a918['entity']||'')+_0x7a7d3b(0xc1b)+this['_eT'](_0x7a7d3b(0xc82))+'\x20'+_0x509b84(_0x7a7d3b(0xe13))+_0x7a7d3b(0x1eb)+escapeHtml(_0x54a918[_0x7a7d3b(0xf0f)]||'')+_0x7a7d3b(0xc1b)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xc4e))+_0x7a7d3b(0x234)+(_0x54a918['attribute']?_0x7a7d3b(0xfd9):'on')+'\x22\x20value=\x22'+escapeHtml(_0x54a918[_0x7a7d3b(0x5f5)]??'')+_0x7a7d3b(0xf30):'')+(_0x4abf04&&_0x5c0756?_0x7a7d3b(0xf70)+(_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0x7db)?'r2':'r2')+_0x7a7d3b(0x5eb)+(_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0x7db)?this[_0x7a7d3b(0x9df)]('Start'):this['_eT'](_0x7a7d3b(0xfdd)))+_0x7a7d3b(0x37f)+escapeHtml(_0x54a918['type']===_0x7a7d3b(0x7db)?_0x54a918[_0x7a7d3b(0x4b0)]||'':_0x54a918[_0x7a7d3b(0xfe2)]||'')+_0x7a7d3b(0x446)+(_0x54a918[_0x7a7d3b(0xefa)]===_0x7a7d3b(0x7db)?_0x7a7d3b(0x23c)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x8ba))+_0x7a7d3b(0xc7e)+escapeHtml(_0x54a918[_0x7a7d3b(0x244)]||'')+_0x7a7d3b(0x446):_0x7a7d3b(0xea4))+'</div>':'')+_0x7a7d3b(0x8dc)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xd9e))+'</label><input\x20class=\x22ann-label\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xac5))+'\x22\x20value=\x22'+escapeHtml(_0x54a918[_0x7a7d3b(0xf1f)]||'')+_0x7a7d3b(0xc1b)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xc01))+_0x7a7d3b(0x189)+escapeHtml(this[_0x7a7d3b(0x957)](_0x54a918['color']||_0x7a7d3b(0x4c9)))+_0x7a7d3b(0xc1b)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0x190))+_0x7a7d3b(0x4d8)+(_0x54a918['type']===_0x7a7d3b(0xed2)||_0x54a918['type']==='span'?_0x7a7d3b(0x668):'1')+'\x22\x20value=\x22'+escapeHtml(_0x54a918[_0x7a7d3b(0x7a2)]??'')+'\x22><span\x20class=\x22u\x22></span></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x4abf04?_0x7a7d3b(0x4c7)+(_0x54a918[_0x7a7d3b(0x205)]!==![]?'checked':'')+_0x7a7d3b(0xd41)+this[_0x7a7d3b(0x9df)](_0x7a7d3b(0xc2c))+_0x7a7d3b(0x669):'')+_0x7a7d3b(0xf54);})['join']('')||_0x1ac0ec(0x2f7)+this['_eT'](_0x1ac0ec(0x221))+_0x1ac0ec(0x743))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22ann-add\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x82d))+_0x1ac0ec(0x103e):'')+_0x1ac0ec(0x645),_0x50a7b5=_0x988d90[_0x1ac0ec(0x45c)]?buildAreaSuffixes(this[_0x1ac0ec(0x1dc)],this[_0x1ac0ec(0xfef)],null,(_0x291354,_0x254a7d,_0x3fc853)=>applyAttributeName(_0x988d90,this[_0x1ac0ec(0x1dc)],_0x3fc853,_0x291354,_0x291354[_0x1ac0ec(0xf0f)])):null,_0x2c06ba=this['_entities'][_0x1ac0ec(0xb3f)]((_0x4c4007,_0x37976a)=>{const _0x53a8bc=_0x1ac0ec,_0x1bac9f=this[_0x53a8bc(0x1dc)]?.[_0x53a8bc(0x4f9)]?.[_0x4c4007['entity']]||null,_0x56b13e=_0x1bac9f?.[_0x53a8bc(0x467)]?.['friendly_name']??_0x4c4007[_0x53a8bc(0xdee)]??_0x4c4007[_0x53a8bc(0x974)]??_0x53a8bc(0x65a)+(_0x37976a+0x1),_0x23ba16=_0x50a7b5&&_0x4c4007[_0x53a8bc(0xdee)]&&typeof _0x4c4007[_0x53a8bc(0xdee)]===_0x53a8bc(0xade)&&!isTemplateString(_0x4c4007[_0x53a8bc(0xdee)])?_0x4c4007[_0x53a8bc(0xdee)]:applyAttributeName(_0x988d90,this[_0x53a8bc(0x1dc)],_0x56b13e,_0x4c4007,_0x4c4007[_0x53a8bc(0xf0f)]),_0x5eea52=_0x23ba16+(_0x50a7b5?.['get'](_0x37976a)||''),_0x50ef61=_0x1bac9f?parseFloat(_0x1bac9f['state']):null,_0x132b92=_0x1bac9f?.[_0x53a8bc(0x467)]?.[_0x53a8bc(0x398)]||'',_0x423f25=((()=>{const _0x23264b=_0x53a8bc,_0x5f35ff=_0x4c4007['color'];if(!_0x5f35ff||_0x5f35ff==='threshold')return _0x23264b(0x3e4);if(typeof _0x5f35ff===_0x23264b(0xade)&&_0x5f35ff['includes']('{{'))return this[_0x23264b(0x3c5)](_0x5f35ff)||'#ff4757';return _0x5f35ff||_0x23264b(0x3e4);})()),_0xf96cd7=_0x4c4007[_0x53a8bc(0x8cc)]??_0x53a8bc(0x8d4),_0x5bb4f2=_0x4c4007['graph_type']??'line',_0x2bfba5=_0x4c4007[_0x53a8bc(0xc48)]??'avg',_0x1123b5=_0x4c4007[_0x53a8bc(0x3de)]??_0x53a8bc(0x8e1),_0x5e42e4=_0x4c4007[_0x53a8bc(0x199)]??_0x53a8bc(0xe5e),_0x5a74fb=_0x4c4007['rise_fall_colors']??null,_0x250d61=_0x4c4007[_0x53a8bc(0xdd5)]??null,_0x1f972b=this[_0x53a8bc(0xb40)]['has']('e-'+_0x37976a),_0x438b22=this[_0x53a8bc(0xf69)][_0x37976a]||_0x53a8bc(0x57e),_0x8e5b58=((()=>{const _0x287591=_0x53a8bc;if(_0x4c4007['fixed_value']||_0x4c4007[_0x287591(0xf0f)]||_0x4c4007['data_attribute']||_0x4c4007[_0x287591(0xa7e)])return _0x287591(0xb6d)+this[_0x287591(0x9df)]('Other')+_0x287591(0x644);if(_0x4c4007[_0x287591(0xd53)]){const _0x35d474=_0x4c4007['statistic_id'][_0x287591(0xf06)](':');return _0x287591(0xd82)+(_0x35d474?_0x287591(0x9e8):_0x287591(0xa48))+'\x22>'+(_0x35d474?this[_0x287591(0x9df)](_0x287591(0x546)):this[_0x287591(0x9df)](_0x287591(0x8c3)))+_0x287591(0x644);}const _0x3f0fbd=_0x1bac9f?.[_0x287591(0x467)]?.[_0x287591(0xd67)];if(_0x3f0fbd===_0x287591(0x656)||_0x3f0fbd===_0x287591(0xe04)||_0x3f0fbd===_0x287591(0x8bf))return'<span\x20class=\x22ds-badge\x20ds-lts\x22\x20title=\x22state_class='+_0x3f0fbd+_0x287591(0x577)+this['_eT'](_0x287591(0x8c3))+'</span>';return _0x287591(0x768)+this[_0x287591(0x9df)](_0x287591(0x18f))+'</span>';})()),_0x22cd07=Array['isArray'](_0x4c4007[_0x53a8bc(0xdf3)])?_0x4c4007[_0x53a8bc(0xdf3)][_0x53a8bc(0xb3f)]((_0x1cea8f,_0xd2f1b2)=>_0x53a8bc(0xf27)+_0xd2f1b2+_0x53a8bc(0x778)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1db))+_0x53a8bc(0x46e)+escapeHtml(_0x1cea8f['period']??0x7)+_0x53a8bc(0xc1b)+this['_eT']('Color')+_0x53a8bc(0xaf3)+escapeHtml(this[_0x53a8bc(0x957)](_0x1cea8f['color']||_0x53a8bc(0x57d)))+_0x53a8bc(0xc33)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xd9e))+'</label><label\x20class=\x22ms\x22\x20title=\x22Show\x20\x27MA'+(_0x1cea8f[_0x53a8bc(0xe4c)]??0x7)+_0x53a8bc(0xaa8)+(_0x1cea8f[_0x53a8bc(0x6ac)]?_0x53a8bc(0xe82):'')+_0x53a8bc(0x86d)+this[_0x53a8bc(0x9df)]('Delete')+_0x53a8bc(0xf46))['join'](''):'',_0x38e84c=Array[_0x53a8bc(0x902)](_0x250d61?.['values'])?_0x250d61[_0x53a8bc(0x202)]['map']((_0x45457d,_0xe5040e)=>'\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22thr-row\x22\x20data-row=\x22'+_0xe5040e+_0x53a8bc(0x778)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xd1d))+_0x53a8bc(0x73b)+escapeHtml(String(_0x45457d[_0x53a8bc(0x2ea)]??0x0))+_0x53a8bc(0xc1b)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xc01))+_0x53a8bc(0xc75)+escapeHtml(_0x45457d[_0x53a8bc(0xd95)]??'')+'\x22><input\x20class=\x22thr-col-pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this['_coerceColor'](_0x45457d[_0x53a8bc(0xd95)]))+'\x22'+(/^[a-z_]+\.[a-z0-9_]+/i[_0x53a8bc(0x920)](String(_0x45457d['color']??''))||String(_0x45457d[_0x53a8bc(0xd95)]??'')['includes']('{{')?_0x53a8bc(0x5a3):'')+_0x53a8bc(0x379)+this[_0x53a8bc(0x9df)]('Delete')+_0x53a8bc(0xf46))[_0x53a8bc(0x888)](''):'',_0x809622=_0x4c4007[_0x53a8bc(0xa43)]!==![],_0x14575e=_0x4c4007[_0x53a8bc(0x460)]!==![],_0x3cda60=_0x4c4007['show_fill']!==![],_0x1051ca=!!_0x4c4007['show_points'],_0x1aeabd=_0x4c4007['show_state']!==![],_0x15e0ae=_0x4c4007[_0x53a8bc(0xcfa)]!==![],_0x580422=!!_0x4c4007['show_in_legend'],_0x59f474=_0x1b572e=>_0x1b572e?'':_0x53a8bc(0xa53);return _0x53a8bc(0x569)+(_0x1f972b?_0x53a8bc(0x764):'')+'\x20'+(_0x4c4007['enabled']===![]?_0x53a8bc(0x53b):'')+_0x53a8bc(0x44b)+_0x37976a+_0x53a8bc(0xedf)+this[_0x53a8bc(0x9df)]('Drag\x20to\x20reorder')+_0x53a8bc(0xdc4)+_0x423f25+_0x53a8bc(0x1c5)+(_0x217ee5===_0x53a8bc(0xa1c)?_0x53a8bc(0xd83)+(_0x37976a===0x0?'X':'Y')+_0x53a8bc(0x644):'')+'<span\x20class=\x22en\x22>'+_0x5eea52+_0x53a8bc(0x644)+_0x8e5b58+(_0x50ef61!==null&&!isNaN(_0x50ef61)?_0x53a8bc(0x56a)+_0x50ef61[_0x53a8bc(0x198)](_0x4c4007['decimals']??0x1)+'\x20'+_0x132b92+_0x53a8bc(0x644):'')+_0x53a8bc(0x953)+this['_eT'](_0x53a8bc(0xb48))+'\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><rect\x20x=\x229\x22\x20y=\x229\x22\x20width=\x2213\x22\x20height=\x2213\x22\x20rx=\x222\x22/><path\x20d=\x22M5\x2015H4a2\x202\x200\x200\x201-2-2V4a2\x202\x200\x200\x201\x202-2h9a2\x202\x200\x200\x201\x202\x202v1\x22/></svg></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22edb\x22\x20data-action=\x22delete\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><polyline\x20points=\x223\x206\x205\x206\x2021\x206\x22/><path\x20d=\x22M19\x206v14a2\x202\x200\x200\x201-2\x202H7a2\x202\x200\x200\x201-2-2V6m3\x200V4a2\x202\x200\x200\x201\x202-2h4a2\x202\x200\x200\x201\x202\x202v2\x22/></svg></button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22eb\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tabs\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22tb\x20'+(_0x438b22===_0x53a8bc(0x57e)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0x761)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xd21))+_0x53a8bc(0x1020)+(_0x438b22===_0x53a8bc(0xec6)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xc2d)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x2b9))+_0x53a8bc(0x1020)+(_0x438b22==='data'?_0x53a8bc(0x5b3):'')+_0x53a8bc(0x30d)+this['_eT'](_0x53a8bc(0xaec))+'</button><button\x20class=\x22tb\x20'+(_0x438b22===_0x53a8bc(0xb25)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xfb7)+this['_eT'](_0x53a8bc(0x6d0))+_0x53a8bc(0x1020)+(_0x438b22===_0x53a8bc(0x2ee)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xc1d)+this['_eT'](_0x53a8bc(0xd5d))+'</button><button\x20class=\x22tb\x20'+(_0x438b22===_0x53a8bc(0xfa2)?'active':'')+_0x53a8bc(0x8ea)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x2e6))+_0x53a8bc(0x55b)+(_0x438b22==='general'?'active':'')+_0x53a8bc(0x6e3)+(_0x4c4007[_0x53a8bc(0x1007)]===![]?'':_0x53a8bc(0xe82))+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xbd6))+'\x20'+_0x509b84(_0x53a8bc(0x9a3),_0x53a8bc(0xa60))+_0x53a8bc(0x4f3)+this['_eT'](_0x53a8bc(0x511))+'\x20'+_0x509b84(_0x53a8bc(0xba7))+'</label><input\x20class=\x22e-enabled_ref\x22\x20type=\x22text\x22\x20placeholder=\x22input_boolean.x\x20or\x20!input_boolean.x\x22\x20value=\x22'+escapeHtml(enabledRefSpec(_0x4c4007[_0x53a8bc(0x1007)])?_0x4c4007[_0x53a8bc(0x1007)][_0x53a8bc(0xa11)]():'')+_0x53a8bc(0x9d4)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xd4c))+_0x53a8bc(0x225)+(_0x4c4007[_0x53a8bc(0x974)]||'')+'\x22></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0xe3b))+'\x20'+_0x509b84('For\x20imported/external\x20statistics\x20with\x20no\x20regular\x20entity\x20in\x20HA\x20(e.g.\x20gazpar:gazpar_consumption,\x20linky:linky_consumption).\x20These\x20exist\x20only\x20in\x20the\x20statistics\x20database\x20and\x20appear\x20on\x20the\x20Energy\x20dashboard.\x20Leave\x20empty\x20for\x20normal\x20entities\x20—\x20those\x20automatically\x20use\x20long-term\x20statistics\x20if\x20their\x20state_class\x20is\x20measurement,\x20total,\x20or\x20total_increasing.')+'</label><input\x20class=\x22e-statistic_id\x22\x20type=\x22text\x22\x20placeholder=\x22e.g.\x20gazpar:consumption\x22\x20value=\x22'+escapeHtml(_0x4c4007['statistic_id']??'')+_0x53a8bc(0xde4)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xe6a))+'\x20'+_0x509b84(_0x53a8bc(0x2ac))+_0x53a8bc(0x476)+escapeHtml(_0x1bac9f?.['attributes']?.[_0x53a8bc(0x457)]||'name')+_0x53a8bc(0x906)+escapeHtml(_0x4c4007[_0x53a8bc(0xdee)]??'')+_0x53a8bc(0xc1b)+this['_eT']('Unit')+'\x20'+_0x509b84(_0x53a8bc(0xf7f))+_0x53a8bc(0x80b)+escapeHtml(_0x1bac9f?.[_0x53a8bc(0x467)]?.[_0x53a8bc(0x398)]||_0x53a8bc(0x6c8))+_0x53a8bc(0x906)+escapeHtml(_0x4c4007[_0x53a8bc(0x32e)]??'')+'\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0x8ca))+'\x20'+_0x509b84(_0x53a8bc(0x172))+_0x53a8bc(0x654)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xf16))+_0x53a8bc(0x906)+escapeHtml(_0x4c4007[_0x53a8bc(0xce6)]??'')+'\x22></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fg0\x22><div\x20class=\x22fgl\x22>'+this[_0x53a8bc(0x9df)]('Tap\x20Action')+'\x20'+_0x509b84(_0x53a8bc(0x605))+_0x53a8bc(0x604)+_0x37976a+_0x53a8bc(0x908)+(_0x438b22===_0x53a8bc(0x60e)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xaf0)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x253))+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x69c))+'\x20'+_0x509b84('Which\x20Y\x20axis\x20this\x20entity\x20is\x20plotted\x20against.\x20Primary\x20=\x20left\x20axis\x20(shared\x20scale).\x20Secondary\x20=\x20right\x20axis\x20(shared\x20scale).\x20Independent\x20=\x20own\x20hidden\x20scale\x20based\x20on\x20entity\x20min/max\x20—\x20ideal\x20for\x20overlaying\x20sensors\x20with\x20very\x20different\x20units\x20(e.g.\x20temperature\x20+\x20illuminance)\x20for\x20trend\x20comparison.')+_0x53a8bc(0x46a)+_0x12e6a5('primary',_0xf96cd7,this['_eT']('Primary'))+_0x12e6a5('secondary',_0xf96cd7,this[_0x53a8bc(0x9df)](_0x53a8bc(0xc05)))+_0x12e6a5(_0x53a8bc(0x397),_0xf96cd7,this[_0x53a8bc(0x9df)]('Independent'))+'</select></div></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0xc82))+'\x20'+_0x509b84(_0x53a8bc(0x318))+'</label><div\x20class=\x22sw\x22><select\x20class=\x22e-attribute\x22><option\x20value=\x22\x22>—\x20'+this['_eT'](_0x53a8bc(0xc4e))+_0x53a8bc(0x500)+((()=>{const _0x313849=_0x53a8bc,_0x12b8ab=this['_hass']?.['states']?.[_0x4c4007['entity']];if(!_0x12b8ab)return'';const _0x402e80=Object[_0x313849(0x3ab)](_0x12b8ab[_0x313849(0x467)]||{})[_0x313849(0xd09)]();return _0x402e80['map'](_0xcb2007=>_0x313849(0xc4a)+escapeHtml(_0xcb2007)+'\x22\x20'+((_0x4c4007[_0x313849(0xf0f)]??'')===_0xcb2007?'selected':'')+'>'+escapeHtml(_0xcb2007['replace'](/_/g,'\x20')[_0x313849(0x5ef)](/\b\w/g,_0x1ea4f7=>_0x1ea4f7[_0x313849(0x801)]()))+_0x313849(0x6be))[_0x313849(0x888)]('');})())+_0x53a8bc(0xeae)+this['_eT'](_0x53a8bc(0xead))+'\x20'+_0x509b84(_0x53a8bc(0xb1b),'On\x20long-term\x20statistics\x20(a\x20calendar\x20group_by,\x20or\x20a\x20window\x20beyond\x20the\x20recorder\x27s\x20retention)\x20sum\x20needs\x20a\x20counter\x20sensor\x20(state_class\x20total\x20/\x20total_increasing).\x20A\x20measurement\x20sensor\x20(W,\x20°C,\x20%)\x20has\x20no\x20sum\x20statistics\x20and\x20draws\x20nothing\x20—\x20use\x20avg\x20or\x20max,\x20or\x20change\x20on\x20its\x20energy\x20counter.')+_0x53a8bc(0x96e)+[_0x53a8bc(0xfbc),'min',_0x53a8bc(0x220),_0x53a8bc(0xa5d),_0x53a8bc(0x2d8),_0x53a8bc(0xf49),_0x53a8bc(0x7e6),_0x53a8bc(0xe34),_0x53a8bc(0x934),_0x53a8bc(0xc09)][_0x53a8bc(0xb3f)](_0x5dc63d=>_0x12e6a5(_0x5dc63d,_0x2bfba5,{'avg':_0x53a8bc(0x7e2),'min':'Min','max':_0x53a8bc(0x701),'last':_0x53a8bc(0x4fa),'first':_0x53a8bc(0x730),'median':_0x53a8bc(0xce0),'sum':_0x53a8bc(0xf7c),'change':'Change','diff':'Diff','delta':_0x53a8bc(0x95f)}[_0x5dc63d]))['join']('')+_0x53a8bc(0x432)+((_0x4c4007[_0x53a8bc(0xc48)]??_0x53a8bc(0xfbc))==='max'?_0x53a8bc(0x7b2)+(_0x4c4007[_0x53a8bc(0x296)]!==![]?_0x53a8bc(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0xf43))+'\x20'+_0x509b84(_0x53a8bc(0x5a9))+_0x53a8bc(0x433):'')+_0x53a8bc(0x3e5)+((_0x4c4007[_0x53a8bc(0xc48)]??_0x53a8bc(0xfbc))==='change'?_0x53a8bc(0x1a8)+(_0x4c4007[_0x53a8bc(0xa81)]===!![]?'checked':'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xdab))+'\x20'+_0x509b84(_0x53a8bc(0xfa6))+'</span></div></label>':'')+_0x53a8bc(0xb02)+this[_0x53a8bc(0x9df)]('Points/Hour')+'\x20'+_0x509b84(_0x53a8bc(0xc54))+_0x53a8bc(0x868)+_0x9a3350(_0x4c4007[_0x53a8bc(0x71e)],!![])+_0x53a8bc(0xeae)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x49e))+'\x20'+_0x509b84('Number\x20of\x20decimal\x20places\x20shown\x20for\x20this\x20entity\x27s\x20value\x20in\x20the\x20state\x20row\x20and\x20extrema\x20labels.\x20Does\x20not\x20affect\x20graph\x20precision.')+_0x53a8bc(0x635)+escapeHtml(_0x4c4007[_0x53a8bc(0xbcf)]??0x1)+'\x22></div><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)]('Number\x20Format')+'\x20'+_0x509b84(_0x53a8bc(0xd05))+_0x53a8bc(0xcde)+_0x12e6a5('system',_0x1123b5,this['_eT']('System'))+_0x12e6a5(_0x53a8bc(0xd6f),_0x1123b5,'1.234,56')+_0x12e6a5(_0x53a8bc(0xbb0),_0x1123b5,_0x53a8bc(0x74c))+_0x53a8bc(0xbb8)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1c7))+'\x20'+_0x509b84(_0x53a8bc(0xdcf))+'</label><div\x20class=\x22sw\x22><select\x20class=\x22e-group_by\x22>'+[['',''],[_0x53a8bc(0x2ab),_0x53a8bc(0xe11)],['2h',_0x53a8bc(0x620)],['3h',_0x53a8bc(0xe8b)],['4h',_0x53a8bc(0xe93)],['6h',_0x53a8bc(0xe1f)],[_0x53a8bc(0x513),'12\x20Hours'],[_0x53a8bc(0x88f),_0x53a8bc(0x83e)],['week',_0x53a8bc(0x2d1)],[_0x53a8bc(0xe7d),'Month'],[_0x53a8bc(0x73e),_0x53a8bc(0x8c1)]]['map'](([_0x5d25c8,_0x5db17d])=>_0x12e6a5(_0x5d25c8,_0x4c4007['group_by']??'',_0x5d25c8?this[_0x53a8bc(0x9df)](_0x5db17d):this[_0x53a8bc(0x9df)]('Inherit')))['join']('')+_0x53a8bc(0x758)+(!_0x580422?'lk':'')+_0x53a8bc(0x677)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x4fc))+'\x20'+_0x509b84('Adds\x20a\x20statistics\x20row\x20below\x20the\x20graph\x20for\x20this\x20entity.\x20Select\x20which\x20values\x20to\x20show:\x20Min,\x20Avg,\x20Max\x20from\x20the\x20displayed\x20time\x20range,\x20and/or\x20Last\x20(the\x20most\x20recent\x20value).\x20Multiple\x20selections\x20allowed.')+_0x53a8bc(0xd88)+(_0x580422?_0x53a8bc(0xe82):'')+_0x53a8bc(0x39c)+(_0x580422?'':_0x53a8bc(0xa53))+_0x53a8bc(0xc13)+((_0x4c4007[_0x53a8bc(0x5cc)]||[_0x53a8bc(0xba1),_0x53a8bc(0xfbc),_0x53a8bc(0x220)])[_0x53a8bc(0xf06)](_0x53a8bc(0xba1))?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x41a))+_0x53a8bc(0x21e)+((_0x4c4007[_0x53a8bc(0x5cc)]||['min',_0x53a8bc(0xfbc),_0x53a8bc(0x220)])[_0x53a8bc(0xf06)](_0x53a8bc(0xfbc))?'checked':'')+_0x53a8bc(0xd41)+this['_eT'](_0x53a8bc(0x7e2))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-legend_max\x22\x20type=\x22checkbox\x22\x20'+((_0x4c4007[_0x53a8bc(0x5cc)]||[_0x53a8bc(0xba1),_0x53a8bc(0xfbc),_0x53a8bc(0x220)])[_0x53a8bc(0xf06)]('max')?'checked':'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x701))+_0x53a8bc(0x71c)+((_0x4c4007[_0x53a8bc(0x5cc)]||[])[_0x53a8bc(0xf06)](_0x53a8bc(0xa5d))?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x4fa))+_0x53a8bc(0x57b)+((_0x4c4007[_0x53a8bc(0x5cc)]||[])[_0x53a8bc(0xf06)](_0x53a8bc(0x7e6))?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xf7c))+_0x53a8bc(0x70d)+((_0x4c4007[_0x53a8bc(0x5cc)]||[])[_0x53a8bc(0xf06)](_0x53a8bc(0xbae))?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x91b))+'\x20'+_0x509b84(_0x53a8bc(0x6c6))+_0x53a8bc(0x725)+(_0x438b22===_0x53a8bc(0xfa2)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0x7b9)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x74e))+_0x53a8bc(0xf2e)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xf21))+'\x20'+_0x509b84(_0x53a8bc(0xfd8))+'</label><input\x20class=\x22e-price_entity\x22\x20type=\x22text\x22\x20placeholder=\x22sensor.electricity_price\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x53a8bc(0x625)]||'')+_0x53a8bc(0xc1b)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x17b))+'\x20'+_0x509b84(_0x53a8bc(0xf18))+_0x53a8bc(0xee2)+escapeHtml(_0x4c4007['price_attribute']||'')+'\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0x217))+'\x20'+_0x509b84('Two-entity\x20math:\x20combine\x20this\x20entity\x20with\x20a\x20second\x20one\x20over\x20time\x20(A-B,\x20A+B,\x20A*B,\x20A/B).\x20The\x20reference\x20is\x20read\x20as\x20a\x20step\x20function\x20from\x20its\x20own\x20history,\x20so\x20every\x20sample\x20of\x20this\x20entity\x20is\x20combined\x20with\x20the\x20reference\x20value\x20valid\x20at\x20that\x20moment.\x20Typical\x20use:\x20indoor\x20minus\x20outdoor\x20temperature,\x20with\x20no\x20template\x20sensor.\x20With\x20a\x20level\x20aggregation,\x20a\x20gap\x20in\x20the\x20reference\x20breaks\x20the\x20line\x20rather\x20than\x20inventing\x20a\x20value;\x20with\x20Change\x20/\x20Diff\x20/\x20Sum\x20/\x20Delta\x20the\x20two\x20are\x20combined\x20per\x20bucket\x20and\x20a\x20missing\x20side\x20counts\x20as\x200.\x20Leave\x20empty\x20to\x20disable.')+_0x53a8bc(0x918)+escapeHtml(_0x4c4007[_0x53a8bc(0x455)]||'')+_0x53a8bc(0xc1b)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x229))+'\x20'+_0x509b84('How\x20this\x20entity\x20is\x20combined\x20with\x20the\x20reference;\x20subtract\x20is\x20the\x20default.\x20With\x20a\x20level\x20aggregation\x20(Avg\x20/\x20Min\x20/\x20Max\x20/\x20Last\x20/\x20First\x20/\x20Median)\x20Subtract\x20and\x20Add\x20combine\x20the\x20two\x20readings\x20at\x20each\x20sample.\x20With\x20Change\x20/\x20Diff\x20/\x20Sum\x20/\x20Delta\x20the\x20two\x20entities\x20are\x20aggregated\x20the\x20same\x20way\x20first\x20and\x20then\x20combined\x20bucket\x20by\x20bucket\x20-\x20the\x20way\x20to\x20add\x20two\x20daily-production\x20meters\x20into\x20one\x20monthly\x20total;\x20a\x20bucket\x20where\x20one\x20side\x20has\x20no\x20data\x20counts\x20that\x20side\x20as\x200.\x20Multiply\x20/\x20Divide\x20work\x20with\x20every\x20aggregation.')+_0x53a8bc(0x8d8)+(_0x4c4007[_0x53a8bc(0x455)]?'':_0x53a8bc(0x4cb))+'>'+[[_0x53a8bc(0x471),_0x53a8bc(0x6ee)],[_0x53a8bc(0x982),_0x53a8bc(0x5e3)],[_0x53a8bc(0x3f8),'A\x20×\x20B'],[_0x53a8bc(0xb7e),_0x53a8bc(0x9f6)],[_0x53a8bc(0xd0d),'B\x20−\x20A'],[_0x53a8bc(0xf02),_0x53a8bc(0x304)]]['map'](([_0x3638f7,_0xa266c0])=>_0x12e6a5(_0x3638f7,_0x4c4007[_0x53a8bc(0x58d)]??_0x53a8bc(0x471),_0xa266c0))[_0x53a8bc(0x888)]('')+_0x53a8bc(0xeae)+this['_eT'](_0x53a8bc(0x3cc))+'\x20'+_0x509b84(_0x53a8bc(0xc5d))+_0x53a8bc(0x2e7)+escapeHtml(_0x4c4007['ref_attribute']||'')+_0x53a8bc(0x972)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x739))+'\x20'+_0x509b84(_0x53a8bc(0xa09))+'</label><div\x20class=\x22iu\x22><input\x20class=\x22e-forecast_horizon\x22\x20type=\x22number\x22\x20step=\x220.25\x22\x20placeholder=\x220\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x53a8bc(0x510)]??'')+_0x53a8bc(0xdf2)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x524))+'\x20'+_0x509b84('Shifts\x20this\x20entity\x20backward\x20in\x20time\x20by\x20the\x20given\x20number\x20of\x20hours.\x20Use\x20to\x20overlay\x20the\x20same\x20sensor\x20from\x20different\x20periods\x20on\x20one\x20graph.\x2024\x20=\x20yesterday,\x20168\x20=\x20last\x20week,\x20720\x20=\x20last\x20month.\x20Also\x20accepts\x20a\x20helper\x20entity\x20ID\x20(e.g.\x20input_number.my_offset)\x20for\x20dynamic\x20offset.')+_0x53a8bc(0x845)+escapeHtml(_0x4c4007[_0x53a8bc(0x4ff)]||'')+'\x22><span\x20class=\x22u\x22>h</span></div></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0x858))+'\x20'+_0x509b84('Multiplies\x20the\x20value\x20by\x2010\x20raised\x20to\x20this\x20power.\x200\x20=\x20no\x20change.\x20-3\x20=\x20÷1000\x20(convert\x20milli-units).\x202\x20=\x20×100.')+_0x53a8bc(0x4eb)+escapeHtml(_0x4c4007[_0x53a8bc(0xde5)]??0x0)+_0x53a8bc(0x7ae)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x7c4))+'\x20'+_0x509b84('A\x20JavaScript\x20expression\x20to\x20transform\x20each\x20data\x20value.\x20Available\x20variables:\x20x\x20(current\x20value),\x20first\x20(first\x20value\x20in\x20window),\x20last,\x20min,\x20max,\x20avg\x20(series\x20stats),\x20index\x20(point\x20position),\x20t\x20(this\x20point\x27s\x20time\x20in\x20ms),\x20now\x20(current\x20time\x20in\x20ms),\x20hour\x20(local\x20hour,\x200-23.99),\x20weekday\x20(1\x20=\x20Monday\x20to\x207\x20=\x20Sunday).\x20Return\x20null\x20to\x20leave\x20a\x20gap\x20at\x20that\x20point.\x20Applied\x20after\x20Value\x20Factor.\x20Examples:\x20return\x20x\x20-\x20first\x20(normalize\x20to\x20zero),\x20return\x20x\x20>\x208\x20?\x20x\x20:\x20null\x20(only\x20above\x208),\x20return\x20t\x20<=\x20now\x20?\x20null\x20:\x20x\x20(forecast\x20only).')+_0x53a8bc(0xa66)+escapeHtml(_0x4c4007[_0x53a8bc(0xebb)]??'')+_0x53a8bc(0x413)+(_0x4c4007[_0x53a8bc(0xbef)]?'checked':'')+_0x53a8bc(0xd41)+this['_eT'](_0x53a8bc(0xfce))+'\x20'+_0x509b84(_0x53a8bc(0x9ff))+_0x53a8bc(0x669)+(this[_0x53a8bc(0x6f2)](_0x53a8bc(0xd57),_0x217ee5)?_0x53a8bc(0x597)+(_0x4c4007[_0x53a8bc(0xd57)]?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x72f))+'\x20'+_0x509b84(_0x53a8bc(0x65d))+_0x53a8bc(0x669):_0x53a8bc(0xea4))+_0x53a8bc(0x8f3)+this['_eT'](_0x53a8bc(0xe89))+'\x20'+_0x509b84(_0x53a8bc(0x1d9))+_0x53a8bc(0xf42)+(_0x4c4007[_0x53a8bc(0xa7e)]?_0x4c4007['state_map'][_0x53a8bc(0xb3f)](_0xe13ba6=>{const _0x1c1dc3=_0x53a8bc;let _0x5bc335=_0xe13ba6[_0x1c1dc3(0x2ea)];if(_0xe13ba6[_0x1c1dc3(0xf1f)]||_0xe13ba6[_0x1c1dc3(0xd95)])_0x5bc335+=',\x20'+(_0xe13ba6[_0x1c1dc3(0xf1f)]||'');if(_0xe13ba6['color'])_0x5bc335+=',\x20'+_0xe13ba6[_0x1c1dc3(0xd95)];return _0x5bc335;})['join']('\x0a'):'')+_0x53a8bc(0xcb4)+this['_eT'](_0x53a8bc(0x7fa))+'\x20'+_0x509b84(_0x53a8bc(0xbdc))+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x8d1))+'\x20'+_0x509b84('Name\x20of\x20the\x20entity\x20attribute\x20containing\x20the\x20data\x20array.\x20For\x20example:\x20data,\x20forecast,\x20price_info.\x20Leave\x20empty\x20to\x20use\x20normal\x20history.')+'</label><input\x20class=\x22e-data_attribute\x22\x20type=\x22text\x22\x20placeholder=\x22e.g.\x20data,\x20forecast\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x53a8bc(0x102c)]??'')+'\x22></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0xb49))+'\x20'+_0x509b84(_0x53a8bc(0x9b3))+'</label><input\x20class=\x22e-data_time_field\x22\x20type=\x22text\x22\x20placeholder=\x22start_time\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x53a8bc(0xff8)]??'')+_0x53a8bc(0xc1b)+this['_eT']('Value\x20Field')+'\x20'+_0x509b84('Name\x20of\x20the\x20value\x20field\x20in\x20each\x20array\x20item.\x20Default:\x20price_per_kwh.')+_0x53a8bc(0x741)+escapeHtml(_0x4c4007[_0x53a8bc(0x25b)]??'')+'\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x391))+'\x20'+_0x509b84(_0x53a8bc(0xd29))+_0x53a8bc(0x814)+escapeHtml(_0x4c4007[_0x53a8bc(0x3f2)]??'')+_0x53a8bc(0xcd6)+this['_eT'](_0x53a8bc(0x1e8))+'\x20'+_0x509b84(_0x53a8bc(0x865))+_0x53a8bc(0x8ac)+(_0x4c4007[_0x53a8bc(0x8d0)]&&typeof _0x4c4007[_0x53a8bc(0x8d0)]===_0x53a8bc(0xc18)?Object[_0x53a8bc(0x653)](_0x4c4007[_0x53a8bc(0x8d0)])[_0x53a8bc(0xb3f)](([_0x423280,_0x710465])=>_0x423280+':\x20'+_0x710465)[_0x53a8bc(0x888)](String[_0x53a8bc(0xad4)](0xa)):'')+_0x53a8bc(0xa3e)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x504))+'\x20'+_0x509b84('How\x20to\x20interpret\x20the\x20Time\x20Field\x20value.\x20ISO\x20=\x20parsed\x20as\x20date\x20string\x20or\x20epoch\x20ms\x20(default).\x20Epoch\x20seconds/ms\x20=\x20Unix\x20timestamp.\x20Month/Day/Week\x20of\x20Year\x20=\x20numeric\x20category\x20(e.g.\x20Month:\x201..12\x20→\x20Jan..Dec).\x20Hour\x20of\x20Day\x20=\x200..23\x20hour\x20of\x20today.\x20Use\x20the\x20categorical\x20units\x20to\x20chart\x20monthly\x20summaries,\x20day-of-year\x20datasets,\x20or\x20hourly\x20patterns\x20without\x20generating\x20artificial\x20timestamps.')+_0x53a8bc(0x85f)+[_0x53a8bc(0x1d0),'epoch_seconds',_0x53a8bc(0x7bf),_0x53a8bc(0xe63),_0x53a8bc(0x8b8),_0x53a8bc(0xd3b),_0x53a8bc(0x3b0),_0x53a8bc(0xe14)]['map'](_0x5bd72a=>_0x12e6a5(_0x5bd72a,_0x4c4007['data_time_unit']??'iso',{'iso':_0x53a8bc(0x307),'epoch_seconds':_0x53a8bc(0xee7),'epoch_ms':_0x53a8bc(0xc6f),'month_of_year':_0x53a8bc(0x6d9),'day_of_month':_0x53a8bc(0x838),'day_of_year':_0x53a8bc(0x2c3),'week_of_year':_0x53a8bc(0x2e4),'hour_of_day':_0x53a8bc(0x535)}[_0x5bd72a]))[_0x53a8bc(0x888)]('')+'</select></div></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0xcdf))+'\x20'+_0x509b84('Year\x20used\x20to\x20anchor\x20categorical\x20Time\x20Units\x20(Month/Day/Week\x20of\x20Year).\x20Leave\x20empty\x20to\x20use\x20the\x20current\x20year.\x20Has\x20no\x20effect\x20for\x20ISO\x20or\x20Epoch\x20units.')+'</label><input\x20class=\x22e-data_time_year\x22\x20type=\x22number\x22\x20min=\x221970\x22\x20max=\x222099\x22\x20step=\x221\x22\x20placeholder=\x22'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x8b7))+'\x22\x20value=\x22'+escapeHtml(_0x4c4007['data_time_year']??'')+_0x53a8bc(0x303)+(_0x438b22==='state_row'?_0x53a8bc(0x5b3):'')+_0x53a8bc(0x4bc)+(!_0x1aeabd?'lk':'')+_0x53a8bc(0x286)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x6d0))+'\x20'+_0x509b84(_0x53a8bc(0x79d))+_0x53a8bc(0xbbf)+(_0x4c4007[_0x53a8bc(0x806)]!==![]?_0x53a8bc(0xd52):'')+'>'+this[_0x53a8bc(0x9df)]('On')+_0x53a8bc(0x1e7)+(_0x4c4007['show_state']===![]?_0x53a8bc(0xd52):'')+'>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x827))+_0x53a8bc(0x6fe)+_0x59f474(_0x1aeabd)+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT']('Primary\x20Value')+'\x20'+_0x509b84(_0x53a8bc(0x88c))+_0x53a8bc(0x289)+(_0x1aeabd?'':'disabled')+'>'+[['',this[_0x53a8bc(0x9df)](_0x53a8bc(0x8bb))],['last',this[_0x53a8bc(0x9df)]('Last')],[_0x53a8bc(0x7e6),this[_0x53a8bc(0x9df)](_0x53a8bc(0xf7c))],[_0x53a8bc(0xfbc),this['_eT'](_0x53a8bc(0x7e2))],[_0x53a8bc(0xba1),this[_0x53a8bc(0x9df)](_0x53a8bc(0x41a))],[_0x53a8bc(0x220),this[_0x53a8bc(0x9df)](_0x53a8bc(0x701))],['first',this[_0x53a8bc(0x9df)]('First')]]['map'](([_0x49a78b,_0x59dbcc])=>_0x12e6a5(_0x49a78b,_0x4c4007[_0x53a8bc(0xb8a)]??(_0x4c4007[_0x53a8bc(0x8bc)]?'last':''),_0x59dbcc))[_0x53a8bc(0x888)]('')+'</select></div>'+([_0x53a8bc(0xe24),'ranking','radialbar','polararea',_0x53a8bc(0xd20),_0x53a8bc(0xa56),_0x53a8bc(0xdbc)][_0x53a8bc(0xf06)](_0x217ee5)&&((_0x4c4007[_0x53a8bc(0xb8a)]??(_0x4c4007['show_state_last']?_0x53a8bc(0xa5d):''))===_0x53a8bc(0xa5d)||(_0x4c4007[_0x53a8bc(0xb8a)]??'')===_0x53a8bc(0x2d8))?_0x53a8bc(0x959)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xe8d))+_0x53a8bc(0x743):'')+'</div><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x192))+'\x20'+_0x509b84('Show\x20a\x20second\x20stat\x20value\x20next\x20to\x20the\x20primary\x20state\x20in\x20the\x20state\x20row.\x20Options:\x20Sum,\x20Avg,\x20Min,\x20Max,\x20First,\x20Last.\x20The\x20label\x20and\x20value\x20appear\x20smaller\x20beside\x20the\x20main\x20state.\x20In\x20Pie,\x20Ranking\x20and\x20Polar\x20Area\x20modes\x20an\x20extra\x20%\x20option\x20is\x20available\x20—\x20it\x20shows\x20this\x20entity\x27s\x20share\x20of\x20the\x20total,\x20matching\x20the\x20percentages\x20drawn\x20on\x20the\x20chart.')+_0x53a8bc(0x7ef)+(_0x1aeabd?'':'disabled')+'>'+['',_0x53a8bc(0x7e6),'avg',_0x53a8bc(0xba1),_0x53a8bc(0x220),_0x53a8bc(0x2d8),_0x53a8bc(0xa5d),...['pie','ranking',_0x53a8bc(0x88e)][_0x53a8bc(0xf06)](_0x217ee5)?[_0x53a8bc(0x7a1)]:[]][_0x53a8bc(0xb3f)](_0x1deb65=>_0x12e6a5(_0x1deb65,_0x4c4007[_0x53a8bc(0x626)]??'',{['']:this[_0x53a8bc(0x9df)](_0x53a8bc(0xb7a)),'sum':this[_0x53a8bc(0x9df)]('Sum'),'avg':this[_0x53a8bc(0x9df)]('Avg'),'min':this[_0x53a8bc(0x9df)](_0x53a8bc(0x41a)),'max':this[_0x53a8bc(0x9df)]('Max'),'first':this[_0x53a8bc(0x9df)](_0x53a8bc(0x730)),'last':this[_0x53a8bc(0x9df)](_0x53a8bc(0x4fa)),'pct':'%'}[_0x1deb65]))[_0x53a8bc(0x888)]('')+_0x53a8bc(0x4c0)+this['_eT'](_0x53a8bc(0xa3f))+'\x20'+_0x509b84(_0x53a8bc(0xb3b))+_0x53a8bc(0xab9)+(_0x1aeabd?'':_0x53a8bc(0x4cb))+'>'+[['',this['_eT'](_0x53a8bc(0x2b0))],[_0x53a8bc(0x38d),this[_0x53a8bc(0x9df)](_0x53a8bc(0x3bd))]]['map'](([_0x157dff,_0x1e65a3])=>_0x12e6a5(_0x157dff,_0x4c4007['name_position']??'',_0x1e65a3))[_0x53a8bc(0x888)]('')+_0x53a8bc(0xeae)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x9e6))+'\x20'+_0x509b84(_0x53a8bc(0xb6a))+_0x53a8bc(0x837)+(_0x1aeabd?'':_0x53a8bc(0x4cb))+'>'+['left','center',_0x53a8bc(0x1fd),_0x53a8bc(0xf2f),'bottom-center',_0x53a8bc(0x579)][_0x53a8bc(0xb3f)](_0x1209be=>_0x12e6a5(_0x1209be,_0x4c4007[_0x53a8bc(0x28f)]??_0x53a8bc(0xaaf),{'left':this['_eT'](_0x53a8bc(0x5c1)),'center':this[_0x53a8bc(0x9df)]('Top\x20Center'),'right':this[_0x53a8bc(0x9df)](_0x53a8bc(0x1cb)),'bottom-left':this['_eT']('Bottom\x20Left'),'bottom-center':this[_0x53a8bc(0x9df)]('Bottom\x20Center'),'bottom-right':this[_0x53a8bc(0x9df)](_0x53a8bc(0xabd))}[_0x1209be]))[_0x53a8bc(0x888)]('')+_0x53a8bc(0xeae)+this[_0x53a8bc(0x9df)]('MDI\x20Icon')+'\x20'+_0x509b84(_0x53a8bc(0xe86))+_0x53a8bc(0xbd3)+(_0x4c4007[_0x53a8bc(0x452)]!==![]?_0x53a8bc(0xe82):'')+'\x20'+(_0x1aeabd?'':_0x53a8bc(0x4cb))+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this['_eT'](_0x53a8bc(0x627))+'\x20'+_0x509b84(_0x53a8bc(0x7ce))+_0x53a8bc(0x9f1)+(_0x4c4007[_0x53a8bc(0x283)]?_0x53a8bc(0xe82):'')+'\x20'+(_0x1aeabd?'':_0x53a8bc(0x4cb))+_0x53a8bc(0xd41)+this['_eT']('Adaptive\x20Color')+'\x20'+_0x509b84('Automatically\x20tints\x20the\x20state\x20value\x20and\x20icon\x20with\x20the\x20entity\x27s\x20line\x20color.\x20A\x20quick\x20way\x20to\x20color-code\x20state\x20rows\x20without\x20manually\x20setting\x20state_color\x20and\x20icon_color.')+_0x53a8bc(0xe4b)+(_0x4c4007[_0x53a8bc(0x3e3)]?'checked':'')+'\x20'+(_0x1aeabd?'':'disabled')+_0x53a8bc(0xd41)+this['_eT']('Hide\x20Name')+'\x20'+_0x509b84('Hide\x20this\x20entity\x27s\x20name\x20in\x20the\x20state\x20row\x20(the\x20live\x20value\x20row\x20above\x20the\x20graph),\x20showing\x20just\x20the\x20value.\x20Default\x20off.\x20When\x20off\x20and\x20no\x20Custom\x20Name\x20is\x20set,\x20the\x20entity\x27s\x20Friendly\x20Name\x20is\x20shown\x20here\x20automatically.\x20Affects\x20the\x20state\x20row\x20only\x20-\x20not\x20the\x20compact\x20legend\x20or\x20tooltip.')+_0x53a8bc(0x433)+(_0x1aeabd&&!['',_0x53a8bc(0x7e6),'avg'][_0x53a8bc(0xf06)](_0x4c4007['primary_state_as']??(_0x4c4007['show_state_last']?_0x53a8bc(0xa5d):''))?_0x53a8bc(0xf34)+(_0x4c4007[_0x53a8bc(0xae5)]?'checked':'')+_0x53a8bc(0xd41)+this['_eT'](_0x53a8bc(0x263))+'\x20'+_0x509b84(_0x53a8bc(0x5ae))+_0x53a8bc(0x433):'')+(_0x1aeabd&&(_0x4c4007[_0x53a8bc(0xb8a)]??(_0x4c4007[_0x53a8bc(0x8bc)]?_0x53a8bc(0xa5d):''))!==''?'<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_range_values\x22\x20type=\x22checkbox\x22\x20'+(_0x4c4007[_0x53a8bc(0x60f)]?'checked':'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)]('Show\x20Range')+'\x20'+_0x509b84(_0x53a8bc(0x34f))+'</span></div></label>':'')+_0x53a8bc(0x628)+this[_0x53a8bc(0x9df)]('Name\x20Size')+'\x20'+_0x509b84(_0x53a8bc(0x84f))+_0x53a8bc(0xdd4)+escapeHtml(_0x4c4007[_0x53a8bc(0x8e4)]??'')+'\x22\x20'+(_0x1aeabd?'':'disabled')+'></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x53a8bc(0x70b))+'\x20'+_0x509b84(_0x53a8bc(0x440))+_0x53a8bc(0xaa2)+escapeHtml(_0x4c4007[_0x53a8bc(0xb08)]??'')+'\x22\x20'+(_0x1aeabd?'':_0x53a8bc(0x4cb))+_0x53a8bc(0xf15)+this['_eT'](_0x53a8bc(0xa41))+'\x20'+_0x509b84(_0x53a8bc(0x45b))+_0x53a8bc(0x92e)+escapeHtml(_0x4c4007['icon_size']??'')+'\x22\x20'+(_0x1aeabd?'':_0x53a8bc(0x4cb))+_0x53a8bc(0x420)+(!_0x15e0ae?'lk':'')+_0x53a8bc(0xbeb)+this['_eT']('Trend\x20Icon')+'\x20'+_0x509b84(_0x53a8bc(0x706))+'</div><label\x20class=\x22ms\x22><input\x20class=\x22e-show_trend_icon\x22\x20type=\x22checkbox\x22\x20'+(_0x15e0ae?'checked':'')+_0x53a8bc(0x39c)+_0x59f474(_0x15e0ae)+_0x53a8bc(0xbc6)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xe31))+'\x20'+_0x509b84(_0x53a8bc(0xd11))+_0x53a8bc(0xe5d)+escapeHtml(_0x4c4007['trend_period_hours']??0x1)+'\x22\x20'+(_0x15e0ae?'':'disabled')+_0x53a8bc(0x6cc)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xa41))+'\x20'+_0x509b84('Font\x20size\x20of\x20the\x20trend\x20direction\x20icon\x20(▲▼⯇⯈).\x20Accepts\x20CSS\x20values,\x20e.g.\x2012px.')+_0x53a8bc(0xd32)+escapeHtml(_0x4c4007[_0x53a8bc(0x4de)]??'')+'\x22\x20'+(_0x15e0ae?'':_0x53a8bc(0x4cb))+_0x53a8bc(0xcfe)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x2d0))+'\x20'+_0x509b84(_0x53a8bc(0x6a6))+_0x53a8bc(0x41d)+_0x44a5d9(_0x53a8bc(0x507),_0x4c4007[_0x53a8bc(0x963)]??'')+_0x53a8bc(0xf5d)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x282))+'\x20'+_0x509b84(_0x53a8bc(0x2b1))+_0x53a8bc(0x41d)+_0x44a5d9(_0x53a8bc(0xee5),_0x4c4007['trend_down_color']??'')+'</div><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)]('Stable\x20Color')+'\x20'+_0x509b84(_0x53a8bc(0x2c0))+'</label>'+_0x44a5d9(_0x53a8bc(0xdfa),_0x4c4007['trend_stable_color']??'')+_0x53a8bc(0x4d0)+(_0x438b22==='appearance'?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xae1)+((_0x988d90['chart_mode']||_0x53a8bc(0x325))===_0x53a8bc(0x325)?_0x53a8bc(0xf61)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x8a4))+'\x20'+_0x509b84(_0x53a8bc(0x353))+_0x53a8bc(0x8cb)+_0x12e6a5(_0x53a8bc(0xcd2),_0x5bb4f2,this['_eT'](_0x53a8bc(0x8de)))+_0x12e6a5(_0x53a8bc(0xfb0),_0x5bb4f2,this[_0x53a8bc(0x9df)](_0x53a8bc(0x6cd)))+_0x12e6a5(_0x53a8bc(0x8fb),_0x5bb4f2,this[_0x53a8bc(0x9df)](_0x53a8bc(0xdb8)))+_0x12e6a5('candlestick',_0x5bb4f2,this[_0x53a8bc(0x9df)]('Candlestick'))+(_0x217ee5===_0x53a8bc(0x325)?_0x12e6a5(_0x53a8bc(0x911),_0x5bb4f2,this[_0x53a8bc(0x9df)](_0x53a8bc(0x83f))):'')+_0x53a8bc(0xeae)+this[_0x53a8bc(0x9df)]('Z-Index')+'\x20'+_0x509b84(_0x53a8bc(0xdc6))+'</label><input\x20class=\x22e-z_index\x22\x20type=\x22number\x22\x20step=\x221\x22\x20placeholder=\x220\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x53a8bc(0x8a5)]??'')+_0x53a8bc(0xf30):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+((()=>{const _0x196ca0=_0x53a8bc;return _0x196ca0(0x21c)+(!_0x809622?'lk':'')+_0x196ca0(0xca4)+this['_eT'](_0x196ca0(0x2b9))+'\x20'+_0x509b84(_0x196ca0(0xff4))+_0x196ca0(0xef7)+(_0x809622?_0x196ca0(0xe82):'')+_0x196ca0(0xb6b)+(_0x4c4007[_0x196ca0(0xa1a)]===!![]?_0x196ca0(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x196ca0(0x9df)](_0x196ca0(0xa85))+'\x20'+_0x509b84(_0x196ca0(0x7ca))+_0x196ca0(0xe41)+_0x59f474(_0x809622)+_0x196ca0(0xa29)+(_0x988d90[_0x196ca0(0x18a)]?_0x196ca0(0xf61)+this['_eT'](_0x196ca0(0x98f))+'\x20'+_0x509b84('Group\x20name\x20for\x20stacked\x20bars/lines.\x20Entities\x20with\x20the\x20same\x20group\x20name\x20are\x20stacked\x20on\x20top\x20of\x20each\x20other.\x20Different\x20groups\x20are\x20placed\x20side\x20by\x20side.\x20Leave\x20empty\x20to\x20stack\x20all\x20entities\x20together\x20(default\x20behavior).')+'</label><input\x20class=\x22e-stack_group\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x196ca0(0x9df)](_0x196ca0(0xcd4))+_0x196ca0(0x906)+escapeHtml(_0x4c4007[_0x196ca0(0xe81)]??'')+'\x22></div><div\x20class=\x22f\x22></div></div>':'')+_0x196ca0(0x300)+(this[_0x196ca0(0x6f2)]('show_average',_0x217ee5)||this[_0x196ca0(0x6f2)](_0x196ca0(0xd0a),_0x217ee5)?_0x196ca0(0x87b)+(_0x4c4007[_0x196ca0(0xa72)]?_0x196ca0(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x196ca0(0x9df)]('Show\x20Average')+'\x20'+_0x509b84(_0x196ca0(0xba5))+'</span></div></label>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-break_on_null\x22\x20type=\x22checkbox\x22\x20'+(_0x4c4007[_0x196ca0(0x18d)]?_0x196ca0(0xe82):'')+_0x196ca0(0xd41)+this['_eT']('Break\x20on\x20Gaps')+'\x20'+_0x509b84('When\x20the\x20sensor\x20is\x20unavailable\x20for\x20long\x20periods,\x20the\x20line\x20breaks\x20at\x20the\x20gap\x20instead\x20of\x20carrying\x20the\x20last\x20known\x20value\x20across.\x20Short\x20blips\x20(bucket-level\x20sample\x20irregularity)\x20stay\x20connected.\x20Turn\x20off\x20(default)\x20to\x20keep\x20the\x20line\x20continuous\x20regardless\x20of\x20outage\x20length.')+_0x196ca0(0x988)+(_0x4c4007['show_data_labels']?_0x196ca0(0xe82):'')+_0x196ca0(0xd41)+this[_0x196ca0(0x9df)](_0x196ca0(0x35a))+'\x20'+_0x509b84(_0x196ca0(0xc0d))+_0x196ca0(0x669):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+((()=>{const _0x25adf7=_0x196ca0;if(_0x217ee5!==_0x25adf7(0x325)&&_0x217ee5!==_0x25adf7(0xb4b)||(_0x4c4007[_0x25adf7(0xc3c)]||_0x4c4007['type'])===_0x25adf7(0x846))return'';const _0x5e3bc7=_0x4c4007[_0x25adf7(0xc80)],_0xa29d91=Array[_0x25adf7(0x902)](_0x5e3bc7)?_0x5e3bc7:_0x5e3bc7?[_0x5e3bc7&&typeof _0x5e3bc7==='object'?_0x5e3bc7:{'period':_0x5e3bc7===!![]?'previous_period':String(_0x5e3bc7)}]:[],_0x23771c=[_0x25adf7(0x612),_0x25adf7(0x592),_0x25adf7(0x326),_0x25adf7(0x1bd),'last_year'],_0x4217c4=_0xa29d91['map']((_0x5d5b77,_0x135c21)=>{const _0x3a1736=_0x25adf7,_0x1ce1df=_0x5d5b77&&typeof _0x5d5b77==='object'?_0x5d5b77:{'period':String(_0x5d5b77)},_0x10d30e=_0x1ce1df[_0x3a1736(0xe4c)]!=null?String(_0x1ce1df[_0x3a1736(0xe4c)]):_0x3a1736(0x612),_0x5c640c=!_0x23771c[_0x3a1736(0xf06)](_0x10d30e)?_0x3a1736(0xc4a)+escapeHtml(_0x10d30e)+_0x3a1736(0xe95)+escapeHtml(_0x10d30e)+_0x3a1736(0x7b1):'',_0x19e44c=_0x16cda1=>_0x10d30e===_0x16cda1?_0x3a1736(0xd52):'',_0x25f297=_0x1ce1df[_0x3a1736(0x3da)]||'dashed',_0x1ecc5b=_0x2426e3=>_0x25f297===_0x2426e3?_0x3a1736(0xd52):'',_0x1e588f=_0x1ce1df['layout']===_0x3a1736(0xe9b)?'sequential':_0x3a1736(0x375),_0x3c58b9=_0x19a9b3=>_0x1e588f===_0x19a9b3?'selected':'',_0x43da0e=_0x217ee5!=='timeline'?'':_0x3a1736(0x23c)+this[_0x3a1736(0x9df)]('Layout')+'\x20'+_0x509b84(_0x3a1736(0xb72))+_0x3a1736(0x7df)+(_0x10d30e===_0x3a1736(0x612)?'':_0x3a1736(0x4cb))+_0x3a1736(0x7ed)+_0x3c58b9(_0x3a1736(0x375))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x330))+_0x3a1736(0x47f)+_0x3c58b9('sequential')+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x8aa))+_0x3a1736(0xb18),_0x48de42=String(_0x1ce1df[_0x3a1736(0xd95)]??'')['includes']('{{');return _0x3a1736(0x201)+_0x135c21+_0x3a1736(0x573)+this['_eT'](_0x3a1736(0xd4b))+_0x3a1736(0x482)+_0x19e44c(_0x3a1736(0x612))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x64d))+_0x3a1736(0x708)+_0x19e44c('yesterday')+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x7bb))+_0x3a1736(0x85b)+_0x19e44c('last_week')+'>'+this[_0x3a1736(0x9df)]('Week\x20Before')+_0x3a1736(0x999)+_0x19e44c(_0x3a1736(0x1bd))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x43c))+_0x3a1736(0x45a)+_0x19e44c(_0x3a1736(0xb6f))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0xef6))+_0x3a1736(0x6be)+_0x5c640c+_0x3a1736(0xeae)+this['_eT'](_0x3a1736(0x680))+'\x20'+_0x509b84(_0x3a1736(0xfc4))+_0x3a1736(0xbd9)+escapeHtml(String(Math[_0x3a1736(0x220)](0x1,parseInt(_0x1ce1df[_0x3a1736(0xf4d)])||0x1)))+'\x22></div><div\x20class=\x22f\x22><label>'+this['_eT']('Line\x20Style')+_0x3a1736(0x819)+_0x1ecc5b(_0x3a1736(0x2b5))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0xe68))+_0x3a1736(0xc03)+_0x1ecc5b(_0x3a1736(0xa63))+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0xeff))+_0x3a1736(0x1df)+_0x1ecc5b('dotted')+'>'+this[_0x3a1736(0x9df)](_0x3a1736(0x643))+_0x3a1736(0x5c3)+(_0x43da0e?'r3':'r2')+_0x3a1736(0xb1d)+this[_0x3a1736(0x9df)](_0x3a1736(0xc01))+_0x3a1736(0xe07)+escapeHtml(_0x1ce1df['color']??'')+'\x22><input\x20class=\x22cmp-col-pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this['_coerceColor'](_0x1ce1df[_0x3a1736(0xd95)]))+'\x22'+(_0x48de42?'\x20style=\x22opacity:.3;pointer-events:none\x22':'')+_0x3a1736(0xb4f)+this[_0x3a1736(0x9df)](_0x3a1736(0x190))+'</label><input\x20class=\x22cmp-op\x22\x20type=\x22number\x22\x20min=\x220.05\x22\x20max=\x221\x22\x20step=\x220.05\x22\x20placeholder=\x22auto\x22\x20value=\x22'+(_0x1ce1df[_0x3a1736(0x7a2)]!=null?escapeHtml(String(_0x1ce1df[_0x3a1736(0x7a2)])):'')+_0x3a1736(0x446)+_0x43da0e+'</div><div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22cmp-dl\x22\x20type=\x22checkbox\x22\x20'+(_0x1ce1df[_0x3a1736(0xc8a)]===![]?'':'checked')+_0x3a1736(0xd41)+this['_eT']('Show\x20Δ%\x20in\x20tooltip')+_0x3a1736(0xc87)+(_0x1ce1df[_0x3a1736(0x66f)]===!![]?_0x3a1736(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x3a1736(0x9df)](_0x3a1736(0xa85))+'\x20'+_0x509b84('This\x20comparison\x20starts\x20hidden\x20when\x20the\x20card\x20loads\x20-\x20reveal\x20it\x20by\x20clicking\x20its\x20legend\x20entry.\x20Note:\x20clicking\x20the\x20MAIN\x20series\x20in\x20the\x20legend\x20toggles\x20the\x20whole\x20comparison\x20group\x20together.')+_0x3a1736(0x54a)+(_0x1ce1df[_0x3a1736(0xad9)]===!![]?_0x3a1736(0xe82):'')+_0x3a1736(0xd41)+this['_eT'](_0x3a1736(0x572))+'\x20'+_0x509b84(_0x3a1736(0xc89))+'</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22cmp-avg\x22\x20type=\x22checkbox\x22\x20'+(_0x1ce1df[_0x3a1736(0xa72)]===!![]?_0x3a1736(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x3a1736(0x9df)]('Show\x20Average')+'\x20'+_0x509b84(_0x3a1736(0xb22))+'</span></div></label></div><button\x20class=\x22cmp-del\x22\x20title=\x22'+this['_eT'](_0x3a1736(0xd76))+_0x3a1736(0xf46);})[_0x25adf7(0x888)]('');return _0x25adf7(0xdd6)+this['_eT']('Period\x20Comparison')+'\x20'+_0x509b84('Overlays\x20this\x20entity\x20shifted\x20back\x20as\x20faded\x20ghost\x20series\x20-\x20one\x20ghost\x20per\x20row.\x20Previous\x20Period\x20follows\x20the\x20current\x20window\x20(calendar-aware\x20for\x20month/year\x20date-picker\x20views)\x20and\x20Periods\x20Back\x20multiplies\x20it:\x201\x20=\x20previous,\x202\x20=\x20two\x20periods\x20ago.\x20Ghosts\x20hide\x20together\x20with\x20the\x20main\x20series\x20from\x20the\x20legend,\x20and\x20the\x20tooltip\x20shows\x20each\x20ghost\x27s\x20own\x20date\x20plus\x20the\x20change\x20in\x20percent.')+_0x25adf7(0xb74)+(_0x4217c4||'<div\x20class=\x22es\x22>'+this[_0x25adf7(0x9df)](_0x25adf7(0x34d))+_0x25adf7(0x743))+_0x25adf7(0x62a)+this[_0x25adf7(0x9df)]('Add\x20Comparison')+_0x25adf7(0x2e2);})())+_0x196ca0(0xded)+(this[_0x196ca0(0x6f2)](_0x196ca0(0xdf3),_0x217ee5)?_0x196ca0(0xd48)+this[_0x196ca0(0x9df)](_0x196ca0(0x77f))+'\x20'+_0x509b84(_0x196ca0(0x9e2))+_0x196ca0(0xa4f)+(_0x22cd07||_0x196ca0(0x2f7)+this['_eT'](_0x196ca0(0xcc3))+_0x196ca0(0x743))+'</div><button\x20class=\x22ma-add\x22><svg\x20width=\x2213\x22\x20height=\x2213\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>'+this[_0x196ca0(0x9df)](_0x196ca0(0x98a))+_0x196ca0(0x2e2):'')+((_0x988d90['chart_mode']||'timeline')===_0x196ca0(0x325)?'<div\x20class=\x22cs\x20'+(_0x5e42e4===_0x196ca0(0xe19)?'lk':'')+_0x196ca0(0x6a5)+this[_0x196ca0(0x9df)](_0x196ca0(0x3a5))+'\x20'+_0x509b84(_0x196ca0(0x4cd))+_0x196ca0(0x424)+_0x12e6a5('never',_0x5e42e4,this[_0x196ca0(0x9df)](_0x196ca0(0x803)))+_0x12e6a5(_0x196ca0(0xe5e),_0x5e42e4,this[_0x196ca0(0x9df)]('On\x20Click'))+_0x12e6a5('always',_0x5e42e4,this['_eT'](_0x196ca0(0x50f)))+_0x196ca0(0x82b)+(_0x5e42e4===_0x196ca0(0xe19)?'style=\x22opacity:.35;pointer-events:none\x22':'')+_0x196ca0(0x2fc)+(_0x4c4007[_0x196ca0(0x3f1)]!==![]?'checked':'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x196ca0(0x9df)](_0x196ca0(0x41a))+'\x20'+_0x509b84(_0x196ca0(0x442))+'</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_extrema_max\x22\x20type=\x22checkbox\x22\x20'+(_0x4c4007[_0x196ca0(0xe6f)]!==![]?_0x196ca0(0xe82):'')+_0x196ca0(0xd41)+this[_0x196ca0(0x9df)](_0x196ca0(0x701))+'\x20'+_0x509b84(_0x196ca0(0x5c7))+_0x196ca0(0x7b3)+(_0x4c4007['extrema_show_timestamp']!==![]?_0x196ca0(0xe82):'')+_0x196ca0(0xd41)+this[_0x196ca0(0x9df)](_0x196ca0(0xbcb))+'\x20'+_0x509b84(_0x196ca0(0xeb7))+_0x196ca0(0x4f2)+this[_0x196ca0(0x9df)]('Font\x20Color')+'\x20'+_0x509b84('Color\x20of\x20the\x20extrema\x20value\x20text.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.')+_0x196ca0(0x5f7)+this[_0x196ca0(0x9df)](_0x196ca0(0xd1b))+'\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x196ca0(0x1da)]??'')+'\x22><input\x20class=\x22e-extrema_color-picker\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this[_0x196ca0(0x957)](_0x4c4007[_0x196ca0(0x1da)]||_0x196ca0(0x44d)))+_0x196ca0(0x498)+this[_0x196ca0(0x9df)](_0x196ca0(0x3db))+'\x20'+_0x509b84('Font\x20size\x20of\x20the\x20extrema\x20value\x20in\x20pixels.\x20Default\x20is\x2013.\x20Timestamp\x20text\x20scales\x20proportionally.')+_0x196ca0(0xf4f)+escapeHtml(_0x4c4007['extrema_font_size']??'')+_0x196ca0(0x7a5)+this['_eT'](_0x196ca0(0x53e))+'\x20'+_0x509b84(_0x196ca0(0xc71))+_0x196ca0(0x80c)+this[_0x196ca0(0x9df)](_0x196ca0(0xd1b))+_0x196ca0(0x906)+escapeHtml(_0x4c4007[_0x196ca0(0x469)]??'')+_0x196ca0(0x613)+escapeHtml(this[_0x196ca0(0x957)](_0x4c4007[_0x196ca0(0x469)]||_0x196ca0(0x771)))+_0x196ca0(0x498)+this['_eT']('Background\x20Opacity')+'\x20'+_0x509b84('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.')+_0x196ca0(0x1f4)+escapeHtml(_0x4c4007[_0x196ca0(0xd65)]??'')+_0x196ca0(0x85e):'')+_0x196ca0(0xded)+((_0x988d90[_0x196ca0(0x815)]||_0x196ca0(0x325))===_0x196ca0(0x325)?_0x196ca0(0x5b1)+(!_0x14575e?'lk':'')+_0x196ca0(0x794)+this['_eT'](_0x196ca0(0x8de))+'\x20'+_0x509b84(_0x196ca0(0x445))+_0x196ca0(0xc84)+(_0x14575e?_0x196ca0(0xe82):'')+_0x196ca0(0x39c)+_0x59f474(_0x14575e)+_0x196ca0(0xbc6)+this[_0x196ca0(0x9df)](_0x196ca0(0x7c3))+'\x20'+_0x509b84(_0x196ca0(0x461))+'</label><input\x20class=\x22e-line_width\x22\x20type=\x22number\x22\x20min=\x220\x22\x20step=\x220.5\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x196ca0(0x4e0)]??2.5)+'\x22\x20'+(_0x14575e?'':_0x196ca0(0x4cb))+'></div><div\x20class=\x22f\x22\x20style=\x22justify-content:flex-end\x22><label\x20class=\x22si\x22\x20style=\x22margin-top:auto\x22><div\x20class=\x22st\x22><input\x20class=\x22e-smooth\x22\x20type=\x22checkbox\x22\x20'+(_0x4c4007['smooth']!==![]?_0x196ca0(0xe82):'')+'\x20'+(_0x14575e?'':_0x196ca0(0x4cb))+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x196ca0(0x9df)](_0x196ca0(0x4e6))+'\x20'+_0x509b84(_0x196ca0(0x8f2))+_0x196ca0(0xd7d)+this[_0x196ca0(0x9df)]('Line\x20Style')+'\x20'+_0x509b84(_0x196ca0(0x5dc))+_0x196ca0(0x340)+(_0x14575e?'':'disabled')+_0x196ca0(0xacc)+((_0x4c4007[_0x196ca0(0x3da)]??_0x196ca0(0xa63))==='solid'?_0x196ca0(0xd52):'')+'>'+this[_0x196ca0(0x9df)](_0x196ca0(0xeff))+_0x196ca0(0x1df)+(_0x4c4007[_0x196ca0(0x3da)]===_0x196ca0(0x998)?_0x196ca0(0xd52):'')+'>'+this[_0x196ca0(0x9df)]('Dotted')+_0x196ca0(0xe5b)+(_0x4c4007[_0x196ca0(0x3da)]===_0x196ca0(0x2b5)?_0x196ca0(0xd52):'')+'>'+this[_0x196ca0(0x9df)]('Dashed')+'</option></select></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22sg\x20mt8\x22><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20class=\x22e-show_range_band\x22\x20type=\x22checkbox\x22\x20'+(_0x4c4007[_0x196ca0(0xd0a)]?'checked':'')+_0x196ca0(0xd41)+this['_eT'](_0x196ca0(0xefb))+'\x20'+_0x509b84(_0x196ca0(0x6d7))+_0x196ca0(0xab8)+(_0x1051ca?'checked':'')+_0x196ca0(0xd41)+this[_0x196ca0(0x9df)](_0x196ca0(0x2a6))+'\x20'+_0x509b84('Marks\x20each\x20individual\x20data\x20point\x20with\x20a\x20small\x20circle\x20on\x20the\x20line.\x20Useful\x20for\x20spotting\x20data\x20resolution,\x20gaps\x20in\x20history,\x20and\x20seeing\x20exactly\x20where\x20each\x20measurement\x20was\x20recorded.')+_0x196ca0(0x699)+(_0x1051ca?_0x196ca0(0x538)+this[_0x196ca0(0x9df)](_0x196ca0(0xea1))+'\x20'+_0x509b84(_0x196ca0(0x97c))+_0x196ca0(0x8b4)+escapeHtml(_0x4c4007[_0x196ca0(0x759)]??'')+_0x196ca0(0x1ca):'')+_0x196ca0(0x9f3):'')+_0x196ca0(0xa37)+(_0x217ee5==='gauge'?this[_0x196ca0(0x9df)](_0x196ca0(0x95d)):this['_eT'](_0x196ca0(0x719)))+'\x20'+_0x509b84(_0x217ee5===_0x196ca0(0xa16)?'The\x20gauge\x20dial\x20scale\x20—\x20the\x20value\x20at\x20the\x20start\x20(Min)\x20and\x20end\x20(Max)\x20of\x20the\x20arc.\x20Accepts\x20a\x20number,\x20a\x20~soft\x20bound,\x20or\x20an\x20entity\x20ID.\x20Defaults\x20to\x200–100.':_0x196ca0(0x7ff))+_0x196ca0(0x896)+(_0x217ee5===_0x196ca0(0xa16)?this[_0x196ca0(0x9df)](_0x196ca0(0x41a)):this[_0x196ca0(0x9df)](_0x196ca0(0x4dc)))+'\x20'+_0x509b84(_0x217ee5==='gauge'?'The\x20value\x20at\x20the\x20START\x20of\x20the\x20gauge\x20arc\x20(the\x200%\x20end).\x20Accepts\x20a\x20number,\x20a\x20~soft\x20bound,\x20or\x20an\x20entity\x20ID.\x20Default\x200.':_0x196ca0(0x74b))+'</label><input\x20class=\x22e-lower_bound\x22\x20type=\x22text\x22\x20placeholder=\x220,\x20~0\x20or\x20sensor.x\x22\x20value=\x22'+escapeHtml(_0x4c4007[_0x196ca0(0xf24)]??'')+_0x196ca0(0xc1b)+(_0x217ee5===_0x196ca0(0xa16)?this[_0x196ca0(0x9df)](_0x196ca0(0x701)):this[_0x196ca0(0x9df)](_0x196ca0(0x84b)))+'\x20'+_0x509b84(_0x217ee5===_0x196ca0(0xa16)?_0x196ca0(0x9b0):'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.')+_0x196ca0(0x28c)+escapeHtml(_0x4c4007[_0x196ca0(0x443)]??'')+_0x196ca0(0x46d);})())+_0x53a8bc(0x23d)+(_0x438b22===_0x53a8bc(0x2ee)?_0x53a8bc(0x5b3):'')+_0x53a8bc(0xb5f)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1e0))+_0x53a8bc(0xf2e)+this['_eT'](_0x53a8bc(0x7d7))+'\x20'+_0x509b84('Primary\x20color\x20for\x20this\x20entity\x27s\x20graph\x20line\x20and\x20fill\x20area.\x20Also\x20used\x20as\x20the\x20dot\x20in\x20the\x20state\x20row.\x20Enter\x20threshold\x20to\x20drive\x20color\x20from\x20the\x20threshold\x20bands\x20defined\x20below.')+'</label>'+_0x44a5d9('e-color',_0x4c4007[_0x53a8bc(0xd95)]||_0x53a8bc(0x3e4))+_0x53a8bc(0x743)+(this['_isFieldRelevantForMode']('point_colors',_0x217ee5)?_0x53a8bc(0x23c)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x341))+'\x20'+_0x509b84(_0x53a8bc(0xab0))+_0x53a8bc(0x41d)+_0x44a5d9(_0x53a8bc(0x90b),_0x4c4007[_0x53a8bc(0x100e)]||_0x4c4007[_0x53a8bc(0xd95)]||'#ff4757')+_0x53a8bc(0x743):_0x53a8bc(0xea4))+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1f2))+'\x20'+_0x509b84(_0x53a8bc(0x219))+_0x53a8bc(0x41d)+_0x44a5d9('e-icon_color',_0x4c4007[_0x53a8bc(0xff6)]||_0x4c4007['color']||'#ff4757')+_0x53a8bc(0xf5d)+this[_0x53a8bc(0x9df)]('State\x20Color')+'\x20'+_0x509b84(_0x53a8bc(0x26e))+_0x53a8bc(0x41d)+_0x44a5d9(_0x53a8bc(0x58a),_0x4c4007[_0x53a8bc(0xb88)]||_0x4c4007[_0x53a8bc(0xd95)]||'#ff4757')+_0x53a8bc(0xe7a)+(_0x217ee5===_0x53a8bc(0xa16)?_0x53a8bc(0xf61)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x4df))+'\x20'+_0x509b84(_0x53a8bc(0x785))+'</label>'+_0x44a5d9(_0x53a8bc(0x839),_0x4c4007['needle_color']??'')+_0x53a8bc(0x377):'')+_0x53a8bc(0xbff)+(!_0x3cda60?'lk':'')+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><path\x20d=\x22M3\x2017\x209\x2011\x2013\x2015\x2021\x207\x2021\x2020\x203\x2020Z\x22/></svg>'+this[_0x53a8bc(0x9df)]('Fill')+'\x20'+_0x509b84(_0x53a8bc(0x21b))+_0x53a8bc(0xf8e)+(_0x3cda60?'checked':'')+'><span\x20class=\x22msl\x22></span></label></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22csb\x22\x20'+_0x59f474(_0x3cda60)+_0x53a8bc(0xe69)+(_0x4c4007['gradient']!==![]?_0x53a8bc(0xe82):'')+'\x20'+(_0x3cda60?'':_0x53a8bc(0x4cb))+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x99a))+'\x20'+_0x509b84(_0x53a8bc(0xa10))+_0x53a8bc(0xd1a)+this['_eT'](_0x53a8bc(0x59e))+'\x20'+_0x509b84(_0x53a8bc(0xd10))+_0x53a8bc(0x3fd)+(_0x4c4007['fill_opacity']!=null?escapeHtml(String(_0x4c4007[_0x53a8bc(0x18c)])):'')+'\x22\x20'+(_0x3cda60?'':_0x53a8bc(0x4cb))+'></div><div\x20class=\x22f\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(this['_isFieldRelevantForMode'](_0x53a8bc(0xc6b),_0x217ee5)?_0x53a8bc(0x5b1)+(_0x250d61?.[_0x53a8bc(0x1007)]?'lk':'')+_0x53a8bc(0x2a7)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x710))+'\x20'+_0x509b84(_0x53a8bc(0xa2a))+'</div><label\x20class=\x22ms\x22><input\x20class=\x22e-risefall_enabled\x22\x20type=\x22checkbox\x22\x20'+(_0x5a74fb?.['enabled']?_0x53a8bc(0xe82):'')+'\x20'+(_0x250d61?.['enabled']?_0x53a8bc(0x4cb):'')+_0x53a8bc(0x4a9)+(_0x250d61?.[_0x53a8bc(0x1007)]?'<div\x20class=\x22ln\x22>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0xb98))+'</div>':'')+'<div\x20class=\x22csb\x22\x20'+(!_0x5a74fb?.['enabled']||_0x250d61?.[_0x53a8bc(0x1007)]?_0x53a8bc(0xa53):'')+_0x53a8bc(0x7d5)+this[_0x53a8bc(0x9df)]('Rising')+'\x20'+_0x509b84('Color\x20used\x20when\x20the\x20value\x20is\x20increasing.')+_0x53a8bc(0xaba)+escapeHtml(this[_0x53a8bc(0x957)](_0x5a74fb?.[_0x53a8bc(0x17a)]??_0x53a8bc(0x267)))+_0x53a8bc(0xc1b)+this[_0x53a8bc(0x9df)](_0x53a8bc(0xf5a))+'\x20'+_0x509b84(_0x53a8bc(0x5e1))+_0x53a8bc(0xfea)+escapeHtml(this['_coerceColor'](_0x5a74fb?.[_0x53a8bc(0x6c9)]??_0x53a8bc(0x1001)))+'\x22></div><div\x20class=\x22f\x22><label>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x3a4))+'\x20'+_0x509b84(_0x53a8bc(0x32d))+'</label><input\x20class=\x22e-risefall_stable\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this['_coerceColor'](_0x5a74fb?.[_0x53a8bc(0x2fd)]??_0x53a8bc(0x693)))+_0x53a8bc(0x102f):'')+(this[_0x53a8bc(0x6f2)]('color_thresholds',_0x217ee5)?_0x53a8bc(0x5b1)+(_0x5a74fb?.[_0x53a8bc(0x1007)]?'lk':'')+'\x22><div\x20class=\x22csh\x22><div\x20class=\x22cst\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><rect\x20x=\x223\x22\x20y=\x223\x22\x20width=\x227\x22\x20height=\x227\x22/><rect\x20x=\x2214\x22\x20y=\x223\x22\x20width=\x227\x22\x20height=\x227\x22/><rect\x20x=\x2214\x22\x20y=\x2214\x22\x20width=\x227\x22\x20height=\x227\x22/><rect\x20x=\x223\x22\x20y=\x2214\x22\x20width=\x227\x22\x20height=\x227\x22/></svg>'+this[_0x53a8bc(0x9df)](_0x53a8bc(0x6a7))+'\x20'+_0x509b84(_0x53a8bc(0x328))+_0x53a8bc(0xa57)+(_0x250d61?.[_0x53a8bc(0x1007)]?'checked':'')+'\x20'+(_0x5a74fb?.['enabled']?_0x53a8bc(0x4cb):'')+_0x53a8bc(0x4a9)+(_0x5a74fb?.[_0x53a8bc(0x1007)]?_0x53a8bc(0xa9a)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1b5))+_0x53a8bc(0x743):'')+_0x53a8bc(0x602)+(!_0x250d61?.[_0x53a8bc(0x1007)]||_0x5a74fb?.[_0x53a8bc(0x1007)]?_0x53a8bc(0xa53):'')+_0x53a8bc(0x386)+this['_eT'](_0x53a8bc(0x505))+'\x20'+_0x509b84(_0x53a8bc(0xd36))+_0x53a8bc(0x493)+_0x12e6a5('vertical',_0x250d61?.[_0x53a8bc(0x38a)]??_0x53a8bc(0x40d),this[_0x53a8bc(0x9df)](_0x53a8bc(0x1ef)))+_0x12e6a5(_0x53a8bc(0xc96),_0x250d61?.[_0x53a8bc(0x38a)]??_0x53a8bc(0x40d),this[_0x53a8bc(0x9df)](_0x53a8bc(0x414)))+_0x53a8bc(0xeae)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x1e5))+'\x20'+_0x509b84(_0x53a8bc(0x41e))+_0x53a8bc(0xecf)+_0x12e6a5(_0x53a8bc(0xe46),_0x250d61?.[_0x53a8bc(0x36b)]??_0x53a8bc(0xe46),this[_0x53a8bc(0x9df)](_0x53a8bc(0x675)))+_0x12e6a5(_0x53a8bc(0xab7),_0x250d61?.['transition']??_0x53a8bc(0xe46),this[_0x53a8bc(0x9df)]('Hard'))+_0x53a8bc(0xa97)+(_0x250d61?.[_0x53a8bc(0x873)]?_0x53a8bc(0xe82):'')+_0x53a8bc(0xd41)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x365))+'\x20'+_0x509b84(_0x53a8bc(0x36f))+_0x53a8bc(0x4b4)+(_0x38e84c||_0x53a8bc(0x2f7)+this[_0x53a8bc(0x9df)]('No\x20thresholds\x20yet')+_0x53a8bc(0x743))+_0x53a8bc(0x411)+(_0x5a74fb?.[_0x53a8bc(0x1007)]?_0x53a8bc(0x4cb):'')+_0x53a8bc(0x5f6)+this[_0x53a8bc(0x9df)](_0x53a8bc(0x6ae))+_0x53a8bc(0xee8):'')+_0x53a8bc(0x645);})[_0x1ac0ec(0x888)](''),_0x2c71ce=_0x1ac0ec(0xb3a)+(this['_openPanels'][_0x1ac0ec(0x101d)](_0x1ac0ec(0xd97))?_0x1ac0ec(0x764):'')+_0x1ac0ec(0xa77)+this[_0x1ac0ec(0x9df)]('Entities')+_0x1ac0ec(0x3a0)+this[_0x1ac0ec(0xfef)]['length']+'\x20'+this['_eT'](_0x1ac0ec(0xf1e))+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-chevron\x22><svg\x20width=\x2216\x22\x20height=\x2216\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><polyline\x20points=\x226\x209\x2012\x2015\x2018\x209\x22/></svg></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22el\x22\x20id=\x22entity-list\x22>'+_0x2c06ba+_0x1ac0ec(0x1005)+(_0x988d90[_0x1ac0ec(0x815)]===_0x1ac0ec(0xa1c)&&this['_entities']['length']>=0x2||_0x988d90[_0x1ac0ec(0x815)]==='heatmap'&&this[_0x1ac0ec(0xfef)][_0x1ac0ec(0xc02)]>=0x1||_0x988d90['chart_mode']===_0x1ac0ec(0xdbc)&&this[_0x1ac0ec(0xfef)][_0x1ac0ec(0xc02)]>=0x1?'':'<button\x20id=\x22add-entity\x22\x20class=\x22add-btn\x22><svg\x20width=\x2216\x22\x20height=\x2216\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><line\x20x1=\x2212\x22\x20y1=\x225\x22\x20x2=\x2212\x22\x20y2=\x2219\x22/><line\x20x1=\x225\x22\x20y1=\x2212\x22\x20x2=\x2219\x22\x20y2=\x2212\x22/></svg>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x6d2))+_0x1ac0ec(0xfcb))+_0x1ac0ec(0x622),_0x29002b=_0x1ac0ec(0xbed)+_0x36e2ca+_0x1ac0ec(0x168);this[_0x1ac0ec(0xf09)]=(this[_0x1ac0ec(0xf09)]||0x0)+0x1;const _0x4972d4=_0x1ac0ec(0xb3a)+(this[_0x1ac0ec(0xb40)][_0x1ac0ec(0x101d)](_0x1ac0ec(0x30b))?_0x1ac0ec(0x764):'')+_0x1ac0ec(0x1e9)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf1c))+_0x1ac0ec(0x3a0)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x203))+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22panel-chevron\x22><svg\x20width=\x2216\x22\x20height=\x2216\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222.5\x22><polyline\x20points=\x226\x209\x2012\x2015\x2018\x209\x22/></svg></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22panel-body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22tabs\x20cs-tabs\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x4d5321?_0x1ac0ec(0x880)+(_0x1fa5c9===_0x1ac0ec(0x20b)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0xff5)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x71a))+'</button>':'')+_0x1ac0ec(0xb39)+(_0x1fa5c9===_0x1ac0ec(0xca3)?_0x1ac0ec(0x5b3):'')+'\x22\x20data-cstab=\x22styling\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xa21))+_0x1ac0ec(0x344)+(_0x1fa5c9==='locale'?_0x1ac0ec(0x5b3):'')+'\x22\x20data-cstab=\x22locale\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x95b))+_0x1ac0ec(0x23a)+(_0x1fa5c9==='headericon'?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0x7ad)+(!_0x4d5321?'<div\x20class=\x22fg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22fgl\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x436))+_0x1ac0ec(0xa0d)+this['_eT']('Card\x20Header')+'\x20'+_0x509b84(_0x1ac0ec(0x704))+_0x1ac0ec(0xbd4)+this['_eT'](_0x1ac0ec(0x275))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x26a)]??'')+_0x1ac0ec(0xc1b)+this[_0x1ac0ec(0x9df)]('Header\x20&\x20Battery')+'\x20'+_0x509b84(_0x1ac0ec(0x939))+'</label><input\x20id=\x22card_header_size\x22\x20type=\x22text\x22\x20placeholder=\x2216px\x22\x20value=\x22'+escapeHtml(_0x988d90['card_header_size']??'')+'\x22></div><div\x20class=\x22f\x22><label>'+this['_eT'](_0x1ac0ec(0x554))+'\x20'+_0x509b84(_0x1ac0ec(0xdb1))+_0x1ac0ec(0x3ce)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)][_0x1ac0ec(0xb3f)](_0x3252e5=>_0x12e6a5(_0x3252e5,_0x988d90['align_header']??_0x1ac0ec(0xaaf),this['_eT'](_0x3252e5[_0x1ac0ec(0xdf0)](0x0)['toUpperCase']()+_0x3252e5['slice'](0x1))))[_0x1ac0ec(0x888)]('')+'</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r3\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x56c))+'\x20'+_0x509b84(_0x1ac0ec(0x857))+_0x1ac0ec(0xa4b)+[_0x1ac0ec(0x744),_0x1ac0ec(0xc96)]['map'](_0x54df38=>_0x12e6a5(_0x54df38,_0x988d90['state_layout']??'default',{'default':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xb32)),'horizontal':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x414))}[_0x54df38]))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xeae)+this['_eT'](_0x1ac0ec(0x83b))+'\x20'+_0x509b84('Custom\x20color\x20for\x20the\x20header\x20text.\x20Accepts\x20any\x20CSS\x20color\x20or\x20variable.\x20Leave\x20empty\x20for\x20theme\x20default.')+_0x1ac0ec(0xca6)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['card_header_color']??'')+'\x22><input\x20id=\x22card_header_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0x7b6)]||'#888888'))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xde8))+'\x20'+_0x509b84(_0x1ac0ec(0x849))+'</label><input\x20id=\x22card_header_weight\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['card_header_weight']??'')+_0x1ac0ec(0x991)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xe2d))+'\x20'+_0x509b84(_0x1ac0ec(0xc3b))+_0x1ac0ec(0x37c)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0x769)]??'')+_0x1ac0ec(0x540)+this['_eT'](_0x1ac0ec(0xdec))+_0x1ac0ec(0xa0d)+this[_0x1ac0ec(0x9df)]('Icon\x20Color')+'\x20'+_0x509b84(_0x1ac0ec(0x5d4))+_0x1ac0ec(0x41d)+_0x44a5d9(_0x1ac0ec(0x358),_0x988d90[_0x1ac0ec(0x160)]??'')+_0x1ac0ec(0xf5d)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x277))+'\x20'+_0x509b84(_0x1ac0ec(0x247))+_0x1ac0ec(0x5d6)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xa41))+'\x20'+_0x509b84(_0x1ac0ec(0xf44))+_0x1ac0ec(0xb12)+escapeHtml(_0x988d90[_0x1ac0ec(0x4ef)]??'')+_0x1ac0ec(0xc9f)+this['_eT'](_0x1ac0ec(0x248))+'\x20'+_0x509b84('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.')+_0x1ac0ec(0x7f5)+escapeHtml(_0x988d90['card_icon_image']??'')+'\x22></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xf0c))+'\x20'+_0x509b84(_0x1ac0ec(0xf96))+'</label><div\x20class=\x22sw\x22><select\x20id=\x22card_icon_position\x22>'+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)]['map'](_0x3d6241=>_0x12e6a5(_0x3d6241,_0x988d90['card_icon_position']??_0x1ac0ec(0xaaf),this[_0x1ac0ec(0x9df)](_0x3d6241[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x3d6241['slice'](0x1))))[_0x1ac0ec(0x888)]('')+'</select></div></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>':'')+_0x1ac0ec(0xcda)+(_0x1fa5c9===_0x1ac0ec(0xca3)?_0x1ac0ec(0x5b3):'')+_0x1ac0ec(0x9f0)+this[_0x1ac0ec(0x9df)]('Card\x20Styling')+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4d5321?'':_0x1ac0ec(0x538)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xe0c))+'\x20'+_0x509b84(_0x1ac0ec(0x26d),_0x1ac0ec(0xf3e))+_0x1ac0ec(0x5bc)+['subtle',_0x1ac0ec(0x23b)][_0x1ac0ec(0xb3f)](_0x3b26b9=>_0x12e6a5(_0x3b26b9,_0x988d90['axis_style']??_0x1ac0ec(0x4e7),this[_0x1ac0ec(0x9df)](_0x3b26b9===_0x1ac0ec(0x23b)?_0x1ac0ec(0xa25):'Subtle\x20(card\x20default)')))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x726))+_0x1ac0ec(0x568)+this[_0x1ac0ec(0x9df)]('Height')+'\x20'+_0x509b84(_0x1ac0ec(0xf76))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22height\x22\x20type=\x22text\x22\x20inputmode=\x22numeric\x22\x20placeholder=\x22auto\x22\x20value=\x22'+escapeHtml(_0x988d90['height']==null||_0x988d90['height']===_0x1ac0ec(0x6c8)||_0x988d90[_0x1ac0ec(0x43d)]===''?_0x1ac0ec(0x6c8):_0x13f6a5(_0x988d90[_0x1ac0ec(0x43d)],0x96))+'\x22><span\x20class=\x22u\x22>px</span></div></div><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)]('Background')+'\x20'+_0x509b84('Custom\x20background\x20color\x20for\x20the\x20card.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20name,\x20rgb,\x20rgba).\x20Use\x20rgba(r,g,b,a)\x20for\x20transparency,\x20e.g.\x20rgba(155,150,150,0.3).\x20Leave\x20empty\x20for\x20theme\x20default.')+_0x1ac0ec(0xc4b)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0xa4c)]??'')+'\x22><input\x20id=\x22card_background_color_pick\x22\x20type=\x22color\x22\x20value=\x22'+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90[_0x1ac0ec(0xa4c)]||_0x1ac0ec(0xca2)))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x3d8))+'\x20'+_0x509b84(_0x1ac0ec(0xae0))+_0x1ac0ec(0x5a5)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0xb14)]??'')+_0x1ac0ec(0xdde)+(_0x988d90[_0x1ac0ec(0x773)]!==![]?_0x1ac0ec(0xe82):'')+'><span\x20class=\x22ss\x22></span></div><div\x20class=\x22sl\x22><span\x20class=\x22sn\x22>'+this[_0x1ac0ec(0x9df)]('Card\x20Shadow')+'\x20'+_0x509b84(_0x1ac0ec(0xfe0))+'</span></div></label><label\x20class=\x22si\x22><div\x20class=\x22st\x22><input\x20id=\x22card_border\x22\x20type=\x22checkbox\x22\x20'+(_0x988d90[_0x1ac0ec(0x509)]!==![]?'checked':'')+_0x1ac0ec(0xd41)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x85d))+'\x20'+_0x509b84(_0x1ac0ec(0x48c))+_0x1ac0ec(0xd0b)+(_0x988d90[_0x1ac0ec(0x509)]!==![]?'<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x8ec))+'\x20'+_0x509b84(_0x1ac0ec(0x55e))+_0x1ac0ec(0xe6c)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+'\x22\x20value=\x22'+escapeHtml(_0x988d90[_0x1ac0ec(0xc19)]??'')+_0x1ac0ec(0xe2b)+escapeHtml(this[_0x1ac0ec(0x957)](_0x988d90['card_border_color']||_0x1ac0ec(0x44d)))+_0x1ac0ec(0x498)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x5fa))+'\x20'+_0x509b84(_0x1ac0ec(0x71f))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22card_border_width\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90[_0x1ac0ec(0x830)]??'')+'\x22></div></div></div>':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this['_eT']('Padding')+'\x20'+_0x509b84(_0x1ac0ec(0x8dd))+'</label><div\x20class=\x22iu\x22><input\x20id=\x22card_padding\x22\x20type=\x22text\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xd1b))+_0x1ac0ec(0x906)+escapeHtml(_0x988d90['card_padding']??'')+_0x1ac0ec(0xdb4)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x102b))+'\x20'+_0x509b84('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).')+_0x1ac0ec(0x92f)+escapeHtml(_0x988d90[_0x1ac0ec(0x60d)]??'')+_0x1ac0ec(0xc1b)+this['_eT'](_0x1ac0ec(0xf3a))+'\x20'+_0x509b84(_0x1ac0ec(0x3ee))+_0x1ac0ec(0x27c)+escapeHtml(_0x988d90[_0x1ac0ec(0x39e)]??'')+_0x1ac0ec(0x7fc)+(_0x31237f||_0x217ee5===_0x1ac0ec(0xd20)||_0x217ee5==='ranking'||_0x97cea2?'<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22><label>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x1bb))+'\x20'+_0x509b84(_0x1ac0ec(0x6d6))+_0x1ac0ec(0x9bf)+[_0x1ac0ec(0xaaf),_0x1ac0ec(0x942),_0x1ac0ec(0x1fd)]['map'](_0x5afa4b=>_0x12e6a5(_0x5afa4b,_0x988d90[_0x1ac0ec(0x238)]??_0x1ac0ec(0x942),this['_eT'](_0x5afa4b[_0x1ac0ec(0xdf0)](0x0)[_0x1ac0ec(0x801)]()+_0x5afa4b[_0x1ac0ec(0x165)](0x1))))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xb9a):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22r2\x20mt8\x22><div\x20class=\x22f\x22\x20style=\x22grid-column:1/-1\x22><label>'+this[_0x1ac0ec(0x9df)]('Custom\x20CSS')+'\x20'+_0x509b84(_0x1ac0ec(0x7ac))+'</label><textarea\x20id=\x22styles\x22\x20rows=\x225\x22\x20spellcheck=\x22false\x22\x20placeholder=\x22.sgc-state-value\x20{\x20font-weight:\x20500;\x20}\x22\x20style=\x22width:100%;box-sizing:border-box;padding:8px\x2010px;border:1px\x20solid\x20var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:12px;font-family:monospace;resize:vertical;outline:none\x22>\x0a'+escapeHtml(typeof _0x988d90[_0x1ac0ec(0x823)]===_0x1ac0ec(0xade)?_0x988d90['styles']:'')+_0x1ac0ec(0x5ce)+(_0x1fa5c9===_0x1ac0ec(0x23e)?'active':'')+'\x22\x20data-cstc=\x22locale\x22><div\x20class=\x22fg\x22><div\x20class=\x22fgl\x22>'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x95b))+_0x1ac0ec(0x497)+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xa23))+'\x20'+_0x509b84(_0x1ac0ec(0x700))+'</label><div\x20class=\x22sw\x22><select\x20id=\x22language\x22>'+[{'v':'auto','l':this[_0x1ac0ec(0x9df)]('Auto\x20(HA\x20language)')},...Object[_0x1ac0ec(0x3ab)](LANG_NAMES)[_0x1ac0ec(0xb3f)](_0x5deee7=>({'v':_0x5deee7,'l':LANG_NAMES[_0x5deee7]||_0x5deee7}))[_0x1ac0ec(0xd09)]((_0x169eec,_0x1346f7)=>_0x169eec['l'][_0x1ac0ec(0xb1c)](_0x1346f7['l'])),..._0x988d90['language']&&_0x988d90[_0x1ac0ec(0x5cd)]!=='auto'&&!LANG_NAMES[_0x988d90['language']]?[{'v':_0x988d90[_0x1ac0ec(0x5cd)],'l':_0x988d90['language']}]:[]]['map'](_0x151dbd=>_0x12e6a5(_0x151dbd['v'],_0x988d90[_0x1ac0ec(0x5cd)]??_0x1ac0ec(0x6c8),_0x151dbd['l']))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0xeae)+this[_0x1ac0ec(0x9df)]('Time\x20Zone')+'\x20'+_0x509b84('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.')+_0x1ac0ec(0x350)+[{'v':_0x1ac0ec(0x6c8),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0x4d2))},{'v':_0x1ac0ec(0xfdc),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xeab))},{'v':_0x1ac0ec(0xdb2),'l':this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xe79))},..._0x988d90[_0x1ac0ec(0x1fa)]&&!['auto','local',_0x1ac0ec(0xdb2)][_0x1ac0ec(0xf06)](_0x988d90['time_zone'])?[{'v':_0x988d90['time_zone'],'l':_0x988d90[_0x1ac0ec(0x1fa)]}]:[]][_0x1ac0ec(0xb3f)](_0xb08fc=>_0x12e6a5(_0xb08fc['v'],_0x988d90[_0x1ac0ec(0x1fa)]??_0x1ac0ec(0x6c8),_0xb08fc['l']))[_0x1ac0ec(0x888)]('')+_0x1ac0ec(0x454);this['shadowRoot'][_0x1ac0ec(0x17c)]=_0x29002b+'<div\x20class=\x22root\x22><div\x20class=\x22sgc-ed-search\x22><svg\x20width=\x2214\x22\x20height=\x2214\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20stroke=\x22currentColor\x22\x20stroke-width=\x222\x22><circle\x20cx=\x2211\x22\x20cy=\x2211\x22\x20r=\x228\x22/><line\x20x1=\x2221\x22\x20y1=\x2221\x22\x20x2=\x2216.65\x22\x20y2=\x2216.65\x22/></svg><input\x20id=\x22sgc_ed_search\x22\x20type=\x22search\x22\x20placeholder=\x22'+this[_0x1ac0ec(0x9df)](_0x1ac0ec(0xddf))+_0x1ac0ec(0x906)+escapeHtml(this['_searchQ']||'')+_0x1ac0ec(0x446)+_0x4ef840+_0x4972d4+_0x2c71ce+_0x1ac0ec(0x743),this[_0x1ac0ec(0x9d1)](),this[_0x1ac0ec(0x472)]();if(_0x50e80b?.[_0x1ac0ec(0x89b)]){const _0x198ec0=this[_0x1ac0ec(0xbb2)][_0x1ac0ec(0xee6)](_0x50e80b['path']);if(_0x198ec0){_0x198ec0[_0x1ac0ec(0x42f)]();if(_0x50e80b['ss']!==void 0x0)try{_0x198ec0[_0x1ac0ec(0xef5)](_0x50e80b['ss'],_0x50e80b['se']);}catch{}}}}[_0x46af5e(0x636)](_0x2ace7d,_0x68e898,_0x42775a,_0x4538c2={}){const _0x422e27=_0x46af5e;if(!_0x2ace7d||_0x2ace7d['_sgcIcon'])return;_0x2ace7d[_0x422e27(0x1ce)]=!![],_0x2ace7d[_0x422e27(0x17c)]='';const _0x1e10fa=!!_0x4538c2[_0x422e27(0x4cb)],_0x47e620=document[_0x422e27(0xbde)](_0x422e27(0x76f));_0x47e620[_0x422e27(0x944)][_0x422e27(0x836)]=_0x422e27(0x59d);const _0x439df5=document[_0x422e27(0xbde)](_0x422e27(0xa3d));_0x439df5[_0x422e27(0xefa)]=_0x422e27(0xa3d),_0x439df5[_0x422e27(0x4cb)]=_0x1e10fa,_0x439df5[_0x422e27(0x944)][_0x422e27(0x836)]=_0x422e27(0xb47)+(_0x1e10fa?';opacity:.5;cursor:not-allowed':'');const _0x387e88=document[_0x422e27(0xbde)](_0x422e27(0x4b8));_0x387e88[_0x422e27(0x944)][_0x422e27(0x836)]=_0x422e27(0x376);const _0x102f8b=document[_0x422e27(0xbde)](_0x422e27(0x7db));_0x102f8b[_0x422e27(0x944)]['cssText']=_0x422e27(0xc1f);const _0x526377=document[_0x422e27(0xbde)]('span');_0x526377[_0x422e27(0x944)][_0x422e27(0x836)]='flex-shrink:0;color:var(--ts);display:flex',_0x526377[_0x422e27(0x17c)]='<svg\x20width=\x2716\x27\x20height=\x2716\x27\x20viewBox=\x270\x200\x2024\x2024\x27\x20fill=\x27none\x27\x20stroke=\x27currentColor\x27\x20stroke-width=\x272\x27><polyline\x20points=\x276\x209\x2012\x2015\x2018\x209\x27/></svg>',_0x439df5[_0x422e27(0x4f6)](_0x387e88,_0x102f8b,_0x526377);const _0x2f93da=document[_0x422e27(0xbde)](_0x422e27(0x76f));_0x2f93da[_0x422e27(0x944)]['cssText']='position:absolute;top:calc(100%\x20+\x204px);left:0;width:230px;max-width:70vw;z-index:100;background:var(--bg);border:1px\x20solid\x20var(--bd);border-radius:8px;box-shadow:0\x206px\x2024px\x20rgba(0,0,0,.25);padding:8px;display:none';const _0x100fdb=_0x114588=>typeof _0x114588===_0x422e27(0xade)&&(_0x114588[_0x422e27(0xf06)]('{{')||_0x114588[_0x422e27(0xf06)]('{%')),_0x57767a=()=>{const _0x162948=_0x422e27,_0x11a43a=(_0x68e898()||'')['trim']();if(_0x100fdb(_0x11a43a))_0x387e88[_0x162948(0x751)]('icon','mdi:code-braces'),_0x387e88['style'][_0x162948(0xcf5)]=_0x162948(0x1a4),_0x102f8b['textContent']=this[_0x162948(0x9df)]('Template'),_0x102f8b[_0x162948(0x944)]['color']=_0x162948(0xac0);else _0x11a43a?(_0x387e88[_0x162948(0x751)](_0x162948(0x5b0),_0x11a43a),_0x387e88[_0x162948(0x944)][_0x162948(0xcf5)]=_0x162948(0x1a4),_0x102f8b[_0x162948(0x3d2)]=_0x11a43a,_0x102f8b['style'][_0x162948(0xd95)]=_0x162948(0xac0)):(_0x387e88['removeAttribute'](_0x162948(0x5b0)),_0x387e88['style'][_0x162948(0xcf5)]=_0x162948(0x169),_0x102f8b[_0x162948(0x3d2)]=_0x4538c2[_0x162948(0x24e)]||this[_0x162948(0x9df)](_0x162948(0xb7a)),_0x102f8b[_0x162948(0x944)]['color']='var(--ts)');},_0x76919e=document[_0x422e27(0xbde)](_0x422e27(0x3f5));_0x76919e[_0x422e27(0xefa)]=_0x422e27(0x8a1),_0x76919e[_0x422e27(0x24e)]=_0x4538c2[_0x422e27(0xa47)]||_0x422e27(0x2ef),_0x76919e[_0x422e27(0x2ea)]=_0x68e898()||'',_0x76919e['style'][_0x422e27(0x836)]=_0x422e27(0xf1a);let _0x55019e=![];_0x76919e['addEventListener']('input',()=>{const _0x5786a4=_0x422e27;_0x42775a(_0x76919e[_0x5786a4(0x2ea)]||void 0x0),_0x57767a(),_0x55019e=!![];}),_0x76919e[_0x422e27(0x171)](_0x422e27(0xe34),()=>{const _0x36b0b3=_0x422e27;_0x55019e&&(_0x55019e=![],this[_0x36b0b3(0xcb7)]());});const _0x29145a=document['createElement'](_0x422e27(0x76f));_0x29145a['textContent']=this['_eT']('Type\x20an\x20icon\x20or\x20Jinja\x20template,\x20or\x20browse\x20below.'),_0x29145a[_0x422e27(0x944)][_0x422e27(0x836)]=_0x422e27(0xcbd),_0x2f93da[_0x422e27(0x4f6)](_0x76919e,_0x29145a);let _0x4daa8a=null;const _0xc29064=_0x40595d=>{const _0x4d0bfb=_0x422e27;_0x42775a(_0x40595d||void 0x0);if(_0x76919e)_0x76919e[_0x4d0bfb(0x2ea)]=_0x40595d||'';_0x57767a(),this['_valueChanged'](),_0x32c531();},_0x57a210=()=>{const _0xc5ed0b=_0x422e27;if(_0x4daa8a)return;const _0x3adc8d=(_0x68e898()||'')['trim']();if(this[_0xc5ed0b(0x1dc)]&&customElements['get']('ha-icon-picker'))_0x4daa8a=document[_0xc5ed0b(0xbde)](_0xc5ed0b(0x7c5)),_0x4daa8a[_0xc5ed0b(0x32b)]=this['_hass'],_0x4daa8a[_0xc5ed0b(0x2ea)]=_0x100fdb(_0x3adc8d)?'':_0x3adc8d,_0x4daa8a[_0xc5ed0b(0xf1f)]='',_0x4daa8a[_0xc5ed0b(0x944)][_0xc5ed0b(0x836)]=_0xc5ed0b(0xb05),_0x4daa8a[_0xc5ed0b(0x171)](_0xc5ed0b(0x73f),_0xe6560a=>{const _0x1b22e3=_0xc5ed0b;_0xe6560a[_0x1b22e3(0x7ba)](),_0xc29064(_0xe6560a['detail'][_0x1b22e3(0x2ea)]);});else{if(this['_hass']&&customElements[_0xc5ed0b(0xc3f)]('ha-selector'))_0x4daa8a=document[_0xc5ed0b(0xbde)](_0xc5ed0b(0xa7c)),_0x4daa8a[_0xc5ed0b(0x32b)]=this[_0xc5ed0b(0x1dc)],_0x4daa8a[_0xc5ed0b(0x193)]={'icon':{}},_0x4daa8a[_0xc5ed0b(0x2ea)]=_0x100fdb(_0x3adc8d)?'':_0x3adc8d,_0x4daa8a[_0xc5ed0b(0xf1f)]='',_0x4daa8a[_0xc5ed0b(0x944)]['cssText']=_0xc5ed0b(0xb05),_0x4daa8a[_0xc5ed0b(0x171)]('value-changed',_0x4284ed=>{const _0xc36a0a=_0xc5ed0b;_0x4284ed['stopPropagation'](),_0xc29064(_0x4284ed[_0xc36a0a(0xa00)][_0xc36a0a(0x2ea)]);});else return;}_0x2f93da[_0xc5ed0b(0x319)](_0x4daa8a);},_0x34b215=()=>{const _0x6efd51=_0x422e27;if(_0x1e10fa)return;if(this[_0x6efd51(0x51f)]&&this[_0x6efd51(0x51f)][_0x6efd51(0xacb)]!==_0x47e620)this[_0x6efd51(0x51f)][_0x6efd51(0xaf4)]();_0x57a210(),_0x2f93da['style'][_0x6efd51(0x4c4)]=_0x6efd51(0x55f),this[_0x6efd51(0x51f)]={'wrap':_0x47e620,'close':_0x32c531},setTimeout(()=>{try{_0x76919e['focus']();}catch(_0x4fa4d2){}},0x1e);},_0x32c531=()=>{const _0x498a2d=_0x422e27;_0x2f93da[_0x498a2d(0x944)][_0x498a2d(0x4c4)]=_0x498a2d(0x412);if(this[_0x498a2d(0x51f)]&&this['_cpdOpen'][_0x498a2d(0xacb)]===_0x47e620)this[_0x498a2d(0x51f)]=null;_0x55019e&&(_0x55019e=![],this['_valueChanged']());};_0x439df5[_0x422e27(0x171)](_0x422e27(0xe5e),()=>{const _0x4ed955=_0x422e27;_0x2f93da['style']['display']===_0x4ed955(0x55f)?_0x32c531():_0x34b215();}),_0x47e620['append'](_0x439df5,_0x2f93da),_0x2ace7d[_0x422e27(0x319)](_0x47e620),_0x57767a(),!this[_0x422e27(0xc79)]&&(this[_0x422e27(0xc79)]=!![],this['shadowRoot'][_0x422e27(0x171)](_0x422e27(0xe5e),_0x12f967=>{const _0x4acc05=_0x422e27;if(!this[_0x4acc05(0x51f)])return;const _0x586e10=_0x12f967[_0x4acc05(0x101c)]?_0x12f967[_0x4acc05(0x101c)]():[_0x12f967[_0x4acc05(0x6bc)]];if(_0x586e10[_0x4acc05(0x42a)](_0x5b9f31=>_0x5b9f31&&_0x5b9f31['nodeName']&&/COMBO-BOX|OVERLAY/i[_0x4acc05(0x920)](_0x5b9f31[_0x4acc05(0xcdb)])))return;if(!_0x586e10[_0x4acc05(0xf06)](this[_0x4acc05(0x51f)][_0x4acc05(0xacb)]))this[_0x4acc05(0x51f)][_0x4acc05(0xaf4)]();},!![]));}[_0x46af5e(0x472)](){const _0x21c573=_0x46af5e,_0x247214=this[_0x21c573(0x5a0)](()=>this[_0x21c573(0xcb7)](),0x190),_0x48c68=()=>this[_0x21c573(0xcb7)]();[[_0x21c573(0x1015),_0x21c573(0x37a)],[_0x21c573(0x37a),_0x21c573(0x1015)]][_0x21c573(0xd27)](([_0x17b589,_0x13564c])=>{const _0x490db2=_0x21c573;this[_0x490db2(0xde0)](_0x17b589,_0x490db2(0xe34),()=>{const _0x3b5b3f=_0x490db2,_0x5230fb=this[_0x3b5b3f(0xbb2)]['getElementById'](_0x17b589),_0x24a44f=this[_0x3b5b3f(0xbb2)][_0x3b5b3f(0x404)](_0x13564c);if(_0x5230fb?.['checked']&&_0x24a44f?.[_0x3b5b3f(0xe82)])_0x24a44f[_0x3b5b3f(0xe82)]=![];});}),this[_0x21c573(0xbb2)][_0x21c573(0xf98)](_0x21c573(0xffe))['forEach'](_0xfe85d=>{const _0x1aa8da=_0x21c573;_0xfe85d[_0x1aa8da(0x171)](_0x1aa8da(0xe5e),()=>{const _0x32892b=_0x1aa8da,_0x3d1904=_0xfe85d[_0x32892b(0x8f6)][_0x32892b(0xa90)];if(this['_openPanels']['has'](_0x3d1904))this[_0x32892b(0xb40)][_0x32892b(0xcc1)](_0x3d1904);else this[_0x32892b(0xb40)][_0x32892b(0x982)](_0x3d1904);_0xfe85d[_0x32892b(0x6c0)](_0x32892b(0xd49))[_0x32892b(0x9a1)][_0x32892b(0xa90)](_0x32892b(0x764));});}),this['shadowRoot'][_0x21c573(0xf98)](_0x21c573(0xa07))[_0x21c573(0xd27)](_0xe8c14c=>{_0xe8c14c['addEventListener']('click',()=>{const _0x1ba567=_0xa914;this[_0x1ba567(0x3c7)]=_0xe8c14c[_0x1ba567(0x8f6)]['mtab'],this[_0x1ba567(0xbb2)][_0x1ba567(0xf98)](_0x1ba567(0xa07))[_0x1ba567(0xd27)](_0x365962=>_0x365962[_0x1ba567(0x9a1)][_0x1ba567(0xa90)](_0x1ba567(0x5b3),_0x365962[_0x1ba567(0x8f6)]['mtab']===this[_0x1ba567(0x3c7)])),this[_0x1ba567(0xbb2)][_0x1ba567(0xf98)]('.mtc')[_0x1ba567(0xd27)](_0x1ee962=>_0x1ee962['classList'][_0x1ba567(0xa90)](_0x1ba567(0x5b3),_0x1ee962[_0x1ba567(0x8f6)][_0x1ba567(0xf23)]===this[_0x1ba567(0x3c7)]));});}),this[_0x21c573(0xbb2)]['querySelectorAll'](_0x21c573(0x33d))[_0x21c573(0xd27)](_0x5b582a=>{const _0x342395=_0x21c573;_0x5b582a[_0x342395(0x171)](_0x342395(0xe5e),()=>{const _0x5b7294=_0x342395;this[_0x5b7294(0x8f8)]=_0x5b582a[_0x5b7294(0x8f6)][_0x5b7294(0x393)],this[_0x5b7294(0xbb2)][_0x5b7294(0xf98)](_0x5b7294(0x33d))[_0x5b7294(0xd27)](_0x49ee4e=>_0x49ee4e[_0x5b7294(0x9a1)][_0x5b7294(0xa90)](_0x5b7294(0x5b3),_0x49ee4e['dataset'][_0x5b7294(0x393)]===this[_0x5b7294(0x8f8)])),this['shadowRoot'][_0x5b7294(0xf98)]('.cstc')['forEach'](_0x2cfb3e=>_0x2cfb3e['classList'][_0x5b7294(0xa90)](_0x5b7294(0x5b3),_0x2cfb3e['dataset']['cstc']===this[_0x5b7294(0x8f8)]));});});const _0x1a89f0=this[_0x21c573(0xbb2)][_0x21c573(0x404)]('sgc_ed_search');_0x1a89f0&&_0x1a89f0[_0x21c573(0x171)]('input',()=>{const _0x3c58d3=_0x21c573;this[_0x3c58d3(0xeb4)]=_0x1a89f0['value'],this['_applyEditorSearch']();});[_0x21c573(0x26a),_0x21c573(0xa0c),_0x21c573(0xa4c),_0x21c573(0x4ef),'card_icon_image',_0x21c573(0x355)]['forEach'](_0x3ad2bb=>this['_on'](_0x3ad2bb,_0x21c573(0x3f5),_0x247214)),[_0x21c573(0x6c1),_0x21c573(0xb14),_0x21c573(0xc19),_0x21c573(0x830),'card_background_image',_0x21c573(0x39e),_0x21c573(0x7b6),'card_header_weight',_0x21c573(0x769),_0x21c573(0x823)]['forEach'](_0x14da70=>this[_0x21c573(0xde0)](_0x14da70,'input',_0x247214)),['hours_to_show',_0x21c573(0x71e),_0x21c573(0x43d),_0x21c573(0xb51),_0x21c573(0x8e9),_0x21c573(0xf2c),'state_strip_height',_0x21c573(0x4bf),'min_bound_range','min_bound_range_secondary','max_visible_interval','extended_window_multiplier','date_picker_step',_0x21c573(0xfe3),_0x21c573(0x6c3),_0x21c573(0x903),'ranking_min_value',_0x21c573(0xaca),_0x21c573(0xf31),_0x21c573(0xe43),_0x21c573(0x882)]['forEach'](_0x47a811=>this[_0x21c573(0xde0)](_0x47a811,_0x21c573(0x3f5),_0x247214)),this[_0x21c573(0xde0)](_0x21c573(0xa8d),_0x21c573(0x3f5),_0x247214),this[_0x21c573(0xde0)](_0x21c573(0xfca),_0x21c573(0x3f5),_0x247214),this['_on'](_0x21c573(0x3ef),'change',_0x48c68),this[_0x21c573(0xde0)]('state_strip_title_position',_0x21c573(0xe34),_0x48c68),[_0x21c573(0x8db),'upper_bound_secondary',_0x21c573(0xf24),'upper_bound',_0x21c573(0xb60),_0x21c573(0x178),'scroll_sync_group',_0x21c573(0x175),_0x21c573(0x545),'pph_picker_group','group_by_picker_group',_0x21c573(0xae4)][_0x21c573(0xd27)](_0x3213fa=>this[_0x21c573(0xde0)](_0x3213fa,_0x21c573(0x3f5),_0x247214)),['y_axis_ticks',_0x21c573(0x1010)][_0x21c573(0xd27)](_0x2c3777=>this[_0x21c573(0xde0)](_0x2c3777,_0x21c573(0x3f5),_0x247214)),[_0x21c573(0xc62),_0x21c573(0x3b7),_0x21c573(0xe9c),_0x21c573(0xfcc)][_0x21c573(0xd27)](_0x2639dd=>this['_on'](_0x2639dd,'input',_0x247214)),[_0x21c573(0x1aa),_0x21c573(0xd8c),'x_axis_font_size',_0x21c573(0xb66),_0x21c573(0x5bd),_0x21c573(0xdb6),_0x21c573(0xdca),_0x21c573(0xdd3),_0x21c573(0xf50),_0x21c573(0xdaf),_0x21c573(0xd2d),_0x21c573(0xe38),_0x21c573(0xa4c),_0x21c573(0xa8c),_0x21c573(0xc57),_0x21c573(0x633),_0x21c573(0x571),_0x21c573(0xb57),_0x21c573(0x598),_0x21c573(0x996),_0x21c573(0x29b),_0x21c573(0xbfc),_0x21c573(0x80a)]['forEach'](_0x20b4b4=>this[_0x21c573(0xde0)](_0x20b4b4,_0x21c573(0x3f5),_0x247214)),['y_axis_color',_0x21c573(0xdb6),_0x21c573(0xdca),_0x21c573(0xdaf),'pie_center_color',_0x21c573(0xa4c),_0x21c573(0xc57),_0x21c573(0xb57),_0x21c573(0x996),_0x21c573(0xc19),_0x21c573(0x7b6),_0x21c573(0x80a)]['forEach'](_0x5f1a2f=>{const _0x5c84e9=_0x21c573,_0x5de8b8=this[_0x5c84e9(0xbb2)][_0x5c84e9(0x404)](_0x5f1a2f+'_pick'),_0xc03555=this['shadowRoot']['getElementById'](_0x5f1a2f);if(_0x5de8b8&&_0xc03555){const _0x3512d7=()=>{const _0xa0e561=_0x5c84e9,_0x43c162=_0xc03555['value'][_0xa0e561(0xa11)](),_0x374f0c=_0x43c162[_0xa0e561(0xf06)]('{{');_0x5de8b8[_0xa0e561(0x944)][_0xa0e561(0x7a2)]=_0x374f0c?_0xa0e561(0xaed):'',_0x5de8b8[_0xa0e561(0x944)]['pointerEvents']=_0x374f0c?'none':'';if(!_0x374f0c&&/^#[0-9a-fA-F]{6}$/['test'](_0x43c162))_0x5de8b8['value']=_0x43c162;};_0x5de8b8['addEventListener'](_0x5c84e9(0x3f5),()=>{const _0x399608=_0x5c84e9;_0xc03555[_0x399608(0x2ea)]=_0x5de8b8[_0x399608(0x2ea)],_0x247214();}),_0xc03555[_0x5c84e9(0x171)](_0x5c84e9(0x3f5),()=>{_0x3512d7();}),_0x3512d7();}}),[_0x21c573(0xa2b),_0x21c573(0x611),'state_layout',_0x21c573(0x3b2),'time_zone','language','chart_mode',_0x21c573(0x1009),_0x21c573(0x82c),_0x21c573(0x9e7),_0x21c573(0x848),_0x21c573(0x272),_0x21c573(0xc06),_0x21c573(0x494),_0x21c573(0xb44),_0x21c573(0x69f),_0x21c573(0x1c9),_0x21c573(0xf8d),_0x21c573(0xa04),_0x21c573(0x8c8),'date_picker_shortcuts_position',_0x21c573(0x367),_0x21c573(0xb03),_0x21c573(0x665),_0x21c573(0x238),'y_grid_style',_0x21c573(0x86c),_0x21c573(0x95c),_0x21c573(0x3d5),_0x21c573(0x310),_0x21c573(0x885),_0x21c573(0x45f),_0x21c573(0xbe7)]['forEach'](_0x83ae55=>this['_on'](_0x83ae55,_0x21c573(0xe34),_0x48c68)),[_0x21c573(0x4bd),_0x21c573(0x54c),_0x21c573(0xdd0),_0x21c573(0x257),_0x21c573(0xe18),'show_tooltip',_0x21c573(0x74f),'tooltip_stacked_total',_0x21c573(0x76d),_0x21c573(0xe1e),_0x21c573(0x589),_0x21c573(0x4f0),_0x21c573(0x9b4),_0x21c573(0xd51),_0x21c573(0x3d7),_0x21c573(0xe44),_0x21c573(0x8fc),_0x21c573(0x18a),_0x21c573(0x4a1),_0x21c573(0xdf9),_0x21c573(0xb55),_0x21c573(0x392),'show_group_by_picker',_0x21c573(0x323),_0x21c573(0x864),'tooltip_match_axis','brush_zoom',_0x21c573(0x206),_0x21c573(0xb38),_0x21c573(0x173),_0x21c573(0xb33),_0x21c573(0xf7b),_0x21c573(0x66b),_0x21c573(0xcfc),_0x21c573(0xbc9),'show_full_period',_0x21c573(0xb1f),_0x21c573(0x82a),'card_shadow','card_border',_0x21c573(0xc31),_0x21c573(0x230),_0x21c573(0x298),_0x21c573(0xb43),'state_timeline_show_labels',_0x21c573(0xbca),_0x21c573(0x45c),_0x21c573(0x1015),_0x21c573(0x37a),_0x21c573(0x378)][_0x21c573(0xd27)](_0x764ba7=>this['_on'](_0x764ba7,_0x21c573(0xe34),_0x48c68)),[_0x21c573(0xeed),'show_interval_picker',_0x21c573(0xb55),'show_pph_picker',_0x21c573(0xb65),_0x21c573(0xb38),_0x21c573(0x173),_0x21c573(0x66b),'scroll_sync',_0x21c573(0x3d7),_0x21c573(0x76d),_0x21c573(0xb1f),_0x21c573(0x298),_0x21c573(0x45c),'include_attribute_name',_0x21c573(0x37a),_0x21c573(0x4d4)][_0x21c573(0xd27)](_0x2e5499=>this[_0x21c573(0xde0)](_0x2e5499,_0x21c573(0xe34),()=>{const _0x3b3ce6=_0x21c573;this[_0x3b3ce6(0x103c)]();})),this['shadowRoot'][_0x21c573(0xf98)](_0x21c573(0xb96))[_0x21c573(0xd27)](_0xa41187=>_0xa41187[_0x21c573(0x171)](_0x21c573(0xe34),_0x48c68)),this[_0x21c573(0xbb2)]['querySelectorAll']('[data-dpmode]')['forEach'](_0x5aee5c=>_0x5aee5c[_0x21c573(0x171)](_0x21c573(0xe34),_0x48c68));const _0x56863f=this[_0x21c573(0xbb2)][_0x21c573(0xee6)]('.card-icon-color-picker');_0x56863f?.[_0x21c573(0x171)](_0x21c573(0xe34),()=>{const _0x27c38a=_0x21c573;this['_tmp']['card_icon_color']=_0x56863f[_0x27c38a(0x2ea)]||void 0x0,_0x48c68();});const _0x1557e4=this[_0x21c573(0xbb2)]['querySelector'](_0x21c573(0x855));_0x1557e4?.['addEventListener'](_0x21c573(0x3f5),this[_0x21c573(0x5a0)](()=>{const _0x40b17b=_0x21c573;this[_0x40b17b(0x866)][_0x40b17b(0x160)]=_0x1557e4[_0x40b17b(0x2ea)][_0x40b17b(0xa11)]()||void 0x0,_0x48c68();},0x190));if(!this['shadowRoot']['getElementById'](_0x21c573(0xcf7))){const _0x37e6ea=document[_0x21c573(0xbde)](_0x21c573(0x944));_0x37e6ea['id']=_0x21c573(0xcf7),_0x37e6ea['textContent']=_0x21c573(0x24c),this[_0x21c573(0xbb2)]['appendChild'](_0x37e6ea);}const _0x1dad3e=()=>{const _0xa7b280=_0x21c573,_0x2e8f20=this[_0xa7b280(0xc83)](),_0x5e939f=[_0xa7b280(0x8d4),_0xa7b280(0x9e5),_0xa7b280(0x1fc),'pink',_0xa7b280(0x313),'deep-purple','indigo','blue','light-blue',_0xa7b280(0xb01),_0xa7b280(0x6f8),_0xa7b280(0xe03),_0xa7b280(0xe77),_0xa7b280(0xfaf),'yellow',_0xa7b280(0xc36),'orange',_0xa7b280(0x506),_0xa7b280(0xcac),'light-grey',_0xa7b280(0xee0),_0xa7b280(0x34e),_0xa7b280(0x40f),_0xa7b280(0xb92),'white'],_0x2c20df=_0x3479af=>this[_0xa7b280(0x9df)](_0x3479af[_0xa7b280(0xdf0)](0x0)['toUpperCase']()+_0x3479af[_0xa7b280(0x165)](0x1)['replace'](/-/g,'\x20'));this[_0xa7b280(0x51f)]=null,!this['_cpdDocBound']&&(this[_0xa7b280(0xc79)]=!![],this[_0xa7b280(0xbb2)]['addEventListener'](_0xa7b280(0xe5e),_0x575660=>{const _0x35b6df=_0xa7b280;if(!this[_0x35b6df(0x51f)])return;const _0x4fc40f=_0x575660[_0x35b6df(0x101c)]?_0x575660[_0x35b6df(0x101c)]():[_0x575660['target']];if(_0x4fc40f[_0x35b6df(0x42a)](_0x134b2c=>_0x134b2c&&_0x134b2c[_0x35b6df(0xcdb)]&&/COMBO-BOX|OVERLAY/i[_0x35b6df(0x920)](_0x134b2c['nodeName'])))return;if(!_0x4fc40f[_0x35b6df(0xf06)](this[_0x35b6df(0x51f)][_0x35b6df(0xacb)]))this[_0x35b6df(0x51f)]['close']();},!![])),this[_0xa7b280(0xbb2)]['querySelectorAll']('.ci')[_0xa7b280(0xd27)](_0x42b36c=>{const _0x22ce2d=_0xa7b280;if(_0x42b36c[_0x22ce2d(0xdcb)]||!_0x42b36c[_0x22ce2d(0x100a)])return;_0x42b36c[_0x22ce2d(0xdcb)]=!![];const _0x458e7a=_0x42b36c['querySelector'](_0x22ce2d(0x480)),_0x475821=_0x42b36c['querySelector']('input[type=\x22color\x22]');if(!_0x458e7a&&!_0x475821)return;const _0x414270=document['createElement']('div');_0x414270[_0x22ce2d(0x944)]['cssText']=_0x22ce2d(0x8a2);const _0x6a1d31=document[_0x22ce2d(0xbde)]('button');_0x6a1d31[_0x22ce2d(0xefa)]='button',_0x6a1d31[_0x22ce2d(0x944)]['cssText']=_0x22ce2d(0x9c9);const _0x582833=document[_0x22ce2d(0xbde)]('span');_0x582833[_0x22ce2d(0x944)][_0x22ce2d(0x836)]='width:16px;height:16px;border-radius:50%;flex-shrink:0;border:1px\x20solid\x20rgba(128,128,128,.45)';const _0x2266a7=document[_0x22ce2d(0xbde)](_0x22ce2d(0x7db));_0x2266a7[_0x22ce2d(0x944)][_0x22ce2d(0x836)]=_0x22ce2d(0x3a6);const _0x592e18=document[_0x22ce2d(0xbde)](_0x22ce2d(0x7db));_0x592e18[_0x22ce2d(0x944)][_0x22ce2d(0x836)]='flex-shrink:0;color:var(--ts);display:flex',_0x592e18[_0x22ce2d(0x17c)]=_0x22ce2d(0x825),_0x6a1d31[_0x22ce2d(0x4f6)](_0x582833,_0x2266a7,_0x592e18);const _0x48ca97=document['createElement'](_0x22ce2d(0x76f));_0x48ca97[_0x22ce2d(0x944)][_0x22ce2d(0x836)]=_0x22ce2d(0xc25);const _0x104c76=(_0x3d3e1b,_0x52f847)=>{const _0x5bd6c4=_0x22ce2d;if(_0x3d3e1b)_0x2266a7[_0x5bd6c4(0x3d2)]=_0x2c20df(_0x3d3e1b),_0x582833[_0x5bd6c4(0x944)]['background']=_0x5bd6c4(0x305)+_0x3d3e1b+_0x5bd6c4(0x790);else _0x52f847?(_0x2266a7[_0x5bd6c4(0x3d2)]=this[_0x5bd6c4(0x9df)](_0x5bd6c4(0xc35)),_0x582833['style'][_0x5bd6c4(0x101e)]=_0x52f847):(_0x2266a7[_0x5bd6c4(0x3d2)]=this['_eT'](_0x5bd6c4(0x2b0)),_0x582833[_0x5bd6c4(0x944)][_0x5bd6c4(0x101e)]='transparent');},_0x2757ec=_0x5d0fa1=>{const _0x4e155b=_0x22ce2d;if(!_0x5d0fa1){_0x458e7a&&(_0x458e7a[_0x4e155b(0x2ea)]='',_0x458e7a[_0x4e155b(0x5c9)](new Event('input',{'bubbles':!![]})));_0x104c76('','');return;}const _0x1c23f5=_0x2e8f20[_0x4e155b(0x2f5)][_0x5d0fa1]||'';_0x458e7a&&(_0x458e7a[_0x4e155b(0x2ea)]=_0x1c23f5||_0x4e155b(0x305)+_0x5d0fa1+_0x4e155b(0x790),_0x458e7a[_0x4e155b(0x5c9)](new Event(_0x4e155b(0x3f5),{'bubbles':!![]}))),_0x475821&&/^#[0-9a-f]{6}$/i['test'](_0x1c23f5)&&(_0x475821[_0x4e155b(0x2ea)]=_0x1c23f5,_0x475821['dispatchEvent'](new Event(_0x4e155b(0xe34),{'bubbles':!![]}))),_0x104c76(_0x5d0fa1);},_0x5694a1=(_0x31ee8b,_0x197f56,_0x5570ff)=>{const _0x29c899=_0x22ce2d,_0x570afe=document[_0x29c899(0xbde)]('div');_0x570afe[_0x29c899(0x944)][_0x29c899(0x836)]='display:flex;align-items:center;gap:10px;padding:7px\x208px;border-radius:6px;cursor:pointer;font-size:13px;color:var(--tx)',_0x570afe[_0x29c899(0x171)](_0x29c899(0x7cc),()=>{const _0x5a6d31=_0x29c899;_0x570afe['style'][_0x5a6d31(0x101e)]=_0x5a6d31(0x4dd);}),_0x570afe[_0x29c899(0x171)](_0x29c899(0xcb5),()=>{const _0x478db5=_0x29c899;_0x570afe[_0x478db5(0x944)][_0x478db5(0x101e)]='';});const _0x3ae1d2=document[_0x29c899(0xbde)](_0x29c899(0x7db));_0x3ae1d2[_0x29c899(0x944)][_0x29c899(0x836)]='width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1px\x20solid\x20rgba(128,128,128,.45);'+(_0x5570ff?_0x29c899(0xb09)+_0x5570ff:_0x29c899(0xd2f));const _0x4f2567=document[_0x29c899(0xbde)](_0x29c899(0x7db));return _0x4f2567['textContent']=_0x197f56,_0x570afe[_0x29c899(0x4f6)](_0x3ae1d2,_0x4f2567),_0x570afe[_0x29c899(0x171)](_0x29c899(0xe5e),()=>{_0x2757ec(_0x31ee8b),_0x46c80d();}),_0x570afe;};_0x48ca97[_0x22ce2d(0x319)](_0x5694a1(null,this[_0x22ce2d(0x9df)]('Default'),'')),_0x5e939f[_0x22ce2d(0xd27)](_0x1e21fd=>_0x48ca97['appendChild'](_0x5694a1(_0x1e21fd,_0x2c20df(_0x1e21fd),_0x22ce2d(0x305)+_0x1e21fd+_0x22ce2d(0x790))));const _0x1d99d4=()=>{const _0x4524c5=_0x22ce2d;if(this[_0x4524c5(0x51f)]&&this[_0x4524c5(0x51f)][_0x4524c5(0xacb)]!==_0x414270)this[_0x4524c5(0x51f)][_0x4524c5(0xaf4)]();_0x48ca97[_0x4524c5(0x944)][_0x4524c5(0x4c4)]='block',this['_cpdOpen']={'wrap':_0x414270,'close':_0x46c80d};},_0x46c80d=()=>{const _0x2bdf56=_0x22ce2d;_0x48ca97[_0x2bdf56(0x944)][_0x2bdf56(0x4c4)]=_0x2bdf56(0x412);if(this[_0x2bdf56(0x51f)]&&this[_0x2bdf56(0x51f)][_0x2bdf56(0xacb)]===_0x414270)this['_cpdOpen']=null;};_0x6a1d31['addEventListener'](_0x22ce2d(0xe5e),()=>{const _0x33282d=_0x22ce2d;_0x48ca97[_0x33282d(0x944)][_0x33282d(0x4c4)]===_0x33282d(0x55f)?_0x46c80d():_0x1d99d4();});const _0x3871a8=(_0x458e7a&&_0x458e7a['value']||_0x475821&&_0x475821[_0x22ce2d(0x2ea)]||'')[_0x22ce2d(0xa11)](),_0x237ddc=_0x3871a8['match'](/^var\(\s*--([a-z-]+)-color\s*\)$/i);if(_0x237ddc)_0x104c76(_0x237ddc[0x1]);else{if(/^#[0-9a-f]{6}$/i[_0x22ce2d(0x920)](_0x3871a8)&&_0x2e8f20['h2n'][_0x3871a8['toLowerCase']()])_0x104c76(_0x2e8f20[_0x22ce2d(0x6b5)][_0x3871a8[_0x22ce2d(0x3fb)]()]);else _0x104c76('',_0x3871a8);}_0x414270[_0x22ce2d(0x4f6)](_0x6a1d31,_0x48ca97),_0x42b36c[_0x22ce2d(0x944)]['alignItems']=_0x22ce2d(0x942),_0x42b36c['insertBefore'](_0x414270,_0x42b36c[_0x22ce2d(0x87c)]);const _0x4969ed=_0x42b36c['closest']('.f');if(_0x4969ed){_0x4969ed[_0x22ce2d(0x944)][_0x22ce2d(0x7aa)]=_0x22ce2d(0xa6c);const _0x3e26bd=_0x4969ed[_0x22ce2d(0xac2)];if(_0x3e26bd&&(_0x3e26bd[_0x22ce2d(0x9a1)][_0x22ce2d(0x2a0)]('r2')||_0x3e26bd['classList']['contains']('r3')))_0x3e26bd[_0x22ce2d(0x944)][_0x22ce2d(0x892)]=_0x22ce2d(0x8ae);}});};_0x1dad3e(),this[_0x21c573(0xbb2)][_0x21c573(0x404)](_0x21c573(0xe9a))?.[_0x21c573(0x171)](_0x21c573(0xe5e),()=>{const _0x289f8b=_0x21c573;this[_0x289f8b(0x866)]['entities']=[...this['_entities'],this['_makeEntityBlank']()];const _0x536841=this['_entities'][_0x289f8b(0xc02)]-0x1;this[_0x289f8b(0xb40)][_0x289f8b(0x982)]('e-'+_0x536841),this[_0x289f8b(0xf69)][_0x536841]='general',this[_0x289f8b(0x103c)](),this[_0x289f8b(0xcb7)]();});const _0x57ce95=this[_0x21c573(0xbb2)]['querySelector'](_0x21c573(0x667));if(_0x57ce95&&this[_0x21c573(0x1dc)]){let _0x5e0b95=0x0;const _0x5dded4=()=>{const _0x5247c5=_0x21c573;if(!_0x57ce95[_0x5247c5(0x191)]&&_0x5e0b95++<0x3c){setTimeout(_0x5dded4,0x32);return;}if(customElements[_0x5247c5(0xc3f)]('ha-selector')){const _0x2c8d07=document[_0x5247c5(0xbde)](_0x5247c5(0xa7c));_0x2c8d07[_0x5247c5(0x32b)]=this[_0x5247c5(0x1dc)],_0x2c8d07[_0x5247c5(0x193)]={'entity':{'filter':{'device_class':'battery'}}},_0x2c8d07[_0x5247c5(0x2ea)]=this[_0x5247c5(0xfe9)][_0x5247c5(0x254)]||'',_0x2c8d07[_0x5247c5(0xf1f)]='',_0x2c8d07[_0x5247c5(0x944)][_0x5247c5(0x836)]='display:block;width:100%',_0x57ce95[_0x5247c5(0x319)](_0x2c8d07),_0x2c8d07['addEventListener'](_0x5247c5(0x73f),_0x201df7=>{const _0x58fa96=_0x5247c5;_0x201df7[_0x58fa96(0x7ba)](),this[_0x58fa96(0x866)]['battery_entity']=_0x201df7[_0x58fa96(0xa00)][_0x58fa96(0x2ea)]||void 0x0,this[_0x58fa96(0xcb7)]();});}else{const _0x1af129=document[_0x5247c5(0xbde)]('input');_0x1af129['type']=_0x5247c5(0x8a1),_0x1af129['placeholder']=_0x5247c5(0xc45),_0x1af129[_0x5247c5(0x2ea)]=this[_0x5247c5(0xfe9)]['battery_entity']||'',_0x1af129[_0x5247c5(0x944)][_0x5247c5(0x836)]=_0x5247c5(0x66e),_0x57ce95[_0x5247c5(0x319)](_0x1af129),_0x1af129[_0x5247c5(0x171)]('input',()=>{const _0x1eeeb4=_0x5247c5;this['_tmp'][_0x1eeeb4(0x254)]=_0x1af129[_0x1eeeb4(0x2ea)]||void 0x0,this[_0x1eeeb4(0xcb7)]();});}};if(customElements[_0x21c573(0xc3f)](_0x21c573(0xa7c)))_0x5dded4();else customElements[_0x21c573(0x6dc)](_0x21c573(0xa7c))[_0x21c573(0x91a)](_0x5dded4)[_0x21c573(0x9d5)](_0x5dded4);}this[_0x21c573(0x636)](this[_0x21c573(0xbb2)][_0x21c573(0xee6)](_0x21c573(0x8b6)),()=>(this[_0x21c573(0x866)]['card_icon']!=null?this[_0x21c573(0x866)]['card_icon']:this[_0x21c573(0xfe9)]['card_icon'])||'',_0x157fec=>{const _0x4e05b3=_0x21c573;this['_tmp'][_0x4e05b3(0x90f)]=_0x157fec;},{'placeholder2':_0x21c573(0xdf7)});const _0x41ea47=()=>{const _0x18ba7f=_0x21c573;return!this[_0x18ba7f(0x866)][_0x18ba7f(0x8eb)]&&(this[_0x18ba7f(0x866)]['auto_scale_rules']=(this[_0x18ba7f(0xfe9)][_0x18ba7f(0x8eb)]||[])[_0x18ba7f(0xb3f)](_0x55f8ca=>({..._0x55f8ca}))),this[_0x18ba7f(0x866)]['auto_scale_rules'];};this['shadowRoot']['querySelector'](_0x21c573(0x910))?.[_0x21c573(0x171)](_0x21c573(0xe5e),()=>{const _0x4d7d5f=_0x21c573,_0x3c7313=_0x41ea47(),_0x2612b1=_0x3c7313['reduce']((_0x4b2713,_0x3d709b)=>Math['max'](_0x4b2713,toNum(_0x3d709b?.[_0x4d7d5f(0x50a)])||0x0),0x0);_0x3c7313['push']({'up_to_hours':_0x2612b1>0x0?_0x2612b1*0x2:0x18,'group_by':'hour'}),this[_0x4d7d5f(0x103c)](),this[_0x4d7d5f(0xcb7)]();});const _0x2ed955=this[_0x21c573(0xbb2)]['querySelector'](_0x21c573(0x671));_0x2ed955?.[_0x21c573(0x171)](_0x21c573(0xe34),_0x3e4631=>{const _0x4fc946=_0x21c573,_0xa6710=_0x3e4631['target'][_0x4fc946(0x6c0)](_0x4fc946(0x5ee));if(!_0xa6710)return;const _0x144ada=parseInt(_0xa6710[_0x4fc946(0x8f6)][_0x4fc946(0xe36)]),_0x3d5ed4=_0x41ea47(),_0x478bbd=_0x3d5ed4[_0x144ada];if(!_0x478bbd)return;const _0xe1e20=_0x3e4631[_0x4fc946(0x6bc)][_0x4fc946(0x9a1)];if(_0xe1e20['contains'](_0x4fc946(0xd5a))){const _0xa19e64=parseFloat(_0x3e4631['target'][_0x4fc946(0x2ea)]);if(!isNaN(_0xa19e64)&&_0xa19e64>0x0)_0x478bbd[_0x4fc946(0x50a)]=_0xa19e64;}if(_0xe1e20[_0x4fc946(0x2a0)]('asr-gb')){_0x478bbd[_0x4fc946(0x3b2)]=_0x3e4631[_0x4fc946(0x6bc)][_0x4fc946(0x2ea)];if(_0x478bbd[_0x4fc946(0x3b2)]!==_0x4fc946(0x1a1))delete _0x478bbd[_0x4fc946(0x71e)];this[_0x4fc946(0xcb7)](),this[_0x4fc946(0x103c)]();return;}if(_0xe1e20[_0x4fc946(0x2a0)](_0x4fc946(0x90d))){const _0x379fa0=parseFloat(_0x3e4631[_0x4fc946(0x6bc)]['value']);if(isNaN(_0x379fa0)||_0x379fa0<=0x0)delete _0x478bbd[_0x4fc946(0x71e)];else _0x478bbd[_0x4fc946(0x71e)]=_0x379fa0;}this[_0x4fc946(0xcb7)]();}),_0x2ed955?.['addEventListener'](_0x21c573(0xe5e),_0x249978=>{const _0xb40a3c=_0x21c573,_0x527cda=_0x249978['target'][_0xb40a3c(0x6c0)](_0xb40a3c(0xd84));if(!_0x527cda)return;const _0x402b1e=parseInt(_0x527cda[_0xb40a3c(0x6c0)](_0xb40a3c(0x5ee))[_0xb40a3c(0x8f6)][_0xb40a3c(0xe36)]);_0x41ea47()[_0xb40a3c(0x76c)](_0x402b1e,0x1),this['_render'](),this[_0xb40a3c(0xcb7)]();}),this[_0x21c573(0xbb2)][_0x21c573(0xee6)](_0x21c573(0x978))?.[_0x21c573(0x171)]('click',()=>{const _0x54a540=_0x21c573;if(!this['_tmp'][_0x54a540(0x163)])this[_0x54a540(0x866)][_0x54a540(0x163)]=[...this[_0x54a540(0xfe9)][_0x54a540(0x163)]||[]];this['_tmp'][_0x54a540(0x163)][_0x54a540(0xb31)]({'type':_0x54a540(0xe42),'value':0x0,'label':'','color':_0x54a540(0x4c9)}),this[_0x54a540(0x103c)](),this[_0x54a540(0xcb7)]();}),this[_0x21c573(0xbb2)]['querySelectorAll']('.ann-row')[_0x21c573(0xd27)](_0x5f4375=>{const _0x555d0d=_0x21c573,_0x130a50=parseInt(_0x5f4375['dataset'][_0x555d0d(0x2c4)]),_0x4eaab9=()=>{const _0x55b7b3=_0x555d0d;if(!this[_0x55b7b3(0x866)][_0x55b7b3(0x163)])this['_tmp'][_0x55b7b3(0x163)]=[...this[_0x55b7b3(0xfe9)][_0x55b7b3(0x163)]||[]];return this[_0x55b7b3(0x866)][_0x55b7b3(0x163)];};_0x5f4375[_0x555d0d(0xee6)]('.ann-del')?.[_0x555d0d(0x171)]('click',()=>{const _0x651297=_0x555d0d;_0x4eaab9()[_0x651297(0x76c)](_0x130a50,0x1),this['_render'](),this[_0x651297(0xcb7)]();}),_0x5f4375['querySelector'](_0x555d0d(0xcb1))?.['addEventListener']('change',_0x417194=>{const _0x462ee4=_0x555d0d,_0x5849d7=_0x4eaab9();_0x5849d7[_0x130a50][_0x462ee4(0xefa)]=_0x417194[_0x462ee4(0x6bc)][_0x462ee4(0x2ea)];if(_0x5849d7[_0x130a50][_0x462ee4(0xefa)]==='event'||_0x5849d7[_0x130a50][_0x462ee4(0xefa)]==='span'){delete _0x5849d7[_0x130a50][_0x462ee4(0x2ea)],delete _0x5849d7[_0x130a50][_0x462ee4(0xee4)];if(!_0x5849d7[_0x130a50]['entity']&&!_0x5849d7[_0x130a50][_0x462ee4(0x4b0)]&&!_0x5849d7[_0x130a50][_0x462ee4(0xfe2)]){_0x5849d7[_0x130a50][_0x462ee4(0x974)]='';if(!_0x5849d7[_0x130a50][_0x462ee4(0x5f5)])_0x5849d7[_0x130a50][_0x462ee4(0x5f5)]='on';}}else{delete _0x5849d7[_0x130a50][_0x462ee4(0x974)],delete _0x5849d7[_0x130a50]['state'],delete _0x5849d7[_0x130a50][_0x462ee4(0xf0f)],delete _0x5849d7[_0x130a50]['start'],delete _0x5849d7[_0x130a50][_0x462ee4(0x244)],delete _0x5849d7[_0x130a50]['time'];if(_0x5849d7[_0x130a50][_0x462ee4(0x2ea)]===void 0x0)_0x5849d7[_0x130a50][_0x462ee4(0x2ea)]=0x0;}this[_0x462ee4(0x103c)](),this[_0x462ee4(0xcb7)]();}),_0x5f4375[_0x555d0d(0xee6)](_0x555d0d(0xae7))?.[_0x555d0d(0x171)](_0x555d0d(0xe34),_0x5cbd89=>{const _0xd078cb=_0x555d0d,_0x38a9b4=_0x4eaab9();if(_0x5cbd89[_0xd078cb(0x6bc)][_0xd078cb(0x2ea)]==='manual'){delete _0x38a9b4[_0x130a50][_0xd078cb(0x974)],delete _0x38a9b4[_0x130a50][_0xd078cb(0x5f5)],delete _0x38a9b4[_0x130a50]['attribute'];if(_0x38a9b4[_0x130a50][_0xd078cb(0xefa)]===_0xd078cb(0x7db)){if(!_0x38a9b4[_0x130a50]['start'])_0x38a9b4[_0x130a50][_0xd078cb(0x4b0)]='';if(!_0x38a9b4[_0x130a50][_0xd078cb(0x244)])_0x38a9b4[_0x130a50][_0xd078cb(0x244)]='';}else{if(!_0x38a9b4[_0x130a50][_0xd078cb(0xfe2)])_0x38a9b4[_0x130a50][_0xd078cb(0xfe2)]='';}}else{delete _0x38a9b4[_0x130a50]['start'],delete _0x38a9b4[_0x130a50][_0xd078cb(0x244)],delete _0x38a9b4[_0x130a50][_0xd078cb(0xfe2)];if(!_0x38a9b4[_0x130a50][_0xd078cb(0x974)])_0x38a9b4[_0x130a50][_0xd078cb(0x974)]='';if(!_0x38a9b4[_0x130a50][_0xd078cb(0x5f5)])_0x38a9b4[_0x130a50]['state']='on';}this['_render'](),this[_0xd078cb(0xcb7)]();}),_0x5f4375[_0x555d0d(0xee6)](_0x555d0d(0x28d))?.[_0x555d0d(0x171)]('change',()=>{const _0x37db3b=_0x555d0d,_0x5d2af4=_0x4eaab9(),_0x33638e=_0x5d2af4[_0x130a50][_0x37db3b(0xefa)]===_0x37db3b(0x536)||_0x5d2af4[_0x130a50][_0x37db3b(0xefa)]===_0x37db3b(0x7db),_0x16f88f=_0x33638e&&(_0x37db3b(0x4b0)in _0x5d2af4[_0x130a50]||'end'in _0x5d2af4[_0x130a50]||'time'in _0x5d2af4[_0x130a50]),_0x4967d3=_0x5f4375[_0x37db3b(0xee6)](_0x37db3b(0x28d))[_0x37db3b(0x2ea)];if(_0x33638e&&!_0x16f88f)_0x5d2af4[_0x130a50][_0x37db3b(0x974)]=_0x4967d3;else{if(_0x33638e&&_0x16f88f){if(_0x5d2af4[_0x130a50]['type']===_0x37db3b(0x7db))_0x5d2af4[_0x130a50][_0x37db3b(0x4b0)]=_0x4967d3;else _0x5d2af4[_0x130a50][_0x37db3b(0xfe2)]=_0x4967d3;}else _0x5d2af4[_0x130a50][_0x37db3b(0x2ea)]=isNaN(parseFloat(_0x4967d3))?_0x4967d3:parseFloat(_0x4967d3);}this['_valueChanged']();}),_0x5f4375['querySelector'](_0x555d0d(0xf5f))?.['addEventListener']('change',()=>{const _0x3a44d5=_0x555d0d,_0x56bde7=_0x4eaab9(),_0xca1ddf=_0x56bde7[_0x130a50][_0x3a44d5(0xefa)]===_0x3a44d5(0x536)||_0x56bde7[_0x130a50]['type']===_0x3a44d5(0x7db),_0x37d2b8=_0xca1ddf&&(_0x3a44d5(0x4b0)in _0x56bde7[_0x130a50]||'end'in _0x56bde7[_0x130a50]||_0x3a44d5(0xfe2)in _0x56bde7[_0x130a50]),_0x306f66=_0x5f4375['querySelector'](_0x3a44d5(0xf5f))[_0x3a44d5(0x2ea)];if(_0xca1ddf&&!_0x37d2b8)_0x56bde7[_0x130a50][_0x3a44d5(0x5f5)]=_0x306f66;else{if(_0xca1ddf&&_0x37d2b8){if(_0x56bde7[_0x130a50][_0x3a44d5(0xefa)]===_0x3a44d5(0x7db))_0x56bde7[_0x130a50][_0x3a44d5(0x244)]=_0x306f66;}else _0x56bde7[_0x130a50][_0x3a44d5(0xee4)]=isNaN(parseFloat(_0x306f66))?_0x306f66:parseFloat(_0x306f66);}this['_valueChanged']();}),_0x5f4375['querySelector'](_0x555d0d(0x396))?.[_0x555d0d(0x171)](_0x555d0d(0xe34),()=>{const _0x2036f0=_0x555d0d,_0x570234=_0x5f4375['querySelector'](_0x2036f0(0x396))[_0x2036f0(0x2ea)][_0x2036f0(0xa11)](),_0x22890f=_0x4eaab9();if(_0x570234)_0x22890f[_0x130a50]['attribute']=_0x570234;else delete _0x22890f[_0x130a50]['attribute'];const _0x118e47=_0x5f4375['querySelector']('.ann-val2');if(_0x118e47)_0x118e47['placeholder']=_0x570234?'100':'on';this['_valueChanged']();}),_0x5f4375[_0x555d0d(0xee6)](_0x555d0d(0x4f1))?.[_0x555d0d(0x171)](_0x555d0d(0xe34),()=>{const _0x31ea0b=_0x555d0d;_0x4eaab9()[_0x130a50][_0x31ea0b(0xf1f)]=_0x5f4375[_0x31ea0b(0xee6)](_0x31ea0b(0x4f1))[_0x31ea0b(0x2ea)],this[_0x31ea0b(0xcb7)]();}),_0x5f4375[_0x555d0d(0xee6)](_0x555d0d(0xf26))?.[_0x555d0d(0x171)](_0x555d0d(0xe34),()=>{const _0x4303da=_0x555d0d;_0x4eaab9()[_0x130a50][_0x4303da(0xd95)]=_0x5f4375['querySelector'](_0x4303da(0xf26))[_0x4303da(0x2ea)],this[_0x4303da(0xcb7)]();}),_0x5f4375[_0x555d0d(0xee6)](_0x555d0d(0xda3))?.[_0x555d0d(0x171)](_0x555d0d(0xe34),()=>{const _0x4f3c85=_0x555d0d,_0x1542f3=parseFloat(_0x5f4375['querySelector'](_0x4f3c85(0xda3))[_0x4f3c85(0x2ea)]);_0x4eaab9()[_0x130a50][_0x4f3c85(0x7a2)]=isNaN(_0x1542f3)?undefined:_0x1542f3,this[_0x4f3c85(0xcb7)]();}),_0x5f4375[_0x555d0d(0xee6)]('.ann-show_values')?.['addEventListener'](_0x555d0d(0xe34),_0xe3ee64=>{const _0x38742c=_0x555d0d;_0x4eaab9()[_0x130a50][_0x38742c(0x205)]=_0xe3ee64['target'][_0x38742c(0xe82)],this[_0x38742c(0xcb7)]();});}),this[_0x21c573(0xbb2)]['querySelectorAll'](_0x21c573(0x847))[_0x21c573(0xd27)](_0x4f02d3=>{const _0x3e8854=_0x21c573;_0x4f02d3[_0x3e8854(0x171)](_0x3e8854(0x7f6),_0xbcead9=>{const _0x304a70=_0x3e8854;_0xbcead9[_0x304a70(0x7ba)]();},{'passive':![]});}),this['shadowRoot'][_0x21c573(0xf98)](_0x21c573(0x4fe))[_0x21c573(0xd27)](_0xfc33bf=>{const _0xf85427=_0x21c573,_0x38cc7a=parseInt(_0xfc33bf['dataset'][_0xf85427(0x4c3)]);_0xfc33bf[_0xf85427(0xee6)]('.eh')?.[_0xf85427(0x171)](_0xf85427(0xe5e),_0x36516a=>{const _0x528ad3=_0xf85427;if(_0x36516a[_0x528ad3(0x6bc)]['closest'](_0x528ad3(0x591))||_0x36516a[_0x528ad3(0x6bc)][_0x528ad3(0x6c0)]('.edup'))return;const _0x5a648c='e-'+_0x38cc7a;if(this[_0x528ad3(0xb40)][_0x528ad3(0x101d)](_0x5a648c))this[_0x528ad3(0xb40)][_0x528ad3(0xcc1)](_0x5a648c);else this[_0x528ad3(0xb40)]['add'](_0x5a648c);_0xfc33bf[_0x528ad3(0x9a1)][_0x528ad3(0xa90)](_0x528ad3(0x764));}),_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x591))?.['addEventListener'](_0xf85427(0xe5e),_0x728bcb=>{const _0x38fb14=_0xf85427;_0x728bcb['stopPropagation']();const _0x11223c=[...this[_0x38fb14(0xfef)]];_0x11223c['splice'](_0x38cc7a,0x1),this[_0x38fb14(0x866)][_0x38fb14(0xd97)]=_0x11223c,this[_0x38fb14(0xb40)][_0x38fb14(0xcc1)]('e-'+_0x38cc7a),this[_0x38fb14(0x103c)](),this[_0x38fb14(0xcb7)]();}),_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x78f))?.[_0xf85427(0x171)](_0xf85427(0xe5e),_0x1c0d90=>{const _0x547454=_0xf85427;_0x1c0d90[_0x547454(0x7ba)]();const _0x40dac5=StatisticsGraphChartCard[_0x547454(0x2df)],_0x2bc6f6=structuredClone(this[_0x547454(0xfef)][_0x38cc7a]);_0x2bc6f6[_0x547454(0xd95)]=_0x40dac5[this[_0x547454(0xfef)][_0x547454(0xc02)]%_0x40dac5[_0x547454(0xc02)]];const _0x3c511b=[...this[_0x547454(0xfef)]];_0x3c511b[_0x547454(0x76c)](_0x38cc7a+0x1,0x0,_0x2bc6f6),this[_0x547454(0x866)][_0x547454(0xd97)]=_0x3c511b;const _0x380936=_0x38cc7a+0x1;this['_openPanels'][_0x547454(0x982)]('e-'+_0x380936),this[_0x547454(0xf69)][_0x380936]=_0x547454(0x57e),this[_0x547454(0x103c)](),this[_0x547454(0xcb7)]();}),_0xfc33bf[_0xf85427(0xf98)](_0xf85427(0x2ce))['forEach'](_0xaed980=>{const _0x244ca9=_0xf85427;_0xaed980[_0x244ca9(0x171)](_0x244ca9(0xe5e),()=>{const _0x575d4d=_0x244ca9,_0x2afe43=_0xaed980[_0x575d4d(0x8f6)][_0x575d4d(0xd37)];this[_0x575d4d(0xf69)][_0x38cc7a]=_0x2afe43,_0xfc33bf[_0x575d4d(0xf98)]('.tb')[_0x575d4d(0xd27)](_0x2975d3=>_0x2975d3[_0x575d4d(0x9a1)][_0x575d4d(0xa90)](_0x575d4d(0x5b3),_0x2975d3[_0x575d4d(0x8f6)][_0x575d4d(0xd37)]===_0x2afe43)),_0xfc33bf[_0x575d4d(0xf98)](_0x575d4d(0xd86))[_0x575d4d(0xd27)](_0x3c8c63=>_0x3c8c63['classList'][_0x575d4d(0xa90)]('active',_0x3c8c63[_0x575d4d(0x8f6)]['tc']===_0x2afe43));});});const _0x30379f=(_0x2f1860,_0x430fd5,_0x869c5f='text')=>{const _0x158272=_0xf85427,_0x282768=_0xfc33bf['querySelector'](_0x2f1860);if(!_0x282768)return;const _0x2b19e6=_0x282768['type']==='checkbox'||_0x282768[_0x158272(0x9eb)]===_0x158272(0x8ad);if(_0x282768['type']===_0x158272(0x327)){_0x282768[_0x158272(0x171)]('input',()=>{const _0x42d660=_0x158272;this[_0x42d660(0xfef)][_0x38cc7a][_0x430fd5]=this[_0x42d660(0x228)](_0x282768,_0x869c5f);}),_0x282768['addEventListener']('change',()=>{const _0xa2962c=_0x158272;this['_entities'][_0x38cc7a][_0x430fd5]=this[_0xa2962c(0x228)](_0x282768,_0x869c5f),this[_0xa2962c(0xcb7)]();});return;}const _0x28cdc1=()=>{const _0x2742bf=_0x158272;this[_0x2742bf(0xfef)][_0x38cc7a][_0x430fd5]=this[_0x2742bf(0x228)](_0x282768,_0x869c5f),this[_0x2742bf(0xcb7)]();};_0x282768['addEventListener'](_0x2b19e6?_0x158272(0xe34):_0x158272(0x3f5),_0x2b19e6?_0x28cdc1:this[_0x158272(0x5a0)](_0x28cdc1,0x190));};_0x30379f(_0xf85427(0x237),_0xf85427(0x1007),'bool');const _0x274225=_0xfc33bf[_0xf85427(0xee6)]('.e-enabled_ref');if(_0x274225)_0x274225[_0xf85427(0x171)](_0xf85427(0x3f5),this[_0xf85427(0x5a0)](()=>{const _0x4bda0a=_0xf85427,_0x247e4b=_0x274225[_0x4bda0a(0x2ea)]['trim']();if(_0x247e4b===''){if(typeof this[_0x4bda0a(0xfef)][_0x38cc7a][_0x4bda0a(0x1007)]===_0x4bda0a(0xade))delete this['_entities'][_0x38cc7a]['enabled'];}else this[_0x4bda0a(0xfef)][_0x38cc7a][_0x4bda0a(0x1007)]=_0x247e4b;this['_valueChanged']();},0x190));const _0x1e0440=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xcff));if(_0x1e0440)_0x1e0440['addEventListener'](_0xf85427(0x3f5),this[_0xf85427(0x5a0)](()=>{const _0x1a0ed2=_0xf85427,_0x1cc5fb=_0x1e0440[_0x1a0ed2(0x2ea)];if(_0x1cc5fb==='')delete this['_entities'][_0x38cc7a][_0x1a0ed2(0xdee)];else this[_0x1a0ed2(0xfef)][_0x38cc7a][_0x1a0ed2(0xdee)]=_0x1cc5fb;this[_0x1a0ed2(0xcb7)]();},0x190));_0x30379f(_0xf85427(0x966),_0xf85427(0x3e3),'bool'),_0x30379f('.e-tooltip_name',_0xf85427(0xce6)),_0x30379f(_0xf85427(0x2c5),_0xf85427(0x32e)),_0x30379f(_0xf85427(0xeec),'statistic_id'),_0x30379f(_0xf85427(0x796),_0xf85427(0x4e0),_0xf85427(0xf05)),_0x30379f(_0xf85427(0xac7),_0xf85427(0x3da)),_0x30379f('.e-z_index','z_index',_0xf85427(0x329)),_0x30379f('.e-y_axis',_0xf85427(0x8cc)),_0x30379f('.e-graph_type',_0xf85427(0xc3c)),_0x30379f(_0xf85427(0x78d),_0xf85427(0xe46),_0xf85427(0xa95)),_0x30379f('.e-show_line',_0xf85427(0x460),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xe72),'show_fill','bool'),_0x30379f(_0xf85427(0x462),'gradient','bool'),_0x30379f(_0xf85427(0x60b),_0xf85427(0x18c),_0xf85427(0xf05)),_0x30379f(_0xf85427(0xb5a),_0xf85427(0x3ff),_0xf85427(0xa95)),_0x30379f(_0xf85427(0x7e0),'point_size',_0xf85427(0xf05)),_0x30379f(_0xf85427(0x832),'show_range_band',_0xf85427(0xa95)),_0x30379f(_0xf85427(0x54d),'break_on_null',_0xf85427(0xa95)),_0x30379f('.e-show_data_labels',_0xf85427(0xfe4),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xbe2),'damp_reset_boundary','bool'),_0x30379f(_0xf85427(0xad1),_0xf85427(0xa81),'bool'),_0x30379f(_0xf85427(0x1f6),_0xf85427(0x625)),_0x30379f(_0xf85427(0x951),_0xf85427(0x949)),_0x30379f('.e-ref_entity',_0xf85427(0x455)),_0x30379f('.e-ref_attribute',_0xf85427(0xc00)),_0x30379f(_0xf85427(0x3cd),_0xf85427(0x58d));const _0x3ef82e=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x3ac)),_0xb3df9e=_0xfc33bf[_0xf85427(0xee6)]('.cmp-add'),_0x3bcd8d=()=>{const _0x395cca=_0xf85427,_0x37889f=this[_0x395cca(0xfef)][_0x38cc7a],_0xf6eef5=_0x37889f[_0x395cca(0xc80)],_0x4faf24=_0x4fc34e=>_0x4fc34e&&typeof _0x4fc34e==='object'?_0x4fc34e:{'period':_0x4fc34e===!![]?_0x395cca(0x612):String(_0x4fc34e)};if(!Array[_0x395cca(0x902)](_0xf6eef5))_0x37889f[_0x395cca(0xc80)]=_0xf6eef5?[_0xf6eef5&&typeof _0xf6eef5==='object'?{..._0xf6eef5}:_0x4faf24(_0xf6eef5)]:[];else for(let _0x436699=0x0;_0x436699<_0xf6eef5[_0x395cca(0xc02)];_0x436699++){if(_0xf6eef5[_0x436699]!=null&&typeof _0xf6eef5[_0x436699]!==_0x395cca(0xc18))_0xf6eef5[_0x436699]=_0x4faf24(_0xf6eef5[_0x436699]);}return _0x37889f[_0x395cca(0xc80)];};_0xb3df9e?.[_0xf85427(0x171)](_0xf85427(0xe5e),()=>{const _0x5c786b=_0xf85427,_0x335fc4=_0x3bcd8d();_0x335fc4[_0x5c786b(0xb31)]({}),this[_0x5c786b(0x103c)](),this[_0x5c786b(0xcb7)]();}),_0x3ef82e?.[_0xf85427(0x171)]('change',_0x4a4d4b=>{const _0x1cc549=_0xf85427,_0x44cb7b=_0x4a4d4b['target'][_0x1cc549(0x6c0)]('.cmp-row');if(!_0x44cb7b)return;const _0x3a1b71=parseInt(_0x44cb7b['dataset'][_0x1cc549(0xe36)]),_0x4184dc=_0x3bcd8d(),_0x4fbd14=_0x4184dc[_0x3a1b71];if(!_0x4fbd14||typeof _0x4fbd14!==_0x1cc549(0xc18))return;const _0xb386c5=(_0x3f80cf,_0x319115)=>{if(_0x319115===undefined)delete _0x4fbd14[_0x3f80cf];else _0x4fbd14[_0x3f80cf]=_0x319115;},_0x1ea677=_0x4a4d4b['target']['classList'];if(_0x1ea677[_0x1cc549(0x2a0)](_0x1cc549(0x5cf))){_0xb386c5(_0x1cc549(0xe4c),_0x4a4d4b[_0x1cc549(0x6bc)]['value']===_0x1cc549(0x612)?undefined:_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)]);const _0x12784b=_0x44cb7b['querySelector'](_0x1cc549(0xaac));_0x12784b&&(_0x12784b[_0x1cc549(0x4cb)]=_0x4a4d4b['target'][_0x1cc549(0x2ea)]!==_0x1cc549(0x612),_0x12784b['disabled']&&(_0x12784b[_0x1cc549(0x2ea)]='overlay',_0xb386c5(_0x1cc549(0xf2a),undefined)));}if(_0x1ea677[_0x1cc549(0x2a0)](_0x1cc549(0x5d8))){const _0xbcf206=Math[_0x1cc549(0x220)](0x1,parseInt(_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)])||0x1);_0xb386c5(_0x1cc549(0xf4d),_0xbcf206===0x1?undefined:_0xbcf206);}if(_0x1ea677[_0x1cc549(0x2a0)](_0x1cc549(0x672)))_0xb386c5(_0x1cc549(0x3da),_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)]===_0x1cc549(0x2b5)?undefined:_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)]);if(_0x1ea677['contains'](_0x1cc549(0x1f8)))_0xb386c5(_0x1cc549(0xf2a),_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)]===_0x1cc549(0xe9b)?_0x1cc549(0xe9b):undefined);if(_0x1ea677[_0x1cc549(0x2a0)]('cmp-col')){const _0x501678=_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)][_0x1cc549(0xa11)]();_0xb386c5(_0x1cc549(0xd95),_0x501678||undefined);}if(_0x1ea677[_0x1cc549(0x2a0)](_0x1cc549(0xcc7))){const _0x9140fa=_0x44cb7b[_0x1cc549(0xee6)]('.cmp-col');if(!_0x9140fa||!_0x9140fa[_0x1cc549(0x2ea)][_0x1cc549(0xf06)]('{{')){if(_0x9140fa)_0x9140fa[_0x1cc549(0x2ea)]=_0x4a4d4b['target'][_0x1cc549(0x2ea)];_0xb386c5('color',_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0x2ea)]||undefined);}}if(_0x1ea677[_0x1cc549(0x2a0)]('cmp-op')){const _0x45a60a=parseFloat(_0x4a4d4b[_0x1cc549(0x6bc)]['value']);_0xb386c5('opacity',isNaN(_0x45a60a)?undefined:_0x45a60a);}if(_0x1ea677['contains']('cmp-dl'))_0xb386c5(_0x1cc549(0xc8a),_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0xe82)]?undefined:![]);if(_0x1ea677[_0x1cc549(0x2a0)](_0x1cc549(0xc81)))_0xb386c5(_0x1cc549(0x66f),_0x4a4d4b['target'][_0x1cc549(0xe82)]?!![]:undefined);if(_0x1ea677[_0x1cc549(0x2a0)]('cmp-fill'))_0xb386c5(_0x1cc549(0xad9),_0x4a4d4b[_0x1cc549(0x6bc)]['checked']?!![]:undefined);if(_0x1ea677['contains'](_0x1cc549(0x5f3)))_0xb386c5('show_average',_0x4a4d4b[_0x1cc549(0x6bc)][_0x1cc549(0xe82)]?!![]:undefined);this['_valueChanged']();}),_0x3ef82e?.[_0xf85427(0x171)](_0xf85427(0x3f5),_0x2c487d=>{const _0x477f5c=_0xf85427;if(!_0x2c487d[_0x477f5c(0x6bc)][_0x477f5c(0x9a1)]['contains'](_0x477f5c(0x204)))return;const _0x264ccb=_0x2c487d[_0x477f5c(0x6bc)][_0x477f5c(0x6c0)](_0x477f5c(0x716))?.[_0x477f5c(0xee6)](_0x477f5c(0xf87));if(!_0x264ccb)return;const _0x26371d=_0x2c487d['target'][_0x477f5c(0x2ea)]['includes']('{{');_0x264ccb[_0x477f5c(0x944)][_0x477f5c(0x7a2)]=_0x26371d?_0x477f5c(0xaed):'',_0x264ccb[_0x477f5c(0x944)][_0x477f5c(0xf3f)]=_0x26371d?_0x477f5c(0x412):'';}),_0x3ef82e?.[_0xf85427(0x171)](_0xf85427(0xe5e),_0x1cd7dc=>{const _0x2218ec=_0xf85427,_0x1846c1=_0x1cd7dc[_0x2218ec(0x6bc)][_0x2218ec(0x6c0)]('.cmp-del');if(!_0x1846c1)return;const _0x3b0e6=parseInt(_0x1846c1[_0x2218ec(0x6c0)](_0x2218ec(0x716))[_0x2218ec(0x8f6)]['row']),_0x599b1a=_0x3bcd8d();_0x599b1a[_0x2218ec(0x76c)](_0x3b0e6,0x1);if(!_0x599b1a[_0x2218ec(0xc02)])delete this[_0x2218ec(0xfef)][_0x38cc7a]['compare'];this['_render'](),this['_valueChanged']();});const _0x51aacc=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xe9f));if(_0x51aacc)_0x51aacc[_0xf85427(0x171)]('change',()=>{const _0xf8cfe6=_0xf85427,_0x514fcf=_0x51aacc[_0xf8cfe6(0x2ea)];this[_0xf8cfe6(0xfef)][_0x38cc7a][_0xf8cfe6(0x806)]=_0x514fcf!==_0xf8cfe6(0x9b2),this[_0xf8cfe6(0xcb7)]();});_0x30379f('.e-show_graph',_0xf85427(0xa43),_0xf85427(0xa95)),_0x30379f(_0xf85427(0x256),_0xf85427(0xa1a),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xc8d),_0xf85427(0x8bc),_0xf85427(0xa95));const _0x25cdee=_0xfc33bf[_0xf85427(0xee6)]('.e-primary_state_as');if(_0x25cdee)_0x25cdee[_0xf85427(0x171)](_0xf85427(0xe34),()=>{const _0x3bb180=_0xf85427;this[_0x3bb180(0xfef)][_0x38cc7a][_0x3bb180(0xb8a)]=this[_0x3bb180(0x228)](_0x25cdee,'text'),this[_0x3bb180(0x103c)](),this[_0x3bb180(0xcb7)]();});_0x30379f(_0xf85427(0xa6b),_0xf85427(0x9dd)),_0x30379f(_0xf85427(0xeeb),'state_adaptive_color','bool'),_0x30379f(_0xf85427(0xa6a),_0xf85427(0x452),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xe27),_0xf85427(0xae5),'bool'),_0x30379f(_0xf85427(0x55c),'show_range_values',_0xf85427(0xa95)),_0x30379f(_0xf85427(0x4b3),_0xf85427(0xce4),_0xf85427(0xa95));const _0x241d13=()=>{const _0x419d2a=_0xf85427,_0x30ba27=[];if(_0xfc33bf[_0x419d2a(0xee6)]('.e-legend_min')?.[_0x419d2a(0xe82)])_0x30ba27[_0x419d2a(0xb31)]('min');if(_0xfc33bf[_0x419d2a(0xee6)](_0x419d2a(0x39d))?.['checked'])_0x30ba27[_0x419d2a(0xb31)](_0x419d2a(0xfbc));if(_0xfc33bf['querySelector'](_0x419d2a(0x660))?.[_0x419d2a(0xe82)])_0x30ba27[_0x419d2a(0xb31)](_0x419d2a(0x220));if(_0xfc33bf[_0x419d2a(0xee6)]('.e-legend_last')?.[_0x419d2a(0xe82)])_0x30ba27[_0x419d2a(0xb31)](_0x419d2a(0xa5d));if(_0xfc33bf['querySelector']('.e-legend_sum')?.[_0x419d2a(0xe82)])_0x30ba27[_0x419d2a(0xb31)](_0x419d2a(0x7e6));if(_0xfc33bf[_0x419d2a(0xee6)](_0x419d2a(0x334))?.['checked'])_0x30ba27[_0x419d2a(0xb31)](_0x419d2a(0xbae));this[_0x419d2a(0xfef)][_0x38cc7a][_0x419d2a(0x5cc)]=_0x30ba27,this['_valueChanged']();};[_0xf85427(0xc73),_0xf85427(0x39d),'.e-legend_max',_0xf85427(0x831),_0xf85427(0xe6d),_0xf85427(0x334)][_0xf85427(0xd27)](_0x1b1cc7=>{const _0x4a04b2=_0xf85427,_0x45fa2b=_0xfc33bf[_0x4a04b2(0xee6)](_0x1b1cc7);if(_0x45fa2b)_0x45fa2b[_0x4a04b2(0x171)]('change',_0x241d13);}),_0x30379f(_0xf85427(0x2dd),_0xf85427(0xcfa),_0xf85427(0xa95)),_0x30379f(_0xf85427(0x245),_0xf85427(0xbcf),_0xf85427(0x329)),_0x30379f(_0xf85427(0x690),_0xf85427(0xc48)),_0x30379f(_0xf85427(0x103a),_0xf85427(0x71e),_0xf85427(0x329));const _0x4d7633=_0xfc33bf['querySelector']('.e-group_by');if(_0x4d7633)_0x4d7633[_0xf85427(0x171)](_0xf85427(0xe34),()=>{const _0x5577ba=_0xf85427,_0x5f0b1c=_0x4d7633[_0x5577ba(0x2ea)];if(_0x5f0b1c==='')delete this[_0x5577ba(0xfef)][_0x38cc7a][_0x5577ba(0x3b2)];else this['_entities'][_0x38cc7a][_0x5577ba(0x3b2)]=_0x5f0b1c;this[_0x5577ba(0xcb7)]();});_0x30379f(_0xf85427(0x7c6),_0xf85427(0xed9),_0xf85427(0xf05)),_0x30379f(_0xf85427(0x73a),_0xf85427(0x3de)),_0x30379f(_0xf85427(0x799),_0xf85427(0x199)),_0x30379f(_0xf85427(0xa9c),'show_extrema_min','bool'),_0x30379f(_0xf85427(0x2dc),_0xf85427(0xe6f),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xddb),_0xf85427(0x4a8),_0xf85427(0xa95)),_0x30379f(_0xf85427(0xa3b),_0xf85427(0x1da)),_0x30379f('.e-extrema_font_size',_0xf85427(0xf6d),_0xf85427(0xf05)),_0x30379f(_0xf85427(0x961),_0xf85427(0x469)),_0x30379f(_0xf85427(0xbac),_0xf85427(0xd65),_0xf85427(0xf05)),_0x30379f(_0xf85427(0x663),_0xf85427(0xa72),_0xf85427(0xa95)),_0x30379f(_0xf85427(0x27e),_0xf85427(0xf24)),_0x30379f(_0xf85427(0xdbb),_0xf85427(0x443)),_0x30379f(_0xf85427(0xaf8),_0xf85427(0x8e4)),_0x30379f(_0xf85427(0xbf5),'icon_size'),_0x30379f('.e-state_size',_0xf85427(0xb08)),_0x30379f(_0xf85427(0x18b),_0xf85427(0x4de)),_0x30379f(_0xf85427(0x532),_0xf85427(0xf0f)),_0x30379f(_0xf85427(0xbbc),_0xf85427(0xde5),'float'),_0x30379f(_0xf85427(0xacd),_0xf85427(0xebb)),_0x30379f(_0xf85427(0xb5b),_0xf85427(0x4ff)),_0x30379f(_0xf85427(0x733),_0xf85427(0x510),_0xf85427(0xf05)),_0x30379f(_0xf85427(0x16b),_0xf85427(0x102c)),_0x30379f(_0xf85427(0xd87),_0xf85427(0xff8)),_0x30379f('.e-data_value_field',_0xf85427(0x25b)),_0x30379f(_0xf85427(0xf80),_0xf85427(0x3f2)),_0x30379f(_0xf85427(0x85c),'data_time_unit'),_0x30379f(_0xf85427(0x5d2),'data_time_year','int'),_0x30379f('.e-fixed_value',_0xf85427(0xbef),'bool'),_0x30379f('.e-invert',_0xf85427(0xd57),_0xf85427(0xa95)),_0x30379f(_0xf85427(0x33f),_0xf85427(0x28f)),_0x30379f('.e-show_second_state_as',_0xf85427(0x626)),_0x30379f(_0xf85427(0xd34),_0xf85427(0xe81));const _0x549b47=_0xfc33bf['querySelector'](_0xf85427(0xe37));if(_0x549b47&&this[_0xf85427(0x1dc)]){_0x549b47[_0xf85427(0x17c)]=_0xf85427(0x9aa)+this[_0xf85427(0x9df)](_0xf85427(0xd4c))+'</label>';const _0x19d607=this['_renderId'];let _0x2d5b1b=0x0;const _0xd89380=()=>{const _0x1f0f61=_0xf85427;if(this[_0x1f0f61(0xf09)]!==_0x19d607)return;if(!_0x549b47['isConnected']&&_0x2d5b1b++<0x3c){setTimeout(_0xd89380,0x32);return;}if(customElements[_0x1f0f61(0xc3f)]('ha-selector')){const _0x307c52=document[_0x1f0f61(0xbde)](_0x1f0f61(0xa7c));_0x307c52[_0x1f0f61(0x32b)]=this[_0x1f0f61(0x1dc)],_0x307c52[_0x1f0f61(0x193)]={'entity':{}},_0x307c52['value']=this[_0x1f0f61(0xfef)][_0x38cc7a]?.['entity']||'',_0x307c52[_0x1f0f61(0xf1f)]='',_0x307c52['style'][_0x1f0f61(0x836)]=_0x1f0f61(0xb05),_0x549b47[_0x1f0f61(0x319)](_0x307c52),_0x307c52[_0x1f0f61(0x171)](_0x1f0f61(0x73f),_0x116567=>{const _0x407b6e=_0x1f0f61;_0x116567[_0x407b6e(0x7ba)]();if(this['_entities'][_0x38cc7a])this['_entities'][_0x38cc7a][_0x407b6e(0x974)]=_0x116567[_0x407b6e(0xa00)][_0x407b6e(0x2ea)]||'';this['_valueChanged'](),this['_render']();});}else{const _0x59b69c=document['createElement']('select');_0x59b69c['className']=_0x1f0f61(0xce1),_0x59b69c[_0x1f0f61(0x944)]['cssText']=_0x1f0f61(0x66e),_0x59b69c[_0x1f0f61(0x17c)]=_0x1f0f61(0xf6f)+this[_0x1f0f61(0xbe5)]()[_0x1f0f61(0xb3f)](_0x3d2512=>_0x1f0f61(0xc4a)+escapeHtml(_0x3d2512)+'\x22\x20'+(_0x3d2512===(this[_0x1f0f61(0xfef)][_0x38cc7a]?.[_0x1f0f61(0x974)]||'')?_0x1f0f61(0xd52):'')+'>'+escapeHtml(_0x3d2512)+_0x1f0f61(0x6be))[_0x1f0f61(0x888)](''),_0x549b47['appendChild'](_0x59b69c),_0x59b69c[_0x1f0f61(0x171)](_0x1f0f61(0xe34),()=>{const _0x10703b=_0x1f0f61;if(this[_0x10703b(0xfef)][_0x38cc7a])this[_0x10703b(0xfef)][_0x38cc7a][_0x10703b(0x974)]=_0x59b69c[_0x10703b(0x2ea)];this['_valueChanged']();});}};setTimeout(_0xd89380,0x0);}this[_0xf85427(0x636)](_0xfc33bf[_0xf85427(0xee6)]('.ha-icon-picker-wrap[data-entity-icon]'),()=>this['_entities'][_0x38cc7a]?.[_0xf85427(0x5b0)]||'',_0x24dd1f=>{const _0x2eed16=_0xf85427;if(this[_0x2eed16(0xfef)][_0x38cc7a])this['_entities'][_0x38cc7a][_0x2eed16(0x5b0)]=_0x24dd1f;},{'disabled':this[_0xf85427(0xfef)][_0x38cc7a]?.[_0xf85427(0x806)]===![],'placeholder2':_0xf85427(0xfe5)});const _0x48575f=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x30c));if(_0x48575f&&this[_0xf85427(0x1dc)]){_0x48575f['innerHTML']='';const _0x643fbf=this[_0xf85427(0xf09)];let _0x5b10fb=0x0;const _0x49406e=()=>{const _0x46c07f=_0xf85427;if(this[_0x46c07f(0xf09)]!==_0x643fbf)return;if(!_0x48575f['isConnected']&&_0x5b10fb++<0x3c){setTimeout(_0x49406e,0x32);return;}if(customElements[_0x46c07f(0xc3f)](_0x46c07f(0xa7c))){const _0x358599=document[_0x46c07f(0xbde)](_0x46c07f(0xa7c));_0x358599[_0x46c07f(0x32b)]=this['_hass'],_0x358599[_0x46c07f(0x193)]={'ui-action':{}},_0x358599[_0x46c07f(0x2ea)]=this[_0x46c07f(0xfef)][_0x38cc7a]?.[_0x46c07f(0x210)]||{'action':_0x46c07f(0x412)},_0x358599[_0x46c07f(0xf1f)]=this['_eT'](_0x46c07f(0xb0d)),_0x358599[_0x46c07f(0x944)][_0x46c07f(0x836)]=_0x46c07f(0xb05),_0x48575f[_0x46c07f(0x319)](_0x358599),_0x358599[_0x46c07f(0x171)](_0x46c07f(0x73f),_0x13a5c0=>{const _0x4c998c=_0x46c07f;_0x13a5c0['stopPropagation']();const _0x2dcdf6=_0x13a5c0[_0x4c998c(0xa00)][_0x4c998c(0x2ea)];if(this[_0x4c998c(0xfef)][_0x38cc7a])this['_entities'][_0x38cc7a][_0x4c998c(0x210)]=_0x2dcdf6&&_0x2dcdf6[_0x4c998c(0x7ec)]&&_0x2dcdf6['action']!==_0x4c998c(0x412)?_0x2dcdf6:null;this[_0x4c998c(0xcb7)]();});}else{const _0x2bb6ef=this['_entities'][_0x38cc7a]?.[_0x46c07f(0x210)]?.[_0x46c07f(0x7ec)]||'none';_0x48575f[_0x46c07f(0x17c)]='<div\x20class=\x22sw\x22><select\x20class=\x22e-tap-action-fb\x22>'+[_0x46c07f(0x412),_0x46c07f(0x826),_0x46c07f(0xfd3),'navigate',_0x46c07f(0x70f)][_0x46c07f(0xb3f)](_0x26a4c4=>_0x46c07f(0xc4a)+escapeHtml(_0x26a4c4)+'\x22\x20'+(_0x2bb6ef===_0x26a4c4?_0x46c07f(0xd52):'')+'>'+{'none':_0x46c07f(0xb7a),'more-info':_0x46c07f(0xbfe),'url':_0x46c07f(0x924),'navigate':'Navigate','call-service':_0x46c07f(0x1d7)}[_0x26a4c4]+'</option>')['join']('')+_0x46c07f(0x448);const _0x492376=_0x48575f[_0x46c07f(0xee6)](_0x46c07f(0x993));if(_0x492376)_0x492376[_0x46c07f(0x171)](_0x46c07f(0xe34),()=>{const _0x32c5a6=_0x46c07f,_0xe5bdc5=_0x492376[_0x32c5a6(0x2ea)];if(this[_0x32c5a6(0xfef)][_0x38cc7a])this[_0x32c5a6(0xfef)][_0x38cc7a][_0x32c5a6(0x210)]=_0xe5bdc5&&_0xe5bdc5!==_0x32c5a6(0x412)?{'action':_0xe5bdc5}:null;this[_0x32c5a6(0xcb7)]();});}};setTimeout(_0x49406e,0x0);}const _0xeebac7=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xf94));if(_0xeebac7)_0xeebac7[_0xf85427(0x171)](_0xf85427(0x3f5),()=>{const _0x1821d2=_0xf85427,_0xa7a9a5=_0xeebac7[_0x1821d2(0x2ea)][_0x1821d2(0xbc0)]('\x0a')[_0x1821d2(0xb3f)](_0x19f397=>_0x19f397[_0x1821d2(0xa11)]())['filter'](Boolean);this[_0x1821d2(0xfef)][_0x38cc7a]['state_map']=_0xa7a9a5[_0x1821d2(0xc02)]?_0xa7a9a5['map'](_0x685edd=>{const _0x339239=_0x1821d2,_0x50d742=_0x685edd[_0x339239(0xbc0)](','),_0x5648dc=(_0x50d742[0x0]||'')[_0x339239(0xa11)](),_0x432d83=_0x50d742[_0x339239(0xc02)]>0x1?_0x50d742[0x1][_0x339239(0xa11)]():'',_0x140b69=_0x50d742[_0x339239(0xc02)]>0x2?_0x50d742[_0x339239(0x165)](0x2)[_0x339239(0x888)](',')[_0x339239(0xa11)]():'',_0x365d2a={'value':_0x5648dc};if(_0x432d83)_0x365d2a[_0x339239(0xf1f)]=_0x432d83;if(_0x140b69)_0x365d2a[_0x339239(0xd95)]=_0x140b69;return _0x365d2a;}):null,this[_0x1821d2(0xcb7)]();});const _0x590b0d=_0xfc33bf['querySelector'](_0xf85427(0x570));if(_0x590b0d)_0x590b0d[_0xf85427(0x171)](_0xf85427(0x3f5),()=>{const _0x13d323=_0xf85427,_0x3ff1b0=_0x590b0d[_0x13d323(0x2ea)]['split']('\x0a')[_0x13d323(0xb3f)](_0x3058e7=>_0x3058e7[_0x13d323(0xa11)]())[_0x13d323(0x919)](Boolean),_0xd71c9c={};for(const _0x535b45 of _0x3ff1b0){const _0x520e59=_0x535b45['indexOf'](':');if(_0x520e59<0x0)continue;const _0x99be46=_0x535b45[_0x13d323(0x165)](0x0,_0x520e59)[_0x13d323(0xa11)](),_0xc74225=_0x535b45[_0x13d323(0x165)](_0x520e59+0x1)[_0x13d323(0xa11)]();if(_0x99be46&&_0xc74225)_0xd71c9c[_0x99be46]=_0xc74225;}this[_0x13d323(0xfef)][_0x38cc7a][_0x13d323(0x8d0)]=Object[_0x13d323(0x3ab)](_0xd71c9c)[_0x13d323(0xc02)]?_0xd71c9c:null,this['_valueChanged']();});const _0x57c68f=(_0x2a02c0,_0x4e6a11)=>{const _0x2ae804=_0xf85427,_0x3dcf26=_0xfc33bf[_0x2ae804(0xee6)](_0x2a02c0),_0xf358de=_0xfc33bf[_0x2ae804(0xee6)](_0x2a02c0['replace'](_0x2ae804(0xc7f),''));if(!_0x3dcf26)return;const _0x2087c9=()=>{const _0x567dc0=_0x2ae804,_0x1aba32=(_0xf358de?.[_0x567dc0(0x2ea)]||'')[_0x567dc0(0xa11)](),_0x597722=_0x1aba32[_0x567dc0(0xf06)]('{{');_0x3dcf26[_0x567dc0(0x944)][_0x567dc0(0x7a2)]=_0x597722?_0x567dc0(0xaed):'',_0x3dcf26[_0x567dc0(0x944)]['pointerEvents']=_0x597722?_0x567dc0(0x412):'';};_0x3dcf26[_0x2ae804(0x171)](_0x2ae804(0xe34),()=>{const _0x4dc880=_0x2ae804;if(_0xf358de)_0xf358de['value']=_0x3dcf26['value'];this[_0x4dc880(0xfef)][_0x38cc7a][_0x4e6a11]=_0x3dcf26[_0x4dc880(0x2ea)]||void 0x0,this[_0x4dc880(0xcb7)]();}),_0xf358de&&(_0xf358de[_0x2ae804(0x171)](_0x2ae804(0x3f5),this[_0x2ae804(0x5a0)](()=>{const _0x29eef6=_0x2ae804,_0xbc6c5c=_0xf358de[_0x29eef6(0x2ea)]['trim']();_0x2087c9();if(!_0xbc6c5c['includes']('{{')&&/^#[0-9a-fA-F]{6}$/[_0x29eef6(0x920)](_0xbc6c5c))_0x3dcf26[_0x29eef6(0x2ea)]=_0xbc6c5c;this[_0x29eef6(0xfef)][_0x38cc7a][_0x4e6a11]=_0xbc6c5c||void 0x0,this[_0x29eef6(0xcb7)]();},0x190)),_0x2087c9());};_0x57c68f('.e-color-picker',_0xf85427(0xd95)),_0x57c68f(_0xf85427(0x6d8),'needle_color'),_0x57c68f(_0xf85427(0x502),_0xf85427(0x100e)),_0x57c68f(_0xf85427(0xa08),_0xf85427(0xff6)),_0x57c68f(_0xf85427(0x2e3),_0xf85427(0xb88)),_0x57c68f(_0xf85427(0x2c6),_0xf85427(0x1da)),_0x57c68f(_0xf85427(0x1039),_0xf85427(0x469)),_0x57c68f('.e-trend_up_color-picker','trend_up_color'),_0x57c68f('.e-trend_down_color-picker',_0xf85427(0xaad)),_0x57c68f('.e-trend_stable_color-picker',_0xf85427(0x9ae));const _0x1c2dd8=_0xfc33bf['querySelector']('.e-risefall_enabled'),_0x552447=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xc1c)),_0x58e5a9=_0xfc33bf[_0xf85427(0xee6)]('.e-risefall_decrease'),_0x1d9aa6=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x702)),_0x3a1b17=()=>{const _0x429d94=_0xf85427;if(!this[_0x429d94(0xfef)][_0x38cc7a][_0x429d94(0xc6b)])this[_0x429d94(0xfef)][_0x38cc7a][_0x429d94(0xc6b)]={'enabled':![],'increase':_0x429d94(0x267),'decrease':_0x429d94(0x1001),'stable':'#95a5a6'};};_0x1c2dd8?.[_0xf85427(0x171)](_0xf85427(0xe34),()=>{const _0x5c4610=_0xf85427;_0x3a1b17(),this[_0x5c4610(0xfef)][_0x38cc7a][_0x5c4610(0xc6b)][_0x5c4610(0x1007)]=_0x1c2dd8[_0x5c4610(0xe82)];if(_0x1c2dd8[_0x5c4610(0xe82)]){if(!this['_entities'][_0x38cc7a]['color_thresholds'])this[_0x5c4610(0xfef)][_0x38cc7a][_0x5c4610(0xdd5)]={'enabled':![],'values':[]};this[_0x5c4610(0xfef)][_0x38cc7a][_0x5c4610(0xdd5)][_0x5c4610(0x1007)]=![];}this[_0x5c4610(0x103c)](),this[_0x5c4610(0xcb7)]();}),_0x552447?.[_0xf85427(0x171)]('change',()=>{const _0xb5832c=_0xf85427;_0x3a1b17(),this[_0xb5832c(0xfef)][_0x38cc7a][_0xb5832c(0xc6b)][_0xb5832c(0x17a)]=_0x552447[_0xb5832c(0x2ea)],this['_valueChanged']();}),_0x58e5a9?.[_0xf85427(0x171)]('change',()=>{const _0x25f682=_0xf85427;_0x3a1b17(),this[_0x25f682(0xfef)][_0x38cc7a]['rise_fall_colors']['decrease']=_0x58e5a9[_0x25f682(0x2ea)],this['_valueChanged']();}),_0x1d9aa6?.[_0xf85427(0x171)](_0xf85427(0xe34),()=>{const _0x154c9e=_0xf85427;_0x3a1b17(),this[_0x154c9e(0xfef)][_0x38cc7a][_0x154c9e(0xc6b)][_0x154c9e(0x2fd)]=_0x1d9aa6[_0x154c9e(0x2ea)],this[_0x154c9e(0xcb7)]();});const _0x4f8766=_0xfc33bf[_0xf85427(0xee6)]('.e-thr_enabled'),_0x33fafe=_0xfc33bf[_0xf85427(0xee6)]('.thr-list'),_0x441fbf=_0xfc33bf['querySelector']('.thr-add'),_0x46677e=()=>{const _0x22f9a3=_0xf85427;if(!this['_entities'][_0x38cc7a][_0x22f9a3(0xdd5)])this[_0x22f9a3(0xfef)][_0x38cc7a][_0x22f9a3(0xdd5)]={'enabled':![],'values':[]};if(!Array[_0x22f9a3(0x902)](this['_entities'][_0x38cc7a][_0x22f9a3(0xdd5)][_0x22f9a3(0x202)]))this[_0x22f9a3(0xfef)][_0x38cc7a]['color_thresholds'][_0x22f9a3(0x202)]=[];};_0x4f8766?.[_0xf85427(0x171)](_0xf85427(0xe34),()=>{const _0x17e955=_0xf85427;_0x46677e(),this[_0x17e955(0xfef)][_0x38cc7a][_0x17e955(0xdd5)][_0x17e955(0x1007)]=_0x4f8766[_0x17e955(0xe82)],_0x4f8766[_0x17e955(0xe82)]&&(_0x3a1b17(),this[_0x17e955(0xfef)][_0x38cc7a][_0x17e955(0xc6b)][_0x17e955(0x1007)]=![]),this[_0x17e955(0x103c)](),this['_valueChanged']();}),_0xfc33bf['querySelector'](_0xf85427(0x2c8))?.['addEventListener']('change',_0x54558e=>{const _0x50ca8d=_0xf85427;_0x46677e(),this['_entities'][_0x38cc7a][_0x50ca8d(0xdd5)]['transition']=_0x54558e[_0x50ca8d(0x6bc)]['value'],this[_0x50ca8d(0xcb7)]();}),_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x501))?.['addEventListener'](_0xf85427(0xe34),_0x8cb56d=>{const _0x3efab1=_0xf85427;_0x46677e(),this[_0x3efab1(0xfef)][_0x38cc7a][_0x3efab1(0xdd5)][_0x3efab1(0x38a)]=_0x8cb56d[_0x3efab1(0x6bc)][_0x3efab1(0x2ea)],this[_0x3efab1(0xcb7)]();}),_0xfc33bf[_0xf85427(0xee6)]('.e-thr_last_color')?.[_0xf85427(0x171)]('change',_0x36966e=>{const _0x282d4f=_0xf85427;_0x46677e(),this[_0x282d4f(0xfef)][_0x38cc7a][_0x282d4f(0xdd5)][_0x282d4f(0x873)]=_0x36966e[_0x282d4f(0x6bc)][_0x282d4f(0xe82)],this['_valueChanged']();}),_0x441fbf?.[_0xf85427(0x171)](_0xf85427(0xe5e),()=>{const _0x5e4392=_0xf85427;_0x46677e(),this[_0x5e4392(0xfef)][_0x38cc7a]['color_thresholds']['values'][_0x5e4392(0xb31)]({'value':0x0,'color':_0x5e4392(0x3e4)}),this['_render'](),this[_0x5e4392(0xcb7)]();}),_0x33fafe?.['addEventListener']('change',_0x5b5304=>{const _0x340f3e=_0xf85427,_0x5a353e=_0x5b5304[_0x340f3e(0x6bc)][_0x340f3e(0x6c0)](_0x340f3e(0xf08));if(!_0x5a353e)return;const _0x2504bf=parseInt(_0x5a353e[_0x340f3e(0x8f6)][_0x340f3e(0xe36)]);_0x46677e();if(_0x5b5304[_0x340f3e(0x6bc)][_0x340f3e(0x9a1)][_0x340f3e(0x2a0)]('thr-val')){const _0x290842=_0x5b5304[_0x340f3e(0x6bc)]['value'][_0x340f3e(0xa11)]();this[_0x340f3e(0xfef)][_0x38cc7a]['color_thresholds']['values'][_0x2504bf][_0x340f3e(0x2ea)]=/^[a-z_]+\.[a-z0-9_]+/i[_0x340f3e(0x920)](_0x290842)?_0x290842:parseFloat(_0x290842),this[_0x340f3e(0xcb7)]();}_0x5b5304['target'][_0x340f3e(0x9a1)]['contains'](_0x340f3e(0x6f9))&&(this[_0x340f3e(0xfef)][_0x38cc7a][_0x340f3e(0xdd5)][_0x340f3e(0x202)][_0x2504bf][_0x340f3e(0xd95)]=_0x5b5304[_0x340f3e(0x6bc)][_0x340f3e(0x2ea)],this['_valueChanged']()),_0x5b5304[_0x340f3e(0x6bc)]['classList']['contains'](_0x340f3e(0x4bb))&&(this[_0x340f3e(0xfef)][_0x38cc7a][_0x340f3e(0xdd5)][_0x340f3e(0x202)][_0x2504bf][_0x340f3e(0xd95)]=_0x5b5304[_0x340f3e(0x6bc)][_0x340f3e(0x2ea)],this[_0x340f3e(0x103c)](),this[_0x340f3e(0xcb7)]());}),_0x33fafe?.[_0xf85427(0x171)](_0xf85427(0xe5e),_0xd105a=>{const _0x4699a0=_0xf85427,_0x5d3224=_0xd105a['target'][_0x4699a0(0x6c0)]('.thr-del');if(!_0x5d3224)return;const _0x33bae7=parseInt(_0x5d3224['closest'](_0x4699a0(0xf08))[_0x4699a0(0x8f6)]['row']);_0x46677e(),this[_0x4699a0(0xfef)][_0x38cc7a][_0x4699a0(0xdd5)][_0x4699a0(0x202)][_0x4699a0(0x76c)](_0x33bae7,0x1),this[_0x4699a0(0x103c)](),this[_0x4699a0(0xcb7)]();});const _0x2ac0d2=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0x47b)),_0x574d8e=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xd3a)),_0x4ae94e=()=>{const _0x1c9871=_0xf85427;if(!Array[_0x1c9871(0x902)](this[_0x1c9871(0xfef)][_0x38cc7a][_0x1c9871(0xdf3)]))this[_0x1c9871(0xfef)][_0x38cc7a][_0x1c9871(0xdf3)]=[];};_0x574d8e?.[_0xf85427(0x171)](_0xf85427(0xe5e),()=>{const _0x2d0128=_0xf85427;_0x4ae94e();const _0x167cf2=[_0x2d0128(0x57d),'#3498db','#e67e22',_0x2d0128(0x878),'#1abc9c'],_0x32bdbc=this[_0x2d0128(0xfef)][_0x38cc7a][_0x2d0128(0xdf3)][_0x2d0128(0xc02)];this['_entities'][_0x38cc7a][_0x2d0128(0xdf3)]['push']({'period':_0x32bdbc===0x0?0x7:0x1a,'color':_0x167cf2[_0x32bdbc%_0x167cf2[_0x2d0128(0xc02)]]}),this[_0x2d0128(0x103c)](),this[_0x2d0128(0xcb7)]();}),_0x2ac0d2?.['addEventListener']('change',_0x3271b8=>{const _0x26c916=_0xf85427,_0x137898=_0x3271b8[_0x26c916(0x6bc)][_0x26c916(0x6c0)](_0x26c916(0x7c0));if(!_0x137898)return;const _0x1cc90c=parseInt(_0x137898[_0x26c916(0x8f6)]['row']);_0x4ae94e(),_0x3271b8['target'][_0x26c916(0x9a1)][_0x26c916(0x2a0)](_0x26c916(0xad6))&&(this[_0x26c916(0xfef)][_0x38cc7a]['moving_averages'][_0x1cc90c][_0x26c916(0xe4c)]=Math['max'](0x1,parseInt(_0x3271b8['target'][_0x26c916(0x2ea)])||0x1),this[_0x26c916(0xcb7)]()),_0x3271b8[_0x26c916(0x6bc)][_0x26c916(0x9a1)][_0x26c916(0x2a0)]('ma-col')&&(this[_0x26c916(0xfef)][_0x38cc7a]['moving_averages'][_0x1cc90c]['color']=_0x3271b8[_0x26c916(0x6bc)]['value'],this['_valueChanged']()),_0x3271b8[_0x26c916(0x6bc)][_0x26c916(0x9a1)][_0x26c916(0x2a0)](_0x26c916(0xe3f))&&(this[_0x26c916(0xfef)][_0x38cc7a][_0x26c916(0xdf3)][_0x1cc90c][_0x26c916(0x6ac)]=_0x3271b8[_0x26c916(0x6bc)][_0x26c916(0xe82)],this['_valueChanged']());}),_0x2ac0d2?.[_0xf85427(0x171)]('click',_0x393484=>{const _0x59ec13=_0xf85427,_0x1c37b8=_0x393484[_0x59ec13(0x6bc)][_0x59ec13(0x6c0)](_0x59ec13(0x1f0));if(!_0x1c37b8)return;const _0x3822d0=parseInt(_0x1c37b8['closest']('.ma-row')[_0x59ec13(0x8f6)][_0x59ec13(0xe36)]);_0x4ae94e(),this[_0x59ec13(0xfef)][_0x38cc7a][_0x59ec13(0xdf3)]['splice'](_0x3822d0,0x1),this[_0x59ec13(0x103c)](),this[_0x59ec13(0xcb7)]();}),_0xfc33bf['querySelectorAll'](_0xf85427(0x847))[_0xf85427(0xd27)](_0x29969f=>{const _0x1e4ff2=_0xf85427;_0x29969f[_0x1e4ff2(0x171)](_0x1e4ff2(0x7f6),_0x2a17b2=>{_0x2a17b2['stopPropagation']();},{'passive':![]});});const _0xeb2415=_0xfc33bf[_0xf85427(0xee6)](_0xf85427(0xf47));_0xeb2415?.['addEventListener'](_0xf85427(0xafc),_0x379f80=>{const _0x1be161=_0xf85427;this[_0x1be161(0x802)]=_0x38cc7a,_0x379f80['dataTransfer'][_0x1be161(0x354)]=_0x1be161(0xdff),_0xfc33bf['style'][_0x1be161(0x7a2)]='0.5';}),_0xeb2415?.[_0xf85427(0x171)](_0xf85427(0xef9),()=>{const _0x9e46b7=_0xf85427;this[_0x9e46b7(0x802)]=null,_0xfc33bf[_0x9e46b7(0x944)][_0x9e46b7(0x7a2)]='1',this[_0x9e46b7(0xbb2)][_0x9e46b7(0xf98)](_0x9e46b7(0x4fe))[_0x9e46b7(0xd27)](_0x744a48=>_0x744a48[_0x9e46b7(0x9a1)][_0x9e46b7(0x547)](_0x9e46b7(0x7e7)));}),_0xfc33bf[_0xf85427(0x171)](_0xf85427(0x584),_0x308a8a=>{const _0x4f1512=_0xf85427;if(this[_0x4f1512(0x802)]===null||this[_0x4f1512(0x802)]===_0x38cc7a)return;_0x308a8a[_0x4f1512(0xac3)](),_0x308a8a[_0x4f1512(0xe16)][_0x4f1512(0x5a8)]=_0x4f1512(0xdff),_0xfc33bf['classList'][_0x4f1512(0x982)](_0x4f1512(0x7e7));}),_0xfc33bf[_0xf85427(0x171)](_0xf85427(0x5d3),()=>{const _0x4ef079=_0xf85427;_0xfc33bf[_0x4ef079(0x9a1)]['remove'](_0x4ef079(0x7e7));}),_0xfc33bf[_0xf85427(0x171)](_0xf85427(0x562),_0x4b70a6=>{const _0x496e88=_0xf85427;_0x4b70a6[_0x496e88(0xac3)](),_0xfc33bf['classList']['remove'](_0x496e88(0x7e7));if(this[_0x496e88(0x802)]!==null&&this[_0x496e88(0x802)]!==_0x38cc7a){const _0x593b8b=[...this[_0x496e88(0xfef)]],[_0x1be445]=_0x593b8b['splice'](this['_dragState'],0x1);_0x593b8b[_0x496e88(0x76c)](_0x38cc7a,0x0,_0x1be445),this[_0x496e88(0x866)][_0x496e88(0xd97)]=_0x593b8b,this['_render'](),this[_0x496e88(0xcb7)]();}});});const _0x139e29=(_0x3d0dba,_0x2cb154,_0x3b8c4e=_0x21c573(0x941))=>{const _0x51427e=_0x21c573;if(!_0x3d0dba)return;_0x3d0dba[_0x51427e(0x4cb)]=!![];const _0x5a939b=_0x3d0dba[_0x51427e(0x6c0)](_0x51427e(0xf1f))||_0x3d0dba[_0x51427e(0xac2)];if(!_0x5a939b)return;_0x5a939b[_0x51427e(0x944)][_0x51427e(0x7a2)]=_0x51427e(0x77b),_0x5a939b['title']=this['_eT'](_0x3b8c4e)+':\x0a'+_0x2cb154;const _0x17a309=_0x5a939b[_0x51427e(0xee6)](_0x51427e(0x29d))||_0x5a939b;if(_0x17a309&&!_0x17a309[_0x51427e(0xee6)](_0x51427e(0x273))){const _0xc75dec=document['createElement'](_0x51427e(0x7db));_0xc75dec['className']='tpl-badge',_0xc75dec[_0x51427e(0x3d2)]=_0x51427e(0x6df),_0xc75dec[_0x51427e(0x944)][_0x51427e(0x836)]=_0x51427e(0x747),_0x17a309[_0x51427e(0x319)](_0xc75dec);}};for(const _0x598aac of TEMPLATABLE_BOOL_CARD_KEYS){isTemplateString(this[_0x21c573(0x866)]?.[_0x598aac])&&_0x139e29(this[_0x21c573(0xbb2)][_0x21c573(0x404)](_0x598aac),this[_0x21c573(0x866)][_0x598aac]);}this[_0x21c573(0xbb2)][_0x21c573(0xf98)](_0x21c573(0x4fe))[_0x21c573(0xd27)]((_0x1b1bfe,_0x433f55)=>{const _0x4c71b1=_0x21c573,_0x459723=this['_entities'][_0x433f55];if(!_0x459723)return;for(const _0x21f076 of TEMPLATABLE_BOOL_ENTITY_KEYS){isTemplateString(_0x459723[_0x21f076])&&_0x139e29(_0x1b1bfe['querySelector'](_0x4c71b1(0xddc)+_0x21f076),_0x459723[_0x21f076]);}if(enabledRefSpec(_0x459723['enabled']))_0x139e29(_0x1b1bfe[_0x4c71b1(0xee6)](_0x4c71b1(0x237)),_0x459723[_0x4c71b1(0x1007)],'Follows\x20an\x20entity');});}[_0x46af5e(0xde0)](_0x4808d0,_0x311f93,_0x5a5650){const _0x1b3672=_0x46af5e,_0x3109c5=this[_0x1b3672(0xbb2)]['getElementById'](_0x4808d0);if(!_0x3109c5)return;if(_0x311f93===_0x1b3672(0x3f5)&&_0x3109c5[_0x1b3672(0xefa)]===_0x1b3672(0x327)){_0x3109c5[_0x1b3672(0x171)](_0x1b3672(0xe34),_0x5a5650);return;}_0x3109c5['addEventListener'](_0x311f93,_0x5a5650);}['_read'](_0x1a3799,_0x528914=_0x46af5e(0x8a1)){const _0x20134c=_0x46af5e;if(_0x528914===_0x20134c(0xa95))return!!_0x1a3799['checked'];if(_0x528914==='int'){const _0x422fa8=parseInt(_0x1a3799[_0x20134c(0x2ea)],0xa);return isNaN(_0x422fa8)?null:_0x422fa8;}if(_0x528914===_0x20134c(0xf05)){const _0x4caae4=parseFloat(_0x1a3799[_0x20134c(0x2ea)]);return isNaN(_0x4caae4)?null:_0x4caae4;}return _0x1a3799['value'];}[_0x46af5e(0xcb7)](){const _0x21be2c=_0x46af5e,_0xe8ac06=this[_0x21be2c(0x866)]||this[_0x21be2c(0xfe9)]||{},_0x1acfb0=_0x7e2814=>this[_0x21be2c(0xbb2)][_0x21be2c(0x404)](_0x7e2814)||(_0xe8ac06&&_0x7e2814 in _0xe8ac06?{'value':_0xe8ac06[_0x7e2814]==null?'':String(_0xe8ac06[_0x7e2814]),'checked':_0xe8ac06[_0x7e2814]===!![]}:null),_0x4f0c26=_0x15b6bb=>_0x1acfb0(_0x15b6bb)?.[_0x21be2c(0x2ea)],_0x1a0cc1=(_0x17bffe,_0x166adf)=>{const _0x9bce29=_0x21be2c,_0x16cd35=_0x1acfb0(_0x17bffe);if(!_0x16cd35)return _0x166adf;return typeof _0x16cd35[_0x9bce29(0xe82)]===_0x9bce29(0x84a)?_0x16cd35[_0x9bce29(0xe82)]:String(_0x16cd35[_0x9bce29(0x2ea)])===_0x9bce29(0xa70);},_0x5d7a01=(_0x4b2999,_0x1e7b08)=>{const _0x225839=_0x21be2c,_0x4054c4=this[_0x225839(0x866)]?.[_0x4b2999];return isTemplateString(_0x4054c4)?_0x4054c4:_0x1e7b08;},_0x3ac97a={'type':this['_config']?.[_0x21be2c(0xefa)]||_0x21be2c(0x216),'card_header':_0x4f0c26(_0x21be2c(0x26a))||void 0x0,'card_header_size':_0x4f0c26(_0x21be2c(0xa0c))||void 0x0,'card_background_color':_0x4f0c26(_0x21be2c(0xa4c))||void 0x0,'card_shadow':_0x1acfb0(_0x21be2c(0x773))?.[_0x21be2c(0xe82)]??!![],'card_border':_0x1acfb0(_0x21be2c(0x509))?.['checked']??!![],'card_padding':((()=>{const _0x3a3c74=_0x21be2c,_0x480ec2=_0x4f0c26(_0x3a3c74(0x6c1));if(!_0x480ec2)return void 0x0;return/^-?\d+\.?\d*$/[_0x3a3c74(0x920)](_0x480ec2[_0x3a3c74(0xa11)]())?parseFloat(_0x480ec2):_0x480ec2;})()),'card_border_radius':((()=>{const _0x528971=_0x21be2c,_0x3b3cee=_0x4f0c26(_0x528971(0xb14));if(!_0x3b3cee)return void 0x0;return/^-?\d+\.?\d*$/['test'](_0x3b3cee['trim']())?parseFloat(_0x3b3cee):_0x3b3cee;})()),'card_border_color':_0x4f0c26(_0x21be2c(0xc19))||void 0x0,'card_border_width':((()=>{const _0x284657=_0x21be2c,_0x4fdc50=_0x4f0c26('card_border_width');if(!_0x4fdc50)return void 0x0;return/^-?\d+\.?\d*$/[_0x284657(0x920)](_0x4fdc50[_0x284657(0xa11)]())?parseFloat(_0x4fdc50):_0x4fdc50;})()),'card_background_image':_0x4f0c26(_0x21be2c(0x60d))||void 0x0,'card_background_blur':((()=>{const _0x36cf6d=_0x4f0c26('card_background_blur');if(_0x36cf6d===''||_0x36cf6d==null)return void 0x0;const _0x19fc6c=parseFloat(_0x36cf6d);return isNaN(_0x19fc6c)?void 0x0:_0x19fc6c;})()),'card_header_color':_0x4f0c26(_0x21be2c(0x7b6))||void 0x0,'card_header_weight':_0x4f0c26('card_header_weight')||void 0x0,'card_header_letter_spacing':((()=>{const _0x1d6b8e=_0x21be2c,_0x333278=_0x4f0c26('card_header_letter_spacing');if(!_0x333278)return void 0x0;return/^-?\d+\.?\d*$/[_0x1d6b8e(0x920)](_0x333278[_0x1d6b8e(0xa11)]())?parseFloat(_0x333278):_0x333278;})()),'styles':((()=>{const _0x39c734=_0x21be2c,_0x3fd1e2=_0x4f0c26(_0x39c734(0x823));return _0x3fd1e2&&_0x3fd1e2[_0x39c734(0xa11)]()?_0x3fd1e2:void 0x0;})()),'show_now_line':_0x5d7a01('show_now_line',_0x1acfb0(_0x21be2c(0xc31))?.[_0x21be2c(0xe82)]??!![]),'now_line_color':_0x4f0c26(_0x21be2c(0x996))||void 0x0,'period_highlight':_0x5d7a01(_0x21be2c(0x298),_0x1acfb0(_0x21be2c(0x298))?.[_0x21be2c(0xe82)]||void 0x0),'period_highlight_color':_0x4f0c26(_0x21be2c(0x80a))||void 0x0,'now_line_opacity':((()=>{const _0x318611=_0x4f0c26('now_line_opacity');if(_0x318611===''||_0x318611==null)return void 0x0;const _0x66c565=parseFloat(_0x318611);return isNaN(_0x66c565)?void 0x0:_0x66c565;})()),'now_line_width':((()=>{const _0x21ff7b=_0x21be2c,_0x51bd65=_0x4f0c26(_0x21ff7b(0xbfc));if(_0x51bd65===''||_0x51bd65==null)return void 0x0;const _0x42f3f1=parseFloat(_0x51bd65);return isNaN(_0x42f3f1)?void 0x0:_0x42f3f1;})()),'now_line_style':_0x4f0c26('now_line_style')||void 0x0,'card_icon':this['_tmp'][_0x21be2c(0x90f)]||void 0x0,'card_icon_size':_0x4f0c26(_0x21be2c(0x4ef))||void 0x0,'card_icon_image':_0x4f0c26(_0x21be2c(0x59a))||void 0x0,'card_icon_color':this[_0x21be2c(0x866)]['card_icon_color']||void 0x0,'card_icon_position':_0x4f0c26(_0x21be2c(0x1009))||void 0x0,'battery_entity':this[_0x21be2c(0x866)][_0x21be2c(0x254)]!==void 0x0?this[_0x21be2c(0x866)][_0x21be2c(0x254)]:this[_0x21be2c(0xfe9)][_0x21be2c(0x254)]||void 0x0,'battery_low_threshold':((()=>{const _0x29f650=_0x21be2c,_0x1d6fc7=_0x4f0c26(_0x29f650(0x355));if(!_0x1d6fc7)return;const _0x12c25d=parseFloat(_0x1d6fc7);return isNaN(_0x12c25d)?_0x1d6fc7:_0x12c25d;})()),'show_grid':_0x5d7a01(_0x21be2c(0x257),_0x1acfb0(_0x21be2c(0x257))?.[_0x21be2c(0xe82)]??!![]),'show_cell_values':_0x5d7a01(_0x21be2c(0xe18),_0x1acfb0(_0x21be2c(0xe18))?.[_0x21be2c(0xe82)]??!![]),'show_tooltip':_0x5d7a01(_0x21be2c(0xeed),_0x1acfb0('show_tooltip')?.[_0x21be2c(0xe82)]??!![]),'show_tooltip_total':_0x5d7a01(_0x21be2c(0x74f),_0x1acfb0(_0x21be2c(0x74f))?.['checked']??!![]),'tooltip_stacked_total':_0x5d7a01(_0x21be2c(0x5b2),_0x1acfb0(_0x21be2c(0x5b2))?.['checked']??!![]),'show_legend':_0x5d7a01(_0x21be2c(0x76d),_0x1acfb0(_0x21be2c(0x76d))?.[_0x21be2c(0xe82)]??![]),'include_area_names':_0x1acfb0(_0x21be2c(0x45c))?.['checked']||void 0x0,'include_attribute_name':_0x1acfb0(_0x21be2c(0x1015))?.[_0x21be2c(0xe82)]||void 0x0,'use_only_attribute_name':_0x1acfb0(_0x21be2c(0x37a))?.[_0x21be2c(0xe82)]||void 0x0,'legend_position':_0x4f0c26(_0x21be2c(0xb44))||void 0x0,'show_y_axis':_0x5d7a01(_0x21be2c(0xe1e),_0x1acfb0(_0x21be2c(0xe1e))?.['checked']??!![]),'show_y2_axis':_0x5d7a01(_0x21be2c(0x589),_0x1acfb0(_0x21be2c(0x589))?.['checked']??![]),'show_y_axis_label':_0x5d7a01(_0x21be2c(0x3d7),_0x1acfb0(_0x21be2c(0x3d7))?.[_0x21be2c(0xe82)]??![]),'show_x_axis':_0x5d7a01(_0x21be2c(0x4f0),_0x1acfb0('show_x_axis')?.['checked']??!![]),'show_x_ticks':_0x5d7a01(_0x21be2c(0x9b4),_0x1acfb0(_0x21be2c(0x9b4))?.[_0x21be2c(0xe82)]??![]),'show_y_ticks':_0x5d7a01(_0x21be2c(0xd51),_0x1acfb0('show_y_ticks')?.[_0x21be2c(0xe82)]??![]),'logarithmic':_0x5d7a01(_0x21be2c(0xe44),_0x1acfb0(_0x21be2c(0xe44))?.[_0x21be2c(0xe82)]??![]),'animate_graph':_0x1acfb0('animate_graph')?.[_0x21be2c(0xe82)]??![],'auto_hide_entities':_0x1acfb0(_0x21be2c(0x864))?.[_0x21be2c(0xe82)]??![],'brush_zoom':_0x1acfb0(_0x21be2c(0x236))?.[_0x21be2c(0xe82)]??!![],'show_zoom_buttons':_0x1acfb0(_0x21be2c(0xdd0))?.['checked']??![],'drill_down':_0x1acfb0(_0x21be2c(0x206))?.['checked']?!![]:undefined,'stacked':_0x5d7a01(_0x21be2c(0x18a),_0x1acfb0(_0x21be2c(0x18a))?.['checked']??![]),'sparkline':_0x1acfb0(_0x21be2c(0x4a1))?.['checked']??![],'max_visible_interval':this['_numOrNull'](_0x4f0c26(_0x21be2c(0x4ad))),'extended_window_multiplier':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x755))),'scroll_mode':_0x4f0c26(_0x21be2c(0xc06))||_0x21be2c(0x50e),'show_interval_picker':_0x1acfb0(_0x21be2c(0xdf9))?.[_0x21be2c(0xe82)]??![],'interval_picker_position':_0x4f0c26('interval_picker_position')||void 0x0,'interval_options':((()=>{const _0x4e8337=_0x21be2c,_0xca3a5d=this['shadowRoot'][_0x4e8337(0xf98)](_0x4e8337(0xb96));if(!_0xca3a5d[_0x4e8337(0xc02)])return _0xe8ac06[_0x4e8337(0x561)];const _0x38470c=['1H','2H','4H','8H',_0x4e8337(0x842),_0x4e8337(0xf0e),'7D'],_0x1e3bf5=[];_0xca3a5d[_0x4e8337(0xd27)](_0x282fa7=>{const _0x28e3be=_0x4e8337;if(_0x282fa7[_0x28e3be(0xe82)])_0x1e3bf5[_0x28e3be(0xb31)](_0x282fa7[_0x28e3be(0x8f6)][_0x28e3be(0x715)]);});if(_0x1e3bf5[_0x4e8337(0xc02)]===_0x38470c[_0x4e8337(0xc02)]&&_0x38470c[_0x4e8337(0xe97)](_0x3d9bff=>_0x1e3bf5[_0x4e8337(0xf06)](_0x3d9bff)))return;return _0x1e3bf5;})()),'show_attribute_list':_0x1acfb0(_0x21be2c(0xb55))?.[_0x21be2c(0xe82)]??![],'attribute_list_position':_0x4f0c26(_0x21be2c(0x9e7))||void 0x0,'show_pph_picker':_0x1acfb0(_0x21be2c(0x392))?.['checked']??![],'pph_picker_position':_0x4f0c26(_0x21be2c(0x848))||void 0x0,'show_group_by_picker':_0x1acfb0('show_group_by_picker')?.[_0x21be2c(0xe82)]??![],'group_by_picker_position':_0x4f0c26(_0x21be2c(0x272))||void 0x0,'pph_picker_group':_0x4f0c26(_0x21be2c(0xc91))||void 0x0,'group_by_picker_group':_0x4f0c26(_0x21be2c(0xb37))||void 0x0,'hours_to_show':this['_numOrNull'](_0x4f0c26('hours_to_show')),'points_per_hour':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x71e))),'auto_scale_points':_0x1acfb0('auto_scale_points')?.['checked']??![],'tooltip_match_axis':_0x1acfb0('tooltip_match_axis')?.['checked']??![],'tooltip_order':_0x4f0c26(_0x21be2c(0x45f))||void 0x0,'crosshair':_0x1acfb0('crosshair')?.['checked']||void 0x0,'crosshair_pins':this[_0x21be2c(0xb45)](_0x4f0c26('crosshair_pins')),'crosshair_delta':_0x1acfb0(_0x21be2c(0xb33))?.[_0x21be2c(0xe82)]??!![],'crosshair_legend':_0x1acfb0(_0x21be2c(0xf7b))?.[_0x21be2c(0xe82)]||void 0x0,'height':((()=>{const _0x5d609b=_0x21be2c,_0x318b04=_0x4f0c26(_0x5d609b(0x43d));if(_0x318b04===void 0x0||_0x318b04===null||String(_0x318b04)['trim']()==='')return _0x5d609b(0x6c8);const _0x2e621a=Number(_0x318b04);return isNaN(_0x2e621a)?_0x5d609b(0x6c8):_0x2e621a;})()),'update_interval':this['_numOrNull'](_0x4f0c26(_0x21be2c(0xb51))),'graph_start_hour':((()=>{const _0x2dce08=_0x4f0c26('graph_start_hour');if(!_0x2dce08)return null;const _0xe61515=parseFloat(_0x2dce08);return isNaN(_0xe61515)?_0x2dce08:_0xe61515;})()),'graph_end_hour':((()=>{const _0xa43dd6=_0x21be2c,_0x42beca=_0x4f0c26(_0xa43dd6(0xfca));if(!_0x42beca)return null;const _0xd3e312=parseFloat(_0x42beca);return isNaN(_0xd3e312)?_0x42beca:_0xd3e312;})()),'year_start_month':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x3ef))),'graph_start':_0x4f0c26(_0x21be2c(0x69f))||void 0x0,'show_full_period':_0x1acfb0(_0x21be2c(0x746))?.[_0x21be2c(0xe82)]??![],'bar_spacing':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x8e9))),'bar_corner_radius':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xf2c))),'state_timeline_corner_radius':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xfe3))),'state_timeline_row_height':this[_0x21be2c(0xb45)](_0x4f0c26('state_timeline_row_height')),'state_timeline_show_labels':_0x5d7a01(_0x21be2c(0x4d4),_0x1acfb0(_0x21be2c(0x4d4))?.['checked']??!![]),'state_timeline_label_font_size':this[_0x21be2c(0xb45)](_0x4f0c26('state_timeline_label_font_size')),'state_strip_height':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x973))),'state_strip_labels':_0x1a0cc1(_0x21be2c(0x54c),!![]),'state_strip_titles':_0x1a0cc1(_0x21be2c(0x4bd),![]),'state_strip_title_font_size':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x4bf))),'state_strip_title_position':_0x4f0c26(_0x21be2c(0x4a6))||void 0x0,'show_export':_0x5d7a01(_0x21be2c(0xbca),_0x1acfb0(_0x21be2c(0xbca))?.[_0x21be2c(0xe82)]||void 0x0),'ranking_min_value':this['_numOrNull'](_0x4f0c26(_0x21be2c(0x100d))),'ranking_max_value':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xaca))),'pie_style':_0x4f0c26(_0x21be2c(0x367))||void 0x0,'pie_spacing':this['_numOrNull'](_0x4f0c26('pie_spacing')),'pie_3d':_0x1acfb0(_0x21be2c(0x82a))?.[_0x21be2c(0xe82)]??![],'pie_label_font_size':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xf50))),'pie_label_color':_0x4f0c26(_0x21be2c(0xdaf))||void 0x0,'pie_label_format':_0x4f0c26(_0x21be2c(0xb03))||void 0x0,'gauge_columns':this[_0x21be2c(0xb45)](_0x4f0c26('gauge_columns')),'gauge_value_position':_0x4f0c26(_0x21be2c(0x665))||void 0x0,'gauge_value_size':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x882))),'gauge_span':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xe43))),'gauge_show_minmax':_0x1acfb0(_0x21be2c(0xb43))?.[_0x21be2c(0xe82)]||void 0x0,'pie_center_font_size':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xd2d))),'pie_center_color':_0x4f0c26(_0x21be2c(0xe38))||void 0x0,'min_bound_range':((()=>{const _0x429476=_0x21be2c,_0x114405=_0x4f0c26(_0x429476(0x103d));if(!_0x114405)return null;const _0x2e7164=parseFloat(_0x114405);return isNaN(_0x2e7164)?_0x114405:_0x2e7164;})()),'min_bound_range_secondary':((()=>{const _0x485d2b=_0x21be2c,_0x28de70=_0x4f0c26(_0x485d2b(0xea8));if(!_0x28de70)return null;const _0x5c166b=parseFloat(_0x28de70);return isNaN(_0x5c166b)?_0x28de70:_0x5c166b;})()),'lower_bound_secondary':_0x4f0c26(_0x21be2c(0x8db))||void 0x0,'upper_bound_secondary':_0x4f0c26('upper_bound_secondary')||void 0x0,'lower_bound':_0x4f0c26(_0x21be2c(0xf24))||void 0x0,'upper_bound':_0x4f0c26(_0x21be2c(0x443))||void 0x0,'y_axis_ticks':this[_0x21be2c(0xb45)](_0x4f0c26('y_axis_ticks')),'y_axis_round_ticks':_0x1acfb0(_0x21be2c(0x230))?.[_0x21be2c(0xe82)]??!![],'y_axis_decimals':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x1010))),'y_axis_number_format':_0x4f0c26(_0x21be2c(0x310))||_0x21be2c(0x8e1),'y_axis_label':_0x4f0c26('y_axis_label')||void 0x0,'y_axis_format':_0x4f0c26(_0x21be2c(0xe9c))||void 0x0,'y2_axis_format':_0x4f0c26(_0x21be2c(0xfcc))||void 0x0,'duration_unit':_0x4f0c26(_0x21be2c(0x885))==='s'?void 0x0:_0x4f0c26('duration_unit')||void 0x0,'y2_axis_label':_0x4f0c26(_0x21be2c(0x3b7))||void 0x0,'y_axis_font_size':this[_0x21be2c(0xb45)](_0x4f0c26('y_axis_font_size')),'y_axis_font_opacity':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xd8c))),'y_axis_color':_0x4f0c26(_0x21be2c(0x5bd))||void 0x0,'axis_style':_0x4f0c26(_0x21be2c(0x95c))||void 0x0,'x_axis_font_size':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x339))),'x_axis_font_opacity':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xb66))),'x_axis_color':_0x4f0c26(_0x21be2c(0xdb6))||void 0x0,'x_axis_date_color':_0x4f0c26(_0x21be2c(0xdca))||void 0x0,'x_axis_interval':_0x4f0c26(_0x21be2c(0x1c9))||void 0x0,'datetime_format':_0x4f0c26('datetime_format')||void 0x0,'time_zone':_0x4f0c26(_0x21be2c(0x1fa))&&_0x4f0c26(_0x21be2c(0x1fa))!=='auto'?_0x4f0c26('time_zone'):void 0x0,'language':_0x4f0c26(_0x21be2c(0x5cd))&&_0x4f0c26(_0x21be2c(0x5cd))!==_0x21be2c(0x6c8)?_0x4f0c26(_0x21be2c(0x5cd)):void 0x0,'x_grid_style':_0x4f0c26(_0x21be2c(0x86c))||void 0x0,'x_grid_width':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x571))),'x_grid_color':_0x4f0c26('x_grid_color')||void 0x0,'x_grid_opacity':this['_numOrNull'](_0x4f0c26(_0x21be2c(0x598))),'y_grid_style':_0x4f0c26(_0x21be2c(0xc0f))||void 0x0,'y_grid_width':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0xa8c))),'y_grid_color':_0x4f0c26('y_grid_color')||void 0x0,'y_grid_opacity':this[_0x21be2c(0xb45)](_0x4f0c26(_0x21be2c(0x633))),'tooltip_sync':_0x1acfb0(_0x21be2c(0xb38))?.[_0x21be2c(0xe82)]??![],'zoom_sync':_0x1acfb0(_0x21be2c(0x66b))?.[_0x21be2c(0xe82)]??![],'scroll_sync':_0x1acfb0(_0x21be2c(0xcfc))?.['checked']??![],'energy_date_sync':_0x1acfb0(_0x21be2c(0xbc9))?.[_0x21be2c(0xe82)]??![],'energy_collection_key':(_0x4f0c26('energy_collection_key')||'')[_0x21be2c(0xa11)]()||void 0x0,'show_date_picker':_0x1acfb0(_0x21be2c(0xb1f))?.[_0x21be2c(0xe82)]??![],'default_interval':_0x4f0c26(_0x21be2c(0xa2b))||void 0x0,'date_picker_position':_0x4f0c26('date_picker_position')||void 0x0,'date_picker_nav_position':_0x4f0c26('date_picker_nav_position')===_0x21be2c(0xaaf)?void 0x0:_0x4f0c26(_0x21be2c(0x8c8))||void 0x0,'date_picker_shortcuts_position':_0x4f0c26(_0x21be2c(0x8f0))==='right'?void 0x0:_0x4f0c26(_0x21be2c(0x8f0))||void 0x0,'date_picker_default_mode':_0x4f0c26(_0x21be2c(0xa04))||void 0x0,'date_picker_group':_0x4f0c26(_0x21be2c(0x175))||void 0x0,'sync_group':_0x4f0c26('sync_group')||void 0x0,'date_picker_reset':((()=>{const _0x18a8bb=_0x21be2c,_0x55545a=!!_0x1acfb0(_0x18a8bb(0x378))?.[_0x18a8bb(0xe82)];return(this['_pinnedMode']||_0x4f0c26('chart_mode'))===_0x18a8bb(0x8fe)?_0x55545a?void 0x0:![]:_0x55545a||void 0x0;})()),'interval_picker_group':_0x4f0c26(_0x21be2c(0x545))||void 0x0,'date_picker_modes':((()=>{const _0x25db52=_0x21be2c,_0x4bae61=this[_0x25db52(0xbb2)][_0x25db52(0xf98)]('[data-dpmode]');if(!_0x4bae61[_0x25db52(0xc02)])return _0xe8ac06[_0x25db52(0x464)];const _0x152597=this['_pinnedMode']||_0x4f0c26('chart_mode')||_0x25db52(0x325),_0x29c474=_0x152597===_0x25db52(0x8fe)?CONTROLLER_DATE_PICKER_MODES:[_0x25db52(0x309),_0x25db52(0x6f1),_0x25db52(0xe7d),'year'],_0x4cda42=[];_0x4bae61[_0x25db52(0xd27)](_0x2b2734=>{const _0x4a7dfa=_0x25db52;if(_0x2b2734[_0x4a7dfa(0xe82)])_0x4cda42[_0x4a7dfa(0xb31)](_0x2b2734[_0x4a7dfa(0x8f6)][_0x4a7dfa(0x3ed)]);});const _0x283ce1=Array[_0x25db52(0x902)](_0xe8ac06['date_picker_modes'])?_0xe8ac06[_0x25db52(0x464)]:[],_0x5a9cb1=_0x2d96b0=>{const _0xbe05aa=_0x25db52,_0x3eb4c7=_0x283ce1['indexOf'](_0x2d96b0);return _0x3eb4c7<0x0?_0x283ce1[_0xbe05aa(0xc02)]:_0x3eb4c7;};_0x4cda42[_0x25db52(0xd09)]((_0x29addb,_0x4aa12f)=>_0x5a9cb1(_0x29addb)-_0x5a9cb1(_0x4aa12f));if(_0x4cda42[_0x25db52(0xc02)]===_0x29c474[_0x25db52(0xc02)]&&_0x29c474[_0x25db52(0xe97)]((_0x389b9b,_0x2ca2a4)=>_0x4cda42[_0x2ca2a4]===_0x389b9b))return;if(_0x4cda42[_0x25db52(0xc02)]===0x0)return;return _0x4cda42;})()),'date_picker_step':((()=>{const _0x21eaa6=_0x21be2c,_0x222556=this[_0x21eaa6(0xb45)](_0x4f0c26(_0x21eaa6(0xc7d)));return _0x222556&&_0x222556>0x1?_0x222556:void 0x0;})()),'tooltip_sync_group':_0x4f0c26(_0x21be2c(0xb60))||void 0x0,'zoom_sync_group':_0x4f0c26('zoom_sync_group')||void 0x0,'scroll_sync_group':_0x4f0c26('scroll_sync_group')||void 0x0,'align_header':_0x4f0c26(_0x21be2c(0x611))||void 0x0,'state_layout':_0x4f0c26(_0x21be2c(0xe23))||void 0x0,'group_by':_0x4f0c26('group_by')||void 0x0,'chart_mode':this[_0x21be2c(0x6fc)]||_0x4f0c26(_0x21be2c(0x815))||_0x21be2c(0x325),'chart_align':_0x4f0c26(_0x21be2c(0x238))||void 0x0,'entities':this[_0x21be2c(0x804)](this[_0x21be2c(0xfef)],!![]),'annotations':this[_0x21be2c(0x866)][_0x21be2c(0x163)]||this[_0x21be2c(0xfe9)][_0x21be2c(0x163)]||[],'auto_scale_rules':(_0x475110=>_0x475110[_0x21be2c(0xc02)]?_0x475110:void 0x0)((this[_0x21be2c(0x866)][_0x21be2c(0x8eb)]||this[_0x21be2c(0xfe9)]['auto_scale_rules']||[])[_0x21be2c(0x919)](_0x591747=>_0x591747&&typeof _0x591747===_0x21be2c(0xc18)&&isNum(toNum(_0x591747[_0x21be2c(0x50a)]))&&toNum(_0x591747[_0x21be2c(0x50a)])>0x0)['map'](_0xcf057d=>{const _0x25a253=_0x21be2c,_0x2a7a63={'up_to_hours':toNum(_0xcf057d[_0x25a253(0x50a)]),'group_by':_0xcf057d[_0x25a253(0x3b2)]||_0x25a253(0x2ab)},_0x33aeb3=toNum(_0xcf057d[_0x25a253(0x71e)]);if(isNum(_0x33aeb3)&&_0x33aeb3>0x0)_0x2a7a63['points_per_hour']=_0x33aeb3;if(typeof _0xcf057d[_0x25a253(0x1c9)]===_0x25a253(0xade)&&_0xcf057d[_0x25a253(0x1c9)][_0x25a253(0xa11)]())_0x2a7a63[_0x25a253(0x1c9)]=_0xcf057d[_0x25a253(0x1c9)][_0x25a253(0xa11)]();if(typeof _0xcf057d[_0x25a253(0x494)]===_0x25a253(0xade)&&_0xcf057d[_0x25a253(0x494)][_0x25a253(0xa11)]())_0x2a7a63[_0x25a253(0x494)]=_0xcf057d[_0x25a253(0x494)][_0x25a253(0xa11)]();if(typeof _0xcf057d[_0x25a253(0xf8f)]===_0x25a253(0xade)&&_0xcf057d[_0x25a253(0xf8f)][_0x25a253(0xa11)]())_0x2a7a63[_0x25a253(0xf8f)]=_0xcf057d[_0x25a253(0xf8f)][_0x25a253(0xa11)]();return _0x2a7a63;}))};for(const _0x2a892d of Object[_0x21be2c(0x3ab)](this[_0x21be2c(0xfe9)]))if(!(_0x2a892d in _0x3ac97a))_0x3ac97a[_0x2a892d]=this[_0x21be2c(0xfe9)][_0x2a892d];Object[_0x21be2c(0x3ab)](_0x3ac97a)[_0x21be2c(0xd27)](_0x5f21ba=>_0x3ac97a[_0x5f21ba]===void 0x0&&delete _0x3ac97a[_0x5f21ba]);const _0x1491dd=StatisticsGraphChartCard[_0x21be2c(0xc61)];for(const _0x179da6 of Object[_0x21be2c(0x3ab)](_0x3ac97a)){if(!(_0x179da6 in _0x1491dd))continue;if(_0x179da6==='height')continue;const _0x3e6253=_0x3ac97a[_0x179da6],_0x31a5fc=_0x1491dd[_0x179da6],_0x16f43d=(_0x3e6253===null||_0x3e6253===''||_0x3e6253===void 0x0)&&(_0x31a5fc===null||_0x31a5fc===''||_0x31a5fc===void 0x0),_0x3a2634=Array['isArray'](_0x3e6253)&&Array[_0x21be2c(0x902)](_0x31a5fc)&&!_0x3e6253[_0x21be2c(0xc02)]&&!_0x31a5fc[_0x21be2c(0xc02)];if(_0x16f43d||_0x3a2634||_0x3e6253===_0x31a5fc)delete _0x3ac97a[_0x179da6];}if(_0x3ac97a[_0x21be2c(0x95c)]===_0x21be2c(0x23b))for(const _0x506b67 of[_0x21be2c(0x598),_0x21be2c(0x633)]){const _0x29ce4c=this[_0x21be2c(0xb45)](_0x4f0c26(_0x506b67));if(_0x29ce4c!=null)_0x3ac97a[_0x506b67]=_0x29ce4c;}this[_0x21be2c(0x866)]=structuredClone(_0x3ac97a);const _0x3ea205=structuredClone(_0x3ac97a);_0x3ea205[_0x21be2c(0xd97)]=this['_sanitizeEntities'](this['_entities'],![]),JSON[_0x21be2c(0x403)](this[_0x21be2c(0xfe9)])!==JSON[_0x21be2c(0x403)](_0x3ea205)&&(this['_config']=structuredClone(_0x3ea205),this[_0x21be2c(0x5c9)](new CustomEvent(_0x21be2c(0xe74),{'detail':{'config':_0x3ea205},'bubbles':!![],'composed':!![]})));}[_0x46af5e(0x804)](_0x5ad4d2,_0x4c756d=![]){const _0x407a51=_0x46af5e,_0x1ad3d8=[],_0x4d0eb5=StatisticsGraphChartCard['getEntityStubConfig'](),_0x170b73=new Set([_0x407a51(0x974),_0x407a51(0xd53),_0x407a51(0xdee),_0x407a51(0xd95)]);for(const _0x16cb2c of _0x5ad4d2){if(!_0x16cb2c)continue;if(!_0x16cb2c[_0x407a51(0x974)]&&!_0x16cb2c[_0x407a51(0xd53)]&&!_0x4c756d)continue;const _0x1b18a1={..._0x16cb2c};[_0x407a51(0x4e0),'point_size',_0x407a51(0xbcf),'trend_period_hours','points_per_hour',_0x407a51(0xde5),_0x407a51(0x510),_0x407a51(0x18c)][_0x407a51(0xd27)](_0x4b65ab=>{if(_0x1b18a1[_0x4b65ab]!==void 0x0&&_0x1b18a1[_0x4b65ab]!==null&&_0x1b18a1[_0x4b65ab]!=='')_0x1b18a1[_0x4b65ab]=Number(_0x1b18a1[_0x4b65ab]);});_0x1b18a1[_0x407a51(0x8a5)]===''||_0x1b18a1['z_index']===null||Number(_0x1b18a1[_0x407a51(0x8a5)])===0x0||isNaN(Number(_0x1b18a1[_0x407a51(0x8a5)]))?delete _0x1b18a1[_0x407a51(0x8a5)]:_0x1b18a1['z_index']=Number(_0x1b18a1[_0x407a51(0x8a5)]);Object[_0x407a51(0x3ab)](_0x1b18a1)[_0x407a51(0xd27)](_0x4b362a=>_0x1b18a1[_0x4b362a]===''&&_0x4b362a!==_0x407a51(0x974)&&_0x4b362a!==_0x407a51(0xdee)?delete _0x1b18a1[_0x4b362a]:0x0),delete _0x1b18a1[_0x407a51(0x494)];if(_0x1b18a1['color_thresholds']){if(!Array[_0x407a51(0x902)](_0x1b18a1[_0x407a51(0xdd5)][_0x407a51(0x202)]))_0x1b18a1['color_thresholds'][_0x407a51(0x202)]=[];const _0x28d826=_0xa0254a=>typeof _0xa0254a==='string'&&(/^[a-z_]+\.[a-z0-9_]+/i[_0x407a51(0x920)](_0xa0254a)||_0xa0254a[_0x407a51(0xf06)]('{{'));_0x1b18a1['color_thresholds'][_0x407a51(0x202)]=_0x1b18a1[_0x407a51(0xdd5)][_0x407a51(0x202)][_0x407a51(0x919)](_0x87c7f0=>_0x87c7f0&&(_0x28d826(_0x87c7f0['value'])||!isNaN(parseFloat(_0x87c7f0[_0x407a51(0x2ea)]))))[_0x407a51(0xb3f)](_0x56e4d=>({'value':_0x28d826(_0x56e4d['value'])?_0x56e4d[_0x407a51(0x2ea)]:Number(_0x56e4d[_0x407a51(0x2ea)]),'color':_0x56e4d[_0x407a51(0xd95)]||_0x407a51(0x3e4)}));if(_0x1b18a1['color_thresholds']['transition']&&_0x1b18a1[_0x407a51(0xdd5)][_0x407a51(0x36b)]!==_0x407a51(0xe46));else delete _0x1b18a1['color_thresholds'][_0x407a51(0x36b)];if(!_0x1b18a1[_0x407a51(0xdd5)][_0x407a51(0x873)])delete _0x1b18a1['color_thresholds']['last_color'];}if(_0x1b18a1[_0x407a51(0xc80)]!==undefined){const _0x14f51d=_0x1b18a1[_0x407a51(0xc80)],_0x5c85cc=_0x1d2fb2=>{const _0x4dd671=_0x407a51;if(!_0x1d2fb2||typeof _0x1d2fb2!==_0x4dd671(0xc18))return null;const _0xc96feb={};for(const _0x3cc9dd of[_0x4dd671(0xe4c),_0x4dd671(0xd95),_0x4dd671(0x7a2),'line_width',_0x4dd671(0xad9),_0x4dd671(0x3ff),'show_in_legend',_0x4dd671(0xc8a),'hide_on_load',_0x4dd671(0xa72)]){if(_0x1d2fb2[_0x3cc9dd]!==undefined&&_0x1d2fb2[_0x3cc9dd]!==null&&_0x1d2fb2[_0x3cc9dd]!=='')_0xc96feb[_0x3cc9dd]=_0x1d2fb2[_0x3cc9dd];}if(_0x1d2fb2[_0x4dd671(0x3da)]&&_0x1d2fb2[_0x4dd671(0x3da)]!==_0x4dd671(0x2b5))_0xc96feb['line_style']=_0x1d2fb2[_0x4dd671(0x3da)];if(_0x1d2fb2[_0x4dd671(0xf2a)]==='sequential')_0xc96feb[_0x4dd671(0xf2a)]='sequential';const _0x208d23=parseInt(_0x1d2fb2['periods_back']);if(!isNaN(_0x208d23)&&_0x208d23>0x1)_0xc96feb[_0x4dd671(0xf4d)]=_0x208d23;return _0xc96feb;};if(!_0x14f51d)delete _0x1b18a1['compare'];else{if(Array[_0x407a51(0x902)](_0x14f51d)){const _0x35b2e5=_0x14f51d['filter'](Boolean)[_0x407a51(0xb3f)](_0x483e2d=>_0x483e2d&&typeof _0x483e2d==='object'?_0x483e2d:{'period':_0x483e2d===!![]?_0x407a51(0x612):String(_0x483e2d)})[_0x407a51(0xb3f)](_0x5c85cc);if(!_0x35b2e5[_0x407a51(0xc02)])delete _0x1b18a1['compare'];else{if(_0x35b2e5[_0x407a51(0xc02)]===0x1){const _0xf805c7=_0x35b2e5[0x0],_0xc3d94d=Object[_0x407a51(0x3ab)](_0xf805c7);if(!_0xc3d94d['length'])_0x1b18a1[_0x407a51(0xc80)]='previous_period';else{if(_0xc3d94d[_0x407a51(0xc02)]===0x1&&_0xf805c7[_0x407a51(0xe4c)])_0x1b18a1[_0x407a51(0xc80)]=_0xf805c7[_0x407a51(0xe4c)];else _0x1b18a1[_0x407a51(0xc80)]=_0xf805c7;}}else _0x1b18a1[_0x407a51(0xc80)]=_0x35b2e5;}}else{if(typeof _0x14f51d===_0x407a51(0xc18)){const _0x819e21=_0x5c85cc(_0x14f51d);if(!_0x819e21[_0x407a51(0xe4c)]&&Object[_0x407a51(0x3ab)](_0x819e21)[_0x407a51(0xc02)])_0x819e21[_0x407a51(0xe4c)]=_0x407a51(0x612);if(!_0x819e21[_0x407a51(0xe4c)])delete _0x1b18a1[_0x407a51(0xc80)];else{if(Object[_0x407a51(0x3ab)](_0x819e21)[_0x407a51(0xc02)]===0x1)_0x1b18a1[_0x407a51(0xc80)]=_0x819e21['period'];else _0x1b18a1[_0x407a51(0xc80)]=_0x819e21;}}}}}if(Array[_0x407a51(0x902)](_0x1b18a1[_0x407a51(0xdf3)])){_0x1b18a1['moving_averages']=_0x1b18a1['moving_averages']['filter'](_0x1cb34e=>_0x1cb34e&&!isNaN(parseInt(_0x1cb34e[_0x407a51(0xe4c)]))&&parseInt(_0x1cb34e['period'])>0x0)[_0x407a51(0xb3f)](_0x46a4a6=>{const _0x889123=_0x407a51,_0x42f185={'period':parseInt(_0x46a4a6[_0x889123(0xe4c)])};if(_0x46a4a6[_0x889123(0xd95)])_0x42f185[_0x889123(0xd95)]=_0x46a4a6['color'];if(_0x46a4a6['width']!=null&&_0x46a4a6[_0x889123(0x581)]!==''&&!isNaN(Number(_0x46a4a6[_0x889123(0x581)])))_0x42f185[_0x889123(0x581)]=Number(_0x46a4a6[_0x889123(0x581)]);if(_0x46a4a6[_0x889123(0x6ac)])_0x42f185[_0x889123(0x6ac)]=!![];return _0x42f185;});if(!_0x1b18a1['moving_averages'][_0x407a51(0xc02)])delete _0x1b18a1[_0x407a51(0xdf3)];}if(!_0x4c756d)for(const _0x48c8c7 of Object['keys'](_0x1b18a1)){if(_0x170b73['has'](_0x48c8c7))continue;if(!(_0x48c8c7 in _0x4d0eb5))continue;const _0xa212d3=_0x1b18a1[_0x48c8c7],_0xa9cee8=_0x4d0eb5[_0x48c8c7],_0x557eaa=(_0xa212d3===null||_0xa212d3===''||_0xa212d3===void 0x0)&&(_0xa9cee8===null||_0xa9cee8===''||_0xa9cee8===void 0x0);if(Array[_0x407a51(0x902)](_0xa212d3)&&Array['isArray'](_0xa9cee8)){if(JSON[_0x407a51(0x403)](_0xa212d3)===JSON[_0x407a51(0x403)](_0xa9cee8))delete _0x1b18a1[_0x48c8c7];continue;}if(_0x557eaa||_0xa212d3===_0xa9cee8)delete _0x1b18a1[_0x48c8c7];}_0x1ad3d8[_0x407a51(0xb31)](_0x1b18a1);}return _0x1ad3d8;}[_0x46af5e(0xb45)](_0x7a0d25){if(_0x7a0d25===void 0x0||_0x7a0d25===null||_0x7a0d25==='')return;const _0x49ec7d=Number(_0x7a0d25);return isNaN(_0x49ec7d)?void 0x0:_0x49ec7d;}[_0x46af5e(0xaa9)](){const _0x2b0e87=_0x46af5e,_0x226193=StatisticsGraphChartCard[_0x2b0e87(0x2df)],_0x35180e=this[_0x2b0e87(0xfef)]?.['length']||0x0;return{...StatisticsGraphChartCard[_0x2b0e87(0x1e3)](),'color':_0x226193[_0x35180e%_0x226193[_0x2b0e87(0xc02)]]};}[_0x46af5e(0x6f2)](_0x5e3caf,_0x5e42a0){const _0x51d087=_0x46af5e;return isEditorFieldRelevant(_0x51d087(0x974),_0x5e3caf,_0x5e42a0);}[_0x46af5e(0xd72)](_0x160f70,_0x539c82){const _0x1217a0=_0x46af5e;return isEditorFieldRelevant(_0x1217a0(0x1d2),_0x160f70,_0x539c82);}[_0x46af5e(0x9d1)](){const _0x314663=_0x46af5e,_0x86382d=this['shadowRoot'];if(!_0x86382d)return;const _0x51d529=this[_0x314663(0xfe9)]?.['chart_mode']||_0x314663(0x325),_0xf736b=_0x314663(0xb9f),_0x4386f1=_0x4ad1e4=>{const _0x1b8b3c=_0x314663,_0x213543=_0x4ad1e4[_0x1b8b3c(0x6c0)](_0x1b8b3c(0xb9e))||_0x4ad1e4;_0x213543[_0x1b8b3c(0x9a1)][_0x1b8b3c(0x982)](_0xf736b);};for(const _0x38600a of _0x86382d['querySelectorAll']('[id]')){if(!_0x38600a['id'])continue;const _0x2dd80b=_0x38600a['id'][_0x314663(0x5ef)](/(_pick|-picker)$/,'');if(!this[_0x314663(0xd72)](_0x2dd80b,_0x51d529))_0x4386f1(_0x38600a);}for(const _0xa15310 of _0x86382d['querySelectorAll'](_0x314663(0xa87))){for(const _0x1a6b96 of _0xa15310[_0x314663(0x9a1)]){if(_0x1a6b96[_0x314663(0xc02)]<0x3||_0x1a6b96[_0x314663(0x165)](0x0,0x2)!=='e-')continue;const _0x44267e=_0x1a6b96[_0x314663(0x165)](0x2)[_0x314663(0x5ef)](/(_pick|-picker)$/,'');if(!this[_0x314663(0x6f2)](_0x44267e,_0x51d529)){_0x4386f1(_0xa15310);break;}}}const _0x445e20='input,\x20select,\x20textarea,\x20button,\x20[class*=\x27-picker-wrap\x27],'+_0x314663(0xcbb),_0x40cb10=_0x361c34=>[..._0x361c34['querySelectorAll'](_0x445e20)][_0x314663(0x42a)](_0x5c51d0=>!_0x5c51d0[_0x314663(0x6c0)]('.'+_0xf736b)),_0x35e7b9=_0x5b238b=>{const _0x8e76cf=_0x314663;for(const _0x3ca4d6 of _0x86382d[_0x8e76cf(0xf98)](_0x5b238b)){if(_0x3ca4d6[_0x8e76cf(0x9a1)][_0x8e76cf(0x2a0)](_0xf736b))continue;if(!_0x40cb10(_0x3ca4d6))_0x3ca4d6[_0x8e76cf(0x9a1)][_0x8e76cf(0x982)](_0xf736b);}};_0x35e7b9(_0x314663(0x384)),_0x35e7b9(_0x314663(0xe0e));const _0x1a69e0=(_0x229b8b,_0xe43a90,_0x1108fc,_0x1823a7)=>{const _0xa45eae=_0x314663;let _0x3c5207=null,_0x27543e=![];const _0x224cfb=[..._0x229b8b['querySelectorAll']('['+_0xe43a90+']')];for(const _0x1667ac of _0x224cfb){const _0x43875c=_0x229b8b[_0xa45eae(0xee6)]('['+_0x1108fc+'=\x22'+_0x1667ac[_0xa45eae(0xffb)](_0xe43a90)+'\x22]');if(!_0x40cb10(_0x1667ac)){_0x1667ac['classList'][_0xa45eae(0x982)](_0xf736b);if(_0x43875c)_0x43875c[_0xa45eae(0x9a1)][_0xa45eae(0x982)](_0xf736b);continue;}if(!_0x3c5207)_0x3c5207={'pane':_0x1667ac,'btn':_0x43875c};if(_0x1667ac[_0xa45eae(0x9a1)]['contains'](_0xa45eae(0x5b3)))_0x27543e=!![];}if(!_0x27543e&&_0x3c5207){for(const _0x1233cf of _0x224cfb)_0x1233cf[_0xa45eae(0x9a1)][_0xa45eae(0x547)]('active');for(const _0x2310eb of _0x229b8b[_0xa45eae(0xf98)]('['+_0x1108fc+']'))_0x2310eb[_0xa45eae(0x9a1)][_0xa45eae(0x547)](_0xa45eae(0x5b3));_0x3c5207[_0xa45eae(0xfd2)][_0xa45eae(0x9a1)]['add'](_0xa45eae(0x5b3));if(_0x3c5207['btn'])_0x3c5207[_0xa45eae(0xacf)]['classList'][_0xa45eae(0x982)](_0xa45eae(0x5b3));_0x1823a7?.(_0x3c5207[_0xa45eae(0xfd2)][_0xa45eae(0xffb)](_0xe43a90));}};if(_0x51d529==='controller')for(const _0x9adb45 of[_0x314663(0xe1c),'[data-mtc=\x22xaxis\x22]','[data-mtc=\x22yaxis\x22]',_0x314663(0x4af)]){for(const _0x40cb48 of _0x86382d['querySelectorAll'](_0x9adb45))_0x40cb48[_0x314663(0x9a1)][_0x314663(0x982)](_0xf736b);}if(this[_0x314663(0x6fc)]){const _0x4671a0=_0x86382d[_0x314663(0xee6)](_0x314663(0x630))?.[_0x314663(0x6c0)](_0x314663(0x1af));if(_0x4671a0)_0x4671a0[_0x314663(0x9a1)][_0x314663(0x982)](_0xf736b);}_0x1a69e0(_0x86382d,'data-mtc',_0x314663(0x530),_0x2bb3bd=>{const _0x5019ff=_0x314663;this[_0x5019ff(0x3c7)]=_0x2bb3bd;});const _0x5c31f6=this['shadowRoot']?.[_0x314663(0xee6)](_0x314663(0x302));if(_0x5c31f6)_0x1a69e0(_0x5c31f6,_0x314663(0x24d),_0x314663(0x308),_0x1b8bb6=>{const _0x23f4a3=_0x314663;this[_0x23f4a3(0x8f8)]=_0x1b8bb6;});for(const _0x4ee557 of _0x86382d['querySelectorAll'](_0x314663(0x4fe))){const _0x1f01ab=parseInt(_0x4ee557['dataset'][_0x314663(0x4c3)],0xa);_0x1a69e0(_0x4ee557,_0x314663(0xd61),_0x314663(0x4ed),_0x33ef11=>{const _0x4e8c15=_0x314663;if(this['_activeTab']&&Number[_0x4e8c15(0xf0d)](_0x1f01ab))this[_0x4e8c15(0xf69)][_0x1f01ab]=_0x33ef11;});}this['_updateTabBadges']();if(this['_searchQ'])this['_applyEditorSearch']();}[_0x46af5e(0xc83)](){const _0x59b8e1=_0x46af5e;if(this[_0x59b8e1(0x94a)])return this[_0x59b8e1(0x94a)];const _0x5d0106=[_0x59b8e1(0x8d4),_0x59b8e1(0x9e5),_0x59b8e1(0x1fc),_0x59b8e1(0xa68),'purple',_0x59b8e1(0xf17),'indigo',_0x59b8e1(0x1031),_0x59b8e1(0x862),_0x59b8e1(0xb01),_0x59b8e1(0x6f8),_0x59b8e1(0xe03),'light-green',_0x59b8e1(0xfaf),_0x59b8e1(0xa03),_0x59b8e1(0xc36),_0x59b8e1(0xc9c),_0x59b8e1(0x506),_0x59b8e1(0xcac),_0x59b8e1(0xff9),_0x59b8e1(0xee0),_0x59b8e1(0x34e),'blue-grey',_0x59b8e1(0xb92),_0x59b8e1(0xe32)],_0x268e72={},_0x5178db={};try{const _0x3e22da=this[_0x59b8e1(0xbb2)]||document[_0x59b8e1(0x87f)],_0x2e37ea=document['createElement'](_0x59b8e1(0x7db));_0x2e37ea[_0x59b8e1(0x944)][_0x59b8e1(0x836)]=_0x59b8e1(0xfd5),_0x3e22da['appendChild'](_0x2e37ea);for(const _0x171bd6 of _0x5d0106){_0x2e37ea[_0x59b8e1(0x944)][_0x59b8e1(0xd95)]=_0x59b8e1(0x975),_0x2e37ea[_0x59b8e1(0x944)]['color']=_0x59b8e1(0x305)+_0x171bd6+_0x59b8e1(0x790);const _0x951fa=getComputedStyle(_0x2e37ea)['color']||'',_0xfa830e=_0x951fa['match'](/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);if(_0xfa830e){const _0x2e474f='#'+[_0xfa830e[0x1],_0xfa830e[0x2],_0xfa830e[0x3]][_0x59b8e1(0xb3f)](_0x8ee259=>(+_0x8ee259)[_0x59b8e1(0x8f1)](0x10)[_0x59b8e1(0x470)](0x2,'0'))[_0x59b8e1(0x888)]('');if(_0x2e474f===_0x59b8e1(0x975))continue;_0x268e72[_0x171bd6]=_0x2e474f;if(!(_0x2e474f in _0x5178db))_0x5178db[_0x2e474f]=_0x171bd6;}}_0x2e37ea['remove']();}catch(_0x2f0a1f){}return this['_haCMap']={'n2h':_0x268e72,'h2n':_0x5178db},this[_0x59b8e1(0x94a)];}['_coerceColor'](_0x5cb1cb){const _0x46bc36=_0x46af5e;if(!_0x5cb1cb)return _0x46bc36(0x44d);if(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i[_0x46bc36(0x920)](_0x5cb1cb))return _0x5cb1cb;const _0x142dc4=String(_0x5cb1cb)[_0x46bc36(0x727)](/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(_0x142dc4)return'#'+[_0x142dc4[0x1],_0x142dc4[0x2],_0x142dc4[0x3]][_0x46bc36(0xb3f)](_0x2da1f6=>parseInt(_0x2da1f6)[_0x46bc36(0x8f1)](0x10)[_0x46bc36(0x470)](0x2,'0'))['join']('');return _0x46bc36(0x44d);}[_0x46af5e(0x5a0)](_0x20c318,_0x4efe7b){let _0x168a11;return(..._0x52872e)=>{clearTimeout(_0x168a11),_0x168a11=setTimeout(()=>_0x20c318(..._0x52872e),_0x4efe7b);};}[_0x46af5e(0xa15)](_0x5eb4e6){const _0x5d0509=_0x46af5e;if(!_0x5eb4e6)return'';let _0x24aea9='';for(;_0x5eb4e6&&_0x5eb4e6!==this[_0x5d0509(0xbb2)];_0x5eb4e6=_0x5eb4e6[_0x5d0509(0xac2)]){let _0xb66b0b=_0x5eb4e6[_0x5d0509(0x9eb)]['toLowerCase']();if(_0x5eb4e6['id'])_0xb66b0b+='#'+_0x5eb4e6['id'];if(_0x5eb4e6[_0x5d0509(0x9a1)][_0x5d0509(0xc02)])_0xb66b0b+='.'+[..._0x5eb4e6['classList']]['join']('.');if(_0x5eb4e6['dataset']){if(_0x5eb4e6[_0x5d0509(0x8f6)][_0x5d0509(0x4c3)]!==undefined)_0xb66b0b+=_0x5d0509(0xa0f)+_0x5eb4e6[_0x5d0509(0x8f6)][_0x5d0509(0x4c3)]+'\x22]';else{if(_0x5eb4e6[_0x5d0509(0x8f6)][_0x5d0509(0xe36)]!==undefined)_0xb66b0b+=_0x5d0509(0x35d)+_0x5eb4e6[_0x5d0509(0x8f6)][_0x5d0509(0xe36)]+'\x22]';}}_0x24aea9=_0xb66b0b+(_0x24aea9?_0x5d0509(0x9cb)+_0x24aea9:'');}return _0x24aea9;}[_0x46af5e(0x102e)](){return this['_config'];}}!customElements[_0x46af5e(0xc3f)](_0x46af5e(0xc58))&&customElements['define'](_0x46af5e(0xc58),StatisticsGraphChartCard);class StatisticsGraphChartController extends StatisticsGraphChartCard{static[_0x46af5e(0x4ae)](){const _0x1f1120=_0x46af5e;return{'chart_mode':_0x1f1120(0x8fe),'sync_group':_0x1f1120(0x16a)};}static async[_0x46af5e(0x970)](){const _0x85f02c=_0x46af5e,_0x52e5ff=document[_0x85f02c(0xbde)](_0x85f02c(0xb29));return _0x52e5ff[_0x85f02c(0x6fc)]=_0x85f02c(0x8fe),_0x52e5ff;}['setConfig'](_0x283e23){const _0x3c79f2=_0x46af5e;super[_0x3c79f2(0x227)](Object[_0x3c79f2(0xb67)]({},_0x283e23||{},{'chart_mode':_0x3c79f2(0x8fe)}));}}!customElements[_0x46af5e(0xc3f)]('statistics-graph-chart-controller')&&customElements[_0x46af5e(0x8fa)]('statistics-graph-chart-controller',StatisticsGraphChartController);!customElements[_0x46af5e(0xc3f)](_0x46af5e(0xb29))&&customElements[_0x46af5e(0x8fa)](_0x46af5e(0xb29),StatisticsGraphChartCardEditor);window[_0x46af5e(0x63d)]=window['customCards']||[],window[_0x46af5e(0x63d)][_0x46af5e(0xb31)]({'type':_0x46af5e(0xc58),'name':'Statistics\x20Graph\x20Chart\x20Card','description':'The\x20Best\x20graph\x20chart\x20card\x20for\x20HA\x20entities\x20and\x20long-term\x20statistics','preview':!![],'documentationURL':_0x46af5e(0xeb2)}),window[_0x46af5e(0x63d)][_0x46af5e(0xb31)]({'type':_0x46af5e(0xf77),'name':_0x46af5e(0x2b4),'description':_0x46af5e(0xad8),'preview':!![],'documentationURL':_0x46af5e(0xeb2)}),console[_0x46af5e(0xe7b)]('%c\x20STATISTICS-GRAPH-CHART-CARD\x20%c\x20'+VERSION+'\x20',_0x46af5e(0xa31),_0x46af5e(0xa1d));