diff --git a/README.md b/README.md
index 963d84c..6557704 100644
--- a/README.md
+++ b/README.md
@@ -330,7 +330,6 @@ Es stehen folgende Typen zur Verfügung
|none|Spalte wird nicht angezeigt|
|button|Es kann ein Button zur Steuerung von Aktoren konfiguriert werden|
|info|Es können bis zu 3 Textelemente und ein Icon zur Anzeige von Statuswerten konfiguriert werden|
-|status|Es kann eine runde Statusbar zur Anzeige von Statuswerten konfiguriert werden|
|slider|Es kann ein Slider zu Steuerung von Aktoren konfiguriert werden|
|image|Es kann ein Bild über eine URL angezeigt werden|
|menu|Es kann ein DropDown-Menü zur Steuerung verschiedener Aktoren bzw. Aktorwerte konfiguriert werden|
diff --git a/public/CHANGELOG.md b/public/CHANGELOG.md
index bf3a332..10897af 100644
--- a/public/CHANGELOG.md
+++ b/public/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v4.0.26-beta (13.03.2024)
+## Core
+- bugfix for spaces at readings
+- local Loop to update reading directly without response from FHEM
+## Panel
+- optimization for section info
# v4.0.25-beta (11.03.2024)
## Settings
- add option for header in mobile view
diff --git a/src/components/OptionsMenu.vue b/src/components/OptionsMenu.vue
index d95fb5d..e7613cf 100644
--- a/src/components/OptionsMenu.vue
+++ b/src/components/OptionsMenu.vue
@@ -13,18 +13,18 @@
const options = computed(() => {
let res = [],
- options = fhem.app.header,
+ opts = fhem.app.header,
presets = {
darkMode: { name: 'darkMode', title: "%t(_app.options.darkMode)" ,icon: 'mdi-theme-light-dark' },
reloadPage: { name: 'reloadPage', title: "%t(_app.options.reload)", icon: 'mdi-reload' },
settings: { name:'settings', title: "%t(_app.options.settings)", icon: 'mdi-cogs' }
}
- if(options.showDarkMode) res.push(presets.darkMode)
- if(options.showReloadPage) res.push(presets.reloadPage)
- if(options.showSettings) res.push(presets.settings)
+ if(opts.showDarkMode) res.push(presets.darkMode)
+ if(opts.showReloadPage) res.push(presets.reloadPage)
+ if(opts.showSettings) res.push(presets.settings)
- res.push(...options.commands)
+ res.push(...opts.commands)
return res
})
@@ -54,7 +54,7 @@
-
+
getInfo('left1'))
@@ -149,19 +151,19 @@
- {{ infoLeft1.text }}
-
- {{ infoLeft2.text }}
+ {{ infoLeft1.text }}
+
+ {{ infoLeft2.text }}
- {{ infoMid1.text }}
-
- {{ infoMid2.text }}
+ {{ infoMid1.text }}
+
+ {{ infoMid2.text }}
- {{ infoRight1.text }}
-
- {{ infoRight2.text }}
+ {{ infoRight1.text }}
+
+ {{ infoRight2.text }}
diff --git a/src/components/PanelMainBtn.vue b/src/components/PanelMainBtn.vue
index ec54147..e35cb12 100644
--- a/src/components/PanelMainBtn.vue
+++ b/src/components/PanelMainBtn.vue
@@ -55,14 +55,14 @@
longClick = fhem.handleDefs(props.el.longClick, ['cmd', 'type'], ['', 'cmd']),
longRelease = fhem.handleDefs(props.el.longRelease, ['cmd', 'type'], ['', 'cmd'])
- if(evt === 'touchStart' || evt === 'mouseStart') {
+ if(evt === 'mouseStart') {
btnState.timer = setTimeout(() => {
btnState.long = true
if(longClick.cmd) doCmd(longClick)
}, 1000)
}
- if(evt === 'touchEnd' || evt === 'mouseEnd') {
+ if(evt === 'mouseEnd') {
if(btnState.long) {
if(longRelease.cmd) doCmd(longRelease)
} else {
@@ -88,8 +88,6 @@
:variant="btn.variant"
:disabled="btn.disabled"
:color="btn.color"
- @touchstart="btnClick('touchStart')"
- @touchend="btnClick('touchEnd')"
@mousedown="btnClick('mouseStart')"
@mouseup="btnClick('mouseEnd')"
class="my-2">
diff --git a/src/components/SettingsPropsItem.vue b/src/components/SettingsPropsItem.vue
index 4bbd61f..97997a4 100644
--- a/src/components/SettingsPropsItem.vue
+++ b/src/components/SettingsPropsItem.vue
@@ -73,7 +73,7 @@
item-key="id">
-
+
{
async function request(type, cmd) {
let params = '?XHR=1',
options = { method: 'POST' },
+ cmdParts = [],
result
if(type !== 'token' && stat.csrf) params += '&fwcsrf=' + stat.csrf
if(cmd) options.body = 'cmd=' + cmd
+ //local Loop to update reading directly without response from FHEM
+ if(/^set.*/.test(cmd)) {
+ cmdParts = cmd.split(' ')
+
+ stat.evtBuffer.push({ reading: cmdParts.slice(1, 3).join('-'), value: cmdParts[3] })
+ handleEventBuffer(true)
+ }
+
log(4, 'Request send to FHEM.', { url: createURL(params), options })
return await fetch(createURL(params), options)
@@ -397,7 +406,7 @@ export const useFhemStore = defineStore('fhem', () => {
}
//coreFunction to handle all Events in Buffer
- function handleEventBuffer() {
+ function handleEventBuffer(localLoop) {
let idx,
evts = stat.evtBuffer.length
@@ -407,12 +416,12 @@ export const useFhemStore = defineStore('fhem', () => {
idx = stat.panelMap.map((e) => e.reading).indexOf(evt.reading)
if(idx !== -1) {
- log(6, 'Data from FHEM handled.', evt)
+ if(!localLoop) log(6, 'Data from FHEM handled.', evt)
for(const path of stat.panelMap[idx].items) {
doUpdate(app.panelList, path, evt.value)
}
} else {
- log(8, 'Data from FHEM received.', evt)
+ if(!localLoop) log(8, 'Data from FHEM received.', evt)
}
}
@@ -507,7 +516,7 @@ export const useFhemStore = defineStore('fhem', () => {
//helperFunction called from createPanelMap for handle reading-definitions in Panels
function getReading(devices, reading) {
- let parts = reading.split('-'),
+ let parts = reading.trim().split('-'),
idx = devices.map((e) => e.key).indexOf(parts[0])
if(idx !== -1) {
@@ -546,7 +555,7 @@ export const useFhemStore = defineStore('fhem', () => {
}
}
}
- }
+ }
}
//helperFunction called from createPanelList
diff --git a/www/fhemapp4/CHANGELOG.md b/www/fhemapp4/CHANGELOG.md
index bf3a332..10897af 100644
--- a/www/fhemapp4/CHANGELOG.md
+++ b/www/fhemapp4/CHANGELOG.md
@@ -1,3 +1,9 @@
+# v4.0.26-beta (13.03.2024)
+## Core
+- bugfix for spaces at readings
+- local Loop to update reading directly without response from FHEM
+## Panel
+- optimization for section info
# v4.0.25-beta (11.03.2024)
## Settings
- add option for header in mobile view
diff --git a/www/fhemapp4/assets/DevicesView-f37b84af.js b/www/fhemapp4/assets/DevicesView-7f506158.js
similarity index 86%
rename from www/fhemapp4/assets/DevicesView-f37b84af.js
rename to www/fhemapp4/assets/DevicesView-7f506158.js
index 6b35c63..35141ad 100644
--- a/www/fhemapp4/assets/DevicesView-f37b84af.js
+++ b/www/fhemapp4/assets/DevicesView-7f506158.js
@@ -1 +1 @@
-import{u as f,c as p,r as c,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-46e75485.js";import{_ as x}from"./PanelCard-5966756d.js";const b={__name:"DevicesView",setup(g){const s=f(),m=p(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const a of s.app.panelView)s.handleDefs(s.app.panelList[a].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[a]);e.sort((a,t)=>o(a)>o(t)?1:o(t)>o(a)?-1:0)}return e}),l=p(()=>{let e={cols:12,sm:6,lg:4};return s.app.panelMaximized&&(e={cols:12}),e});function o(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,a)=>{const t=c("v-col"),_=c("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(t,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{b as default};
+import{u as f,c as p,r as c,o as n,a as u,w as i,b as d,d as h,F as v,e as w}from"./index-a0ee2194.js";import{_ as x}from"./PanelCard-b66c089f.js";const b={__name:"DevicesView",setup(g){const s=f(),m=p(()=>{let e=[];if(s.app.panelMaximized)e.push(s.app.panelMaximized);else{for(const a of s.app.panelView)s.handleDefs(s.app.panelList[a].panel.show,["show"],[!0]).show&&e.push(s.app.panelList[a]);e.sort((a,t)=>o(a)>o(t)?1:o(t)>o(a)?-1:0)}return e}),l=p(()=>{let e={cols:12,sm:6,lg:4};return s.app.panelMaximized&&(e={cols:12}),e});function o(e){return s.handleDefs(e.panel.sortby,["sortby"],[null]).sortby||"999"}return(e,a)=>{const t=c("v-col"),_=c("v-row");return n(),u(_,{"no-gutters":""},{default:i(()=>[(n(!0),d(v,null,h(m.value,r=>(n(),u(t,{cols:l.value.cols,sm:l.value.sm,lg:l.value.lg,key:r.name,class:"pa-1"},{default:i(()=>[w(x,{panel:r},null,8,["panel"])]),_:2},1032,["cols","sm","lg"]))),128))]),_:1})}}};export{b as default};
diff --git a/www/fhemapp4/assets/InternalsView-d1915780.js b/www/fhemapp4/assets/InternalsView-37d37c05.js
similarity index 90%
rename from www/fhemapp4/assets/InternalsView-d1915780.js
rename to www/fhemapp4/assets/InternalsView-37d37c05.js
index 010a2de..2468e77 100644
--- a/www/fhemapp4/assets/InternalsView-d1915780.js
+++ b/www/fhemapp4/assets/InternalsView-37d37c05.js
@@ -1 +1 @@
-import{u as x,V as C}from"./index-4e6c6f11.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,q as $,h as r}from"./index-46e75485.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=x();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),y=e("v-card");return N(),S(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default};
+import{u as x,V as C}from"./index-01b6e927.js";import{f as k,u as B,r as e,o as N,a as S,w as o,e as t,j as p,t as i,q as $,h as r}from"./index-a0ee2194.js";const O={__name:"InternalsView",setup(I){const n=k(!0),a=B(),{toClipboard:u}=x();function d(){u(JSON.stringify(n.value?a.app.config:a.app,null," "))}return(l,c)=>{const m=e("v-toolbar-title"),v=e("v-toolbar"),f=e("v-switch"),_=e("v-col"),b=e("v-btn"),g=e("v-snackbar"),h=e("v-row"),w=e("v-divider"),V=e("v-card-text"),y=e("v-card");return N(),S(y,null,{default:o(()=>[t(v,null,{default:o(()=>[t(m,null,{default:o(()=>[p(i(l.$t("_app.internals.title")),1)]),_:1})]),_:1}),t(V,null,{default:o(()=>[t(h,{"no-gutters":"",class:"align-center pb-2"},{default:o(()=>[t(_,null,{default:o(()=>[t(f,{label:l.$t("_app.internals.onlyConfig"),modelValue:n.value,"onUpdate:modelValue":c[0]||(c[0]=s=>n.value=s),color:"blue",density:"comfortable","hide-details":""},null,8,["label","modelValue"])]),_:1}),t(_,{cols:"1",class:"text-right"},{default:o(()=>[t(g,{timeout:2e3,rounded:"pill"},{activator:o(({props:s})=>[t(b,$(s,{variant:"text",icon:"mdi-clipboard-multiple-outline",size:"small",onClick:d}),null,16)]),default:o(()=>[p(" "+i(l.$t("_app.messages.clipboard.text")),1)]),_:1})]),_:1})]),_:1}),t(w,{class:"pb-3"}),t(r(C),{data:n.value?r(a).app.config:r(a).app,deep:1,showLine:!1,showIcon:!0,showLength:!0},null,8,["data"])]),_:1})]),_:1})}}};export{O as default};
diff --git a/www/fhemapp4/assets/PanelCard-5966756d.js b/www/fhemapp4/assets/PanelCard-5966756d.js
deleted file mode 100644
index d8c89fd..0000000
--- a/www/fhemapp4/assets/PanelCard-5966756d.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import{u as G,c as w,r as y,o as _,b as P,y as ee,t as j,k as S,a as D,w as z,j as J,z as Ee,F as Z,e as x,A as we,f as I,q as ne,d as _e,l as Re,B as oe,C as re,D as Me,E as Te,s as te,G as ze,x as pe,H as Oe,m as Se,I as Pe,J as Ve,h as K,K as je,L as Ie,i as Fe,p as Ne,M as Ue,N as He,O as qe,P as Be}from"./index-46e75485.js";const We={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=G(),r=w(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),u=w(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=w(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),i=w(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),o=w(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=y("v-icon"),d=y("v-progress-circular"),C=y("v-progress-linear");return _(),P(Z,null,[e.el.text?(_(),P("div",{key:0,class:ee(r.value.format)},j(r.value.text),3)):S("",!0),e.el.icon?(_(),D(c,{key:1,color:i.value.color,size:i.value.size},{default:z(()=>[J(j(i.value.icon),1)]),_:1},8,["color","size"])):S("",!0),e.el.status&&!o.value.linear?(_(),D(d,{key:2,width:"4",modelValue:o.value.level,"onUpdate:modelValue":l[0]||(l[0]=b=>o.value.level=b),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),e.el.status&&o.value.linear?(_(),D(C,{key:3,height:"7",rounded:"",modelValue:o.value.level,"onUpdate:modelValue":l[1]||(l[1]=b=>o.value.level=b),color:o.value.color,reverse:o.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),Ee("div",{class:ee(e.el.text2?u.value.format:s.value.format)},[e.el.text2?(_(),P("span",{key:0,class:ee(u.value.format)},j(u.value.text),3)):S("",!0),e.el.text3?(_(),P("span",{key:1,class:ee(s.value.format)},j(s.value.text),3)):S("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),r=w(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),u=w(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),s={timer:!1,long:!1};function i(a){let l=[],c=a.cmd;if(a.type==="cmd"){for(const d of t.devices)l=d.split(":"),RegExp(l[0]).test(c)&&(c=c.replace(l[0],l[1]));n.request("text",c)}a.type==="route"&&we.push({name:"devices",params:{view:a.cmd},query:we.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function o(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"]),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"]),d=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"]);(a==="touchStart"||a==="mouseStart")&&(s.timer=setTimeout(()=>{s.long=!0,c.cmd&&i(c)},1e3)),(a==="touchEnd"||a==="mouseEnd")&&(s.long?d.cmd&&i(d):l.cmd&&i(l),clearTimeout(s.timer),s.long=!1)}return(a,l)=>{const c=y("v-progress-linear"),d=y("v-icon"),C=y("v-btn");return _(),P(Z,null,[e.el.status?(_(),D(c,{key:0,height:"4",modelValue:u.value.level,"onUpdate:modelValue":l[0]||(l[0]=b=>u.value.level=b),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),x(C,{icon:"",variant:r.value.variant,disabled:r.value.disabled,color:r.value.color,onTouchstart:l[1]||(l[1]=b=>o("touchStart")),onTouchend:l[2]||(l[2]=b=>o("touchEnd")),onMousedown:l[3]||(l[3]=b=>o("mouseStart")),onMouseup:l[4]||(l[4]=b=>o("mouseEnd")),class:"my-2"},{default:z(()=>[x(d,{size:"large"},{default:z(()=>[J(j(r.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),r=I();function u(a){r.value=a}const s=w(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1]);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",r.value)),u(a.current),a});let i=null;function o(a){let l=s.value.cmd,c=/\./.exec(s.value.steps),d=0,C=[];c&&(d=s.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(d));for(const b of t.devices)C=b.split(":"),RegExp(C[0]).test(l)&&(l=l.replace(C[0],C[1]));clearTimeout(i),i=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=y("v-slider");return _(),D(c,{modelValue:r.value,"onUpdate:modelValue":[l[0]||(l[0]=d=>r.value=d),l[1]||(l[1]=d=>o(d))],min:s.value.min,max:s.value.max,step:s.value.steps,reverse:s.value.reverse,direction:s.value.vertical?"vertical":"horizontal","track-size":s.value.size,color:s.value.color,"hide-details":"","thumb-label":""},null,8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ge={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),r=I(!1),u=w(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(s,i)=>{const o=y("v-skeleton-loader"),a=y("v-img");return _(),P(Z,null,[r.value?S("",!0):(_(),D(o,{key:0,type:"image"})),x(a,{src:u.value.source,height:u.value.height,onLoad:i[0]||(i[0]=l=>r.value=!0)},null,8,["src","height"])],64)}}},Ye={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),r=w(()=>{let i=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return i.icon&&(i.icon=n.getIcon(i.icon,t.iconmap)),i}),u=w(()=>{let i=[],o=n.handleDefs(t.el.menu,["name","cmd"],["",""],!0,","),a={};for(const l of o)a={name:/:/.test(l.name)?l.name.split(":")[0]:l.name,cmd:/:/.test(l.cmd)?l.cmd.split(":")[1]:l.cmd},i.push(a);return i});function s(i){let o=[];for(const a of t.devices)o=a.split(":"),RegExp(o[0]).test(i)&&(i=i.replace(o[0],o[1]));n.request("text",i)}return(i,o)=>{const a=y("v-icon"),l=y("v-btn"),c=y("v-list-item-title"),d=y("v-list-item"),C=y("v-list"),b=y("v-menu");return _(),D(b,null,{activator:z(({props:m})=>[x(l,ne(m,{icon:"",variant:r.value.variant,disabled:r.value.disabled||u.value.length<1,color:r.value.color,class:"my-2"}),{default:z(()=>[x(a,{size:"large"},{default:z(()=>[J(j(r.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:z(()=>[x(C,null,{default:z(()=>[(_(!0),P(Z,null,_e(u.value,(m,f)=>(_(),D(d,{key:f,value:f,onClick:v=>s(m.cmd)},{default:z(()=>[x(c,null,{default:z(()=>[J(j(m.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var de=null;function Ze(e){return de||(de=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),de(e)}var ve=null;function Xe(e){ve||(ve=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),ve(e)}function $e(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function le(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(r){n[r]=t[r]}),n}function Ae(e,t,n){var r=window.getComputedStyle(e,n||null)||{display:"none"};return r[t]}function me(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Ae(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var Qe='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',he=0,se=null;function et(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=at.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,u=e.offsetHeight,s=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===r&&e.offsetHeight===u)||ue(e)}),i=me(e),o=i.detached,a=i.rendered;e.__resize_observer_triggered__=o===!1&&a===!1,e.__resize_observer__=s,s.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ue(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(he||(se=$e(Qe)),ot(e),e.__resize_rendered__=me(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),he++}function tt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",ge),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--he&&se&&se.parentNode.removeChild(se)}}function nt(e){var t=e.__resize_last__,n=t.width,r=t.height,u=e.offsetWidth,s=e.offsetHeight;return u!==n||s!==r?{width:u,height:s}:null}function at(){var e=me(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(xe(this),this.addEventListener("scroll",ge,!0)),this.__resize_rendered__=t,ue(this))}function ge(){var e=this;xe(this),this.__resize_raf__&&Xe(this.__resize_raf__),this.__resize_raf__=Ze(function(){var t=nt(e);t&&(e.__resize_last__=t,ue(e))})}function ue(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function ot(e){var t=Ae(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=le("div",{className:"resize-triggers"}),r=le("div",{className:"resize-expand-trigger"}),u=le("div"),s=le("div",{className:"resize-contract-trigger"});r.appendChild(u),n.appendChild(r),n.appendChild(s),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:u,contract:s},xe(e),e.addEventListener("scroll",ge,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function xe(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,u=t.contract,s=u.scrollWidth,i=u.scrollHeight,o=n.offsetWidth,a=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;u.scrollLeft=s,u.scrollTop=i,r.style.width=o+1+"px",r.style.height=a+1+"px",n.scrollLeft=l,n.scrollTop=c}var W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||typeof customElements>"u")return $=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
- __dispose = null;
-
- disconnectedCallback() {
- if (this.__dispose) {
- this.__dispose();
- this.__dispose = null;
- }
- }
-}
-
-if (customElements.get(tag) == null) {
- customElements.define(tag, EChartsElement);
-}
-`)(Le)}catch{return $=!1}return $=!0}(),ft="ecTheme",_t="ecInitOptions",mt="ecUpdateOptions",ht=Re({name:"echarts",props:W(W({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},it),dt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,r=oe(),u=oe(),s=oe(),i=oe(),o=re(ft,null),a=re(_t,null),l=re(mt,null),c=Me(e),d=c.autoresize,C=c.manualUpdate,b=c.loading,m=c.loadingOptions,f=w(function(){return i.value||e.option||null}),v=w(function(){return e.theme||ie(o,{})}),E=w(function(){return e.initOptions||ie(a,{})}),p=w(function(){return e.updateOptions||ie(l,{})}),h=w(function(){return function(A){var O={};for(var V in A)ut(V)||(O[V]=A[V]);return O}(n)}),R=Te().proxy.$listeners;function k(A){if(u.value){var O=s.value=Pe(u.value,v.value,E.value);e.group&&(O.group=e.group);var V=R;V||(V={},Object.keys(n).filter(function(T){return T.indexOf("on")===0&&T.length>2}).forEach(function(T){var L=T.charAt(2).toLowerCase()+T.slice(3);L.substring(L.length-4)==="Once"&&(L="~".concat(L.substring(0,L.length-4))),V[L]=n[T]})),Object.keys(V).forEach(function(T){var L=V[T];if(L){var U=T.toLowerCase();U.charAt(0)==="~"&&(U=U.substring(1),L.__once__=!0);var q=O;if(U.indexOf("zr:")===0&&(q=O.getZr(),U=U.substring(3)),L.__once__){delete L.__once__;var H=L;L=function(){for(var Y=[],B=0;B(b(),"height: "+(n.app.panelMaximized?window.innerHeight-250+"px":t.height)));function c(m){return s.d(m,{dateStyle:u.value?"short":"long"})}function d(m,f){let v;return o.value.from&&f&&(v=o.value.from),o.value.to&&!f&&(v=o.value.to),!v&&!isNaN(m)&&(v=(E=>new Date(E.setDate(E.getDate()+(Number(m)||0))))(new Date)),v||(v=new Date(/.*T.*/.test(m)?m:m+"T00:00:00")),!o.value.from&&f&&(o.value.from=v),!o.value.to&&!f&&(o.value.to=v),v=new Date(v.getTime()-v.getTimezoneOffset()*60*1e3),v.toISOString().split("T")[0]}async function C(){let m=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),f,v,E=[],p,h,R,k,F,M=[];if(m.length>0)for(const g of m){if(/^get.*/.test(g.data)){F="time",f=g.data.split(" ");for(const A of t.devices)A.split(":")[0]===f[1]&&(f[1]=A.split(":")[1]);if(f[4]=d(f[4],!0),f[5]=d(f[5],!1),v=await n.request("text",f.join(" ")),k=[],E=v.split(`
-`),E.length>0)for(const A of E)p=A.split(" "),p.length>1&&(h=new Date(p[0].replace("_","T")),R=parseFloat(p[1]).toFixed(g.digits),k.push([h,R]))}else F="category",v=/,/.test(g.data)?g.data:g.data.replace(/ /g,","),/^\[.*\]$/.test(C)||(v="["+v+"]"),k=n.stringToJson(v);M.push({xAxisType:F,type:g.type,name:g.name,digits:g.digits,suffix:g.suffix,data:k})}return M}async function b(){let m={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},f,v=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),E=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),p=Object.assign(m,n.app.panelMaximized&&Object.keys(E).length>0?E:v);o.value.fromMenu=!1,o.value.toMenu=!1,o.value.loaded=!1,a=await C();for(const[h,R]of Object.entries(a))f={formatter:k=>k.toLocaleString(s.locale.value,{minimumFractionDigits:R.digits,maximumFractionDigits:R.digits})+R.suffix},p.series[h]||(p.series[h]={}),p.yAxis[h]||(p.yAxis[h]={}),p.legend.data||(p.legend.data=[]),p.xAxis.type||(p.xAxis.type=R.xAxisType),p.series[h].name||(p.series[h].name=R.name),p.series[h].type||(p.series[h].type=R.type),p.series[h].data||(p.series[h].data=R.data),p.yAxis[h].type||(p.yAxis[h].type="value"),p.yAxis[h].axisLabel||(p.yAxis[h].axisLabel=f),p.legend.data[h]||(p.legend.data[h]=R.name);n.log(7,"Chartdata chart.loaded.",p),i.value=Object.assign({},p),o.value.loaded=!0}return(m,f)=>{const v=y("v-btn"),E=y("v-date-picker"),p=y("v-locale-provider"),h=y("v-menu"),R=y("v-skeleton-loader");return _(),P(Z,null,[K(n).app.panelMaximized?(_(),P("div",pt,[x(h,{modelValue:o.value.fromMenu,"onUpdate:modelValue":f[2]||(f[2]=k=>o.value.fromMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[x(v,ne(k,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:z(()=>[J(j(c(o.value.from)),1)]),_:2},1040)]),default:z(()=>[x(p,{locale:K(s).locale.value},{default:z(()=>[x(E,{modelValue:o.value.from,"onUpdate:modelValue":[f[0]||(f[0]=k=>o.value.from=k),f[1]||(f[1]=k=>b())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),J(" - "),x(h,{modelValue:o.value.toMenu,"onUpdate:modelValue":f[5]||(f[5]=k=>o.value.toMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[x(v,ne(k,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:z(()=>[J(j(c(o.value.to)),1)]),_:2},1040)]),default:z(()=>[x(p,{locale:K(s).locale.value},{default:z(()=>[x(E,{modelValue:o.value.to,"onUpdate:modelValue":[f[3]||(f[3]=k=>o.value.to=k),f[4]||(f[4]=k=>b())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):S("",!0),Ee("div",{style:Ue(l.value)},[o.value.loaded?S("",!0):(_(),D(R,{key:0,type:"text, image, text"})),o.value.loaded?(_(),D(K(ht),{key:1,option:i.value,theme:K(r).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):S("",!0)],4)],64)}}},xt=180/Math.PI,Ce=e=>{const t=e%360;return t<0?360+t:t},yt=({x:e,y:t},n)=>{const r=n.left+n.width/2,u=n.top+n.height/2;return Math.atan2(t-u,e-r)*xt},fe=()=>{};class bt{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Ce(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||fe,this.onDragStart=t.onDragStart||fe,this.onDragStop=t.onDragStop||fe,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,r=yt({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Ce(r+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const wt=["red","yellow","green","cyan","blue","magenta","red"],De={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},ce={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){const n=I(null),r=I(null);let u=null;const s=e.hue+"deg",i=I(e.hue),o=I(!e.initiallyCollapsed),a=I(!e.initiallyCollapsed),l=I(!1),c=I(!1),d=I(!1),C=w(()=>`hsla(${i.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),b=w(()=>wt[Math.round(i.value/60)]);return te(()=>e.hue,h=>{i.value=h,u.angle=h}),pe(()=>{u=new bt(r.value,{angle:i.value,onRotate(h){i.value=h,t("input",i.value)},onDragStart(){d.value=!0},onDragStop(){d.value=!1,t("change",i.value)}})}),Oe(()=>{u.destroy(),u=null}),{rcp:u,el:n,rotator:r,initialAngle:s,angle:i,isPaletteIn:o,isKnobIn:a,isDragging:d,isRippling:c,isPressed:l,color:C,valuetext:b,onKeyDown:h=>{e.disabled||l.value||!a.value||!(h.key in De)||(h.preventDefault(),u.angle=De[h.key](u.angle,e.step),i.value=u.angle,t("input",i.value),t("change",i.value))},onScroll:h=>{l.value||!a.value||(h.preventDefault(),h.deltaY>0?u.angle+=e.step:u.angle-=e.step,i.value=u.angle,t("input",i.value),t("change",i.value))},selectColor:()=>{l.value=!0,o.value&&a.value?(t("select",i.value),c.value=!0):o.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(a.value?a.value=!1:(a.value=!0,o.value=!0)),c.value=!1,l.value=!1},hidePalette:()=>{a.value||(o.value=!1)}}}};function zt(e,t,n,r,u,s){return _(),D("div",{ref:"el",role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":r.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":r.angle,"aria-valuetext":n.ariaValuetext||r.valuetext,"aria-disabled":n.disabled,class:["rcp",{dragging:r.isDragging,disabled:n.disabled}],tabindex:n.disabled?-1:0,style:{"--rcp-initial-angle":r.initialAngle},onKeyup:t[4]||(t[4]=qe((...i)=>r.selectColor&&r.selectColor(...i),["enter"])),onKeydown:t[5]||(t[5]=(...i)=>r.onKeyDown&&r.onKeyDown(...i))},[x("div",{class:["rcp__palette",r.isPaletteIn?"in":"out"]},null,2),x("div",ne({class:"rcp__rotator",style:{"pointer-events":n.disabled||r.isPressed||!r.isKnobIn?"none":null}},He(n.mouseScroll?{wheel:r.onScroll}:{}),{ref:"rotator"}),[x("div",{class:["rcp__knob",r.isKnobIn?"in":"out"],onTransitionend:t[1]||(t[1]=(...i)=>r.hidePalette&&r.hidePalette(...i))},null,34)],16),x("div",{class:["rcp__ripple",{rippling:r.isRippling}],style:{borderColor:r.color}},null,6),x("button",{type:"button",class:["rcp__well",{pressed:r.isPressed}],"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:{backgroundColor:r.color},onAnimationend:t[2]||(t[2]=(...i)=>r.togglePicker&&r.togglePicker(...i)),onClick:t[3]||(t[3]=(...i)=>r.selectColor&&r.selectColor(...i))},null,46,["aria-label","disabled","tabindex"])],46,["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"])}ce.render=zt;ce.install=function(e){e.component("ColorPicker",ce)};const St={class:"mt-4 mb-2"},kt={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=G(),r=w(()=>n.handleDefs(t.el.picker,["cmd","current"],["",!1]));function u(o){let a=s(o,50,100),l=r.value.cmd,c=[];l=l.replace("%v",a);for(const d of t.devices)c=d.split(":"),RegExp(c[0]).test(l)&&(l=l.replace(c[0],c[1]));n.request("text",l)}function s(o,a,l){a/=100;const c=l*Math.min(a,1-a)/100,d=C=>{const b=(C+o/30)%12,m=a-c*Math.max(Math.min(b-3,9-b,1),-1);return Math.round(255*m).toString(16).padStart(2,"0")};return`${d(0)}${d(8)}${d(4)}`}function i(o){o.split(" ").length>1&&(o=o.split(" ").slice(-1)[0]),o=o.replace(/^#/,"");let a=parseInt(o,16),l=a>>16&255,c=a>>8&255,d=a&255;l/=255,c/=255,d/=255;let C=Math.max(l,c,d),b=Math.min(l,c,d),m=C-b,f=(C+b)/2,v=0,E=0;return m!==0&&(C===l?v=((c-d)/m+(c(_(),P("div",St,[x(K(ce),ne(i(r.value.current),{variant:"persistent",onChange:a[0]||(a[0]=l=>u(l))}),null,16)]))}},Ct={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=G();function n(o,a){return t.handleDefs(o[a].size,["size"],[!1]).size}function r(o){let a="";return["info"].indexOf(o)!==-1&&(a="mx-2"),a}function u(o,a){return o[a]?t.handleDefs(o[a].divider,["show"],[!1]).show:!1}function s(o){return o.level?t.handleDefs(o.level.height,["height"],["64px"]).height:"64px"}function i(o){if(o==="info")return We;if(o==="btn")return Ke;if(o==="slider")return Je;if(o==="image")return Ge;if(o==="menu")return Ye;if(o==="chart")return gt;if(o==="colorpicker")return kt}return(o,a)=>{const l=y("v-sheet"),c=y("v-col"),d=y("v-divider"),C=y("v-row"),b=y("v-expand-transition");return _(!0),P(Z,null,_e(e.main,(m,f)=>(_(),P("div",{key:f},[x(b,null,{default:z(()=>[e.levels.indexOf(f)!==-1?(_(),D(C,{key:0,"no-gutters":"",class:"text-center align-center"},{default:z(()=>[x(l,{height:s(m,"level")},null,8,["height"]),(_(),P(Z,null,_e(["left1","left2","mid","right1","right2"],v=>(_(),P(Z,{key:v},[m.level[v]?(_(),D(c,{key:0,cols:n(m,v),class:ee(r(m.level[v]))},{default:z(()=>[(_(),D(Be(i(m.level[v])),{el:m[v],iconmap:e.iconmap,devices:e.devices,height:s(m,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):S("",!0),u(m,v)?(_(),D(d,{key:1,vertical:""})):S("",!0)],64))),64)),u(m,"level")?(_(),D(d,{key:0})):S("",!0)]),_:2},1024)):S("",!0)]),_:2},1024)]))),128)}}},Dt={key:1},Et={key:3},Ot={key:5},At={key:7},Lt={key:9},Rt={key:11},Tt={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=G();let r=n.thread();pe(()=>n.thread(r));function u(M){let g=n.handleDefs(t.panel.status[M],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return g.level=Math.round((g.level-g.min)/(g.max-g.min)*100),g}const s=w(()=>u("bar")),i=w(()=>u("bar2")),o=w(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),a=w(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=w(()=>n.handleDefs(t.panel.status.title,["title"],[""])),c=w(()=>n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1])),d=I(c.value.expanded),C=w(()=>{let M=null;return c.value.expandable&&(M=d.value?"mdi-arrow-collapse":"mdi-arrow-expand"),!c.value.expandable&&!c.value.expanded&&t.panel.main.length>1&&(M="mdi-swap-vertical"),M}),b=w(()=>{let M=[];for(const[g,A]of Object.entries(t.panel.main))n.handleDefs(A.level.show,["show"],[!0]).show&&M.push(Number(g));return M});function m(M){let g=-1;c.value.expandable||!c.value.expandable&&c.value.expanded?(M||(c.value.maximizable&&(n.app.panelMaximized=d.value?!1:t.panel),d.value=!d.value),f.value=d.value?b.value:[b.value[0]]):(g=b.value.indexOf(f.value?f.value[0]:null),f.value=g===-1||g===b.value.length-1?[b.value[0]]:[b.value[g+1]])}const f=I([]);function v(M){let g=n.handleDefs(t.panel.info[M],["text","icon","color"],["","",""]);return g.icon&&(g.icon=n.getIcon(g.icon,t.panel.panel.iconmap)),g}const E=w(()=>v("left1")),p=w(()=>v("left2")),h=w(()=>v("mid1")),R=w(()=>v("mid2")),k=w(()=>v("right1")),F=w(()=>v("right2"));return m(!0),(M,g)=>{const A=y("v-progress-linear"),O=y("v-col"),V=y("v-row"),N=y("v-spacer"),T=y("v-btn"),L=y("v-card-title"),U=y("v-img"),q=y("v-sheet"),H=y("v-icon"),Y=y("v-system-bar"),B=y("v-layout"),ae=y("v-card");return _(),D(ae,{variant:"tonal"},{default:z(()=>[x(V,{"no-gutters":""},{default:z(()=>[e.panel.status.bar?(_(),D(O,{key:0},{default:z(()=>[x(A,{height:"7",modelValue:s.value.level,"onUpdate:modelValue":g[0]||(g[0]=X=>s.value.level=X),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):S("",!0),e.panel.status.bar2?(_(),D(O,{key:1},{default:z(()=>[x(A,{height:"7",modelValue:i.value.level,"onUpdate:modelValue":g[1]||(g[1]=X=>i.value.level=X),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):S("",!0)]),_:1}),x(q,{color:"secondary"},{default:z(()=>[x(U,{src:o.value.url,gradient:o.value.url?K(n).app.header.imageGradient:"",height:"48",cover:""},{default:z(()=>[e.panel.status.title?(_(),D(L,{key:0},{default:z(()=>[x(V,{"no-gutters":""},{default:z(()=>[x(O,null,{default:z(()=>[J(j(l.value.title),1)]),_:1}),x(N),K(n).app.settings.loglevel>6?(_(),D(O,{key:0,class:"text-right"},{default:z(()=>[J(j(a.value.sortby),1)]),_:1})):S("",!0),C.value?(_(),D(O,{key:1,cols:"1",class:"text-right"},{default:z(()=>[x(T,{icon:C.value,size:"small",variant:"plain",density:"compact",onClick:g[2]||(g[2]=X=>m(!1))},null,8,["icon"])]),_:1})):S("",!0)]),_:1})]),_:1})):S("",!0)]),_:1},8,["src","gradient"])]),_:1}),x(Ct,{main:e.panel.main,levels:f.value,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),x(B,{style:{height:"24px"}},{default:z(()=>[x(Y,{color:"secondary"},{default:z(()=>[E.value.icon?(_(),D(H,{key:0,icon:E.value.icon,color:E.value.color},null,8,["icon","color"])):S("",!0),E.value.text?(_(),P("span",Dt,j(E.value.text),1)):S("",!0),p.value.icon?(_(),D(H,{key:2,icon:p.value.icon,color:p.value.color,class:"ml-2"},null,8,["icon","color"])):S("",!0),p.value.text?(_(),P("span",Et,j(p.value.text),1)):S("",!0),x(N),h.value.icon?(_(),D(H,{key:4,icon:h.value.icon,color:h.value.color},null,8,["icon","color"])):S("",!0),h.value.text?(_(),P("span",Ot,j(h.value.text),1)):S("",!0),R.value.icon?(_(),D(H,{key:6,icon:R.value.icon,color:R.value.color,class:"ml-2"},null,8,["icon","color"])):S("",!0),R.value.text?(_(),P("span",At,j(R.value.text),1)):S("",!0),x(N),k.value.icon?(_(),D(H,{key:8,icon:k.value.icon,color:k.value.color},null,8,["icon","color"])):S("",!0),k.value.text?(_(),P("span",Lt,j(k.value.text),1)):S("",!0),F.value.icon?(_(),D(H,{key:10,icon:F.value.icon,color:F.value.color,class:"ml-2"},null,8,["icon","color"])):S("",!0),F.value.text?(_(),P("span",Rt,j(F.value.text),1)):S("",!0)]),_:1})]),_:1})]),_:1})}}};export{Tt as _};
diff --git a/www/fhemapp4/assets/PanelCard-b66c089f.js b/www/fhemapp4/assets/PanelCard-b66c089f.js
new file mode 100644
index 0000000..0dea3ee
--- /dev/null
+++ b/www/fhemapp4/assets/PanelCard-b66c089f.js
@@ -0,0 +1,17 @@
+import{u as Y,c as b,r as y,o as m,b as T,y as q,t as V,k as S,a as A,w as z,j as G,z as De,F as Z,e as x,A as we,f as j,q as ne,d as me,l as Re,B as oe,C as le,D as Me,E as Pe,s as te,G as ze,x as ge,H as Oe,m as Se,I as Te,J as Ve,h as J,K as je,L as Ie,i as Fe,p as Ne,M as Ue,N as He,O as qe,P as Be}from"./index-a0ee2194.js";const We={__name:"PanelMainInfo",props:{el:Object,iconmap:Array,devices:Object,height:String},setup(e){const t=e,n=Y(),o=b(()=>n.handleDefs(t.el.text,["text","format"],["",!t.el.text2&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),u=b(()=>n.handleDefs(t.el.text2,["text","format"],["",t.el.text&&!t.el.text3&&!t.el.icon?"text-h6":"text-caption"])),s=b(()=>n.handleDefs(t.el.text3,["text","format"],["","text-caption"])),i=b(()=>{let a=n.handleDefs(t.el.icon,["icon","color","size"],["","","x-large"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),r=b(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse","linear"],[0,"success",0,100,!1,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a});return(a,l)=>{const c=y("v-icon"),v=y("v-progress-circular"),C=y("v-progress-linear");return m(),T(Z,null,[e.el.text?(m(),T("div",{key:0,class:q(o.value.format)},V(o.value.text),3)):S("",!0),e.el.icon?(m(),A(c,{key:1,color:i.value.color,size:i.value.size},{default:z(()=>[G(V(i.value.icon),1)]),_:1},8,["color","size"])):S("",!0),e.el.status&&!r.value.linear?(m(),A(v,{key:2,width:"4",modelValue:r.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),e.el.status&&r.value.linear?(m(),A(C,{key:3,height:"7",rounded:"",modelValue:r.value.level,"onUpdate:modelValue":l[1]||(l[1]=w=>r.value.level=w),color:r.value.color,reverse:r.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),De("div",{class:q(e.el.text2?u.value.format:s.value.format)},[e.el.text2?(m(),T("span",{key:0,class:q(u.value.format)},V(u.value.text),3)):S("",!0),e.el.text3?(m(),T("span",{key:1,class:q(s.value.format)},V(s.value.text),3)):S("",!0)],2)],64)}}},Ke={__name:"PanelMainBtn",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=Y(),o=b(()=>{let a=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["",!1,"","text"]);return a.icon&&(a.icon=n.getIcon(a.icon,t.iconmap)),a}),u=b(()=>{let a=n.handleDefs(t.el.status,["level","color","min","max","reverse"],[0,"success",0,100,!1]);return a.level=Math.round((a.level-a.min)/(a.max-a.min)*100),a.reverse=!!a.reverse,a}),s={timer:!1,long:!1};function i(a){let l=[],c=a.cmd;if(a.type==="cmd"){for(const v of t.devices)l=v.split(":"),RegExp(l[0]).test(c)&&(c=c.replace(l[0],l[1]));n.request("text",c)}a.type==="route"&&we.push({name:"devices",params:{view:a.cmd},query:we.currentRoute.value.query}),a.type==="url"&&window.open(a.cmd,"_self")}function r(a){let l=n.handleDefs(t.el.click,["cmd","type"],["","cmd"]),c=n.handleDefs(t.el.longClick,["cmd","type"],["","cmd"]),v=n.handleDefs(t.el.longRelease,["cmd","type"],["","cmd"]);a==="mouseStart"&&(s.timer=setTimeout(()=>{s.long=!0,c.cmd&&i(c)},1e3)),a==="mouseEnd"&&(s.long?v.cmd&&i(v):l.cmd&&i(l),clearTimeout(s.timer),s.long=!1)}return(a,l)=>{const c=y("v-progress-linear"),v=y("v-icon"),C=y("v-btn");return m(),T(Z,null,[e.el.status?(m(),A(c,{key:0,height:"4",modelValue:u.value.level,"onUpdate:modelValue":l[0]||(l[0]=w=>u.value.level=w),color:u.value.color,reverse:u.value.reverse},null,8,["modelValue","color","reverse"])):S("",!0),x(C,{icon:"",variant:o.value.variant,disabled:o.value.disabled,color:o.value.color,onMousedown:l[1]||(l[1]=w=>r("mouseStart")),onMouseup:l[2]||(l[2]=w=>r("mouseEnd")),class:"my-2"},{default:z(()=>[x(v,{size:"large"},{default:z(()=>[G(V(o.value.icon),1)]),_:1})]),_:1},8,["variant","disabled","color"])],64)}}},Je={__name:"PanelMainSlider",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=Y(),o=j();function u(a){o.value=a}const s=b(()=>{let a=n.handleDefs(t.el.slider,["cmd","current","color","min","max","steps","reverse","size","vertical"],["",0,"",0,100,10,!1,4,!1]);return/%v/.test(a.current)&&(a.current=a.current.replace("%v",o.value)),u(a.current),a});let i=null;function r(a){let l=s.value.cmd,c=/\./.exec(s.value.steps),v=0,C=[];c&&(v=s.value.steps.slice(c.index).length-1),l=l.replace("%v",a.toFixed(v));for(const w of t.devices)C=w.split(":"),RegExp(C[0]).test(l)&&(l=l.replace(C[0],C[1]));clearTimeout(i),i=setTimeout(()=>{n.request("text",l)},500)}return(a,l)=>{const c=y("v-slider");return m(),A(c,{modelValue:o.value,"onUpdate:modelValue":[l[0]||(l[0]=v=>o.value=v),l[1]||(l[1]=v=>r(v))],min:s.value.min,max:s.value.max,step:s.value.steps,reverse:s.value.reverse,direction:s.value.vertical?"vertical":"horizontal","track-size":s.value.size,color:s.value.color,"hide-details":"","thumb-label":""},null,8,["modelValue","min","max","step","reverse","direction","track-size","color"])}}},Ge={__name:"PanelMainImage",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=Y(),o=j(!1),u=b(()=>n.handleDefs(t.el.image,["source","height"],["",null]));return(s,i)=>{const r=y("v-skeleton-loader"),a=y("v-img");return m(),T(Z,null,[o.value?S("",!0):(m(),A(r,{key:0,type:"image"})),x(a,{src:u.value.source,height:u.value.height,onLoad:i[0]||(i[0]=l=>o.value=!0)},null,8,["src","height"])],64)}}},Ye={__name:"PanelMainMenu",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=Y(),o=b(()=>{let i=n.handleDefs(t.el.btn,["icon","disabled","color","variant"],["mdi-dots-vertical",!1,"","text"]);return i.icon&&(i.icon=n.getIcon(i.icon,t.iconmap)),i}),u=b(()=>{let i=[],r=n.handleDefs(t.el.menu,["name","cmd"],["",""],!0,","),a={};for(const l of r)a={name:/:/.test(l.name)?l.name.split(":")[0]:l.name,cmd:/:/.test(l.cmd)?l.cmd.split(":")[1]:l.cmd},i.push(a);return i});function s(i){let r=[];for(const a of t.devices)r=a.split(":"),RegExp(r[0]).test(i)&&(i=i.replace(r[0],r[1]));n.request("text",i)}return(i,r)=>{const a=y("v-icon"),l=y("v-btn"),c=y("v-list-item-title"),v=y("v-list-item"),C=y("v-list"),w=y("v-menu");return m(),A(w,null,{activator:z(({props:p})=>[x(l,ne(p,{icon:"",variant:o.value.variant,disabled:o.value.disabled||u.value.length<1,color:o.value.color,class:"my-2"}),{default:z(()=>[x(a,{size:"large"},{default:z(()=>[G(V(o.value.icon),1)]),_:1})]),_:2},1040,["variant","disabled","color"])]),default:z(()=>[x(C,null,{default:z(()=>[(m(!0),T(Z,null,me(u.value,(p,f)=>(m(),A(v,{key:f,value:f,onClick:d=>s(p.cmd)},{default:z(()=>[x(c,null,{default:z(()=>[G(V(p.name),1)]),_:2},1024)]),_:2},1032,["value","onClick"]))),128))]),_:1})]),_:1})}}};var ve=null;function Ze(e){return ve||(ve=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),ve(e)}var fe=null;function Xe(e){fe||(fe=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),fe(e)}function Qe(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function ie(e,t){t===void 0&&(t={});var n=document.createElement(e);return Object.keys(t).forEach(function(o){n[o]=t[o]}),n}function Ae(e,t,n){var o=window.getComputedStyle(e,n||null)||{display:"none"};return o[t]}function pe(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if(Ae(t,"display")==="none")return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var $e='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',he=0,ue=null;function et(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=at.bind(e));var n=e.__resize_listeners__;if(!n){if(e.__resize_listeners__=[],window.ResizeObserver){var o=e.offsetWidth,u=e.offsetHeight,s=new ResizeObserver(function(){!e.__resize_observer_triggered__&&(e.__resize_observer_triggered__=!0,e.offsetWidth===o&&e.offsetHeight===u)||ce(e)}),i=pe(e),r=i.detached,a=i.rendered;e.__resize_observer_triggered__=r===!1&&a===!1,e.__resize_observer__=s,s.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){ce(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(he||(ue=Qe($e)),rt(e),e.__resize_rendered__=pe(e).rendered,window.MutationObserver){var l=new MutationObserver(e.__resize_mutation_handler__);l.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=l}}e.__resize_listeners__.push(t),he++}function tt(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener){e.detachEvent("onresize",e.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);return}e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",xe),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--he&&ue&&ue.parentNode.removeChild(ue)}}function nt(e){var t=e.__resize_last__,n=t.width,o=t.height,u=e.offsetWidth,s=e.offsetHeight;return u!==n||s!==o?{width:u,height:s}:null}function at(){var e=pe(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(ye(this),this.addEventListener("scroll",xe,!0)),this.__resize_rendered__=t,ce(this))}function xe(){var e=this;ye(this),this.__resize_raf__&&Xe(this.__resize_raf__),this.__resize_raf__=Ze(function(){var t=nt(e);t&&(e.__resize_last__=t,ce(e))})}function ce(e){!e||!e.__resize_listeners__||e.__resize_listeners__.forEach(function(t){t.call(e,e)})}function rt(e){var t=Ae(e,"position");(!t||t==="static")&&(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=ie("div",{className:"resize-triggers"}),o=ie("div",{className:"resize-expand-trigger"}),u=ie("div"),s=ie("div",{className:"resize-contract-trigger"});o.appendChild(u),n.appendChild(o),n.appendChild(s),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:o,expandChild:u,contract:s},ye(e),e.addEventListener("scroll",xe,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function ye(e){var t=e.__resize_triggers__,n=t.expand,o=t.expandChild,u=t.contract,s=u.scrollWidth,i=u.scrollHeight,r=n.offsetWidth,a=n.offsetHeight,l=n.scrollWidth,c=n.scrollHeight;u.scrollLeft=s,u.scrollTop=i,o.style.width=r+1+"px",o.style.height=a+1+"px",n.scrollLeft=l,n.scrollTop=c}var K=function(){return K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n"u"||typeof customElements>"u")return $=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
+ __dispose = null;
+
+ disconnectedCallback() {
+ if (this.__dispose) {
+ this.__dispose();
+ this.__dispose = null;
+ }
+ }
+}
+
+if (customElements.get(tag) == null) {
+ customElements.define(tag, EChartsElement);
+}
+`)(Le)}catch{return $=!1}return $=!0}(),ft="ecTheme",_t="ecInitOptions",mt="ecUpdateOptions",pt=Re({name:"echarts",props:K(K({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},it),dt),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,o=oe(),u=oe(),s=oe(),i=oe(),r=le(ft,null),a=le(_t,null),l=le(mt,null),c=Me(e),v=c.autoresize,C=c.manualUpdate,w=c.loading,p=c.loadingOptions,f=b(function(){return i.value||e.option||null}),d=b(function(){return e.theme||se(r,{})}),O=b(function(){return e.initOptions||se(a,{})}),g=b(function(){return e.updateOptions||se(l,{})}),h=b(function(){return function(_){var D={};for(var L in _)ut(L)||(D[L]=_[L]);return D}(n)}),P=Pe().proxy.$listeners;function k(_){if(u.value){var D=s.value=Te(u.value,d.value,O.value);e.group&&(D.group=e.group);var L=P;L||(L={},Object.keys(n).filter(function(R){return R.indexOf("on")===0&&R.length>2}).forEach(function(R){var M=R.charAt(2).toLowerCase()+R.slice(3);M.substring(M.length-4)==="Once"&&(M="~".concat(M.substring(0,M.length-4))),L[M]=n[R]})),Object.keys(L).forEach(function(R){var M=L[R];if(M){var H=R.toLowerCase();H.charAt(0)==="~"&&(H=H.substring(1),M.__once__=!0);var B=D;if(H.indexOf("zr:")===0&&(B=D.getZr(),H=H.substring(3)),M.__once__){delete M.__once__;var Q=M;M=function(){for(var N=[],W=0;W(w(),"height: "+(n.app.panelMaximized?window.innerHeight-250+"px":t.height)));function c(p){return s.d(p,{dateStyle:u.value?"short":"long"})}function v(p,f){let d;return r.value.from&&f&&(d=r.value.from),r.value.to&&!f&&(d=r.value.to),!d&&!isNaN(p)&&(d=(O=>new Date(O.setDate(O.getDate()+(Number(p)||0))))(new Date)),d||(d=new Date(/.*T.*/.test(p)?p:p+"T00:00:00")),!r.value.from&&f&&(r.value.from=d),!r.value.to&&!f&&(r.value.to=d),d=new Date(d.getTime()-d.getTimezoneOffset()*60*1e3),d.toISOString().split("T")[0]}async function C(){let p=n.handleDefs(t.el.serie,["data","name","digits","suffix","type"],[null,"",0,"","line"],!0),f,d,O=[],g,h,P,k,I,F=[];if(p.length>0)for(const E of p){if(/^get.*/.test(E.data)){I="time",f=E.data.split(" ");for(const _ of t.devices)_.split(":")[0]===f[1]&&(f[1]=_.split(":")[1]);if(f[4]=v(f[4],!0),f[5]=v(f[5],!1),d=await n.request("text",f.join(" ")),k=[],O=d.split(`
+`),O.length>0)for(const _ of O)g=_.split(" "),g.length>1&&(h=new Date(g[0].replace("_","T")),P=parseFloat(g[1]).toFixed(E.digits),k.push([h,P]))}else I="category",d=/,/.test(E.data)?E.data:E.data.replace(/ /g,","),/^\[.*\]$/.test(C)||(d="["+d+"]"),k=n.stringToJson(d);F.push({xAxisType:I,type:E.type,name:E.name,digits:E.digits,suffix:E.suffix,data:k})}return F}async function w(){let p={tooltip:{trigger:"axis"},legend:{data:[],bottom:10},backgroundColor:"rgba(255, 255, 255, 0)",grid:{top:30,bottom:60,left:60,right:60},animationDuration:300,series:[],yAxis:[],xAxis:{}},f,d=JSON.parse(JSON.stringify(n.getEl(t.el,["options"])||{})),O=JSON.parse(JSON.stringify(n.getEl(t.el,["options2"])||{})),g=Object.assign(p,n.app.panelMaximized&&Object.keys(O).length>0?O:d);r.value.fromMenu=!1,r.value.toMenu=!1,r.value.loaded=!1,a=await C();for(const[h,P]of Object.entries(a))f={formatter:k=>k.toLocaleString(s.locale.value,{minimumFractionDigits:P.digits,maximumFractionDigits:P.digits})+P.suffix},g.series[h]||(g.series[h]={}),g.yAxis[h]||(g.yAxis[h]={}),g.legend.data||(g.legend.data=[]),g.xAxis.type||(g.xAxis.type=P.xAxisType),g.series[h].name||(g.series[h].name=P.name),g.series[h].type||(g.series[h].type=P.type),g.series[h].data||(g.series[h].data=P.data),g.yAxis[h].type||(g.yAxis[h].type="value"),g.yAxis[h].axisLabel||(g.yAxis[h].axisLabel=f),g.legend.data[h]||(g.legend.data[h]=P.name);n.log(7,"Chartdata chart.loaded.",g),i.value=Object.assign({},g),r.value.loaded=!0}return(p,f)=>{const d=y("v-btn"),O=y("v-date-picker"),g=y("v-locale-provider"),h=y("v-menu"),P=y("v-skeleton-loader");return m(),T(Z,null,[J(n).app.panelMaximized?(m(),T("div",ht,[x(h,{modelValue:r.value.fromMenu,"onUpdate:modelValue":f[2]||(f[2]=k=>r.value.fromMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[x(d,ne(k,{variant:"outlined","append-icon":"mdi-calendar",class:"mr-2"}),{default:z(()=>[G(V(c(r.value.from)),1)]),_:2},1040)]),default:z(()=>[x(g,{locale:J(s).locale.value},{default:z(()=>[x(O,{modelValue:r.value.from,"onUpdate:modelValue":[f[0]||(f[0]=k=>r.value.from=k),f[1]||(f[1]=k=>w())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"]),G(" - "),x(h,{modelValue:r.value.toMenu,"onUpdate:modelValue":f[5]||(f[5]=k=>r.value.toMenu=k),"close-on-content-click":!1},{activator:z(({props:k})=>[x(d,ne(k,{variant:"outlined","append-icon":"mdi-calendar",class:"ml-2"}),{default:z(()=>[G(V(c(r.value.to)),1)]),_:2},1040)]),default:z(()=>[x(g,{locale:J(s).locale.value},{default:z(()=>[x(O,{modelValue:r.value.to,"onUpdate:modelValue":[f[3]||(f[3]=k=>r.value.to=k),f[4]||(f[4]=k=>w())],color:"secondary"},null,8,["modelValue"])]),_:1},8,["locale"])]),_:1},8,["modelValue"])])):S("",!0),De("div",{style:Ue(l.value)},[r.value.loaded?S("",!0):(m(),A(P,{key:0,type:"text, image, text"})),r.value.loaded?(m(),A(J(pt),{key:1,option:i.value,theme:J(o).global.name.value==="dark"?"dark":"light",autoresize:""},null,8,["option","theme"])):S("",!0)],4)],64)}}},xt=180/Math.PI,Ce=e=>{const t=e%360;return t<0?360+t:t},yt=({x:e,y:t},n)=>{const o=n.left+n.width/2,u=n.top+n.height/2;return Math.atan2(t-u,e-o)*xt},_e=()=>{};class bt{constructor(t,n){this.active=!1,this.element=t,this.element.style.willChange="transform",this.initOptions(n),this.updateCSS(),this.bindHandlers(),this.addListeners()}get angle(){return this._angle}set angle(t){this._angle!==t&&(this._angle=Ce(t),this.updateCSS())}initOptions(t){t=t||{},this.onRotate=t.onRotate||_e,this.onDragStart=t.onDragStart||_e,this.onDragStop=t.onDragStop||_e,this._angle=t.angle||0}bindHandlers(){this.onRotationStart=this.onRotationStart.bind(this),this.onRotated=this.onRotated.bind(this),this.onRotationStop=this.onRotationStop.bind(this)}addListeners(){this.element.addEventListener("touchstart",this.onRotationStart,{passive:!0}),document.addEventListener("touchmove",this.onRotated,{passive:!1}),document.addEventListener("touchend",this.onRotationStop,{passive:!0}),document.addEventListener("touchcancel",this.onRotationStop,{passive:!0}),this.element.addEventListener("mousedown",this.onRotationStart,{passive:!0}),document.addEventListener("mousemove",this.onRotated,{passive:!1}),document.addEventListener("mouseup",this.onRotationStop,{passive:!0}),document.addEventListener("mouseleave",this.onRotationStop,{passive:!1})}removeListeners(){this.element.removeEventListener("touchstart",this.onRotationStart),document.removeEventListener("touchmove",this.onRotated),document.removeEventListener("touchend",this.onRotationStop),document.removeEventListener("touchcancel",this.onRotationStop),this.element.removeEventListener("mousedown",this.onRotationStart),document.removeEventListener("mousemove",this.onRotated),document.removeEventListener("mouseup",this.onRotationStop),document.removeEventListener("mouseleave",this.onRotationStop)}destroy(){this.onRotationStop(),this.removeListeners()}onRotationStart(t){(t.type==="touchstart"||t.button===0)&&(this.active=!0,this.onDragStart(t),this.setAngleFromEvent(t))}onRotationStop(){this.active&&(this.active=!1,this.onDragStop()),this.active=!1}onRotated(t){this.active&&(t.preventDefault(),this.setAngleFromEvent(t))}setAngleFromEvent(t){const n=t.targetTouches?t.targetTouches[0]:t,o=yt({x:n.clientX,y:n.clientY},this.element.getBoundingClientRect());this._angle=Ce(o+90),this.updateCSS(),this.onRotate(this._angle)}updateCSS(){this.element.style.transform="rotate("+this._angle+"deg)"}}const wt=["red","yellow","green","cyan","blue","magenta","red"],Ee={ArrowUp:(e,t)=>e+t,ArrowRight:(e,t)=>e+t,ArrowDown:(e,t)=>e-t,ArrowLeft:(e,t)=>e-t,PageUp:(e,t)=>e+t*10,PageDown:(e,t)=>e-t*10,Home:()=>0,End:()=>359},de={name:"ColorPicker",emits:["select","input","change"],props:{hue:{default:0},saturation:{default:100},luminosity:{default:50},alpha:{default:1},step:{default:1},mouseScroll:{default:!1},variant:{default:"collapsible"},disabled:{default:!1},initiallyCollapsed:{default:!1},ariaLabel:{default:"color picker"},ariaRoledescription:{default:"radial slider"},ariaValuetext:{default:""},ariaLabelColorWell:{default:"color well"}},setup(e,{emit:t}){const n=j(null),o=j(null);let u=null;const s=e.hue+"deg",i=j(e.hue),r=j(!e.initiallyCollapsed),a=j(!e.initiallyCollapsed),l=j(!1),c=j(!1),v=j(!1),C=b(()=>`hsla(${i.value}, ${e.saturation}%, ${e.luminosity}%, ${e.alpha})`),w=b(()=>wt[Math.round(i.value/60)]);return te(()=>e.hue,h=>{i.value=h,u.angle=h}),ge(()=>{u=new bt(o.value,{angle:i.value,onRotate(h){i.value=h,t("input",i.value)},onDragStart(){v.value=!0},onDragStop(){v.value=!1,t("change",i.value)}})}),Oe(()=>{u.destroy(),u=null}),{rcp:u,el:n,rotator:o,initialAngle:s,angle:i,isPaletteIn:r,isKnobIn:a,isDragging:v,isRippling:c,isPressed:l,color:C,valuetext:w,onKeyDown:h=>{e.disabled||l.value||!a.value||!(h.key in Ee)||(h.preventDefault(),u.angle=Ee[h.key](u.angle,e.step),i.value=u.angle,t("input",i.value),t("change",i.value))},onScroll:h=>{l.value||!a.value||(h.preventDefault(),h.deltaY>0?u.angle+=e.step:u.angle-=e.step,i.value=u.angle,t("input",i.value),t("change",i.value))},selectColor:()=>{l.value=!0,r.value&&a.value?(t("select",i.value),c.value=!0):r.value=!0},togglePicker:()=>{e.variant!=="persistent"&&(a.value?a.value=!1:(a.value=!0,r.value=!0)),c.value=!1,l.value=!1},hidePalette:()=>{a.value||(r.value=!1)}}}};function zt(e,t,n,o,u,s){return m(),A("div",{ref:"el",role:"slider","aria-roledescription":n.ariaRoledescription,"aria-label":n.ariaLabel,"aria-expanded":o.isPaletteIn,"aria-valuemin":"0","aria-valuemax":"359","aria-valuenow":o.angle,"aria-valuetext":n.ariaValuetext||o.valuetext,"aria-disabled":n.disabled,class:["rcp",{dragging:o.isDragging,disabled:n.disabled}],tabindex:n.disabled?-1:0,style:{"--rcp-initial-angle":o.initialAngle},onKeyup:t[4]||(t[4]=qe((...i)=>o.selectColor&&o.selectColor(...i),["enter"])),onKeydown:t[5]||(t[5]=(...i)=>o.onKeyDown&&o.onKeyDown(...i))},[x("div",{class:["rcp__palette",o.isPaletteIn?"in":"out"]},null,2),x("div",ne({class:"rcp__rotator",style:{"pointer-events":n.disabled||o.isPressed||!o.isKnobIn?"none":null}},He(n.mouseScroll?{wheel:o.onScroll}:{}),{ref:"rotator"}),[x("div",{class:["rcp__knob",o.isKnobIn?"in":"out"],onTransitionend:t[1]||(t[1]=(...i)=>o.hidePalette&&o.hidePalette(...i))},null,34)],16),x("div",{class:["rcp__ripple",{rippling:o.isRippling}],style:{borderColor:o.color}},null,6),x("button",{type:"button",class:["rcp__well",{pressed:o.isPressed}],"aria-label":n.ariaLabelColorWell,disabled:n.disabled,tabindex:n.disabled?-1:0,style:{backgroundColor:o.color},onAnimationend:t[2]||(t[2]=(...i)=>o.togglePicker&&o.togglePicker(...i)),onClick:t[3]||(t[3]=(...i)=>o.selectColor&&o.selectColor(...i))},null,46,["aria-label","disabled","tabindex"])],46,["aria-roledescription","aria-label","aria-expanded","aria-valuenow","aria-valuetext","aria-disabled","tabindex"])}de.render=zt;de.install=function(e){e.component("ColorPicker",de)};const St={class:"mt-4 mb-2"},kt={__name:"PanelMainColorpicker",props:{el:Object,iconmap:Array,devices:Array,height:String},setup(e){const t=e,n=Y(),o=b(()=>n.handleDefs(t.el.picker,["cmd","current"],["",!1]));function u(r){let a=s(r,50,100),l=o.value.cmd,c=[];l=l.replace("%v",a);for(const v of t.devices)c=v.split(":"),RegExp(c[0]).test(l)&&(l=l.replace(c[0],c[1]));n.request("text",l)}function s(r,a,l){a/=100;const c=l*Math.min(a,1-a)/100,v=C=>{const w=(C+r/30)%12,p=a-c*Math.max(Math.min(w-3,9-w,1),-1);return Math.round(255*p).toString(16).padStart(2,"0")};return`${v(0)}${v(8)}${v(4)}`}function i(r){r.split(" ").length>1&&(r=r.split(" ").slice(-1)[0]),r=r.replace(/^#/,"");let a=parseInt(r,16),l=a>>16&255,c=a>>8&255,v=a&255;l/=255,c/=255,v/=255;let C=Math.max(l,c,v),w=Math.min(l,c,v),p=C-w,f=(C+w)/2,d=0,O=0;return p!==0&&(C===l?d=((c-v)/p+(c(m(),T("div",St,[x(J(de),ne(i(o.value.current),{variant:"persistent",onChange:a[0]||(a[0]=l=>u(l))}),null,16)]))}},Ct={__name:"PanelMain",props:{main:Object,levels:Array,iconmap:Object,devices:Object},setup(e){const t=Y();function n(r,a){return t.handleDefs(r[a].size,["size"],[!1]).size}function o(r){let a="";return["info"].indexOf(r)!==-1&&(a="mx-2"),a}function u(r,a){return r[a]?t.handleDefs(r[a].divider,["show"],[!1]).show:!1}function s(r){return r.level?t.handleDefs(r.level.height,["height"],["64px"]).height:"64px"}function i(r){if(r==="info")return We;if(r==="btn")return Ke;if(r==="slider")return Je;if(r==="image")return Ge;if(r==="menu")return Ye;if(r==="chart")return gt;if(r==="colorpicker")return kt}return(r,a)=>{const l=y("v-sheet"),c=y("v-col"),v=y("v-divider"),C=y("v-row"),w=y("v-expand-transition");return m(!0),T(Z,null,me(e.main,(p,f)=>(m(),T("div",{key:f},[x(w,null,{default:z(()=>[e.levels.indexOf(f)!==-1?(m(),A(C,{key:0,"no-gutters":"",class:"text-center align-center"},{default:z(()=>[x(l,{height:s(p,"level")},null,8,["height"]),(m(),T(Z,null,me(["left1","left2","mid","right1","right2"],d=>(m(),T(Z,{key:d},[p.level[d]?(m(),A(c,{key:0,cols:n(p,d),class:q(o(p.level[d]))},{default:z(()=>[(m(),A(Be(i(p.level[d])),{el:p[d],iconmap:e.iconmap,devices:e.devices,height:s(p,"level")},null,8,["el","iconmap","devices","height"]))]),_:2},1032,["cols","class"])):S("",!0),u(p,d)?(m(),A(v,{key:1,vertical:""})):S("",!0)],64))),64)),u(p,"level")?(m(),A(v,{key:0})):S("",!0)]),_:2},1024)):S("",!0)]),_:2},1024)]))),128)}}},Dt={__name:"PanelCard",props:{panel:Object},setup(e){const t=e,n=Y();let o=n.thread();ge(()=>n.thread(o));function u(E){let _=n.handleDefs(t.panel.status[E],["level","color","min","max","reverse"],[0,"success",0,100,!1]);return _.level=Math.round((_.level-_.min)/(_.max-_.min)*100),_}const s=b(()=>u("bar")),i=b(()=>u("bar2")),r=b(()=>n.handleDefs(t.panel.status.imageUrl,["url"],[""])),a=b(()=>n.handleDefs(t.panel.panel.sortby,["sortby"],[null])),l=b(()=>n.handleDefs(t.panel.status.title,["title"],[""])),c=b(()=>n.handleDefs(t.panel.panel.expandable,["expandable","expanded","maximizable"],[!1,!1,!1])),v=j(c.value.expanded),C=b(()=>{let E=null;return c.value.expandable&&(E=v.value?"mdi-arrow-collapse":"mdi-arrow-expand"),!c.value.expandable&&!c.value.expanded&&t.panel.main.length>1&&(E="mdi-swap-vertical"),E}),w=b(()=>{let E=[];for(const[_,D]of Object.entries(t.panel.main))n.handleDefs(D.level.show,["show"],[!0]).show&&E.push(Number(_));return E});function p(E){let _=-1;c.value.expandable||!c.value.expandable&&c.value.expanded?(E||(c.value.maximizable&&(n.app.panelMaximized=v.value?!1:t.panel),v.value=!v.value),f.value=v.value?w.value:[w.value[0]]):(_=w.value.indexOf(f.value?f.value[0]:null),f.value=_===-1||_===w.value.length-1?[w.value[0]]:[w.value[_+1]])}const f=j([]);function d(E){let _=n.handleDefs(t.panel.info[E],["text","icon","color"],["","",""]);return _.icon&&(_.icon=n.getIcon(_.icon,t.panel.panel.iconmap)),_}function O(E){let _=["left1","left2","mid1","mid2","right1","right2"],D=d(E);return d(_[_.indexOf(E)-1]).text&&D.text&&!D.icon?"ml-1 text-truncate":D.text?"text-truncate":""}const g=b(()=>d("left1")),h=b(()=>d("left2")),P=b(()=>d("mid1")),k=b(()=>d("mid2")),I=b(()=>d("right1")),F=b(()=>d("right2"));return p(!0),(E,_)=>{const D=y("v-progress-linear"),L=y("v-col"),U=y("v-row"),R=y("v-spacer"),M=y("v-btn"),H=y("v-card-title"),B=y("v-img"),Q=y("v-sheet"),N=y("v-icon"),W=y("v-system-bar"),ae=y("v-layout"),re=y("v-card");return m(),A(re,{variant:"tonal"},{default:z(()=>[x(U,{"no-gutters":""},{default:z(()=>[e.panel.status.bar?(m(),A(L,{key:0},{default:z(()=>[x(D,{height:"7",modelValue:s.value.level,"onUpdate:modelValue":_[0]||(_[0]=X=>s.value.level=X),color:s.value.color,reverse:s.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):S("",!0),e.panel.status.bar2?(m(),A(L,{key:1},{default:z(()=>[x(D,{height:"7",modelValue:i.value.level,"onUpdate:modelValue":_[1]||(_[1]=X=>i.value.level=X),color:i.value.color,reverse:i.value.reverse},null,8,["modelValue","color","reverse"])]),_:1})):S("",!0)]),_:1}),x(Q,{color:"secondary"},{default:z(()=>[x(B,{src:r.value.url,gradient:r.value.url?J(n).app.header.imageGradient:"",height:"48",cover:""},{default:z(()=>[e.panel.status.title?(m(),A(H,{key:0},{default:z(()=>[x(U,{"no-gutters":""},{default:z(()=>[x(L,null,{default:z(()=>[G(V(l.value.title),1)]),_:1}),x(R),J(n).app.settings.loglevel>6?(m(),A(L,{key:0,class:"text-right"},{default:z(()=>[G(V(a.value.sortby),1)]),_:1})):S("",!0),C.value?(m(),A(L,{key:1,cols:"1",class:"text-right"},{default:z(()=>[x(M,{icon:C.value,size:"small",variant:"plain",density:"compact",onClick:_[2]||(_[2]=X=>p(!1))},null,8,["icon"])]),_:1})):S("",!0)]),_:1})]),_:1})):S("",!0)]),_:1},8,["src","gradient"])]),_:1}),x(Ct,{main:e.panel.main,levels:f.value,iconmap:e.panel.panel.iconmap,devices:e.panel.panel.devices},null,8,["main","levels","iconmap","devices"]),x(ae,{style:{height:"24px"}},{default:z(()=>[x(W,{color:"secondary"},{default:z(()=>[g.value.icon?(m(),A(N,{key:0,icon:g.value.icon,color:g.value.color},null,8,["icon","color"])):S("",!0),g.value.text?(m(),T("span",{key:1,class:q(O("left1"))},V(g.value.text),3)):S("",!0),h.value.icon?(m(),A(N,{key:2,icon:h.value.icon,color:h.value.color},null,8,["icon","color"])):S("",!0),h.value.text?(m(),T("span",{key:3,class:q(O("left2"))},V(h.value.text),3)):S("",!0),x(R),P.value.icon?(m(),A(N,{key:4,icon:P.value.icon,color:P.value.color},null,8,["icon","color"])):S("",!0),P.value.text?(m(),T("span",{key:5,class:q(O("mid1"))},V(P.value.text),3)):S("",!0),k.value.icon?(m(),A(N,{key:6,icon:k.value.icon,color:k.value.color},null,8,["icon","color"])):S("",!0),k.value.text?(m(),T("span",{key:7,class:q(O("mid2"))},V(k.value.text),3)):S("",!0),x(R),I.value.icon?(m(),A(N,{key:8,icon:I.value.icon,color:I.value.color},null,8,["icon","color"])):S("",!0),I.value.text?(m(),T("span",{key:9,class:q(O("right1"))},V(I.value.text),3)):S("",!0),F.value.icon?(m(),A(N,{key:10,icon:F.value.icon,color:F.value.color},null,8,["icon","color"])):S("",!0),F.value.text?(m(),T("span",{key:11,class:q(O("right2"))},V(F.value.text),3)):S("",!0)]),_:1})]),_:1})]),_:1})}}};export{Dt as _};
diff --git a/www/fhemapp4/assets/SettingsView-82eef78a.js b/www/fhemapp4/assets/SettingsView-82e7e5a7.js
similarity index 78%
rename from www/fhemapp4/assets/SettingsView-82eef78a.js
rename to www/fhemapp4/assets/SettingsView-82e7e5a7.js
index c016db2..bf5fc83 100644
--- a/www/fhemapp4/assets/SettingsView-82eef78a.js
+++ b/www/fhemapp4/assets/SettingsView-82e7e5a7.js
@@ -1,4 +1,4 @@
-import{u as tt,f as Ne,g as ar,r as V,o as G,a as X,w as T,e as E,h as z,b as ze,F as Xe,d as st,i as Nn,j as _e,t as et,k as re,l as Or,m as mt,c as De,n as Cr,v as Tr,p as ir,q as lr,s as wr,x as Pr}from"./index-46e75485.js";import{c as An,g as Dr,r as Ar,a as $r,u as Fr,V as Rr}from"./index-4e6c6f11.js";import{_ as Vr}from"./PanelCard-5966756d.js";const de="_app.settings.header.",jr={__name:"SettingsHeader",setup(s){const t=tt(),n={required:r=>!!r||t.replacer("%t(_app.settings.rules.required)")},i=Ne(),o=ar({name:"",title:"",icon:"",cmd:""});function u(){t.app.config.header.commands||(t.app.config.header.commands=[]),t.app.config.header.commands.push(JSON.parse(JSON.stringify(o))),i.value.reset()}function e(r){t.app.config.header.commands.splice(r,1)}return(r,a)=>{const l=V("v-btn"),d=V("v-list-item"),c=V("v-text-field"),v=V("v-col"),m=V("v-checkbox"),f=V("v-row"),g=V("v-divider"),y=V("v-form"),S=V("v-list");return G(),X(S,null,{default:T(()=>[E(d,{title:r.$t(de+"barTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[0]||(a[0]=p=>z(t).help("kopfzeile"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageUrlPlaceholder"),label:r.$t(de+"imageUrl"),modelValue:z(t).app.config.header.imageUrl,"onUpdate:modelValue":a[1]||(a[1]=p=>z(t).app.config.header.imageUrl=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageGradientPlaceholder"),label:r.$t(de+"imageGradient"),modelValue:z(t).app.config.header.imageGradient,"onUpdate:modelValue":a[2]||(a[2]=p=>z(t).app.config.header.imageGradient=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTimeHint"),label:r.$t(de+"showTime"),modelValue:z(t).app.config.header.showTime,"onUpdate:modelValue":a[3]||(a[3]=p=>z(t).app.config.header.showTime=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showDateHint"),label:r.$t(de+"showDate"),modelValue:z(t).app.config.header.showDate,"onUpdate:modelValue":a[4]||(a[4]=p=>z(t).app.config.header.showDate=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTitleHint"),label:r.$t(de+"showTitle"),modelValue:z(t).app.config.header.showTitle,"onUpdate:modelValue":a[5]||(a[5]=p=>z(t).app.config.header.showTitle=p)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[6]||(a[6]=p=>z(t).help("optionsmenü"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showDarkMode"),modelValue:z(t).app.config.header.showDarkMode,"onUpdate:modelValue":a[7]||(a[7]=p=>z(t).app.config.header.showDarkMode=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showReloadPage"),modelValue:z(t).app.config.header.showReloadPage,"onUpdate:modelValue":a[8]||(a[8]=p=>z(t).app.config.header.showReloadPage=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showSettings"),modelValue:z(t).app.config.header.showSettings,"onUpdate:modelValue":a[9]||(a[9]=p=>z(t).app.config.header.showSettings=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showLanguages"),modelValue:z(t).app.config.header.showLanguages,"onUpdate:modelValue":a[10]||(a[10]=p=>z(t).app.config.header.showLanguages=p)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsCommandTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[11]||(a[11]=p=>z(t).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(G(!0),ze(Xe,null,st(z(t).app.config.header.commands,(p,h)=>(G(),X(d,{key:h},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:p.name,"onUpdate:modelValue":x=>p.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:p.title,"onUpdate:modelValue":x=>p.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":p.icon,modelValue:p.icon,"onUpdate:modelValue":x=>p.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:p.cmd,"onUpdate:modelValue":x=>p.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-delete",onClick:x=>e(h)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),E(d,null,{default:T(()=>[E(y,{ref_key:"form",ref:i},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:o.name,"onUpdate:modelValue":a[12]||(a[12]=p=>o.name=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:o.title,"onUpdate:modelValue":a[13]||(a[13]=p=>o.title=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":o.icon,modelValue:o.icon,"onUpdate:modelValue":a[14]||(a[14]=p=>o.icon=p)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(v,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:o.cmd,"onUpdate:modelValue":a[15]||(a[15]=p=>o.cmd=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-cancel",onClick:a[16]||(a[16]=p=>i.value.reset())}),E(l,{variant:"text",icon:"mdi-plus",disabled:!o.name||!o.title||!o.cmd,onClick:a[17]||(a[17]=p=>u())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},be="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(s){const{mobile:t}=Nn(),n=tt(),i=ar({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),o=Ne(),u={required:c=>!!c||n.replacer("%t(_app.settings.rules.required)")};function e(c){typeof c<"u"&&(i.path.push(c,"group"),i.route.push(i.items[c].name)),i.items=n.getEl(n.app.config.navigation,i.path)}function r(){let c=JSON.parse(JSON.stringify(i.newItem));n.getEl(n.app.config.navigation,i.path).push(c),e(),o.value.reset()}function a(c){n.getEl(n.app.config.navigation,i.path).splice(c,1)}function l(c){return(n.getEl(i.items[c],["group"])||[]).length}function d(){i.route.pop(),i.path.splice(-2,2),e()}return e(),(c,v)=>{const m=V("v-btn"),f=V("v-list-item"),g=V("v-text-field"),y=V("v-col"),S=V("v-checkbox"),p=V("v-icon"),h=V("v-badge"),x=V("v-row"),C=V("v-divider"),I=V("v-form"),D=V("v-list");return G(),X(D,null,{default:T(()=>[E(f,{title:c.$t(be+"title")},{append:T(()=>[E(m,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:v[0]||(v[0]=O=>z(n).help("navigation"))})]),_:1},8,["title"]),i.path.length>0?(G(),X(f,{key:0},{default:T(()=>[E(m,{variant:"text",icon:"mdi-arrow-up-left",onClick:v[1]||(v[1]=O=>d())}),_e(" "+et(i.route.join(" > ")),1)]),_:1})):re("",!0),(G(!0),ze(Xe,null,st(i.items,(O,b)=>(G(),X(f,{key:b},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:O.name,"onUpdate:modelValue":$=>O.name=$},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:O.title,"onUpdate:modelValue":$=>O.title=$},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":O.icon,modelValue:O.icon,"onUpdate:modelValue":$=>O.icon=$},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:O.groupAsChips,"onUpdate:modelValue":$=>O.groupAsChips=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:O.sort,"onUpdate:modelValue":$=>O.sort=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:O.divider,"onUpdate:modelValue":$=>O.divider=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"",onClick:$=>e(b)},{default:T(()=>[l(b)>0?(G(),X(h,{key:0,color:"success",content:l(b)},{default:T(()=>[E(p,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):re("",!0),l(b)===0?(G(),X(p,{key:1,icon:"mdi-arrow-down-right"})):re("",!0)]),_:2},1032,["onClick"]),E(m,{variant:"text",icon:"mdi-delete",onClick:$=>a(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),z(t)?(G(),X(C,{key:0})):re("",!0)]),_:2},1024))),128)),E(f,null,{default:T(()=>[E(I,{ref_key:"form",ref:o},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:i.newItem.name,"onUpdate:modelValue":v[2]||(v[2]=O=>i.newItem.name=O)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:i.newItem.title,"onUpdate:modelValue":v[3]||(v[3]=O=>i.newItem.title=O)},null,8,["placeholder","label","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":i.newItem.icon,modelValue:i.newItem.icon,"onUpdate:modelValue":v[4]||(v[4]=O=>i.newItem.icon=O)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:i.newItem.groupAsChips,"onUpdate:modelValue":v[5]||(v[5]=O=>i.newItem.groupAsChips=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:i.newItem.sort,"onUpdate:modelValue":v[6]||(v[6]=O=>i.newItem.sort=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:i.newItem.divider,"onUpdate:modelValue":v[7]||(v[7]=O=>i.newItem.divider=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"mdi-cancel",onClick:v[8]||(v[8]=O=>o.value.reset())}),E(m,{variant:"text",icon:"mdi-plus",disabled:!i.newItem.name,onClick:v[9]||(v[9]=O=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Gt(){return Gt=Object.assign||function(s){for(var t=1;t";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),i=window.getComputedStyle(t);this.$nextTick(function(){var o="border-top-left-radius",u="border-bottom-left-radius";if(n){n.style[o]=i[o],n.style[u]=i[u],t.style[o]="0",t.style[u]="0";var e=["background-color","margin-top","padding-top","font-family","font-size","line-height"];e.forEach(function(r){n.style[r]=i[r]}),n.style["margin-bottom"]="-"+i["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:n,selectionStart:i,selectionEnd:o})}},_getLines:function(t,n){return t.substring(0,n).split(`
+import{u as tt,f as Ne,g as ar,r as V,o as G,a as X,w as T,e as E,h as z,b as ze,F as Xe,d as st,i as Nn,j as _e,t as et,k as re,l as Or,m as mt,c as De,n as Cr,v as Tr,p as ir,q as lr,s as wr,x as Pr}from"./index-a0ee2194.js";import{c as An,g as Dr,r as Ar,a as $r,u as Fr,V as Rr}from"./index-01b6e927.js";import{_ as Vr}from"./PanelCard-b66c089f.js";const de="_app.settings.header.",jr={__name:"SettingsHeader",setup(s){const t=tt(),n={required:r=>!!r||t.replacer("%t(_app.settings.rules.required)")},i=Ne(),o=ar({name:"",title:"",icon:"",cmd:""});function u(){t.app.config.header.commands||(t.app.config.header.commands=[]),t.app.config.header.commands.push(JSON.parse(JSON.stringify(o))),i.value.reset()}function e(r){t.app.config.header.commands.splice(r,1)}return(r,a)=>{const l=V("v-btn"),d=V("v-list-item"),c=V("v-text-field"),v=V("v-col"),m=V("v-checkbox"),f=V("v-row"),g=V("v-divider"),y=V("v-form"),S=V("v-list");return G(),X(S,null,{default:T(()=>[E(d,{title:r.$t(de+"barTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[0]||(a[0]=p=>z(t).help("kopfzeile"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageUrlPlaceholder"),label:r.$t(de+"imageUrl"),modelValue:z(t).app.config.header.imageUrl,"onUpdate:modelValue":a[1]||(a[1]=p=>z(t).app.config.header.imageUrl=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"12",lg:"4",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"imageGradientPlaceholder"),label:r.$t(de+"imageGradient"),modelValue:z(t).app.config.header.imageGradient,"onUpdate:modelValue":a[2]||(a[2]=p=>z(t).app.config.header.imageGradient=p)},null,8,["placeholder","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTimeHint"),label:r.$t(de+"showTime"),modelValue:z(t).app.config.header.showTime,"onUpdate:modelValue":a[3]||(a[3]=p=>z(t).app.config.header.showTime=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showDateHint"),label:r.$t(de+"showDate"),modelValue:z(t).app.config.header.showDate,"onUpdate:modelValue":a[4]||(a[4]=p=>z(t).app.config.header.showDate=p)},null,8,["hint","label","modelValue"])]),_:1}),E(v,{cols:"6",lg:"",class:"pt-1"},{default:T(()=>[E(m,{hint:r.$t(de+"showTitleHint"),label:r.$t(de+"showTitle"),modelValue:z(t).app.config.header.showTitle,"onUpdate:modelValue":a[5]||(a[5]=p=>z(t).app.config.header.showTitle=p)},null,8,["hint","label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[6]||(a[6]=p=>z(t).help("optionsmenü"))})]),_:1},8,["title"]),E(d,null,{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showDarkMode"),modelValue:z(t).app.config.header.showDarkMode,"onUpdate:modelValue":a[7]||(a[7]=p=>z(t).app.config.header.showDarkMode=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showReloadPage"),modelValue:z(t).app.config.header.showReloadPage,"onUpdate:modelValue":a[8]||(a[8]=p=>z(t).app.config.header.showReloadPage=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showSettings"),modelValue:z(t).app.config.header.showSettings,"onUpdate:modelValue":a[9]||(a[9]=p=>z(t).app.config.header.showSettings=p)},null,8,["label","modelValue"])]),_:1}),E(v,{cols:"6",lg:""},{default:T(()=>[E(m,{label:r.$t(de+"showLanguages"),modelValue:z(t).app.config.header.showLanguages,"onUpdate:modelValue":a[10]||(a[10]=p=>z(t).app.config.header.showLanguages=p)},null,8,["label","modelValue"])]),_:1})]),_:1})]),_:1}),E(g),E(d,{title:r.$t(de+"optionsCommandTitle")},{append:T(()=>[E(l,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:a[11]||(a[11]=p=>z(t).help("optionsmenü-fhem-befehle"))})]),_:1},8,["title"]),(G(!0),ze(Xe,null,st(z(t).app.config.header.commands,(p,h)=>(G(),X(d,{key:h},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:p.name,"onUpdate:modelValue":x=>p.name=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:p.title,"onUpdate:modelValue":x=>p.title=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":p.icon,modelValue:p.icon,"onUpdate:modelValue":x=>p.icon=x},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{cols:"10",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:p.cmd,"onUpdate:modelValue":x=>p.cmd=x},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-delete",onClick:x=>e(h)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),E(d,null,{default:T(()=>[E(y,{ref_key:"form",ref:i},{default:T(()=>[E(f,{"no-gutters":""},{default:T(()=>[E(v,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandNamePlaceholder"),label:r.$t(de+"commandName"),rules:[n.required],modelValue:o.name,"onUpdate:modelValue":a[12]||(a[12]=p=>o.name=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandTitlePlaceholder"),label:r.$t(de+"commandTitle"),rules:[n.required],modelValue:o.title,"onUpdate:modelValue":a[13]||(a[13]=p=>o.title=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandIconPlaceholder"),label:r.$t(de+"commandIcon"),"append-inner-icon":o.icon,modelValue:o.icon,"onUpdate:modelValue":a[14]||(a[14]=p=>o.icon=p)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(v,{cols:"9",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(c,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:r.$t(de+"commandCmdPlaceholder"),label:r.$t(de+"commandCmd"),rules:[n.required],modelValue:o.cmd,"onUpdate:modelValue":a[15]||(a[15]=p=>o.cmd=p)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(v,{class:"pt-3 text-right"},{default:T(()=>[E(l,{variant:"text",icon:"mdi-cancel",onClick:a[16]||(a[16]=p=>i.value.reset())}),E(l,{variant:"text",icon:"mdi-plus",disabled:!o.name||!o.title||!o.cmd,onClick:a[17]||(a[17]=p=>u())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}},be="_app.settings.navigation.",Nr={__name:"SettingsNavigation",setup(s){const{mobile:t}=Nn(),n=tt(),i=ar({path:[],route:["navigation"],items:[],newItem:{name:null,title:null,icon:null,divider:!1,groupAsChips:!1,sort:!1,group:[]}}),o=Ne(),u={required:c=>!!c||n.replacer("%t(_app.settings.rules.required)")};function e(c){typeof c<"u"&&(i.path.push(c,"group"),i.route.push(i.items[c].name)),i.items=n.getEl(n.app.config.navigation,i.path)}function r(){let c=JSON.parse(JSON.stringify(i.newItem));n.getEl(n.app.config.navigation,i.path).push(c),e(),o.value.reset()}function a(c){n.getEl(n.app.config.navigation,i.path).splice(c,1)}function l(c){return(n.getEl(i.items[c],["group"])||[]).length}function d(){i.route.pop(),i.path.splice(-2,2),e()}return e(),(c,v)=>{const m=V("v-btn"),f=V("v-list-item"),g=V("v-text-field"),y=V("v-col"),S=V("v-checkbox"),p=V("v-icon"),h=V("v-badge"),x=V("v-row"),C=V("v-divider"),I=V("v-form"),D=V("v-list");return G(),X(D,null,{default:T(()=>[E(f,{title:c.$t(be+"title")},{append:T(()=>[E(m,{color:"info",icon:"mdi-help-circle",variant:"text",onClick:v[0]||(v[0]=O=>z(n).help("navigation"))})]),_:1},8,["title"]),i.path.length>0?(G(),X(f,{key:0},{default:T(()=>[E(m,{variant:"text",icon:"mdi-arrow-up-left",onClick:v[1]||(v[1]=O=>d())}),_e(" "+et(i.route.join(" > ")),1)]),_:1})):re("",!0),(G(!0),ze(Xe,null,st(i.items,(O,b)=>(G(),X(f,{key:b},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:O.name,"onUpdate:modelValue":$=>O.name=$},null,8,["placeholder","label","rules","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:O.title,"onUpdate:modelValue":$=>O.title=$},null,8,["placeholder","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":O.icon,modelValue:O.icon,"onUpdate:modelValue":$=>O.icon=$},null,8,["placeholder","label","append-inner-icon","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:O.groupAsChips,"onUpdate:modelValue":$=>O.groupAsChips=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:4,lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:O.sort,"onUpdate:modelValue":$=>O.sort=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:O.divider,"onUpdate:modelValue":$=>O.divider=$},null,8,["hint","label","modelValue","onUpdate:modelValue"])]),_:2},1024),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"",onClick:$=>e(b)},{default:T(()=>[l(b)>0?(G(),X(h,{key:0,color:"success",content:l(b)},{default:T(()=>[E(p,{icon:"mdi-arrow-down-right"})]),_:2},1032,["content"])):re("",!0),l(b)===0?(G(),X(p,{key:1,icon:"mdi-arrow-down-right"})):re("",!0)]),_:2},1032,["onClick"]),E(m,{variant:"text",icon:"mdi-delete",onClick:$=>a(b)},null,8,["onClick"])]),_:2},1024)]),_:2},1024),z(t)?(G(),X(C,{key:0})):re("",!0)]),_:2},1024))),128)),E(f,null,{default:T(()=>[E(I,{ref_key:"form",ref:o},{default:T(()=>[E(x,{"no-gutters":""},{default:T(()=>[E(y,{cols:"12",lg:"2",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"namePlaceholder"),label:c.$t(be+"name"),rules:[u.required],modelValue:i.newItem.name,"onUpdate:modelValue":v[2]||(v[2]=O=>i.newItem.name=O)},null,8,["placeholder","label","rules","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"title1Placeholder"),label:c.$t(be+"title1"),modelValue:i.newItem.title,"onUpdate:modelValue":v[3]||(v[3]=O=>i.newItem.title=O)},null,8,["placeholder","label","modelValue"])]),_:1}),E(y,{cols:"12",lg:"3",class:"pt-3 pr-3"},{default:T(()=>[E(g,{density:"compact",variant:"outlined",clearable:"","persistent-placeholder":"",placeholder:c.$t(be+"iconPlaceholder"),label:c.$t(be+"icon"),"append-inner-icon":i.newItem.icon,modelValue:i.newItem.icon,"onUpdate:modelValue":v[4]||(v[4]=O=>i.newItem.icon=O)},null,8,["placeholder","label","append-inner-icon","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"groupAsChipsHint"),label:c.$t(be+"groupAsChips"),modelValue:i.newItem.groupAsChips,"onUpdate:modelValue":v[5]||(v[5]=O=>i.newItem.groupAsChips=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"sortHint"),label:c.$t(be+"sort"),modelValue:i.newItem.sort,"onUpdate:modelValue":v[6]||(v[6]=O=>i.newItem.sort=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{cols:"4",lg:"",class:"pt-1"},{default:T(()=>[E(S,{hint:c.$t(be+"dividerHint"),label:c.$t(be+"divider"),modelValue:i.newItem.divider,"onUpdate:modelValue":v[7]||(v[7]=O=>i.newItem.divider=O)},null,8,["hint","label","modelValue"])]),_:1}),E(y,{class:"pt-3 text-right"},{default:T(()=>[E(m,{variant:"text",icon:"mdi-cancel",onClick:v[8]||(v[8]=O=>o.value.reset())}),E(m,{variant:"text",icon:"mdi-plus",disabled:!i.newItem.name,onClick:v[9]||(v[9]=O=>r())},null,8,["disabled"])]),_:1})]),_:1})]),_:1},512)]),_:1})]),_:1})}}};function Gt(){return Gt=Object.assign||function(s){for(var t=1;t";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),i=window.getComputedStyle(t);this.$nextTick(function(){var o="border-top-left-radius",u="border-bottom-left-radius";if(n){n.style[o]=i[o],n.style[u]=i[u],t.style[o]="0",t.style[u]="0";var e=["background-color","margin-top","padding-top","font-family","font-size","line-height"];e.forEach(function(r){n.style[r]=i[r]}),n.style["margin-bottom"]="-"+i["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,i=t.selectionStart,o=t.selectionEnd;this._recordChange({value:n,selectionStart:i,selectionEnd:o})}},_getLines:function(t,n){return t.substring(0,n).split(`
`)},_applyEdits:function(t){var n=this.$refs.textarea,i=this.history.stack[this.history.offset];i&&n&&(this.history.stack[this.history.offset]=Gt({},i,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var i=this.history,o=i.stack,u=i.offset;if(o.length&&u>-1){this.history.stack=o.slice(0,u+1);var e=this.history.stack.length;if(e>Wn){var r=e-Wn;this.history.stack=o.slice(r,e),this.history.offset=Math.max(this.history.offset-r,0)}}var a=Date.now();if(n){var l=this.history.stack[this.history.offset];if(l&&a-l.timestamp
=c&&F<=v&&K.startsWith(l)?K.substring(l.length):K}).join(`
`);if(e!==m){var f=d[c];this._applyEdits({value:m,selectionStart:f.startsWith(l)?r-l.length:r,selectionEnd:a-(e.length-m.length)})}}else if(r!==a){var g=this._getLines(e,r),y=g.length-1,S=this._getLines(e,a).length-1,p=g[y];this._applyEdits({value:e.split(`
@@ -20,4 +20,4 @@ import{u as tt,f as Ne,g as ar,r as V,o as G,a as X,w as T,e as E,h as z,b as ze
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _r="1.14.0";function lt(s){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(s)}var ut=lt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Xt=lt(/Edge/i),Xn=lt(/firefox/i),Bt=lt(/safari/i)&&!lt(/chrome/i)&&!lt(/android/i),cr=lt(/iP(ad|od|hone)/i),eo=lt(/chrome/i)&<(/android/i),fr={capture:!1,passive:!1};function le(s,t,n){s.addEventListener(t,n,!ut&&fr)}function ae(s,t,n){s.removeEventListener(t,n,!ut&&fr)}function cn(s,t){if(t){if(t[0]===">"&&(t=t.substring(1)),s)try{if(s.matches)return s.matches(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t)}catch{return!1}return!1}}function to(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function qe(s,t,n,i){if(s){n=n||document;do{if(t!=null&&(t[0]===">"?s.parentNode===n&&cn(s,t):cn(s,t))||i&&s===n)return s;if(s===n)break}while(s=to(s))}return null}var kn=/\s+/g;function Ee(s,t,n){if(s&&t)if(s.classList)s.classList[n?"add":"remove"](t);else{var i=(" "+s.className+" ").replace(kn," ").replace(" "+t+" "," ");s.className=(i+(n?" "+t:"")).replace(kn," ")}}function H(s,t,n){var i=s&&s.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(n=s.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function xt(s,t){var n="";if(typeof s=="string")n=s;else do{var i=H(s,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(s=s.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function pr(s,t,n){if(s){var i=s.getElementsByTagName(t),o=0,u=i.length;if(n)for(;o=u:e=o<=u,!e)return i;if(i===at())break;i=pt(i,!1)}return!1}function wt(s,t,n,i){for(var o=0,u=0,e=s.children;u2&&arguments[2]!==void 0?arguments[2]:{},o=i.evt,u=Xr(i,so);kt.pluginEvent.bind(Q)(t,n,it({dragEl:L,parentEl:Ie,ghostEl:te,rootEl:xe,nextEl:bt,lastDownEl:an,cloneEl:Oe,cloneHidden:ft,dragStarted:Lt,putSortable:Re,activeSortable:Q.active,originalEvent:o,oldIndex:Tt,oldDraggableIndex:zt,newIndex:He,newDraggableIndex:ct,hideGhostForTarget:br,unhideGhostForTarget:xr,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(r){Me({sortable:n,name:r,originalEvent:o})}},u))};function Me(s){Mt(it({putSortable:Re,cloneEl:Oe,targetEl:L,rootEl:xe,oldIndex:Tt,oldDraggableIndex:zt,newIndex:He,newDraggableIndex:ct},s))}var L,Ie,te,xe,bt,an,Oe,ft,Tt,He,zt,ct,qt,Re,Ct=!1,fn=!1,pn=[],gt,Ze,In,On,qn,_n,Lt,It,Wt,Yt=!1,_t=!1,ln,Ve,Cn=[],Fn=!1,vn=[],gn=typeof document<"u",en=cr,er=Xt||ut?"cssFloat":"float",uo=gn&&!eo&&!cr&&"draggable"in document.createElement("div"),gr=function(){if(gn){if(ut)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),hr=function(t,n){var i=H(t),o=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),u=wt(t,0,n),e=wt(t,1,n),r=u&&H(u),a=e&&H(e),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Se(u).width,d=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Se(e).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(u&&r.float&&r.float!=="none"){var c=r.float==="left"?"left":"right";return e&&(a.clear==="both"||a.clear===c)?"vertical":"horizontal"}return u&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||l>=o&&i[er]==="none"||e&&i[er]==="none"&&l+d>o)?"vertical":"horizontal"},co=function(t,n,i){var o=i?t.left:t.top,u=i?t.right:t.bottom,e=i?t.width:t.height,r=i?n.left:n.top,a=i?n.right:n.bottom,l=i?n.width:n.height;return o===r||u===a||o+e/2===r+l/2},fo=function(t,n){var i;return pn.some(function(o){var u=o[je].options.emptyInsertThreshold;if(!(!u||Mn(o))){var e=Se(o),r=t>=e.left-u&&t<=e.right+u,a=n>=e.top-u&&n<=e.bottom+u;if(r&&a)return i=o}}),i},yr=function(t){function n(u,e){return function(r,a,l,d){var c=r.options.group.name&&a.options.group.name&&r.options.group.name===a.options.group.name;if(u==null&&(e||c))return!0;if(u==null||u===!1)return!1;if(e&&u==="clone")return u;if(typeof u=="function")return n(u(r,a,l,d),e)(r,a,l,d);var v=(e?r:a).options.group.name;return u===!0||typeof u=="string"&&u===v||u.join&&u.indexOf(v)>-1}}var i={},o=t.group;(!o||on(o)!="object")&&(o={name:o}),i.name=o.name,i.checkPull=n(o.pull,!0),i.checkPut=n(o.put),i.revertClone=o.revertClone,t.group=i},br=function(){!gr&&te&&H(te,"display","none")},xr=function(){!gr&&te&&H(te,"display","")};gn&&document.addEventListener("click",function(s){if(fn)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),fn=!1,!1},!0);var ht=function(t){if(L){t=t.touches?t.touches[0]:t;var n=fo(t.clientX,t.clientY);if(n){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[je]._onDragOver(i)}}},po=function(t){L&&L.parentNode[je]._isOutsideThisEl(t.target)};function Q(s,t){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=t=ke({},t),s[je]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return hr(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,r){e.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Q.supportPointer!==!1&&"PointerEvent"in window&&!Bt,emptyInsertThreshold:5};kt.initializePlugins(this,s,n);for(var i in n)!(i in t)&&(t[i]=n[i]);yr(t);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=t.forceFallback?!1:uo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?le(s,"pointerdown",this._onTapStart):(le(s,"mousedown",this._onTapStart),le(s,"touchstart",this._onTapStart)),this.nativeDraggable&&(le(s,"dragover",this),le(s,"dragenter",this)),pn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ke(this,ao())}Q.prototype={constructor:Q,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(It=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,L):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,o=this.options,u=o.preventOnFilter,e=t.type,r=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,a=(r||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,d=o.filter;if(So(i),!L&&!(/mousedown|pointerdown/.test(e)&&t.button!==0||o.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Bt&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=qe(a,o.draggable,i,!1),!(a&&a.animated)&&an!==a)){if(Tt=Ce(a),zt=Ce(a,o.draggable),typeof d=="function"){if(d.call(this,t,a,this)){Me({sortable:n,rootEl:l,name:"filter",targetEl:a,toEl:i,fromEl:i}),Ue("filter",n,{evt:t}),u&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(c){if(c=qe(l,c.trim(),i,!1),c)return Me({sortable:n,rootEl:c,name:"filter",targetEl:a,fromEl:i,toEl:i}),Ue("filter",n,{evt:t}),!0}),d)){u&&t.cancelable&&t.preventDefault();return}o.handle&&!qe(l,o.handle,i,!1)||this._prepareDragStart(t,r,a)}}},_prepareDragStart:function(t,n,i){var o=this,u=o.el,e=o.options,r=u.ownerDocument,a;if(i&&!L&&i.parentNode===u){var l=Se(i);if(xe=u,L=i,Ie=L.parentNode,bt=L.nextSibling,an=i,qt=e.group,Q.dragged=L,gt={target:L,clientX:(n||t).clientX,clientY:(n||t).clientY},qn=gt.clientX-l.left,_n=gt.clientY-l.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,L.style["will-change"]="all",a=function(){if(Ue("delayEnded",o,{evt:t}),Q.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Xn&&o.nativeDraggable&&(L.draggable=!0),o._triggerDragStart(t,n),Me({sortable:o,name:"choose",originalEvent:t}),Ee(L,e.chosenClass,!0)},e.ignore.split(",").forEach(function(d){pr(L,d.trim(),Tn)}),le(r,"dragover",ht),le(r,"mousemove",ht),le(r,"touchmove",ht),le(r,"mouseup",o._onDrop),le(r,"touchend",o._onDrop),le(r,"touchcancel",o._onDrop),Xn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,L.draggable=!0),Ue("delayStart",this,{evt:t}),e.delay&&(!e.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Xt||ut))){if(Q.eventCanceled){this._onDrop();return}le(r,"mouseup",o._disableDelayedDrag),le(r,"touchend",o._disableDelayedDrag),le(r,"touchcancel",o._disableDelayedDrag),le(r,"mousemove",o._delayedDragTouchMoveHandler),le(r,"touchmove",o._delayedDragTouchMoveHandler),e.supportPointer&&le(r,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(a,e.delay)}else a()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){L&&Tn(L),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ae(t,"mouseup",this._disableDelayedDrag),ae(t,"touchend",this._disableDelayedDrag),ae(t,"touchcancel",this._disableDelayedDrag),ae(t,"mousemove",this._delayedDragTouchMoveHandler),ae(t,"touchmove",this._delayedDragTouchMoveHandler),ae(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?le(document,"pointermove",this._onTouchMove):n?le(document,"touchmove",this._onTouchMove):le(document,"mousemove",this._onTouchMove):(le(L,"dragend",this),le(xe,"dragstart",this._onDragStart));try{document.selection?sn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Ct=!1,xe&&L){Ue("dragStarted",this,{evt:n}),this.nativeDraggable&&le(document,"dragover",po);var i=this.options;!t&&Ee(L,i.dragClass,!1),Ee(L,i.ghostClass,!0),Q.active=this,t&&this._appendGhost(),Me({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ze){this._lastX=Ze.clientX,this._lastY=Ze.clientY,br();for(var t=document.elementFromPoint(Ze.clientX,Ze.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ze.clientX,Ze.clientY),t!==n);)n=t;if(L.parentNode[je]._isOutsideThisEl(t),n)do{if(n[je]){var i=void 0;if(i=n[je]._onDragOver({clientX:Ze.clientX,clientY:Ze.clientY,target:t,rootEl:n}),i&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);xr()}},_onTouchMove:function(t){if(gt){var n=this.options,i=n.fallbackTolerance,o=n.fallbackOffset,u=t.touches?t.touches[0]:t,e=te&&xt(te,!0),r=te&&e&&e.a,a=te&&e&&e.d,l=en&&Ve&&Zn(Ve),d=(u.clientX-gt.clientX+o.x)/(r||1)+(l?l[0]-Cn[0]:0)/(r||1),c=(u.clientY-gt.clientY+o.y)/(a||1)+(l?l[1]-Cn[1]:0)/(a||1);if(!Q.active&&!Ct){if(i&&Math.max(Math.abs(u.clientX-this._lastX),Math.abs(u.clientY-this._lastY))=0&&(Me({rootEl:Ie,name:"add",toEl:Ie,fromEl:xe,originalEvent:t}),Me({sortable:this,name:"remove",toEl:Ie,originalEvent:t}),Me({rootEl:Ie,name:"sort",toEl:Ie,fromEl:xe,originalEvent:t}),Me({sortable:this,name:"sort",toEl:Ie,originalEvent:t})),Re&&Re.save()):He!==Tt&&He>=0&&(Me({sortable:this,name:"update",toEl:Ie,originalEvent:t}),Me({sortable:this,name:"sort",toEl:Ie,originalEvent:t})),Q.active&&((He==null||He===-1)&&(He=Tt,ct=zt),Me({sortable:this,name:"end",toEl:Ie,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Ue("nulling",this),xe=L=Ie=te=bt=Oe=an=ft=gt=Ze=Lt=He=ct=Tt=zt=It=Wt=Re=qt=Q.dragged=Q.ghost=Q.clone=Q.active=null,vn.forEach(function(t){t.checked=!0}),vn.length=In=On=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":L&&(this._onDragOver(t),vo(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,i=this.el.children,o=0,u=i.length,e=this.options;oi.right+o||s.clientX<=i.right&&s.clientY>i.bottom&&s.clientX>=i.left:s.clientX>i.right&&s.clientY>i.top||s.clientX<=i.right&&s.clientY>i.bottom+o}function yo(s,t,n,i,o,u,e,r){var a=i?s.clientY:s.clientX,l=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,v=!1;if(!e){if(r&&lnd+l*u/2:ac-ln)return-Wt}else if(a>d+l*(1-o)/2&&ac-l*u/2)?a>d+l/2?1:-1:0}function bo(s){return Ce(L)1&&(ee.forEach(function(r){u.addAnimationState({target:r,rect:Ke?Se(r):e}),Sn(r),r.fromRect=e,i.removeAnimationState(r)}),Ke=!1,To(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var i=n.sortable,o=n.isOwner,u=n.insertion,e=n.activeSortable,r=n.parentEl,a=n.putSortable,l=this.options;if(u){if(o&&e._hideClone(),jt=!1,l.animation&&ee.length>1&&(Ke||!o&&!e.options.sort&&!a)){var d=Se(ye,!1,!0,!0);ee.forEach(function(v){v!==ye&&(Qn(v,d),r.appendChild(v))}),Ke=!0}if(!o)if(Ke||rn(),ee.length>1){var c=nn;e._showClone(i),e.options.animation&&!nn&&c&&Be.forEach(function(v){e.addAnimationState({target:v,rect:Nt}),v.fromRect=Nt,v.thisAnimationDuration=null})}else e._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,o=n.isOwner,u=n.activeSortable;if(ee.forEach(function(r){r.thisAnimationDuration=null}),u.options.animation&&!o&&u.multiDrag.isMultiDrag){Nt=ke({},i);var e=xt(ye,!0);Nt.top-=e.f,Nt.left-=e.e}},dragOverAnimationComplete:function(){Ke&&(Ke=!1,rn())},drop:function(n){var i=n.originalEvent,o=n.rootEl,u=n.parentEl,e=n.sortable,r=n.dispatchSortableEvent,a=n.oldIndex,l=n.putSortable,d=l||this.sortable;if(i){var c=this.options,v=u.children;if(!Ot)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ee(ye,c.selectedClass,!~ee.indexOf(ye)),~ee.indexOf(ye))ee.splice(ee.indexOf(ye),1),Vt=null,Mt({sortable:e,rootEl:o,name:"deselect",targetEl:ye,originalEvt:i});else{if(ee.push(ye),Mt({sortable:e,rootEl:o,name:"select",targetEl:ye,originalEvt:i}),i.shiftKey&&Vt&&e.el.contains(Vt)){var m=Ce(Vt),f=Ce(ye);if(~m&&~f&&m!==f){var g,y;for(f>m?(y=m,g=f):(y=f,g=m+1);y1){var S=Se(ye),p=Ce(ye,":not(."+this.options.selectedClass+")");if(!jt&&c.animation&&(ye.thisAnimationDuration=null),d.captureAnimationState(),!jt&&(c.animation&&(ye.fromRect=S,ee.forEach(function(x){if(x.thisAnimationDuration=null,x!==ye){var C=Ke?Se(x):S;x.fromRect=C,d.addAnimationState({target:x,rect:C})}})),rn(),ee.forEach(function(x){v[p]?u.insertBefore(x,v[p]):u.appendChild(x),p++}),a===Ce(ye))){var h=!1;ee.forEach(function(x){if(x.sortableIndex!==Ce(x)){h=!0;return}}),h&&r("update")}ee.forEach(function(x){Sn(x)}),d.animateAll()}Qe=d}(o===u||l&&l.lastPutMode!=="clone")&&Be.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=Ot=!1,Be.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ae(document,"pointerup",this._deselectMultiDrag),ae(document,"mouseup",this._deselectMultiDrag),ae(document,"touchend",this._deselectMultiDrag),ae(document,"keydown",this._checkKeyDown),ae(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Ot<"u"&&Ot)&&Qe===this.sortable&&!(n&&qe(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ee.length;){var i=ee[0];Ee(i,this.options.selectedClass,!1),ee.shift(),Mt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},ke(s,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[je];!i||!i.options.multiDrag||~ee.indexOf(n)||(Qe&&Qe!==i&&(Qe.multiDrag._deselectMultiDrag(),Qe=i),Ee(n,i.options.selectedClass,!0),ee.push(n))},deselect:function(n){var i=n.parentNode[je],o=ee.indexOf(n);!i||!i.options.multiDrag||!~o||(Ee(n,i.options.selectedClass,!1),ee.splice(o,1))}},eventProperties:function(){var n=this,i=[],o=[];return ee.forEach(function(u){i.push({multiDragElement:u,index:u.sortableIndex});var e;Ke&&u!==ye?e=-1:Ke?e=Ce(u,":not(."+n.options.selectedClass+")"):e=Ce(u),o.push({multiDragElement:u,index:e})}),{items:kr(ee),clones:[].concat(Be),oldIndicies:i,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function To(s,t){ee.forEach(function(n,i){var o=t.children[n.sortableIndex+(s?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function nr(s,t){Be.forEach(function(n,i){var o=t.children[n.sortableIndex+(s?Number(i):0)];o?t.insertBefore(n,o):t.appendChild(n)})}function rn(){ee.forEach(function(s){s!==ye&&s.parentNode&&s.parentNode.removeChild(s)})}Q.mount(new Eo);Q.mount(Kn,Un);const wo=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Co,Sortable:Q,Swap:Io,default:Q},Symbol.toStringTag,{value:"Module"})),Po=Dr(wo);(function(s,t){(function(i,o){s.exports=o(Ar,Po)})(typeof self<"u"?self:An,function(n,i){return function(o){var u={};function e(r){if(u[r])return u[r].exports;var a=u[r]={i:r,l:!1,exports:{}};return o[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=o,e.c=u,e.d=function(r,a,l){e.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:l})},e.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,a){if(a&1&&(r=e(r)),a&8||a&4&&typeof r=="object"&&r&&r.__esModule)return r;var l=Object.create(null);if(e.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:r}),a&2&&typeof r!="string")for(var d in r)e.d(l,d,(function(c){return r[c]}).bind(null,d));return l},e.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(a,"a",a),a},e.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},e.p="",e(e.s="fb15")}({"00ee":function(o,u,e){var r=e("b622"),a=r("toStringTag"),l={};l[a]="z",o.exports=String(l)==="[object z]"},"0366":function(o,u,e){var r=e("1c0b");o.exports=function(a,l,d){if(r(a),l===void 0)return a;switch(d){case 0:return function(){return a.call(l)};case 1:return function(c){return a.call(l,c)};case 2:return function(c,v){return a.call(l,c,v)};case 3:return function(c,v,m){return a.call(l,c,v,m)}}return function(){return a.apply(l,arguments)}}},"057f":function(o,u,e){var r=e("fc6a"),a=e("241c").f,l={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(v){try{return a(v)}catch{return d.slice()}};o.exports.f=function(m){return d&&l.call(m)=="[object Window]"?c(m):a(r(m))}},"06cf":function(o,u,e){var r=e("83ab"),a=e("d1e7"),l=e("5c6c"),d=e("fc6a"),c=e("c04e"),v=e("5135"),m=e("0cfb"),f=Object.getOwnPropertyDescriptor;u.f=r?f:function(y,S){if(y=d(y),S=c(S,!0),m)try{return f(y,S)}catch{}if(v(y,S))return l(!a.f.call(y,S),y[S])}},"0cfb":function(o,u,e){var r=e("83ab"),a=e("d039"),l=e("cc12");o.exports=!r&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,u,e){var r=e("23e7"),a=e("d58f").left,l=e("a640"),d=e("ae40"),c=l("reduce"),v=d("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!v},{reduce:function(f){return a(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,u,e){var r=e("c6b6"),a=e("9263");o.exports=function(l,d){var c=l.exec;if(typeof c=="function"){var v=c.call(l,d);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(r(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return a.call(l,d)}},"159b":function(o,u,e){var r=e("da84"),a=e("fdbc"),l=e("17c2"),d=e("9112");for(var c in a){var v=r[c],m=v&&v.prototype;if(m&&m.forEach!==l)try{d(m,"forEach",l)}catch{m.forEach=l}}},"17c2":function(o,u,e){var r=e("b727").forEach,a=e("a640"),l=e("ae40"),d=a("forEach"),c=l("forEach");o.exports=!d||!c?function(m){return r(this,m,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,u,e){var r=e("d066");o.exports=r("document","documentElement")},"1c0b":function(o,u){o.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(o,u,e){var r=e("b622"),a=r("iterator"),l=!1;try{var d=0,c={next:function(){return{done:!!d++}},return:function(){l=!0}};c[a]=function(){return this},Array.from(c,function(){throw 2})}catch{}o.exports=function(v,m){if(!m&&!l)return!1;var f=!1;try{var g={};g[a]=function(){return{next:function(){return{done:f=!0}}}},v(g)}catch{}return f}},"1d80":function(o,u){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},"1dde":function(o,u,e){var r=e("d039"),a=e("b622"),l=e("2d00"),d=a("species");o.exports=function(c){return l>=51||!r(function(){var v=[],m=v.constructor={};return m[d]=function(){return{foo:1}},v[c](Boolean).foo!==1})}},"23cb":function(o,u,e){var r=e("a691"),a=Math.max,l=Math.min;o.exports=function(d,c){var v=r(d);return v<0?a(v+c,0):l(v,c)}},"23e7":function(o,u,e){var r=e("da84"),a=e("06cf").f,l=e("9112"),d=e("6eeb"),c=e("ce4e"),v=e("e893"),m=e("94ca");o.exports=function(f,g){var y=f.target,S=f.global,p=f.stat,h,x,C,I,D,O;if(S?x=r:p?x=r[y]||c(y,{}):x=(r[y]||{}).prototype,x)for(C in g){if(D=g[C],f.noTargetGet?(O=a(x,C),I=O&&O.value):I=x[C],h=m(S?C:y+(p?".":"#")+C,f.forced),!h&&I!==void 0){if(typeof D==typeof I)continue;v(D,I)}(f.sham||I&&I.sham)&&l(D,"sham",!0),d(x,C,D,f)}}},"241c":function(o,u,e){var r=e("ca84"),a=e("7839"),l=a.concat("length","prototype");u.f=Object.getOwnPropertyNames||function(c){return r(c,l)}},"25f0":function(o,u,e){var r=e("6eeb"),a=e("825a"),l=e("d039"),d=e("ad6d"),c="toString",v=RegExp.prototype,m=v[c],f=l(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),g=m.name!=c;(f||g)&&r(RegExp.prototype,c,function(){var S=a(this),p=String(S.source),h=S.flags,x=String(h===void 0&&S instanceof RegExp&&!("flags"in v)?d.call(S):h);return"/"+p+"/"+x},{unsafe:!0})},"2ca0":function(o,u,e){var r=e("23e7"),a=e("06cf").f,l=e("50c4"),d=e("5a34"),c=e("1d80"),v=e("ab13"),m=e("c430"),f="".startsWith,g=Math.min,y=v("startsWith"),S=!m&&!y&&!!function(){var p=a(String.prototype,"startsWith");return p&&!p.writable}();r({target:"String",proto:!0,forced:!S&&!y},{startsWith:function(h){var x=String(c(this));d(h);var C=l(g(arguments.length>1?arguments[1]:void 0,x.length)),I=String(h);return f?f.call(x,I,C):x.slice(C,C+I.length)===I}})},"2d00":function(o,u,e){var r=e("da84"),a=e("342f"),l=r.process,d=l&&l.versions,c=d&&d.v8,v,m;c?(v=c.split("."),m=v[0]+v[1]):a&&(v=a.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=a.match(/Chrome\/(\d+)/),v&&(m=v[1]))),o.exports=m&&+m},"342f":function(o,u,e){var r=e("d066");o.exports=r("navigator","userAgent")||""},"35a1":function(o,u,e){var r=e("f5df"),a=e("3f8c"),l=e("b622"),d=l("iterator");o.exports=function(c){if(c!=null)return c[d]||c["@@iterator"]||a[r(c)]}},"37e8":function(o,u,e){var r=e("83ab"),a=e("9bf2"),l=e("825a"),d=e("df75");o.exports=r?Object.defineProperties:function(v,m){l(v);for(var f=d(m),g=f.length,y=0,S;g>y;)a.f(v,S=f[y++],m[S]);return v}},"3bbe":function(o,u,e){var r=e("861d");o.exports=function(a){if(!r(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(o,u,e){var r=e("6547").charAt,a=e("69f3"),l=e("7dd0"),d="String Iterator",c=a.set,v=a.getterFor(d);l(String,"String",function(m){c(this,{type:d,string:String(m),index:0})},function(){var f=v(this),g=f.string,y=f.index,S;return y>=g.length?{value:void 0,done:!0}:(S=r(g,y),f.index+=S.length,{value:S,done:!1})})},"3f8c":function(o,u){o.exports={}},4160:function(o,u,e){var r=e("23e7"),a=e("17c2");r({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(o,u,e){var r=e("da84");o.exports=r},"44ad":function(o,u,e){var r=e("d039"),a=e("c6b6"),l="".split;o.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return a(d)=="String"?l.call(d,""):Object(d)}:Object},"44d2":function(o,u,e){var r=e("b622"),a=e("7c73"),l=e("9bf2"),d=r("unscopables"),c=Array.prototype;c[d]==null&&l.f(c,d,{configurable:!0,value:a(null)}),o.exports=function(v){c[d][v]=!0}},"44e7":function(o,u,e){var r=e("861d"),a=e("c6b6"),l=e("b622"),d=l("match");o.exports=function(c){var v;return r(c)&&((v=c[d])!==void 0?!!v:a(c)=="RegExp")}},4930:function(o,u,e){var r=e("d039");o.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(o,u,e){var r=e("fc6a"),a=e("50c4"),l=e("23cb"),d=function(c){return function(v,m,f){var g=r(v),y=a(g.length),S=l(f,y),p;if(c&&m!=m){for(;y>S;)if(p=g[S++],p!=p)return!0}else for(;y>S;S++)if((c||S in g)&&g[S]===m)return c||S||0;return!c&&-1}};o.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(o,u,e){var r=e("23e7"),a=e("b727").filter,l=e("1dde"),d=e("ae40"),c=l("filter"),v=d("filter");r({target:"Array",proto:!0,forced:!c||!v},{filter:function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,u,e){var r=e("0366"),a=e("7b0b"),l=e("9bdd"),d=e("e95a"),c=e("50c4"),v=e("8418"),m=e("35a1");o.exports=function(g){var y=a(g),S=typeof this=="function"?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,x=h!==void 0,C=m(y),I=0,D,O,b,$,R,K;if(x&&(h=r(h,p>2?arguments[2]:void 0,2)),C!=null&&!(S==Array&&d(C)))for($=C.call(y),R=$.next,O=new S;!(b=R.call($)).done;I++)K=x?l($,h,[b.value,I],!0):b.value,v(O,I,K);else for(D=c(y.length),O=new S(D);D>I;I++)K=x?h(y[I],I):y[I],v(O,I,K);return O.length=I,O}},"4fad":function(o,u,e){var r=e("23e7"),a=e("6f53").entries;r({target:"Object",stat:!0},{entries:function(d){return a(d)}})},"50c4":function(o,u,e){var r=e("a691"),a=Math.min;o.exports=function(l){return l>0?a(r(l),9007199254740991):0}},5135:function(o,u){var e={}.hasOwnProperty;o.exports=function(r,a){return e.call(r,a)}},5319:function(o,u,e){var r=e("d784"),a=e("825a"),l=e("7b0b"),d=e("50c4"),c=e("a691"),v=e("1d80"),m=e("8aa5"),f=e("14c3"),g=Math.max,y=Math.min,S=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,x=function(C){return C===void 0?C:String(C)};r("replace",2,function(C,I,D,O){var b=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,$=O.REPLACE_KEEPS_$0,R=b?"$":"$0";return[function(j,k){var U=v(this),M=j==null?void 0:j[C];return M!==void 0?M.call(j,U,k):I.call(String(U),j,k)},function(F,j){if(!b&&$||typeof j=="string"&&j.indexOf(R)===-1){var k=D(I,F,this,j);if(k.done)return k.value}var U=a(F),M=String(this),W=typeof j=="function";W||(j=String(j));var oe=U.global;if(oe){var ge=U.unicode;U.lastIndex=0}for(var fe=[];;){var ie=f(U,M);if(ie===null||(fe.push(ie),!oe))break;var J=String(ie[0]);J===""&&(U.lastIndex=m(M,d(U.lastIndex),ge))}for(var pe="",he=0,ve=0;ve=he&&(pe+=M.slice(he,$e)+Te,he=$e+me.length)}return pe+M.slice(he)}];function K(F,j,k,U,M,W){var oe=k+F.length,ge=U.length,fe=h;return M!==void 0&&(M=l(M),fe=p),I.call(W,fe,function(ie,J){var pe;switch(J.charAt(0)){case"$":return"$";case"&":return F;case"`":return j.slice(0,k);case"'":return j.slice(oe);case"<":pe=M[J.slice(1,-1)];break;default:var he=+J;if(he===0)return ie;if(he>ge){var ve=S(he/10);return ve===0?ie:ve<=ge?U[ve-1]===void 0?J.charAt(1):U[ve-1]+J.charAt(1):ie}pe=U[he-1]}return pe===void 0?"":pe})}})},5692:function(o,u,e){var r=e("c430"),a=e("c6cd");(o.exports=function(l,d){return a[l]||(a[l]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,u,e){var r=e("d066"),a=e("241c"),l=e("7418"),d=e("825a");o.exports=r("Reflect","ownKeys")||function(v){var m=a.f(d(v)),f=l.f;return f?m.concat(f(v)):m}},"5a34":function(o,u,e){var r=e("44e7");o.exports=function(a){if(r(a))throw TypeError("The method doesn't accept regular expressions");return a}},"5c6c":function(o,u){o.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}},"5db7":function(o,u,e){var r=e("23e7"),a=e("a2bf"),l=e("7b0b"),d=e("50c4"),c=e("1c0b"),v=e("65f0");r({target:"Array",proto:!0},{flatMap:function(f){var g=l(this),y=d(g.length),S;return c(f),S=v(g,0),S.length=a(S,g,g,y,0,1,f,arguments.length>1?arguments[1]:void 0),S}})},6547:function(o,u,e){var r=e("a691"),a=e("1d80"),l=function(d){return function(c,v){var m=String(a(c)),f=r(v),g=m.length,y,S;return f<0||f>=g?d?"":void 0:(y=m.charCodeAt(f),y<55296||y>56319||f+1===g||(S=m.charCodeAt(f+1))<56320||S>57343?d?m.charAt(f):y:d?m.slice(f,f+2):(y-55296<<10)+(S-56320)+65536)}};o.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(o,u,e){var r=e("861d"),a=e("e8b5"),l=e("b622"),d=l("species");o.exports=function(c,v){var m;return a(c)&&(m=c.constructor,typeof m=="function"&&(m===Array||a(m.prototype))?m=void 0:r(m)&&(m=m[d],m===null&&(m=void 0))),new(m===void 0?Array:m)(v===0?0:v)}},"69f3":function(o,u,e){var r=e("7f9a"),a=e("da84"),l=e("861d"),d=e("9112"),c=e("5135"),v=e("f772"),m=e("d012"),f=a.WeakMap,g,y,S,p=function(b){return S(b)?y(b):g(b,{})},h=function(b){return function($){var R;if(!l($)||(R=y($)).type!==b)throw TypeError("Incompatible receiver, "+b+" required");return R}};if(r){var x=new f,C=x.get,I=x.has,D=x.set;g=function(b,$){return D.call(x,b,$),$},y=function(b){return C.call(x,b)||{}},S=function(b){return I.call(x,b)}}else{var O=v("state");m[O]=!0,g=function(b,$){return d(b,O,$),$},y=function(b){return c(b,O)?b[O]:{}},S=function(b){return c(b,O)}}o.exports={set:g,get:y,has:S,enforce:p,getterFor:h}},"6eeb":function(o,u,e){var r=e("da84"),a=e("9112"),l=e("5135"),d=e("ce4e"),c=e("8925"),v=e("69f3"),m=v.get,f=v.enforce,g=String(String).split("String");(o.exports=function(y,S,p,h){var x=h?!!h.unsafe:!1,C=h?!!h.enumerable:!1,I=h?!!h.noTargetGet:!1;if(typeof p=="function"&&(typeof S=="string"&&!l(p,"name")&&a(p,"name",S),f(p).source=g.join(typeof S=="string"?S:"")),y===r){C?y[S]=p:d(S,p);return}else x?!I&&y[S]&&(C=!0):delete y[S];C?y[S]=p:a(y,S,p)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||c(this)})},"6f53":function(o,u,e){var r=e("83ab"),a=e("df75"),l=e("fc6a"),d=e("d1e7").f,c=function(v){return function(m){for(var f=l(m),g=a(f),y=g.length,S=0,p=[],h;y>S;)h=g[S++],(!r||d.call(f,h))&&p.push(v?[h,f[h]]:f[h]);return p}};o.exports={entries:c(!0),values:c(!1)}},"73d9":function(o,u,e){var r=e("44d2");r("flatMap")},7418:function(o,u){u.f=Object.getOwnPropertySymbols},"746f":function(o,u,e){var r=e("428f"),a=e("5135"),l=e("e538"),d=e("9bf2").f;o.exports=function(c){var v=r.Symbol||(r.Symbol={});a(v,c)||d(v,c,{value:l.f(c)})}},7839:function(o,u){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,u,e){var r=e("1d80");o.exports=function(a){return Object(r(a))}},"7c73":function(o,u,e){var r=e("825a"),a=e("37e8"),l=e("7839"),d=e("d012"),c=e("1be4"),v=e("cc12"),m=e("f772"),f=">",g="<",y="prototype",S="script",p=m("IE_PROTO"),h=function(){},x=function(b){return g+S+f+b+g+"/"+S+f},C=function(b){b.write(x("")),b.close();var $=b.parentWindow.Object;return b=null,$},I=function(){var b=v("iframe"),$="java"+S+":",R;return b.style.display="none",c.appendChild(b),b.src=String($),R=b.contentWindow.document,R.open(),R.write(x("document.F=Object")),R.close(),R.F},D,O=function(){try{D=document.domain&&new ActiveXObject("htmlfile")}catch{}O=D?C(D):I();for(var b=l.length;b--;)delete O[y][l[b]];return O()};d[p]=!0,o.exports=Object.create||function($,R){var K;return $!==null?(h[y]=r($),K=new h,h[y]=null,K[p]=$):K=O(),R===void 0?K:a(K,R)}},"7dd0":function(o,u,e){var r=e("23e7"),a=e("9ed3"),l=e("e163"),d=e("d2bb"),c=e("d44e"),v=e("9112"),m=e("6eeb"),f=e("b622"),g=e("c430"),y=e("3f8c"),S=e("ae93"),p=S.IteratorPrototype,h=S.BUGGY_SAFARI_ITERATORS,x=f("iterator"),C="keys",I="values",D="entries",O=function(){return this};o.exports=function(b,$,R,K,F,j,k){a(R,$,K);var U=function(ve){if(ve===F&&fe)return fe;if(!h&&ve in oe)return oe[ve];switch(ve){case C:return function(){return new R(this,ve)};case I:return function(){return new R(this,ve)};case D:return function(){return new R(this,ve)}}return function(){return new R(this)}},M=$+" Iterator",W=!1,oe=b.prototype,ge=oe[x]||oe["@@iterator"]||F&&oe[F],fe=!h&&ge||U(F),ie=$=="Array"&&oe.entries||ge,J,pe,he;if(ie&&(J=l(ie.call(new b)),p!==Object.prototype&&J.next&&(!g&&l(J)!==p&&(d?d(J,p):typeof J[x]!="function"&&v(J,x,O)),c(J,M,!0,!0),g&&(y[M]=O))),F==I&&ge&&ge.name!==I&&(W=!0,fe=function(){return ge.call(this)}),(!g||k)&&oe[x]!==fe&&v(oe,x,fe),y[$]=fe,F)if(pe={values:U(I),keys:j?fe:U(C),entries:U(D)},k)for(he in pe)(h||W||!(he in oe))&&m(oe,he,pe[he]);else r({target:$,proto:!0,forced:h||W},pe);return pe}},"7f9a":function(o,u,e){var r=e("da84"),a=e("8925"),l=r.WeakMap;o.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(o,u,e){var r=e("861d");o.exports=function(a){if(!r(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(o,u,e){var r=e("d039");o.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,u,e){var r=e("c04e"),a=e("9bf2"),l=e("5c6c");o.exports=function(d,c,v){var m=r(c);m in d?a.f(d,m,l(0,v)):d[m]=v}},"861d":function(o,u){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},8875:function(o,u,e){var r,a,l;(function(d,c){a=[],r=c,l=typeof r=="function"?r.apply(u,a):r,l!==void 0&&(o.exports=l)})(typeof self<"u"?self:this,function(){function d(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(D){var v=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,m=/@([^@]*):(\d+):(\d+)\s*$/ig,f=v.exec(D.stack)||m.exec(D.stack),g=f&&f[1]||!1,y=f&&f[2]||!1,S=document.location.href.replace(document.location.hash,""),p,h,x,C=document.getElementsByTagName("script");g===S&&(p=document.documentElement.outerHTML,h=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*
+