Update frontend

This commit is contained in:
Paulus Schoutsen committed 2016-07-21 08:41:48 -07:00
1 parent a0d71c9cb2
commit a513e1cc35
6 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
"""DO NOT MODIFY. Auto-generated by script/fingerprint_frontend."""
FINGERPRINTS = {
"core.js": "624b15da38134daf66408d7b799da26a",
"core.js": "9f8d95cc1ccda7134a035e6e48b08681",
"frontend.html": "fcda78dd3acd52b8e0c8289890798239",
"mdi.html": "a7fa9237b7da93951076b4fe26cb8cd2",
"panels/ha-panel-dev-event.html": "20327fbd4fb0370aec9be4db26fd723f",
@@ -1,4 +1,4 @@
!function(){"use strict";function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}function e(t,e){var n=e.authToken,r=e.host;return ze({authToken:n,host:r,isValidating:!0,isInvalid:!1,errorMessage:""})}function n(){return Re.getInitialState()}function r(t,e){var n=e.errorMessage;return t.withMutations(function(t){return t.set("isValidating",!1).set("isInvalid",!0).set("errorMessage",n)})}function i(t,e){var n=e.authToken,r=e.host;return Le({authToken:n,host:r})}function o(){return je.getInitialState()}function u(t,e){var n=e.rememberAuth;return n}function a(t){return t.withMutations(function(t){t.set("isStreaming",!0).set("useStreaming",!0).set("hasError",!1)})}function s(t){return t.withMutations(function(t){t.set("isStreaming",!1).set("useStreaming",!1).set("hasError",!1)})}function c(t){return t.withMutations(function(t){t.set("isStreaming",!1).set("hasError",!0)})}function f(){return Ve.getInitialState()}function h(t,e){var n=e.model,r=e.result,i=e.params,o=n.entity;if(!r)return t;var u=i.replace?t.set(o,We({})):t,a=Array.isArray(r)?r:[r],s=n.fromJSON||We;return u.withMutations(function(t){return a.forEach(function(e){var n=s(e);t.setIn([o,n.id],n)})})}function l(t,e){var n=e.model,r=e.params;return t.removeIn([n.entity,r.id])}function p(t){var e={};return e.incrementData=function(e,n,r){void 0===r&&(r={}),_(e,t,r,n)},e.replaceData=function(e,n,r){void 0===r&&(r={}),_(e,t,Ze({},r,{replace:!0}),n)},e.removeData=function(e,n){S(e,t,{id:n})},t.fetch&&(e.fetch=function(e,n){return void 0===n&&(n={}),e.dispatch(Be.API_FETCH_START,{model:t,params:n,method:"fetch"}),t.fetch(e,n).then(_.bind(null,e,t,n),d.bind(null,e,t,n))}),e.fetchAll=function(e,n){return void 0===n&&(n={}),e.dispatch(Be.API_FETCH_START,{model:t,params:n,method:"fetchAll"}),t.fetchAll(e,n).then(_.bind(null,e,t,Ze({},n,{replace:!0})),d.bind(null,e,t,n))},t.save&&(e.save=function(e,n){return void 0===n&&(n={}),e.dispatch(Be.API_SAVE_START,{params:n}),t.save(e,n).then(v.bind(null,e,t,n),y.bind(null,e,t,n))}),t.delete&&(e.delete=function(e,n){return void 0===n&&(n={}),e.dispatch(Be.API_DELETE_START,{params:n}),t.delete(e,n).then(S.bind(null,e,t,n),g.bind(null,e,t,n))}),e}function _(t,e,n,r){return t.dispatch(Be.API_FETCH_SUCCESS,{model:e,params:n,result:r}),r}function d(t,e,n,r){return t.dispatch(Be.API_FETCH_FAIL,{model:e,params:n,reason:r}),Promise.reject(r)}function v(t,e,n,r){return t.dispatch(Be.API_SAVE_SUCCESS,{model:e,params:n,result:r}),r}function y(t,e,n,r){return t.dispatch(Be.API_SAVE_FAIL,{model:e,params:n,reason:r}),Promise.reject(r)}function S(t,e,n,r){return t.dispatch(Be.API_DELETE_SUCCESS,{model:e,params:n,result:r}),r}function g(t,e,n,r){return t.dispatch(Be.API_DELETE_FAIL,{model:e,params:n,reason:r}),Promise.reject(r)}function m(t){t.registerStores({restApiCache:Xe})}function E(t){return[["restApiCache",t.entity],function(t){return!!t}]}function I(t){return[["restApiCache",t.entity],function(t){return t||$e({})}]}function b(t){return function(e){return["restApiCache",t.entity,e]}}function O(t){return new Date(t)}function w(t,e,n,r){void 0===r&&(r=null);var i=t.evaluate(Co.authInfo),o=i.host+"/api/"+n;return new Promise(function(t,n){var u=new XMLHttpRequest;u.open(e,o,!0),u.setRequestHeader("X-HA-access",i.authToken),u.onload=function(){var e;try{e="application/json"===u.getResponseHeader("content-type")?JSON.parse(u.responseText):u.responseText}catch(t){e=u.responseText}u.status>199&&u.status<300?t(e):n(e)},u.onerror=function(){return n({})},r?u.send(JSON.stringify(r)):u.send()})}function T(t,e){var n=e.message;return t.set(t.size,n)}function A(){return On.getInitialState()}function D(t,e){t.dispatch(En.NOTIFICATION_CREATED,{message:e})}function C(t){t.registerStores({notifications:On})}function z(t,e){if("lock"===t)return!0;if("garage_door"===t)return!0;var n=e.get(t);return!!n&&n.services.has("turn_on")}function R(t,e){return!!t&&("group"===t.domain?"on"===t.state||"off"===t.state:z(t.domain,e))}function M(t,e){return[Qn(t),function(t){return!!t&&t.services.has(e)}]}function L(t){return[gn.byId(t),Xn,R]}function j(t,e,n){function r(){var c=(new Date).getTime()-a;c<e&&c>0?i=setTimeout(r,e-c):(i=null,n||(s=t.apply(u,o),i||(u=o=null)))}var i,o,u,a,s;null==e&&(e=100);var c=function(){u=this,o=arguments,a=(new Date).getTime();var c=n&&!i;return i||(i=setTimeout(r,e)),c&&(s=t.apply(u,o),u=o=null),s};return c.clear=function(){i&&(clearTimeout(i),i=null)},c}function N(t,e){var n=e.component;return t.push(n)}function k(t,e){var n=e.components;return cr(n)}function U(){return fr.getInitialState()}function P(t,e){var n=e.latitude,r=e.longitude,i=e.location_name,o=e.temperature_unit,u=e.time_zone,a=e.version;return lr({latitude:n,longitude:r,location_name:i,temperature_unit:o,time_zone:u,serverVersion:a})}function H(){return pr.getInitialState()}function x(t,e){t.dispatch(ar.SERVER_CONFIG_LOADED,e)}function V(t){un(t,"GET","config").then(function(e){return x(t,e)})}function q(t,e){t.dispatch(ar.COMPONENT_LOADED,{component:e})}fuLine truncated
!a.value)return t;o=t.size+(u.value?r===ln?-1:1:0)}else{if(r===ln)return t;o=1,i=new Ht(t.__ownerID,[[n,r]])}return t.__ownerID?(t.size=o,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?Bt(o,i):Jt()}function Xt(t,e,r,i,o,u,a,s){return t?t.update(e,r,i,o,u,a,s):u===ln?t:(n(s),n(a),new Ft(e,i,[o,u]))}function Qt(t){return t.constructor===Ft||t.constructor===qt}function Zt(t,e,n,r,i){if(t.keyHash===r)return new qt(e,r,[t.entry,i]);var o,u=(0===n?t.keyHash:t.keyHash>>>n)&hn,a=(0===n?r:r>>>n)&hn,s=u===a?[Zt(t,e,n+cn,r,i)]:(o=new Ft(e,r,i),u<a?[t,o]:[o,t]);return new xt(e,1<<u|1<<a,s)}function $t(t,e,n,i){t||(t=new r);for(var o=new Ft(t,et(n),[n,i]),u=0;u<e.length;u++){var a=e[u];o=o.update(t,0,void 0,a[0],a[1])}return o}function te(t,e,n,r){for(var i=0,o=0,u=new Array(n),a=0,s=1,c=e.length;a<c;a++,s<<=1){var f=e[a];void 0!==f&&a!==r&&(i|=s,u[o++]=f)}return new xt(t,i,u)}function ee(t,e,n,r,i){for(var o=0,u=new Array(fn),a=0;0!==n;a++,n>>>=1)u[a]=1&n?e[o++]:void 0;return u[r]=i,new Vt(t,o+1,u)}function ne(t,e,n){for(var r=[],i=0;i<n.length;i++){var o=n[i],u=p(o);v(o)||(u=u.map(function(t){return X(t)})),r.push(u)}return ie(t,e,r)}function re(t){return function(e,n,r){return e&&e.mergeDeepWith&&v(n)?e.mergeDeepWith(t,n):t?t(e,n,r):n}}function ie(t,e,n){return n=n.filter(function(t){return 0!==t.size}),0===n.length?t:0!==t.size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var r=e?function(n,r){t.update(r,ln,function(t){return t===ln?n:e(t,n,r)})}:function(e,n){t.set(n,e)},i=0;i<n.length;i++)n[i].forEach(r)}):t.constructor(n[0])}function oe(t,e,n,r){var i=t===ln,o=e.next();if(o.done){var u=i?n:t,a=r(u);return a===u?t:a}ut(i||t&&t.set,"invalid keyPath");var s=o.value,c=i?ln:t.get(s,ln),f=oe(c,e,n,r);return f===c?t:f===ln?t.remove(s):(i?Jt():t).set(s,f)}function ue(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,127&t}function ae(t,e,n,r){var o=r?t:i(t);return o[e]=n,o}function se(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),u=0,a=0;a<i;a++)a===e?(o[a]=n,u=-1):o[a]=t[a+u];return o}function ce(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,u=0;u<r;u++)u===e&&(o=1),i[u]=t[u+o];return i}function fe(t){var e=de();if(null===t||void 0===t)return e;if(he(t))return t;var n=_(t),r=n.size;return 0===r?e:(at(r),r>0&&r<fn?_e(0,r,cn,null,new le(n.toArray())):e.withMutations(function(t){t.setSize(r),n.forEach(function(e,n){return t.set(n,e)})}))}function he(t){return!(!t||!t[Gn])}function le(t,e){this.array=t,this.ownerID=e}function pe(t,e){function n(t,e,n){return 0===e?r(t,n):i(t,e,n)}function r(t,n){var r=n===a?s&&s.array:t&&t.array,i=n>o?0:o-n,c=u-n;return c>fn&&(c=fn),function(){if(i===c)return Bn;var t=e?--c:i++;return r&&r[t]}}function i(t,r,i){var a,s=t&&t.array,c=i>o?0:o-i>>r,f=(u-i>>r)+1;return f>fn&&(f=fn),function(){for(;;){if(a){var t=a();if(t!==Bn)return t;a=null}if(c===f)return Bn;var o=e?--f:c++;a=n(s&&s[o],r-cn,i+(o<<r))}}}var o=t._origin,u=t._capacity,a=Ie(u),s=t._tail;return n(t._root,t._level,0)}function _e(t,e,n,r,i,o,u){var a=Object.create(Kn);return a.size=e-t,a._origin=t,a._capacity=e,a._level=n,a._root=r,a._tail=i,a.__ownerID=o,a.__hash=u,a.__altered=!1,a}function de(){return Yn||(Yn=_e(0,0,cn))}function ve(t,n,r){if(n=u(t,n),n!==n)return t;if(n>=t.size||n<0)return t.withMutations(function(t){n<0?me(t,n).set(0,r):me(t,0,n+1).set(n,r)});n+=t._origin;var i=t._tail,o=t._root,a=e(_n);return n>=Ie(t._capacity)?i=ye(i,t.__ownerID,0,n,r,a):o=ye(o,t.__ownerID,t._level,n,r,a),a.value?t.__ownerID?(t._root=o,t._tail=i,t.__hash=void 0,t.__altered=!0,t):_e(t._origin,t._capacity,t._level,o,i):t}function ye(t,e,r,i,o,u){var a=i>>>r&hn,s=t&&a<t.array.length;if(!s&&void 0===o)return t;var c;if(r>0){var f=t&&t.array[a],h=ye(f,e,r-cn,i,o,u);return h===f?t:(c=Se(t,e),c.array[a]=h,c)}return s&&t.array[a]===o?t:(n(u),c=Se(t,e),void 0===o&&a===c.array.length-1?c.array.pop():c.array[a]=o,c)}function Se(t,e){return e&&t&&e===t.ownerID?t:new le(t?t.array.slice():[],e)}function ge(t,e){if(e>=Ie(t._capacity))return t._tail;if(e<1<<t._level+cn){for(var n=t._root,r=t._level;n&&r>0;)n=n.array[e>>>r&hn],r-=cn;return n}}function me(t,e,n){void 0!==e&&(e=0|e),void 0!==n&&(n=0|n);var i=t.__ownerID||new r,o=t._origin,u=t._capacity,a=o+e,s=void 0===n?u:n<0?u+n:o+n;if(a===o&&s===u)return t;if(a>=s)return t.clear();for(var c=t._level,f=t._root,h=0;a+h<0;)f=new le(f&&f.array.length?[void 0,f]:[],i),c+=cn,h+=1<<c;h&&(a+=h,o+=h,s+=h,u+=h);for(var l=Ie(u),p=Ie(s);p>=1<<c+cn;)f=new le(f&&f.array.length?[f]:[],i),c+=cn;var _=t._tail,d=p<l?ge(t,s-1):p>l?new le([],i):_;if(_&&p>l&&a<u&&_.array.length){f=Se(f,i);for(var v=f,y=c;y>cn;y-=cn){var S=l>>>y&hn;v=v.array[S]=Se(v.array[S],i)}v.array[l>>>cn&hn]=_}if(s<u&&(d=d&&d.removeAfter(i,0,s)),a>=p)a-=p,s-=p,c=cn,f=null,d=d&&d.removeBefore(i,0,a);else if(a>o||p<l){for(h=0;f;){var g=a>>>c&hn;if(g!==p>>>c&hn)break;g&&(h+=(1<<c)*g),c-=cn,f=f.array[g]}f&&a>o&&(f=f.removeBefore(i,c,a-Line truncated
rr.setIn=Hn.setIn,rr.update=Hn.update,rr.updateIn=Hn.updateIn,rr.withMutations=Hn.withMutations,rr.asMutable=Hn.asMutable,rr.asImmutable=Hn.asImmutable,t(Be,R),Be.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Be.prototype.get=function(t,e){return this.has(t)?this._start+u(this,t)*this._step:e},Be.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},Be.prototype.slice=function(t,e){return s(t,e,this.size)?this:(t=c(t,this.size),e=f(e,this.size),e<=t?new Be(0,0):new Be(this.get(t,this._end),this.get(e,this._end),this._step))},Be.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},Be.prototype.lastIndexOf=function(t){return this.indexOf(t)},Be.prototype.__iterate=function(t,e){for(var n=this,r=this.size-1,i=this._step,o=e?this._start+r*i:this._start,u=0;u<=r;u++){if(t(o,u,n)===!1)return u+1;o+=e?-i:i}return u},Be.prototype.__iterator=function(t,e){var n=this.size-1,r=this._step,i=e?this._start+n*r:this._start,o=0;return new E(function(){var u=i;return i+=e?-r:r,o>n?b():I(t,o++,u)})},Be.prototype.equals=function(t){return t instanceof Be?this._start===t._start&&this._end===t._end&&this._step===t._step:Ye(this,t)};var ir;t(Je,R),Je.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Je.prototype.get=function(t,e){return this.has(t)?this._value:e},Je.prototype.includes=function(t){return W(this._value,t)},Je.prototype.slice=function(t,e){var n=this.size;return s(t,e,n)?this:new Je(this._value,f(e,n)-c(t,n))},Je.prototype.reverse=function(){return this},Je.prototype.indexOf=function(t){return W(this._value,t)?0:-1},Je.prototype.lastIndexOf=function(t){return W(this._value,t)?this.size:-1},Je.prototype.__iterate=function(t,e){for(var n=this,r=0;r<this.size;r++)if(t(n._value,r,n)===!1)return r+1;return r},Je.prototype.__iterator=function(t,e){var n=this,r=0;return new E(function(){return r<n.size?I(t,r++,n._value):b()})},Je.prototype.equals=function(t){return t instanceof Je?W(this._value,t._value):Ye(t)};var or;l.Iterator=E,We(l,{toArray:function(){at(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ct(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new st(this,(!0))},toMap:function(){return Ut(this.toKeyedSeq())},toObject:function(){at(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return be(this.toKeyedSeq())},toOrderedSet:function(){return Ue(y(this)?this.valueSeq():this)},toSet:function(){return Me(y(this)?this.valueSeq():this)},toSetSeq:function(){return new ft(this)},toSeq:function(){return S(this)?this.toIndexedSeq():y(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return De(y(this)?this.valueSeq():this)},toList:function(){return fe(y(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=an.call(arguments,0);return Ct(this,Et(this,t))},includes:function(t){return this.some(function(e){return W(e,t)})},entries:function(){return this.__iterator(En)},every:function(t,e){at(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return Ct(this,dt(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return at(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){at(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(gn)},map:function(t,e){return Ct(this,pt(this,t,e))},reduce:function(t,e,n){at(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,u){i?(i=!1,r=e):r=t.call(n,r,e,o,u)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Ct(this,_t(this,!0))},slice:function(t,e){return Ct(this,St(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return Ct(this,wt(this,t))},values:function(){return this.__iterator(mn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return Line truncated
this.callService("turn_on")},rn.prototype.volumeDown=function(){this.callService("volume_down")},rn.prototype.volumeMute=function(t){if(!this.supportsVolumeMute)throw new Error("Muting volume not supported");this.callService("volume_mute",{is_volume_muted:t})},rn.prototype.volumeUp=function(){this.callService("volume_down")},rn.prototype.callService=function(t,e){var n=e||{};n.entity_id=this.stateObj.entityId,this.serviceActions.callService("media_player",t,n)},Object.defineProperties(rn.prototype,on);var un=w,an=we.Immutable,sn=we.toJS,cn="entity",fn=new an.Record({entityId:null,domain:null,objectId:null,state:null,entityDisplay:null,stateDisplay:null,lastChanged:null,lastChangedAsDate:null,lastUpdated:null,lastUpdatedAsDate:null,attributes:{},isCustomGroup:null},"Entity"),hn=function(t){function e(e,n,r,i,o){void 0===o&&(o={});var u=e.split("."),a=u[0],s=u[1],c=n.replace(/_/g," ");o.unit_of_measurement&&(c+=" "+o.unit_of_measurement),t.call(this,{entityId:e,domain:a,objectId:s,state:n,stateDisplay:c,lastChanged:r,lastUpdated:i,attributes:o,entityDisplay:o.friendly_name||s.replace(/_/g," "),lastChangedAsDate:O(r),lastUpdatedAsDate:O(i),isCustomGroup:"group"===a&&!o.auto})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.entityId},e.prototype.domainModel=function(t){if("media_player"!==this.domain)throw new Error("Domain does not have a model");return new rn(t,this)},e.delete=function(t,e){return un(t,"DELETE","states/"+e.entityId)},e.save=function(t,e){var n=sn(e),r=n.entityId,i=n.state,o=n.attributes;void 0===o&&(o={});var u={state:i,attributes:o};return un(t,"POST","states/"+r,u)},e.fetch=function(t,e){return un(t,"GET","states/"+e)},e.fetchAll=function(t){return un(t,"GET","states")},e.fromJSON=function(t){var n=t.entity_id,r=t.state,i=t.last_changed,o=t.last_updated,u=t.attributes;return new e(n,r,i,o,u)},Object.defineProperties(e.prototype,n),e}(fn);hn.entity=cn;var ln=tn(hn),pn=E(hn),_n=I(hn),dn=b(hn),vn=[_n,function(t){return t.filter(function(t){return!t.attributes.hidden})}],yn=Object.freeze({hasData:pn,entityMap:_n,byId:dn,visibleEntityMap:vn}),Sn=ln,gn=yn,mn=Object.freeze({actions:Sn,getters:gn}),En=Ae({NOTIFICATION_CREATED:null}),In=we.Store,bn=we.Immutable,On=new In({getInitialState:function(){return new bn.OrderedMap},initialize:function(){this.on(En.NOTIFICATION_CREATED,T),this.on(En.LOG_OUT,A)}}),wn=Object.freeze({createNotification:D}),Tn=["notifications"],An=[Tn,function(t){return t.last()}],Dn=Object.freeze({notificationMap:Tn,lastNotificationMessage:An}),Cn=wn,zn=Dn,Rn=Object.freeze({register:C,actions:Cn,getters:zn}),Mn=we.Immutable,Ln="event",jn=new Mn.Record({event:null,listenerCount:0},"Event"),Nn=function(t){function e(e,n){void 0===n&&(n=0),t.call(this,{event:e,listenerCount:n})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.event},e.fetchAll=function(t){return un(t,"GET","events")},e.fromJSON=function(t){var n=t.event,r=t.listener_count;return new e(n,r)},Object.defineProperties(e.prototype,n),e}(jn);Nn.entity=Ln;var kn=tn(Nn);kn.fireEvent=function(t,e,n){return void 0===n&&(n={}),un(t,"POST","events/"+e,n).then(function(){Cn.createNotification(t,"Event "+e+" successful fired!")})};var Un=E(Nn),Pn=I(Nn),Hn=b(Nn),xn=Object.freeze({hasData:Un,entityMap:Pn,byId:Hn}),Vn=kn,qn=xn,Fn=Object.freeze({actions:Vn,getters:qn}),Gn=we.Immutable,Kn=we.toImmutable,Yn="service",Bn=new Gn.Record({domain:null,services:[]},"ServiceDomain"),Jn=function(t){function e(e,n){t.call(this,{domain:e,services:n})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.domain},e.fetchAll=function(){return un("GET","services")},e.fromJSON=function(t){var n=t.domain,r=t.services;return new e(n,Kn(r))},Object.defineProperties(e.prototype,n),e}(Bn);Jn.entity=Yn;var Wn=E(Jn),Xn=I(Jn),Qn=b(Jn),Zn=Object.freeze({hasData:Wn,entityMap:Xn,byDomain:Qn,hasService:M,canToggleEntity:L}),$n=tn(Jn);$n.serviceRegistered=function(t,e,n){var r=t.evaluateToJS(Qn(e));r?r.services.push(n):r={domain:e,services:[n]},$n.incrementData(t,r)},$n.callTurnOn=function(t,e,n){return void 0===n&&(n={}),$n.callService(t,"homeassistant","turn_on",Ze({},n,{entity_id:e}))},$n.callTurnOff=function(t,e,n){return void 0===n&&(n={}),$n.callService(t,"homeassistant","turn_off",Ze({},n,{entity_id:e}))},$n.callService=function(t,e,n,r){return void 0===r&&(r={}),un(t,"POST","services/"+e+"/"+n,r).then(function(i){"turn_on"===n&&r.entity_id?Cn.createNotification(t,"Turned on "+r.entity_id+"."):"turn_off"===n&&r.entity_id?Cn.createNotification(t,"Turned off "+r.entity_id+"."):Cn.createNotification(t,"Service "+e+"/"+n+" called."),Sn.incrementData(t,i)})};var tr=$n,er=Zn,nr=Object.freeze({actions:tr,getters:er}),rr=[gn.hasData,qn.hasData,er.hasData,function(t,e,n){return t&&e&&n}],ir=["isFetLine truncated
this.callService("turn_on")},rn.prototype.volumeDown=function(){this.callService("volume_down")},rn.prototype.volumeMute=function(t){if(!this.supportsVolumeMute)throw new Error("Muting volume not supported");this.callService("volume_mute",{is_volume_muted:t})},rn.prototype.volumeUp=function(){this.callService("volume_down")},rn.prototype.callService=function(t,e){var n=e||{};n.entity_id=this.stateObj.entityId,this.serviceActions.callService("media_player",t,n)},Object.defineProperties(rn.prototype,on);var un=w,an=we.Immutable,sn=we.toJS,cn="entity",fn=new an.Record({entityId:null,domain:null,objectId:null,state:null,entityDisplay:null,stateDisplay:null,lastChanged:null,lastChangedAsDate:null,lastUpdated:null,lastUpdatedAsDate:null,attributes:{},isCustomGroup:null},"Entity"),hn=function(t){function e(e,n,r,i,o){void 0===o&&(o={});var u=e.split("."),a=u[0],s=u[1],c=n.replace(/_/g," ");o.unit_of_measurement&&(c+=" "+o.unit_of_measurement),t.call(this,{entityId:e,domain:a,objectId:s,state:n,stateDisplay:c,lastChanged:r,lastUpdated:i,attributes:o,entityDisplay:o.friendly_name||s.replace(/_/g," "),lastChangedAsDate:O(r),lastUpdatedAsDate:O(i),isCustomGroup:"group"===a&&!o.auto})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.entityId},e.prototype.domainModel=function(t){if("media_player"!==this.domain)throw new Error("Domain does not have a model");return new rn(t,this)},e.delete=function(t,e){return un(t,"DELETE","states/"+e.entityId)},e.save=function(t,e){var n=sn(e),r=n.entityId,i=n.state,o=n.attributes;void 0===o&&(o={});var u={state:i,attributes:o};return un(t,"POST","states/"+r,u)},e.fetch=function(t,e){return un(t,"GET","states/"+e)},e.fetchAll=function(t){return un(t,"GET","states")},e.fromJSON=function(t){var n=t.entity_id,r=t.state,i=t.last_changed,o=t.last_updated,u=t.attributes;return new e(n,r,i,o,u)},Object.defineProperties(e.prototype,n),e}(fn);hn.entity=cn;var ln=tn(hn),pn=E(hn),_n=I(hn),dn=b(hn),vn=[_n,function(t){return t.filter(function(t){return!t.attributes.hidden})}],yn=Object.freeze({hasData:pn,entityMap:_n,byId:dn,visibleEntityMap:vn}),Sn=ln,gn=yn,mn=Object.freeze({actions:Sn,getters:gn}),En=Ae({NOTIFICATION_CREATED:null}),In=we.Store,bn=we.Immutable,On=new In({getInitialState:function(){return new bn.OrderedMap},initialize:function(){this.on(En.NOTIFICATION_CREATED,T),this.on(En.LOG_OUT,A)}}),wn=Object.freeze({createNotification:D}),Tn=["notifications"],An=[Tn,function(t){return t.last()}],Dn=Object.freeze({notificationMap:Tn,lastNotificationMessage:An}),Cn=wn,zn=Dn,Rn=Object.freeze({register:C,actions:Cn,getters:zn}),Mn=we.Immutable,Ln="event",jn=new Mn.Record({event:null,listenerCount:0},"Event"),Nn=function(t){function e(e,n){void 0===n&&(n=0),t.call(this,{event:e,listenerCount:n})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.event},e.fetchAll=function(t){return un(t,"GET","events")},e.fromJSON=function(t){var n=t.event,r=t.listener_count;return new e(n,r)},Object.defineProperties(e.prototype,n),e}(jn);Nn.entity=Ln;var kn=tn(Nn);kn.fireEvent=function(t,e,n){return void 0===n&&(n={}),un(t,"POST","events/"+e,n).then(function(){Cn.createNotification(t,"Event "+e+" successful fired!")})};var Un=E(Nn),Pn=I(Nn),Hn=b(Nn),xn=Object.freeze({hasData:Un,entityMap:Pn,byId:Hn}),Vn=kn,qn=xn,Fn=Object.freeze({actions:Vn,getters:qn}),Gn=we.Immutable,Kn=we.toImmutable,Yn="service",Bn=new Gn.Record({domain:null,services:[]},"ServiceDomain"),Jn=function(t){function e(e,n){t.call(this,{domain:e,services:n})}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={id:{}};return n.id.get=function(){return this.domain},e.fetchAll=function(){return un("GET","services")},e.fromJSON=function(t){var n=t.domain,r=t.services;return new e(n,Kn(r))},Object.defineProperties(e.prototype,n),e}(Bn);Jn.entity=Yn;var Wn=E(Jn),Xn=I(Jn),Qn=b(Jn),Zn=Object.freeze({hasData:Wn,entityMap:Xn,byDomain:Qn,hasService:M,canToggleEntity:L}),$n=tn(Jn);$n.serviceRegistered=function(t,e,n){var r=t.evaluateToJS(Qn(e));r?r.services.push(n):r={domain:e,services:[n]},$n.incrementData(t,r)},$n.callTurnOn=function(t,e,n){return void 0===n&&(n={}),$n.callService(t,"homeassistant","turn_on",Ze({},n,{entity_id:e}))},$n.callTurnOff=function(t,e,n){return void 0===n&&(n={}),$n.callService(t,"homeassistant","turn_off",Ze({},n,{entity_id:e}))},$n.callService=function(t,e,n,r){return void 0===r&&(r={}),un(t,"POST","services/"+e+"/"+n,r).then(function(i){"turn_on"===n&&r.entity_id?Cn.createNotification(t,"Turned on "+r.entity_id+"."):"turn_off"===n&&r.entity_id?Cn.createNotification(t,"Turned off "+r.entity_id+"."):Cn.createNotification(t,"Service "+e+"/"+n+" called."),Sn.incrementData(t,i)})};var tr=$n,er=Zn,nr=Object.freeze({actions:tr,getters:er}),rr=[gn.hasData,qn.hasData,er.hasData,function(t,e,n){return t&&e&&n}],ir=["isFetLine truncated
@@ -1 +1 @@
"use strict";function deleteAllCaches(){return caches.keys().then(function(e){return Promise.all(e.map(function(e){return caches.delete(e)}))})}var PrecacheConfig=[["/","4747fcd72353bbee47d5baaf8c111bb7"],["/frontend/panels/dev-event-20327fbd4fb0370aec9be4db26fd723f.html","a9b6eced242c1934a331c05c30e22148"],["/frontend/panels/dev-info-28e0a19ceb95aa714fd53228d9983a49.html","75862082477c802a12d2bf8705990d85"],["/frontend/panels/dev-service-85fd5b48600418bb5a6187539a623c38.html","353e4d80fedbcde9b51e08a78a9ddb86"],["/frontend/panels/dev-state-25d84d7b7aea779bb3bb3cd6c155f8d9.html","7fc5b1880ba4a9d6e97238e8e5a44d69"],["/frontend/panels/dev-template-d079abf61cff9690f828cafb0d29b7e7.html","6e512a2ba0eb7aeba956ca51048e701e"],["/frontend/panels/map-dfe141a3fa5fd403be554def1dd039a9.html","f061ec88561705f7787a00289450c006"],["/static/core-624b15da38134daf66408d7b799da26a.js","94508def6b713673cba7bcdc55e44fff"],["/static/frontend-fcda78dd3acd52b8e0c8289890798239.html","69ce37ded1db7a495bad71312f91bafd"],["/static/mdi-a7fa9237b7da93951076b4fe26cb8cd2.html","bd484adf5c530c651d98621ece280d3a"],["static/fonts/roboto/Roboto-Bold.ttf","d329cc8b34667f114a95422aaad1b063"],["static/fonts/roboto/Roboto-Light.ttf","7b5fb88f12bec8143f00e21bc3222124"],["static/fonts/roboto/Roboto-Medium.ttf","fe13e4170719c2fc586501e777bde143"],["static/fonts/roboto/Roboto-Regular.ttf","ac3f799d5bbaf5196fab15ab8de8431c"],["static/icons/favicon-192x192.png","419903b8422586a7e28021bbe9011175"],["static/icons/favicon.ico","04235bda7843ec2fceb1cbe2bc696cf4"],["static/images/card_media_player_bg.png","a34281d1c1835d338a642e90930e61aa"],["static/webcomponents-lite.min.js","b0f32ad3c7749c40d486603f31c9d8b1"]],CacheNamePrefix="sw-precache-v1--"+(self.registration?self.registration.scope:"")+"-",IgnoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var a=new URL(e);return"/"===a.pathname.slice(-1)&&(a.pathname+=t),a.toString()},getCacheBustedUrl=function(e,t){t=t||Date.now();var a=new URL(e);return a.search+=(a.search?"&":"")+"sw-precache="+t,a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var a=new URL(t).pathname;return e.some(function(e){return a.match(e)})},populateCurrentCacheNames=function(e,t,a){var n={},r={};return e.forEach(function(e){var c=new URL(e[0],a).toString(),o=t+c+"-"+e[1];r[o]=c,n[c]=o}),{absoluteUrlToCacheName:n,currentCacheNamesToAbsoluteUrl:r}},stripIgnoredUrlParameters=function(e,t){var a=new URL(e);return a.search=a.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),a.toString()},mappings=populateCurrentCacheNames(PrecacheConfig,CacheNamePrefix,self.location),AbsoluteUrlToCacheName=mappings.absoluteUrlToCacheName,CurrentCacheNamesToAbsoluteUrl=mappings.currentCacheNamesToAbsoluteUrl;self.addEventListener("install",function(e){e.waitUntil(Promise.all(Object.keys(CurrentCacheNamesToAbsoluteUrl).map(function(e){return caches.open(e).then(function(t){return t.keys().then(function(a){if(0===a.length){var n=e.split("-").pop(),r=getCacheBustedUrl(CurrentCacheNamesToAbsoluteUrl[e],n),c=new Request(r,{credentials:"same-origin"});return fetch(c).then(function(a){return a.ok?t.put(CurrentCacheNamesToAbsoluteUrl[e],a):(console.error("Request for %s returned a response status %d, so not attempting to cache it.",r,a.status),caches.delete(e))})}})})})).then(function(){return caches.keys().then(function(e){return Promise.all(e.filter(function(e){return 0===e.indexOf(CacheNamePrefix)&&!(e in CurrentCacheNamesToAbsoluteUrl)}).map(function(e){return caches.delete(e)}))})}).then(function(){"function"==typeof self.skipWaiting&&self.skipWaiting()}))}),self.clients&&"function"==typeof self.clients.claim&&self.addEventListener("activate",function(e){e.waitUntil(self.clients.claim())}),self.addEventListener("message",function(e){"delete_all"===e.data.command&&(console.log("About to delete all caches..."),deleteAllCaches().then(function(){console.log("Caches deleted."),e.ports[0].postMessage({error:null})}).catch(function(t){console.log("Caches not deleted:",t),e.ports[0].postMessage({error:t})}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t=stripIgnoredUrlParameters(e.request.url,IgnoreUrlParametersMatching),a=AbsoluteUrlToCacheName[t],n="index.html";!a&&n&&(t=addDirectoryIndex(t,n),a=AbsoluteUrlToCacheName[t]);var r="/";if(!a&&r&&e.request.headers.has("accept")&&e.request.headers.get("accept").includes("text/html")&&isPathWhitelisted(["^((?!(static|api|service_worker.js)).)*$"],e.request.url)){var c=new URL(r,self.location);a=AbsoluteUrlToCacheName[c.toString()]}a&&e.respondWith(caches.open(a).then(function(e){return e.keys().then(function(t){return e.match(t[0]).then(function(e){if(e)return e;throw Error("The cache "+a+" is empty.")})})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.reLine truncated
"use strict";function deleteAllCaches(){return caches.keys().then(function(e){return Promise.all(e.map(function(e){return caches.delete(e)}))})}var PrecacheConfig=[["/","ffc36602b1ea77d4d0c221ae1d32709c"],["/frontend/panels/dev-event-20327fbd4fb0370aec9be4db26fd723f.html","a9b6eced242c1934a331c05c30e22148"],["/frontend/panels/dev-info-28e0a19ceb95aa714fd53228d9983a49.html","75862082477c802a12d2bf8705990d85"],["/frontend/panels/dev-service-85fd5b48600418bb5a6187539a623c38.html","353e4d80fedbcde9b51e08a78a9ddb86"],["/frontend/panels/dev-state-25d84d7b7aea779bb3bb3cd6c155f8d9.html","7fc5b1880ba4a9d6e97238e8e5a44d69"],["/frontend/panels/dev-template-d079abf61cff9690f828cafb0d29b7e7.html","6e512a2ba0eb7aeba956ca51048e701e"],["/frontend/panels/map-dfe141a3fa5fd403be554def1dd039a9.html","f061ec88561705f7787a00289450c006"],["/static/core-9f8d95cc1ccda7134a035e6e48b08681.js","6886bba6ac533e732ab5f0d5343a6038"],["/static/frontend-fcda78dd3acd52b8e0c8289890798239.html","69ce37ded1db7a495bad71312f91bafd"],["/static/mdi-a7fa9237b7da93951076b4fe26cb8cd2.html","bd484adf5c530c651d98621ece280d3a"],["static/fonts/roboto/Roboto-Bold.ttf","d329cc8b34667f114a95422aaad1b063"],["static/fonts/roboto/Roboto-Light.ttf","7b5fb88f12bec8143f00e21bc3222124"],["static/fonts/roboto/Roboto-Medium.ttf","fe13e4170719c2fc586501e777bde143"],["static/fonts/roboto/Roboto-Regular.ttf","ac3f799d5bbaf5196fab15ab8de8431c"],["static/icons/favicon-192x192.png","419903b8422586a7e28021bbe9011175"],["static/icons/favicon.ico","04235bda7843ec2fceb1cbe2bc696cf4"],["static/images/card_media_player_bg.png","a34281d1c1835d338a642e90930e61aa"],["static/webcomponents-lite.min.js","b0f32ad3c7749c40d486603f31c9d8b1"]],CacheNamePrefix="sw-precache-v1--"+(self.registration?self.registration.scope:"")+"-",IgnoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var a=new URL(e);return"/"===a.pathname.slice(-1)&&(a.pathname+=t),a.toString()},getCacheBustedUrl=function(e,t){t=t||Date.now();var a=new URL(e);return a.search+=(a.search?"&":"")+"sw-precache="+t,a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var a=new URL(t).pathname;return e.some(function(e){return a.match(e)})},populateCurrentCacheNames=function(e,t,a){var n={},r={};return e.forEach(function(e){var c=new URL(e[0],a).toString(),o=t+c+"-"+e[1];r[o]=c,n[c]=o}),{absoluteUrlToCacheName:n,currentCacheNamesToAbsoluteUrl:r}},stripIgnoredUrlParameters=function(e,t){var a=new URL(e);return a.search=a.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(e){return t.every(function(t){return!t.test(e[0])})}).map(function(e){return e.join("=")}).join("&"),a.toString()},mappings=populateCurrentCacheNames(PrecacheConfig,CacheNamePrefix,self.location),AbsoluteUrlToCacheName=mappings.absoluteUrlToCacheName,CurrentCacheNamesToAbsoluteUrl=mappings.currentCacheNamesToAbsoluteUrl;self.addEventListener("install",function(e){e.waitUntil(Promise.all(Object.keys(CurrentCacheNamesToAbsoluteUrl).map(function(e){return caches.open(e).then(function(t){return t.keys().then(function(a){if(0===a.length){var n=e.split("-").pop(),r=getCacheBustedUrl(CurrentCacheNamesToAbsoluteUrl[e],n),c=new Request(r,{credentials:"same-origin"});return fetch(c).then(function(a){return a.ok?t.put(CurrentCacheNamesToAbsoluteUrl[e],a):(console.error("Request for %s returned a response status %d, so not attempting to cache it.",r,a.status),caches.delete(e))})}})})})).then(function(){return caches.keys().then(function(e){return Promise.all(e.filter(function(e){return 0===e.indexOf(CacheNamePrefix)&&!(e in CurrentCacheNamesToAbsoluteUrl)}).map(function(e){return caches.delete(e)}))})}).then(function(){"function"==typeof self.skipWaiting&&self.skipWaiting()}))}),self.clients&&"function"==typeof self.clients.claim&&self.addEventListener("activate",function(e){e.waitUntil(self.clients.claim())}),self.addEventListener("message",function(e){"delete_all"===e.data.command&&(console.log("About to delete all caches..."),deleteAllCaches().then(function(){console.log("Caches deleted."),e.ports[0].postMessage({error:null})}).catch(function(t){console.log("Caches not deleted:",t),e.ports[0].postMessage({error:t})}))}),self.addEventListener("fetch",function(e){if("GET"===e.request.method){var t=stripIgnoredUrlParameters(e.request.url,IgnoreUrlParametersMatching),a=AbsoluteUrlToCacheName[t],n="index.html";!a&&n&&(t=addDirectoryIndex(t,n),a=AbsoluteUrlToCacheName[t]);var r="/";if(!a&&r&&e.request.headers.has("accept")&&e.request.headers.get("accept").includes("text/html")&&isPathWhitelisted(["^((?!(static|api|service_worker.js)).)*$"],e.request.url)){var c=new URL(r,self.location);a=AbsoluteUrlToCacheName[c.toString()]}a&&e.respondWith(caches.open(a).then(function(e){return e.keys().then(function(t){return e.match(t[0]).then(function(e){if(e)return e;throw Error("The cache "+a+" is empty.")})})}).catch(function(t){return console.warn('Couldn\'t serve response for "%s" from cache: %O',e.request.url,t),fetch(e.reLine truncated