t.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),s++;case 29:n.next=5;break;case 31:n.next=36;break;case 33:n.prev=33,n.t0=n["catch"](3),i.e(n.t0);case 36:return n.prev=36,i.f(),n.finish(36);case 39:case"end":return n.stop()}}),n,null,[[3,33,36,39]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e},t.app.options.loading=!1}))}},{key:"handleData",value:function(e){var t=JSON.parse(e),n=null;if(!t[2].match("0){var n=t.handleData(e);n&&t.app.data.deviceList.forEach((function(e,a){var r=t.app.data.deviceList[a],s=Object.assign({},r);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(s,"Readings",n.param,n.paramPart)&&(s.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s,"Attributes",n.param)&&(s.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)),"Connected"in e&&Object.values(e.Connected).forEach((function(r,i){if(r.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(s.Connected[o],"Readings",n.param,n.paramPart)&&(s.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s.Connected[o],"Attributes",n.param)&&(s.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)}}))}))}}))}},{key:"connClose",value:function(){var e=this;this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,this.app.session.restart||(this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.init()}),3e3)),this.log={type:"info",message:"Connection with FHEM was closed. Try to Reconnect in 3 seconds..."}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"info",message:"Connection with FHEM is opened.",meta:e.session},e.app.options.loading=!1})).catch((function(t){e.app.session.csrf=null,e.app.session.connect=!1,e.log={type:"error",message:"Retrieve csrf-Token failed.",meta:t}})).finally((function(){return e.app.options.loading=!1}))}},{key:"init",value:function(){var e=this,t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(t).replace("http","ws");this.app.socket=new WebSocket(n),this.app.socket.onopen=function(){return e.connOpen()},this.app.socket.onmessage=function(t){return e.doUpdate(t)},this.app.socket.onclose=function(){return e.connClose()},setInterval((function(){e.app.options.clock=(new Date).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}),1e3)}}]),n}(oe.a),ue=n("1321"),pe=n.n(ue);r["a"].use(pe.a),r["a"].component("apexchart",pe.a),r["a"].config.productionTip=!1,r["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){r["a"].prototype.$fhem.log={type:"error",message:"Loading config.json failed.",meta:e}})).then((function(e){var t;e&&(e.connection&&Object.assign(r["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(r["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=r["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Y.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Y.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Y.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"info",message:"Config: "+JSON.stringify(e)},r["a"].prototype.$fhem.log={type:"info",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection)},new r["a"]({vuetify:Y,router:J,render:function(e){return e(q)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}});
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-27250ed3.11aa815c.js b/www/fhemapp/js/chunk-27250ed3.11aa815c.js
new file mode 100644
index 00000000..cb8082a2
--- /dev/null
+++ b/www/fhemapp/js/chunk-27250ed3.11aa815c.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27250ed3"],{"297c":function(t,e,s){"use strict";s("a9e3");var a=s("2b0e"),r=s("37c6");e["a"]=a["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(r["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var a=s("8e36");e["a"]=a["a"]},"615b":function(t,e,s){},"6ece":function(t,e,s){},8308:function(t,e,s){},"86eb":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{staticClass:"col-12 col-sm-12 col-md-6 col-lg-6"},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),s("v-divider"),s("v-card-subtitle",[t._v(" "+t._s(t.vals.subTitle)+" ")]),s("v-card-text",[s("v-row",[s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" CPU Auslastung: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.cpuVal,color:t.vals.cpuColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.cpuVal+" %"))])],1),s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" RAM Auslastung: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.ramVal,color:t.vals.ramColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.ramVal+" %"))])],1),s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" CPU Temperatur: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.tempVal,color:t.vals.tempColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.tempVal+" C°"))])],1)],1),s("v-row",[s("v-col",[s("div",[t._v("Server läuft seit:")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.startServer)+" ")])]),s("v-col",[s("div",[t._v("FHEM läuft seit:")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.startFhem)+" ")])]),s("v-col",{attrs:{align:"right"}})],1)],1),s("v-card-actions",[s("v-btn",{staticClass:"mr-2",on:{click:function(e){return t.goTo()}}},[s("v-icon",[t._v("mdi-format-list-bulleted")])],1),s("v-spacer"),s("v-btn",{attrs:{disabled:!t.update},on:{click:t.fhemUpdate}},[t._v(" "+t._s(t.updateText)+" ")]),s("v-btn",{attrs:{disabled:!t.restart},on:{click:t.fhemRestart}},[t._v(" Restart ")])],1),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[t._v(t._s(t.vals.systemIcon))]),s("v-spacer"),t._v(" "+t._s(t.vals.systemLastEvent)+" "),s("v-spacer")],1)],1)],1)},r=[],i=s("1da1"),n=(s("96cf"),s("1276"),s("ac1f"),s("b680"),s("d3b7"),{props:{item:{type:Object,default:function(){return{name:"sysmon"}}}},data:function(){return{name:"sysmon",vals:{title:"",mainLevel:100,mainColor:"success",cpuVal:0,cpuColor:"",ramVal:0,ramColor:"success",tempVal:0,tempColor:"success",startServer:"",startFhem:"",systemIcon:"mdi-server",systemLastEvent:""},restart:!0,update:!0,updateText:"prüfe updates...",app:{options:{updateProcess:!1}}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=parseFloat(100-this.$fhem.getEl(t,"Readings","cpu_idle_stat","Value").split(" ")[2]),s=parseFloat(this.$fhem.getEl(t,"Readings","ram","Value").split(" ")[6]),a=parseFloat(this.$fhem.getEl(t,"Readings","cpu_temp","Value")),r=this.$fhem.getEl(t,"Readings","ram","Time"),i=this.$fhem.getEl(t,"Readings","starttime_text","Value"),n=this.$fhem.getEl(t,"Readings","fhemstarttime_text","Value"),o=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||o,this.vals.subTitle=this.$fhem.getEl(t,"Readings","cpu_model_name","Value")||"",this.vals.cpuVal=e?e.toFixed(1):"",this.vals.cpuColor=e>70?"error":"success",this.vals.ramVal=s?s.toFixed(1):"",this.vals.ramColor=s>70?"error":"success",this.vals.tempVal=a?a.toFixed(1):"",this.vals.tempColor=a>60?"error":"success",this.vals.mainColor=e>70||s>70||a>60?"error":"success",this.vals.startServer=i,this.vals.startFhem=n,this.vals.systemLastEvent=this.$fhem.getDateTime(r)}},"app.options.updateProcess":function(t){t||(this.$fhem.emit("message",{type:"success",message:"Update war erfolgreich. Das System sollte neu gestartet werden."}),this.updateText="system aktuell",this.restart=!0)}},mounted:function(){this.app.options=this.$fhem.app.options,this.fhemUpdateCheck()},methods:{fhemRestart:function(){this.restart=!1,this.$fhem.request({param:"cmd",value:"shutdown restart"})},fhemUpdateCheck:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){t.restart=!1,t.update=!1,t.$fhem.checkUpdate().then((function(s){s?(t.updateText="update",t.update=!0):t.updateText="system aktuell",e(s)})).catch((function(e){t.$fhem.emit("message",{type:"error",message:"Updateprüfung fehlgeschlagen.",meta:e}),s()})).finally((function(){t.restart=!0}))})),e.abrupt("return",s);case 2:case"end":return e.stop()}}),e)})))()},fhemUpdate:function(){this.restart=!1,this.update=!1,this.updateText="update läuft...",this.app.options.updateProcess=!0,this.$fhem.request({param:"cmd",value:"update"})},goTo:function(){this.$router.push("syslog")}}}),o=n,l=s("2877"),c=s("6544"),u=s.n(c),d=s("8336"),h=s("b0af"),v=s("99d9"),m=s("62ad"),p=s("ce7e"),g=s("132d"),f=s("8e36"),b=s("0fd9"),_=s("2fa4"),y=s("afd9"),C=Object(l["a"])(o,a,r,!1,null,null,null);e["default"]=C.exports;u()(C,{VBtn:d["a"],VCard:h["a"],VCardActions:v["a"],VCardSubtitle:v["b"],VCardText:v["c"],VCardTitle:v["d"],VCol:m["a"],VDivider:p["a"],VIcon:g["a"],VProgressLinear:f["a"],VRow:b["a"],VSpacer:_["a"],VSystemBar:y["a"]})},"8e36":function(t,e,s){"use strict";var a=s("5530"),r=s("ade3"),i=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),n=s("a9ad"),o=s("fe6c"),l=s("a452"),c=s("7560"),u=s("80d2"),d=s("58df"),h=Object(d["a"])(n["a"],Object(o["b"])(["absolute","fixed","top","bottom"]),l["a"],c["a"]);e["a"]=h.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(u["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(u["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(r["a"])(t,this.isReversed?"right":"left",Object(u["g"])(this.normalizedValue,"%")),Object(r["a"])(t,"width",Object(u["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(a["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?i["c"]:i["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(u["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(u["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(r["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(u["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return o})),s.d(e,"d",(function(){return l}));var a=s("b0af"),r=s("80d2"),i=Object(r["i"])("v-card__actions"),n=Object(r["i"])("v-card__subtitle"),o=Object(r["i"])("v-card__text"),l=Object(r["i"])("v-card__title");a["a"]},afd9:function(t,e,s){"use strict";var a=s("5530"),r=(s("a9e3"),s("c7cd"),s("8308"),s("3a66")),i=s("a9ad"),n=s("7560"),o=s("58df"),l=s("80d2");e["a"]=Object(o["a"])(Object(r["a"])("bar",["height","window"]),i["a"],n["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b0af:function(t,e,s){"use strict";var a=s("5530"),r=(s("a9e3"),s("0481"),s("615b"),s("10d2")),i=s("297c"),n=s("1c87"),o=s("58df");e["a"]=Object(o["a"])(i["a"],n["a"],r["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(a["a"])(Object(a["a"])({"v-card":!0},n["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},r["a"].options.computed.classes.call(this))},styles:function(){var t=Object(a["a"])({},r["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=i["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,a=e.data;return a.style=this.styles,this.isClickable&&(a.attrs=a.attrs||{},a.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,a),[this.genProgress(),this.$slots.default])}})}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-27250ed3.cac11d8b.js b/www/fhemapp/js/chunk-27250ed3.cac11d8b.js
deleted file mode 100644
index 2afcfacd..00000000
--- a/www/fhemapp/js/chunk-27250ed3.cac11d8b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27250ed3"],{"297c":function(t,e,s){"use strict";s("a9e3");var a=s("2b0e"),r=s("37c6");e["a"]=a["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(r["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var a=s("8e36");e["a"]=a["a"]},"615b":function(t,e,s){},"6ece":function(t,e,s){},8308:function(t,e,s){},"86eb":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{staticClass:"col-12 col-sm-12 col-md-6 col-lg-6"},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),s("v-divider"),s("v-card-subtitle",[t._v(" "+t._s(t.vals.subTitle)+" ")]),s("v-card-text",[s("v-row",[s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" CPU Auslastung: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.cpuVal,color:t.vals.cpuColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.cpuVal+" %"))])],1),s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" RAM Auslastung: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.ramVal,color:t.vals.ramColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.ramVal+" %"))])],1),s("v-col",[s("div",{staticClass:"text-truncate"},[t._v(" CPU Temperatur: ")]),s("v-progress-linear",{attrs:{height:"7",value:t.vals.tempVal,color:t.vals.tempColor,"background-color":"secondary lighten-4"}}),s("div",[t._v(t._s(t.vals.tempVal+" C°"))])],1)],1),s("v-row",[s("v-col",[s("div",[t._v("Server läuft seit:")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.startServer)+" ")])]),s("v-col",[s("div",[t._v("FHEM läuft seit:")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.startFhem)+" ")])]),s("v-col",{attrs:{align:"right"}})],1)],1),s("v-card-actions",[s("v-btn",{staticClass:"mr-2",on:{click:function(e){return t.goTo()}}},[s("v-icon",[t._v("mdi-format-list-bulleted")])],1),s("v-spacer"),s("v-btn",{attrs:{disabled:!t.update},on:{click:t.fhemUpdate}},[t._v(" "+t._s(t.updateText)+" ")]),s("v-btn",{attrs:{disabled:!t.restart},on:{click:t.fhemRestart}},[t._v(" Restart ")])],1),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[t._v(t._s(t.vals.systemIcon))]),s("v-spacer"),t._v(" "+t._s(t.vals.systemLastEvent)+" "),s("v-spacer")],1)],1)],1)},r=[],i=s("1da1"),n=(s("96cf"),s("1276"),s("ac1f"),s("b680"),s("d3b7"),{props:{item:{type:Object,default:function(){return{name:"sysmon"}}}},data:function(){return{name:"sysmon",vals:{title:"",mainLevel:100,mainColor:"success",cpuVal:0,cpuColor:"",ramVal:0,ramColor:"success",tempVal:0,tempColor:"success",startServer:"",startFhem:"",systemIcon:"mdi-server",systemLastEvent:""},restart:!0,update:!0,updateText:"prüfe updates...",app:{options:{updateProcess:!1}}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=parseFloat(100-this.$fhem.getEl(t,"Readings","cpu_idle_stat","Value").split(" ")[2]),s=parseFloat(this.$fhem.getEl(t,"Readings","ram","Value").split(" ")[6]),a=parseFloat(this.$fhem.getEl(t,"Readings","cpu_temp","Value")),r=this.$fhem.getEl(t,"Readings","ram","Time"),i=this.$fhem.getEl(t,"Readings","starttime_text","Value"),n=this.$fhem.getEl(t,"Readings","fhemstarttime_text","Value"),o=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||o,this.vals.subTitle=this.$fhem.getEl(t,"Readings","cpu_model_name","Value")||"",this.vals.cpuVal=e?e.toFixed(1):"",this.vals.cpuColor=e>70?"error":"success",this.vals.ramVal=s?s.toFixed(1):"",this.vals.ramColor=s>70?"error":"success",this.vals.tempVal=a?a.toFixed(1):"",this.vals.tempColor=a>60?"error":"success",this.vals.mainColor=e>70||s>70||a>60?"error":"success",this.vals.startServer=this.$fhem.getDateTime(i),this.vals.startFhem=this.$fhem.getDateTime(n),this.vals.systemLastEvent=this.$fhem.getDateTime(r)}},"app.options.updateProcess":function(t){t||(this.$fhem.emit("message",{type:"success",message:"Update war erfolgreich. Das System sollte neu gestartet werden."}),this.updateText="system aktuell",this.restart=!0)}},mounted:function(){this.app.options=this.$fhem.app.options,this.fhemUpdateCheck()},methods:{fhemRestart:function(){this.restart=!1,this.$fhem.request({param:"cmd",value:"shutdown restart"})},fhemUpdateCheck:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){t.restart=!1,t.update=!1,t.$fhem.checkUpdate().then((function(s){s?(t.updateText="update",t.update=!0):t.updateText="system aktuell",e(s)})).catch((function(e){t.$fhem.emit("message",{type:"error",message:"Updateprüfung fehlgeschlagen.",meta:e}),s()})).finally((function(){t.restart=!0}))})),e.abrupt("return",s);case 2:case"end":return e.stop()}}),e)})))()},fhemUpdate:function(){this.restart=!1,this.update=!1,this.updateText="update läuft...",this.app.options.updateProcess=!0,this.$fhem.request({param:"cmd",value:"update"})},goTo:function(){this.$router.push("syslog")}}}),o=n,l=s("2877"),c=s("6544"),u=s.n(c),h=s("8336"),d=s("b0af"),v=s("99d9"),m=s("62ad"),p=s("ce7e"),g=s("132d"),f=s("8e36"),b=s("0fd9"),_=s("2fa4"),y=s("afd9"),C=Object(l["a"])(o,a,r,!1,null,null,null);e["default"]=C.exports;u()(C,{VBtn:h["a"],VCard:d["a"],VCardActions:v["a"],VCardSubtitle:v["b"],VCardText:v["c"],VCardTitle:v["d"],VCol:m["a"],VDivider:p["a"],VIcon:g["a"],VProgressLinear:f["a"],VRow:b["a"],VSpacer:_["a"],VSystemBar:y["a"]})},"8e36":function(t,e,s){"use strict";var a=s("5530"),r=s("ade3"),i=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),n=s("a9ad"),o=s("fe6c"),l=s("a452"),c=s("7560"),u=s("80d2"),h=s("58df"),d=Object(h["a"])(n["a"],Object(o["b"])(["absolute","fixed","top","bottom"]),l["a"],c["a"]);e["a"]=d.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(u["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(u["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(r["a"])(t,this.isReversed?"right":"left",Object(u["g"])(this.normalizedValue,"%")),Object(r["a"])(t,"width",Object(u["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(a["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?i["c"]:i["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(u["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(u["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(r["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(u["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return o})),s.d(e,"d",(function(){return l}));var a=s("b0af"),r=s("80d2"),i=Object(r["i"])("v-card__actions"),n=Object(r["i"])("v-card__subtitle"),o=Object(r["i"])("v-card__text"),l=Object(r["i"])("v-card__title");a["a"]},afd9:function(t,e,s){"use strict";var a=s("5530"),r=(s("a9e3"),s("c7cd"),s("8308"),s("3a66")),i=s("a9ad"),n=s("7560"),o=s("58df"),l=s("80d2");e["a"]=Object(o["a"])(Object(r["a"])("bar",["height","window"]),i["a"],n["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b0af:function(t,e,s){"use strict";var a=s("5530"),r=(s("a9e3"),s("0481"),s("615b"),s("10d2")),i=s("297c"),n=s("1c87"),o=s("58df");e["a"]=Object(o["a"])(i["a"],n["a"],r["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(a["a"])(Object(a["a"])({"v-card":!0},n["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},r["a"].options.computed.classes.call(this))},styles:function(){var t=Object(a["a"])({},r["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=i["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,a=e.data;return a.style=this.styles,this.isClickable&&(a.attrs=a.attrs||{},a.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,a),[this.genProgress(),this.$slots.default])}})}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-83618c9a.6c4e7b37.js b/www/fhemapp/js/chunk-83618c9a.6c4e7b37.js
new file mode 100644
index 00000000..6992a788
--- /dev/null
+++ b/www/fhemapp/js/chunk-83618c9a.6c4e7b37.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-83618c9a"],{"121f":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),t.multiLevel&&t.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.setLevel()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.multiLevelIcon)+" ")])],1):t._e()],1),i("v-divider"),t.vals.main.slider&&t.isActive?t._e():i("v-card-text",[i("v-row",{attrs:{align:"center"}},[0==t.vals.main.leftMenu.length&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{mousedown:function(e){return t.clickStart("left")},mouseup:function(e){return t.clickEnd("left")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)],1):t._e(),t.vals.main.leftMenu.length>0&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)]}}],null,!1,3898370877)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.leftMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text)+" ")])]),t.vals.main.text2&&t.isActive?i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text2)+" ")])]):t._e(),t.vals.main.rightBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),0==t.vals.main.rightMenu.length&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{mousedown:function(e){return t.clickStart("right")},mouseup:function(e){return t.clickEnd("right")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)],1):t._e(),t.vals.main.rightMenu.length>0&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)]}}],null,!1,845781958)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.rightMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?i("v-card-text",[i("v-slider",{attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"",color:"accent"},on:{change:t.setSlider},scopedSlots:t._u([t.vals.main.leftBtn?{key:"prepend",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("left")}}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("right")}}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(e){t.$set(t.vals.main,"sliderCurrent",e)},expression:"vals.main.sliderCurrent"}})],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),i("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),i("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),i("v-icon",{staticClass:"mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},n=[],a=i("b85c"),l=(i("1276"),i("ac1f"),i("466d"),i("c740"),i("5319"),{props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:[],error:[]},main:[{leftBtn:"",text:"Template unbekannt",rightBtn:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,leftMenu:[],text:"",text2:"",slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,rightBtn:"",rightBtnDisabled:!1,rightMenu:[]},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues()}},setup:{deep:!0,handler:function(){this.setValues()}}},mounted:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),i=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),i&&Object.assign(this.setup.main,i),s&&Object.assign(this.setup.info,s),this.setLevel(0)},methods:{sendCmd:function(t,e){var i=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){i.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var e=t.split(" ");4===e.length&&this.$fhem.getEl(this.item,"Readings",e[2],"Value")&&(this.item.Readings[e[2]].Value=e[3])},clickStart:function(t){var e=this;this.long=!1,this.timer=setInterval((function(){e.long=!0;var i=e.setup.main[e.mainLevel][t+"Long"];if(i){var s=e.$fhem.handleVals(e.item,i);if(s[0]){var n=s[0].match("set")?s[0]:"set "+e.item.Name+" "+s[0];e.sendCmd(n),e.timer=clearInterval(e.timer)}}}),1e3)},clickEnd:function(t){this.timer=clearInterval(this.timer);var e=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){this.vals.main.sliderPrevent=!1;var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0],n=-1!=e.findIndex((function(t){return t.match("%i")}));!this.long&&n&&this.updateReading(s),this.sendCmd(s,n)}}},setSlider:function(t){var e=this.setup.main[this.mainLevel].slider;if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){this.vals.main.sliderPrevent=!0;var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0];s=s.replace("%v",t),this.sendCmd(s)}}},createMenu:function(t){var e=[];if(t&&t.length>0){var i,s=Object(a["a"])(t);try{for(s.s();!(i=s.n()).done;){var n=i.value,l=n.split(":");if(l.length>1){var r=l[1].match("set")?l[1]:"set "+this.item.Name+" "+l[1];e.push({name:l[0],cmd:r})}}}catch(h){s.e(h)}finally{s.f()}}return e},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),l=this.createMenu(this.setup.main[this.mainLevel].leftMenu),r=this.createMenu(this.setup.main[this.mainLevel].rightMenu);this.vals.main.text=e[0]||"",this.vals.main.text2=i[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=n[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!n[1],this.vals.main.leftMenu=l,this.vals.main.rightMenu=r,this.vals.main.slider=!!a[0],this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===a[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=a[1]||0):this.vals.main.sliderCurrent=a[1]||0},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.createMenu(this.setup.main[this.mainLevel].leftMenu),h=this.createMenu(this.setup.main[this.mainLevel].rightMenu),o=this.$fhem.handleVals(this.item,this.setup.info.left1),c=this.$fhem.handleVals(this.item,this.setup.info.left2),u=this.$fhem.handleVals(this.item,this.setup.info.mid1),d=this.$fhem.handleVals(this.item,this.setup.info.mid2),v=this.$fhem.handleVals(this.item,this.setup.info.right1),m=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=o[1]||"",this.vals.info.left1Text=o[0]||"",this.vals.info.left2Icon=c[1]||"",this.vals.info.left2Text=c[0]||"",this.vals.info.mid1Icon=u[1]||"",this.vals.info.mid1Text=u[0]||"",this.vals.info.mid2Icon=d[1]||"",this.vals.info.mid2Text=d[0]||"",this.vals.info.right1Icon=v[1]||"",this.vals.info.right1Text=v[0]||"",this.vals.info.right2Icon=m[1]||"",this.vals.info.right2Text=m[0]||"",this.vals.main.text=i[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!n[0],this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===n[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=n[1]||0):this.vals.main.sliderCurrent=n[1]||0,this.vals.main.leftBtn=a[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!a[1],this.vals.main.rightBtnDisabled=!!l[1],this.vals.main.leftMenu=r,this.vals.main.rightMenu=h,e.length>0?(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error",this.vals.main.text=e[2]||"Fehler",this.isActive=!1):this.isActive=!0}}}}),r=l,h=i("2877"),o=i("6544"),c=i.n(o),u=i("8336"),d=i("b0af"),v=i("99d9"),m=i("62ad"),f=i("ce7e"),p=i("132d"),g=i("8860"),b=i("da13"),x=i("5d23"),k=i("1baa"),C=i("e449"),y=i("8e36"),_=i("0fd9"),T=i("ba0d"),$=i("2fa4"),V=i("afd9"),w=Object(h["a"])(r,s,n,!1,null,null,null);e["default"]=w.exports;c()(w,{VBtn:u["a"],VCard:d["a"],VCardText:v["c"],VCardTitle:v["d"],VCol:m["a"],VDivider:f["a"],VIcon:p["a"],VList:g["a"],VListItem:b["a"],VListItemContent:x["a"],VListItemGroup:k["a"],VListItemTitle:x["c"],VMenu:C["a"],VProgressLinear:y["a"],VRow:_["a"],VSlider:T["a"],VSpacer:$["a"],VSystemBar:V["a"]})},"480e":function(t,e,i){"use strict";i("7db0");var s=i("7560");e["a"]=s["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:s["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},8308:function(t,e,i){},"9e29":function(t,e,i){},afd9:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),a=i("a9ad"),l=i("7560"),r=i("58df"),h=i("80d2");e["a"]=Object(r["a"])(Object(n["a"])("bar",["height","window"]),a["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(h["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(h["s"])(this))}})},ba0d:function(t,e,i){"use strict";var s=i("ade3"),n=i("5530"),a=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),l=i("0789"),r=i("58df"),h=i("297c"),o=i("a293"),c=i("80d2"),u=i("d9bd");e["a"]=Object(r["a"])(a["a"],h["a"]).extend({name:"v-slider",directives:{ClickOutside:o["a"]},mixins:[h["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(n["a"])(Object(n["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",n=this.vertical?"height":"width",a=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,l),Object(s["a"])(t,n,r),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",n="0px",a=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,a),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},l)},genThumbContainer:function(t,e,i,s,a,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",h=[this.genThumb()],o=this.genThumbLabelContent(t);return this.showThumbLabel&&h.push(this.genThumbLabel(o)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(n["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:l,keydown:this.onKeyDown}}),h)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(c["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},n=!!c["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300));var a="touches"in t;this.onMouseMove(t),this.app.addEventListener(a?"touchmove":"mousemove",this.onMouseMove,n),Object(c["a"])(this.app,a?"touchend":"mouseup",this.onSliderMouseUp,s),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",n=this.$refs.track.getBoundingClientRect(),a=n[e],l=n[i],r="touches"in t?t.touches[0][s]:t[s],h=Math.min(Math.max((r-a)/l,0),1)||0;return this.vertical&&(h=1-h),this.$vuetify.rtl&&(h=1-h),parseFloat(this.min)+h*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=c["x"].pageup,s=c["x"].pagedown,n=c["x"].end,a=c["x"].home,l=c["x"].left,r=c["x"].right,h=c["x"].down,o=c["x"].up;if([i,s,n,a,l,r,h,o].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([l,r,h,o].includes(t.keyCode)){var v=this.$vuetify.rtl?[l,o]:[r,o],m=v.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;e+=m*u*f}else if(t.keyCode===a)e=this.minValue;else if(t.keyCode===n)e=this.maxValue;else{var p=t.keyCode===s?1:-1;e-=p*u*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(i))}}})},e449:function(t,e,i){"use strict";var s=i("ade3"),n=i("2909"),a=i("5530"),l=(i("a9e3"),i("7db0"),i("a630"),i("3ca3"),i("99af"),i("498a"),i("caad"),i("2532"),i("ee6f"),i("480e")),r=i("4ad4"),h=i("16b7"),o=i("b848"),c=i("75eb"),u=i("f573"),d=i("e4d3"),v=i("a236"),m=i("f2e7"),f=i("7560"),p=i("a293"),g=i("dc22"),b=i("58df"),x=i("d9bd"),k=i("80d2"),C=Object(b["a"])(o["a"],h["a"],c["a"],u["a"],d["a"],v["a"],m["a"],f["a"]);e["a"]=C.extend({name:"v-menu",directives:{ClickOutside:p["a"],Resize:g["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(k["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(k["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(k["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(k["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(k["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(k["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(x["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==k["x"].tab){if(t.keyCode===k["x"].down)this.nextTile();else if(t.keyCode===k["x"].up)this.prevTile();else if(t.keyCode===k["x"].end)this.lastTile();else if(t.keyCode===k["x"].home)this.firstTile();else{if(t.keyCode!==k["x"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=r["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(a["a"])(Object(a["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=u["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(n["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(a["a"])(Object(a["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(a["a"])(Object(a["a"])(Object(a["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(s["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===k["x"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[k["x"].up,k["x"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(l["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4d3:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},ee6f:function(t,e,i){}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-83618c9a.ca2a0c78.js b/www/fhemapp/js/chunk-83618c9a.ca2a0c78.js
deleted file mode 100644
index 727bf9fc..00000000
--- a/www/fhemapp/js/chunk-83618c9a.ca2a0c78.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-83618c9a"],{"121f":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),t.multiLevel&&t.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.setLevel()}}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.multiLevelIcon)+" ")])],1):t._e()],1),i("v-divider"),t.vals.main.slider&&t.isActive?t._e():i("v-card-text",[i("v-row",{attrs:{align:"center"}},[0==t.vals.main.leftMenu.length&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{touchstart:function(e){return t.clickStart("left")},touchend:function(e){return t.clickEnd("left")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)],1):t._e(),t.vals.main.leftMenu.length>0&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)]}}],null,!1,3898370877)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.leftMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text)+" ")])]),t.vals.main.text2&&t.isActive?i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text2)+" ")])]):t._e(),t.vals.main.rightBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),0==t.vals.main.rightMenu.length&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{touchstart:function(e){return t.clickStart("right")},touchend:function(e){return t.clickEnd("right")}}},[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)],1):t._e(),t.vals.main.rightMenu.length>0&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)]}}],null,!1,845781958)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.rightMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(e.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?i("v-card-text",[i("v-slider",{attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"",color:"accent"},on:{change:t.setSlider},scopedSlots:t._u([t.vals.main.leftBtn?{key:"prepend",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("left")}}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("right")}}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(e){t.$set(t.vals.main,"sliderCurrent",e)},expression:"vals.main.sliderCurrent"}})],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),i("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),i("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),i("v-icon",{staticClass:"mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},n=[],a=i("b85c"),l=(i("1276"),i("ac1f"),i("466d"),i("c740"),i("5319"),{props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:[],error:[]},main:[{leftBtn:"",text:"Template unbekannt",rightBtn:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,leftMenu:[],text:"",text2:"",slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,rightBtn:"",rightBtnDisabled:!1,rightMenu:[]},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues()}},setup:{deep:!0,handler:function(){this.setValues()}}},mounted:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","status"),i=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&Object.assign(this.setup.status,e),i&&Object.assign(this.setup.main,i),s&&Object.assign(this.setup.info,s),this.setLevel(0)},methods:{sendCmd:function(t,e){var i=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){i.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var e=t.split(" ");4===e.length&&this.$fhem.getEl(this.item,"Readings",e[2],"Value")&&(this.item.Readings[e[2]].Value=e[3])},clickStart:function(t){var e=this;this.long=!1,this.timer=setInterval((function(){e.long=!0;var i=e.setup.main[e.mainLevel][t+"Long"];if(i){var s=e.$fhem.handleVals(e.item,i);if(s[0]){var n=s[0].match("set")?s[0]:"set "+e.item.Name+" "+s[0];e.sendCmd(n),e.timer=clearInterval(e.timer)}}}),1e3)},clickEnd:function(t){this.timer=clearInterval(this.timer);var e=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){this.vals.main.sliderPrevent=!1;var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0],n=-1!=e.findIndex((function(t){return t.match("%i")}));!this.long&&n&&this.updateReading(s),this.sendCmd(s,n)}}},setSlider:function(t){var e=this.setup.main[this.mainLevel].slider;if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){this.vals.main.sliderPrevent=!0;var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0];s=s.replace("%v",t),this.sendCmd(s)}}},createMenu:function(t){var e=[];if(t&&t.length>0){var i,s=Object(a["a"])(t);try{for(s.s();!(i=s.n()).done;){var n=i.value,l=n.split(":");if(l.length>1){var r=l[1].match("set")?l[1]:"set "+this.item.Name+" "+l[1];e.push({name:l[0],cmd:r})}}}catch(h){s.e(h)}finally{s.f()}}return e},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),l=this.createMenu(this.setup.main[this.mainLevel].leftMenu),r=this.createMenu(this.setup.main[this.mainLevel].rightMenu);this.vals.main.text=e[0]||"",this.vals.main.text2=i[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=n[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!n[1],this.vals.main.leftMenu=l,this.vals.main.rightMenu=r,this.vals.main.slider=!!a[0],this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===a[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=a[1]||0):this.vals.main.sliderCurrent=a[1]||0},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.createMenu(this.setup.main[this.mainLevel].leftMenu),h=this.createMenu(this.setup.main[this.mainLevel].rightMenu),o=this.$fhem.handleVals(this.item,this.setup.info.left1),c=this.$fhem.handleVals(this.item,this.setup.info.left2),u=this.$fhem.handleVals(this.item,this.setup.info.mid1),d=this.$fhem.handleVals(this.item,this.setup.info.mid2),v=this.$fhem.handleVals(this.item,this.setup.info.right1),m=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=o[1]||"",this.vals.info.left1Text=o[0]||"",this.vals.info.left2Icon=c[1]||"",this.vals.info.left2Text=c[0]||"",this.vals.info.mid1Icon=u[1]||"",this.vals.info.mid1Text=u[0]||"",this.vals.info.mid2Icon=d[1]||"",this.vals.info.mid2Text=d[0]||"",this.vals.info.right1Icon=v[1]||"",this.vals.info.right1Text=v[0]||"",this.vals.info.right2Icon=m[1]||"",this.vals.info.right2Text=m[0]||"",this.vals.main.text=i[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!n[0],this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===n[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=n[1]||0):this.vals.main.sliderCurrent=n[1]||0,this.vals.main.leftBtn=a[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!a[1],this.vals.main.rightBtnDisabled=!!l[1],this.vals.main.leftMenu=r,this.vals.main.rightMenu=h,e.length>0?(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error",this.vals.main.text=e[2]||"Fehler",this.isActive=!1):this.isActive=!0}}}}),r=l,h=i("2877"),o=i("6544"),c=i.n(o),u=i("8336"),d=i("b0af"),v=i("99d9"),m=i("62ad"),f=i("ce7e"),p=i("132d"),g=i("8860"),b=i("da13"),x=i("5d23"),k=i("1baa"),C=i("e449"),y=i("8e36"),_=i("0fd9"),T=i("ba0d"),$=i("2fa4"),V=i("afd9"),w=Object(h["a"])(r,s,n,!1,null,null,null);e["default"]=w.exports;c()(w,{VBtn:u["a"],VCard:d["a"],VCardText:v["c"],VCardTitle:v["d"],VCol:m["a"],VDivider:f["a"],VIcon:p["a"],VList:g["a"],VListItem:b["a"],VListItemContent:x["a"],VListItemGroup:k["a"],VListItemTitle:x["c"],VMenu:C["a"],VProgressLinear:y["a"],VRow:_["a"],VSlider:T["a"],VSpacer:$["a"],VSystemBar:V["a"]})},"480e":function(t,e,i){"use strict";i("7db0");var s=i("7560");e["a"]=s["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:s["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},8308:function(t,e,i){},"9e29":function(t,e,i){},afd9:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),a=i("a9ad"),l=i("7560"),r=i("58df"),h=i("80d2");e["a"]=Object(r["a"])(Object(n["a"])("bar",["height","window"]),a["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(h["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(h["s"])(this))}})},ba0d:function(t,e,i){"use strict";var s=i("ade3"),n=i("5530"),a=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),l=i("0789"),r=i("58df"),h=i("297c"),o=i("a293"),c=i("80d2"),u=i("d9bd");e["a"]=Object(r["a"])(a["a"],h["a"]).extend({name:"v-slider",directives:{ClickOutside:o["a"]},mixins:[h["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(n["a"])(Object(n["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",n=this.vertical?"height":"width",a=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,l),Object(s["a"])(t,n,r),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",n="0px",a=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,a),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},l)},genThumbContainer:function(t,e,i,s,a,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",h=[this.genThumb()],o=this.genThumbLabelContent(t);return this.showThumbLabel&&h.push(this.genThumbLabel(o)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(n["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:l,keydown:this.onKeyDown}}),h)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(c["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},n=!!c["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300));var a="touches"in t;this.onMouseMove(t),this.app.addEventListener(a?"touchmove":"mousemove",this.onMouseMove,n),Object(c["a"])(this.app,a?"touchend":"mouseup",this.onSliderMouseUp,s),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",n=this.$refs.track.getBoundingClientRect(),a=n[e],l=n[i],r="touches"in t?t.touches[0][s]:t[s],h=Math.min(Math.max((r-a)/l,0),1)||0;return this.vertical&&(h=1-h),this.$vuetify.rtl&&(h=1-h),parseFloat(this.min)+h*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=c["x"].pageup,s=c["x"].pagedown,n=c["x"].end,a=c["x"].home,l=c["x"].left,r=c["x"].right,h=c["x"].down,o=c["x"].up;if([i,s,n,a,l,r,h,o].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([l,r,h,o].includes(t.keyCode)){var v=this.$vuetify.rtl?[l,o]:[r,o],m=v.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;e+=m*u*f}else if(t.keyCode===a)e=this.minValue;else if(t.keyCode===n)e=this.maxValue;else{var p=t.keyCode===s?1:-1;e-=p*u*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(i))}}})},e449:function(t,e,i){"use strict";var s=i("ade3"),n=i("2909"),a=i("5530"),l=(i("a9e3"),i("7db0"),i("a630"),i("3ca3"),i("99af"),i("498a"),i("caad"),i("2532"),i("ee6f"),i("480e")),r=i("4ad4"),h=i("16b7"),o=i("b848"),c=i("75eb"),u=i("f573"),d=i("e4d3"),v=i("a236"),m=i("f2e7"),f=i("7560"),p=i("a293"),g=i("dc22"),b=i("58df"),x=i("d9bd"),k=i("80d2"),C=Object(b["a"])(o["a"],h["a"],c["a"],u["a"],d["a"],v["a"],m["a"],f["a"]);e["a"]=C.extend({name:"v-menu",directives:{ClickOutside:p["a"],Resize:g["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(k["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(k["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(k["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(k["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(k["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(k["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(x["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==k["x"].tab){if(t.keyCode===k["x"].down)this.nextTile();else if(t.keyCode===k["x"].up)this.prevTile();else if(t.keyCode===k["x"].end)this.lastTile();else if(t.keyCode===k["x"].home)this.firstTile();else{if(t.keyCode!==k["x"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=r["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(a["a"])(Object(a["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=u["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(n["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(a["a"])(Object(a["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(a["a"])(Object(a["a"])(Object(a["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(s["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===k["x"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[k["x"].up,k["x"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(l["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4d3:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},ee6f:function(t,e,i){}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-d584b056.0ab1a6c1.js b/www/fhemapp/js/chunk-d584b056.0ab1a6c1.js
deleted file mode 100644
index d89f1d9e..00000000
--- a/www/fhemapp/js/chunk-d584b056.0ab1a6c1.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d584b056"],{"02f0":function(t,e,i){},"0ccb":function(t,e,i){var a=i("50c4"),n=i("1148"),s=i("1d80"),r=Math.ceil,o=function(t){return function(e,i,o){var l,h,c=String(s(e)),u=c.length,d=void 0===o?" ":String(o),p=a(i);return p<=u||""==d?c:(l=p-u,h=n.call(d,r(l/d.length)),h.length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:o(!1),end:o(!0)}},2102:function(t,e,i){},"2af1":function(t,e,i){var a=i("23e7"),n=i("f748");a({target:"Math",stat:!0},{sign:n})},"4d90":function(t,e,i){"use strict";var a=i("23e7"),n=i("0ccb").start,s=i("9a0c");a({target:"String",proto:!0,forced:s},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},8308:function(t,e,i){},"9a0c":function(t,e,i){var a=i("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a)},afd9:function(t,e,i){"use strict";var a=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),s=i("a9ad"),r=i("7560"),o=i("58df"),l=i("80d2");e["a"]=Object(o["a"])(Object(n["a"])("bar",["height","window"]),s["a"],r["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b009:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.goTo}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.vals.linkIcon)+" ")])],1)],1),i("v-divider"),i("v-card-text",{staticClass:"pa-0"},[t.vals.maxSize?i("v-row",{staticClass:"ma-3",attrs:{align:"center"}},[i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:"von","prepend-icon":"mdi-calendar"},model:{value:t.vals.fromLocale,callback:function(e){t.$set(t.vals,"fromLocale",e)},expression:"vals.fromLocale"}},"v-text-field",n,!1),a))]}}],null,!1,3384966413),model:{value:t.vals.fromPicker,callback:function(e){t.$set(t.vals,"fromPicker",e)},expression:"vals.fromPicker"}},[i("v-date-picker",{attrs:{"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.from,callback:function(e){t.$set(t.vals,"from",e)},expression:"vals.from"}})],1)],1),i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:"bis","prepend-icon":"mdi-calendar"},model:{value:t.vals.toLocale,callback:function(e){t.$set(t.vals,"toLocale",e)},expression:"vals.toLocale"}},"v-text-field",n,!1),a))]}}],null,!1,3313857711),model:{value:t.vals.toPicker,callback:function(e){t.$set(t.vals,"toPicker",e)},expression:"vals.toPicker"}},[i("v-date-picker",{attrs:{"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.to,callback:function(e){t.$set(t.vals,"to",e)},expression:"vals.to"}})],1)],1)],1):t._e(),i("apexchart",{attrs:{options:t.chart.options,series:t.chart.series},on:{zoomed:t.afterZoom}})],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("v-spacer")],1)],1)],1)},n=[],s=i("b85c"),r=(i("4de4"),i("466d"),i("ac1f"),i("1276"),i("a434"),i("5319"),i("d81d"),i("b680"),{props:{item:{type:Object,default:function(){return{name:"chart"}}}},data:function(){return{name:"chart",setup:{size:"col-12 col-sm-12 col-md-6 col-lg-4",daysAgo:-7,daysTo:1},vals:{title:"",mainLevel:0,mainColor:"success",maxSize:!1,linkIcon:"mdi-arrow-expand",fromPicker:!1,from:"",fromLocale:"",toPicker:!1,to:"",systemIcon:"mdi-chart-bar"},chart:{options:{theme:{mode:"dark"},chart:{type:"line",height:"auto",toolbar:{show:!1}},stroke:{curve:"smooth"},tooltip:{x:{format:"ddd dd.MM.yy HH:mm:ss"}},xaxis:{type:"datetime",labels:{format:"dd.MM.yy",datetimeUTC:!1}},yaxis:[]},series:[]}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e}},"vals.from":function(t){this.vals.fromLocale=new Date(t).toLocaleString("de-DE",{dateStyle:"medium"})},"vals.to":function(t){this.vals.toLocale=new Date(t).toLocaleString("de-DE",{dateStyle:"medium"})}},created:function(){this.init()},methods:{init:function(){if(this.$route.params.filter&&this.$route.params.filter.match("&size=max"))this.vals.maxSize=!0,this.vals.gridSize="col-12",this.vals.linkIcon="mdi-arrow-collapse";else{var t=this.$fhem.getEl(this.item,"Options","setup");t&&Object.assign(this.setup,t),this.setup.lineWidth&&(this.chart.options.stroke.width=this.setup.lineWidth)}this.vals.from=this.$fhem.getDate(this.setup.daysAgo),this.vals.to=this.$fhem.getDate(this.setup.daysTo),this.chart.options.chart.height=window.innerHeight>600&&this.vals.maxSize?parseInt(window.innerHeight-320):"auto",this.chart.options.theme.mode=this.$vuetify.theme.dark?"dark":"light",this.loadChartData()},goTo:function(){this.vals.maxSize?this.$router.go(-1):this.$router.push("/devices/device="+this.item.Name+"&size=max")},afterZoom:function(t,e){var i=e.xaxis;this.vals.from=new Date(i.min).toISOString().split("T")[0],this.vals.to=new Date(i.max).toISOString().split("T")[0],this.loadChartData()},loadChartData:function(){var t=this;this.vals.fromPicker=!1,this.vals.toPicker=!1;var e=!1,i=!1;if(this.item){this.$fhem.loading=!0;var a={deviceName:this.item.Name,from:this.vals.from,to:this.vals.to,defs:this.item.Options.chartDef};this.$fhem.readLogData(a).then((function(a){if(a.defs.length>0){var n=0;t.chart.options.yaxis.splice(0),t.chart.series.splice(0);var r,o=Object(s["a"])(a.defs);try{var l=function(){var o=r.value,l=/\(.*\)/.exec(o),h=l?o.replace(l[0],"_").split(":"):o.split(":"),c=[],u=a.data[a.data.map((function(t){return t.id})).indexOf(n)].data,d="secondary"===h[4];if(!e&&!d||!i&&d){d||(e=!0),d&&(i=!0);var p={seriesName:h[2]||"",opposite:d,labels:{formatter:function(t){var e="";return t&&(e=t.toFixed(1)+h[3]),e}}};t.chart.options.yaxis.push(p)}var m,f=Object(s["a"])(u);try{for(f.s();!(m=f.n()).done;){var v=m.value;c.push([v.timestamp,v.value])}}catch(g){f.e(g)}finally{f.f()}t.chart.series.push({name:h[2],data:c}),n++};for(o.s();!(r=o.n()).done;)l()}catch(h){o.e(h)}finally{o.f()}}t.chart.options=Object.assign({},t.chart.options),t.$fhem.loading=!1}))}else this.$fhem.emit("message",{type:"error",message:"no valid device defined"})}}}),o=r,l=i("2877"),h=i("6544"),c=i.n(h),u=i("8336"),d=i("b0af"),p=i("99d9"),m=i("62ad"),f=i("5530"),v=(i("a9e3"),i("caad"),i("99af"),i("b0c0"),i("d951"),i("9d26")),g=(i("498a"),i("a9ad")),b=i("58df"),y=i("80d2"),k=Object(b["a"])(g["a"]).extend({methods:{genPickerButton:function(t,e,i){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=this[t]===e,o=function(i){i.stopPropagation(),a.$emit("update:".concat(Object(y["w"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(s).trim(),class:{"v-picker__title__btn--active":r,"v-picker__title__btn--readonly":n},on:r||n?void 0:{click:o}},Array.isArray(i)?i:[i])}}}),D=Object(b["a"])(k).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t>=0,t=String(t),i=String(i),t.length>e?String(t):(e-=t.length,e>i.length&&(i+=i.repeat(e/i.length)),i.slice(0,e)+String(t))}),M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return S(t,e,"0")};function O(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},a=function(t){var e=t.trim().split(" ")[0].split("-"),i=Object($["a"])(e,3),a=i[0],n=i[1],s=i[2];return[M(a,4),M(n||1),M(s||1)].join("-")};try{var n=new Intl.DateTimeFormat(t||void 0,e);return function(t){return n.format(new Date("".concat(a(t),"T00:00:00+00:00")))}}catch(s){return i.start||i.length?function(t){return a(t).substr(i.start||0,i.length)}:void 0}}var Y=O,E=function(t,e){var i=t.split("-").map(Number),a=Object($["a"])(i,2),n=a[0],s=a[1];return s+e===0?"".concat(n-1,"-12"):s+e===13?"".concat(n+1,"-01"):"".concat(n,"-").concat(M(s+e))},B=Object(b["a"])(g["a"],x,C["a"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,min:String,max:String,nextAriaLabel:String,nextIcon:{type:String,default:"$next"},prevAriaLabel:String,prevIcon:{type:String,default:"$prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?Y(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t0?this.nextAriaLabel:this.prevAriaLabel,a=i?this.$vuetify.lang.t(i):void 0,n=this.disabled||t<0&&this.min&&this.calculateChange(t)0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(w["a"],{attrs:{"aria-label":a},props:{dark:this.dark,disabled:n,icon:!0,light:this.light},on:{click:function(i){i.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(v["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),i=Object($["a"])(e,2),a=i[0],n=i[1];return null==n?"".concat(a+t):E(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),i=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),a=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[i]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[a])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(f["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),A=(i("2af1"),i("4d90"),i("2909")),j=(i("2532"),i("c982"),i("c3f0"));i("13d5"),i("b64b"),i("8a79");function F(t,e,i){return Object.keys(t.$listeners).reduce((function(a,n){return n.endsWith(e)&&(a[n.slice(0,-e.length)]=function(e){return t.$emit(n,i,e)}),a}),{})}function I(t,e){return Object.keys(t.$listeners).reduce((function(i,a){return a.endsWith(e)&&(i[a]=t.$listeners[a]),i}),{})}var _=function(t,e){var i=t.split("-"),a=Object($["a"])(i,3),n=a[0],s=a[1],r=void 0===s?1:s,o=a[2],l=void 0===o?1:o;return"".concat(n,"-").concat(M(r),"-").concat(M(l)).substr(0,{date:10,month:7,year:4}[e])};function P(t,e,i,a){return(!a||a(t))&&(!e||t>=e.substr(0,10))&&(!i||t<=i)}var L=i("d9f7"),V=Object(b["a"])(g["a"],x,C["a"]).extend({directives:{Touch:j["a"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},min:String,max:String,range:Boolean,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1,wheelThrottle:null}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t4&&void 0!==arguments[4]&&arguments[4],s=P(t,this.min,this.max,this.allowedDates),r=this.isSelected(t)&&s,o=t===this.current,l=r?this.setBackgroundColor:this.setTextColor,h=(r||o)&&(this.color||"accent");return this.$createElement("button",l(h,{staticClass:"v-btn",class:this.genButtonClasses(s&&!n,e,r,o),attrs:{type:"button"},domProps:{disabled:this.disabled||!s||n},on:this.genButtonEvents(t,s,i)}),[this.$createElement("div",{staticClass:"v-btn__content"},[a(t)]),this.genEvents(t)])},getEventColors:function(t){var e,i=function(t){return Array.isArray(t)?t:[t]},a=[];return e=Array.isArray(this.events)?this.events.includes(t):this.events instanceof Function?this.events(t)||!1:this.events&&this.events[t]||!1,e?(a=!0!==e?i(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?i(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:i(this.eventColor[t]),a.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,i=this.getEventColors(t);return i.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},i.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},isValidScroll:function(t,e){var i=e(t.deltaY),a=1===i.split("-").length?"year":"month";return 0===t.deltaY||t.deltaY<0&&(!this.min||i>=_(this.min,a))||t.deltaY>0&&(!this.max||i<=_(this.max,a))},wheel:function(t,e){this.$emit("update:table-date",e(t.deltaY))},touch:function(t,e){this.$emit("update:table-date",e(t))},genTable:function(t,e,i){var a=this,n=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},e)]),s={name:"touch",value:{left:function(t){return t.offsetX<-15&&a.touch(1,i)},right:function(t){return t.offsetX>15&&a.touch(-1,i)}}};return this.$createElement("div",{staticClass:t,class:Object(f["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),a.isValidScroll(t,i)&&a.wheelThrottle(t,i)}}:void 0,directives:[s]},[n])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(A["a"])(this.value).sort(),i=Object($["a"])(e,2),a=i[0],n=i[1];return a<=t&&t<=n}return-1!==this.value.indexOf(t)}return t===this.value}}});function N(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,i,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,i,a)),e}function W(t,e,i){var a=7+e-i,n=(7+N(t,0,a).getUTCDay()-e)%7;return-n+a-1}function H(t,e,i,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&z(t)&&n++,n+i}function R(t,e,i){var a=W(t,e,i),n=W(t+1,e,i),s=z(t)?366:365;return(s-a+n)/7}function U(t,e,i,a,n){var s=W(t,a,n),r=Math.ceil((H(t,e,i,a)-s)/7);return r<1?r+R(t-1,a,n):r>R(t,a,n)?r-R(t,a,n):r}function z(t){return t%4===0&&t%100!==0||t%400===0}var Z=Object(b["a"])(V).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},localeFirstDayOfYear:{type:[String,Number],default:0},showAdjacentMonths:Boolean,showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||Y(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||Y(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(y["h"])(7).map((function(i){return t.weekdayFormatter("2017-01-".concat(e+i+15))})):Object(y["h"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return E(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date("".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return U(this.displayedYear,this.displayedMonth,t,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),i=[],a=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&i.push(this.genWeekNumber(this.getWeekNumber(1)));var n=this.displayedMonth?this.displayedYear:this.displayedYear-1,s=(this.displayedMonth+11)%12,r=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(a--){var l="".concat(n,"-").concat(M(s+1),"-").concat(M(r-a));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(a=1;a<=e;a++){var h="".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-").concat(M(a));i.push(this.$createElement("td",[this.genButton(h,!0,"date",this.formatter)])),i.length%o===0&&(t.push(this.genTR(i)),i=[],this.showWeek&&(a=a;n--)t.push(this.genYearItem(n));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),X=(i("0481"),i("e53c"),i("615b"),i("c995")),G=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(f["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(y["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(f["a"])(Object(f["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses),this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),K=G,Q=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var i=this.genPickerTitle();i&&e.push(i)}var a=this.genPickerBody();return a&&e.push(a),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement(K,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),tt=(i("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),et=[0,31,29,31,30,31,30,31,31,30,31,30,31];function it(t,e){return z(t)?et[e]:tt[e]}var at=i("d9bd"),nt=Object(b["a"])(x,Q).extend({name:"v-date-picker",props:{allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,localeFirstDayOfYear:{type:[String,Number],default:0},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$next"},nextMonthAriaLabel:{type:String,default:"$vuetify.datePicker.nextMonthAriaLabel"},nextYearAriaLabel:{type:String,default:"$vuetify.datePicker.nextYearAriaLabel"},pickerDate:String,prevIcon:{type:String,default:"$prev"},prevMonthAriaLabel:{type:String,default:"$vuetify.datePicker.prevMonthAriaLabel"},prevYearAriaLabel:{type:String,default:"$vuetify.datePicker.prevYearAriaLabel"},range:Boolean,reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},selectedItemsText:{type:String,default:"$vuetify.datePicker.itemsSelected"},showAdjacentMonths:Boolean,showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var i=Object(y["H"])(t.value),a=i[i.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return _(a,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(y["H"])(this.value)},isMultiple:function(){return this.multiple||this.range},lastValue:function(){return this.isMultiple?this.multipleValue[this.multipleValue.length-1]:this.value},selectedMonths:function(){return this.value&&"month"!==this.type?this.isMultiple?this.multipleValue.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?_("".concat(this.now.getFullYear(),"-").concat(this.now.getMonth()+1,"-").concat(this.now.getDate()),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?"".concat(this.inputYear,"-").concat(M(this.inputMonth+1),"-").concat(M(this.inputDay)):"".concat(this.inputYear,"-").concat(M(this.inputMonth+1))},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?_(this.min,"month"):null},maxMonth:function(){return this.max?_(this.max,"month"):null},minYear:function(){return this.min?_(this.min,"year"):null},maxYear:function(){return this.max?_(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return function(e){return e.length?1===e.length?t.defaultTitleDateFormatter(e[0]):t.$vuetify.lang.t(t.selectedItemsText,e.length):"-"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=Y(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),i=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,i){return"".concat(e," ").concat(i)})).replace(", ",",
")};return this.landscape?i:e}},watch:{tableDate:function(t,e){var i="month"===this.type?"year":"month";this.isReversing=_(t,i)<_(e,i),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=_(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=_(this.lastValue,"year"))},value:function(t,e){this.checkMultipleProp(),this.setInputDate(),(this.isMultiple||!this.value||this.pickerDate)&&(!this.isMultiple||!this.multipleValue.length||e&&e.length||this.pickerDate)||(this.tableDate=_(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return _(e,t)})).filter(this.isDateAllowed);this.$emit("input",this.isMultiple?e:e[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:picker-date",this.tableDate),this.setInputDate()},methods:{emitInput:function(t){if(this.range)if(1!==this.multipleValue.length)this.$emit("input",[t]);else{var e=[this.multipleValue[0],t];this.$emit("input",e),this.$emit("change",e)}else{var i=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",i),this.multiple||this.$emit("change",t)}},checkMultipleProp:function(){if(null!=this.value){var t=this.value.constructor.name,e=this.isMultiple?"Array":"String";t!==e&&Object(at["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return P(t,this.min,this.max,this.allowedDates)},yearClick:function(t){this.inputYear=t,"month"===this.type?this.tableDate="".concat(t):this.tableDate="".concat(t,"-").concat(M((this.tableMonth||0)+1)),this.activePicker="MONTH",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)},monthClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,it(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="DATE",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,this.inputDay=parseInt(t.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var t=this;return this.$createElement(D,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,year:this.formatters.year(this.multipleValue.length?"".concat(this.inputYear):this.tableDate),yearIcon:this.yearIcon,value:this.multipleValue[0]},slot:"title",on:{"update:selecting-year":function(e){return t.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(B,{props:{nextIcon:this.nextIcon,color:this.color,dark:this.dark,disabled:this.disabled,format:this.headerDateFormat,light:this.light,locale:this.locale,min:"DATE"===this.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.activePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.activePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)):"".concat(M(this.tableYear,4))},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(Z,{props:{allowedDates:this.allowedDates,color:this.color,current:this.current,dark:this.dark,disabled:this.disabled,events:this.events,eventColor:this.eventColor,firstDayOfWeek:this.firstDayOfWeek,format:this.dayFormat,light:this.light,locale:this.locale,localeFirstDayOfYear:this.localeFirstDayOfYear,min:this.min,max:this.max,range:this.range,readonly:this.readonly,scrollable:this.scrollable,showAdjacentMonths:this.showAdjacentMonths,showWeek:this.showWeek,tableDate:"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(f["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(q,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?_(this.current,"month"):null,dark:this.dark,disabled:this.disabled,events:"month"===this.type?this.events:null,eventColor:"month"===this.type?this.eventColor:null,format:this.monthFormat,light:this.light,locale:this.locale,min:this.minMonth,max:this.maxMonth,range:this.range,readonly:this.readonly&&"month"===this.type,scrollable:this.scrollable,value:this.selectedMonths,tableDate:"".concat(M(this.tableYear,4))},ref:"table",on:Object(f["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":month"))})},genYears:function(){return this.$createElement(J,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(f["a"])({input:this.yearClick},I(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},t)},setInputDate:function(){if(this.lastValue){var t=this.lastValue.split("-");this.inputYear=parseInt(t[0],10),this.inputMonth=parseInt(t[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(t[2],10))}else this.inputYear=this.inputYear||this.now.getFullYear(),this.inputMonth=null==this.inputMonth?this.inputMonth:this.now.getMonth(),this.inputDay=this.inputDay||this.now.getDate()}},render:function(){return this.genPicker("v-picker--date")}}),st=i("ce7e"),rt=i("132d"),ot=i("e449"),lt=i("8e36"),ht=i("0fd9"),ct=i("2fa4"),ut=i("afd9"),dt=i("8654"),pt=Object(l["a"])(o,a,n,!1,null,null,null);e["default"]=pt.exports;c()(pt,{VBtn:u["a"],VCard:d["a"],VCardText:p["c"],VCardTitle:p["d"],VCol:m["a"],VDatePicker:nt,VDivider:st["a"],VIcon:rt["a"],VMenu:ot["a"],VProgressLinear:lt["a"],VRow:ht["a"],VSpacer:ct["a"],VSystemBar:ut["a"],VTextField:dt["a"]})},c982:function(t,e,i){},d951:function(t,e,i){},e53c:function(t,e,i){}}]);
\ No newline at end of file
diff --git a/www/fhemapp/js/chunk-d584b056.b1afb887.js b/www/fhemapp/js/chunk-d584b056.b1afb887.js
new file mode 100644
index 00000000..f1d8ee0e
--- /dev/null
+++ b/www/fhemapp/js/chunk-d584b056.b1afb887.js
@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d584b056"],{"02f0":function(t,e,i){},"0ccb":function(t,e,i){var a=i("50c4"),n=i("1148"),s=i("1d80"),r=Math.ceil,o=function(t){return function(e,i,o){var l,h,c=String(s(e)),u=c.length,d=void 0===o?" ":String(o),p=a(i);return p<=u||""==d?c:(l=p-u,h=n.call(d,r(l/d.length)),h.length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:o(!1),end:o(!0)}},2102:function(t,e,i){},"2af1":function(t,e,i){var a=i("23e7"),n=i("f748");a({target:"Math",stat:!0},{sign:n})},"4d90":function(t,e,i){"use strict";var a=i("23e7"),n=i("0ccb").start,s=i("9a0c");a({target:"String",proto:!0,forced:s},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},8308:function(t,e,i){},"9a0c":function(t,e,i){var a=i("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a)},afd9:function(t,e,i){"use strict";var a=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),s=i("a9ad"),r=i("7560"),o=i("58df"),l=i("80d2");e["a"]=Object(o["a"])(Object(n["a"])("bar",["height","window"]),s["a"],r["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b009:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.goTo}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.vals.linkIcon)+" ")])],1)],1),i("v-divider"),i("v-card-text",{staticClass:"pa-0"},[t.vals.maxSize?i("v-row",{staticClass:"ma-3",attrs:{align:"center"}},[i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:"von","prepend-icon":"mdi-calendar"},model:{value:t.vals.fromLocale,callback:function(e){t.$set(t.vals,"fromLocale",e)},expression:"vals.fromLocale"}},"v-text-field",n,!1),a))]}}],null,!1,3384966413),model:{value:t.vals.fromPicker,callback:function(e){t.$set(t.vals,"fromPicker",e)},expression:"vals.fromPicker"}},[i("v-date-picker",{attrs:{"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.from,callback:function(e){t.$set(t.vals,"from",e)},expression:"vals.from"}})],1)],1),i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:"bis","prepend-icon":"mdi-calendar"},model:{value:t.vals.toLocale,callback:function(e){t.$set(t.vals,"toLocale",e)},expression:"vals.toLocale"}},"v-text-field",n,!1),a))]}}],null,!1,3313857711),model:{value:t.vals.toPicker,callback:function(e){t.$set(t.vals,"toPicker",e)},expression:"vals.toPicker"}},[i("v-date-picker",{attrs:{"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.to,callback:function(e){t.$set(t.vals,"to",e)},expression:"vals.to"}})],1)],1)],1):t._e(),i("apexchart",{attrs:{options:t.chart.options,series:t.chart.series},on:{zoomed:t.afterZoom}})],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("v-spacer")],1)],1)],1)},n=[],s=i("b85c"),r=(i("4de4"),i("466d"),i("ac1f"),i("1276"),i("a434"),i("5319"),i("d81d"),i("b680"),{props:{item:{type:Object,default:function(){return{name:"chart"}}}},data:function(){return{name:"chart",setup:{size:"col-12 col-sm-12 col-md-6 col-lg-4",daysAgo:-7,daysTo:1},vals:{title:"",mainLevel:0,mainColor:"success",maxSize:!1,linkIcon:"mdi-arrow-expand",fromPicker:!1,from:"",fromLocale:"",toPicker:!1,to:"",systemIcon:"mdi-chart-bar"},chart:{options:{theme:{mode:"dark"},chart:{type:"line",height:"auto",toolbar:{show:!1}},stroke:{curve:"smooth"},tooltip:{x:{format:"ddd dd.MM.yy HH:mm:ss"}},xaxis:{type:"datetime",labels:{format:"dd.MM.yy",datetimeUTC:!1}},yaxis:[]},series:[]}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e}},"vals.from":function(t){this.vals.fromLocale=new Date(t).toLocaleString("de-DE",{dateStyle:"medium"})},"vals.to":function(t){this.vals.toLocale=new Date(t).toLocaleString("de-DE",{dateStyle:"medium"})}},created:function(){this.init()},methods:{init:function(){var t=this.$fhem.getEl(this.item,"Options","setup");t&&Object.assign(this.setup,t),this.setup.lineWidth&&(this.chart.options.stroke.width=this.setup.lineWidth),this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.vals.maxSize=!0,this.setup.size="col-12",this.vals.linkIcon="mdi-arrow-collapse"),this.vals.from=this.$fhem.getDate(this.setup.daysAgo),this.vals.to=this.$fhem.getDate(this.setup.daysTo),this.chart.options.chart.height=window.innerHeight>600&&this.vals.maxSize?parseInt(window.innerHeight-320):"auto",this.chart.options.theme.mode=this.$vuetify.theme.dark?"dark":"light",this.loadChartData()},goTo:function(){this.vals.maxSize?this.$router.go(-1):this.$router.push("/devices/device="+this.item.Name+"&size=max")},afterZoom:function(t,e){var i=e.xaxis;this.vals.from=new Date(i.min).toISOString().split("T")[0],this.vals.to=new Date(i.max).toISOString().split("T")[0],this.loadChartData()},loadChartData:function(){var t=this;this.vals.fromPicker=!1,this.vals.toPicker=!1;var e=!1,i=!1;if(this.item){this.$fhem.loading=!0;var a={deviceName:this.item.Name,from:this.vals.from,to:this.vals.to,defs:this.item.Options.chartDef};this.$fhem.readLogData(a).then((function(a){if(a.defs.length>0){var n=0;t.chart.options.yaxis.splice(0),t.chart.series.splice(0);var r,o=Object(s["a"])(a.defs);try{var l=function(){var o=r.value,l=/\(.*\)/.exec(o),h=l?o.replace(l[0],"_").split(":"):o.split(":"),c=[],u=a.data[a.data.map((function(t){return t.id})).indexOf(n)].data,d="secondary"===h[4];if(!e&&!d||!i&&d){d||(e=!0),d&&(i=!0);var p={seriesName:h[2]||"",opposite:d,labels:{formatter:function(t){var e="";return t&&(e=t.toFixed(1)+h[3]),e}}};t.chart.options.yaxis.push(p)}var m,f=Object(s["a"])(u);try{for(f.s();!(m=f.n()).done;){var v=m.value;c.push([v.timestamp,v.value])}}catch(g){f.e(g)}finally{f.f()}t.chart.series.push({name:h[2],data:c}),n++};for(o.s();!(r=o.n()).done;)l()}catch(h){o.e(h)}finally{o.f()}}t.chart.options=Object.assign({},t.chart.options),t.$fhem.loading=!1}))}else this.$fhem.emit("message",{type:"error",message:"no valid device defined"})}}}),o=r,l=i("2877"),h=i("6544"),c=i.n(h),u=i("8336"),d=i("b0af"),p=i("99d9"),m=i("62ad"),f=i("5530"),v=(i("a9e3"),i("caad"),i("99af"),i("b0c0"),i("d951"),i("9d26")),g=(i("498a"),i("a9ad")),b=i("58df"),y=i("80d2"),k=Object(b["a"])(g["a"]).extend({methods:{genPickerButton:function(t,e,i){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=this[t]===e,o=function(i){i.stopPropagation(),a.$emit("update:".concat(Object(y["w"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(s).trim(),class:{"v-picker__title__btn--active":r,"v-picker__title__btn--readonly":n},on:r||n?void 0:{click:o}},Array.isArray(i)?i:[i])}}}),D=Object(b["a"])(k).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t>=0,t=String(t),i=String(i),t.length>e?String(t):(e-=t.length,e>i.length&&(i+=i.repeat(e/i.length)),i.slice(0,e)+String(t))}),M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return S(t,e,"0")};function O(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},a=function(t){var e=t.trim().split(" ")[0].split("-"),i=Object($["a"])(e,3),a=i[0],n=i[1],s=i[2];return[M(a,4),M(n||1),M(s||1)].join("-")};try{var n=new Intl.DateTimeFormat(t||void 0,e);return function(t){return n.format(new Date("".concat(a(t),"T00:00:00+00:00")))}}catch(s){return i.start||i.length?function(t){return a(t).substr(i.start||0,i.length)}:void 0}}var Y=O,E=function(t,e){var i=t.split("-").map(Number),a=Object($["a"])(i,2),n=a[0],s=a[1];return s+e===0?"".concat(n-1,"-12"):s+e===13?"".concat(n+1,"-01"):"".concat(n,"-").concat(M(s+e))},B=Object(b["a"])(g["a"],x,C["a"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,min:String,max:String,nextAriaLabel:String,nextIcon:{type:String,default:"$next"},prevAriaLabel:String,prevIcon:{type:String,default:"$prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?Y(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t0?this.nextAriaLabel:this.prevAriaLabel,a=i?this.$vuetify.lang.t(i):void 0,n=this.disabled||t<0&&this.min&&this.calculateChange(t)0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(w["a"],{attrs:{"aria-label":a},props:{dark:this.dark,disabled:n,icon:!0,light:this.light},on:{click:function(i){i.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(v["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),i=Object($["a"])(e,2),a=i[0],n=i[1];return null==n?"".concat(a+t):E(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),i=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),a=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[i]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[a])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(f["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),A=(i("2af1"),i("4d90"),i("2909")),j=(i("2532"),i("c982"),i("c3f0"));i("13d5"),i("b64b"),i("8a79");function F(t,e,i){return Object.keys(t.$listeners).reduce((function(a,n){return n.endsWith(e)&&(a[n.slice(0,-e.length)]=function(e){return t.$emit(n,i,e)}),a}),{})}function I(t,e){return Object.keys(t.$listeners).reduce((function(i,a){return a.endsWith(e)&&(i[a]=t.$listeners[a]),i}),{})}var _=function(t,e){var i=t.split("-"),a=Object($["a"])(i,3),n=a[0],s=a[1],r=void 0===s?1:s,o=a[2],l=void 0===o?1:o;return"".concat(n,"-").concat(M(r),"-").concat(M(l)).substr(0,{date:10,month:7,year:4}[e])};function P(t,e,i,a){return(!a||a(t))&&(!e||t>=e.substr(0,10))&&(!i||t<=i)}var L=i("d9f7"),V=Object(b["a"])(g["a"],x,C["a"]).extend({directives:{Touch:j["a"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},min:String,max:String,range:Boolean,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1,wheelThrottle:null}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t4&&void 0!==arguments[4]&&arguments[4],s=P(t,this.min,this.max,this.allowedDates),r=this.isSelected(t)&&s,o=t===this.current,l=r?this.setBackgroundColor:this.setTextColor,h=(r||o)&&(this.color||"accent");return this.$createElement("button",l(h,{staticClass:"v-btn",class:this.genButtonClasses(s&&!n,e,r,o),attrs:{type:"button"},domProps:{disabled:this.disabled||!s||n},on:this.genButtonEvents(t,s,i)}),[this.$createElement("div",{staticClass:"v-btn__content"},[a(t)]),this.genEvents(t)])},getEventColors:function(t){var e,i=function(t){return Array.isArray(t)?t:[t]},a=[];return e=Array.isArray(this.events)?this.events.includes(t):this.events instanceof Function?this.events(t)||!1:this.events&&this.events[t]||!1,e?(a=!0!==e?i(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?i(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:i(this.eventColor[t]),a.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,i=this.getEventColors(t);return i.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},i.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},isValidScroll:function(t,e){var i=e(t.deltaY),a=1===i.split("-").length?"year":"month";return 0===t.deltaY||t.deltaY<0&&(!this.min||i>=_(this.min,a))||t.deltaY>0&&(!this.max||i<=_(this.max,a))},wheel:function(t,e){this.$emit("update:table-date",e(t.deltaY))},touch:function(t,e){this.$emit("update:table-date",e(t))},genTable:function(t,e,i){var a=this,n=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},e)]),s={name:"touch",value:{left:function(t){return t.offsetX<-15&&a.touch(1,i)},right:function(t){return t.offsetX>15&&a.touch(-1,i)}}};return this.$createElement("div",{staticClass:t,class:Object(f["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),a.isValidScroll(t,i)&&a.wheelThrottle(t,i)}}:void 0,directives:[s]},[n])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(A["a"])(this.value).sort(),i=Object($["a"])(e,2),a=i[0],n=i[1];return a<=t&&t<=n}return-1!==this.value.indexOf(t)}return t===this.value}}});function N(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,i,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,i,a)),e}function W(t,e,i){var a=7+e-i,n=(7+N(t,0,a).getUTCDay()-e)%7;return-n+a-1}function H(t,e,i,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&z(t)&&n++,n+i}function R(t,e,i){var a=W(t,e,i),n=W(t+1,e,i),s=z(t)?366:365;return(s-a+n)/7}function U(t,e,i,a,n){var s=W(t,a,n),r=Math.ceil((H(t,e,i,a)-s)/7);return r<1?r+R(t-1,a,n):r>R(t,a,n)?r-R(t,a,n):r}function z(t){return t%4===0&&t%100!==0||t%400===0}var Z=Object(b["a"])(V).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},localeFirstDayOfYear:{type:[String,Number],default:0},showAdjacentMonths:Boolean,showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||Y(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||Y(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(y["h"])(7).map((function(i){return t.weekdayFormatter("2017-01-".concat(e+i+15))})):Object(y["h"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return E(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date("".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return U(this.displayedYear,this.displayedMonth,t,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),i=[],a=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&i.push(this.genWeekNumber(this.getWeekNumber(1)));var n=this.displayedMonth?this.displayedYear:this.displayedYear-1,s=(this.displayedMonth+11)%12,r=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(a--){var l="".concat(n,"-").concat(M(s+1),"-").concat(M(r-a));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(a=1;a<=e;a++){var h="".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-").concat(M(a));i.push(this.$createElement("td",[this.genButton(h,!0,"date",this.formatter)])),i.length%o===0&&(t.push(this.genTR(i)),i=[],this.showWeek&&(a=a;n--)t.push(this.genYearItem(n));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),X=(i("0481"),i("e53c"),i("615b"),i("c995")),G=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(f["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(y["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(f["a"])(Object(f["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses),this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),K=G,Q=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var i=this.genPickerTitle();i&&e.push(i)}var a=this.genPickerBody();return a&&e.push(a),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement(K,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),tt=(i("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),et=[0,31,29,31,30,31,30,31,31,30,31,30,31];function it(t,e){return z(t)?et[e]:tt[e]}var at=i("d9bd"),nt=Object(b["a"])(x,Q).extend({name:"v-date-picker",props:{allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,localeFirstDayOfYear:{type:[String,Number],default:0},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$next"},nextMonthAriaLabel:{type:String,default:"$vuetify.datePicker.nextMonthAriaLabel"},nextYearAriaLabel:{type:String,default:"$vuetify.datePicker.nextYearAriaLabel"},pickerDate:String,prevIcon:{type:String,default:"$prev"},prevMonthAriaLabel:{type:String,default:"$vuetify.datePicker.prevMonthAriaLabel"},prevYearAriaLabel:{type:String,default:"$vuetify.datePicker.prevYearAriaLabel"},range:Boolean,reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},selectedItemsText:{type:String,default:"$vuetify.datePicker.itemsSelected"},showAdjacentMonths:Boolean,showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var i=Object(y["H"])(t.value),a=i[i.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return _(a,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(y["H"])(this.value)},isMultiple:function(){return this.multiple||this.range},lastValue:function(){return this.isMultiple?this.multipleValue[this.multipleValue.length-1]:this.value},selectedMonths:function(){return this.value&&"month"!==this.type?this.isMultiple?this.multipleValue.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?_("".concat(this.now.getFullYear(),"-").concat(this.now.getMonth()+1,"-").concat(this.now.getDate()),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?"".concat(this.inputYear,"-").concat(M(this.inputMonth+1),"-").concat(M(this.inputDay)):"".concat(this.inputYear,"-").concat(M(this.inputMonth+1))},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?_(this.min,"month"):null},maxMonth:function(){return this.max?_(this.max,"month"):null},minYear:function(){return this.min?_(this.min,"year"):null},maxYear:function(){return this.max?_(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return function(e){return e.length?1===e.length?t.defaultTitleDateFormatter(e[0]):t.$vuetify.lang.t(t.selectedItemsText,e.length):"-"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=Y(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),i=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,i){return"".concat(e," ").concat(i)})).replace(", ",",
")};return this.landscape?i:e}},watch:{tableDate:function(t,e){var i="month"===this.type?"year":"month";this.isReversing=_(t,i)<_(e,i),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=_(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=_(this.lastValue,"year"))},value:function(t,e){this.checkMultipleProp(),this.setInputDate(),(this.isMultiple||!this.value||this.pickerDate)&&(!this.isMultiple||!this.multipleValue.length||e&&e.length||this.pickerDate)||(this.tableDate=_(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return _(e,t)})).filter(this.isDateAllowed);this.$emit("input",this.isMultiple?e:e[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:picker-date",this.tableDate),this.setInputDate()},methods:{emitInput:function(t){if(this.range)if(1!==this.multipleValue.length)this.$emit("input",[t]);else{var e=[this.multipleValue[0],t];this.$emit("input",e),this.$emit("change",e)}else{var i=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",i),this.multiple||this.$emit("change",t)}},checkMultipleProp:function(){if(null!=this.value){var t=this.value.constructor.name,e=this.isMultiple?"Array":"String";t!==e&&Object(at["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return P(t,this.min,this.max,this.allowedDates)},yearClick:function(t){this.inputYear=t,"month"===this.type?this.tableDate="".concat(t):this.tableDate="".concat(t,"-").concat(M((this.tableMonth||0)+1)),this.activePicker="MONTH",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)},monthClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,it(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="DATE",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,this.inputDay=parseInt(t.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var t=this;return this.$createElement(D,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,year:this.formatters.year(this.multipleValue.length?"".concat(this.inputYear):this.tableDate),yearIcon:this.yearIcon,value:this.multipleValue[0]},slot:"title",on:{"update:selecting-year":function(e){return t.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(B,{props:{nextIcon:this.nextIcon,color:this.color,dark:this.dark,disabled:this.disabled,format:this.headerDateFormat,light:this.light,locale:this.locale,min:"DATE"===this.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.activePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.activePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)):"".concat(M(this.tableYear,4))},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(Z,{props:{allowedDates:this.allowedDates,color:this.color,current:this.current,dark:this.dark,disabled:this.disabled,events:this.events,eventColor:this.eventColor,firstDayOfWeek:this.firstDayOfWeek,format:this.dayFormat,light:this.light,locale:this.locale,localeFirstDayOfYear:this.localeFirstDayOfYear,min:this.min,max:this.max,range:this.range,readonly:this.readonly,scrollable:this.scrollable,showAdjacentMonths:this.showAdjacentMonths,showWeek:this.showWeek,tableDate:"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(f["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(q,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?_(this.current,"month"):null,dark:this.dark,disabled:this.disabled,events:"month"===this.type?this.events:null,eventColor:"month"===this.type?this.eventColor:null,format:this.monthFormat,light:this.light,locale:this.locale,min:this.minMonth,max:this.maxMonth,range:this.range,readonly:this.readonly&&"month"===this.type,scrollable:this.scrollable,value:this.selectedMonths,tableDate:"".concat(M(this.tableYear,4))},ref:"table",on:Object(f["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":month"))})},genYears:function(){return this.$createElement(J,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(f["a"])({input:this.yearClick},I(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},t)},setInputDate:function(){if(this.lastValue){var t=this.lastValue.split("-");this.inputYear=parseInt(t[0],10),this.inputMonth=parseInt(t[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(t[2],10))}else this.inputYear=this.inputYear||this.now.getFullYear(),this.inputMonth=null==this.inputMonth?this.inputMonth:this.now.getMonth(),this.inputDay=this.inputDay||this.now.getDate()}},render:function(){return this.genPicker("v-picker--date")}}),st=i("ce7e"),rt=i("132d"),ot=i("e449"),lt=i("8e36"),ht=i("0fd9"),ct=i("2fa4"),ut=i("afd9"),dt=i("8654"),pt=Object(l["a"])(o,a,n,!1,null,null,null);e["default"]=pt.exports;c()(pt,{VBtn:u["a"],VCard:d["a"],VCardText:p["c"],VCardTitle:p["d"],VCol:m["a"],VDatePicker:nt,VDivider:st["a"],VIcon:rt["a"],VMenu:ot["a"],VProgressLinear:lt["a"],VRow:ht["a"],VSpacer:ct["a"],VSystemBar:ut["a"],VTextField:dt["a"]})},c982:function(t,e,i){},d951:function(t,e,i){},e53c:function(t,e,i){}}]);
\ No newline at end of file