iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
2 lines • 32.7 kB
JavaScript
/*! For license information please see 86201.50a88eac3c7a55e5.js.LICENSE.txt */
(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[86201],{29079:function(e,a,n){e.exports=n(81267)},16629:function(e,a,n){"use strict";n.d(a,{E7:function(){return M},Mn:function(){return t},P9:function(){return s},lf:function(){return l}});n(18111),n(61701),n(62953);var i=n(63004);const t=e=>{const a=e/100;return[Math.round(r(a)),Math.round(o(a)),Math.round(u(a))]},r=e=>{if(e<=66)return 255;const a=329.698727446*(e-60)**-.1332047592;return(0,i.q)(a,0,255)},o=e=>{let a;return a=e<=66?99.4708025861*Math.log(e)-161.1195681661:288.1221695283*(e-60)**-.0755148492,(0,i.q)(a,0,255)},u=e=>{if(e>=66)return 255;if(e<=19)return 0;const a=138.5177312231*Math.log(e-10)-305.0447927307;return(0,i.q)(a,0,255)},c=(e,a)=>{const n=Math.max(...e),i=Math.max(...a);let t;return t=0===i?0:n/i,a.map(e=>Math.round(e*t))},s=e=>0===e?1e6:Math.floor(1e6/e),m=e=>0===e?1e6:Math.floor(1e6/e),l=(e,a,n)=>{const[i,r,o,u,l]=e,M=m(null!=a?a:2700),T=m(null!=n?n:6500),f=M-T;let d;try{d=l/(u+l)}catch(C){d=.5}const G=T+d*f,A=G?s(G):0,[h,g,_]=t(A),y=Math.max(u,l)/255;return c([i,r,o,u,l],[i+h*y,r+g*y,o+_*y])},M=e=>{const[a,n,i,t]=e;return c([a,n,i,t],[a+t,n+t,i+t])}},80785:function(e,a,n){"use strict";function i(e){return!!e&&(e instanceof Date&&!isNaN(e.valueOf()))}n.d(a,{A:function(){return i}})},72487:function(e,a,n){"use strict";n.a(e,async function(e,i){try{n.d(a,{CA:function(){return v},Mi:function(){return b},Pm:function(){return p},Wq:function(){return g},Yq:function(){return s},bl:function(){return S},c2:function(){return y},fr:function(){return A},gu:function(){return E},kz:function(){return l},m9:function(){return I},sl:function(){return d},ur:function(){return D},zB:function(){return T}});n(18111),n(20116);var t=n(74487),r=n(22786),o=n(46927),u=n(8480),c=e([t,u]);[t,u]=c.then?(await c)():c;(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"long",month:"long",day:"numeric",timeZone:(0,u.wj)(e.time_zone,a)}));const s=(e,a,n)=>m(a,n.time_zone).format(e),m=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),l=(e,a,n)=>M(a,n.time_zone).format(e),M=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),T=(e,a,n)=>{var i,t,r,u;const c=f(a,n.time_zone);if(a.date_format===o.ow.language||a.date_format===o.ow.system)return c.format(e);const s=c.formatToParts(e),m=null===(i=s.find(e=>"literal"===e.type))||void 0===i?void 0:i.value,l=null===(t=s.find(e=>"day"===e.type))||void 0===t?void 0:t.value,M=null===(r=s.find(e=>"month"===e.type))||void 0===r?void 0:r.value,T=null===(u=s.find(e=>"year"===e.type))||void 0===u?void 0:u.value,d=s[s.length-1];let G="literal"===(null==d?void 0:d.type)?null==d?void 0:d.value:"";"bg"===a.language&&a.date_format===o.ow.YMD&&(G="");return{[o.ow.DMY]:`${l}${m}${M}${m}${T}${G}`,[o.ow.MDY]:`${M}${m}${l}${m}${T}${G}`,[o.ow.YMD]:`${T}${m}${M}${m}${l}${G}`}[a.date_format]},f=(0,r.A)((e,a)=>{const n=e.date_format===o.ow.system?void 0:e.language;return e.date_format===o.ow.language||(e.date_format,o.ow.system),new Intl.DateTimeFormat(n,{year:"numeric",month:"numeric",day:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})}),d=(e,a,n)=>G(a,n.time_zone).format(e),G=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{day:"numeric",month:"short",timeZone:(0,u.wj)(e.time_zone,a)})),A=(e,a,n)=>h(a,n.time_zone).format(e),h=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{month:"long",year:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),g=(e,a,n)=>_(a,n.time_zone).format(e),_=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{month:"long",timeZone:(0,u.wj)(e.time_zone,a)})),y=(e,a,n)=>C(a,n.time_zone).format(e),C=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{month:"short",timeZone:(0,u.wj)(e.time_zone,a)})),p=(e,a,n)=>L(a,n.time_zone).format(e),L=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),v=(e,a,n)=>w(a,n.time_zone).format(e),w=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"long",timeZone:(0,u.wj)(e.time_zone,a)})),E=(e,a,n)=>P(a,n.time_zone).format(e),P=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"short",timeZone:(0,u.wj)(e.time_zone,a)})),b=(e,a,n)=>k(a,n.time_zone).format(e),k=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),D=(e,a,n)=>z(a,n.time_zone).format(e),z=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:(0,u.wj)(e.time_zone,a)})),S=(e,a,n)=>{const i=(0,u.wj)(a.time_zone,n.time_zone);return new Intl.DateTimeFormat("en-CA",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:i}).format(e)},I=(e,a,n,i)=>`${S(e,n,i)}/${S(a,n,i)}`;i()}catch(s){i(s)}})},95747:function(e,a,n){"use strict";n.a(e,async function(e,i){try{n.d(a,{CL:function(){return g},GH:function(){return C},Rl:function(){return T},ZS:function(){return A},aQ:function(){return d},r6:function(){return l},yg:function(){return _}});var t=n(74487),r=n(22786),o=n(72487),u=n(30162),c=n(8480),s=n(69543),m=e([t,c,o,u]);[t,c,o,u]=m.then?(await m)():m;const l=(e,a,n)=>M(a,n.time_zone).format(e),M=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,c.wj)(e.time_zone,a)})),T=e=>f().format(e),f=(0,r.A)(()=>new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})),d=(e,a,n)=>G(a,n.time_zone).format(e),G=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"short",day:"numeric",hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,c.wj)(e.time_zone,a)})),A=(e,a,n)=>h(a,n.time_zone).format(e),h=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{month:"short",day:"numeric",hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,c.wj)(e.time_zone,a)})),g=(e,a,n)=>(new Date).getFullYear()===e.getFullYear()?A(e,a,n):d(e,a,n),_=(e,a,n)=>y(a,n.time_zone).format(e),y=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric",hour:(0,s.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,s.J)(e)?"h12":"h23",timeZone:(0,c.wj)(e.time_zone,a)})),C=(e,a,n)=>`${(0,o.zB)(e,a,n)}, ${(0,u.fU)(e,a,n)}`;i()}catch(l){i(l)}})},30162:function(e,a,n){"use strict";n.a(e,async function(e,i){try{n.d(a,{LW:function(){return d},Xs:function(){return T},fU:function(){return s},ie:function(){return l}});var t=n(74487),r=n(22786),o=n(8480),u=n(69543),c=e([t,o]);[t,o]=c.then?(await c)():c;const s=(e,a,n)=>m(a,n.time_zone).format(e),m=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{hour:"numeric",minute:"2-digit",hourCycle:(0,u.J)(e)?"h12":"h23",timeZone:(0,o.wj)(e.time_zone,a)})),l=(e,a,n)=>M(a,n.time_zone).format(e),M=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{hour:(0,u.J)(e)?"numeric":"2-digit",minute:"2-digit",second:"2-digit",hourCycle:(0,u.J)(e)?"h12":"h23",timeZone:(0,o.wj)(e.time_zone,a)})),T=(e,a,n)=>f(a,n.time_zone).format(e),f=(0,r.A)((e,a)=>new Intl.DateTimeFormat(e.language,{weekday:"long",hour:(0,u.J)(e)?"numeric":"2-digit",minute:"2-digit",hourCycle:(0,u.J)(e)?"h12":"h23",timeZone:(0,o.wj)(e.time_zone,a)})),d=(e,a,n)=>G(a,n.time_zone).format(e),G=(0,r.A)((e,a)=>new Intl.DateTimeFormat("en-GB",{hour:"numeric",minute:"2-digit",hour12:!1,timeZone:(0,o.wj)(e.time_zone,a)}));i()}catch(s){i(s)}})},8480:function(e,a,n){"use strict";n.a(e,async function(e,i){try{n.d(a,{fL:function(){return T},n2:function(){return f},wj:function(){return d}});var t,r,o,u=n(74487),c=n(29079),s=n(46927),m=e([u]);u=(m.then?(await m)():m)[0];const l=null===(t=Intl.DateTimeFormat)||void 0===t||null===(r=(o=t.call(Intl)).resolvedOptions)||void 0===r?void 0:r.call(o).timeZone,M=l&&("UTC"===l||"Etc/UTC"===l||l in c)?l:void 0,T=14881==n.j?void 0!==M:null,f=null!=M?M:"UTC",d=(e,a)=>e===s.Wj.local&&M?f:a;i()}catch(l){i(l)}})},69543:function(e,a,n){"use strict";n.d(a,{J:function(){return r}});n(74423);var i=n(22786),t=n(46927);const r=(0,i.A)(e=>{if(e.time_format===t.Hg.language||e.time_format===t.Hg.system){const a=e.time_format===t.Hg.language?e.language:void 0;return new Date("January 1, 2023 22:00:00").toLocaleString(a).includes("10")}return e.time_format===t.Hg.am_pm})},69093:function(e,a,n){"use strict";n.d(a,{t:function(){return t}});var i=n(71727);const t=e=>(0,i.m)(e.entity_id)},4423:function(e,a,n){"use strict";n.d(a,{B:function(){return c},r:function(){return u}});n(44114),n(18111),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(62953);var i=n(44537),t=n(71727),r=n(28455);const o=e=>{if(void 0!==e)return null===e?new Set([null]):new Set((0,i.e)(e))},u=(e,a)=>{const n=a.domain?new Set((0,i.e)(a.domain)):void 0,u=a.hidden_domains?new Set((0,i.e)(a.hidden_domains)):void 0,c=a.device_class?new Set((0,i.e)(a.device_class)):void 0,s=o(a.floor),m=o(a.area),l=o(a.device),M=a.entity_category?new Set((0,i.e)(a.entity_category)):void 0,T=a.label?new Set((0,i.e)(a.label)):void 0,f=a.hidden_platform?new Set((0,i.e)(a.hidden_platform)):void 0;return a=>{const i=e.states[a];if(!i)return!1;if(n||u){const e=(0,t.m)(a);if(n&&!n.has(e))return!1;if(u&&u.has(e))return!1}if(c){const e=i.attributes.device_class||"none";if(!c.has(e))return!1}const{area:o,floor:d,device:G,entity:A}=(0,r.ln)(i,e.entities,e.devices,e.areas,e.floors);if(A&&A.hidden)return!1;if(s){var h;const e=null!==(h=null==d?void 0:d.floor_id)&&void 0!==h?h:null;if(!s.has(e))return!1}if(m){var g;const e=null!==(g=null==o?void 0:o.area_id)&&void 0!==g?g:null;if(!m.has(e))return!1}if(l){var _;const e=null!==(_=null==G?void 0:G.id)&&void 0!==_?_:null;if(!l.has(e))return!1}if(T){if(!A)return!1;if(!A.labels.some(e=>T.has(e)))return!1}if(M){const e=(null==A?void 0:A.entity_category)||"none";if(!M.has(e))return!1}if(f){if(!A)return!1;if(A.platform&&f.has(A.platform))return!1}return!0}},c=(e,a)=>{const n=new Set,i=[];for(const t of a)for(const a of e)t(a)&&!n.has(a)&&(n.add(a),i.push(a));return i}},82286:function(e,a,n){"use strict";n.d(a,{$:function(){return i}});const i=(e,a)=>t(e.attributes,a),t=(e,a)=>0!==(e.supported_features&a)},52943:function(e,a,n){"use strict";n.d(a,{Z:function(){return i}});const i=e=>e.charAt(0).toUpperCase()+e.slice(1)},22682:function(e,a,n){"use strict";n.d(a,{$:function(){return o}});n(84864),n(57465),n(27495);const i="^\\d{4}-(0[1-9]|1[0-2])-([12]\\d|0[1-9]|3[01])",t=new RegExp(i+"$"),r=new RegExp(i),o=(e,a=!1)=>a?r.test(e):t.test(e)},6940:function(e,a,n){"use strict";n.d(a,{F:function(){return t}});n(27495);const i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])[T| ](((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)(\8[0-5]\d([.,]\d+)?)?([zZ]|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)$/,t=e=>i.test(e)},38279:function(e,a,n){"use strict";n.d(a,{$2:function(){return i},VV:function(){return r},on:function(){return c},sx:function(){return o}});n(72712);var i=function(e){return e[e.TARGET_TEMPERATURE=1]="TARGET_TEMPERATURE",e[e.TARGET_TEMPERATURE_RANGE=2]="TARGET_TEMPERATURE_RANGE",e[e.TARGET_HUMIDITY=4]="TARGET_HUMIDITY",e[e.FAN_MODE=8]="FAN_MODE",e[e.PRESET_MODE=16]="PRESET_MODE",e[e.SWING_MODE=32]="SWING_MODE",e[e.AUX_HEAT=64]="AUX_HEAT",e[e.TURN_OFF=128]="TURN_OFF",e[e.TURN_ON=256]="TURN_ON",e[e.SWING_HORIZONTAL_MODE=512]="SWING_HORIZONTAL_MODE",e}({});const t=["auto","heat_cool","heat","cool","dry","fan_only","off"].reduce((e,a,n)=>(e[a]=n,e),{}),r=(e,a)=>t[e]-t[a],o={cooling:"cool",defrosting:"heat",drying:"dry",fan:"fan_only",heating:"heat",idle:"off",off:"off",preheating:"heat"},u={cool:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z",dry:"M12,3.25C12,3.25 6,10 6,14C6,17.32 8.69,20 12,20A6,6 0 0,0 18,14C18,10 12,3.25 12,3.25M14.47,9.97L15.53,11.03L9.53,17.03L8.47,15.97M9.75,10A1.25,1.25 0 0,1 11,11.25A1.25,1.25 0 0,1 9.75,12.5A1.25,1.25 0 0,1 8.5,11.25A1.25,1.25 0 0,1 9.75,10M14.25,14.5A1.25,1.25 0 0,1 15.5,15.75A1.25,1.25 0 0,1 14.25,17A1.25,1.25 0 0,1 13,15.75A1.25,1.25 0 0,1 14.25,14.5Z",fan_only:"M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",auto:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22C12.4 22 12.7 22 13.1 21.9L15.4 15.3L14.8 14.7C15.5 14 16 13 16 11.9C16 11.2 15.8 10.5 15.4 9.9L17.6 7.7C18.5 9 19 10.4 19 12H20C20.3 12 20.6 12.1 20.8 12.2C20.8 12.2 20.9 12.2 20.9 12.3C21.3 12.5 21.7 12.9 21.9 13.4C22 12.9 22 12.5 22 12C22 6.5 17.5 2 12 2M14 8.6C13.4 8.2 12.7 8 12 8C9.8 8 8 9.8 8 12C8 13.1 8.4 14.1 9.2 14.8L7.1 16.9C5.8 15.7 5 13.9 5 12C5 8.1 8.1 5 12 5C13.6 5 15 5.5 16.2 6.4L14 8.6M20 14H18L14.8 23H16.7L17.4 21H20.6L21.3 23H23.2L20 14M17.8 19.7L19 16L20.2 19.7H17.8Z",heat:"M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",off:"M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",heat_cool:"M12.92 1.58L11.18 2.58L12.39 4.67L11.8 6.85L9 7.6L7.38 6L7.42 3.59L5.43 3.59L5.43 5.42L3.59 5.42L3.6 7.42L6 7.42L7.65 9.03L6.9 11.82L4.68 12.4L2.59 11.2L1.59 12.93L3.17 13.84L2.26 15.42L4 16.42L5.19 14.33L7.42 13.75L7.92 14.26L9.32 12.86L8.78 12.32L9.53 9.54L12.32 8.78L12.85 9.32L14.26 7.91L13.73 7.37L14.32 5.19L16.41 4L15.41 2.25L13.83 3.16L12.92 1.58M20.72 4L4 20.72L5.27 22L10.16 17.11C10.63 17.43 11.15 17.68 11.71 17.83C14.38 18.55 17.12 16.96 17.83 14.29C18.22 12.86 17.93 11.36 17.11 10.16L22 5.27L20.72 4M18.74 9C19.18 9.63 19.53 10.38 19.75 11.19C19.97 12 20.03 12.81 19.96 13.61L22.65 10.41L18.74 9M19.32 15.95C19 16.67 18.5 17.35 17.93 17.94C17.34 18.53 16.66 19 15.96 19.34L20.05 20.06L19.32 15.95M9 18.71L10.41 22.66L13.59 19.95C12.81 20 12 19.97 11.19 19.76C10.36 19.54 9.62 19.17 9 18.71Z"},c=e=>u[e]||"M16.95,16.95L14.83,14.83C15.55,14.1 16,13.1 16,12C16,11.26 15.79,10.57 15.43,10L17.6,7.81C18.5,9 19,10.43 19,12C19,13.93 18.22,15.68 16.95,16.95M12,5C13.57,5 15,5.5 16.19,6.4L14,8.56C13.43,8.21 12.74,8 12,8A4,4 0 0,0 8,12C8,13.1 8.45,14.1 9.17,14.83L7.05,16.95C5.78,15.68 5,13.93 5,12A7,7 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"},48927:function(e,a,n){"use strict";n.d(a,{H:function(){return t}});n(3362),n(62953);var i=n(1087);const t=(e,a)=>new Promise(t=>{const r=a.cancel,o=a.submit;(0,i.r)(e,"show-dialog",{dialogTag:"dialog-enter-code",dialogImport:()=>n.e(29130).then(n.bind(n,24561)),dialogParams:Object.assign(Object.assign({},a),{},{cancel:()=>{t(null),r&&r()},submit:e=>{t(e),o&&o(e)}})})})},67293:function(e,a,n){"use strict";n.a(e,async function(e,i){try{n.r(a),n.d(a,{HomeDashboardStrategy:function(){return m}});n(18111),n(61701),n(3362),n(62953);var t=n(40445),r=n(58888),o=n(5124),u=n(67576),c=n(8537),s=e([c]);c=(s.then?(await s)():s)[0];class m extends o.mN{static async generate(e,a){if(a.config.state===r.m2)return{views:[{type:"sections",sections:[{cards:[{type:"starting"}]}]}]};if(a.config.recovery_mode)return{views:[{type:"sections",sections:[{cards:[{type:"recovery-mode"}]}]}]};const n=Object.values(a.areas).map(a=>{const n=`areas-${a.area_id}`;return{title:a.name,path:n,subview:!0,strategy:{type:"home-area",area:a.area_id,home_panel:e.home_panel}}}),i={title:(0,c.rh)(a.localize,"media_players"),path:"media-players",subview:!0,strategy:{type:"home-media-players"},icon:c.It.media_players},t={title:a.localize("ui.panel.lovelace.strategy.home.devices"),path:"other-devices",subview:!0,strategy:{type:"home-other-devices",home_panel:e.home_panel},icon:"mdi:devices"};return{views:[{icon:"mdi:home",path:"overview",strategy:{type:"home-overview",favorite_entities:e.favorite_entities,home_panel:e.home_panel,hide_welcome_message:e.hide_welcome_message,hide_suggested_entities:e.hide_suggested_entities,shortcuts:e.shortcuts}},...n,i,t]}}static async getConfigElement(){return await Promise.all([n.e(92769),n.e(3283),n.e(66333),n.e(26092),n.e(39005),n.e(8851),n.e(1535),n.e(3146)]).then(n.bind(n,75796)),document.createElement("hui-home-dashboard-strategy-editor")}}m=(0,t.Cg)([(0,u.EM)("home-dashboard-strategy")],m),i()}catch(m){i(m)}})},53921:function(e,a,n){"use strict";var i=n(46518),t=n(72652),r=n(97040);i({target:"Object",stat:!0},{fromEntries:function(e){var a={};return t(e,function(e,n){r(a,e,n)},{AS_ENTRIES:!0}),a}})},84700:function(e,a,n){"use strict";if(n.d(a,{Z1:function(){return r},cb:function(){return c},nP:function(){return t},wz:function(){return u},zj:function(){return o}}),66649!=n.j)var i=n(11226);const t=e=>e.sendMessagePromise(i.xP()),r=e=>e.sendMessagePromise(i.$p()),o=e=>e.sendMessagePromise(i.$W()),u=e=>e.sendMessagePromise(i.kQ()),c=(e,a,n,t,r,o)=>e.sendMessagePromise(i.cb(a,n,t,r,o))},58888:function(e,a,n){"use strict";n.d(a,{JW:function(){return c},St:function(){return l},Xo:function(){return m},m2:function(){return s}});n(18111),n(7588),n(3362),n(62953);if(66649!=n.j)var i=n(90889);if(66649!=n.j)var t=n(84700);function r(e,a){return void 0===e?null:{components:e.components.concat(a.data.component)}}const o=e=>(0,t.zj)(e),u=(e,a)=>Promise.all([e.subscribeEvents(a.action(r),"component_loaded"),e.subscribeEvents(()=>o(e).then(e=>a.setState(e,!0)),"core_config_updated")]).then(e=>()=>e.forEach(e=>e())),c=(e,a)=>(e=>(0,i.X)(e,"_cnf",o,u))(e).subscribe(a),s="NOT_RUNNING",m="STARTING",l="RUNNING"},11226:function(e,a,n){"use strict";function i(e){return{type:"auth",access_token:e}}function t(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function r(){return{type:"get_states"}}function o(){return{type:"get_config"}}function u(){return{type:"get_services"}}function c(){return{type:"auth/current_user"}}function s(e,a,n,i,t){const r={type:"call_service",domain:e,service:a,target:i,return_response:t};return n&&(r.service_data=n),r}function m(e){const a={type:"subscribe_events"};return e&&(a.event_type=e),a}function l(e){return{type:"unsubscribe_events",subscription:e}}function M(){return{type:"ping"}}function T(e,a){return{type:"result",success:!1,error:{code:e,message:a}}}n.d(a,{$W:function(){return o},$p:function(){return u},B1:function(){return l},cb:function(){return s},gQ:function(){return t},hU:function(){return M},j2:function(){return i},kQ:function(){return c},ku:function(){return m},xP:function(){return r},z3:function(){return T}})},75751:function(e,a,n){"use strict";n.d(a,{u:function(){return u}});n(16280),n(45367),n(92731),n(62953);var i=n(5055),t=n(42017),r=n(63937);const o=(e,a,n)=>{const i=new Map;for(let t=a;t<=n;t++)i.set(e[t],t);return i},u=(0,t.u$)(class extends t.WL{dt(e,a,n){let i;void 0===n?n=a:void 0!==a&&(i=a);const t=[],r=[];let o=0;for(const u of e)t[o]=i?i(u,o):o,r[o]=n(u,o),o++;return{values:r,keys:t}}render(e,a,n){return this.dt(e,a,n).values}update(e,[a,n,t]){var u;const c=(0,r.cN)(e),{values:s,keys:m}=this.dt(a,n,t);if(!Array.isArray(c))return this.ut=m,s;const l=null!==(u=this.ut)&&void 0!==u?u:this.ut=[],M=[];let T,f,d=0,G=c.length-1,A=0,h=s.length-1;for(;d<=G&&A<=h;)if(null===c[d])d++;else if(null===c[G])G--;else if(l[d]===m[A])M[A]=(0,r.lx)(c[d],s[A]),d++,A++;else if(l[G]===m[h])M[h]=(0,r.lx)(c[G],s[h]),G--,h--;else if(l[d]===m[h])M[h]=(0,r.lx)(c[d],s[h]),(0,r.Dx)(e,M[h+1],c[d]),d++,h--;else if(l[G]===m[A])M[A]=(0,r.lx)(c[G],s[A]),(0,r.Dx)(e,c[d],c[G]),G--,A++;else if(void 0===T&&(T=o(m,A,h),f=o(l,d,G)),T.has(l[d]))if(T.has(l[G])){const a=f.get(m[A]),n=void 0!==a?c[a]:null;if(null===n){const a=(0,r.Dx)(e,c[d]);(0,r.lx)(a,s[A]),M[A]=a}else M[A]=(0,r.lx)(n,s[A]),(0,r.Dx)(e,c[d],n),c[a]=null;A++}else(0,r.KO)(c[G]),G--;else(0,r.KO)(c[d]),d++;for(;A<=h;){const a=(0,r.Dx)(e,M[h+1]);(0,r.lx)(a,s[A]),M[A++]=a}for(;d<=G;){const e=c[d++];null!==e&&(0,r.KO)(e)}return this.ut=m,(0,r.mY)(e,M),i.c0}constructor(e){if(super(e),e.type!==t.OA.CHILD)throw Error("repeat() can only be used in text expressions")}})},81267:function(e){"use strict";e.exports=JSON.parse('{"Pacific/Niue":"(GMT-11:00) Niue","Pacific/Pago_Pago":"(GMT-11:00) Pago Pago","Pacific/Honolulu":"(GMT-10:00) Hawaii Time","Pacific/Rarotonga":"(GMT-10:00) Rarotonga","Pacific/Tahiti":"(GMT-10:00) Tahiti","Pacific/Marquesas":"(GMT-09:30) Marquesas","America/Anchorage":"(GMT-09:00) Alaska Time","Pacific/Gambier":"(GMT-09:00) Gambier","America/Los_Angeles":"(GMT-08:00) Pacific Time","America/Tijuana":"(GMT-08:00) Pacific Time - Tijuana","America/Vancouver":"(GMT-08:00) Pacific Time - Vancouver","America/Whitehorse":"(GMT-08:00) Pacific Time - Whitehorse","Pacific/Pitcairn":"(GMT-08:00) Pitcairn","America/Dawson_Creek":"(GMT-07:00) Mountain Time - Dawson Creek","America/Denver":"(GMT-07:00) Mountain Time","America/Edmonton":"(GMT-07:00) Mountain Time - Edmonton","America/Hermosillo":"(GMT-07:00) Mountain Time - Hermosillo","America/Mazatlan":"(GMT-07:00) Mountain Time - Chihuahua, Mazatlan","America/Phoenix":"(GMT-07:00) Mountain Time - Arizona","America/Yellowknife":"(GMT-07:00) Mountain Time - Yellowknife","America/Belize":"(GMT-06:00) Belize","America/Chicago":"(GMT-06:00) Central Time","America/Costa_Rica":"(GMT-06:00) Costa Rica","America/El_Salvador":"(GMT-06:00) El Salvador","America/Guatemala":"(GMT-06:00) Guatemala","America/Managua":"(GMT-06:00) Managua","America/Mexico_City":"(GMT-06:00) Central Time - Mexico City","America/Regina":"(GMT-06:00) Central Time - Regina","America/Tegucigalpa":"(GMT-06:00) Central Time - Tegucigalpa","America/Winnipeg":"(GMT-06:00) Central Time - Winnipeg","Pacific/Galapagos":"(GMT-06:00) Galapagos","America/Bogota":"(GMT-05:00) Bogota","America/Cancun":"(GMT-05:00) America Cancun","America/Cayman":"(GMT-05:00) Cayman","America/Guayaquil":"(GMT-05:00) Guayaquil","America/Havana":"(GMT-05:00) Havana","America/Iqaluit":"(GMT-05:00) Eastern Time - Iqaluit","America/Jamaica":"(GMT-05:00) Jamaica","America/Lima":"(GMT-05:00) Lima","America/Nassau":"(GMT-05:00) Nassau","America/New_York":"(GMT-05:00) Eastern Time","America/Panama":"(GMT-05:00) Panama","America/Port-au-Prince":"(GMT-05:00) Port-au-Prince","America/Rio_Branco":"(GMT-05:00) Rio Branco","America/Toronto":"(GMT-05:00) Eastern Time - Toronto","Pacific/Easter":"(GMT-05:00) Easter Island","America/Caracas":"(GMT-04:00) Caracas","America/Asuncion":"(GMT-03:00) Asuncion","America/Barbados":"(GMT-04:00) Barbados","America/Boa_Vista":"(GMT-04:00) Boa Vista","America/Campo_Grande":"(GMT-03:00) Campo Grande","America/Cuiaba":"(GMT-03:00) Cuiaba","America/Curacao":"(GMT-04:00) Curacao","America/Grand_Turk":"(GMT-04:00) Grand Turk","America/Guyana":"(GMT-04:00) Guyana","America/Halifax":"(GMT-04:00) Atlantic Time - Halifax","America/La_Paz":"(GMT-04:00) La Paz","America/Manaus":"(GMT-04:00) Manaus","America/Martinique":"(GMT-04:00) Martinique","America/Port_of_Spain":"(GMT-04:00) Port of Spain","America/Porto_Velho":"(GMT-04:00) Porto Velho","America/Puerto_Rico":"(GMT-04:00) Puerto Rico","America/Santo_Domingo":"(GMT-04:00) Santo Domingo","America/Thule":"(GMT-04:00) Thule","Atlantic/Bermuda":"(GMT-04:00) Bermuda","America/St_Johns":"(GMT-03:30) Newfoundland Time - St. Johns","America/Araguaina":"(GMT-03:00) Araguaina","America/Argentina/Buenos_Aires":"(GMT-03:00) Buenos Aires","America/Bahia":"(GMT-03:00) Salvador","America/Belem":"(GMT-03:00) Belem","America/Cayenne":"(GMT-03:00) Cayenne","America/Fortaleza":"(GMT-03:00) Fortaleza","America/Godthab":"(GMT-03:00) Godthab","America/Maceio":"(GMT-03:00) Maceio","America/Miquelon":"(GMT-03:00) Miquelon","America/Montevideo":"(GMT-03:00) Montevideo","America/Paramaribo":"(GMT-03:00) Paramaribo","America/Recife":"(GMT-03:00) Recife","America/Santiago":"(GMT-03:00) Santiago","America/Sao_Paulo":"(GMT-03:00) Sao Paulo","Antarctica/Palmer":"(GMT-03:00) Palmer","Antarctica/Rothera":"(GMT-03:00) Rothera","Atlantic/Stanley":"(GMT-03:00) Stanley","America/Noronha":"(GMT-02:00) Noronha","Atlantic/South_Georgia":"(GMT-02:00) South Georgia","America/Scoresbysund":"(GMT-01:00) Scoresbysund","Atlantic/Azores":"(GMT-01:00) Azores","Atlantic/Cape_Verde":"(GMT-01:00) Cape Verde","Africa/Abidjan":"(GMT+00:00) Abidjan","Africa/Accra":"(GMT+00:00) Accra","Africa/Bissau":"(GMT+00:00) Bissau","Africa/Casablanca":"(GMT+00:00) Casablanca","Africa/El_Aaiun":"(GMT+00:00) El Aaiun","Africa/Monrovia":"(GMT+00:00) Monrovia","America/Danmarkshavn":"(GMT+00:00) Danmarkshavn","Atlantic/Canary":"(GMT+00:00) Canary Islands","Atlantic/Faroe":"(GMT+00:00) Faeroe","Atlantic/Reykjavik":"(GMT+00:00) Reykjavik","Etc/GMT":"(GMT+00:00) GMT (no daylight saving)","Europe/Dublin":"(GMT+00:00) Dublin","Europe/Lisbon":"(GMT+00:00) Lisbon","Europe/London":"(GMT+00:00) London","Africa/Algiers":"(GMT+01:00) Algiers","Africa/Ceuta":"(GMT+01:00) Ceuta","Africa/Lagos":"(GMT+01:00) Lagos","Africa/Ndjamena":"(GMT+01:00) Ndjamena","Africa/Tunis":"(GMT+01:00) Tunis","Africa/Windhoek":"(GMT+02:00) Windhoek","Europe/Amsterdam":"(GMT+01:00) Amsterdam","Europe/Andorra":"(GMT+01:00) Andorra","Europe/Belgrade":"(GMT+01:00) Central European Time - Belgrade","Europe/Berlin":"(GMT+01:00) Berlin","Europe/Brussels":"(GMT+01:00) Brussels","Europe/Budapest":"(GMT+01:00) Budapest","Europe/Copenhagen":"(GMT+01:00) Copenhagen","Europe/Gibraltar":"(GMT+01:00) Gibraltar","Europe/Luxembourg":"(GMT+01:00) Luxembourg","Europe/Madrid":"(GMT+01:00) Madrid","Europe/Malta":"(GMT+01:00) Malta","Europe/Monaco":"(GMT+01:00) Monaco","Europe/Oslo":"(GMT+01:00) Oslo","Europe/Paris":"(GMT+01:00) Paris","Europe/Prague":"(GMT+01:00) Central European Time - Prague","Europe/Rome":"(GMT+01:00) Rome","Europe/Stockholm":"(GMT+01:00) Stockholm","Europe/Tirane":"(GMT+01:00) Tirane","Europe/Vienna":"(GMT+01:00) Vienna","Europe/Warsaw":"(GMT+01:00) Warsaw","Europe/Zurich":"(GMT+01:00) Zurich","Africa/Cairo":"(GMT+02:00) Cairo","Africa/Johannesburg":"(GMT+02:00) Johannesburg","Africa/Maputo":"(GMT+02:00) Maputo","Africa/Tripoli":"(GMT+02:00) Tripoli","Asia/Amman":"(GMT+02:00) Amman","Asia/Beirut":"(GMT+02:00) Beirut","Asia/Damascus":"(GMT+02:00) Damascus","Asia/Gaza":"(GMT+02:00) Gaza","Asia/Jerusalem":"(GMT+02:00) Jerusalem","Asia/Nicosia":"(GMT+02:00) Nicosia","Europe/Athens":"(GMT+02:00) Athens","Europe/Bucharest":"(GMT+02:00) Bucharest","Europe/Chisinau":"(GMT+02:00) Chisinau","Europe/Helsinki":"(GMT+02:00) Helsinki","Europe/Istanbul":"(GMT+03:00) Istanbul","Europe/Kaliningrad":"(GMT+02:00) Moscow-01 - Kaliningrad","Europe/Kyiv":"(GMT+02:00) Kyiv","Europe/Riga":"(GMT+02:00) Riga","Europe/Sofia":"(GMT+02:00) Sofia","Europe/Tallinn":"(GMT+02:00) Tallinn","Europe/Vilnius":"(GMT+02:00) Vilnius","Africa/Khartoum":"(GMT+03:00) Khartoum","Africa/Nairobi":"(GMT+03:00) Nairobi","Antarctica/Syowa":"(GMT+03:00) Syowa","Asia/Baghdad":"(GMT+03:00) Baghdad","Asia/Qatar":"(GMT+03:00) Qatar","Asia/Riyadh":"(GMT+03:00) Riyadh","Europe/Minsk":"(GMT+03:00) Minsk","Europe/Moscow":"(GMT+03:00) Moscow+00 - Moscow","Asia/Tehran":"(GMT+03:30) Tehran","Asia/Baku":"(GMT+04:00) Baku","Asia/Dubai":"(GMT+04:00) Dubai","Asia/Tbilisi":"(GMT+04:00) Tbilisi","Asia/Yerevan":"(GMT+04:00) Yerevan","Europe/Samara":"(GMT+04:00) Moscow+01 - Samara","Indian/Mahe":"(GMT+04:00) Mahe","Indian/Mauritius":"(GMT+04:00) Mauritius","Indian/Reunion":"(GMT+04:00) Reunion","Asia/Kabul":"(GMT+04:30) Kabul","Antarctica/Mawson":"(GMT+05:00) Mawson","Asia/Aqtau":"(GMT+05:00) Aqtau","Asia/Aqtobe":"(GMT+05:00) Aqtobe","Asia/Ashgabat":"(GMT+05:00) Ashgabat","Asia/Dushanbe":"(GMT+05:00) Dushanbe","Asia/Karachi":"(GMT+05:00) Karachi","Asia/Tashkent":"(GMT+05:00) Tashkent","Asia/Yekaterinburg":"(GMT+05:00) Moscow+02 - Yekaterinburg","Indian/Kerguelen":"(GMT+05:00) Kerguelen","Indian/Maldives":"(GMT+05:00) Maldives","Asia/Calcutta":"(GMT+05:30) India Standard Time","Asia/Colombo":"(GMT+05:30) Colombo","Asia/Katmandu":"(GMT+05:45) Katmandu","Antarctica/Vostok":"(GMT+06:00) Vostok","Asia/Almaty":"(GMT+06:00) Almaty","Asia/Bishkek":"(GMT+06:00) Bishkek","Asia/Dhaka":"(GMT+06:00) Dhaka","Asia/Omsk":"(GMT+06:00) Moscow+03 - Omsk, Novosibirsk","Asia/Thimphu":"(GMT+06:00) Thimphu","Indian/Chagos":"(GMT+06:00) Chagos","Asia/Rangoon":"(GMT+06:30) Rangoon","Indian/Cocos":"(GMT+06:30) Cocos","Antarctica/Davis":"(GMT+07:00) Davis","Asia/Bangkok":"(GMT+07:00) Bangkok","Asia/Hovd":"(GMT+07:00) Hovd","Asia/Jakarta":"(GMT+07:00) Jakarta","Asia/Krasnoyarsk":"(GMT+07:00) Moscow+04 - Krasnoyarsk","Asia/Saigon":"(GMT+07:00) Hanoi","Asia/Ho_Chi_Minh":"(GMT+07:00) Ho Chi Minh","Indian/Christmas":"(GMT+07:00) Christmas","Antarctica/Casey":"(GMT+08:00) Casey","Asia/Brunei":"(GMT+08:00) Brunei","Asia/Choibalsan":"(GMT+08:00) Choibalsan","Asia/Hong_Kong":"(GMT+08:00) Hong Kong","Asia/Irkutsk":"(GMT+08:00) Moscow+05 - Irkutsk","Asia/Kuala_Lumpur":"(GMT+08:00) Kuala Lumpur","Asia/Macau":"(GMT+08:00) Macau","Asia/Makassar":"(GMT+08:00) Makassar","Asia/Manila":"(GMT+08:00) Manila","Asia/Shanghai":"(GMT+08:00) China Time - Beijing","Asia/Singapore":"(GMT+08:00) Singapore","Asia/Taipei":"(GMT+08:00) Taipei","Asia/Ulaanbaatar":"(GMT+08:00) Ulaanbaatar","Australia/Perth":"(GMT+08:00) Western Time - Perth","Asia/Pyongyang":"(GMT+08:30) Pyongyang","Asia/Dili":"(GMT+09:00) Dili","Asia/Jayapura":"(GMT+09:00) Jayapura","Asia/Seoul":"(GMT+09:00) Seoul","Asia/Tokyo":"(GMT+09:00) Tokyo","Asia/Yakutsk":"(GMT+09:00) Moscow+06 - Yakutsk","Pacific/Palau":"(GMT+09:00) Palau","Australia/Adelaide":"(GMT+10:30) Central Time - Adelaide","Australia/Darwin":"(GMT+09:30) Central Time - Darwin","Antarctica/DumontDUrville":"(GMT+10:00) Dumont D\'Urville","Asia/Magadan":"(GMT+10:00) Moscow+07 - Magadan","Asia/Vladivostok":"(GMT+10:00) Moscow+07 - Vladivostok","Australia/Brisbane":"(GMT+10:00) Eastern Time - Brisbane","Asia/Yuzhno-Sakhalinsk":"(GMT+11:00) Moscow+08 - Yuzhno-Sakhalinsk","Australia/Hobart":"(GMT+11:00) Eastern Time - Hobart","Australia/Sydney":"(GMT+11:00) Eastern Time - Melbourne, Sydney","Pacific/Chuuk":"(GMT+10:00) Truk","Pacific/Guam":"(GMT+10:00) Guam","Pacific/Port_Moresby":"(GMT+10:00) Port Moresby","Pacific/Efate":"(GMT+11:00) Efate","Pacific/Guadalcanal":"(GMT+11:00) Guadalcanal","Pacific/Kosrae":"(GMT+11:00) Kosrae","Pacific/Norfolk":"(GMT+11:00) Norfolk","Pacific/Noumea":"(GMT+11:00) Noumea","Pacific/Pohnpei":"(GMT+11:00) Ponape","Asia/Kamchatka":"(GMT+12:00) Moscow+09 - Petropavlovsk-Kamchatskiy","Pacific/Auckland":"(GMT+13:00) Auckland","Pacific/Fiji":"(GMT+13:00) Fiji","Pacific/Funafuti":"(GMT+12:00) Funafuti","Pacific/Kwajalein":"(GMT+12:00) Kwajalein","Pacific/Majuro":"(GMT+12:00) Majuro","Pacific/Nauru":"(GMT+12:00) Nauru","Pacific/Tarawa":"(GMT+12:00) Tarawa","Pacific/Wake":"(GMT+12:00) Wake","Pacific/Wallis":"(GMT+12:00) Wallis","Pacific/Apia":"(GMT+14:00) Apia","Pacific/Enderbury":"(GMT+13:00) Enderbury","Pacific/Fakaofo":"(GMT+13:00) Fakaofo","Pacific/Tongatapu":"(GMT+13:00) Tongatapu","Pacific/Kiritimati":"(GMT+14:00) Kiritimati"}')}}]);